jufubao-base 1.0.85 → 1.0.87-beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/common/authorize.js +1 -5
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +1 -2
- package/src/components/JfbBaseCard/JfbBaseCard.vue +0 -1
- package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +1 -2
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +1 -2
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +1 -2
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +1 -2
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +1 -1
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +3 -2
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +3 -0
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +1 -2
- package/src/components/JfbBasePoster/Attr.js +21 -1
- package/src/components/JfbBasePoster/JfbBasePoster.vue +54 -7
- package/src/components/JfbBasePosterBigSmall/Api.js +60 -0
- package/src/components/JfbBasePosterBigSmall/Attr.js +106 -0
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +110 -0
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallLess.less +80 -0
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallMixin.js +30 -0
- package/src/components/JfbBasePosterBigSmall/Mock.js +5 -0
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +1 -2
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +3 -0
package/package.json
CHANGED
package/src/common/authorize.js
CHANGED
|
@@ -29,7 +29,6 @@ class JfbAuthorize {
|
|
|
29
29
|
'card': 'JFB-CARD-TOKEN-{siteID}',
|
|
30
30
|
'refresh': 'JFB-REFRESH-TOKEN-{siteID}',
|
|
31
31
|
'access': 'JFB-ACCESS-TOKEN',
|
|
32
|
-
'cardCode':'JFB-CARD-CODE-{siteID}'
|
|
33
32
|
}, settings.token? settings.token: {});
|
|
34
33
|
}
|
|
35
34
|
|
|
@@ -41,7 +40,6 @@ class JfbAuthorize {
|
|
|
41
40
|
* @returns {string|*}
|
|
42
41
|
*/
|
|
43
42
|
getTokenKeyword(key){
|
|
44
|
-
|
|
45
43
|
if (!this.config[key]) key = 'user';
|
|
46
44
|
if(key === 'access') return this.config.access;
|
|
47
45
|
else{
|
|
@@ -85,8 +83,6 @@ class JfbAuthorize {
|
|
|
85
83
|
*/
|
|
86
84
|
removeToken(key, options = {}) {
|
|
87
85
|
key = this.getTokenKeyword(key);
|
|
88
|
-
let codeKey = this.getTokenKeyword('cardCode');
|
|
89
|
-
debugger
|
|
90
86
|
//#ifdef H5
|
|
91
87
|
cookie.remove(key, options);
|
|
92
88
|
console.warn(`cookie.key=${key}`);
|
|
@@ -146,7 +142,7 @@ class JfbAuthorize {
|
|
|
146
142
|
* @description 跳转到用户登陆页面
|
|
147
143
|
* @param $vm {Vue}
|
|
148
144
|
*/
|
|
149
|
-
jumpToUserLogin($vm
|
|
145
|
+
jumpToUserLogin($vm) {
|
|
150
146
|
let redirect_url = '';
|
|
151
147
|
if(store.state.configProject.platform === 'mp.weixin') {
|
|
152
148
|
redirect_url = $vm['$xdUniHelper'].parseURL().source;
|
|
@@ -135,7 +135,7 @@ export default {
|
|
|
135
135
|
page_token: 1,
|
|
136
136
|
hasNext: true,
|
|
137
137
|
next_page_token: "",
|
|
138
|
-
loadingList:
|
|
138
|
+
loadingList: true,
|
|
139
139
|
|
|
140
140
|
//基础
|
|
141
141
|
radius: 0,
|
|
@@ -248,7 +248,6 @@ export default {
|
|
|
248
248
|
},
|
|
249
249
|
getList() {
|
|
250
250
|
this.$xdShowLoading({});
|
|
251
|
-
this.loadingList = true;
|
|
252
251
|
jfbRootExec("getAfterOrderList", {
|
|
253
252
|
vm: this,
|
|
254
253
|
data: {
|
|
@@ -111,7 +111,7 @@ export default {
|
|
|
111
111
|
return {
|
|
112
112
|
disableList: [],
|
|
113
113
|
isShowUnbind: false,
|
|
114
|
-
loadingList:
|
|
114
|
+
loadingList: true,
|
|
115
115
|
};
|
|
116
116
|
},
|
|
117
117
|
watch: {
|
|
@@ -129,7 +129,6 @@ export default {
|
|
|
129
129
|
},
|
|
130
130
|
getCardList() {
|
|
131
131
|
this.$xdShowLoading({});
|
|
132
|
-
this.loadingList = true;
|
|
133
132
|
jfbRootExec("getDisableCardList", {
|
|
134
133
|
vm: this,
|
|
135
134
|
data: {
|
|
@@ -428,7 +428,7 @@ export default {
|
|
|
428
428
|
notice: "",
|
|
429
429
|
isPreview: false,
|
|
430
430
|
noticeStatus: false,
|
|
431
|
-
loadingCardList:
|
|
431
|
+
loadingCardList: true,
|
|
432
432
|
|
|
433
433
|
isWx: true,
|
|
434
434
|
cutIndex: 1,
|
|
@@ -681,7 +681,6 @@ export default {
|
|
|
681
681
|
if(options['jfb_business_code']) {
|
|
682
682
|
params['card_business_code'] = options['jfb_business_code'];
|
|
683
683
|
}
|
|
684
|
-
this.loadingCardList = true;
|
|
685
684
|
this.$xdShowLoading({});
|
|
686
685
|
jfbRootExec("getListEntryCardBind", {
|
|
687
686
|
vm: this,
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
bottom: 0,
|
|
151
151
|
right: 0
|
|
152
152
|
},
|
|
153
|
-
loadingCardList:
|
|
153
|
+
loadingCardList: true
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
156
|
watch: {
|
|
@@ -189,7 +189,6 @@
|
|
|
189
189
|
params['card_business_code'] = options['jfb_business_code'];
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
this.loadingCardList = true;
|
|
193
192
|
jfbRootExec("getListCardBind", {
|
|
194
193
|
vm: this,
|
|
195
194
|
data: params,
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
changeUrl: "",
|
|
72
72
|
detailUrl: "",
|
|
73
73
|
login_name:'',
|
|
74
|
-
loadingCardList:
|
|
74
|
+
loadingCardList: true,
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
watch: {
|
|
@@ -108,7 +108,6 @@
|
|
|
108
108
|
params['card_business_code'] = options['jfb_business_code'];
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
this.loadingCardList = true;
|
|
112
111
|
jfbRootExec("getListCardBind", {
|
|
113
112
|
vm: this,
|
|
114
113
|
data: params,
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
if(dir) jumpUrl = `//${window.location.host}/${dir}${path}`;
|
|
197
197
|
else jumpUrl = path;
|
|
198
198
|
//#endif
|
|
199
|
-
jumpUrl = `${jumpUrl}${bus}`;
|
|
199
|
+
jumpUrl = `${jumpUrl}${bus}}`;
|
|
200
200
|
return { name: item.name, path: jumpUrl, icon: item.icon, size: item.size }
|
|
201
201
|
}
|
|
202
202
|
})
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
>忘记密码</view
|
|
171
171
|
>
|
|
172
172
|
</view>
|
|
173
|
-
<view class="bottom_btn" :style="prod_bottom" v-if="isPreview === 'Y'">
|
|
173
|
+
<view class="bottom_btn" :style="prod_bottom" v-if="isPreview === 'Y' || isDebugPreview">
|
|
174
174
|
<view @click="dialogPreview = true" :style="{
|
|
175
175
|
color: mainColor,
|
|
176
176
|
border: `1px solid ${mainColor}`
|
|
@@ -280,6 +280,7 @@ export default {
|
|
|
280
280
|
partnerName: "",
|
|
281
281
|
logoTextColor: "",
|
|
282
282
|
isPreview:'N', //是否启用体验码模式
|
|
283
|
+
isDebugPreview: false,
|
|
283
284
|
};
|
|
284
285
|
},
|
|
285
286
|
computed: {
|
|
@@ -360,6 +361,7 @@ export default {
|
|
|
360
361
|
|
|
361
362
|
onJfbLoad(options) {
|
|
362
363
|
this.redirect_url = options.redirect_url ? Base64.decode(options.redirect_url): '';
|
|
364
|
+
this.isDebugPreview = options['x-test'] === 'jfb-tiyan';
|
|
363
365
|
// #ifdef MP-WEIXIN
|
|
364
366
|
this.authWxMpListProviders();
|
|
365
367
|
// #endif
|
|
@@ -908,7 +910,6 @@ export default {
|
|
|
908
910
|
.login-pub {
|
|
909
911
|
margin-top: unit(40, rpx);
|
|
910
912
|
}
|
|
911
|
-
|
|
912
913
|
.bottom_btn {
|
|
913
914
|
position: fixed;
|
|
914
915
|
width: 100%;
|
|
@@ -294,6 +294,9 @@
|
|
|
294
294
|
<view class="jfb-base-order-detail__body-cashier-text">
|
|
295
295
|
{{ info.codes[0].can_read_code }}
|
|
296
296
|
</view>
|
|
297
|
+
<view v-if="info.codes[0].refund_tip_text" style="color:red;font-size:24rpx;text-align:center;margin-top:10rpx">
|
|
298
|
+
{{info.codes[0].refund_tip_text}}
|
|
299
|
+
</view>
|
|
297
300
|
<view
|
|
298
301
|
v-if="info.codes[0].code_end_time"
|
|
299
302
|
class="jfb-base-order-detail__body-cashier-code"
|
|
@@ -223,7 +223,7 @@ export default {
|
|
|
223
223
|
payPath: "",
|
|
224
224
|
status: null, //全部、已完成、已取消
|
|
225
225
|
initStatus: false,
|
|
226
|
-
loadingList:
|
|
226
|
+
loadingList: true,
|
|
227
227
|
|
|
228
228
|
//基础
|
|
229
229
|
radius: 0,
|
|
@@ -422,7 +422,6 @@ export default {
|
|
|
422
422
|
this.$xdShowLoading({});
|
|
423
423
|
let tab = "all";
|
|
424
424
|
if (status) tab = this.tabList[this.tabIndex].status;
|
|
425
|
-
this.loadingList = true;
|
|
426
425
|
jfbRootExec("getBaseOrderList", {
|
|
427
426
|
vm: this,
|
|
428
427
|
data: {
|
|
@@ -8,6 +8,7 @@ import console from "@dcloudio/uni-h5/src/core/helpers/console";
|
|
|
8
8
|
export default {
|
|
9
9
|
style:[],
|
|
10
10
|
content:(params)=>{
|
|
11
|
+
console.log(params,'anananananana');
|
|
11
12
|
if(!params['isCarousel']) params['isCarousel'] = 1;
|
|
12
13
|
return [
|
|
13
14
|
{
|
|
@@ -220,7 +221,26 @@ export default {
|
|
|
220
221
|
{required: true, message: '请选择广告位置', trigger: 'change'},
|
|
221
222
|
],
|
|
222
223
|
},
|
|
223
|
-
params.poster && params.poster['type'] !== '1' && {
|
|
224
|
+
params.poster && params.poster['type']&& params.poster['type'] !== '1' && {
|
|
225
|
+
label: '广告背景图:',
|
|
226
|
+
ele: 'xd-upload',
|
|
227
|
+
valueKey: 'background',
|
|
228
|
+
value: params.background || {},
|
|
229
|
+
defaultValue: params.background || null,
|
|
230
|
+
slot: true,
|
|
231
|
+
oneWidth: 100,
|
|
232
|
+
oneHeight: 100,
|
|
233
|
+
elinputClassName: 'input40',
|
|
234
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
235
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
236
|
+
styleType: 'one',
|
|
237
|
+
uploadType: 'aliyun',
|
|
238
|
+
size: 5,
|
|
239
|
+
action: 'action',
|
|
240
|
+
sort: true,
|
|
241
|
+
maxlen: 100,
|
|
242
|
+
},
|
|
243
|
+
params.poster && params.poster['type']&& params.poster['type'] !== '1' && {
|
|
224
244
|
label: '广告位内容间距设置:',
|
|
225
245
|
ele: 'el-input',
|
|
226
246
|
type: 'number',
|
|
@@ -16,7 +16,12 @@
|
|
|
16
16
|
<view
|
|
17
17
|
class="jfb-base-poster__body"
|
|
18
18
|
v-if="noData"
|
|
19
|
-
:style="{
|
|
19
|
+
:style="{
|
|
20
|
+
margin: margin,
|
|
21
|
+
background: `url(${background})`,
|
|
22
|
+
backgroundSize: '100% 100%',
|
|
23
|
+
backgroundRepeat: 'no-repeat',
|
|
24
|
+
}
|
|
20
25
|
">
|
|
21
26
|
<!--一分屏-->
|
|
22
27
|
<template v-if="posterType === '1'">
|
|
@@ -50,6 +55,7 @@
|
|
|
50
55
|
}"
|
|
51
56
|
>
|
|
52
57
|
<xd-swiper-dot
|
|
58
|
+
v-if="pageSwiperShow"
|
|
53
59
|
:current="current"
|
|
54
60
|
:info="info"
|
|
55
61
|
field="content_name"
|
|
@@ -116,7 +122,7 @@
|
|
|
116
122
|
data() {
|
|
117
123
|
return {
|
|
118
124
|
selfMask: false,
|
|
119
|
-
|
|
125
|
+
pageSwiperShow:false,
|
|
120
126
|
params: {},
|
|
121
127
|
|
|
122
128
|
//Swiper 配置
|
|
@@ -146,6 +152,7 @@
|
|
|
146
152
|
},
|
|
147
153
|
isPreview: false,
|
|
148
154
|
noData:false,
|
|
155
|
+
background: '',
|
|
149
156
|
|
|
150
157
|
test: {
|
|
151
158
|
"content_id": "KpBbUKdj4aBejwe7Fh1ki",
|
|
@@ -296,10 +303,14 @@
|
|
|
296
303
|
created() {
|
|
297
304
|
this.init(this.container);
|
|
298
305
|
this.isPreview = this.$configProject.isPreview;
|
|
306
|
+
this.pageSwiperShow = this.$root.$isShow;
|
|
299
307
|
},
|
|
300
308
|
|
|
301
309
|
destroyed() {
|
|
302
|
-
this
|
|
310
|
+
if(this.isSupport==='Y') {
|
|
311
|
+
this.$xdRoot.$emit('setLayoutPageBg',null);
|
|
312
|
+
this.pageSwiperShow = false;
|
|
313
|
+
}
|
|
303
314
|
},
|
|
304
315
|
|
|
305
316
|
methods: {
|
|
@@ -315,19 +326,35 @@
|
|
|
315
326
|
return temp
|
|
316
327
|
},
|
|
317
328
|
handleAnimationfinish(e) {
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
//不支持背景不处理
|
|
332
|
+
if(this.isSupport==='N') return;
|
|
333
|
+
|
|
334
|
+
console.warn(`handleAnimationfinish.start`)
|
|
335
|
+
this.pageSwiperShow = this.$root.$isShow;
|
|
336
|
+
|
|
318
337
|
//当前组件已被隐藏或者轮播图记录为0条处理
|
|
319
|
-
if(this.$root.$isShow === false
|
|
338
|
+
if(this.$root.$isShow === false
|
|
339
|
+
|| this.info.length === 0
|
|
340
|
+
|| !(this.rows===1 && this.isCarousel===2) //可用模式
|
|
341
|
+
) {
|
|
320
342
|
this.$xdRoot.$emit("setLayoutPageBg", null);
|
|
343
|
+
console.warn(`handleAnimationfinish.disabel.poster`)
|
|
321
344
|
return
|
|
322
345
|
}
|
|
323
|
-
|
|
346
|
+
|
|
347
|
+
//开启背景图模式并且为轮播图模式
|
|
324
348
|
if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2) {
|
|
349
|
+
console.warn(`handleAnimationfinish.start.poster`)
|
|
350
|
+
this.currentImage = this.info[e.detail.current]['image_background_url']
|
|
325
351
|
let bg = null;
|
|
326
|
-
if(this.
|
|
352
|
+
if(this.currentImage) bg = this.currentImage;
|
|
327
353
|
this.$xdRoot.$emit("setLayoutPageBg", bg);
|
|
354
|
+
this.current = e.detail.current;
|
|
328
355
|
}
|
|
329
|
-
this.current = e.detail.current;
|
|
330
356
|
},
|
|
357
|
+
|
|
331
358
|
handleClick(item) {
|
|
332
359
|
//内部链接跳转地址
|
|
333
360
|
if (item.redirect_type === 'INN') {
|
|
@@ -420,6 +447,7 @@
|
|
|
420
447
|
this.rows = getContainerPropsValue(container, 'content.rows', 1);
|
|
421
448
|
this.isSupport = getContainerPropsValue(container, 'content.isSupport', 'Y');
|
|
422
449
|
this.mS = getContainerPropsValue(container, 'content.margin', this.getDefualtValue('margin'));
|
|
450
|
+
this.background = getContainerPropsValue(container, "content.background", {path: "",}).path;
|
|
423
451
|
|
|
424
452
|
//content
|
|
425
453
|
|
|
@@ -463,11 +491,30 @@
|
|
|
463
491
|
},
|
|
464
492
|
|
|
465
493
|
onJfbShow(){
|
|
494
|
+
//不支持背景不处理
|
|
495
|
+
if(this.isSupport==='N') return;
|
|
496
|
+
|
|
497
|
+
//启动轮播图
|
|
498
|
+
this.pageSwiperShow = this.$root.$isShow;
|
|
499
|
+
|
|
500
|
+
//隐藏模式或者数据为0不处理
|
|
501
|
+
if(this.$root.$isShow === false || this.info.length === 0) {
|
|
502
|
+
this.$xdRoot.$emit("setLayoutPageBg", null);
|
|
503
|
+
return;
|
|
504
|
+
}
|
|
505
|
+
|
|
466
506
|
if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2) {
|
|
467
507
|
this.$xdRoot.$emit("setLayoutPageBg", this.currentImage);
|
|
468
508
|
}
|
|
469
509
|
},
|
|
470
510
|
|
|
511
|
+
onJfbHide(){
|
|
512
|
+
if(this.isSupport==='Y') {
|
|
513
|
+
this.$xdRoot.$emit('setLayoutPageBg',null);
|
|
514
|
+
this.pageSwiperShow = false;
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
|
|
471
518
|
onJfbUpdate(data) {
|
|
472
519
|
this.onJfbLoad(this.params);
|
|
473
520
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description API模型
|
|
5
|
+
* 建议:Ffff=>模块 Xxxx=>自定义名字
|
|
6
|
+
* 获取单记录(getByIdFfffXxxx)
|
|
7
|
+
* 获取列表记录(getByListFfffXxxx)
|
|
8
|
+
* 添加列表记录(addFfffXxxxx)
|
|
9
|
+
* 删除列表记录(removeFfffXxxxx|deleteFfffXxxx)
|
|
10
|
+
* 更新列表记录(updateFfffXxxxx)
|
|
11
|
+
* @type {*[]}
|
|
12
|
+
*/
|
|
13
|
+
module.exports = [
|
|
14
|
+
{
|
|
15
|
+
mapFnName: 'getByIdFilmSquate', //自定义方法名字(必选)
|
|
16
|
+
title: '获取电影广场列表',
|
|
17
|
+
path: '/api/account/film/list-film-square',
|
|
18
|
+
isRule: false,
|
|
19
|
+
params: {
|
|
20
|
+
last_key: ['当前页', 'Number', '必选'],
|
|
21
|
+
page_size: ['每页数量', 'Number', '必选'],
|
|
22
|
+
},
|
|
23
|
+
isConsole: true,
|
|
24
|
+
disabled: true,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
mapFnName: 'updateFilmPaiqiDate', //自定义方法名字(必选)
|
|
28
|
+
title: '更新排期',
|
|
29
|
+
path: '/api/account/film/paiqi-date',
|
|
30
|
+
isRule: false,
|
|
31
|
+
params: {
|
|
32
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
33
|
+
cinema_id: ['影院id', 'Number', '必选'],
|
|
34
|
+
},
|
|
35
|
+
isConsole: true,
|
|
36
|
+
disabled: true,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
mapFnName: 'removeFilmAddress', //自定义方法名字(必选)
|
|
40
|
+
title: '删除我的配送地址',
|
|
41
|
+
path: '/api/account/film/paiqi-date',
|
|
42
|
+
isRule: false,
|
|
43
|
+
params: {
|
|
44
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
45
|
+
},
|
|
46
|
+
isConsole: true,
|
|
47
|
+
disabled: true,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
mapFnName: 'addFilmcart', //自定义方法名字(必选)
|
|
51
|
+
title: '添加购物车',
|
|
52
|
+
path: '/api/account/film/paiqi-date',
|
|
53
|
+
isRule: false,
|
|
54
|
+
params: {
|
|
55
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
56
|
+
},
|
|
57
|
+
isConsole: true,
|
|
58
|
+
disabled: true,
|
|
59
|
+
},
|
|
60
|
+
];
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
+
*/
|
|
6
|
+
export default {
|
|
7
|
+
style: [],
|
|
8
|
+
content: (data) => {
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
label: '背景颜色:', //label
|
|
12
|
+
ele: 'xd-color', //package 名称
|
|
13
|
+
valueKey: 'bgcolor', //form[valueKey]
|
|
14
|
+
value: data.bgcolor || '', //v-model
|
|
15
|
+
placeholder: '请输入占位框背景颜色',
|
|
16
|
+
classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
17
|
+
rules: [
|
|
18
|
+
{
|
|
19
|
+
required: true,
|
|
20
|
+
message: '请输入占位框背景颜色',
|
|
21
|
+
trigger: 'blur'
|
|
22
|
+
},
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: '选中路径:', //label
|
|
27
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
28
|
+
valueKey: 'select-pages-path', //form[valueKey]
|
|
29
|
+
value: data['select-pages-path'] || {},
|
|
30
|
+
setting: {
|
|
31
|
+
router: XdBus.getParentApi('getPagesTree')
|
|
32
|
+
},
|
|
33
|
+
inline: false,
|
|
34
|
+
},
|
|
35
|
+
data.bgcolor && {
|
|
36
|
+
label: '高度:', //label
|
|
37
|
+
ele: 'el-input', //package 名称
|
|
38
|
+
type: 'number',
|
|
39
|
+
valueKey: 'height', //form[valueKey]
|
|
40
|
+
value: data.height || 100, //v-model
|
|
41
|
+
placeholder: '请输入占位框高度,单位像素,默认:10px',
|
|
42
|
+
className: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
43
|
+
rules: [
|
|
44
|
+
{
|
|
45
|
+
required: true,
|
|
46
|
+
message: '请输入占位框高度',
|
|
47
|
+
trigger: 'blur'
|
|
48
|
+
},
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: '', //label
|
|
53
|
+
ele: 'slot', //package 名称
|
|
54
|
+
slot: 'is_reference',
|
|
55
|
+
},
|
|
56
|
+
].filter(i=>i)
|
|
57
|
+
},
|
|
58
|
+
advanced: [
|
|
59
|
+
{
|
|
60
|
+
label: '背景颜色:', //label
|
|
61
|
+
ele: 'xd-color', //package 名称
|
|
62
|
+
valueKey: 'bgcolor', //form[valueKey]
|
|
63
|
+
value: '', //v-model
|
|
64
|
+
placeholder: '请输入占位框背景颜色',
|
|
65
|
+
classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
66
|
+
rules: [
|
|
67
|
+
{
|
|
68
|
+
required: true,
|
|
69
|
+
message: '请输入占位框背景颜色',
|
|
70
|
+
trigger: 'blur'
|
|
71
|
+
},
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
label: '选中路径:', //label
|
|
76
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
77
|
+
valueKey: 'select-pages-path', //form[valueKey]
|
|
78
|
+
value: null,
|
|
79
|
+
setting: {
|
|
80
|
+
router: XdBus.getParentApi('getPagesTree')
|
|
81
|
+
},
|
|
82
|
+
inline: false,
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
label: '高度:', //label
|
|
86
|
+
ele: 'el-input', //package 名称
|
|
87
|
+
type: 'number',
|
|
88
|
+
valueKey: 'height', //form[valueKey]
|
|
89
|
+
value: null, //v-model
|
|
90
|
+
placeholder: '请输入占位框高度,单位像素,默认:10px',
|
|
91
|
+
classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
92
|
+
rules: [
|
|
93
|
+
{
|
|
94
|
+
required: true,
|
|
95
|
+
message: '请输入占位框高度',
|
|
96
|
+
trigger: 'blur'
|
|
97
|
+
},
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
label: '', //label
|
|
102
|
+
ele: 'slot', //package 名称
|
|
103
|
+
slot: 'is_reference',
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
class="jfb-base-poster-big-small"
|
|
4
|
+
@click="handleEditxSelect"
|
|
5
|
+
:class="{ editx : isEditx && active }"
|
|
6
|
+
>
|
|
7
|
+
<!--#ifdef H5-->
|
|
8
|
+
<view
|
|
9
|
+
class="jfb-base-poster-big-small__edit"
|
|
10
|
+
:class="{ editx : isEditx && active }"
|
|
11
|
+
v-if="isEditx && active"
|
|
12
|
+
>
|
|
13
|
+
<view class="jfb-base-poster-big-small__edit-icon" @click="delEdit">删除</view>
|
|
14
|
+
</view>
|
|
15
|
+
<!-- #endif -->
|
|
16
|
+
<view class="jfb-base-poster-big-small__body">
|
|
17
|
+
<view>测试插件( {{containerId}} )</view>
|
|
18
|
+
</view>
|
|
19
|
+
</view>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
24
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
25
|
+
import JfbBasePosterBigSmallMixin from "./JfbBasePosterBigSmallMixin";
|
|
26
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
27
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
28
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
29
|
+
export default {
|
|
30
|
+
name: "JfbBasePosterBigSmall",
|
|
31
|
+
components: {
|
|
32
|
+
XdFontIcon
|
|
33
|
+
},
|
|
34
|
+
mixins: [
|
|
35
|
+
componentsMixins, extsMixins, JfbBasePosterBigSmallMixin
|
|
36
|
+
],
|
|
37
|
+
data() {
|
|
38
|
+
return {
|
|
39
|
+
|
|
40
|
+
//todo
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
watch: {
|
|
44
|
+
container(value) {
|
|
45
|
+
this.init(value)
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
created() {
|
|
49
|
+
this.init(this.container);
|
|
50
|
+
|
|
51
|
+
//todo
|
|
52
|
+
},
|
|
53
|
+
methods: {
|
|
54
|
+
onJfbLoad(options) {
|
|
55
|
+
|
|
56
|
+
// jfbRootExec('baiduUserLogin', {
|
|
57
|
+
|
|
58
|
+
// vm: this,// data: {
|
|
59
|
+
|
|
60
|
+
// account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
|
|
61
|
+
|
|
62
|
+
// }
|
|
63
|
+
|
|
64
|
+
// }).then().catch()
|
|
65
|
+
},
|
|
66
|
+
/**
|
|
67
|
+
* @description 监听事件变化
|
|
68
|
+
* @param container {object} 业务组件对象自己
|
|
69
|
+
*/
|
|
70
|
+
init(container) {
|
|
71
|
+
|
|
72
|
+
//this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
|
|
73
|
+
|
|
74
|
+
//this.height = getContainerPropsValue(container, 'content.height', 10);
|
|
75
|
+
},
|
|
76
|
+
onJfbScroll(options) {
|
|
77
|
+
console.log('event.onJfbScroll', options)
|
|
78
|
+
},
|
|
79
|
+
onJfbReachBottom(options) {
|
|
80
|
+
console.log('event.onJfbReachBottom', options)
|
|
81
|
+
},
|
|
82
|
+
onJfbShow(options) {
|
|
83
|
+
console.log('event.onJfbShow', options)
|
|
84
|
+
},
|
|
85
|
+
onJfbHide(options) {
|
|
86
|
+
console.log('event.onJfbHide', options)
|
|
87
|
+
},
|
|
88
|
+
onJfbBack(options) {
|
|
89
|
+
console.log('event.onJfbBack', options)
|
|
90
|
+
},
|
|
91
|
+
onJfbUpdate(...data) {
|
|
92
|
+
console.log('event.onJfbUpdate', data)
|
|
93
|
+
},
|
|
94
|
+
onJfbCustomEvent(options) {
|
|
95
|
+
console.log('event.onJfbReachBottom', options)
|
|
96
|
+
},
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
</script>
|
|
101
|
+
|
|
102
|
+
<style scoped lang="less">
|
|
103
|
+
@import "./JfbBasePosterBigSmallLess.less";
|
|
104
|
+
|
|
105
|
+
.jfb-base-poster-big-small {
|
|
106
|
+
&__body{
|
|
107
|
+
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
</style>
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @desc 获取绝对路径完整地址
|
|
3
|
+
* @param @path
|
|
4
|
+
**/
|
|
5
|
+
//例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
|
|
6
|
+
@basePath: 'business/';
|
|
7
|
+
@doMain: '//sandbox-img.jufubao.cn/';
|
|
8
|
+
|
|
9
|
+
.getBusinessImageUrl(@path, @size: 'size8') {
|
|
10
|
+
@url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
|
|
11
|
+
background-image: url(@url);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//start
|
|
15
|
+
.jfb-base-poster-big-small {
|
|
16
|
+
border: 1px dashed rgba(0, 0, 0, 0);
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
min-height: unit(50, rpx);
|
|
19
|
+
|
|
20
|
+
&__body{
|
|
21
|
+
position: relative;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
z-index: 2
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.editx {
|
|
27
|
+
position: relative;
|
|
28
|
+
border: 1px dashed blue;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
z-index: 3
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:hover {
|
|
35
|
+
border: 1px dashed blue;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.noBorder {
|
|
39
|
+
border-color: rgba(0,0,0,0);
|
|
40
|
+
border-width: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
&__edit {
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
position: absolute;
|
|
47
|
+
right: unit(0, rpx);
|
|
48
|
+
top: unit(-52, rpx);
|
|
49
|
+
height: unit(50, rpx);
|
|
50
|
+
line-height: unit(50, rpx);
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
align-items: center;
|
|
54
|
+
background: rgba(0, 0, 0, .6);
|
|
55
|
+
border-radius: unit(10, rpx);
|
|
56
|
+
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
57
|
+
color: #fff;
|
|
58
|
+
font-size: unit(22, rpx);
|
|
59
|
+
|
|
60
|
+
&-icon{
|
|
61
|
+
padding: 0 unit(20, rpx);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.editx {
|
|
65
|
+
box-sizing: border-box;
|
|
66
|
+
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
//end
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**notPreview**/
|
|
74
|
+
.jfb-base-poster-big-small {
|
|
75
|
+
&:before {
|
|
76
|
+
content: " ";
|
|
77
|
+
display: table;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**endNotPreview**/
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
//@AttrImport
|
|
5
|
+
import Attr from "./Attr";
|
|
6
|
+
//@EndAttrImport
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
data() {
|
|
11
|
+
return {
|
|
12
|
+
//#ifdef H5
|
|
13
|
+
|
|
14
|
+
//@AttrData
|
|
15
|
+
Attr:{}, //对外开发编辑属性
|
|
16
|
+
//@EndAttrData
|
|
17
|
+
|
|
18
|
+
// #endif
|
|
19
|
+
cssRoot: 'jfb-base-poster-big-small'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -123,7 +123,7 @@ export default {
|
|
|
123
123
|
orderList: [],
|
|
124
124
|
detailPath: "",
|
|
125
125
|
payPath: "",
|
|
126
|
-
loadingList:
|
|
126
|
+
loadingList: true,
|
|
127
127
|
|
|
128
128
|
//基础
|
|
129
129
|
radius: 0,
|
|
@@ -240,7 +240,6 @@ export default {
|
|
|
240
240
|
}).value;
|
|
241
241
|
},
|
|
242
242
|
getList() {
|
|
243
|
-
this.loadingList = true;
|
|
244
243
|
jfbRootExec("getRechargeOrderList", {
|
|
245
244
|
vm: this,
|
|
246
245
|
data: {
|
|
@@ -98,6 +98,9 @@
|
|
|
98
98
|
<view class="jfb-base-success__body-cashier-text">
|
|
99
99
|
{{ info.codes[0].can_read_code }}
|
|
100
100
|
</view>
|
|
101
|
+
<view v-if="info.codes[0].refund_tip_text" style="color:red;font-size:24rpx;text-align:center;margin-top:10rpx">
|
|
102
|
+
{{info.codes[0].refund_tip_text}}
|
|
103
|
+
</view>
|
|
101
104
|
<view
|
|
102
105
|
v-if="info.codes[0].code_end_time"
|
|
103
106
|
class="jfb-base-success__body-cashier-code"
|