jufubao-base 1.0.159-beta8 → 1.0.159
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 +70 -201
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +6 -7
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +3 -5
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +2 -3
- package/src/components/JfbBaseBack/JfbBaseBack.vue +8 -10
- package/src/components/JfbBaseBackground/JfbBaseBackground.vue +2 -3
- package/src/components/JfbBaseBlock/JfbBaseBlock.vue +2 -3
- package/src/components/JfbBaseCard/JfbBaseCard.vue +6 -10
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +26 -57
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetail.vue +15 -14
- package/src/components/JfbBaseCardDetailEntry/Attr.js +0 -22
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +423 -390
- package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +4 -4
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +9 -7
- package/src/components/JfbBaseCardEntry/Attr.js +1 -22
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +33 -86
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +19 -36
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +4 -9
- package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +3 -4
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +18 -23
- package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +11 -4
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +19 -16
- package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfo.vue +2 -3
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +18 -34
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +14 -14
- package/src/components/JfbBaseCity/JfbBaseCity.vue +2 -3
- package/src/components/JfbBaseClear/JfbBaseClear.vue +2 -3
- package/src/components/JfbBaseConDialog/Api.js +13 -1
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +79 -20
- package/src/components/JfbBaseConDialog/XdCouCardBind.vue +223 -133
- package/src/components/JfbBaseConList/Api.js +13 -1
- package/src/components/JfbBaseConList/Attr.js +11 -0
- package/src/components/JfbBaseConList/JfbBaseConList.vue +355 -123
- package/src/components/JfbBaseConList/Mock.js +1 -1
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +2 -3
- package/src/components/JfbBaseEntry/Attr.js +0 -22
- package/src/components/JfbBaseEntry/JfbBaseEntry.vue +16 -80
- package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetail.vue +4 -3
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +20 -31
- package/src/components/JfbBaseFastLink/XdFastNav.vue +2 -2
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +1 -0
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +2 -3
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +11 -28
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +9 -7
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwd.vue +6 -9
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlay.vue +5 -19
- package/src/components/JfbBaseMapOverlay/XdMapOverlay.vue +37 -52
- package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +2 -3
- package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCard.vue +27 -28
- package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpress.vue +5 -5
- package/src/components/JfbBaseMy/JfbBaseMy.vue +3 -3
- package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +4 -6
- package/src/components/JfbBaseNotice/Attr.js +2 -0
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +14 -36
- package/src/components/JfbBaseNotice/XdNoticeBar.vue +1 -17
- package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottom.vue +2 -3
- package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTop.vue +2 -3
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +31 -20
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +4 -9
- package/src/components/JfbBasePay/JfbBasePay.vue +2 -3
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +7 -22
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +7 -23
- package/src/components/JfbBasePoster/JfbBasePoster.vue +18 -118
- package/src/components/JfbBasePoster/MoreScreen.vue +37 -155
- package/src/components/JfbBasePosterBigSmall/Attr.js +4 -1
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +67 -191
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +20 -90
- package/src/components/JfbBasePosterType/FourScreen.vue +18 -162
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +35 -0
- package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +4 -4
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +4 -3
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +7 -4
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +9 -6
- package/src/components/JfbBaseSearch/JfbBaseSearch.vue +2 -3
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +4 -5
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +2 -3
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +3 -5
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +3 -4
- package/src/components/JfbBaseVideo/JfbBaseVideo.vue +11 -14
- package/src/components/JfbBaseVideo/XdVideo.vue +4 -0
- package/src/components/JfbBaseWallet/JfbBaseWallet.vue +2 -3
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetail.vue +8 -5
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffective.vue +8 -5
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +17 -7
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +21 -13
- package/src/components/JfbBaseWebview/JfbBaseWebview.vue +3 -4
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +4 -5
- package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeError.vue +4 -3
- package/src/mixins/colorCardMixins.js +1 -1
|
@@ -37,54 +37,8 @@
|
|
|
37
37
|
field="content_name"
|
|
38
38
|
:mode="config.mode"
|
|
39
39
|
:dots-styles="config.dotStyleData"
|
|
40
|
-
:style="{height: (getHeight) + 'px'
|
|
40
|
+
:style="{height: (getHeight) + 'px'}"
|
|
41
41
|
>
|
|
42
|
-
<!--#ifdef MP-WEIXIN-->
|
|
43
|
-
<swiper
|
|
44
|
-
class="swiper xd-swiper-content"
|
|
45
|
-
:style="{width: '100%', height: getHeight + 'px'}"
|
|
46
|
-
:indicator-dots="false"
|
|
47
|
-
:autoplay="config.carouselTime > 0"
|
|
48
|
-
:interval="config.carouselTime"
|
|
49
|
-
:duration="500"
|
|
50
|
-
:current="current"
|
|
51
|
-
circular
|
|
52
|
-
@animationfinish="handleAnimationfinish"
|
|
53
|
-
>
|
|
54
|
-
<swiper-item
|
|
55
|
-
v-for="(item,index) in list"
|
|
56
|
-
:key="index"
|
|
57
|
-
:style="{width: '100%', height: getHeight + 'px'}"
|
|
58
|
-
>
|
|
59
|
-
<view
|
|
60
|
-
class="sreen__box-list"
|
|
61
|
-
:class="{
|
|
62
|
-
cell4: config.cells === 4,
|
|
63
|
-
cell5: config.cells === 5,
|
|
64
|
-
}"
|
|
65
|
-
:style="{ height: getHeight + 'px'}"
|
|
66
|
-
>
|
|
67
|
-
<view
|
|
68
|
-
v-for="it in item"
|
|
69
|
-
:key="it['content_id']"
|
|
70
|
-
:style="{height: boxHeight + 'px'}"
|
|
71
|
-
@click="handleClick(it)"
|
|
72
|
-
>
|
|
73
|
-
<view :style="{ height: height + 'px'}">
|
|
74
|
-
<view :style="{
|
|
75
|
-
borderRadius: config.radius + 'rpx',
|
|
76
|
-
boxShadow: config.shadow === 1? `0 0 10rpx rgba(0, 0, 0, .5)` : '',
|
|
77
|
-
}">
|
|
78
|
-
<image :src="it.image_url"></image>
|
|
79
|
-
</view>
|
|
80
|
-
</view>
|
|
81
|
-
<view v-if="it['content_name']" :style="{color: config.textColor}">{{it['content_name']}}</view>
|
|
82
|
-
</view>
|
|
83
|
-
</view>
|
|
84
|
-
</swiper-item>
|
|
85
|
-
</swiper>
|
|
86
|
-
<!--#endif-->
|
|
87
|
-
<!--#ifdef H5-->
|
|
88
42
|
<xd-swiper
|
|
89
43
|
:indicator-dots="false"
|
|
90
44
|
:interval="config.carouselTime"
|
|
@@ -127,7 +81,6 @@
|
|
|
127
81
|
</view>
|
|
128
82
|
</template>
|
|
129
83
|
</xd-swiper>
|
|
130
|
-
<!--#endif-->
|
|
131
84
|
</xd-swiper-dot>
|
|
132
85
|
</view>
|
|
133
86
|
</view>
|
|
@@ -162,27 +115,12 @@
|
|
|
162
115
|
padding: 0,
|
|
163
116
|
status: false,
|
|
164
117
|
list: [],
|
|
165
|
-
filterContentList:[],
|
|
166
118
|
isPreview: false,
|
|
167
119
|
current: 0,
|
|
168
120
|
}
|
|
169
121
|
},
|
|
170
122
|
computed:{
|
|
171
123
|
getHeight() {
|
|
172
|
-
let len = this.filterContentList.length
|
|
173
|
-
|
|
174
|
-
//数量小于等于2,3行
|
|
175
|
-
if(len <= this.config.cells) {
|
|
176
|
-
return this.height + this.rpxText
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
//三行小于等于两个数量
|
|
180
|
-
if(this.config.jdRows === 3) {
|
|
181
|
-
if(len <= this.config.cells * 2) {
|
|
182
|
-
return this.height * 2 + this.rpxText * 2
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
124
|
return this.height * this.config.jdRows + this.rpxText * this.config.jdRows;
|
|
187
125
|
},
|
|
188
126
|
rpxText(){
|
|
@@ -209,65 +147,6 @@
|
|
|
209
147
|
handleAnimationfinish(e) {
|
|
210
148
|
this.current = e.detail.current;
|
|
211
149
|
},
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* @description 过滤不可以用
|
|
215
|
-
* 当前项目未H5时,过滤所有小程序应用
|
|
216
|
-
* 当前项目未小程序时,过滤所有非当前小程序应用
|
|
217
|
-
* 站外地址直接返回
|
|
218
|
-
* 站内地址未选值直接返回
|
|
219
|
-
* 预览模式全过
|
|
220
|
-
*/
|
|
221
|
-
filterItem(){
|
|
222
|
-
let content = this.content.filter(item=>{
|
|
223
|
-
//预览模式
|
|
224
|
-
if( this.$configProject.isPreview) return true;
|
|
225
|
-
|
|
226
|
-
//非内部应用
|
|
227
|
-
if(item.redirect_type !== 'INN') return true
|
|
228
|
-
|
|
229
|
-
//没有配置链接
|
|
230
|
-
if(!item.redirect_data) return true;
|
|
231
|
-
|
|
232
|
-
//内部应用
|
|
233
|
-
else {
|
|
234
|
-
let redirect_data;
|
|
235
|
-
try {
|
|
236
|
-
redirect_data = JSON.parse(item.redirect_data);
|
|
237
|
-
if(!item['app_type']) item['app_type']= 'h5';
|
|
238
|
-
|
|
239
|
-
//#ifdef H5
|
|
240
|
-
return item['app_type'] !== 'wxmp';
|
|
241
|
-
//#endif
|
|
242
|
-
|
|
243
|
-
//#ifdef MP-WEIXIN
|
|
244
|
-
let actDir = this.$parent.projectAttr.deploy_dir;
|
|
245
|
-
let dir = this.getPathDir(redirect_data.page);
|
|
246
|
-
if(item['app_type'] === 'wxmp'){
|
|
247
|
-
return actDir === dir;
|
|
248
|
-
}
|
|
249
|
-
else if(item['app_type'] === 'h5') return true;
|
|
250
|
-
else return true
|
|
251
|
-
//#endif
|
|
252
|
-
}
|
|
253
|
-
catch (e) {
|
|
254
|
-
return true
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
console.warn(`PostTypeLists:${JSON.stringify(content.map(item=>`${item.app_type}:${item.content_name}:${item.redirect_data}`), null,2)}`)
|
|
259
|
-
this.filterContentList = this.$xdUniHelper.cloneDeep(content);
|
|
260
|
-
return content;
|
|
261
|
-
|
|
262
|
-
},
|
|
263
|
-
|
|
264
|
-
getPathDir(pathDir){
|
|
265
|
-
if(pathDir.indexOf('@site_domain@/') === 0) {
|
|
266
|
-
return pathDir.replace('@site_domain@/','').split('/')[0]
|
|
267
|
-
}
|
|
268
|
-
return ''
|
|
269
|
-
},
|
|
270
|
-
|
|
271
150
|
init() {
|
|
272
151
|
if (this.timer) clearTimeout(this.timer);
|
|
273
152
|
this.timer = setTimeout(() => {
|
|
@@ -275,22 +154,19 @@
|
|
|
275
154
|
this.height = this.config.height;
|
|
276
155
|
this.padding = 0;
|
|
277
156
|
|
|
278
|
-
//过滤不可以用
|
|
279
|
-
const content = this.filterItem();
|
|
280
|
-
|
|
281
157
|
//静态图显示
|
|
282
158
|
if(this.config.isCarousel === false) {
|
|
283
|
-
this.list = content.filter((item,index)=>{
|
|
159
|
+
this.list = this.content.filter((item,index)=>{
|
|
284
160
|
return index < (this.config.cells * this.config.jdRows);
|
|
285
161
|
})
|
|
286
162
|
}
|
|
287
163
|
//轮播图显示
|
|
288
164
|
else {
|
|
289
165
|
let num = this.config.cells * this.config.jdRows;
|
|
290
|
-
let maxPage = Math.ceil(content.length / num);
|
|
166
|
+
let maxPage = Math.ceil(this.content.length / num);
|
|
291
167
|
let arr = [];
|
|
292
168
|
for(let i =1 ; i <= maxPage; i++) {
|
|
293
|
-
arr.push(this.$xdUniHelper.getLocalPaginationData(content, i, num))
|
|
169
|
+
arr.push(this.$xdUniHelper.getLocalPaginationData(this.content, i, num))
|
|
294
170
|
}
|
|
295
171
|
this.list = arr;
|
|
296
172
|
}
|
|
@@ -298,64 +174,51 @@
|
|
|
298
174
|
|
|
299
175
|
}, 100)
|
|
300
176
|
},
|
|
301
|
-
|
|
302
177
|
handleClick(item) {
|
|
303
|
-
|
|
304
|
-
console.warn(`未配置链接地址: ${item.redirect_data}`);
|
|
305
|
-
console.error(`未配置链接地址: ${item.redirect_data}`);
|
|
306
|
-
return
|
|
307
|
-
}
|
|
308
|
-
|
|
178
|
+
debugger
|
|
309
179
|
//内部链接跳转地址
|
|
310
180
|
if (item.redirect_type === 'INN') {
|
|
311
181
|
try {
|
|
312
182
|
let url = JSON.parse(item.redirect_data);
|
|
313
183
|
let params = '';
|
|
314
|
-
if(
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
}
|
|
318
|
-
else {
|
|
319
|
-
console.error(`应用链接配置错误: ${url.page}`)
|
|
320
|
-
}
|
|
184
|
+
if (item['redirect_params']) params = `?${item['redirect_params']}`;
|
|
185
|
+
this.$xdUniHelper.navigateTo({
|
|
186
|
+
url: url.page + params
|
|
187
|
+
})
|
|
321
188
|
} catch (e) {
|
|
322
|
-
console.error(
|
|
189
|
+
console.error(e)
|
|
323
190
|
}
|
|
324
191
|
}
|
|
325
192
|
|
|
326
193
|
//外部链接
|
|
327
194
|
if (item.redirect_type === 'URL') {
|
|
328
195
|
let reg = /^(http:\/\/|https:\/\/|\/\/)+.+$/;
|
|
329
|
-
let spReg = /(-apiuri\/v)/;
|
|
330
196
|
//#ifdef MP-WEIXIN
|
|
331
197
|
try {
|
|
332
198
|
let url = JSON.parse(item.redirect_data);
|
|
333
|
-
if (reg.test(url.url)
|
|
199
|
+
if (reg.test(url.url) && this.$configProject.extras.webview) {
|
|
334
200
|
console.warn(`广告跳转外站: ${url.url}`)
|
|
335
|
-
this.$xdUniHelper.navigateTo(
|
|
201
|
+
this.$xdUniHelper.navigateTo({
|
|
202
|
+
url: `${this.$configProject.extras.webview}?seatUrl=${Base64.encodeURI(url.url)}`
|
|
203
|
+
});
|
|
336
204
|
} else {
|
|
337
|
-
|
|
205
|
+
throw Error('地址错误')
|
|
338
206
|
}
|
|
339
207
|
} catch (e) {
|
|
340
|
-
console.error(
|
|
208
|
+
console.error(e)
|
|
341
209
|
}
|
|
342
210
|
//#endif
|
|
343
211
|
//#ifdef H5
|
|
344
212
|
try {
|
|
345
213
|
let url = JSON.parse(item.redirect_data);
|
|
346
214
|
console.warn(`广告跳转外站: ${url.url}`);
|
|
347
|
-
this.$xdUniHelper.
|
|
215
|
+
this.$xdUniHelper.navigateTo(url)
|
|
348
216
|
} catch (e) {
|
|
349
|
-
console.error(
|
|
217
|
+
console.error(e)
|
|
350
218
|
}
|
|
351
219
|
//#endif
|
|
352
220
|
|
|
353
221
|
}
|
|
354
|
-
|
|
355
|
-
//无跳转地址
|
|
356
|
-
if(item.redirect_type === 'EMP') {
|
|
357
|
-
console.warn(`无跳转地址`);
|
|
358
|
-
}
|
|
359
222
|
},
|
|
360
223
|
}
|
|
361
224
|
}
|
|
@@ -364,7 +227,6 @@
|
|
|
364
227
|
<style scoped lang="less">
|
|
365
228
|
.sreen {
|
|
366
229
|
width: calc(100% + 2px); /**防止宽度不够问**/
|
|
367
|
-
height: 100%;
|
|
368
230
|
position: relative;
|
|
369
231
|
|
|
370
232
|
& .carousel-mask {
|
|
@@ -379,7 +241,6 @@
|
|
|
379
241
|
|
|
380
242
|
&__box.notCarousel {
|
|
381
243
|
width: 100%;
|
|
382
|
-
height: 100%;
|
|
383
244
|
display: flex;
|
|
384
245
|
justify-content: flex-start;
|
|
385
246
|
align-items: flex-start;
|
|
@@ -472,8 +333,6 @@
|
|
|
472
333
|
}
|
|
473
334
|
|
|
474
335
|
&__box.carousel {
|
|
475
|
-
width: 100%;
|
|
476
|
-
height: 100%;
|
|
477
336
|
display: flex;
|
|
478
337
|
justify-content: flex-start;
|
|
479
338
|
align-items: flex-start;
|
|
@@ -482,8 +341,6 @@
|
|
|
482
341
|
}
|
|
483
342
|
|
|
484
343
|
& .sreen__box-list {
|
|
485
|
-
width: 100%;
|
|
486
|
-
height: 100%;
|
|
487
344
|
display: flex;
|
|
488
345
|
justify-content: flex-start;
|
|
489
346
|
align-items: flex-start;
|
|
@@ -525,7 +382,6 @@
|
|
|
525
382
|
& > view:last-child {
|
|
526
383
|
text-align: center;
|
|
527
384
|
line-height: 15px;
|
|
528
|
-
font-size: unit(24, rpx);
|
|
529
385
|
}
|
|
530
386
|
}
|
|
531
387
|
}
|
|
@@ -131,6 +131,41 @@
|
|
|
131
131
|
handleAnimationfinish(e) {
|
|
132
132
|
this.current = e.detail.current;
|
|
133
133
|
},
|
|
134
|
+
handleClick(item, index){
|
|
135
|
+
this.current = index;
|
|
136
|
+
const handle = (data) => {
|
|
137
|
+
try {
|
|
138
|
+
return JSON.parse(data);
|
|
139
|
+
} catch (e) {
|
|
140
|
+
return {}
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
if(this.$configProject.isPreview) {
|
|
144
|
+
console.log(item)
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
if (item['redirect_type'] === 'EMP') return;
|
|
148
|
+
let url = '';
|
|
149
|
+
|
|
150
|
+
if (item['redirect_type'] === 'URL') {
|
|
151
|
+
url = handle(item['redirect_data']).url || ''
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
if (item['redirect_type'] === 'INN') {
|
|
155
|
+
url = handle(item['redirect_data']).page || ''
|
|
156
|
+
}
|
|
157
|
+
if (item['redirect_type'] === 'APP') {
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
if (url === '') {
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
if(url.indexOf('?') === -1) url = `${url}?vs=${new Date().getTime()}`;
|
|
165
|
+
else url = `${url}&vs=${new Date().getTime()}`;
|
|
166
|
+
this.$xdUniHelper.navigateTo({url})
|
|
167
|
+
}
|
|
168
|
+
},
|
|
134
169
|
handleImage(list){
|
|
135
170
|
return list.map(item => {
|
|
136
171
|
return {
|
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
:bgColor="mainColor"
|
|
39
39
|
@click="handleToRecharge"
|
|
40
40
|
:disabled="!amount || !card_point || !cardNumber"
|
|
41
|
-
>提交</xd-button
|
|
41
|
+
>提交</xd-button
|
|
42
|
+
>
|
|
42
43
|
</view>
|
|
43
44
|
</view>
|
|
44
45
|
<view class="xd-notice-content" v-if="content">
|
|
@@ -90,9 +91,8 @@ export default {
|
|
|
90
91
|
};
|
|
91
92
|
},
|
|
92
93
|
watch: {
|
|
93
|
-
container(value
|
|
94
|
-
|
|
95
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
94
|
+
container(value) {
|
|
95
|
+
this.init(value);
|
|
96
96
|
},
|
|
97
97
|
card_point(value) {
|
|
98
98
|
if(this.timer) clearTimeout(this.timer);
|
|
@@ -150,9 +150,8 @@ export default {
|
|
|
150
150
|
};
|
|
151
151
|
},
|
|
152
152
|
watch: {
|
|
153
|
-
container(value
|
|
154
|
-
|
|
155
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
153
|
+
container(value) {
|
|
154
|
+
this.init(value);
|
|
156
155
|
},
|
|
157
156
|
},
|
|
158
157
|
computed: {
|
|
@@ -176,6 +175,8 @@ export default {
|
|
|
176
175
|
},
|
|
177
176
|
created() {
|
|
178
177
|
this.init(this.container);
|
|
178
|
+
|
|
179
|
+
//todo
|
|
179
180
|
},
|
|
180
181
|
methods: {
|
|
181
182
|
onJfbLoad(options) {
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
:class="{ editx: isEditx && active }"
|
|
11
11
|
v-if="isEditx && active"
|
|
12
12
|
>
|
|
13
|
-
<view class="jfb-base-recharge-order-detail__edit-icon" @click="delEdit"
|
|
13
|
+
<view class="jfb-base-recharge-order-detail__edit-icon" @click="delEdit"
|
|
14
|
+
>删除</view
|
|
15
|
+
>
|
|
14
16
|
</view>
|
|
15
17
|
<!-- #endif -->
|
|
16
18
|
<view v-if="info!==null" class="jfb-base-recharge-order-detail__body">
|
|
@@ -79,13 +81,14 @@ export default {
|
|
|
79
81
|
};
|
|
80
82
|
},
|
|
81
83
|
watch: {
|
|
82
|
-
container(value
|
|
83
|
-
|
|
84
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
84
|
+
container(value) {
|
|
85
|
+
this.init(value);
|
|
85
86
|
},
|
|
86
87
|
},
|
|
87
88
|
created() {
|
|
88
89
|
this.init(this.container);
|
|
90
|
+
|
|
91
|
+
//todo
|
|
89
92
|
},
|
|
90
93
|
methods: {
|
|
91
94
|
onJfbLoad(options) {
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
:class="{ editx: isEditx && active }"
|
|
11
11
|
v-if="isEditx && active"
|
|
12
12
|
>
|
|
13
|
-
<view class="jfb-base-recharge-success__edit-icon" @click="delEdit"
|
|
13
|
+
<view class="jfb-base-recharge-success__edit-icon" @click="delEdit"
|
|
14
|
+
>删除</view
|
|
15
|
+
>
|
|
14
16
|
</view>
|
|
15
17
|
<!-- #endif -->
|
|
16
18
|
<view class="jfb-base-recharge-success__body" v-if="info !== null">
|
|
@@ -36,7 +38,9 @@
|
|
|
36
38
|
@click="handleToBtn(item)"
|
|
37
39
|
type="primary"
|
|
38
40
|
:bgColor="mainColor"
|
|
39
|
-
>
|
|
41
|
+
>
|
|
42
|
+
{{ item.label }}
|
|
43
|
+
</xd-button>
|
|
40
44
|
</view>
|
|
41
45
|
</view>
|
|
42
46
|
</view>
|
|
@@ -69,9 +73,8 @@ export default {
|
|
|
69
73
|
};
|
|
70
74
|
},
|
|
71
75
|
watch: {
|
|
72
|
-
container(value
|
|
73
|
-
|
|
74
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
76
|
+
container(value) {
|
|
77
|
+
this.init(value);
|
|
75
78
|
},
|
|
76
79
|
},
|
|
77
80
|
created() {
|
|
@@ -165,7 +168,7 @@ export default {
|
|
|
165
168
|
}, Math.pow(this.date, this.time > this.maxTime ? this.maxTime : this.time) * 1000);
|
|
166
169
|
}
|
|
167
170
|
},
|
|
168
|
-
|
|
171
|
+
|
|
169
172
|
onJfbUnload() {
|
|
170
173
|
if (this.timeer) {
|
|
171
174
|
clearTimeout(this.timeer);
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
<view class="settle-item" v-for="(settle,index) in info.settleInfo" :key="index">
|
|
66
66
|
<view>{{settle.label}}:</view>
|
|
67
67
|
<view v-if="settle.type === 'price'">
|
|
68
|
-
<xd-unit :price="settle.value" :is-old="false"></xd-unit>
|
|
68
|
+
<xd-unit :price="settle.value" unit="" :is-old="false"></xd-unit>
|
|
69
69
|
</view>
|
|
70
70
|
<view v-else v-html="settle.value"></view>
|
|
71
71
|
</view>
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
</view>
|
|
303
303
|
<view class="jfb-base-success__body-detail-html">
|
|
304
304
|
<xd-content-xss
|
|
305
|
-
|
|
305
|
+
v-html="info.custom_content.content"
|
|
306
306
|
></xd-content-xss>
|
|
307
307
|
</view>
|
|
308
308
|
</view>
|
|
@@ -315,7 +315,7 @@
|
|
|
315
315
|
<view>商品详情</view>
|
|
316
316
|
</view>
|
|
317
317
|
<view class="jfb-base-success__body-detail-html x-content-info" v-if="info.productDetail">
|
|
318
|
-
<xd-content-xss
|
|
318
|
+
<xd-content-xss v-html="info.productDetail"></xd-content-xss>
|
|
319
319
|
</view>
|
|
320
320
|
</view>
|
|
321
321
|
</view>
|
|
@@ -489,9 +489,8 @@ export default {
|
|
|
489
489
|
// #ifndef H5
|
|
490
490
|
uni.setClipboardData({
|
|
491
491
|
data: text,
|
|
492
|
-
showToast: false,
|
|
493
492
|
success: () => {
|
|
494
|
-
|
|
493
|
+
this.$xdAlert({ content: "复制成功" });
|
|
495
494
|
},
|
|
496
495
|
});
|
|
497
496
|
// #endif
|
|
@@ -121,9 +121,8 @@
|
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
watch: {
|
|
124
|
-
container(value
|
|
125
|
-
|
|
126
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
124
|
+
container(value) {
|
|
125
|
+
this.init(value)
|
|
127
126
|
}
|
|
128
127
|
},
|
|
129
128
|
created() {
|
|
@@ -147,9 +147,8 @@
|
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
149
|
watch: {
|
|
150
|
-
container(value
|
|
151
|
-
|
|
152
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
150
|
+
container(value) {
|
|
151
|
+
this.init(value)
|
|
153
152
|
}
|
|
154
153
|
},
|
|
155
154
|
created() {
|
|
@@ -171,8 +170,7 @@
|
|
|
171
170
|
this.$xdShowLoading({});
|
|
172
171
|
store.dispatch('logout').then(res=>{
|
|
173
172
|
this.$xdHideLoading();
|
|
174
|
-
this.jfbAuthorize.
|
|
175
|
-
this.jfbAuthorize.removeAllToken()
|
|
173
|
+
this.jfbAuthorize.removeToken('card');
|
|
176
174
|
this.jfbAuthorize.jumpToUserLogin(this, false);
|
|
177
175
|
}).catch(err=>{
|
|
178
176
|
console.error(err);
|
|
@@ -124,10 +124,9 @@
|
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
watch: {
|
|
127
|
-
container(value
|
|
128
|
-
|
|
129
|
-
if
|
|
130
|
-
this.init(value);
|
|
127
|
+
container(value) {
|
|
128
|
+
this.init(value);
|
|
129
|
+
if(this.$configProject.isPreview) {
|
|
131
130
|
this.onJfbLoad( this.options)
|
|
132
131
|
}
|
|
133
132
|
}
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
<view class="jfb-base-video__body">
|
|
17
17
|
<view class="x-line"></view>
|
|
18
18
|
<view
|
|
19
|
-
v-if="isShow"
|
|
20
19
|
class="x-video"
|
|
21
20
|
:style="{
|
|
22
21
|
backgroundColor:bgColor,
|
|
@@ -27,13 +26,15 @@
|
|
|
27
26
|
height:contentHeight + 'rpx'
|
|
28
27
|
}"
|
|
29
28
|
>
|
|
29
|
+
|
|
30
30
|
<xd-video
|
|
31
31
|
v-if="video !== null && video !== ''"
|
|
32
32
|
:key="videoKey"
|
|
33
33
|
:poster="videoSetting"
|
|
34
34
|
:video="video"
|
|
35
|
+
:pack-this="$vm"
|
|
35
36
|
></xd-video>
|
|
36
|
-
<view class="not-video" v-if="
|
|
37
|
+
<view class="not-video" v-if="video === ''">
|
|
37
38
|
<image :src="getVideoSrc"></image>
|
|
38
39
|
</view>
|
|
39
40
|
</view>
|
|
@@ -59,7 +60,7 @@
|
|
|
59
60
|
mixins: [componentsMixins,extsMixins,JfbBaseVideoMixin],
|
|
60
61
|
data() {
|
|
61
62
|
return {
|
|
62
|
-
|
|
63
|
+
selfMask: true,
|
|
63
64
|
page_size: 1,
|
|
64
65
|
options:{},
|
|
65
66
|
|
|
@@ -72,14 +73,11 @@
|
|
|
72
73
|
width:750,
|
|
73
74
|
bgColor:'',
|
|
74
75
|
radius:0,
|
|
75
|
-
|
|
76
|
+
$vm: {},
|
|
77
|
+
videoKey : Date.now()
|
|
76
78
|
}
|
|
77
79
|
},
|
|
78
80
|
computed: {
|
|
79
|
-
isShow(){
|
|
80
|
-
if(this.isPreview) return true;
|
|
81
|
-
else return this.video
|
|
82
|
-
},
|
|
83
81
|
iconFont(){
|
|
84
82
|
if(this.autoplay === 'N') return 'iconplayright'
|
|
85
83
|
if(this.autoplay === 'E') return 'iconshibai';
|
|
@@ -121,15 +119,14 @@
|
|
|
121
119
|
}
|
|
122
120
|
},
|
|
123
121
|
watch: {
|
|
124
|
-
container(value,
|
|
125
|
-
if(JSON.stringify(value) === JSON.stringify(
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
this.onJfbLoad(this.options)
|
|
129
|
-
}
|
|
122
|
+
container(value, oloValue) {
|
|
123
|
+
if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
|
|
124
|
+
this.init(value);
|
|
125
|
+
if (this.$configProject['isPreview']) this.onJfbLoad(this.options)
|
|
130
126
|
}
|
|
131
127
|
},
|
|
132
128
|
created() {
|
|
129
|
+
this.$vm = this;
|
|
133
130
|
this.isPreview = this.$configProject.isPreview;
|
|
134
131
|
this.init(this.container);
|
|
135
132
|
},
|
|
@@ -81,9 +81,8 @@ export default {
|
|
|
81
81
|
};
|
|
82
82
|
},
|
|
83
83
|
watch: {
|
|
84
|
-
container(value
|
|
85
|
-
|
|
86
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
84
|
+
container(value) {
|
|
85
|
+
this.init(value);
|
|
87
86
|
},
|
|
88
87
|
newLabel: {
|
|
89
88
|
deep: true,
|