jufubao-base 1.0.159 → 1.0.160-beta1
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 +201 -70
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +7 -6
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +5 -3
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +3 -2
- package/src/components/JfbBaseBack/JfbBaseBack.vue +10 -8
- package/src/components/JfbBaseBackground/JfbBaseBackground.vue +3 -2
- package/src/components/JfbBaseBlock/JfbBaseBlock.vue +3 -2
- package/src/components/JfbBaseCard/JfbBaseCard.vue +10 -6
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +57 -26
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetail.vue +14 -15
- package/src/components/JfbBaseCardDetailEntry/Attr.js +22 -0
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +393 -424
- package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +4 -4
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +7 -9
- package/src/components/JfbBaseCardEntry/Attr.js +22 -1
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +91 -36
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +38 -22
- package/src/components/JfbBaseCardInfoEntry/Attr.js +22 -0
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +285 -260
- package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +4 -3
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +23 -18
- package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +4 -11
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +16 -19
- package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfo.vue +3 -2
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +34 -18
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +14 -14
- package/src/components/JfbBaseCity/JfbBaseCity.vue +3 -2
- package/src/components/JfbBaseClear/JfbBaseClear.vue +3 -2
- package/src/components/JfbBaseConList/JfbBaseConList.vue +4 -4
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +3 -2
- package/src/components/JfbBaseEntry/Attr.js +22 -0
- package/src/components/JfbBaseEntry/JfbBaseEntry.vue +84 -20
- package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetail.vue +3 -4
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +33 -22
- package/src/components/JfbBaseFastLink/XdFastNav.vue +2 -2
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +0 -1
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +3 -2
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +28 -11
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +7 -9
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwd.vue +9 -6
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlay.vue +19 -5
- package/src/components/JfbBaseMapOverlay/XdMapOverlay.vue +52 -37
- package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +3 -2
- package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCard.vue +28 -27
- package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpress.vue +5 -5
- package/src/components/JfbBaseMy/JfbBaseMy.vue +3 -3
- package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +6 -4
- package/src/components/JfbBaseNotice/Attr.js +0 -2
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +36 -14
- package/src/components/JfbBaseNotice/XdNoticeBar.vue +17 -1
- package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottom.vue +3 -2
- package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTop.vue +3 -2
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +20 -31
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +9 -4
- package/src/components/JfbBasePay/JfbBasePay.vue +3 -2
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +22 -7
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +23 -7
- package/src/components/JfbBasePoster/JfbBasePoster.vue +118 -18
- package/src/components/JfbBasePoster/MoreScreen.vue +155 -37
- package/src/components/JfbBasePosterBigSmall/Attr.js +2 -5
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +191 -67
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +90 -20
- package/src/components/JfbBasePosterType/FourScreen.vue +162 -18
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +0 -35
- package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +4 -4
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +3 -4
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +4 -7
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +6 -9
- package/src/components/JfbBaseSearch/JfbBaseSearch.vue +3 -2
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +5 -4
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +3 -2
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +5 -3
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +4 -3
- package/src/components/JfbBaseVideo/JfbBaseVideo.vue +14 -11
- package/src/components/JfbBaseVideo/XdVideo.vue +0 -4
- package/src/components/JfbBaseWallet/JfbBaseWallet.vue +3 -2
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetail.vue +5 -8
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffective.vue +5 -8
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +7 -17
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +13 -21
- package/src/components/JfbBaseWebview/JfbBaseWebview.vue +4 -3
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +5 -4
- package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeError.vue +3 -4
- package/src/mixins/colorCardMixins.js +1 -1
|
@@ -135,8 +135,9 @@ export default {
|
|
|
135
135
|
}),
|
|
136
136
|
},
|
|
137
137
|
watch: {
|
|
138
|
-
container(value) {
|
|
139
|
-
|
|
138
|
+
container(value,oldValue) {
|
|
139
|
+
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
140
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
140
141
|
},
|
|
141
142
|
},
|
|
142
143
|
created() {
|
|
@@ -203,7 +204,7 @@ export default {
|
|
|
203
204
|
this.$xdConfirm({
|
|
204
205
|
title: "是否确认合并卡",
|
|
205
206
|
isHtml: true,
|
|
206
|
-
|
|
207
|
+
styles: this.styles,
|
|
207
208
|
content: `转出卡号:${
|
|
208
209
|
this.mergeForm.from_card_number
|
|
209
210
|
}(剩余点数:${this.$xdUniHelper.divisionFloatNumber(
|
|
@@ -40,13 +40,14 @@
|
|
|
40
40
|
</view>
|
|
41
41
|
</view>
|
|
42
42
|
<view class="merge-item" :style="{background: themeInStyle['color']}">
|
|
43
|
-
<view class="merge-item-box" :style="{backgroundImage: `url(
|
|
44
|
-
<view class="merge-item-title">
|
|
43
|
+
<view class="merge-item-box" :style="{backgroundImage: `url(//img.jufubao.cn/component/card/mergbg.jpg)`}">
|
|
44
|
+
<view class="merge-item-title" :style="{background: themeOutStyle['color']}">
|
|
45
45
|
<xd-font-icon icon="iconzhuanru"></xd-font-icon>
|
|
46
46
|
<view>转入的票券</view>
|
|
47
47
|
</view>
|
|
48
48
|
<view>
|
|
49
49
|
<xd-select
|
|
50
|
+
v-if="toListLoading"
|
|
50
51
|
:disabled="toList.length === 0"
|
|
51
52
|
:key="randomKey"
|
|
52
53
|
:height="66"
|
|
@@ -88,10 +89,11 @@
|
|
|
88
89
|
<view class="bottom_btn-mask"></view>
|
|
89
90
|
<view class="bottom_btn" :style="prod_bottom">
|
|
90
91
|
<xd-button
|
|
92
|
+
v-if="btnLoading"
|
|
91
93
|
:key="disabledKey"
|
|
92
94
|
:disabled="disabled"
|
|
93
95
|
@click="handleToSubmit"
|
|
94
|
-
|
|
96
|
+
style="width: 90%"
|
|
95
97
|
:type="disabled ?'info': 'primary'"
|
|
96
98
|
>合并</xd-button>
|
|
97
99
|
</view>
|
|
@@ -137,9 +139,11 @@ export default {
|
|
|
137
139
|
toList: [],
|
|
138
140
|
fromSelect: null,
|
|
139
141
|
toSelect: null,
|
|
140
|
-
randomKey:
|
|
142
|
+
randomKey:'randomKey',
|
|
141
143
|
valid_code:'',
|
|
142
144
|
valid_token: 'valid_token',
|
|
145
|
+
toListLoading: true,
|
|
146
|
+
btnLoading: true,
|
|
143
147
|
|
|
144
148
|
|
|
145
149
|
content: "",
|
|
@@ -178,13 +182,17 @@ export default {
|
|
|
178
182
|
},
|
|
179
183
|
|
|
180
184
|
disabled(){
|
|
181
|
-
this.
|
|
185
|
+
this.btnLoading = false;
|
|
186
|
+
setTimeout(()=>{
|
|
187
|
+
this.btnLoading = true;
|
|
188
|
+
},10)
|
|
182
189
|
return this.fromSelect === null || this.toSelect === null;
|
|
183
190
|
},
|
|
184
191
|
},
|
|
185
192
|
watch: {
|
|
186
|
-
container(value) {
|
|
187
|
-
|
|
193
|
+
container(value,oldValue) {
|
|
194
|
+
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
195
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
188
196
|
},
|
|
189
197
|
},
|
|
190
198
|
created() {
|
|
@@ -194,7 +202,6 @@ export default {
|
|
|
194
202
|
this.switchValidToken();
|
|
195
203
|
this.validImageAPIUrl = this.brandInfo["api_host"] + "/common/v1/valid_code/image/show";
|
|
196
204
|
this.contentBackgroundColor = Color(this.warningColor).alpha(0.2).toString();
|
|
197
|
-
|
|
198
205
|
},
|
|
199
206
|
methods: {
|
|
200
207
|
onJfbLoad(options) {
|
|
@@ -251,14 +258,6 @@ export default {
|
|
|
251
258
|
},
|
|
252
259
|
|
|
253
260
|
handleToSubmit() {
|
|
254
|
-
// if (!this.valid_code) {
|
|
255
|
-
// uni.showToast({
|
|
256
|
-
// title: "验证码不能为空!",
|
|
257
|
-
// icon: "none",
|
|
258
|
-
// });
|
|
259
|
-
// return;
|
|
260
|
-
// }
|
|
261
|
-
|
|
262
261
|
let outPrice = this.$xdUniHelper.divisionFloatNumber(this.fromSelect.card_point, 100);
|
|
263
262
|
let outHtml = `${this.fromSelect.value}(剩余:${outPrice})`;
|
|
264
263
|
let inPrice = this.$xdUniHelper.divisionFloatNumber(this.toSelect.card_point, 100);
|
|
@@ -266,7 +265,7 @@ export default {
|
|
|
266
265
|
this.$xdConfirm({
|
|
267
266
|
title: "是否确认合并票券",
|
|
268
267
|
isHtml: true,
|
|
269
|
-
|
|
268
|
+
styles: this.styles,
|
|
270
269
|
content: `<div class="label-value"><div><span>转出票券:</span><span>${outHtml}</span></div><div><span>转入票券:</span><span>${inHtml}</span></div></div>`,
|
|
271
270
|
success: (action) => {
|
|
272
271
|
let params = {
|
|
@@ -295,6 +294,8 @@ export default {
|
|
|
295
294
|
});
|
|
296
295
|
},
|
|
297
296
|
handleChangeFrom(select) {
|
|
297
|
+
this.toListLoading = false;
|
|
298
|
+
this.randomKey = null;
|
|
298
299
|
this.fromSelect = select.item;
|
|
299
300
|
jfbRootExec("toCardListEntry", {vm: this, data: {card_number: select.item.value,},})
|
|
300
301
|
.then((res) => {
|
|
@@ -308,7 +309,11 @@ export default {
|
|
|
308
309
|
name: item.card_type_name
|
|
309
310
|
};
|
|
310
311
|
});
|
|
311
|
-
this.randomKey =
|
|
312
|
+
this.randomKey = this.$xdUniHelper.randomChar(20);
|
|
313
|
+
setTimeout(()=>{
|
|
314
|
+
this.toListLoading = true;
|
|
315
|
+
},50)
|
|
316
|
+
|
|
312
317
|
})
|
|
313
318
|
.catch((err) => {
|
|
314
319
|
this.$xdLog.catch(err)
|
|
@@ -44,9 +44,7 @@
|
|
|
44
44
|
<xd-radio size="small" v-model="isCheck"></xd-radio>
|
|
45
45
|
<view>我已经阅读和同意积分转换规则</view>
|
|
46
46
|
</view>
|
|
47
|
-
<xd-button type="primary" width="360rpx" @click="handleChange"
|
|
48
|
-
>立即转换</xd-button
|
|
49
|
-
>
|
|
47
|
+
<xd-button type="primary" width="360rpx" @click="handleChange">立即转换</xd-button>
|
|
50
48
|
</view>
|
|
51
49
|
<xd-dailog
|
|
52
50
|
class="dialog"
|
|
@@ -63,13 +61,8 @@
|
|
|
63
61
|
icon="icondui-01"
|
|
64
62
|
></xd-font-icon>
|
|
65
63
|
<view class="jfb-base-card-shift__body-success-title">转换成功</view>
|
|
66
|
-
<view class="jfb-base-card-shift__body-success-content">
|
|
67
|
-
|
|
68
|
-
{{ changeNumber }}已自动帮您绑定成功,可在卡列表查询
|
|
69
|
-
</view>
|
|
70
|
-
<xd-button type="primarys" width="360rpx" @click="handleToLink"
|
|
71
|
-
>返回列表</xd-button
|
|
72
|
-
>
|
|
64
|
+
<view class="jfb-base-card-shift__body-success-content">您已成功将{{ card_number }} 转换为{{ changeNumber }}已自动帮您绑定成功,可在卡列表查询</view>
|
|
65
|
+
<xd-button type="primarys" width="360rpx" @click="handleToLink">返回列表</xd-button>
|
|
73
66
|
</view>
|
|
74
67
|
</xd-dailog>
|
|
75
68
|
</view>
|
|
@@ -159,7 +152,7 @@ export default {
|
|
|
159
152
|
this.$xdConfirm({
|
|
160
153
|
title: "是否确认转换",
|
|
161
154
|
isHtml: true,
|
|
162
|
-
|
|
155
|
+
styles: this.styles,
|
|
163
156
|
content:content,
|
|
164
157
|
success:(action)=>{
|
|
165
158
|
if(action.confirm) {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<view
|
|
25
25
|
class="card-list"
|
|
26
26
|
:style="{
|
|
27
|
-
|
|
27
|
+
background: headerBg['color'],
|
|
28
28
|
backgroundSize: '100%'
|
|
29
29
|
}">
|
|
30
30
|
<view class="card-list-warp" :style="{backgroundImage: `url(${headerBg['image']})`}">
|
|
@@ -74,21 +74,17 @@
|
|
|
74
74
|
<view>转换后预估票券额度</view>
|
|
75
75
|
</view>
|
|
76
76
|
<view
|
|
77
|
-
:class="
|
|
78
|
-
item.key === 'other_card_point'
|
|
79
|
-
? 'jfb-base-card-shift-entry__body-content-special'
|
|
80
|
-
: 'jfb-base-card-shift-entry__body-content-item'
|
|
81
|
-
"
|
|
77
|
+
:class=" item.key === 'other_card_point'? 'jfb-base-card-shift-entry__body-content-special': 'jfb-base-card-shift-entry__body-content-item'"
|
|
82
78
|
v-for="(item, index) in changeValueKey"
|
|
83
79
|
:key="index"
|
|
84
80
|
>
|
|
85
81
|
<view> {{ item.label }}: </view>
|
|
86
82
|
<view :style="{color:mainColor,fontWeight:500}" v-if="item.type === 'price'">
|
|
87
|
-
{{ info[item.key] }}
|
|
83
|
+
<text>{{ info[item.key] }}</text>
|
|
88
84
|
<text>点</text>
|
|
89
85
|
</view>
|
|
90
86
|
<view style="color: #333; font-weight: 500" v-else>
|
|
91
|
-
{{ info[item.key] }}
|
|
87
|
+
<text>{{ info[item.key] }}</text>
|
|
92
88
|
<text v-if="item.type === 'type'">券</text>
|
|
93
89
|
</view>
|
|
94
90
|
</view>
|
|
@@ -109,9 +105,8 @@
|
|
|
109
105
|
<xd-button
|
|
110
106
|
@click="handleChange"
|
|
111
107
|
width="500rpx"
|
|
112
|
-
type="primary"
|
|
113
|
-
|
|
114
|
-
</xd-button>
|
|
108
|
+
type="primary"
|
|
109
|
+
>立即转换</xd-button>
|
|
115
110
|
</view>
|
|
116
111
|
<xd-dailog
|
|
117
112
|
class="dialog"
|
|
@@ -132,12 +127,13 @@
|
|
|
132
127
|
<text :style="{color:mainColor,marginLeft:'20rpx'}">转换成功</text>
|
|
133
128
|
</view>
|
|
134
129
|
<view class="jfb-base-card-shift-entry__body-success-content">
|
|
135
|
-
|
|
136
|
-
<text style="color:#333;padding: 0 16rpx">{{
|
|
130
|
+
<text>已成功将</text>
|
|
131
|
+
<text style="color:#333;padding: 0 16rpx">{{ card_number }}</text>
|
|
132
|
+
<text>转换成为</text>
|
|
133
|
+
<text style="color:#333;padding: 0 16rpx">{{ changeNumber }}</text>
|
|
134
|
+
<text>可在券包中查看</text>
|
|
137
135
|
</view>
|
|
138
|
-
<xd-button type="primarys" width="360rpx" @click="handleToLink"
|
|
139
|
-
>返回列表</xd-button
|
|
140
|
-
>
|
|
136
|
+
<xd-button type="primarys" width="360rpx" @click="handleToLink">返回列表</xd-button>
|
|
141
137
|
</view>
|
|
142
138
|
</xd-dailog>
|
|
143
139
|
</view>
|
|
@@ -196,7 +192,8 @@ export default {
|
|
|
196
192
|
//页面跳转地址
|
|
197
193
|
backUrl: "",
|
|
198
194
|
bottomHeight: 120,
|
|
199
|
-
changeBg: ''
|
|
195
|
+
changeBg: '',
|
|
196
|
+
headerBg:'',
|
|
200
197
|
};
|
|
201
198
|
},
|
|
202
199
|
computed: {
|
|
@@ -219,7 +216,7 @@ export default {
|
|
|
219
216
|
this.$xdConfirm({
|
|
220
217
|
title: "是否确认转换",
|
|
221
218
|
isHtml: true,
|
|
222
|
-
|
|
219
|
+
styles: this.styles,
|
|
223
220
|
content:content,
|
|
224
221
|
success:(action)=>{
|
|
225
222
|
if(action.confirm) {
|
|
@@ -591,7 +588,7 @@ export default {
|
|
|
591
588
|
.fixe_bottom{
|
|
592
589
|
display: flex;
|
|
593
590
|
align-items: center;
|
|
594
|
-
justify-content:
|
|
591
|
+
justify-content: center;
|
|
595
592
|
height: unit(100, rpx);
|
|
596
593
|
padding: 0 unit(40, rpx);
|
|
597
594
|
background: #FFF;
|
|
@@ -114,8 +114,9 @@ export default {
|
|
|
114
114
|
};
|
|
115
115
|
},
|
|
116
116
|
watch: {
|
|
117
|
-
container(value) {
|
|
118
|
-
|
|
117
|
+
container(value,oldValue) {
|
|
118
|
+
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
119
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
119
120
|
},
|
|
120
121
|
},
|
|
121
122
|
computed: {
|
|
@@ -82,22 +82,13 @@
|
|
|
82
82
|
</view>
|
|
83
83
|
<view class="jfb-base-card__body-card-item-right-bottom">
|
|
84
84
|
<view class="jfb-base-card__body-card-item-right-bottom-info">
|
|
85
|
-
<view
|
|
86
|
-
|
|
87
|
-
>
|
|
88
|
-
剩余{{ item.unit }}数:{{ item.card_point }}{{ item.unit }}
|
|
89
|
-
</view>
|
|
90
|
-
<view
|
|
91
|
-
class="jfb-base-card__body-card-item-right-bottom-info-deduction"
|
|
92
|
-
>
|
|
93
|
-
购买其他物品可抵:{{ item.other_card_point }}
|
|
94
|
-
</view>
|
|
85
|
+
<view class="jfb-base-card__body-card-item-right-bottom-info-residue">剩余{{ item.unit }}数:{{ item.card_point }}{{ item.unit }}</view>
|
|
86
|
+
<view class="jfb-base-card__body-card-item-right-bottom-info-deduction">购买其他物品可抵:{{ item.other_card_point }}</view>
|
|
95
87
|
</view>
|
|
96
88
|
<view
|
|
97
89
|
@click.stop="toDetail(item)"
|
|
98
90
|
:style="{ background: mainColor }"
|
|
99
|
-
|
|
100
|
-
>
|
|
91
|
+
>查看</view>
|
|
101
92
|
</view>
|
|
102
93
|
</view>
|
|
103
94
|
</view>
|
|
@@ -106,8 +97,14 @@
|
|
|
106
97
|
<view :style="{height:'128rpx'}"></view>
|
|
107
98
|
<view class="bottom_fix" :style="button_bottom">
|
|
108
99
|
<view>
|
|
100
|
+
<!-- #ifdef MP-WEIXIN-->
|
|
101
|
+
<view><xd-button type="primary" @click="toBindCard">绑定新卡</xd-button></view>
|
|
102
|
+
<view><xd-button type="primary" @click="toOrderList">我的订单</xd-button></view>
|
|
103
|
+
<!-- #endif-->
|
|
104
|
+
<!-- #ifdef H5-->
|
|
109
105
|
<xd-button type="primary" @click="toBindCard">绑定新卡</xd-button>
|
|
110
106
|
<xd-button type="primary" @click="toOrderList">我的订单</xd-button>
|
|
107
|
+
<!-- #endif-->
|
|
111
108
|
</view>
|
|
112
109
|
</view>
|
|
113
110
|
</view>
|
|
@@ -123,6 +120,7 @@
|
|
|
123
120
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
124
121
|
import extsMixins from "@/mixins/extsMixins";
|
|
125
122
|
import {Base64} from "js-base64";
|
|
123
|
+
import {mapState} from "vuex";
|
|
126
124
|
|
|
127
125
|
export default {
|
|
128
126
|
name: "JfbBaseCardV2",
|
|
@@ -137,6 +135,7 @@
|
|
|
137
135
|
return {
|
|
138
136
|
cardList: [],
|
|
139
137
|
inCallback: "",
|
|
138
|
+
|
|
140
139
|
//面板
|
|
141
140
|
cardInfoPath: "", //卡券详情
|
|
142
141
|
cardBindPath: "",
|
|
@@ -154,11 +153,14 @@
|
|
|
154
153
|
}
|
|
155
154
|
},
|
|
156
155
|
watch: {
|
|
157
|
-
container(value) {
|
|
158
|
-
|
|
159
|
-
|
|
156
|
+
container(value,oldValue) {
|
|
157
|
+
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
158
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
159
|
+
},
|
|
160
160
|
},
|
|
161
161
|
computed: {
|
|
162
|
+
...mapState(['jfbAuthorize']),
|
|
163
|
+
|
|
162
164
|
button_bottom() {
|
|
163
165
|
return this.fixedStyle({paddingBottom: 0, zIndex: 111})
|
|
164
166
|
},
|
|
@@ -204,6 +206,7 @@
|
|
|
204
206
|
}).filter((item) => item["is_valid"] === "Y");
|
|
205
207
|
})
|
|
206
208
|
},
|
|
209
|
+
|
|
207
210
|
/**
|
|
208
211
|
* @description 监听事件变化
|
|
209
212
|
* @param container {object} 业务组件对象自己
|
|
@@ -215,6 +218,7 @@
|
|
|
215
218
|
this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
|
|
216
219
|
this.margin = getContainerPropsValue(container, 'content.margin', {top: 0, left: 0, bottom: 0, right: 0});
|
|
217
220
|
},
|
|
221
|
+
|
|
218
222
|
handleBindLogin(item){
|
|
219
223
|
this.$xdShowLoading({});
|
|
220
224
|
jfbRootExec("loginCardBind", {
|
|
@@ -222,8 +226,8 @@
|
|
|
222
226
|
data: { card_number: item["card_number"] },
|
|
223
227
|
})
|
|
224
228
|
.then((res) => {
|
|
225
|
-
console.log(res);
|
|
226
229
|
this.$xdHideLoading();
|
|
230
|
+
|
|
227
231
|
//#ifdef MP-WEIXIN
|
|
228
232
|
if (this.jfbAuthorize !== null) {
|
|
229
233
|
this.jfbAuthorize.setCardToken(res);
|
|
@@ -232,13 +236,16 @@
|
|
|
232
236
|
|
|
233
237
|
if (this.$configProject.isPreview) {
|
|
234
238
|
console.log("handleBindLogin", "预览模式不跳转", this.inCallback);
|
|
235
|
-
}
|
|
239
|
+
}
|
|
240
|
+
else {
|
|
241
|
+
console.warn(`handleBindLogin: ${this.inCallback}`);
|
|
236
242
|
this.$xdUniHelper.redirectTo({
|
|
237
243
|
url: this.inCallback,
|
|
238
244
|
});
|
|
239
245
|
}
|
|
240
246
|
})
|
|
241
247
|
.catch((res) => {
|
|
248
|
+
console.error(res);
|
|
242
249
|
this.$xdHideLoading();
|
|
243
250
|
});
|
|
244
251
|
},
|
|
@@ -284,13 +291,22 @@
|
|
|
284
291
|
box-shadow: 0px 0px 8rpx 0px rgba(179, 193, 196, 0.5);
|
|
285
292
|
z-index: 111;
|
|
286
293
|
|
|
287
|
-
|
|
294
|
+
& > view {
|
|
288
295
|
width: 100%;
|
|
289
296
|
display: flex;
|
|
290
297
|
justify-content: center;
|
|
291
298
|
align-items: center;
|
|
292
299
|
padding: unit(24, rpx);
|
|
293
300
|
box-sizing: border-box;
|
|
301
|
+
|
|
302
|
+
/* #ifdef MP-WEIXIN */
|
|
303
|
+
& > view {
|
|
304
|
+
flex: 1;
|
|
305
|
+
display: flex;
|
|
306
|
+
justify-content: center;
|
|
307
|
+
align-items: center;
|
|
308
|
+
}
|
|
309
|
+
/* #endif */
|
|
294
310
|
}
|
|
295
311
|
}
|
|
296
312
|
}
|
|
@@ -51,6 +51,8 @@
|
|
|
51
51
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
52
52
|
import extsMixins from "@/mixins/extsMixins";
|
|
53
53
|
import {Base64} from "js-base64";
|
|
54
|
+
import {mapState} from "vuex";
|
|
55
|
+
|
|
54
56
|
export default {
|
|
55
57
|
name: "JfbBaseCardV3",
|
|
56
58
|
components: {
|
|
@@ -77,11 +79,13 @@
|
|
|
77
79
|
}
|
|
78
80
|
},
|
|
79
81
|
watch: {
|
|
80
|
-
container(value) {
|
|
81
|
-
|
|
82
|
-
|
|
82
|
+
container(value,oldValue) {
|
|
83
|
+
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
84
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
85
|
+
},
|
|
83
86
|
},
|
|
84
87
|
computed: {
|
|
88
|
+
...mapState(['jfbAuthorize']),
|
|
85
89
|
button_bottom() {
|
|
86
90
|
return this.fixedStyle({paddingBottom: 24, zIndex: 111})
|
|
87
91
|
},
|
|
@@ -140,12 +144,7 @@
|
|
|
140
144
|
})
|
|
141
145
|
},
|
|
142
146
|
toDetail(item) {
|
|
143
|
-
this.$xdUniHelper.navigateTo(
|
|
144
|
-
{
|
|
145
|
-
url: `${this.detailUrl}?card_number=${item["card_number"]}`,
|
|
146
|
-
},
|
|
147
|
-
false
|
|
148
|
-
);
|
|
147
|
+
this.$xdUniHelper.navigateTo({url: `${this.detailUrl}?card_number=${item["card_number"]}`,}, false);
|
|
149
148
|
},
|
|
150
149
|
/**
|
|
151
150
|
* @description 已绑定卡登录
|
|
@@ -175,10 +174,11 @@
|
|
|
175
174
|
this.$xdHideLoading();
|
|
176
175
|
//#ifdef MP-WEIXIN
|
|
177
176
|
if (this.jfbAuthorize !== null) {
|
|
178
|
-
this.jfbAuthorize.setCardToken(res);
|
|
177
|
+
this.jfbAuthorize.setCardToken(res, null);
|
|
179
178
|
}
|
|
180
179
|
//#endif
|
|
181
|
-
|
|
180
|
+
console.log(this.inCallback);
|
|
181
|
+
debugger
|
|
182
182
|
if (this.$configProject.isPreview) {
|
|
183
183
|
console.log("handleBindLogin", "预览模式不跳转", this.inCallback);
|
|
184
184
|
} else {
|
|
@@ -190,9 +190,9 @@
|
|
|
190
190
|
.catch((res) => {
|
|
191
191
|
this.$xdHideLoading();
|
|
192
192
|
});
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
this.$xdUniHelper.navigateTo({
|
|
196
196
|
url: `${this.changeUrl}?card_number=${item["card_number"]}`,
|
|
197
197
|
},
|
|
198
198
|
false
|
|
@@ -44,8 +44,9 @@ export default {
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
watch: {
|
|
47
|
-
container(value) {
|
|
48
|
-
|
|
47
|
+
container(value,oldValue) {
|
|
48
|
+
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
49
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
49
50
|
}
|
|
50
51
|
},
|
|
51
52
|
created() {
|
|
@@ -54,8 +54,9 @@
|
|
|
54
54
|
...mapState(['jfbAuthorize']),
|
|
55
55
|
},
|
|
56
56
|
watch: {
|
|
57
|
-
container(value) {
|
|
58
|
-
|
|
57
|
+
container(value,oldValue) {
|
|
58
|
+
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
59
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
59
60
|
}
|
|
60
61
|
},
|
|
61
62
|
created() {
|
|
@@ -187,8 +187,7 @@
|
|
|
187
187
|
boxShadow: shadow,
|
|
188
188
|
fontSize: btnTextSize+'rpx'
|
|
189
189
|
}"
|
|
190
|
-
>查看已领票券</view
|
|
191
|
-
>
|
|
190
|
+
>查看已领票券</view>
|
|
192
191
|
</view>
|
|
193
192
|
</view>
|
|
194
193
|
|
|
@@ -308,8 +307,9 @@ export default {
|
|
|
308
307
|
},
|
|
309
308
|
},
|
|
310
309
|
watch: {
|
|
311
|
-
container(value) {
|
|
312
|
-
|
|
310
|
+
container(value,oldValue) {
|
|
311
|
+
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
312
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
313
313
|
},
|
|
314
314
|
},
|
|
315
315
|
created() {
|
|
@@ -194,8 +194,9 @@ export default {
|
|
|
194
194
|
};
|
|
195
195
|
},
|
|
196
196
|
watch: {
|
|
197
|
-
container(value) {
|
|
198
|
-
|
|
197
|
+
container(value,oldValue) {
|
|
198
|
+
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
199
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
199
200
|
},
|
|
200
201
|
},
|
|
201
202
|
created() {
|
|
@@ -7,6 +7,28 @@ export default {
|
|
|
7
7
|
style: [],
|
|
8
8
|
content: (data) => {
|
|
9
9
|
return [
|
|
10
|
+
{
|
|
11
|
+
label: '选择综合入口类型:',
|
|
12
|
+
ele: 'xd-site-select-list',
|
|
13
|
+
valueKey: 'entryType',
|
|
14
|
+
value: data['entryType'],
|
|
15
|
+
placeholder: '请选择综合入口类型',
|
|
16
|
+
multiple: false,
|
|
17
|
+
groupKey:'content',
|
|
18
|
+
className: 'input50',
|
|
19
|
+
rules: [
|
|
20
|
+
{required: true, message: '请选择综合入口类型', trigger: ['blur', 'change']}
|
|
21
|
+
],
|
|
22
|
+
handleCustom({action, data}) {
|
|
23
|
+
XdBus.getParentApi('getEntryGroupOption')({key: Date.now()})
|
|
24
|
+
.then(res => {
|
|
25
|
+
data.cb(res.list)
|
|
26
|
+
})
|
|
27
|
+
.catch(error => {
|
|
28
|
+
console.error(error);
|
|
29
|
+
});
|
|
30
|
+
},
|
|
31
|
+
},
|
|
10
32
|
{
|
|
11
33
|
label: '每行显示数量',
|
|
12
34
|
ele: 'xd-radio',
|