jufubao-base 1.0.119-beta2 → 1.0.119-beta21
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 +4 -3
- package/src/components/JfbBaseCard/JfbBaseCard.vue +9 -6
- package/src/components/JfbBaseCardBind/JfbBaseCardBind.vue +8 -4
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +8 -8
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +9 -4
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +24 -32
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +46 -50
- package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfo.vue +13 -5
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +8 -2
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +8 -4
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +146 -89
- package/src/components/JfbBaseMySetting/Api.js +2 -2
- package/src/components/JfbBaseMySetting/Attr.js +5 -4
- package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +3 -25
- package/src/components/JfbBaseMySetting/Mock.js +2 -1
- package/src/components/JfbBasePay/JfbBasePay.vue +8 -3
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +268 -238
- package/src/components/{JfbBaseConFlashHome → JfbBaseWallet}/Api.js +1 -1
- package/src/components/JfbBaseWallet/Attr.js +101 -0
- package/src/components/JfbBaseWallet/JfbBaseWallet.vue +306 -0
- package/src/components/{JfbBaseSaasHome/JfbBaseSaasHomeLess.less → JfbBaseWallet/JfbBaseWalletLess.less} +2 -2
- package/src/components/{JfbBaseSaasHome/JfbBaseSaasHomeMixin.js → JfbBaseWallet/JfbBaseWalletMixin.js} +1 -1
- package/src/components/{JfbBaseConFlashHome → JfbBaseWallet}/Mock.js +1 -0
- package/src/components/{JfbBaseSaasNewsList → JfbBaseWalletDetail}/Api.js +5 -5
- package/src/components/{JfbBaseSaasNewsDetail → JfbBaseWalletDetail}/Attr.js +3 -1
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetail.vue +175 -0
- package/src/components/{JfbBaseConFlashList/JfbBaseConFlashListLess.less → JfbBaseWalletDetail/JfbBaseWalletDetailLess.less} +2 -2
- package/src/components/{JfbBaseConFlashHome/JfbBaseConFlashHomeMixin.js → JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js} +1 -1
- package/src/components/JfbBaseWalletDetail/Mock.js +6 -0
- package/src/components/{JfbBaseSaasNewsDetail → JfbBaseWalletEffective}/Api.js +7 -7
- package/src/components/JfbBaseWalletEffective/Attr.js +15 -0
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffective.vue +176 -0
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +80 -0
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveMixin.js +30 -0
- package/src/components/JfbBaseWalletEffective/Mock.js +21 -0
- package/src/components/JfbBaseWalletIndex/Api.js +48 -0
- package/src/components/JfbBaseWalletIndex/Attr.js +33 -0
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +821 -0
- package/src/components/{JfbBaseConFlashHome/JfbBaseConFlashHomeLess.less → JfbBaseWalletIndex/JfbBaseWalletIndexLess.less} +2 -2
- package/src/components/{JfbBaseConFlashList/JfbBaseConFlashListMixin.js → JfbBaseWalletIndex/JfbBaseWalletIndexMixin.js} +1 -1
- package/src/components/JfbBaseWalletIndex/Mock.js +7 -0
- package/src/components/JfbBaseWalletItem/Api.js +37 -0
- package/src/components/JfbBaseWalletItem/Attr.js +33 -0
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +501 -0
- package/src/components/{JfbBaseSaasLogin/JfbBaseSaasLoginLess.less → JfbBaseWalletItem/JfbBaseWalletItemLess.less} +2 -2
- package/src/components/{JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js → JfbBaseWalletItem/JfbBaseWalletItemMixin.js} +1 -1
- package/src/components/JfbBaseWalletItem/Mock.js +7 -0
- package/src/components/JfbBaseConFlashHome/Attr.js +0 -129
- package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHome.vue +0 -388
- package/src/components/JfbBaseConFlashList/Api.js +0 -60
- package/src/components/JfbBaseConFlashList/Attr.js +0 -117
- package/src/components/JfbBaseConFlashList/JfbBaseConFlashList.vue +0 -656
- package/src/components/JfbBaseConFlashList/Mock.js +0 -5
- package/src/components/JfbBaseSaasBlessDetail/Api.js +0 -59
- package/src/components/JfbBaseSaasBlessDetail/Attr.js +0 -24
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +0 -315
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +0 -80
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +0 -30
- package/src/components/JfbBaseSaasBlessDetail/Mock.js +0 -5
- package/src/components/JfbBaseSaasBlessDialog/Api.js +0 -25
- package/src/components/JfbBaseSaasBlessDialog/Attr.js +0 -50
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +0 -274
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +0 -80
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +0 -30
- package/src/components/JfbBaseSaasBlessDialog/Mock.js +0 -5
- package/src/components/JfbBaseSaasBlessReceive/Api.js +0 -25
- package/src/components/JfbBaseSaasBlessReceive/Attr.js +0 -24
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +0 -183
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +0 -80
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +0 -30
- package/src/components/JfbBaseSaasBlessReceive/Mock.js +0 -5
- package/src/components/JfbBaseSaasHome/Api.js +0 -48
- package/src/components/JfbBaseSaasHome/Attr.js +0 -35
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +0 -356
- package/src/components/JfbBaseSaasHome/Mock.js +0 -5
- package/src/components/JfbBaseSaasLogin/Api.js +0 -39
- package/src/components/JfbBaseSaasLogin/Attr.js +0 -37
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +0 -410
- package/src/components/JfbBaseSaasLogin/Mock.js +0 -5
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +0 -144
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +0 -80
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +0 -30
- package/src/components/JfbBaseSaasNewsDetail/Mock.js +0 -5
- package/src/components/JfbBaseSaasNewsList/Attr.js +0 -24
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +0 -181
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +0 -80
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +0 -30
- package/src/components/JfbBaseSaasNewsList/Mock.js +0 -5
- package/src/components/JfbBaseSassPhoneCollect/Api.js +0 -39
- package/src/components/JfbBaseSassPhoneCollect/Attr.js +0 -438
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollect.vue +0 -266
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectLess.less +0 -80
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectMixin.js +0 -30
- package/src/components/JfbBaseSassPhoneCollect/Mock.js +0 -5
|
@@ -115,6 +115,8 @@ export default {
|
|
|
115
115
|
pa: "", //二维码
|
|
116
116
|
//页面跳转地址
|
|
117
117
|
backUrl: "",
|
|
118
|
+
|
|
119
|
+
inCallbackUrlOrg:'',//是否带有回调地址
|
|
118
120
|
};
|
|
119
121
|
},
|
|
120
122
|
watch: {
|
|
@@ -131,7 +133,7 @@ export default {
|
|
|
131
133
|
},
|
|
132
134
|
created() {
|
|
133
135
|
this.init(this.container);
|
|
134
|
-
|
|
136
|
+
|
|
135
137
|
},
|
|
136
138
|
methods: {
|
|
137
139
|
handleToLink(path) {
|
|
@@ -149,19 +151,22 @@ export default {
|
|
|
149
151
|
//#ifdef H5
|
|
150
152
|
let base = this.jfbAuthorize.getBasePath(this);
|
|
151
153
|
let url = `${location.origin}${base}${this.backUrl}`;
|
|
154
|
+
url = this.getUrlCallback(url)
|
|
152
155
|
this.$xdLog.setARMSInfo({url}, 'static_qr_card_bind');
|
|
156
|
+
|
|
153
157
|
setTimeout(()=>{
|
|
154
158
|
window.location.href = url;
|
|
155
159
|
},50);
|
|
156
160
|
// #endif
|
|
157
|
-
|
|
161
|
+
|
|
158
162
|
//#ifndef H5
|
|
163
|
+
let wPath = this.getUrlCallback(this.backUrl)
|
|
159
164
|
this.$xdUniHelper.redirectTo({
|
|
160
|
-
url:
|
|
165
|
+
url:wPath,
|
|
161
166
|
});
|
|
162
167
|
// #endif
|
|
163
|
-
|
|
164
|
-
|
|
168
|
+
|
|
169
|
+
|
|
165
170
|
},
|
|
166
171
|
});
|
|
167
172
|
})
|
|
@@ -173,6 +178,9 @@ export default {
|
|
|
173
178
|
},
|
|
174
179
|
onJfbLoad(options) {
|
|
175
180
|
this.pa = options.pa;
|
|
181
|
+
if(options.inCallback) {
|
|
182
|
+
this.inCallbackUrlOrg = options.inCallback;
|
|
183
|
+
}
|
|
176
184
|
//正式环境判断参数错误
|
|
177
185
|
if(!this.$configProject.isPreview) {
|
|
178
186
|
if(!this.pa) {
|
|
@@ -150,7 +150,9 @@
|
|
|
150
150
|
bottom: 0,
|
|
151
151
|
right: 0
|
|
152
152
|
},
|
|
153
|
-
loadingCardList: true
|
|
153
|
+
loadingCardList: true,
|
|
154
|
+
|
|
155
|
+
inCallbackUrlOrg:'',//是否带有回调地址
|
|
154
156
|
}
|
|
155
157
|
},
|
|
156
158
|
watch: {
|
|
@@ -177,6 +179,9 @@
|
|
|
177
179
|
this.$storage.set("inCallback", inCallback);
|
|
178
180
|
try{
|
|
179
181
|
inCallback = Base64.decode(inCallback);
|
|
182
|
+
if(options.inCallback) {
|
|
183
|
+
this.inCallbackUrlOrg = options.inCallback;
|
|
184
|
+
}
|
|
180
185
|
}catch (e){
|
|
181
186
|
inCallback = null;
|
|
182
187
|
}
|
|
@@ -242,8 +247,9 @@
|
|
|
242
247
|
});
|
|
243
248
|
},
|
|
244
249
|
toBindCard(){
|
|
250
|
+
let path = this.getUrlCallback(this.cardBindPath)
|
|
245
251
|
this.$xdUniHelper.navigateTo({
|
|
246
|
-
url:
|
|
252
|
+
url:path
|
|
247
253
|
})
|
|
248
254
|
},
|
|
249
255
|
toOrderList(){
|
|
@@ -72,6 +72,8 @@
|
|
|
72
72
|
detailUrl: "",
|
|
73
73
|
login_name:'',
|
|
74
74
|
loadingCardList: true,
|
|
75
|
+
|
|
76
|
+
inCallbackUrlOrg:'',//是否带有回调地址
|
|
75
77
|
}
|
|
76
78
|
},
|
|
77
79
|
watch: {
|
|
@@ -86,8 +88,6 @@
|
|
|
86
88
|
},
|
|
87
89
|
created() {
|
|
88
90
|
this.init(this.container);
|
|
89
|
-
|
|
90
|
-
//todo
|
|
91
91
|
},
|
|
92
92
|
methods: {
|
|
93
93
|
onJfbLoad(options) {
|
|
@@ -97,6 +97,9 @@
|
|
|
97
97
|
this.$storage.set("inCallback", inCallback);
|
|
98
98
|
try{
|
|
99
99
|
inCallback = Base64.decode(inCallback);
|
|
100
|
+
if(options.inCallback) {
|
|
101
|
+
this.inCallbackUrlOrg = options.inCallback;
|
|
102
|
+
}
|
|
100
103
|
}catch (e){
|
|
101
104
|
inCallback = null;
|
|
102
105
|
}
|
|
@@ -127,12 +130,13 @@
|
|
|
127
130
|
init(container) {
|
|
128
131
|
this.cardBindPath = getContainerPropsValue(container, "content.cardBindPath", {value: ""}).value;
|
|
129
132
|
this.changeUrl = getContainerPropsValue(container, "content.changeUrl", {value: ""}).value;
|
|
130
|
-
this.detailUrl =
|
|
133
|
+
this.detailUrl = getContainerPropsValue(container, "content.detailUrl", {value: ""}).value;
|
|
131
134
|
this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
|
|
132
135
|
},
|
|
133
136
|
toBindCard(){
|
|
137
|
+
let path = this.getUrlCallback(this.cardBindPath)
|
|
134
138
|
this.$xdUniHelper.navigateTo({
|
|
135
|
-
url:
|
|
139
|
+
url: path
|
|
136
140
|
})
|
|
137
141
|
},
|
|
138
142
|
toDetail(item) {
|
|
@@ -14,95 +14,110 @@
|
|
|
14
14
|
</view>
|
|
15
15
|
<!-- #endif -->
|
|
16
16
|
<view class="jfb-base-con-phone__body" v-if="done">
|
|
17
|
-
<view
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<view>
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
v-model="valid_code"
|
|
40
|
-
placeholder="请输入验证码"
|
|
41
|
-
type="text"
|
|
42
|
-
/>
|
|
43
|
-
<XdButton
|
|
44
|
-
:disabled="disabled"
|
|
45
|
-
class="jfb-base-con-phone__body-wrap-input-code-btn"
|
|
46
|
-
type="primary"
|
|
47
|
-
:bg-color="mainColor"
|
|
48
|
-
size="small"
|
|
49
|
-
@click="handleSendCode"
|
|
50
|
-
>{{ message }}</XdButton
|
|
17
|
+
<view v-if="has_times === 'Y'">
|
|
18
|
+
<view
|
|
19
|
+
class="jfb-base-con-phone__body-wrap"
|
|
20
|
+
:style="{
|
|
21
|
+
height: topHeight + 'rpx',
|
|
22
|
+
width: topWidth + 'rpx',
|
|
23
|
+
backgroundImage: `url(${background})`,
|
|
24
|
+
backgroundSize: '100% 100%',
|
|
25
|
+
}"
|
|
26
|
+
>
|
|
27
|
+
<view v-if="showCode" class="jfb-base-con-phone__body-wrap-input">
|
|
28
|
+
<view>
|
|
29
|
+
<input
|
|
30
|
+
@input="filterSpaces"
|
|
31
|
+
v-model="phoneNumber"
|
|
32
|
+
placeholder="请输入手机号"
|
|
33
|
+
type="text"
|
|
34
|
+
/>
|
|
35
|
+
</view>
|
|
36
|
+
<view
|
|
37
|
+
class="jfb-base-con-phone__body-wrap-input-code"
|
|
38
|
+
style="margin-bottom: 54rpx"
|
|
51
39
|
>
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
radius="20rpx"
|
|
58
|
-
size="small"
|
|
59
|
-
:disabled="!phoneNumber || !valid_code"
|
|
60
|
-
@click="handleConfirm"
|
|
61
|
-
>确认领取</XdButton
|
|
62
|
-
>
|
|
63
|
-
</view>
|
|
64
|
-
<view v-else class="jfb-base-con-phone__body-wrap-input">
|
|
65
|
-
<view class="jfb-base-con-phone__body-wrap-input-phone">
|
|
66
|
-
<view class="jfb-base-con-phone__body-wrap-input-phone-change">
|
|
67
|
-
<view>当前登录手机号</view>
|
|
40
|
+
<input
|
|
41
|
+
v-model="valid_code"
|
|
42
|
+
placeholder="请输入验证码"
|
|
43
|
+
type="text"
|
|
44
|
+
/>
|
|
68
45
|
<XdButton
|
|
69
|
-
|
|
46
|
+
:disabled="disabled"
|
|
47
|
+
class="jfb-base-con-phone__body-wrap-input-code-btn"
|
|
70
48
|
type="primary"
|
|
71
49
|
:bg-color="mainColor"
|
|
72
50
|
size="small"
|
|
73
|
-
@click="
|
|
74
|
-
|
|
51
|
+
@click="handleSendCode"
|
|
52
|
+
>{{ message }}</XdButton
|
|
75
53
|
>
|
|
76
54
|
</view>
|
|
77
|
-
<
|
|
55
|
+
<XdButton
|
|
56
|
+
type="primary"
|
|
57
|
+
:bg-color="mainColor"
|
|
58
|
+
width="360rpx"
|
|
59
|
+
radius="20rpx"
|
|
60
|
+
size="small"
|
|
61
|
+
:disabled="!phoneNumber || !valid_code"
|
|
62
|
+
@click="handleConfirm"
|
|
63
|
+
>确认领取</XdButton
|
|
64
|
+
>
|
|
65
|
+
</view>
|
|
66
|
+
<view v-else class="jfb-base-con-phone__body-wrap-input">
|
|
67
|
+
<view class="jfb-base-con-phone__body-wrap-input-phone">
|
|
68
|
+
<view class="jfb-base-con-phone__body-wrap-input-phone-change">
|
|
69
|
+
<view>当前登录手机号</view>
|
|
70
|
+
<XdButton
|
|
71
|
+
style="margin: 0"
|
|
72
|
+
type="primary"
|
|
73
|
+
:bg-color="mainColor"
|
|
74
|
+
size="small"
|
|
75
|
+
@click="showCode = true"
|
|
76
|
+
>切换手机号</XdButton
|
|
77
|
+
>
|
|
78
|
+
</view>
|
|
79
|
+
<view>{{ showOhoneNumber }}</view>
|
|
80
|
+
</view>
|
|
81
|
+
<XdButton
|
|
82
|
+
type="primary"
|
|
83
|
+
:bg-color="mainColor"
|
|
84
|
+
width="360rpx"
|
|
85
|
+
radius="20rpx"
|
|
86
|
+
size="small"
|
|
87
|
+
@click="handleConfirm"
|
|
88
|
+
>直接领取</XdButton
|
|
89
|
+
>
|
|
78
90
|
</view>
|
|
79
|
-
<XdButton
|
|
80
|
-
type="primary"
|
|
81
|
-
:bg-color="mainColor"
|
|
82
|
-
width="360rpx"
|
|
83
|
-
radius="20rpx"
|
|
84
|
-
size="small"
|
|
85
|
-
@click="handleConfirm"
|
|
86
|
-
>直接领取</XdButton
|
|
87
|
-
>
|
|
88
91
|
</view>
|
|
89
|
-
<view
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
type="primary"
|
|
101
|
-
:bg-color="mainColor"
|
|
102
|
-
radius="20rpx"
|
|
103
|
-
@click="handleTo(btnTwoUrl)"
|
|
104
|
-
>{{ btnTwoName }}</XdButton
|
|
92
|
+
<view
|
|
93
|
+
:style="{
|
|
94
|
+
height: bottomHeight + 'rpx',
|
|
95
|
+
width: bottomWidth + 'rpx',
|
|
96
|
+
backgroundImage: `url(${used_background})`,
|
|
97
|
+
backgroundSize: '100% 100%',
|
|
98
|
+
}"
|
|
99
|
+
>
|
|
100
|
+
<view
|
|
101
|
+
v-if="showBtn === 'Y'"
|
|
102
|
+
class="jfb-base-con-phone__body-wrap-btn"
|
|
105
103
|
>
|
|
104
|
+
<XdButton
|
|
105
|
+
size="small"
|
|
106
|
+
type="primary"
|
|
107
|
+
:bg-color="mainColor"
|
|
108
|
+
radius="20rpx"
|
|
109
|
+
@click="handleTo(btnOneUrl)"
|
|
110
|
+
>{{ btnOneName }}</XdButton
|
|
111
|
+
>
|
|
112
|
+
<XdButton
|
|
113
|
+
size="small"
|
|
114
|
+
type="primary"
|
|
115
|
+
:bg-color="mainColor"
|
|
116
|
+
radius="20rpx"
|
|
117
|
+
@click="handleTo(btnTwoUrl)"
|
|
118
|
+
>{{ btnTwoName }}</XdButton
|
|
119
|
+
>
|
|
120
|
+
</view>
|
|
106
121
|
</view>
|
|
107
122
|
</view>
|
|
108
123
|
<view
|
|
@@ -124,7 +139,7 @@ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
|
124
139
|
import XdButton from "@/components/XdButton/XdButton";
|
|
125
140
|
import { jfbRootExec } from "@/utils/xd.event";
|
|
126
141
|
import JfbBaseConPhoneMixin from "./JfbBaseConPhoneMixin";
|
|
127
|
-
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
142
|
+
import { getContainerPropsValue, getImageInfo } from "@/utils/xd.base";
|
|
128
143
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
129
144
|
import extsMixins from "@/mixins/extsMixins";
|
|
130
145
|
import { mapState } from "vuex";
|
|
@@ -155,14 +170,14 @@ export default {
|
|
|
155
170
|
btnTwoUrl: "",
|
|
156
171
|
message: "发送验证码",
|
|
157
172
|
countdownTimer: null,
|
|
158
|
-
timeRemaining:
|
|
173
|
+
timeRemaining: 120,
|
|
159
174
|
disabled: false,
|
|
160
|
-
background:"",
|
|
175
|
+
background: "",
|
|
161
176
|
method: "entry",
|
|
162
177
|
options: {},
|
|
163
178
|
activity_id: "",
|
|
164
179
|
done: false,
|
|
165
|
-
has_times:
|
|
180
|
+
has_times: "N",
|
|
166
181
|
errmessage: "",
|
|
167
182
|
showOhoneNumber: "", //仅用于展示
|
|
168
183
|
order_num: null,
|
|
@@ -170,6 +185,12 @@ export default {
|
|
|
170
185
|
date: 2, //时间底数
|
|
171
186
|
time: 0, //时间幂指数
|
|
172
187
|
timeer: null,
|
|
188
|
+
topHeight: "",
|
|
189
|
+
topWidth: "750",
|
|
190
|
+
used_background: "",
|
|
191
|
+
bottomHeight: "",
|
|
192
|
+
bottomWidth: "750",
|
|
193
|
+
showBtn: "N",
|
|
173
194
|
};
|
|
174
195
|
},
|
|
175
196
|
watch: {
|
|
@@ -204,6 +225,25 @@ export default {
|
|
|
204
225
|
: "phone";
|
|
205
226
|
await this.getList();
|
|
206
227
|
},
|
|
228
|
+
filterSpaces(event) {
|
|
229
|
+
// 使用replace方法去除用户输入的空格
|
|
230
|
+
let value = event.target.value.replace(/\s+/g, "");
|
|
231
|
+
// 更新数据以移除空格
|
|
232
|
+
this.phoneNumber = value;
|
|
233
|
+
// 将处理后的值反映到视图
|
|
234
|
+
event.target.value = value;
|
|
235
|
+
},
|
|
236
|
+
validatePhoneNumber(phoneNumber) {
|
|
237
|
+
// 定义手机号正则表达式
|
|
238
|
+
const regex = /^1[3-9]\d{9}$/;
|
|
239
|
+
|
|
240
|
+
// 检查输入的手机号是否符合格式
|
|
241
|
+
if (phoneNumber.match(regex)) {
|
|
242
|
+
return true;
|
|
243
|
+
} else {
|
|
244
|
+
return false;
|
|
245
|
+
}
|
|
246
|
+
},
|
|
207
247
|
getList() {
|
|
208
248
|
jfbRootExec("getCouponPhoneList", {
|
|
209
249
|
vm: this,
|
|
@@ -214,7 +254,7 @@ export default {
|
|
|
214
254
|
activity_id: this.activity_id,
|
|
215
255
|
},
|
|
216
256
|
})
|
|
217
|
-
.then((res) => {
|
|
257
|
+
.then(async (res) => {
|
|
218
258
|
console.log(res, "res");
|
|
219
259
|
this.has_times = res.has_times;
|
|
220
260
|
this.showBtn = res.phone_button;
|
|
@@ -222,7 +262,15 @@ export default {
|
|
|
222
262
|
this.btnTwoName = res.button_name_two;
|
|
223
263
|
this.btnOneUrl = res.button_url_one;
|
|
224
264
|
this.btnTwoUrl = res.button_url_two;
|
|
265
|
+
let image = await getImageInfo(getServiceUrl(res.background));
|
|
266
|
+
let image1 = await getImageInfo(getServiceUrl(res.used_background));
|
|
267
|
+
console.log({ ...image }, "imageimage");
|
|
268
|
+
this.topHeight = image.imgHeight / this.$rpxNum;
|
|
269
|
+
this.topWidth = '100%';
|
|
270
|
+
this.bottomHeight = image1.imgHeight / this.$rpxNum;
|
|
271
|
+
this.bottomWidth = '100%';
|
|
225
272
|
this.background = getServiceUrl(res.background);
|
|
273
|
+
this.used_background = getServiceUrl(res.used_background);
|
|
226
274
|
this.errmessage = res.message;
|
|
227
275
|
this.done = true;
|
|
228
276
|
})
|
|
@@ -248,6 +296,13 @@ export default {
|
|
|
248
296
|
});
|
|
249
297
|
return;
|
|
250
298
|
}
|
|
299
|
+
if (!this.validatePhoneNumber(this.phoneNumber)) {
|
|
300
|
+
uni.showToast({
|
|
301
|
+
title: "手机号格式不正确",
|
|
302
|
+
icon: "none",
|
|
303
|
+
});
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
251
306
|
// 发送验证码的异步操作
|
|
252
307
|
uni.showToast({
|
|
253
308
|
title: "发送中",
|
|
@@ -265,7 +320,7 @@ export default {
|
|
|
265
320
|
},
|
|
266
321
|
startCountdown() {
|
|
267
322
|
// 设置剩余时间
|
|
268
|
-
this.timeRemaining =
|
|
323
|
+
this.timeRemaining = 120;
|
|
269
324
|
// 设置定时器,每秒执行一次
|
|
270
325
|
this.countdownTimer = setInterval(() => {
|
|
271
326
|
// 每秒减少1
|
|
@@ -281,7 +336,7 @@ export default {
|
|
|
281
336
|
// 清除定时器
|
|
282
337
|
clearInterval(this.countdownTimer);
|
|
283
338
|
// 重新设置时间
|
|
284
|
-
this.timeRemaining =
|
|
339
|
+
this.timeRemaining = 120;
|
|
285
340
|
}
|
|
286
341
|
}, 1000);
|
|
287
342
|
},
|
|
@@ -424,13 +479,15 @@ export default {
|
|
|
424
479
|
}
|
|
425
480
|
&-wrap {
|
|
426
481
|
display: flex;
|
|
427
|
-
justify-content:
|
|
482
|
+
justify-content: flex-end;
|
|
428
483
|
align-items: center;
|
|
429
484
|
flex-direction: column;
|
|
430
485
|
&-input {
|
|
431
486
|
border-radius: 40rpx;
|
|
432
487
|
background: rgba(255, 255, 255, 0.5);
|
|
433
488
|
padding: 70rpx 60rpx;
|
|
489
|
+
position: relative;
|
|
490
|
+
bottom: 120rpx;
|
|
434
491
|
input {
|
|
435
492
|
margin-bottom: 26rpx;
|
|
436
493
|
font-size: 28rpx;
|
|
@@ -477,8 +534,8 @@ export default {
|
|
|
477
534
|
display: flex;
|
|
478
535
|
justify-content: space-around;
|
|
479
536
|
align-items: center;
|
|
480
|
-
width:
|
|
481
|
-
|
|
537
|
+
width: 750rpx;
|
|
538
|
+
padding-top: 40rpx;
|
|
482
539
|
}
|
|
483
540
|
}
|
|
484
541
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
module.exports = [
|
|
14
14
|
{
|
|
15
|
-
mapFnName: '
|
|
15
|
+
mapFnName: 'getBaseUserInfo',
|
|
16
16
|
title: '获取用户信息',
|
|
17
17
|
path: '/passport/v1/user/get',
|
|
18
18
|
params: {},
|
|
@@ -21,7 +21,7 @@ module.exports = [
|
|
|
21
21
|
disabled: true,
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
mapFnName: '
|
|
24
|
+
mapFnName: 'getBaseCardUserSetting',
|
|
25
25
|
title: '获取用户卡券配置',
|
|
26
26
|
path: '/card/v1/card-bind/get-card-user-setting',
|
|
27
27
|
params: {},
|
|
@@ -8,10 +8,11 @@ export default {
|
|
|
8
8
|
content: (data) => {
|
|
9
9
|
return [
|
|
10
10
|
{
|
|
11
|
-
label: '绑定手机号地址:',
|
|
12
|
-
ele: 'xd-select-pages-path',
|
|
13
|
-
valueKey: 'bind_phone_url',
|
|
14
|
-
value: data['bind_phone_url'] ||
|
|
11
|
+
label: '绑定手机号地址:',
|
|
12
|
+
ele: 'xd-select-pages-path',
|
|
13
|
+
valueKey: 'bind_phone_url',
|
|
14
|
+
value: data['bind_phone_url'] || null,
|
|
15
|
+
//groupKey:'advanced',
|
|
15
16
|
setting: {
|
|
16
17
|
router: XdBus.getParentApi('getPagesTree')
|
|
17
18
|
},
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
style="margin-bottom: 8rpx;"
|
|
23
23
|
@click="handleToShowSwitch"
|
|
24
24
|
>
|
|
25
|
+
|
|
25
26
|
<view v-if="!showSwitch">去配置</view>
|
|
26
27
|
<view v-else class="switch_wrap">
|
|
27
28
|
<view :style="{
|
|
@@ -91,8 +92,6 @@
|
|
|
91
92
|
},
|
|
92
93
|
created() {
|
|
93
94
|
this.init(this.container);
|
|
94
|
-
|
|
95
|
-
//todo
|
|
96
95
|
},
|
|
97
96
|
methods: {
|
|
98
97
|
onJfbLoad(options) {
|
|
@@ -131,7 +130,7 @@
|
|
|
131
130
|
})
|
|
132
131
|
},
|
|
133
132
|
p_getUserInfo(){
|
|
134
|
-
jfbRootExec("
|
|
133
|
+
jfbRootExec("getBaseUserInfo", {
|
|
135
134
|
vm: this,
|
|
136
135
|
data: {
|
|
137
136
|
|
|
@@ -146,7 +145,7 @@
|
|
|
146
145
|
})
|
|
147
146
|
},
|
|
148
147
|
getCardConfig(){
|
|
149
|
-
jfbRootExec("
|
|
148
|
+
jfbRootExec("getBaseCardUserSetting", {
|
|
150
149
|
vm: this,
|
|
151
150
|
data: {}
|
|
152
151
|
}).then(res => {
|
|
@@ -173,27 +172,6 @@
|
|
|
173
172
|
})
|
|
174
173
|
}
|
|
175
174
|
},
|
|
176
|
-
onJfbScroll(options) {
|
|
177
|
-
console.log('event.onJfbScroll', options)
|
|
178
|
-
},
|
|
179
|
-
onJfbReachBottom(options) {
|
|
180
|
-
console.log('event.onJfbReachBottom', options)
|
|
181
|
-
},
|
|
182
|
-
onJfbShow(options) {
|
|
183
|
-
console.log('event.onJfbShow', options)
|
|
184
|
-
},
|
|
185
|
-
onJfbHide(options) {
|
|
186
|
-
console.log('event.onJfbHide', options)
|
|
187
|
-
},
|
|
188
|
-
onJfbBack(options) {
|
|
189
|
-
console.log('event.onJfbBack', options)
|
|
190
|
-
},
|
|
191
|
-
onJfbUpdate(...data) {
|
|
192
|
-
console.log('event.onJfbUpdate', data)
|
|
193
|
-
},
|
|
194
|
-
onJfbCustomEvent(options) {
|
|
195
|
-
console.log('event.onJfbReachBottom', options)
|
|
196
|
-
},
|
|
197
175
|
}
|
|
198
176
|
}
|
|
199
177
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
|
|
4
|
+
getBaseUserInfo: {"user_name":"","user_code":"pK60goP5om","nickname":"braveboy","real_name":"","head_url":"https:\/\/thirdwx.qlogo.cn\/mmopen\/vi_32\/DYAIOgq83epC3zrUbrbh1n7JAiaws8JKK0zk6Q91FNH10ticgWoVENlwnZPfdyxTicEqBnjnwd7RzJmQwicfQG0D1A\/132","province_code":"","city_code":"","province_name":"","city_name":"","sex":"","sex_name":"未知","birthday_date":"","phone_number":"151****8397","show_user_name":"braveboy","request_id":"863a1276dc972043"},
|
|
5
|
+
getBaseCardUserSetting:{"user_id":0,"is_entity_card_invalid":"","request_id":"8ddfd81488f33522"}
|
|
5
6
|
}
|
|
@@ -363,6 +363,7 @@ export default {
|
|
|
363
363
|
});
|
|
364
364
|
});
|
|
365
365
|
},
|
|
366
|
+
|
|
366
367
|
//第三方支付
|
|
367
368
|
async doThirdPay() {
|
|
368
369
|
if (this.$configProject.isPreview) return;
|
|
@@ -387,12 +388,16 @@ export default {
|
|
|
387
388
|
channel_provider_id,
|
|
388
389
|
login_providers: login_providers.join(","),
|
|
389
390
|
};
|
|
390
|
-
|
|
391
|
-
|
|
391
|
+
|
|
392
|
+
//设置支付成功页面地址
|
|
393
|
+
if (!this.$configProject.isPreview){
|
|
394
|
+
data['pay_success_url'] = '';
|
|
395
|
+
// #ifdef H5
|
|
392
396
|
data['pay_success_url'] = `${window.location.protocol}//${window.location.host}/${this.projectAttr.deploy_dir}`;
|
|
397
|
+
// #endif
|
|
393
398
|
data['pay_success_url'] += this.getSuccessUrl + `?order_id=${this.main_order_id}`;
|
|
394
399
|
}
|
|
395
|
-
|
|
400
|
+
|
|
396
401
|
|
|
397
402
|
|
|
398
403
|
jfbRootExec("setThirdPlace", {
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
<script>
|
|
94
94
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
95
95
|
import { jfbRootExec } from "@/utils/xd.event";
|
|
96
|
+
import JfbBasePhoneCollectMixin from "./JfbBasePhoneCollectMixin";
|
|
96
97
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
97
98
|
import extsMixins from "@/mixins/extsMixins";
|
|
98
99
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
@@ -101,7 +102,6 @@ import XdForm from "@/components/XdForm/XdForm";
|
|
|
101
102
|
import XdFormInput from "@/components/XdFormInput/XdFormInput";
|
|
102
103
|
import XdButton from "@/components/XdButton/XdButton";
|
|
103
104
|
import XdFormCheckbox from "@/components/XdFormCheckbox/XdFormCheckbox";
|
|
104
|
-
import JfbBasePhoneCollectMixin from "./JfbBasePhoneCollectMixin";
|
|
105
105
|
|
|
106
106
|
export default {
|
|
107
107
|
name: "JfbBasePhoneCollect",
|