jufubao-base 1.0.181-beta1 → 1.0.181-beta3
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/JfbBaseCardDelay/JfbBaseCardDelay.vue +1 -0
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +1 -1
- package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +30 -12
- package/src/components/JfbBaseCardReceive/JfbBaseCardReceive.vue +10 -8
- package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCover.vue +6 -3
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +26 -10
- package/src/components/JfbBasePay/Attr.js +1 -1
- package/src/components/JfbBasePay/JfbBasePay.vue +10 -4
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +1 -1
package/package.json
CHANGED
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
<xd-button type="primary" @click="handleShare">再次分享</xd-button>
|
|
97
97
|
<!-- #endif -->
|
|
98
98
|
<!-- #ifdef MP-WEIXIN -->
|
|
99
|
-
<button class="share-btn" @click="handleShare" open-type="share">
|
|
99
|
+
<button :style="{background:mainColor}" class="share-btn" @click="handleShare" open-type="share">
|
|
100
100
|
再次分享
|
|
101
101
|
</button>
|
|
102
102
|
<!-- #endif -->
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
>超过24H未领取,票券会自动退回您的账户中。</view
|
|
116
116
|
>
|
|
117
117
|
<!-- #ifdef MP-WEIXIN -->
|
|
118
|
-
<button class="share-btn" @click="handleShare" open-type="share">
|
|
118
|
+
<button :style="{background:mainColor}" class="share-btn" @click="handleShare" open-type="share">
|
|
119
119
|
通知微信好友
|
|
120
120
|
</button>
|
|
121
121
|
<!-- #endif -->
|
|
@@ -127,15 +127,14 @@
|
|
|
127
127
|
</view>
|
|
128
128
|
</xd-dailog>
|
|
129
129
|
<xd-dailog
|
|
130
|
-
title=""
|
|
130
|
+
title="取消失败"
|
|
131
131
|
:cancel="false"
|
|
132
132
|
:confirm="false"
|
|
133
133
|
:show.sync="resultDialog"
|
|
134
134
|
>
|
|
135
135
|
<view class="dialog">
|
|
136
|
-
<view class="dialog-title">取消失败</view>
|
|
137
136
|
<view class="dialog-content">{{ errMsg }}</view>
|
|
138
|
-
<xd-button @click="
|
|
137
|
+
<xd-button @click="handleCancel" width="360rpx" type="primary"
|
|
139
138
|
>确定</xd-button
|
|
140
139
|
>
|
|
141
140
|
</view>
|
|
@@ -202,6 +201,7 @@ export default {
|
|
|
202
201
|
await this.getDetail();
|
|
203
202
|
},
|
|
204
203
|
getDetail() {
|
|
204
|
+
this.$xdShowLoading({});
|
|
205
205
|
jfbRootExec("getBaseByIdCardDetailGive", {
|
|
206
206
|
vm: this,
|
|
207
207
|
data: {
|
|
@@ -210,6 +210,7 @@ export default {
|
|
|
210
210
|
},
|
|
211
211
|
})
|
|
212
212
|
.then((res) => {
|
|
213
|
+
this.$xdHideLoading({});
|
|
213
214
|
this.info = res;
|
|
214
215
|
this.info.card_point = this.$xdUniHelper.divisionFloatNumber(
|
|
215
216
|
this.info.card_point,
|
|
@@ -230,6 +231,7 @@ export default {
|
|
|
230
231
|
}
|
|
231
232
|
})
|
|
232
233
|
.catch((err) => {
|
|
234
|
+
this.$xdHideLoading({});
|
|
233
235
|
console.log(err, "err");
|
|
234
236
|
});
|
|
235
237
|
},
|
|
@@ -248,6 +250,12 @@ export default {
|
|
|
248
250
|
).url;
|
|
249
251
|
},
|
|
250
252
|
handleCancel() {
|
|
253
|
+
this.resultDialog = false;
|
|
254
|
+
this.getDetail();
|
|
255
|
+
},
|
|
256
|
+
handleCancel() {
|
|
257
|
+
this.$xdShowLoading({});
|
|
258
|
+
|
|
251
259
|
jfbRootExec("cancelGiveCard", {
|
|
252
260
|
vm: this,
|
|
253
261
|
data: {
|
|
@@ -261,12 +269,16 @@ export default {
|
|
|
261
269
|
} else {
|
|
262
270
|
this.getDetail();
|
|
263
271
|
}
|
|
272
|
+
this.$xdHideLoading({});
|
|
264
273
|
})
|
|
265
274
|
.catch((err) => {
|
|
275
|
+
this.$xdHideLoading({});
|
|
276
|
+
|
|
266
277
|
console.log(err, "err");
|
|
267
278
|
});
|
|
268
279
|
},
|
|
269
280
|
handleGive() {
|
|
281
|
+
this.$xdShowLoading({});
|
|
270
282
|
jfbRootExec("confirmGiveCard", {
|
|
271
283
|
vm: this,
|
|
272
284
|
data: {
|
|
@@ -277,8 +289,10 @@ export default {
|
|
|
277
289
|
.then((res) => {
|
|
278
290
|
this.getDetail();
|
|
279
291
|
this.dialogShow = true;
|
|
292
|
+
this.$xdHideLoading({});
|
|
280
293
|
})
|
|
281
294
|
.catch((err) => {
|
|
295
|
+
this.$xdHideLoading({});
|
|
282
296
|
console.log(err, "err");
|
|
283
297
|
});
|
|
284
298
|
},
|
|
@@ -292,7 +306,7 @@ export default {
|
|
|
292
306
|
uni.setClipboardData({
|
|
293
307
|
data: text,
|
|
294
308
|
success: () => {
|
|
295
|
-
|
|
309
|
+
this.$xdAlert({ content: "复制成功" });
|
|
296
310
|
},
|
|
297
311
|
});
|
|
298
312
|
// #endif
|
|
@@ -312,6 +326,11 @@ export default {
|
|
|
312
326
|
|
|
313
327
|
// #endif
|
|
314
328
|
},
|
|
329
|
+
onJfbShow(options) {
|
|
330
|
+
console.log("onJfbShow8888");
|
|
331
|
+
|
|
332
|
+
// this.dialogShow = false;
|
|
333
|
+
},
|
|
315
334
|
},
|
|
316
335
|
};
|
|
317
336
|
</script>
|
|
@@ -480,16 +499,15 @@ export default {
|
|
|
480
499
|
}
|
|
481
500
|
.share-btn {
|
|
482
501
|
opacity: 1;
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
height:
|
|
486
|
-
|
|
487
|
-
border-radius: 22px;
|
|
502
|
+
font-size: 36rpx;
|
|
503
|
+
height: 80rpx;
|
|
504
|
+
line-height: 80rpx;
|
|
505
|
+
border-radius: 44rpx;
|
|
488
506
|
color: #fff;
|
|
489
507
|
width: auto;
|
|
490
508
|
box-shadow: 0 0 0 rgba(0, 0, 0, 0);
|
|
491
509
|
border: 0;
|
|
492
|
-
padding: 0
|
|
510
|
+
padding: 0 60rpx;
|
|
493
511
|
margin: 0;
|
|
494
512
|
}
|
|
495
513
|
}
|
|
@@ -90,11 +90,11 @@
|
|
|
90
90
|
</view>
|
|
91
91
|
</view>
|
|
92
92
|
<view
|
|
93
|
-
v-if="info.transfer_record.status
|
|
93
|
+
v-if="info.transfer_record.status === 'N'"
|
|
94
94
|
style="height: 110rpx"
|
|
95
95
|
></view>
|
|
96
96
|
<view
|
|
97
|
-
v-if="info.transfer_record.status
|
|
97
|
+
v-if="info.transfer_record.status === 'N'"
|
|
98
98
|
class="jfb-base-card-receive__body-footer"
|
|
99
99
|
:style="prod_bottom"
|
|
100
100
|
>
|
|
@@ -103,13 +103,12 @@
|
|
|
103
103
|
>
|
|
104
104
|
</view>
|
|
105
105
|
<xd-dailog
|
|
106
|
-
title=""
|
|
106
|
+
title="领取失败"
|
|
107
107
|
:cancel="false"
|
|
108
108
|
:confirm="false"
|
|
109
109
|
:show.sync="dialogShow"
|
|
110
110
|
>
|
|
111
111
|
<view class="dialog">
|
|
112
|
-
<view class="dialog-title">领取失败</view>
|
|
113
112
|
<view class="dialog-content">{{ errMsg }}</view>
|
|
114
113
|
<xd-button @click="handleClose" width="360rpx" type="primary"
|
|
115
114
|
>确定</xd-button
|
|
@@ -117,13 +116,12 @@
|
|
|
117
116
|
</view>
|
|
118
117
|
</xd-dailog>
|
|
119
118
|
<xd-dailog
|
|
120
|
-
title=""
|
|
119
|
+
title="领取成功"
|
|
121
120
|
:cancel="false"
|
|
122
121
|
:confirm="false"
|
|
123
122
|
:show.sync="resultDialog"
|
|
124
123
|
>
|
|
125
124
|
<view class="dialog">
|
|
126
|
-
<view class="dialog-title">领取成功</view>
|
|
127
125
|
<view class="dialog-content">恭喜您领取成功</view>
|
|
128
126
|
<view class="dialog-notice">票券已放入您的票券列表中</view>
|
|
129
127
|
<!-- <button open-type="share">通知微信好友</button> -->
|
|
@@ -166,7 +164,7 @@ export default {
|
|
|
166
164
|
info: null,
|
|
167
165
|
transfer_auth_code: null,
|
|
168
166
|
dialogShow: false,
|
|
169
|
-
resultDialog:
|
|
167
|
+
resultDialog: true,
|
|
170
168
|
isPreview: false,
|
|
171
169
|
errMsg: "",
|
|
172
170
|
};
|
|
@@ -229,6 +227,7 @@ export default {
|
|
|
229
227
|
});
|
|
230
228
|
},
|
|
231
229
|
handleReceive() {
|
|
230
|
+
this.$xdShowLoading({});
|
|
232
231
|
jfbRootExec("receiveCard", {
|
|
233
232
|
vm: this,
|
|
234
233
|
data: {
|
|
@@ -243,8 +242,10 @@ export default {
|
|
|
243
242
|
this.resultDialog = true;
|
|
244
243
|
this.getDetail();
|
|
245
244
|
}
|
|
245
|
+
this.$xdHideLoading({});
|
|
246
246
|
})
|
|
247
247
|
.catch((err) => {
|
|
248
|
+
this.$xdHideLoading({});
|
|
248
249
|
console.log(err, "err");
|
|
249
250
|
});
|
|
250
251
|
},
|
|
@@ -254,6 +255,8 @@ export default {
|
|
|
254
255
|
},
|
|
255
256
|
|
|
256
257
|
toUse() {
|
|
258
|
+
console.log(this.use_url,'this.use_url');
|
|
259
|
+
|
|
257
260
|
this.$xdUniHelper.navigateTo({
|
|
258
261
|
url: `${this.use_url}`,
|
|
259
262
|
});
|
|
@@ -327,7 +330,6 @@ export default {
|
|
|
327
330
|
}
|
|
328
331
|
}
|
|
329
332
|
.dialog {
|
|
330
|
-
padding-top: 70rpx;
|
|
331
333
|
.dialog-title {
|
|
332
334
|
font-size: 40rpx;
|
|
333
335
|
font-weight: 500;
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
return {
|
|
49
49
|
btnBg: "",
|
|
50
50
|
contentBg: "",
|
|
51
|
-
greeting: "
|
|
51
|
+
greeting: "",
|
|
52
52
|
receive_get_url: "",
|
|
53
53
|
btnColor: "",
|
|
54
54
|
transfer_auth_code: null,
|
|
@@ -60,10 +60,12 @@ export default {
|
|
|
60
60
|
return this.styleObjectToString({
|
|
61
61
|
backgroundImage: "url(" + this.btnBg + ")",
|
|
62
62
|
backgroundRepeat: "no-repeat",
|
|
63
|
-
backgroundSize:
|
|
63
|
+
backgroundSize: 'cover',
|
|
64
64
|
width: "326rpx",
|
|
65
65
|
height: "90rpx",
|
|
66
|
-
|
|
66
|
+
display: "flex",
|
|
67
|
+
justifyContent: "center",
|
|
68
|
+
alignItems: "center",
|
|
67
69
|
color: this.btnColor,
|
|
68
70
|
border: "none",
|
|
69
71
|
});
|
|
@@ -134,6 +136,7 @@ export default {
|
|
|
134
136
|
);
|
|
135
137
|
},
|
|
136
138
|
handleToReceive() {
|
|
139
|
+
if(this.status === "T") return;
|
|
137
140
|
this.$xdUniHelper.navigateTo({
|
|
138
141
|
url: `${this.receive_get_url}?transfer_auth_code=${this.transfer_auth_code}`,
|
|
139
142
|
});
|
|
@@ -617,14 +617,21 @@
|
|
|
617
617
|
</view>
|
|
618
618
|
</view>
|
|
619
619
|
</view>
|
|
620
|
-
|
|
621
|
-
<view
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
620
|
+
<!--旅游模块-->
|
|
621
|
+
<view
|
|
622
|
+
v-if="info.extras &&
|
|
623
|
+
info.extras.travel_booking_info &&
|
|
624
|
+
info.extras.travel_booking_info['travelers'] &&
|
|
625
|
+
info.extras.travel_booking_info['travelers'].length > 0"
|
|
626
|
+
:style="{
|
|
627
|
+
background: backgroundColor,
|
|
628
|
+
border: borderBox,
|
|
629
|
+
borderRadius: radius + 'rpx',
|
|
630
|
+
boxShadow: shadowBox,
|
|
631
|
+
marginBottom: padding + 'rpx',
|
|
632
|
+
}"
|
|
633
|
+
class="jfb-base-order-detail__body-card jfb-base-order-detail__body-booking"
|
|
634
|
+
>
|
|
628
635
|
<view class="jfb-base-order-detail__body-delivery-bottom-title">预订信息</view>
|
|
629
636
|
<view class="jfb-base-order-detail__body-line"></view>
|
|
630
637
|
<view class="jfb-base-order-detail__body-booking-list">
|
|
@@ -638,6 +645,7 @@
|
|
|
638
645
|
</view>
|
|
639
646
|
</view>
|
|
640
647
|
</view>
|
|
648
|
+
<!--旅游模块-->
|
|
641
649
|
<view
|
|
642
650
|
v-if="info.productDetail"
|
|
643
651
|
class="jfb-base-order-detail__body-card jfb-base-order-detail__body-shop"
|
|
@@ -918,9 +926,17 @@ export default {
|
|
|
918
926
|
.then((res) => {
|
|
919
927
|
this.biz_code = res.biz_code;
|
|
920
928
|
this.is_not_show_price = res.is_not_show_price;
|
|
921
|
-
|
|
922
|
-
|
|
929
|
+
|
|
930
|
+
//旅游模块
|
|
931
|
+
if(res.extras && res.extras.travel_booking_info) {
|
|
932
|
+
try{
|
|
933
|
+
res.extras.travel_booking_info = JSON.parse(res.extras.travel_booking_info)
|
|
934
|
+
}catch(e){
|
|
935
|
+
res.extras.travel_booking_info = {}
|
|
936
|
+
}
|
|
923
937
|
}
|
|
938
|
+
|
|
939
|
+
//预览模块
|
|
924
940
|
if (this.isPreview) {
|
|
925
941
|
switch (this.viewStatus) {
|
|
926
942
|
case "mall":
|
|
@@ -222,7 +222,7 @@ export default {
|
|
|
222
222
|
},
|
|
223
223
|
},
|
|
224
224
|
computed: {
|
|
225
|
-
prod_bottom() {
|
|
225
|
+
prod_bottom() {
|
|
226
226
|
return this.fixedStyle({ height: 0, zIndex: 111 });
|
|
227
227
|
},
|
|
228
228
|
getSuccessUrl(){
|
|
@@ -416,9 +416,15 @@ export default {
|
|
|
416
416
|
},
|
|
417
417
|
})
|
|
418
418
|
.then((res) => {
|
|
419
|
-
this
|
|
420
|
-
|
|
421
|
-
|
|
419
|
+
if(this.type) {
|
|
420
|
+
this.$xdUniHelper.redirectTo({
|
|
421
|
+
url: this.getSuccessUrl + `?order_id=${this.main_order_id}&type=${this.type}`
|
|
422
|
+
});
|
|
423
|
+
} else {
|
|
424
|
+
this.$xdUniHelper.redirectTo({
|
|
425
|
+
url: this.getSuccessUrl + `?order_id=${this.main_order_id}`
|
|
426
|
+
});
|
|
427
|
+
}
|
|
422
428
|
})
|
|
423
429
|
.catch(error=>{
|
|
424
430
|
this.$xdLog.setARMSCustomError('update_loading_fail', {options: this.options, error});
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
class="jfb-base-recharge-order-detail__body-delay jfb-base-recharge-order-detail__body-card"
|
|
22
22
|
>
|
|
23
23
|
<image
|
|
24
|
-
src="https://
|
|
24
|
+
src="https://img3.jufubao.cn/uploads/20240911/f013c774b2ae205e13d1e9cad062b5db.jpg?ver=1726047927908"
|
|
25
25
|
></image>
|
|
26
26
|
<view class="jfb-base-recharge-order-detail__body-delay-info">
|
|
27
27
|
<view>{{ info.package_name }}</view>
|