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
|
@@ -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,17 +74,21 @@
|
|
|
74
74
|
<view>转换后预估票券额度</view>
|
|
75
75
|
</view>
|
|
76
76
|
<view
|
|
77
|
-
:class="
|
|
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
|
+
"
|
|
78
82
|
v-for="(item, index) in changeValueKey"
|
|
79
83
|
:key="index"
|
|
80
84
|
>
|
|
81
85
|
<view> {{ item.label }}: </view>
|
|
82
86
|
<view :style="{color:mainColor,fontWeight:500}" v-if="item.type === 'price'">
|
|
83
|
-
|
|
87
|
+
{{ info[item.key] }}
|
|
84
88
|
<text>点</text>
|
|
85
89
|
</view>
|
|
86
90
|
<view style="color: #333; font-weight: 500" v-else>
|
|
87
|
-
|
|
91
|
+
{{ info[item.key] }}
|
|
88
92
|
<text v-if="item.type === 'type'">券</text>
|
|
89
93
|
</view>
|
|
90
94
|
</view>
|
|
@@ -105,8 +109,9 @@
|
|
|
105
109
|
<xd-button
|
|
106
110
|
@click="handleChange"
|
|
107
111
|
width="500rpx"
|
|
108
|
-
type="primary"
|
|
109
|
-
|
|
112
|
+
type="primary">
|
|
113
|
+
转换
|
|
114
|
+
</xd-button>
|
|
110
115
|
</view>
|
|
111
116
|
<xd-dailog
|
|
112
117
|
class="dialog"
|
|
@@ -127,13 +132,12 @@
|
|
|
127
132
|
<text :style="{color:mainColor,marginLeft:'20rpx'}">转换成功</text>
|
|
128
133
|
</view>
|
|
129
134
|
<view class="jfb-base-card-shift-entry__body-success-content">
|
|
130
|
-
<text
|
|
131
|
-
<text style="color:#333;padding: 0 16rpx">{{
|
|
132
|
-
<text>转换成为</text>
|
|
133
|
-
<text style="color:#333;padding: 0 16rpx">{{ changeNumber }}</text>
|
|
134
|
-
<text>可在券包中查看</text>
|
|
135
|
+
已成功将 <text style="color:#333;padding: 0 16rpx">{{ card_number }}</text> 转换成为
|
|
136
|
+
<text style="color:#333;padding: 0 16rpx">{{ changeNumber }}</text>可在券包中查看
|
|
135
137
|
</view>
|
|
136
|
-
<xd-button type="primarys" width="360rpx" @click="handleToLink"
|
|
138
|
+
<xd-button type="primarys" width="360rpx" @click="handleToLink"
|
|
139
|
+
>返回列表</xd-button
|
|
140
|
+
>
|
|
137
141
|
</view>
|
|
138
142
|
</xd-dailog>
|
|
139
143
|
</view>
|
|
@@ -192,8 +196,7 @@ export default {
|
|
|
192
196
|
//页面跳转地址
|
|
193
197
|
backUrl: "",
|
|
194
198
|
bottomHeight: 120,
|
|
195
|
-
changeBg: ''
|
|
196
|
-
headerBg:'',
|
|
199
|
+
changeBg: ''
|
|
197
200
|
};
|
|
198
201
|
},
|
|
199
202
|
computed: {
|
|
@@ -216,7 +219,7 @@ export default {
|
|
|
216
219
|
this.$xdConfirm({
|
|
217
220
|
title: "是否确认转换",
|
|
218
221
|
isHtml: true,
|
|
219
|
-
|
|
222
|
+
$vm: this,
|
|
220
223
|
content:content,
|
|
221
224
|
success:(action)=>{
|
|
222
225
|
if(action.confirm) {
|
|
@@ -588,7 +591,7 @@ export default {
|
|
|
588
591
|
.fixe_bottom{
|
|
589
592
|
display: flex;
|
|
590
593
|
align-items: center;
|
|
591
|
-
justify-content:
|
|
594
|
+
justify-content: space-between;
|
|
592
595
|
height: unit(100, rpx);
|
|
593
596
|
padding: 0 unit(40, rpx);
|
|
594
597
|
background: #FFF;
|
|
@@ -114,9 +114,8 @@ export default {
|
|
|
114
114
|
};
|
|
115
115
|
},
|
|
116
116
|
watch: {
|
|
117
|
-
container(value
|
|
118
|
-
|
|
119
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
117
|
+
container(value) {
|
|
118
|
+
this.init(value);
|
|
120
119
|
},
|
|
121
120
|
},
|
|
122
121
|
computed: {
|
|
@@ -82,13 +82,22 @@
|
|
|
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
|
-
|
|
85
|
+
<view
|
|
86
|
+
class="jfb-base-card__body-card-item-right-bottom-info-residue"
|
|
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>
|
|
87
95
|
</view>
|
|
88
96
|
<view
|
|
89
97
|
@click.stop="toDetail(item)"
|
|
90
98
|
:style="{ background: mainColor }"
|
|
91
|
-
|
|
99
|
+
>查看</view
|
|
100
|
+
>
|
|
92
101
|
</view>
|
|
93
102
|
</view>
|
|
94
103
|
</view>
|
|
@@ -97,14 +106,8 @@
|
|
|
97
106
|
<view :style="{height:'128rpx'}"></view>
|
|
98
107
|
<view class="bottom_fix" :style="button_bottom">
|
|
99
108
|
<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-->
|
|
105
109
|
<xd-button type="primary" @click="toBindCard">绑定新卡</xd-button>
|
|
106
110
|
<xd-button type="primary" @click="toOrderList">我的订单</xd-button>
|
|
107
|
-
<!-- #endif-->
|
|
108
111
|
</view>
|
|
109
112
|
</view>
|
|
110
113
|
</view>
|
|
@@ -120,7 +123,6 @@
|
|
|
120
123
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
121
124
|
import extsMixins from "@/mixins/extsMixins";
|
|
122
125
|
import {Base64} from "js-base64";
|
|
123
|
-
import {mapState} from "vuex";
|
|
124
126
|
|
|
125
127
|
export default {
|
|
126
128
|
name: "JfbBaseCardV2",
|
|
@@ -135,7 +137,6 @@
|
|
|
135
137
|
return {
|
|
136
138
|
cardList: [],
|
|
137
139
|
inCallback: "",
|
|
138
|
-
|
|
139
140
|
//面板
|
|
140
141
|
cardInfoPath: "", //卡券详情
|
|
141
142
|
cardBindPath: "",
|
|
@@ -153,14 +154,11 @@
|
|
|
153
154
|
}
|
|
154
155
|
},
|
|
155
156
|
watch: {
|
|
156
|
-
container(value
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
},
|
|
157
|
+
container(value) {
|
|
158
|
+
this.init(value)
|
|
159
|
+
}
|
|
160
160
|
},
|
|
161
161
|
computed: {
|
|
162
|
-
...mapState(['jfbAuthorize']),
|
|
163
|
-
|
|
164
162
|
button_bottom() {
|
|
165
163
|
return this.fixedStyle({paddingBottom: 0, zIndex: 111})
|
|
166
164
|
},
|
|
@@ -206,7 +204,6 @@
|
|
|
206
204
|
}).filter((item) => item["is_valid"] === "Y");
|
|
207
205
|
})
|
|
208
206
|
},
|
|
209
|
-
|
|
210
207
|
/**
|
|
211
208
|
* @description 监听事件变化
|
|
212
209
|
* @param container {object} 业务组件对象自己
|
|
@@ -218,7 +215,6 @@
|
|
|
218
215
|
this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
|
|
219
216
|
this.margin = getContainerPropsValue(container, 'content.margin', {top: 0, left: 0, bottom: 0, right: 0});
|
|
220
217
|
},
|
|
221
|
-
|
|
222
218
|
handleBindLogin(item){
|
|
223
219
|
this.$xdShowLoading({});
|
|
224
220
|
jfbRootExec("loginCardBind", {
|
|
@@ -226,8 +222,8 @@
|
|
|
226
222
|
data: { card_number: item["card_number"] },
|
|
227
223
|
})
|
|
228
224
|
.then((res) => {
|
|
225
|
+
console.log(res);
|
|
229
226
|
this.$xdHideLoading();
|
|
230
|
-
|
|
231
227
|
//#ifdef MP-WEIXIN
|
|
232
228
|
if (this.jfbAuthorize !== null) {
|
|
233
229
|
this.jfbAuthorize.setCardToken(res);
|
|
@@ -236,16 +232,13 @@
|
|
|
236
232
|
|
|
237
233
|
if (this.$configProject.isPreview) {
|
|
238
234
|
console.log("handleBindLogin", "预览模式不跳转", this.inCallback);
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
console.warn(`handleBindLogin: ${this.inCallback}`);
|
|
235
|
+
} else {
|
|
242
236
|
this.$xdUniHelper.redirectTo({
|
|
243
237
|
url: this.inCallback,
|
|
244
238
|
});
|
|
245
239
|
}
|
|
246
240
|
})
|
|
247
241
|
.catch((res) => {
|
|
248
|
-
console.error(res);
|
|
249
242
|
this.$xdHideLoading();
|
|
250
243
|
});
|
|
251
244
|
},
|
|
@@ -291,22 +284,13 @@
|
|
|
291
284
|
box-shadow: 0px 0px 8rpx 0px rgba(179, 193, 196, 0.5);
|
|
292
285
|
z-index: 111;
|
|
293
286
|
|
|
294
|
-
|
|
287
|
+
&>view {
|
|
295
288
|
width: 100%;
|
|
296
289
|
display: flex;
|
|
297
290
|
justify-content: center;
|
|
298
291
|
align-items: center;
|
|
299
292
|
padding: unit(24, rpx);
|
|
300
293
|
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 */
|
|
310
294
|
}
|
|
311
295
|
}
|
|
312
296
|
}
|
|
@@ -51,8 +51,6 @@
|
|
|
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
|
-
|
|
56
54
|
export default {
|
|
57
55
|
name: "JfbBaseCardV3",
|
|
58
56
|
components: {
|
|
@@ -79,13 +77,11 @@
|
|
|
79
77
|
}
|
|
80
78
|
},
|
|
81
79
|
watch: {
|
|
82
|
-
container(value
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
},
|
|
80
|
+
container(value) {
|
|
81
|
+
this.init(value)
|
|
82
|
+
}
|
|
86
83
|
},
|
|
87
84
|
computed: {
|
|
88
|
-
...mapState(['jfbAuthorize']),
|
|
89
85
|
button_bottom() {
|
|
90
86
|
return this.fixedStyle({paddingBottom: 24, zIndex: 111})
|
|
91
87
|
},
|
|
@@ -144,7 +140,12 @@
|
|
|
144
140
|
})
|
|
145
141
|
},
|
|
146
142
|
toDetail(item) {
|
|
147
|
-
this.$xdUniHelper.navigateTo(
|
|
143
|
+
this.$xdUniHelper.navigateTo(
|
|
144
|
+
{
|
|
145
|
+
url: `${this.detailUrl}?card_number=${item["card_number"]}`,
|
|
146
|
+
},
|
|
147
|
+
false
|
|
148
|
+
);
|
|
148
149
|
},
|
|
149
150
|
/**
|
|
150
151
|
* @description 已绑定卡登录
|
|
@@ -174,11 +175,10 @@
|
|
|
174
175
|
this.$xdHideLoading();
|
|
175
176
|
//#ifdef MP-WEIXIN
|
|
176
177
|
if (this.jfbAuthorize !== null) {
|
|
177
|
-
this.jfbAuthorize.setCardToken(res
|
|
178
|
+
this.jfbAuthorize.setCardToken(res);
|
|
178
179
|
}
|
|
179
180
|
//#endif
|
|
180
|
-
|
|
181
|
-
debugger
|
|
181
|
+
|
|
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
|
+
} else {
|
|
194
|
+
this.$xdUniHelper.navigateTo(
|
|
195
|
+
{
|
|
196
196
|
url: `${this.changeUrl}?card_number=${item["card_number"]}`,
|
|
197
197
|
},
|
|
198
198
|
false
|
|
@@ -44,9 +44,8 @@ export default {
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
watch: {
|
|
47
|
-
container(value
|
|
48
|
-
|
|
49
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
47
|
+
container(value) {
|
|
48
|
+
this.init(value)
|
|
50
49
|
}
|
|
51
50
|
},
|
|
52
51
|
created() {
|
|
@@ -54,9 +54,8 @@
|
|
|
54
54
|
...mapState(['jfbAuthorize']),
|
|
55
55
|
},
|
|
56
56
|
watch: {
|
|
57
|
-
container(value
|
|
58
|
-
|
|
59
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
57
|
+
container(value) {
|
|
58
|
+
this.init(value)
|
|
60
59
|
}
|
|
61
60
|
},
|
|
62
61
|
created() {
|
|
@@ -29,7 +29,7 @@ module.exports = [
|
|
|
29
29
|
disabled: true,
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
|
-
mapFnName: '
|
|
32
|
+
mapFnName: 'getOnceCoupon', //自定义方法名字(必选)
|
|
33
33
|
title: '领取优惠券',
|
|
34
34
|
path: '/sms-coupon/v1/activity-prizes-user/set',
|
|
35
35
|
isRule: false,
|
|
@@ -40,6 +40,18 @@ module.exports = [
|
|
|
40
40
|
isConsole: true,
|
|
41
41
|
disabled: true,
|
|
42
42
|
},
|
|
43
|
+
{
|
|
44
|
+
mapFnName: 'getAllCoupon', //自定义方法名字(必选)
|
|
45
|
+
title: '领取优惠券',
|
|
46
|
+
path: '/sms-coupon/v1/activity-prizes-user/set-all',
|
|
47
|
+
isRule: false,
|
|
48
|
+
params: {
|
|
49
|
+
distribution_method: ['发放方式 entry=主动发放, homed=首页发放,paid=消费后发放,card_binded=绑定卡后发放', 'String', '选填'],
|
|
50
|
+
namespace: ['业务线', 'String', '必填'],
|
|
51
|
+
},
|
|
52
|
+
isConsole: true,
|
|
53
|
+
disabled: true,
|
|
54
|
+
},
|
|
43
55
|
{
|
|
44
56
|
mapFnName: 'getCouponResult', //自定义方法名字(必选)
|
|
45
57
|
title: '轮询查询活动结果',
|
|
@@ -53,10 +53,13 @@
|
|
|
53
53
|
</view>
|
|
54
54
|
<view v-else class="jfb-base-con-dialog__body-dialog-content">
|
|
55
55
|
<xd-cou-card-bind
|
|
56
|
+
:isAll="isAll"
|
|
57
|
+
:isRandom="isRandom"
|
|
56
58
|
:list="couponList"
|
|
57
59
|
:setting="couponOther"
|
|
58
60
|
@closeDialog="handleCardBindClose"
|
|
59
61
|
@getCoupont="handleGetCoupon"
|
|
62
|
+
@getAllCoupont="getAllCoupont"
|
|
60
63
|
></xd-cou-card-bind>
|
|
61
64
|
</view>
|
|
62
65
|
</view>
|
|
@@ -114,6 +117,8 @@ export default {
|
|
|
114
117
|
//预览是否显示弹窗
|
|
115
118
|
is_preview_hide_dailog: false,
|
|
116
119
|
|
|
120
|
+
isAll: false,
|
|
121
|
+
isRandom: false
|
|
117
122
|
};
|
|
118
123
|
},
|
|
119
124
|
computed: {
|
|
@@ -153,7 +158,7 @@ export default {
|
|
|
153
158
|
//领取优惠券
|
|
154
159
|
handleGetCoupon(item){
|
|
155
160
|
this.$xdShowLoading({});
|
|
156
|
-
jfbRootExec("
|
|
161
|
+
jfbRootExec("getOnceCoupon", {
|
|
157
162
|
vm: this,
|
|
158
163
|
data: {
|
|
159
164
|
prize_id: item.prize_id,
|
|
@@ -182,7 +187,6 @@ export default {
|
|
|
182
187
|
},
|
|
183
188
|
|
|
184
189
|
getResult() {
|
|
185
|
-
debugger
|
|
186
190
|
jfbRootExec("getCouponResult", {
|
|
187
191
|
vm: this,
|
|
188
192
|
data: {
|
|
@@ -200,11 +204,13 @@ export default {
|
|
|
200
204
|
time: 2000,
|
|
201
205
|
isClose: false,
|
|
202
206
|
});
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
this.
|
|
206
|
-
|
|
207
|
-
|
|
207
|
+
setTimeout(()=>{
|
|
208
|
+
this.getDialogList();
|
|
209
|
+
if (this.timer) {
|
|
210
|
+
this.timeNum = 0;
|
|
211
|
+
clearTimeout(this.timer);
|
|
212
|
+
}
|
|
213
|
+
},2000)
|
|
208
214
|
return;
|
|
209
215
|
}
|
|
210
216
|
if (res.status_type === "error") {
|
|
@@ -215,13 +221,15 @@ export default {
|
|
|
215
221
|
time: 2000,
|
|
216
222
|
isClose: false,
|
|
217
223
|
});
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
this.
|
|
223
|
-
|
|
224
|
-
|
|
224
|
+
setTimeout(()=>{
|
|
225
|
+
if (res.code === 400) {
|
|
226
|
+
this.getDialogList();
|
|
227
|
+
}
|
|
228
|
+
if (this.timer) {
|
|
229
|
+
this.timeNum = 0;
|
|
230
|
+
clearTimeout(this.timer);
|
|
231
|
+
}
|
|
232
|
+
},2000)
|
|
225
233
|
return;
|
|
226
234
|
}
|
|
227
235
|
|
|
@@ -261,6 +269,7 @@ export default {
|
|
|
261
269
|
this.list[this.currentIndex].app_activity_button
|
|
262
270
|
);
|
|
263
271
|
this.activity_id = this.list[this.currentIndex].activity_id;
|
|
272
|
+
this.isAll =
|
|
264
273
|
this.handlePop();
|
|
265
274
|
})
|
|
266
275
|
.catch((err) => {
|
|
@@ -279,14 +288,27 @@ export default {
|
|
|
279
288
|
const { list, ...other } = res;
|
|
280
289
|
this.couponList = list;
|
|
281
290
|
this.couponOther = other;
|
|
282
|
-
|
|
291
|
+
this.isAll = res.receive_method==="batch"
|
|
292
|
+
this.isRandom = res.distribution_type==="random"
|
|
293
|
+
this.activity_id = res.activity_id
|
|
294
|
+
if(res.receive_method !== "batch") {
|
|
295
|
+
if(res.can_take === "Y" && res.has_times === "Y" && list.length > 0){
|
|
296
|
+
if (this.isPreview) {
|
|
297
|
+
console.log(getContainerPropsValue(value, "content.is_show_dailog", 'Y'))
|
|
298
|
+
this.isShow = getContainerPropsValue(value, "content.is_show_dailog", 'Y') === 'N';
|
|
299
|
+
}else this.isShow = true;
|
|
300
|
+
}else{
|
|
301
|
+
this.handleCardBindClose();
|
|
302
|
+
}
|
|
303
|
+
} else {
|
|
304
|
+
if(res.can_take === "Y"){
|
|
283
305
|
if (this.isPreview) {
|
|
284
|
-
debugger
|
|
285
306
|
console.log(getContainerPropsValue(value, "content.is_show_dailog", 'Y'))
|
|
286
307
|
this.isShow = getContainerPropsValue(value, "content.is_show_dailog", 'Y') === 'N';
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
308
|
+
}else this.isShow = true;
|
|
309
|
+
}else{
|
|
310
|
+
this.handleCardBindClose();
|
|
311
|
+
}
|
|
290
312
|
}
|
|
291
313
|
})
|
|
292
314
|
},
|
|
@@ -299,6 +321,43 @@ export default {
|
|
|
299
321
|
}
|
|
300
322
|
},
|
|
301
323
|
|
|
324
|
+
getAllCoupont(info) {
|
|
325
|
+
this.p_getAllDialogList();
|
|
326
|
+
},
|
|
327
|
+
|
|
328
|
+
p_getAllDialogList() {
|
|
329
|
+
//getAllCoupon
|
|
330
|
+
this.$xdShowLoading({});
|
|
331
|
+
jfbRootExec("getAllCoupon", {
|
|
332
|
+
vm: this,
|
|
333
|
+
data: {
|
|
334
|
+
distribution_method: this.distribution_method,
|
|
335
|
+
activity_id: this.activity_id,
|
|
336
|
+
...this.dispatchData
|
|
337
|
+
}
|
|
338
|
+
}).then(res => {
|
|
339
|
+
if (res.code === 400) {
|
|
340
|
+
this.$xdHideLoading();
|
|
341
|
+
this.$xdAlert({
|
|
342
|
+
content: res.message,
|
|
343
|
+
zIndex: 3200,
|
|
344
|
+
time: 2000,
|
|
345
|
+
isClose: false,
|
|
346
|
+
});
|
|
347
|
+
setTimeout(()=>{
|
|
348
|
+
this.getDialogList();
|
|
349
|
+
},2000)
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
this.order_num = res.tmp_order_number;
|
|
353
|
+
setTimeout(()=>{
|
|
354
|
+
this.getResult();
|
|
355
|
+
},1000)
|
|
356
|
+
}).catch((err) => {
|
|
357
|
+
console.log(err, "err");
|
|
358
|
+
});
|
|
359
|
+
},
|
|
360
|
+
|
|
302
361
|
handlePop() {
|
|
303
362
|
console.warn(`this.time${this.time * 60 + "分钟"}`);
|
|
304
363
|
storage.set(this.containerId, 1, this.time);
|
|
@@ -320,7 +379,6 @@ export default {
|
|
|
320
379
|
){
|
|
321
380
|
this.getDialogList();
|
|
322
381
|
}
|
|
323
|
-
|
|
324
382
|
//支付跟绑卡是主动触发
|
|
325
383
|
if(this.distribution_method === 'card_binded'){
|
|
326
384
|
jfbRootFnExec(this, 'onCustomEvent')("baseConDialog@hasCon", this.containerId);
|
|
@@ -450,6 +508,7 @@ export default {
|
|
|
450
508
|
font-size: unit(40, rpx);
|
|
451
509
|
}
|
|
452
510
|
&-close {
|
|
511
|
+
margin-top: 20rpx;
|
|
453
512
|
margin: 0 auto;
|
|
454
513
|
}
|
|
455
514
|
&-left {
|