jufubao-base 1.0.64-beta200 → 1.0.64-beta300
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 +2 -2
- package/src/components/JfbBaseNotice/Attr.js +9 -8
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +231 -101
- package/src/components/JfbBaseNotice/XdNoticeBar.vue +519 -0
- package/src/components/JfbBaseOrderDetail/Attr.js +13 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +22 -20
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +1 -1
- package/src/components/JfbBasePay/Attr.js +12 -13
- package/src/components/JfbBasePay/JfbBasePay.vue +15 -7
- package/src/components/JfbBasePoster/Attr.js +11 -1
- package/src/components/JfbBasePoster/JfbBasePoster.vue +49 -5
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +23 -23
|
@@ -229,6 +229,13 @@ export default {
|
|
|
229
229
|
prod_bottom() {
|
|
230
230
|
return this.fixedStyle({ height: 0, zIndex: 111 });
|
|
231
231
|
},
|
|
232
|
+
getSuccessUrl(){
|
|
233
|
+
let url = this.paySuccessPath;
|
|
234
|
+
if(this.type === 'recharge') {
|
|
235
|
+
url = this.rechargeSuccessPath || url;
|
|
236
|
+
}
|
|
237
|
+
return url
|
|
238
|
+
},
|
|
232
239
|
...styleForm.getComputedItem(),
|
|
233
240
|
},
|
|
234
241
|
created() {
|
|
@@ -247,7 +254,7 @@ export default {
|
|
|
247
254
|
this.type = options.type;
|
|
248
255
|
this.p_getPayOrderDetail();
|
|
249
256
|
this.p_getListUserPayChannel();
|
|
250
|
-
|
|
257
|
+
|
|
251
258
|
//充值不进行检查订单状态
|
|
252
259
|
if(this.type !== 'recharge') {
|
|
253
260
|
this.p_getBaseOrderDetail();
|
|
@@ -381,8 +388,9 @@ export default {
|
|
|
381
388
|
},
|
|
382
389
|
})
|
|
383
390
|
.then((res) => {
|
|
384
|
-
|
|
385
|
-
|
|
391
|
+
this.$xdUniHelper.redirectTo({
|
|
392
|
+
url: this.getSuccessUrl + `?order_id=${this.main_order_id}`
|
|
393
|
+
});
|
|
386
394
|
})
|
|
387
395
|
.catch(error=>{
|
|
388
396
|
this.$xdLog.setARMSCustomError('update_loading_fail', {options: this.options, error});
|
|
@@ -449,7 +457,7 @@ export default {
|
|
|
449
457
|
if (flat) this.channel_provider_id = channel_provider_id;
|
|
450
458
|
else this.channel_provider_id = "";
|
|
451
459
|
},
|
|
452
|
-
|
|
460
|
+
|
|
453
461
|
onJfbBack(options) {
|
|
454
462
|
this.$xdUniHelper.navigateBack();
|
|
455
463
|
},
|
|
@@ -506,11 +514,11 @@ export default {
|
|
|
506
514
|
border-radius: 10rpx;
|
|
507
515
|
margin: 0 auto 30rpx auto;
|
|
508
516
|
padding: 30rpx 0 10rpx;
|
|
509
|
-
|
|
517
|
+
|
|
510
518
|
&:last-child {
|
|
511
519
|
margin-bottom: 0;
|
|
512
520
|
}
|
|
513
|
-
|
|
521
|
+
|
|
514
522
|
._header {
|
|
515
523
|
display: flex;
|
|
516
524
|
justify-content: space-between;
|
|
@@ -579,7 +587,7 @@ export default {
|
|
|
579
587
|
align-items: center;
|
|
580
588
|
height: unit(120, rpx);
|
|
581
589
|
background: #ffffff;
|
|
582
|
-
|
|
590
|
+
|
|
583
591
|
&-mask {
|
|
584
592
|
height: unit(120, rpx);
|
|
585
593
|
}
|
|
@@ -25,6 +25,7 @@ export default {
|
|
|
25
25
|
if(data) {
|
|
26
26
|
data.params = Object.assign({}, {scene: 'normal'}, data.params || {})
|
|
27
27
|
}
|
|
28
|
+
console.log(action,data,'hjhjhjhjhj');
|
|
28
29
|
|
|
29
30
|
//获取显示内容
|
|
30
31
|
if (action === 'screenList') {
|
|
@@ -336,7 +337,16 @@ export default {
|
|
|
336
337
|
{"label": "两行", "value": 2},
|
|
337
338
|
]
|
|
338
339
|
},
|
|
339
|
-
|
|
340
|
+
params['isCarousel']===2&¶ms['rows']===1&&{
|
|
341
|
+
label: '是否启用配套背景:',
|
|
342
|
+
ele: 'xd-radio',
|
|
343
|
+
valueKey: 'isSupport',
|
|
344
|
+
value: params['isSupport'] || 'Y',
|
|
345
|
+
list: [
|
|
346
|
+
{"label": "启用", "value": 'Y'},
|
|
347
|
+
{"label": "禁用", "value": 'N'},
|
|
348
|
+
]
|
|
349
|
+
},
|
|
340
350
|
|
|
341
351
|
].filter(i=>i)
|
|
342
352
|
},
|
|
@@ -83,6 +83,9 @@
|
|
|
83
83
|
:content="info"
|
|
84
84
|
></more-screen>
|
|
85
85
|
</view>
|
|
86
|
+
<view v-for="(item,index) in info" :key="index" style="position: absolute; top: -19999px; left: -100000px">
|
|
87
|
+
<image :src="item.image_background_url" ></image>
|
|
88
|
+
</view>
|
|
86
89
|
</view>
|
|
87
90
|
</template>
|
|
88
91
|
|
|
@@ -131,6 +134,8 @@
|
|
|
131
134
|
rows: 1, //四分屏起作用
|
|
132
135
|
radius: 0,
|
|
133
136
|
timer: null,
|
|
137
|
+
isSupport: 'Y',
|
|
138
|
+
currentImage: '',
|
|
134
139
|
info: [],
|
|
135
140
|
mS: {
|
|
136
141
|
top: 0,
|
|
@@ -258,7 +263,34 @@
|
|
|
258
263
|
this.timer = setTimeout(()=>{
|
|
259
264
|
if (this.$configProject['isPreview']) this.onJfbLoad()
|
|
260
265
|
}, 400)
|
|
261
|
-
}
|
|
266
|
+
},
|
|
267
|
+
isSupport(n,o) {
|
|
268
|
+
if(this.isPreview) {
|
|
269
|
+
if(n==='N') {
|
|
270
|
+
this.$xdRoot.$emit("setLayoutPageBg", null);
|
|
271
|
+
} else {
|
|
272
|
+
this.$xdRoot.$emit("setLayoutPageBg", this.currentImage);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
rows(n,o) {
|
|
277
|
+
if(this.isPreview) {
|
|
278
|
+
if(n!==1) {
|
|
279
|
+
this.$xdRoot.$emit("setLayoutPageBg", null);
|
|
280
|
+
} else {
|
|
281
|
+
this.$xdRoot.$emit("setLayoutPageBg", this.currentImage);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
isCarousel(n,o) {
|
|
286
|
+
if(this.isPreview) {
|
|
287
|
+
if(n!==2) {
|
|
288
|
+
this.$xdRoot.$emit("setLayoutPageBg", null);
|
|
289
|
+
} else {
|
|
290
|
+
this.$xdRoot.$emit("setLayoutPageBg", this.currentImage);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
},
|
|
262
294
|
},
|
|
263
295
|
created() {
|
|
264
296
|
this.init(this.container);
|
|
@@ -276,7 +308,11 @@
|
|
|
276
308
|
}
|
|
277
309
|
return temp
|
|
278
310
|
},
|
|
279
|
-
handleAnimationfinish(e) {
|
|
311
|
+
handleAnimationfinish(e) {
|
|
312
|
+
this.currentImage = this.info[e.detail.current]['image_background_url']
|
|
313
|
+
if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2) {
|
|
314
|
+
this.$xdRoot.$emit("setLayoutPageBg", this.info[e.detail.current]['image_background_url']);
|
|
315
|
+
}
|
|
280
316
|
this.current = e.detail.current;
|
|
281
317
|
},
|
|
282
318
|
handleClick(item) {
|
|
@@ -329,15 +365,21 @@
|
|
|
329
365
|
}
|
|
330
366
|
},
|
|
331
367
|
handleImage(list){
|
|
332
|
-
return list.map(item => {
|
|
368
|
+
return list.map((item,index) => {
|
|
333
369
|
return {
|
|
334
370
|
...item,
|
|
371
|
+
image_background_url: getServiceUrl(item.image_background_url),
|
|
335
372
|
image_url: getServiceUrl(item.image_url)
|
|
336
373
|
}
|
|
337
374
|
})
|
|
338
375
|
},
|
|
339
376
|
handleOne(list){
|
|
340
377
|
this.info = this.handleImage(list);
|
|
378
|
+
let current = this.current || 0;
|
|
379
|
+
this.currentImage = this.info[current]['image_background_url']
|
|
380
|
+
if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2) {
|
|
381
|
+
this.$xdRoot.$emit("setLayoutPageBg", this.currentImage);
|
|
382
|
+
}
|
|
341
383
|
},
|
|
342
384
|
|
|
343
385
|
getDefualtValue(key){
|
|
@@ -355,17 +397,18 @@
|
|
|
355
397
|
if (this.poster.type) {
|
|
356
398
|
this.posterType = this.poster.type
|
|
357
399
|
}
|
|
358
|
-
if(this.poster.position) {
|
|
400
|
+
if(this.poster.position) {
|
|
359
401
|
this.posterPosition = this.poster.position
|
|
360
402
|
}
|
|
361
403
|
this.radius = getContainerPropsValue(container, 'content.radius', 0);
|
|
362
404
|
this.padding = getContainerPropsValue(container, 'content.padding', 0);
|
|
363
405
|
this.rows = getContainerPropsValue(container, 'content.rows', 1);
|
|
406
|
+
this.isSupport = getContainerPropsValue(container, 'content.isSupport', 'Y');
|
|
364
407
|
this.mS = getContainerPropsValue(container, 'content.margin', this.getDefualtValue('margin'));
|
|
365
408
|
|
|
366
409
|
//content
|
|
367
410
|
this.mode = getContainerPropsValue(container, 'content.dot_type', 'dot');
|
|
368
|
-
this.isCarousel = getContainerPropsValue(container, 'content.isCarousel', 1)
|
|
411
|
+
this.isCarousel = getContainerPropsValue(container, 'content.isCarousel', 1);
|
|
369
412
|
this.carouselTime = Number(getContainerPropsValue(container, 'content.carouselTime', 5)) * 1000;
|
|
370
413
|
this.useNumber = getContainerPropsValue(container, 'content.number', 1);
|
|
371
414
|
|
|
@@ -386,6 +429,7 @@
|
|
|
386
429
|
},
|
|
387
430
|
})
|
|
388
431
|
.then(res => {
|
|
432
|
+
|
|
389
433
|
if(res.list.length === 0 && this.isPreview) {
|
|
390
434
|
res.list = this.getTestData();
|
|
391
435
|
}
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
class="my-order__content-type-item-number"
|
|
52
52
|
>{{item.num}}</view>
|
|
53
53
|
</view>
|
|
54
|
-
<view :style="{color: color}" class="my-order__content-type-item-text">{{item.label}}</view>
|
|
54
|
+
<view :style="{color: color}" class="my-order__content-type-item-text">{{item.customName || item.label}}</view>
|
|
55
55
|
</view>
|
|
56
56
|
</view>
|
|
57
57
|
</view>
|
|
@@ -89,22 +89,22 @@
|
|
|
89
89
|
return {
|
|
90
90
|
options: {},
|
|
91
91
|
list: [],
|
|
92
|
-
|
|
92
|
+
|
|
93
93
|
//基础
|
|
94
94
|
color: '#333',
|
|
95
95
|
backgroundColor: 'rgba(0,0,0,0)',
|
|
96
96
|
radius: 0,
|
|
97
97
|
iconColor: '',
|
|
98
|
-
|
|
98
|
+
|
|
99
99
|
//边框
|
|
100
100
|
is_border: 'Y',
|
|
101
101
|
is_border_w: 0,
|
|
102
102
|
is_border_c: '',
|
|
103
|
-
|
|
103
|
+
|
|
104
104
|
//其他
|
|
105
105
|
afterUrl: null,
|
|
106
106
|
orderListUrl: null,
|
|
107
|
-
|
|
107
|
+
|
|
108
108
|
//整体
|
|
109
109
|
bodyPadding: {top: 20, left: 20, right: 20, bottom: 20},
|
|
110
110
|
bodyRadius: 0,
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
methods: {
|
|
125
125
|
onJfbLoad(options) {
|
|
126
126
|
this.options = options;
|
|
127
|
-
|
|
127
|
+
|
|
128
128
|
//处理方法
|
|
129
129
|
const handle = (res)=>{
|
|
130
130
|
this.list = this.list.map(item => {
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
}
|
|
135
135
|
})
|
|
136
136
|
};
|
|
137
|
-
|
|
137
|
+
|
|
138
138
|
//Preview
|
|
139
139
|
if(this.$configProject.isPreview) {
|
|
140
140
|
setTimeout(() => {
|
|
@@ -158,38 +158,38 @@
|
|
|
158
158
|
console.error('getBaseOrderListCount', error)
|
|
159
159
|
})
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
|
|
162
162
|
},
|
|
163
163
|
/**
|
|
164
164
|
* @description 监听事件变化
|
|
165
165
|
* @param container {object} 业务组件对象自己
|
|
166
166
|
*/
|
|
167
167
|
init(container) {
|
|
168
|
-
|
|
168
|
+
|
|
169
169
|
//整体
|
|
170
170
|
this.bodyMargin = getContainerPropsValue(container, 'content.bodyMargin', {top: 0, left: 0, right: 0, bottom: 0});
|
|
171
171
|
this.bodyRadius = getContainerPropsValue(container, 'content.bodyRadius', 0);
|
|
172
172
|
this.bodyBackgroundColor = getContainerPropsValue(container, 'content.bodyBackgroundColor', 'rgba(0,0,0,0)');
|
|
173
173
|
this.bodyPadding = getContainerPropsValue(container, 'content.bodyPadding', {top: 20, left: 20, right: 20, bottom: 20});
|
|
174
174
|
this.cardNameColor = getContainerPropsValue(container, 'content.cardNameColor', '#333');
|
|
175
|
-
|
|
175
|
+
|
|
176
176
|
//其他
|
|
177
177
|
this.afterUrl = getContainerPropsValue(container, 'content.after_url', {value: ''}).value;
|
|
178
178
|
this.orderListUrl = getContainerPropsValue(container, 'content.order_url', {value: ''}).value;
|
|
179
179
|
this.margin = getContainerPropsValue(container, 'content.margin', {top: 0, left: 0, right: 0, bottom: 0});
|
|
180
|
-
|
|
180
|
+
|
|
181
181
|
//基础
|
|
182
182
|
this.radius = getContainerPropsValue(container, 'content.radius', 0);
|
|
183
183
|
this.color = getContainerPropsValue(container, 'content.textColor', '#333');
|
|
184
184
|
this.iconColor = getContainerPropsValue(container, 'content.iconColor', this.mainColor);
|
|
185
185
|
this.backgroundColor = getContainerPropsValue(container, 'content.backgroundColor', '#f8f8f8');
|
|
186
|
-
|
|
186
|
+
|
|
187
187
|
//边框
|
|
188
188
|
this.is_border = getContainerPropsValue(container, 'content.is_border', 'N');
|
|
189
189
|
this.is_border_c = getContainerPropsValue(container, 'content.is_border_c', '#f8f8f8');
|
|
190
190
|
this.is_border_w = getContainerPropsValue(container, 'content.is_border_w', '2');
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
|
|
192
|
+
|
|
193
193
|
this.list = getContainerPropsValue(container, 'content.orderTypeList', []).map(item=>{
|
|
194
194
|
return {
|
|
195
195
|
...item,
|
|
@@ -198,17 +198,17 @@
|
|
|
198
198
|
}
|
|
199
199
|
})
|
|
200
200
|
},
|
|
201
|
-
|
|
201
|
+
|
|
202
202
|
onJfbShow(options) {
|
|
203
203
|
this.onJfbLoad(options);
|
|
204
204
|
},
|
|
205
|
-
|
|
205
|
+
|
|
206
206
|
handleToLink(path, type) {
|
|
207
207
|
this.$xdUniHelper.navigateTo({
|
|
208
208
|
url: type ? `${path}?type=${type}` : path
|
|
209
209
|
})
|
|
210
210
|
},
|
|
211
|
-
|
|
211
|
+
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
|
|
@@ -222,14 +222,14 @@
|
|
|
222
222
|
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
|
|
225
|
+
|
|
226
226
|
.my-order {
|
|
227
227
|
&__add {
|
|
228
228
|
display: flex;
|
|
229
229
|
justify-content: space-between;
|
|
230
230
|
align-items: center;
|
|
231
231
|
font-size: unit(28, rpx);
|
|
232
|
-
|
|
232
|
+
|
|
233
233
|
& > view:nth-child(2) {
|
|
234
234
|
width: unit(200, rpx);
|
|
235
235
|
height: unit(60, rpx);
|
|
@@ -246,12 +246,12 @@
|
|
|
246
246
|
justify-content: space-around;
|
|
247
247
|
align-items: center;
|
|
248
248
|
padding: unit(40, rpx) unit(20, rpx) unit(35, rpx);
|
|
249
|
-
|
|
249
|
+
|
|
250
250
|
&-item {
|
|
251
251
|
font-size: unit(24, rpx);
|
|
252
252
|
color: #999999;
|
|
253
253
|
flex: 1;
|
|
254
|
-
|
|
254
|
+
|
|
255
255
|
&-icon {
|
|
256
256
|
height: unit(40, rpx);
|
|
257
257
|
width: unit(40, rpx);
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
margin: 0 auto;
|
|
262
262
|
position: relative;
|
|
263
263
|
}
|
|
264
|
-
|
|
264
|
+
|
|
265
265
|
&-text {
|
|
266
266
|
padding-top: unit(10, rpx);
|
|
267
267
|
width: 100%;
|
|
@@ -270,7 +270,7 @@
|
|
|
270
270
|
line-height: unit(48, rpx);
|
|
271
271
|
text-align: center;
|
|
272
272
|
}
|
|
273
|
-
|
|
273
|
+
|
|
274
274
|
&-number {
|
|
275
275
|
position: absolute;
|
|
276
276
|
top: unit(-20, rpx);
|