jufubao-base 1.0.252 → 1.0.253
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/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +6 -4
- package/src/components/JfbBaseCardDetailEntry/Attr.js +11 -0
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +6 -6
- package/src/components/JfbBaseCardEntry/Attr.js +27 -16
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +4 -2
- package/src/components/JfbBaseCardEntry/Mock.js +20 -1
- package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +2 -4
- package/src/components/JfbBaseCardInfoEntry/Attr.js +36 -25
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +5 -2
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +4 -5
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +16 -10
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +10 -6
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +10 -6
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwd.vue +16 -2
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlay.vue +5 -3
- package/src/components/JfbBasePay/JfbBasePay.vue +35 -19
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +21 -5
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +30 -29
- package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +18 -11
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +5 -3
package/package.json
CHANGED
|
@@ -157,10 +157,12 @@
|
|
|
157
157
|
},
|
|
158
158
|
handleBindCard(){
|
|
159
159
|
if(!this.cardForm.valid_code){
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
160
|
+
this.$xdAlert({
|
|
161
|
+
content: '请输入验证码',
|
|
162
|
+
time: 2500,
|
|
163
|
+
isClose: false,
|
|
164
|
+
zIndex: 5000
|
|
165
|
+
});
|
|
164
166
|
return;
|
|
165
167
|
}
|
|
166
168
|
jfbRootExec("pwdCardBind", {
|
|
@@ -26,6 +26,17 @@ export default {
|
|
|
26
26
|
});
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
|
+
{
|
|
30
|
+
label: "是否展示主业务线",
|
|
31
|
+
ele: "xd-radio",
|
|
32
|
+
valueKey: "isShowBuss",
|
|
33
|
+
groupKey:'content',
|
|
34
|
+
value: 'N',
|
|
35
|
+
list: [
|
|
36
|
+
{label: "展示", value: "Y"},
|
|
37
|
+
{label: "隐藏", value: "N"},
|
|
38
|
+
]
|
|
39
|
+
},
|
|
29
40
|
{
|
|
30
41
|
label: '票券解绑成功回跳地址:',
|
|
31
42
|
ele: 'xd-select-pages-path',
|
|
@@ -51,14 +51,12 @@
|
|
|
51
51
|
<view class="card_sec">券号:{{ info.card_number }}</view>
|
|
52
52
|
<view class="card_sec">有效期:{{ info.end_time }}</view>
|
|
53
53
|
<view class="card_sec">
|
|
54
|
-
余额:{{ info.card_point }}{{ info.unit }}
|
|
55
|
-
<text
|
|
54
|
+
<text>{{isShowBuss==='Y'?info.main_business_code_name:''}}余额:{{ info.card_point }}{{ info.unit }}</text>
|
|
55
|
+
<text
|
|
56
|
+
v-if="info.other_card_point && info.card_point_type === 2"
|
|
56
57
|
style="font-size: 24rpx;margin-left: 20rpx;"
|
|
57
58
|
>(购买其他物品可抵:{{info.other_card_point}} {{ info.unit }})</text>
|
|
58
59
|
</view>
|
|
59
|
-
<!-- <view class="card_other" v-if="info.other_card_point && info.card_point_type === 2">
|
|
60
|
-
<text>购买其他物品可抵:</text><text>{{info.other_card_point}} {{ info.unit }}</text>
|
|
61
|
-
</view> -->
|
|
62
60
|
</view>
|
|
63
61
|
</view>
|
|
64
62
|
<view
|
|
@@ -145,6 +143,7 @@ export default {
|
|
|
145
143
|
return {
|
|
146
144
|
userInfo: null, //用户信息(暂时不可用)
|
|
147
145
|
entryGroupId: '',//加载入口数据组别
|
|
146
|
+
isShowBuss:'N',//是否展示主营业务线
|
|
148
147
|
|
|
149
148
|
info: null,
|
|
150
149
|
timeStr: "",
|
|
@@ -225,6 +224,7 @@ export default {
|
|
|
225
224
|
* @param container {object} 业务组件对象自己
|
|
226
225
|
*/
|
|
227
226
|
init(container) {
|
|
227
|
+
this.isShowBuss = getContainerPropsValue(container, 'content.isShowBuss', 'N')
|
|
228
228
|
this.backUrl = getContainerPropsValue(container, "content.back_url", { value: "" }).value;
|
|
229
229
|
this.shift_url = getContainerPropsValue(container, "content.shift_url", { value: "" }).value;
|
|
230
230
|
this.give_url = getContainerPropsValue(container, "content.give_url", { value: "" }).value;
|
|
@@ -574,7 +574,7 @@ export default {
|
|
|
574
574
|
border-radius: 24rpx;
|
|
575
575
|
padding: 24rpx;
|
|
576
576
|
|
|
577
|
-
|
|
577
|
+
|
|
578
578
|
&-title{
|
|
579
579
|
display: flex;
|
|
580
580
|
font-size: 32rpx;
|
|
@@ -61,11 +61,11 @@ export default {
|
|
|
61
61
|
//当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
|
|
62
62
|
//data.params = Object.assign({}, data.params, {code: 'g_test_id'});
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
|
|
65
65
|
//获取返回参数(场景类型名称为必填)
|
|
66
66
|
//获取返回参数(场景类型名称为必填)
|
|
67
67
|
let loading = { close(){}}
|
|
68
|
-
|
|
68
|
+
|
|
69
69
|
//获取显示内容
|
|
70
70
|
if (action === 'screen') {
|
|
71
71
|
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
|
|
@@ -77,9 +77,9 @@ export default {
|
|
|
77
77
|
console.error(error);
|
|
78
78
|
loading.close();
|
|
79
79
|
});
|
|
80
|
-
|
|
80
|
+
|
|
81
81
|
}
|
|
82
|
-
|
|
82
|
+
|
|
83
83
|
//获取返回参数(广告位高度必选项)
|
|
84
84
|
if (action === 'getNewsInfo') {
|
|
85
85
|
XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
@@ -92,7 +92,7 @@ export default {
|
|
|
92
92
|
console.error(error);
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
|
|
96
96
|
//获取产品业务线列表
|
|
97
97
|
if (action === 'namespace') {
|
|
98
98
|
XdBus.getParentApi('getOptionsNamespaces')({})
|
|
@@ -105,7 +105,7 @@ export default {
|
|
|
105
105
|
console.error(error);
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
|
-
|
|
108
|
+
|
|
109
109
|
//使用内容分类
|
|
110
110
|
if (action === 'cmsPublishEditxContent') {
|
|
111
111
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -120,7 +120,7 @@ export default {
|
|
|
120
120
|
console.error(error);
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
|
|
124
124
|
//位置列表
|
|
125
125
|
if (action === 'getListPostion') {
|
|
126
126
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -134,7 +134,7 @@ export default {
|
|
|
134
134
|
console.error(error);
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
|
-
|
|
137
|
+
|
|
138
138
|
//位置创建
|
|
139
139
|
if (action === 'addPostion') {
|
|
140
140
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -149,7 +149,7 @@ export default {
|
|
|
149
149
|
data.cb(false)
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
|
|
153
153
|
//位置编辑
|
|
154
154
|
if (action === 'editPostion') {
|
|
155
155
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -164,7 +164,7 @@ export default {
|
|
|
164
164
|
data.cb(false)
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
|
-
|
|
167
|
+
|
|
168
168
|
//位置删除
|
|
169
169
|
if (action === 'deleltePostion') {
|
|
170
170
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -179,7 +179,7 @@ export default {
|
|
|
179
179
|
data.cb(false)
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
-
|
|
182
|
+
|
|
183
183
|
//获取广告位内容列表
|
|
184
184
|
if (action === 'getListContent') {
|
|
185
185
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -193,7 +193,7 @@ export default {
|
|
|
193
193
|
console.error(error);
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
|
-
|
|
196
|
+
|
|
197
197
|
//广告内容创建
|
|
198
198
|
if (action === 'addContent') {
|
|
199
199
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -208,7 +208,7 @@ export default {
|
|
|
208
208
|
data.cb(false)
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
-
|
|
211
|
+
|
|
212
212
|
//广告内容编辑
|
|
213
213
|
if (action === 'editContent') {
|
|
214
214
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -223,7 +223,7 @@ export default {
|
|
|
223
223
|
data.cb(false)
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
|
-
|
|
226
|
+
|
|
227
227
|
//广告内容删除
|
|
228
228
|
if (action === 'deleteContent') {
|
|
229
229
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -238,7 +238,7 @@ export default {
|
|
|
238
238
|
data.cb(false)
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
|
|
241
|
+
|
|
242
242
|
//内容发布
|
|
243
243
|
if (action === 'publish') {
|
|
244
244
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -253,7 +253,7 @@ export default {
|
|
|
253
253
|
console.error(error);
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
|
-
|
|
256
|
+
|
|
257
257
|
//通知页面进行刷新
|
|
258
258
|
if (action === 'update') {
|
|
259
259
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -276,6 +276,17 @@ export default {
|
|
|
276
276
|
inline: false,
|
|
277
277
|
notice: '当未设置文案时候,前台页面显示为"<span style="color:red">已登录</span>",建议不超过<span style="color:red">4</span>个汉字'
|
|
278
278
|
},
|
|
279
|
+
{
|
|
280
|
+
label: "是否展示主业务线",
|
|
281
|
+
ele: "xd-radio",
|
|
282
|
+
valueKey: "isShowBuss",
|
|
283
|
+
groupKey:'content',
|
|
284
|
+
value: data['isShowBuss'] || "N",
|
|
285
|
+
list: [
|
|
286
|
+
{label: "展示", value: "Y"},
|
|
287
|
+
{label: "隐藏", value: "N"},
|
|
288
|
+
]
|
|
289
|
+
},
|
|
279
290
|
{
|
|
280
291
|
label: "是否展示核销二维码",
|
|
281
292
|
ele: "xd-radio",
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
<text>{{item.end_time}}</text>
|
|
212
212
|
</view>
|
|
213
213
|
<view class="card-list__yue">
|
|
214
|
-
<text
|
|
214
|
+
<text>{{isShowBuss==='Y'?item.main_business_code_name:''}}余额:</text>
|
|
215
215
|
<text>{{item.card_point}} {{ item.unit }}</text>
|
|
216
216
|
</view>
|
|
217
217
|
<view class="card-list__other" v-if="item.other_card_point && item.card_point_type === 2">
|
|
@@ -388,7 +388,7 @@
|
|
|
388
388
|
<text>{{item.end_time}}</text>
|
|
389
389
|
</view>
|
|
390
390
|
<view class="card-list__yue">
|
|
391
|
-
<text
|
|
391
|
+
<text>{{item.main_business_code_name}}余额:</text>
|
|
392
392
|
<text>{{item.card_point}} {{ item.unit }}</text>
|
|
393
393
|
</view>
|
|
394
394
|
<view class="card-list__other" v-if="item.other_card_point && item.card_point_type === 2">
|
|
@@ -511,6 +511,7 @@ export default {
|
|
|
511
511
|
inCallbackUrlOrg:'',//是否带有回调地址
|
|
512
512
|
isChange:'N',
|
|
513
513
|
isTransfering:'N',
|
|
514
|
+
isShowBuss:'N',
|
|
514
515
|
|
|
515
516
|
//提示文案
|
|
516
517
|
noticeBackgroundColor: "",
|
|
@@ -619,6 +620,7 @@ export default {
|
|
|
619
620
|
this.cardLayout = getContainerPropsValue(container,"content.cardLayout","1");
|
|
620
621
|
this.changeUrl = getContainerPropsValue(container,"content.change_url",{value: ""}).value;
|
|
621
622
|
this.disabledUrl = getContainerPropsValue(container,"content.disabled_url",{value: ""}).value;
|
|
623
|
+
this.isShowBuss = getContainerPropsValue(container,'content.isShowBuss', 'N')
|
|
622
624
|
this.bindUrl = getContainerPropsValue(container,"content.bind_url",{value: ""}).value;
|
|
623
625
|
this.detailUrl = getContainerPropsValue(container,"content.detail_url",{value: ""}).value;
|
|
624
626
|
this.confirmUrl = getContainerPropsValue(container,"content.confirm_url",{value: ""}).value;
|
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
getListEntryCardBind: {
|
|
5
5
|
"list": [
|
|
6
|
+
{"card_number":"101001000006820",
|
|
7
|
+
"card_point":4989,
|
|
8
|
+
"card_type":"59",
|
|
9
|
+
"card_type_name":"多余额福卡2",
|
|
10
|
+
"unit":"点",
|
|
11
|
+
"end_time":"2024-09-09",
|
|
12
|
+
"is_valid":"Y",
|
|
13
|
+
"main_business_code_name":"电影(勿改)、蛋糕(勿改)",
|
|
14
|
+
"other_card_point":3991,
|
|
15
|
+
"is_exchange":"N",
|
|
16
|
+
"card_point_type":2,
|
|
17
|
+
"business_codes":["cake","market","movie"],
|
|
18
|
+
"is_login":"N",
|
|
19
|
+
"consume_type":"1",
|
|
20
|
+
"card_use_rule":"可凭本票券到电影(勿改)、商城(对应百货)(勿改)、蛋糕(勿改)使用",
|
|
21
|
+
"is_transfering":"N",
|
|
22
|
+
"show_name":"多余额福卡2",
|
|
23
|
+
"is_show_baseinfo":"N","is_gift":"N"
|
|
24
|
+
},
|
|
6
25
|
{
|
|
7
26
|
"card_number": "101001000008422",
|
|
8
27
|
"card_point": 100000,
|
|
@@ -16,7 +35,7 @@ module.exports = {
|
|
|
16
35
|
"is_exchange": "N",
|
|
17
36
|
"is_transfering":"Y",
|
|
18
37
|
"card_point_type": 1,
|
|
19
|
-
"is_login":'
|
|
38
|
+
"is_login":'N',
|
|
20
39
|
"is_gift":"Y",
|
|
21
40
|
"business_codes": ["health"]
|
|
22
41
|
}, {
|
|
@@ -27,9 +27,7 @@
|
|
|
27
27
|
<view class="card_info">
|
|
28
28
|
<view class="card_type">券号:{{ info.card_number }}</view>
|
|
29
29
|
<view class="card_sec">有效期:{{ info.end_time }}</view>
|
|
30
|
-
<view class="card_sec"
|
|
31
|
-
>余额:{{ info.card_point }}{{ info.unit }}</view
|
|
32
|
-
>
|
|
30
|
+
<view class="card_sec">余额:{{ info.card_point }}{{ info.unit }}</view>
|
|
33
31
|
<view
|
|
34
32
|
class="card_other"
|
|
35
33
|
v-if="info.other_card_point && info.card_point_type === 2"
|
|
@@ -136,7 +134,7 @@
|
|
|
136
134
|
<xd-button @click="toSeeShareImg" width="260rpx" type="primary" size="small"
|
|
137
135
|
>查看分享图片</xd-button>
|
|
138
136
|
</view>
|
|
139
|
-
|
|
137
|
+
|
|
140
138
|
<!-- #endif -->
|
|
141
139
|
</view>
|
|
142
140
|
</xd-dailog>
|
|
@@ -26,30 +26,6 @@ export default {
|
|
|
26
26
|
});
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
|
-
{
|
|
30
|
-
label: '票券绑定成功回跳地址:',
|
|
31
|
-
ele: 'xd-select-pages-path',
|
|
32
|
-
valueKey: 'back_url',
|
|
33
|
-
groupKey:'advanced',
|
|
34
|
-
placeholder: '请选择票券绑定成功回跳地址',
|
|
35
|
-
value: null,
|
|
36
|
-
setting: {
|
|
37
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
38
|
-
},
|
|
39
|
-
inline: false,
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
label: '我的票券跳转地址:',
|
|
43
|
-
ele: 'xd-select-pages-path',
|
|
44
|
-
valueKey: 'my_card_url',
|
|
45
|
-
groupKey:'advanced',
|
|
46
|
-
placeholder: '请选择我的票券跳转地址',
|
|
47
|
-
value: null,
|
|
48
|
-
setting: {
|
|
49
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
50
|
-
},
|
|
51
|
-
inline: false,
|
|
52
|
-
},
|
|
53
29
|
{
|
|
54
30
|
label: '票券号码框自定义文案:',
|
|
55
31
|
ele: 'el-input',
|
|
@@ -80,6 +56,41 @@ export default {
|
|
|
80
56
|
{label: "是", value: "Y"},
|
|
81
57
|
{label: "否", value: "N"},
|
|
82
58
|
]
|
|
83
|
-
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
label: "是否展示主业务线",
|
|
62
|
+
ele: "xd-radio",
|
|
63
|
+
valueKey: "isShowBuss",
|
|
64
|
+
groupKey:'content',
|
|
65
|
+
value: 'N',
|
|
66
|
+
list: [
|
|
67
|
+
{label: "展示", value: "Y"},
|
|
68
|
+
{label: "隐藏", value: "N"},
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: '票券绑定成功回跳地址:',
|
|
73
|
+
ele: 'xd-select-pages-path',
|
|
74
|
+
valueKey: 'back_url',
|
|
75
|
+
groupKey:'advanced',
|
|
76
|
+
placeholder: '请选择票券绑定成功回跳地址',
|
|
77
|
+
value: null,
|
|
78
|
+
setting: {
|
|
79
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
80
|
+
},
|
|
81
|
+
inline: false,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
label: '我的票券跳转地址:',
|
|
85
|
+
ele: 'xd-select-pages-path',
|
|
86
|
+
valueKey: 'my_card_url',
|
|
87
|
+
groupKey:'advanced',
|
|
88
|
+
placeholder: '请选择我的票券跳转地址',
|
|
89
|
+
value: null,
|
|
90
|
+
setting: {
|
|
91
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
92
|
+
},
|
|
93
|
+
inline: false,
|
|
94
|
+
},
|
|
84
95
|
],
|
|
85
96
|
};
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
<text>{{info.end_time}}</text>
|
|
86
86
|
</view>
|
|
87
87
|
<view class="card-list__yue" v-if="isShowBalance">
|
|
88
|
-
<text
|
|
88
|
+
<text>{{isShowBuss==='Y'?info.main_business_code_name:''}}余额:</text>
|
|
89
89
|
<text>{{info.card_point}} {{ info.unit }}</text>
|
|
90
90
|
</view>
|
|
91
91
|
<view class="card-list__other" v-if="info.is_bind_show_other_point === 'Y' && info.other_card_point && info.card_point_type === 2">
|
|
@@ -158,6 +158,7 @@ export default {
|
|
|
158
158
|
card_pwd_placeholder: "",
|
|
159
159
|
showInfo: false,
|
|
160
160
|
entryGroupId: '',//加载入口数据组别
|
|
161
|
+
isShowBuss:'N',//是否展示主营业务线
|
|
161
162
|
|
|
162
163
|
qrcode: "", //二维码
|
|
163
164
|
showForm: true,
|
|
@@ -242,7 +243,8 @@ export default {
|
|
|
242
243
|
this.handlerAfterBindCard(res);
|
|
243
244
|
})
|
|
244
245
|
.catch();
|
|
245
|
-
}
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
246
248
|
jfbRootExec("pwdCardBindEntry", {
|
|
247
249
|
vm: this,
|
|
248
250
|
data: {
|
|
@@ -313,6 +315,7 @@ export default {
|
|
|
313
315
|
this.card_pwd_placeholder = getContainerPropsValue(container, "content.card_pwd_placeholder", "请输入密码");
|
|
314
316
|
this.my_card_url = getContainerPropsValue(container, 'content.my_card_url', { value: "" }).value;
|
|
315
317
|
this.is_show_balance = getContainerPropsValue(container, 'content.is_show_balance', "N");
|
|
318
|
+
this.isShowBuss = getContainerPropsValue(container, 'content.isShowBuss', 'N')
|
|
316
319
|
//'wechat_mini_program|default'
|
|
317
320
|
this.entryGroupId = getContainerPropsValue(container,"content.entryGroupId","default");
|
|
318
321
|
},
|
|
@@ -312,8 +312,7 @@ export default {
|
|
|
312
312
|
if(res.receive_method !== "batch") {
|
|
313
313
|
if(res.can_take === "Y" && res.has_times === "Y" && list.length > 0){
|
|
314
314
|
if (this.isPreview) {
|
|
315
|
-
|
|
316
|
-
this.isShow = getContainerPropsValue(value, "content.is_show_dailog", 'Y') === 'N';
|
|
315
|
+
this.isShow = getContainerPropsValue(this.container, "content.is_show_dailog", 'Y') === 'N';
|
|
317
316
|
}else this.isShow = true;
|
|
318
317
|
}else{
|
|
319
318
|
this.handleCardBindClose();
|
|
@@ -324,8 +323,8 @@ export default {
|
|
|
324
323
|
} else {
|
|
325
324
|
if(res.can_take === "Y"){
|
|
326
325
|
if (this.isPreview) {
|
|
327
|
-
console.log(getContainerPropsValue(
|
|
328
|
-
this.isShow = getContainerPropsValue(
|
|
326
|
+
console.log(getContainerPropsValue(this.container, "content.is_show_dailog", 'Y'))
|
|
327
|
+
this.isShow = getContainerPropsValue(this.container, "content.is_show_dailog", 'Y') === 'N';
|
|
329
328
|
}else this.isShow = true;
|
|
330
329
|
}else{
|
|
331
330
|
this.handleCardBindClose();
|
|
@@ -374,7 +373,7 @@ export default {
|
|
|
374
373
|
});
|
|
375
374
|
setTimeout(()=>{
|
|
376
375
|
this.getDialogList();
|
|
377
|
-
},2000)
|
|
376
|
+
},2000)
|
|
378
377
|
return;
|
|
379
378
|
}
|
|
380
379
|
this.order_num = res.tmp_order_number;
|
|
@@ -265,10 +265,12 @@ export default {
|
|
|
265
265
|
this.dialogShow = false;
|
|
266
266
|
this.handleConfirm();
|
|
267
267
|
}else{
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
268
|
+
this.$xdAlert({
|
|
269
|
+
content: '签名不能为空',
|
|
270
|
+
time: 2500,
|
|
271
|
+
isClose: false,
|
|
272
|
+
zIndex: 5000
|
|
273
|
+
});
|
|
272
274
|
}
|
|
273
275
|
}
|
|
274
276
|
})
|
|
@@ -410,16 +412,20 @@ export default {
|
|
|
410
412
|
},
|
|
411
413
|
handleSendCode() {
|
|
412
414
|
if (this.phoneNumber.length < 11) {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
415
|
+
this.$xdAlert({
|
|
416
|
+
content: '请输入11位手机号',
|
|
417
|
+
time: 2500,
|
|
418
|
+
isClose: false,
|
|
419
|
+
zIndex: 5000
|
|
416
420
|
});
|
|
417
421
|
return;
|
|
418
422
|
}
|
|
419
423
|
if (!this.validatePhoneNumber(this.phoneNumber)) {
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
424
|
+
this.$xdAlert({
|
|
425
|
+
content: '手机号格式不正确',
|
|
426
|
+
time: 2500,
|
|
427
|
+
isClose: false,
|
|
428
|
+
zIndex: 5000
|
|
423
429
|
});
|
|
424
430
|
return;
|
|
425
431
|
}
|
|
@@ -900,9 +900,11 @@ export default {
|
|
|
900
900
|
if (this.time > 0) return;
|
|
901
901
|
const { phone_number } = this.accountForm;
|
|
902
902
|
if (!/^1[3-9]\d{9}$/.test(phone_number)) {
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
903
|
+
this.$xdAlert({
|
|
904
|
+
content: '请填写正确的手机号',
|
|
905
|
+
time: 2500,
|
|
906
|
+
isClose: false,
|
|
907
|
+
zIndex: 5000
|
|
906
908
|
});
|
|
907
909
|
return false;
|
|
908
910
|
}
|
|
@@ -1041,9 +1043,11 @@ export default {
|
|
|
1041
1043
|
else if (accountLoginType === "pwd" && !password)
|
|
1042
1044
|
err_tip = "密码不能为空";
|
|
1043
1045
|
if (err_tip) {
|
|
1044
|
-
return
|
|
1045
|
-
|
|
1046
|
-
|
|
1046
|
+
return this.$xdAlert({
|
|
1047
|
+
content: err_tip,
|
|
1048
|
+
time: 2500,
|
|
1049
|
+
isClose: false,
|
|
1050
|
+
zIndex: 5000
|
|
1047
1051
|
});
|
|
1048
1052
|
}
|
|
1049
1053
|
|
|
@@ -154,9 +154,11 @@ export default {
|
|
|
154
154
|
if (this.time > 0) return;
|
|
155
155
|
const { phone_number } = this.resetForm;
|
|
156
156
|
if (!/^1[3-9]\d{9}$/.test(phone_number)) {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
157
|
+
this.$xdAlert({
|
|
158
|
+
content: '请填写正确的手机号',
|
|
159
|
+
time: 2500,
|
|
160
|
+
isClose: false,
|
|
161
|
+
zIndex: 5000
|
|
160
162
|
});
|
|
161
163
|
return false;
|
|
162
164
|
}
|
|
@@ -185,9 +187,11 @@ export default {
|
|
|
185
187
|
toResetPassword() {
|
|
186
188
|
const { verification_code, phone_number } = this.resetForm;
|
|
187
189
|
if (!verification_code || !phone_number) {
|
|
188
|
-
return
|
|
189
|
-
|
|
190
|
-
|
|
190
|
+
return this.$xdAlert({
|
|
191
|
+
content: '填写手机号跟验证码',
|
|
192
|
+
time: 2500,
|
|
193
|
+
isClose: false,
|
|
194
|
+
zIndex: 5000
|
|
191
195
|
});
|
|
192
196
|
}
|
|
193
197
|
jfbRootExec("verifyPhoneCode", {
|
|
@@ -138,8 +138,22 @@
|
|
|
138
138
|
},
|
|
139
139
|
doSetPassword(){
|
|
140
140
|
const { password, confirm_password } = this.resetForm;
|
|
141
|
-
if(!password || !confirm_password)
|
|
142
|
-
|
|
141
|
+
if(!password || !confirm_password){
|
|
142
|
+
return this.$xdAlert({
|
|
143
|
+
content: '请输入密码',
|
|
144
|
+
time: 2500,
|
|
145
|
+
isClose: false,
|
|
146
|
+
zIndex: 5000
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
if(password !== confirm_password){
|
|
150
|
+
return this.$xdAlert({
|
|
151
|
+
content: '密码不一致',
|
|
152
|
+
time: 2500,
|
|
153
|
+
isClose: false,
|
|
154
|
+
zIndex: 5000
|
|
155
|
+
});
|
|
156
|
+
}
|
|
143
157
|
|
|
144
158
|
let typeFn = "resetPwd"
|
|
145
159
|
if(this.pwd_type == 1) typeFn = "setPwd"
|
|
@@ -114,9 +114,11 @@
|
|
|
114
114
|
if(res['is_ifream'] === 'Y') {
|
|
115
115
|
// #ifdef MP
|
|
116
116
|
if(!res.url){
|
|
117
|
-
return
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
return this.$xdAlert({
|
|
118
|
+
content: 'URL不存在',
|
|
119
|
+
time: 2500,
|
|
120
|
+
isClose: false,
|
|
121
|
+
zIndex: 5000
|
|
120
122
|
});
|
|
121
123
|
}
|
|
122
124
|
this.$xdUniHelper.redirectTo({
|
|
@@ -319,10 +319,11 @@ export default {
|
|
|
319
319
|
this.is_can_pay = is_can_pay;
|
|
320
320
|
this.can_pay_message = can_pay_message;
|
|
321
321
|
if(is_can_pay !== "Y"){
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
322
|
+
this.$xdAlert({
|
|
323
|
+
content: can_pay_message,
|
|
324
|
+
time: 2500,
|
|
325
|
+
isClose: false,
|
|
326
|
+
zIndex: 5000
|
|
326
327
|
});
|
|
327
328
|
reject();
|
|
328
329
|
// this.$xdNavigateBack()
|
|
@@ -385,9 +386,11 @@ export default {
|
|
|
385
386
|
let {login_providers = []} = this.projectAttr;
|
|
386
387
|
console.log(this.projectAttr)
|
|
387
388
|
if (+payInfo.channel_amount > 0 && !this.channel_provider_id) {
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
389
|
+
this.$xdAlert({
|
|
390
|
+
content: '请选择支付方式',
|
|
391
|
+
time: 2500,
|
|
392
|
+
isClose: false,
|
|
393
|
+
zIndex: 5000
|
|
391
394
|
});
|
|
392
395
|
return false;
|
|
393
396
|
}
|
|
@@ -459,23 +462,32 @@ export default {
|
|
|
459
462
|
success: (res) => {
|
|
460
463
|
this.$xdLog.setARMSInfo({options:this.options, res}, 'pay_success');
|
|
461
464
|
console.log("pay success", res);
|
|
462
|
-
|
|
463
|
-
|
|
465
|
+
this.$xdAlert({
|
|
466
|
+
content: '支付成功',
|
|
467
|
+
time: 2500,
|
|
468
|
+
isClose: false,
|
|
469
|
+
zIndex: 5000
|
|
464
470
|
});
|
|
465
471
|
cb(res);
|
|
466
472
|
},
|
|
467
473
|
cancel: () => {
|
|
468
474
|
this.$xdLog.setARMSInfo(this.options, 'cancel_pay');
|
|
469
|
-
|
|
470
|
-
|
|
475
|
+
this.$xdAlert({
|
|
476
|
+
content: '取消支付',
|
|
477
|
+
time: 2500,
|
|
478
|
+
isClose: false,
|
|
479
|
+
zIndex: 5000
|
|
471
480
|
});
|
|
472
481
|
},
|
|
473
482
|
fail: (error) => {
|
|
474
483
|
if (typeof error === 'string') error = {error: error}
|
|
475
484
|
if (window['jwxJfbSDKParams']) error = Object.assign(error, paySignData, window['jwxJfbSDKParams'])
|
|
476
485
|
this.$xdLog.setARMSError(error)
|
|
477
|
-
|
|
478
|
-
|
|
486
|
+
this.$xdAlert({
|
|
487
|
+
content: '支付失败',
|
|
488
|
+
time: 2500,
|
|
489
|
+
isClose: false,
|
|
490
|
+
zIndex: 5000
|
|
479
491
|
});
|
|
480
492
|
},
|
|
481
493
|
});
|
|
@@ -485,9 +497,11 @@ export default {
|
|
|
485
497
|
...paySignData,
|
|
486
498
|
success: (res) => {
|
|
487
499
|
this.$xdLog.setARMSInfo({options: this.options, res}, 'pay_success');
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
500
|
+
this.$xdAlert({
|
|
501
|
+
content: '支付成功',
|
|
502
|
+
time: 2500,
|
|
503
|
+
isClose: false,
|
|
504
|
+
zIndex: 5000
|
|
491
505
|
});
|
|
492
506
|
cb(res);
|
|
493
507
|
},
|
|
@@ -496,9 +510,11 @@ export default {
|
|
|
496
510
|
options: this.options,
|
|
497
511
|
error: JSON.stringify(err)
|
|
498
512
|
});
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
513
|
+
this.$xdAlert({
|
|
514
|
+
content: '支付失败',
|
|
515
|
+
time: 2500,
|
|
516
|
+
isClose: false,
|
|
517
|
+
zIndex: 5000
|
|
502
518
|
});
|
|
503
519
|
},
|
|
504
520
|
});
|
|
@@ -395,9 +395,11 @@ export default {
|
|
|
395
395
|
if (this.jfbTimeer > 0) return;
|
|
396
396
|
const { phone_number } = this.accountForm;
|
|
397
397
|
if (!/^1[3-9]\d{9}$/.test(phone_number)) {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
398
|
+
this.$xdAlert({
|
|
399
|
+
content: '请填写正确的手机号',
|
|
400
|
+
time: 2500,
|
|
401
|
+
isClose: false,
|
|
402
|
+
zIndex: 5000
|
|
401
403
|
});
|
|
402
404
|
return false;
|
|
403
405
|
}
|
|
@@ -434,8 +436,22 @@ export default {
|
|
|
434
436
|
doLoginForm() {
|
|
435
437
|
const { provider_id } = this;
|
|
436
438
|
const { phone_number, verification_code, user_name } = this.accountForm;
|
|
437
|
-
if (!phone_number || !verification_code)
|
|
438
|
-
|
|
439
|
+
if (!phone_number || !verification_code) {
|
|
440
|
+
return this.$xdAlert({
|
|
441
|
+
content: '手机号跟验证码不能为空',
|
|
442
|
+
time: 2500,
|
|
443
|
+
isClose: false,
|
|
444
|
+
zIndex: 5000
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
if(this.isCollectUsername && !user_name){
|
|
448
|
+
return this.$xdAlert({
|
|
449
|
+
content: '用户名不能为空',
|
|
450
|
+
time: 2500,
|
|
451
|
+
isClose: false,
|
|
452
|
+
zIndex: 5000
|
|
453
|
+
});
|
|
454
|
+
}
|
|
439
455
|
|
|
440
456
|
this.$xdShowLoading({})
|
|
441
457
|
jfbRootExec("phoneCollect", {
|
|
@@ -133,27 +133,16 @@
|
|
|
133
133
|
>暂不登录,去逛逛</view> -->
|
|
134
134
|
</view>
|
|
135
135
|
<xd-dialog :show.sync="showDialog"
|
|
136
|
+
title="系统提示"
|
|
136
137
|
:showClose="false"
|
|
137
|
-
|
|
138
|
-
|
|
138
|
+
:btnRadius="60"
|
|
139
|
+
maskAutoClose>
|
|
139
140
|
<view class="p_dialog_content">
|
|
140
|
-
<view class="">
|
|
141
|
-
<xd-font-icon icon="iconmingchengtubiao" :size="48" color="#666"></xd-font-icon>
|
|
142
|
-
</view>
|
|
143
|
-
<view class="cont_text">检测到短信发送异常<br/>是否跳过手机号收集?</view>
|
|
141
|
+
<view class="cont_text">检测到短信发送异常<br/>您是否跳过当前步骤</view>
|
|
144
142
|
</view>
|
|
145
|
-
<view slot="btn" class="btn_foot"
|
|
146
|
-
<
|
|
147
|
-
|
|
148
|
-
}"
|
|
149
|
-
@click="p_loginNotJump"
|
|
150
|
-
>不跳过</view>
|
|
151
|
-
<view class="btn_item" :style="{
|
|
152
|
-
backgroundColor: mainColor,
|
|
153
|
-
color: '#FFF'
|
|
154
|
-
}"
|
|
155
|
-
@click="p_loginJumpPhone"
|
|
156
|
-
>跳过</view>
|
|
143
|
+
<view slot="btn" class="btn_foot">
|
|
144
|
+
<xd-button width="240rpx" type="info" @click="p_loginNotJump">取消</xd-button>
|
|
145
|
+
<xd-button width="240rpx" type="primary" @click="p_loginJumpPhone">跳过</xd-button>
|
|
157
146
|
</view>
|
|
158
147
|
</xd-dialog>
|
|
159
148
|
</view>
|
|
@@ -516,9 +505,11 @@ export default {
|
|
|
516
505
|
if (this.jfbTimeer > 0) return;
|
|
517
506
|
const { phone_number } = this.accountForm;
|
|
518
507
|
if (!/^1[3-9]\d{9}$/.test(phone_number)) {
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
508
|
+
this.$xdAlert({
|
|
509
|
+
content: '请填写正确的手机号',
|
|
510
|
+
time: 2500,
|
|
511
|
+
isClose: false,
|
|
512
|
+
zIndex: 5000
|
|
522
513
|
});
|
|
523
514
|
return false;
|
|
524
515
|
}
|
|
@@ -592,10 +583,20 @@ export default {
|
|
|
592
583
|
const { auth_code, provider_id } = this;
|
|
593
584
|
const { phone_number, verification_code, user_name } = this.accountForm;
|
|
594
585
|
if (!phone_number || !verification_code){
|
|
595
|
-
return
|
|
586
|
+
return this.$xdAlert({
|
|
587
|
+
content: '手机号跟验证码不能为空',
|
|
588
|
+
time: 2500,
|
|
589
|
+
isClose: false,
|
|
590
|
+
zIndex: 5000
|
|
591
|
+
});
|
|
596
592
|
}
|
|
597
593
|
if(this.isCollectUsername && !user_name){
|
|
598
|
-
return
|
|
594
|
+
return this.$xdAlert({
|
|
595
|
+
content: '用户名不能为空',
|
|
596
|
+
time: 2500,
|
|
597
|
+
isClose: false,
|
|
598
|
+
zIndex: 5000
|
|
599
|
+
});
|
|
599
600
|
}
|
|
600
601
|
this.$xdShowLoading({});
|
|
601
602
|
jfbRootExec("phoneLogin", {
|
|
@@ -663,12 +664,12 @@ export default {
|
|
|
663
664
|
::v-deep .xd-dailog__body{
|
|
664
665
|
overflow: hidden;
|
|
665
666
|
}
|
|
666
|
-
::v-deep .xd-dailog__body-content{
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
}
|
|
667
|
+
// ::v-deep .xd-dailog__body-content{
|
|
668
|
+
// padding: 0;
|
|
669
|
+
// overflow: hidden;
|
|
670
|
+
// }
|
|
670
671
|
.p_dialog_content{
|
|
671
|
-
padding:
|
|
672
|
+
padding: 20rpx 0rpx;
|
|
672
673
|
display: flex;
|
|
673
674
|
align-items: center;
|
|
674
675
|
justify-content: center;
|
|
@@ -676,7 +677,7 @@ export default {
|
|
|
676
677
|
text-align: left;
|
|
677
678
|
margin-left: 12rpx;
|
|
678
679
|
font-size: 32rpx;
|
|
679
|
-
color: #
|
|
680
|
+
color: #999999;
|
|
680
681
|
}
|
|
681
682
|
}
|
|
682
683
|
.btn_foot{
|
|
@@ -528,10 +528,14 @@
|
|
|
528
528
|
async toBindCardTicket(){
|
|
529
529
|
console.log(this.form, 'this.form')
|
|
530
530
|
const { card_password, card_number, valid_code } = this.form;
|
|
531
|
-
if(!valid_code)
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
531
|
+
if(!valid_code){
|
|
532
|
+
return this.$xdAlert({
|
|
533
|
+
content: '请输入验证码',
|
|
534
|
+
time: 2500,
|
|
535
|
+
isClose: false,
|
|
536
|
+
zIndex: 5000
|
|
537
|
+
});
|
|
538
|
+
}
|
|
535
539
|
this.$xdShowLoading({});
|
|
536
540
|
|
|
537
541
|
this.checkValidToken().then(() => {
|
|
@@ -556,9 +560,11 @@
|
|
|
556
560
|
const { code } = this.form;
|
|
557
561
|
|
|
558
562
|
if(!code) {
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
563
|
+
this.$xdAlert({
|
|
564
|
+
content: '请输入电子码',
|
|
565
|
+
time: 2500,
|
|
566
|
+
isClose: false,
|
|
567
|
+
zIndex: 5000
|
|
562
568
|
});
|
|
563
569
|
return ""
|
|
564
570
|
};
|
|
@@ -586,10 +592,11 @@
|
|
|
586
592
|
if(res.is_valid){
|
|
587
593
|
r();
|
|
588
594
|
}else{
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
595
|
+
this.$xdAlert({
|
|
596
|
+
content: '验证码错误',
|
|
597
|
+
time: 2500,
|
|
598
|
+
isClose: false,
|
|
599
|
+
zIndex: 5000
|
|
593
600
|
});
|
|
594
601
|
this.switchValidToken();
|
|
595
602
|
j();
|