jufubao-third 1.0.13 → 1.0.14-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
CHANGED
|
@@ -56,6 +56,18 @@ export default {
|
|
|
56
56
|
},
|
|
57
57
|
inline: false,
|
|
58
58
|
},
|
|
59
|
+
{
|
|
60
|
+
label: '开通会员',
|
|
61
|
+
ele: 'xd-select-pages-path',
|
|
62
|
+
valueKey: 'openPath',
|
|
63
|
+
placeholder: '选择开通会员路径',
|
|
64
|
+
value: data.openPath || null,
|
|
65
|
+
setting: {
|
|
66
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
67
|
+
},
|
|
68
|
+
groupKey: 'advanced',
|
|
69
|
+
className: 'input100',
|
|
70
|
+
},
|
|
59
71
|
{
|
|
60
72
|
label: "是否可以使用新票券",
|
|
61
73
|
ele: "xd-radio",
|
|
@@ -67,6 +79,46 @@ export default {
|
|
|
67
79
|
{label: "否", value: "2"},
|
|
68
80
|
]
|
|
69
81
|
},
|
|
82
|
+
{
|
|
83
|
+
label: "开通PLUS背景图",
|
|
84
|
+
ele: 'xd-upload',
|
|
85
|
+
valueKey: "openVipBgImg",
|
|
86
|
+
groupKey: "style",
|
|
87
|
+
value: data.openVipBgImg || {},
|
|
88
|
+
defaultValue: data.openVipBgImg || null,
|
|
89
|
+
slot: true,
|
|
90
|
+
oneWidth: 355,
|
|
91
|
+
oneHeight: 355,
|
|
92
|
+
elinputClassName: 'input40',
|
|
93
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.建议宽度为<span style="color:red">710px</span>,高度为<span style="color:red">710px</span>',
|
|
94
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
95
|
+
styleType: 'one',
|
|
96
|
+
uploadType: 'aliyun',
|
|
97
|
+
size: 5,
|
|
98
|
+
action: 'action',
|
|
99
|
+
sort: true,
|
|
100
|
+
maxlen: 100,
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
label: "开通PLUS按钮背景图",
|
|
104
|
+
ele: 'xd-upload',
|
|
105
|
+
valueKey: "openVipBtnBgImg",
|
|
106
|
+
groupKey: "style",
|
|
107
|
+
value: data.openVipBtnBgImg || {},
|
|
108
|
+
defaultValue: data.openVipBtnBgImg || null,
|
|
109
|
+
slot: true,
|
|
110
|
+
oneWidth: 223,
|
|
111
|
+
oneHeight: 44,
|
|
112
|
+
elinputClassName: 'input40',
|
|
113
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.建议宽度为<span style="color:red">446px</span>,宽度为<span style="color:red">88px</span>',
|
|
114
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
115
|
+
styleType: 'one',
|
|
116
|
+
uploadType: 'aliyun',
|
|
117
|
+
size: 5,
|
|
118
|
+
action: 'action',
|
|
119
|
+
sort: true,
|
|
120
|
+
maxlen: 100,
|
|
121
|
+
},
|
|
70
122
|
]
|
|
71
123
|
},
|
|
72
124
|
}
|
|
@@ -64,15 +64,15 @@
|
|
|
64
64
|
</view>
|
|
65
65
|
</view>
|
|
66
66
|
|
|
67
|
-
<view v-if="show_vip_card==='Y'" class="pay_section">
|
|
67
|
+
<!-- <view v-if="show_vip_card==='Y'" class="pay_section">
|
|
68
68
|
<cus-vip-list :list="vipCardList"
|
|
69
69
|
:vip_card_id="vip_card_id"
|
|
70
70
|
:plus_saving_money="plus_saving_money"
|
|
71
71
|
@choseVipCard="handleChoseVipCard"></cus-vip-list>
|
|
72
|
-
</view>
|
|
72
|
+
</view> -->
|
|
73
73
|
<view v-if="isShowPlusSaveMoney" class="pay_section">
|
|
74
74
|
<xd-list-item label="PLUS专项立减" size="small" paddingLR="40rpx" >
|
|
75
|
-
<view slot="label" style="color: #86541E;">PLUS
|
|
75
|
+
<view slot="label" style="color: #86541E;">PLUS会员立减</view>
|
|
76
76
|
<!-- <view style="color: #FF7070;">-5.00</view> -->
|
|
77
77
|
<xd-unit :price="-plus_saving_money" :largeZero="false" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
|
|
78
78
|
</xd-list-item>
|
|
@@ -311,6 +311,13 @@
|
|
|
311
311
|
@click="addNewCard"
|
|
312
312
|
>使用新票券</xd-button>
|
|
313
313
|
</xd-down-drawer>
|
|
314
|
+
<CusVipOpenDialog
|
|
315
|
+
v-if="!isVip"
|
|
316
|
+
:bgImg="openVipBgImg"
|
|
317
|
+
:btnBgImg="openVipBtnBgImg"
|
|
318
|
+
@onOpen="handleOpenVip"
|
|
319
|
+
@onClose="handleCloseOpenVip"
|
|
320
|
+
></CusVipOpenDialog>
|
|
314
321
|
</view>
|
|
315
322
|
</template>
|
|
316
323
|
|
|
@@ -335,6 +342,8 @@
|
|
|
335
342
|
import CusVipList from "@/components/CusVipList/CusVipList"
|
|
336
343
|
import {mapState} from "vuex"
|
|
337
344
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
345
|
+
import CusVipOpenDialog from "@/components/CusVipOpenDialog/CusVipOpenDialog"
|
|
346
|
+
import getServiceUrl from "@/common/getServiceUrl"
|
|
338
347
|
export default {
|
|
339
348
|
name: "JfbThirdPay",
|
|
340
349
|
components: {
|
|
@@ -350,7 +359,8 @@
|
|
|
350
359
|
XdListItem,
|
|
351
360
|
XdCardPayChose,
|
|
352
361
|
XdWalletChose,
|
|
353
|
-
CusVipList
|
|
362
|
+
CusVipList,
|
|
363
|
+
CusVipOpenDialog
|
|
354
364
|
},
|
|
355
365
|
mixins: [
|
|
356
366
|
componentsMixins, extsMixins, JfbThirdPayMixin, WalletMixins
|
|
@@ -398,6 +408,9 @@
|
|
|
398
408
|
xnamespace: "",
|
|
399
409
|
bindCard: '1',
|
|
400
410
|
skipTip: "N",
|
|
411
|
+
openVipBtnBgImg: "",
|
|
412
|
+
openVipBgImg: "",
|
|
413
|
+
openPath: ""
|
|
401
414
|
}
|
|
402
415
|
},
|
|
403
416
|
watch: {
|
|
@@ -459,7 +472,9 @@
|
|
|
459
472
|
let valid_token = this.$xdUniHelper.randomChar(20);
|
|
460
473
|
this.$set(this.cardForm, "valid_token", valid_token);
|
|
461
474
|
this.isVip = this.getTokenForKey('user_level') === 'VIP';
|
|
462
|
-
|
|
475
|
+
if (this.$configProject['isPreview']) {
|
|
476
|
+
this.isVip=true
|
|
477
|
+
}
|
|
463
478
|
// #ifdef H5
|
|
464
479
|
if (!this.$configProject.isPreview) {
|
|
465
480
|
this.p_getH5WxAuthorize();
|
|
@@ -489,6 +504,13 @@
|
|
|
489
504
|
this.xnamespace = getContainerPropsValue(container, 'content.xnamespace', this.projectAttr.business_code);
|
|
490
505
|
this.bindCard = getContainerPropsValue(container,"content.bindCard","1");
|
|
491
506
|
this.skipTip = getContainerPropsValue(container, "content.skipTip", "N");
|
|
507
|
+
this.openVipBgImg = getServiceUrl(
|
|
508
|
+
getContainerPropsValue(container, "content.openVipBgImg", { url: "" }).url,
|
|
509
|
+
);
|
|
510
|
+
this.openVipBtnBgImg = getServiceUrl(
|
|
511
|
+
getContainerPropsValue(container, "content.openVipBtnBgImg", { url: "" }).url
|
|
512
|
+
);
|
|
513
|
+
this.openPath = getContainerPropsValue(container, "content.openPath", { value: "" }).value;
|
|
492
514
|
},
|
|
493
515
|
getTimeFormat(time){
|
|
494
516
|
let date = null;
|
|
@@ -890,6 +912,14 @@
|
|
|
890
912
|
valid_token: "", //验证码token
|
|
891
913
|
}
|
|
892
914
|
},
|
|
915
|
+
handleCloseOpenVip() {
|
|
916
|
+
this.$xdUniHelper.navigateBack()
|
|
917
|
+
},
|
|
918
|
+
handleOpenVip() {
|
|
919
|
+
this.$xdUniHelper.navigateTo({
|
|
920
|
+
url: this.openPath
|
|
921
|
+
})
|
|
922
|
+
},
|
|
893
923
|
onJfbScroll(options) {
|
|
894
924
|
console.log('event.onJfbScroll', options)
|
|
895
925
|
},
|
|
@@ -898,6 +928,10 @@
|
|
|
898
928
|
},
|
|
899
929
|
onJfbShow(options) {
|
|
900
930
|
console.log('event.onJfbShow', options)
|
|
931
|
+
this.isVip = this.getTokenForKey('user_level') === 'VIP';
|
|
932
|
+
if (this.$configProject['isPreview']) {
|
|
933
|
+
this.isVip=true
|
|
934
|
+
}
|
|
901
935
|
},
|
|
902
936
|
onJfbHide(options) {
|
|
903
937
|
console.log('event.onJfbHide', options)
|