jufubao-base 1.0.177-beta1 → 1.0.177-beta4
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/Attr.js +12 -0
- package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +57 -33
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +1 -1
- package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +2 -2
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +8 -8
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +6 -3
- package/src/components/JfbBaseCardGive/Attr.js +1 -1
- package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +5 -0
- package/src/components/JfbBaseCardReceive/Api.js +1 -1
- package/src/components/JfbBaseCardReceive/Attr.js +1 -1
- package/src/components/JfbBaseCardReceive/JfbBaseCardReceive.vue +21 -5
- package/src/components/JfbBaseCardReceive/Mock.js +1 -7
- package/src/components/JfbBaseCardReceiveCover/Attr.js +1 -1
- package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCover.vue +14 -10
- package/src/components/JfbBaseCardReceiveCover/Mock.js +1 -9
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +1 -1
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +81 -2
- package/src/components/JfbBaseOrderDetail/Mock.js +5 -0
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +0 -1
- package/src/components/JfbBaseRechargeOrder/Api.js +11 -0
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +46 -27
- package/src/components/JfbBaseRechargeOrderDetail/Api.js +11 -0
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +15 -9
- package/src/components/JfbBaseRechargeSuccess/Api.js +11 -0
- package/src/components/JfbBaseRechargeSuccess/Attr.js +1 -1
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +6 -3
package/package.json
CHANGED
|
@@ -242,6 +242,18 @@ export default {
|
|
|
242
242
|
},
|
|
243
243
|
inline: false,
|
|
244
244
|
},
|
|
245
|
+
{
|
|
246
|
+
label: '0元支付成功路径:',
|
|
247
|
+
ele: 'xd-select-pages-path',
|
|
248
|
+
valueKey: 'successPath',
|
|
249
|
+
groupKey:'advanced',
|
|
250
|
+
placeholder: '请选择0元支付成功路径',
|
|
251
|
+
value: data['successPath'] || {},
|
|
252
|
+
setting: {
|
|
253
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
254
|
+
},
|
|
255
|
+
inline: false,
|
|
256
|
+
},
|
|
245
257
|
].filter(i=>i)
|
|
246
258
|
},
|
|
247
259
|
advanced: [],
|
|
@@ -16,26 +16,35 @@
|
|
|
16
16
|
<view class="jfb-base-card-delay__body">
|
|
17
17
|
<view>
|
|
18
18
|
<view class="wrap">
|
|
19
|
-
<input
|
|
19
|
+
<input
|
|
20
|
+
placeholder="输入券号"
|
|
21
|
+
v-model.trim="card_number"
|
|
22
|
+
type="text"
|
|
23
|
+
/>
|
|
20
24
|
</view>
|
|
21
|
-
<view v-if="packageList
|
|
22
|
-
<view
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<view>{{ item.package_name }}</view>
|
|
34
|
-
<view>
|
|
35
|
-
<text>{{ item.pay_amount }}</text
|
|
36
|
-
>元宝</view
|
|
25
|
+
<view v-if="packageList !== null">
|
|
26
|
+
<view v-if="packageList.length > 0" class="package">
|
|
27
|
+
<view
|
|
28
|
+
v-for="(item, index) in packageList"
|
|
29
|
+
:key="index"
|
|
30
|
+
@click="activeIndex = index"
|
|
31
|
+
:style="{
|
|
32
|
+
background: activeIndex === index ? backgroundColor : '#fff',
|
|
33
|
+
color: activeIndex === index ? mainColor : '#333',
|
|
34
|
+
marginRight: (index + 1) % 3 == 0 ? '0' : '36rpx',
|
|
35
|
+
}"
|
|
36
|
+
class="package-item"
|
|
37
37
|
>
|
|
38
|
+
<view>{{ item.package_name }}</view>
|
|
39
|
+
<view>
|
|
40
|
+
<text>{{ item.pay_amount }}</text
|
|
41
|
+
>元宝</view
|
|
42
|
+
>
|
|
43
|
+
</view>
|
|
38
44
|
</view>
|
|
45
|
+
<xd-no-data height="20vh" v-else :iconType="empty">
|
|
46
|
+
当前票券无套餐
|
|
47
|
+
</xd-no-data>
|
|
39
48
|
</view>
|
|
40
49
|
<view class="wrap" style="margin-top: 28rpx" v-if="notice">
|
|
41
50
|
<view
|
|
@@ -76,11 +85,8 @@
|
|
|
76
85
|
class="jfb-base-card-delay__body-footer"
|
|
77
86
|
:style="prod_bottom"
|
|
78
87
|
>
|
|
79
|
-
<xd-button
|
|
80
|
-
|
|
81
|
-
type="primary"
|
|
82
|
-
@click="handleBuy"
|
|
83
|
-
>{{pay_amount}}元延期</xd-button
|
|
88
|
+
<xd-button width="560rpx" type="primary" @click="handleBuy"
|
|
89
|
+
>{{ pay_amount }}元延期</xd-button
|
|
84
90
|
>
|
|
85
91
|
</view>
|
|
86
92
|
</view>
|
|
@@ -98,6 +104,7 @@ import componentsMixins from "@/mixins/componentsMixins";
|
|
|
98
104
|
import XdContentXss from "@/components/XdContentXss/XdContentXss";
|
|
99
105
|
import extsMixins from "@/mixins/extsMixins";
|
|
100
106
|
import colorCardMixins from "@/mixins/colorCardMixins";
|
|
107
|
+
import XdNoData from "@/components/XdNoData/XdNoData";
|
|
101
108
|
const Color = require("color");
|
|
102
109
|
|
|
103
110
|
export default {
|
|
@@ -106,6 +113,7 @@ export default {
|
|
|
106
113
|
XdFontIcon,
|
|
107
114
|
XdContentXss,
|
|
108
115
|
XdButton,
|
|
116
|
+
XdNoData,
|
|
109
117
|
},
|
|
110
118
|
mixins: [
|
|
111
119
|
componentsMixins,
|
|
@@ -118,11 +126,12 @@ export default {
|
|
|
118
126
|
notice: "",
|
|
119
127
|
card_number: "",
|
|
120
128
|
backgroundColor: "",
|
|
121
|
-
packageList:
|
|
129
|
+
packageList: null,
|
|
122
130
|
activeIndex: 0,
|
|
123
131
|
package_id: null,
|
|
124
132
|
payPath: "",
|
|
125
|
-
pay_amount: 0
|
|
133
|
+
pay_amount: 0,
|
|
134
|
+
successPath: "",
|
|
126
135
|
};
|
|
127
136
|
},
|
|
128
137
|
computed: {
|
|
@@ -135,12 +144,17 @@ export default {
|
|
|
135
144
|
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
136
145
|
if (this.$configProject["isPreview"]) this.init(value);
|
|
137
146
|
},
|
|
138
|
-
activeIndex(n,o) {
|
|
139
|
-
if(n!==o) {
|
|
147
|
+
activeIndex(n, o) {
|
|
148
|
+
if (n !== o) {
|
|
140
149
|
this.package_id = this.packageList[n].id;
|
|
141
150
|
this.pay_amount = this.packageList[n].pay_amount;
|
|
142
151
|
}
|
|
143
|
-
}
|
|
152
|
+
},
|
|
153
|
+
card_number(n, o) {
|
|
154
|
+
if (n === "") {
|
|
155
|
+
this.packageList = null;
|
|
156
|
+
}
|
|
157
|
+
},
|
|
144
158
|
},
|
|
145
159
|
created() {
|
|
146
160
|
this.backgroundColor = Color(this.mainColor).alpha(0.2).toString();
|
|
@@ -151,10 +165,9 @@ export default {
|
|
|
151
165
|
methods: {
|
|
152
166
|
onJfbLoad(options) {
|
|
153
167
|
this.getContent();
|
|
154
|
-
this.getList();
|
|
155
168
|
},
|
|
156
169
|
getContent() {
|
|
157
|
-
jfbRootExec("
|
|
170
|
+
jfbRootExec("getCardDelayContent", {
|
|
158
171
|
vm: this,
|
|
159
172
|
data: {
|
|
160
173
|
page_id: this.pageAttr["page_id"], //页面ID
|
|
@@ -193,6 +206,8 @@ export default {
|
|
|
193
206
|
this.packageList = res.list;
|
|
194
207
|
this.package_id = this.packageList[0].id;
|
|
195
208
|
this.pay_amount = this.packageList[0].pay_amount;
|
|
209
|
+
} else {
|
|
210
|
+
this.packageList = [];
|
|
196
211
|
}
|
|
197
212
|
})
|
|
198
213
|
.catch((error) => {
|
|
@@ -210,9 +225,15 @@ export default {
|
|
|
210
225
|
})
|
|
211
226
|
.then((res) => {
|
|
212
227
|
this.$xdHideLoading();
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
228
|
+
if (res.is_need_pay === "Y") {
|
|
229
|
+
this.$xdUniHelper.navigateTo({
|
|
230
|
+
url: `${this.payPath}?order_id=${res.pay_order_id}&main_order_id=${res.order_id}&type=delay`,
|
|
231
|
+
});
|
|
232
|
+
} else {
|
|
233
|
+
this.$xdUniHelper.navigateTo({
|
|
234
|
+
url: `${this.successPath}?order_id=${res.order_id}&type=delay`,
|
|
235
|
+
});
|
|
236
|
+
}
|
|
216
237
|
})
|
|
217
238
|
.catch((err) => {
|
|
218
239
|
this.$xdHideLoading();
|
|
@@ -227,6 +248,9 @@ export default {
|
|
|
227
248
|
this.payPath = getContainerPropsValue(container, "content.payPath", {
|
|
228
249
|
value: "",
|
|
229
250
|
}).value;
|
|
251
|
+
this.successPath = getContainerPropsValue(container, "content.successPath", {
|
|
252
|
+
value: "",
|
|
253
|
+
}).value;
|
|
230
254
|
},
|
|
231
255
|
},
|
|
232
256
|
};
|
|
@@ -242,6 +266,7 @@ export default {
|
|
|
242
266
|
border-radius: 20rpx;
|
|
243
267
|
border: 1rpx solid #eeeeee;
|
|
244
268
|
padding: 36rpx;
|
|
269
|
+
background: #fff;
|
|
245
270
|
input {
|
|
246
271
|
height: 30rpx;
|
|
247
272
|
border-radius: 16rpx;
|
|
@@ -258,7 +283,6 @@ export default {
|
|
|
258
283
|
display: flex;
|
|
259
284
|
justify-content: space-between;
|
|
260
285
|
align-items: center;
|
|
261
|
-
background: #fff;
|
|
262
286
|
}
|
|
263
287
|
.package {
|
|
264
288
|
display: flex;
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
</view>
|
|
68
68
|
<view>
|
|
69
69
|
<view>{{ item.card_number }}</view>
|
|
70
|
-
<view
|
|
70
|
+
<view>有效期至:{{item['is_show_baseinfo'] === 'Y'? item['end_time'] :'--'}}</view>
|
|
71
71
|
</view>
|
|
72
72
|
</view>
|
|
73
73
|
<view class="jfb-base-card-disabled__body-card-item-right-bottom">
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
<view
|
|
76
76
|
style="color: #b8b7be"
|
|
77
77
|
class="jfb-base-card-disabled__body-card-item-right-bottom-info-residue"
|
|
78
|
-
>剩余{{ item.unit }}
|
|
78
|
+
>剩余{{ item.unit }}数:{{item['is_show_baseinfo'] === 'Y'? `${item['card_point']} ${item.unit}`:'--'}}</view>
|
|
79
79
|
</view>
|
|
80
80
|
<view
|
|
81
81
|
@click.stop="handleUnBindCard(item)"
|
|
@@ -10,9 +10,7 @@
|
|
|
10
10
|
:class="{ editx: isEditx && active }"
|
|
11
11
|
v-if="isEditx && active"
|
|
12
12
|
>
|
|
13
|
-
<view class="jfb-base-card-disabled-entry__edit-icon" @click="delEdit"
|
|
14
|
-
>删除</view
|
|
15
|
-
>
|
|
13
|
+
<view class="jfb-base-card-disabled-entry__edit-icon" @click="delEdit">删除</view>
|
|
16
14
|
</view>
|
|
17
15
|
<!-- #endif -->
|
|
18
16
|
<view class="jfb-base-card-disabled-entry__body">
|
|
@@ -46,16 +44,19 @@
|
|
|
46
44
|
</div>
|
|
47
45
|
<view class="card-list__date">
|
|
48
46
|
<text>有效期:</text>
|
|
49
|
-
<text
|
|
47
|
+
<text>{{item['is_show_baseinfo'] === 'Y'? item['end_time'] :'--'}}</text>
|
|
50
48
|
</view>
|
|
51
49
|
<view class="card-list__yue">
|
|
52
50
|
<text>余额:</text>
|
|
53
|
-
<text
|
|
51
|
+
<text>{{item['is_show_baseinfo'] === 'Y'? `${item['card_point']} ${item.unit}`:'--'}}</text>
|
|
54
52
|
</view>
|
|
55
|
-
<view
|
|
53
|
+
<view
|
|
54
|
+
class="card-list__other"
|
|
55
|
+
v-if="item.other_card_point && item.card_point_type === 2 "
|
|
56
|
+
>
|
|
56
57
|
<view>
|
|
57
58
|
<text>购买其他物品可抵:</text>
|
|
58
|
-
<text
|
|
59
|
+
<text>{{item['is_show_baseinfo'] === 'Y' ? item['other_card_point'] :'--'}}</text>
|
|
59
60
|
</view>
|
|
60
61
|
</view>
|
|
61
62
|
<template>
|
|
@@ -200,7 +201,6 @@ export default {
|
|
|
200
201
|
this.$xdShowLoading({});
|
|
201
202
|
jfbRootExec("getDisableCardListEntry", {vm: this, data: {is_all: "Y", is_show_entry_settings: 'Y'},})
|
|
202
203
|
.then((res) => {
|
|
203
|
-
//this.isShowUnbind = (res["is_can_unbind"] === 'Y' || res["is_can_unbind"] === undefined);
|
|
204
204
|
res.list = res.list.map((item) => {
|
|
205
205
|
return {
|
|
206
206
|
...item,
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
<view
|
|
135
135
|
class="jfb-base-card-entry__body-tips"
|
|
136
136
|
:style="{ color: warningColor }"
|
|
137
|
-
v-if="subTabIndex === 2"
|
|
137
|
+
v-if="subTabIndex === 2&&tabIndex === 1"
|
|
138
138
|
>* 目前仅支持电影票兑换券进行转换</view>
|
|
139
139
|
<view class="card-content">
|
|
140
140
|
<view v-if="loadingCardList" class="jfb-base-card-entry__body-card skeleton-card">
|
|
@@ -294,6 +294,7 @@
|
|
|
294
294
|
:couponLeftBgColor="couponLeftBgColor"
|
|
295
295
|
:item="item"
|
|
296
296
|
@useCoupon="handleBindLogin(item,item['entries'][0])"
|
|
297
|
+
@toDetail="toDetail(item)"
|
|
297
298
|
></xd-coupon-item>
|
|
298
299
|
</view>
|
|
299
300
|
<view v-else>
|
|
@@ -587,7 +588,7 @@ export default {
|
|
|
587
588
|
this.bindUrl = getContainerPropsValue(container,"content.bind_url",{value: ""}).value;
|
|
588
589
|
this.detailUrl = getContainerPropsValue(container,"content.detail_url",{value: ""}).value;
|
|
589
590
|
this.confirmUrl = getContainerPropsValue(container,"content.confirm_url",{value: ""}).value;
|
|
590
|
-
this.
|
|
591
|
+
this.give_url = getContainerPropsValue(container,"content.give_url",{value: ""}).value;
|
|
591
592
|
this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
|
|
592
593
|
this.isShowCode = getContainerPropsValue(container, "content.isShowCode", "Y");
|
|
593
594
|
this.isShowCoupon = getContainerPropsValue(container, "content.isShowCoupon", "N");
|
|
@@ -817,7 +818,7 @@ export default {
|
|
|
817
818
|
toDetail(item, out=true) {
|
|
818
819
|
if(this.subTabIndex===3) {
|
|
819
820
|
this.$xdUniHelper.navigateTo({
|
|
820
|
-
url: `${this.
|
|
821
|
+
url: `${this.give_url}?card_number=${item["card_number"]}`,
|
|
821
822
|
}, false);
|
|
822
823
|
} else {
|
|
823
824
|
this.$xdUniHelper.navigateTo({
|
|
@@ -925,6 +926,8 @@ export default {
|
|
|
925
926
|
} else {
|
|
926
927
|
type = 'is_transfering'
|
|
927
928
|
}
|
|
929
|
+
console.log(this.ajaxCardList, type, 'this.ajaxCardList, type');
|
|
930
|
+
|
|
928
931
|
this.handleCardInit(this.ajaxCardList, type);
|
|
929
932
|
this.cardPageNum = 1;
|
|
930
933
|
this.$xdHideLoading();
|
|
@@ -212,6 +212,10 @@ export default {
|
|
|
212
212
|
})
|
|
213
213
|
.then((res) => {
|
|
214
214
|
this.info = res;
|
|
215
|
+
this.info.card_point = this.$xdUniHelper.divisionFloatNumber(
|
|
216
|
+
this.info.card_point,
|
|
217
|
+
100
|
|
218
|
+
);
|
|
215
219
|
this.greeting = res.transfer_record.greeting;
|
|
216
220
|
this.info["theme"] = this.getCardThemes(this.info["card_type_name"]);
|
|
217
221
|
if (
|
|
@@ -364,6 +368,7 @@ export default {
|
|
|
364
368
|
border-radius: 8rpx;
|
|
365
369
|
padding: 8rpx 20rpx;
|
|
366
370
|
display: inline-block;
|
|
371
|
+
margin-bottom: 30rpx;
|
|
367
372
|
}
|
|
368
373
|
}
|
|
369
374
|
}
|
|
@@ -89,9 +89,16 @@
|
|
|
89
89
|
</view>
|
|
90
90
|
</view>
|
|
91
91
|
</view>
|
|
92
|
-
<view
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
<view
|
|
93
|
+
v-if="info.transfer_record.status !== 'Y'"
|
|
94
|
+
style="height: 110rpx"
|
|
95
|
+
></view>
|
|
96
|
+
<view
|
|
97
|
+
v-if="info.transfer_record.status !== 'Y'"
|
|
98
|
+
class="jfb-base-card-receive__body-footer"
|
|
99
|
+
:style="prod_bottom"
|
|
100
|
+
>
|
|
101
|
+
<xd-button width="670rpx" type="primary" @click="handleReceive"
|
|
95
102
|
>立即领取</xd-button
|
|
96
103
|
>
|
|
97
104
|
</view>
|
|
@@ -104,7 +111,7 @@
|
|
|
104
111
|
<view class="dialog">
|
|
105
112
|
<view class="dialog-title">领取失败</view>
|
|
106
113
|
<view class="dialog-content">{{ errMsg }}</view>
|
|
107
|
-
<xd-button @click="
|
|
114
|
+
<xd-button @click="handleClose" width="360rpx" type="primary"
|
|
108
115
|
>确定</xd-button
|
|
109
116
|
>
|
|
110
117
|
</view>
|
|
@@ -183,7 +190,6 @@ export default {
|
|
|
183
190
|
},
|
|
184
191
|
methods: {
|
|
185
192
|
onJfbLoad(options) {
|
|
186
|
-
debugger
|
|
187
193
|
this.transfer_auth_code = options.transfer_auth_code;
|
|
188
194
|
this.getDetail();
|
|
189
195
|
},
|
|
@@ -197,6 +203,10 @@ export default {
|
|
|
197
203
|
})
|
|
198
204
|
.then((res) => {
|
|
199
205
|
this.info = res;
|
|
206
|
+
this.info.card_point = this.$xdUniHelper.divisionFloatNumber(
|
|
207
|
+
this.info.card_point,
|
|
208
|
+
100
|
|
209
|
+
);
|
|
200
210
|
this.info["theme"] = this.getCardThemes(this.info["card_type_name"]);
|
|
201
211
|
if (
|
|
202
212
|
this.info &&
|
|
@@ -234,6 +244,11 @@ export default {
|
|
|
234
244
|
console.log(err, "err");
|
|
235
245
|
});
|
|
236
246
|
},
|
|
247
|
+
handleClose() {
|
|
248
|
+
this.dialogShow = false;
|
|
249
|
+
this.getDetail();
|
|
250
|
+
},
|
|
251
|
+
|
|
237
252
|
toUse() {
|
|
238
253
|
this.$xdUniHelper.navigateTo({
|
|
239
254
|
url: `${this.use_url}`,
|
|
@@ -303,6 +318,7 @@ export default {
|
|
|
303
318
|
border-radius: 8rpx;
|
|
304
319
|
padding: 8rpx 20rpx;
|
|
305
320
|
display: inline-block;
|
|
321
|
+
margin-bottom: 30rpx;
|
|
306
322
|
}
|
|
307
323
|
}
|
|
308
324
|
}
|
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
updateCardFilmPaiqiDate:{},
|
|
8
|
-
|
|
9
|
-
removeCardFilmAddress:{},
|
|
10
|
-
|
|
11
|
-
addCardFilmcart:{},
|
|
5
|
+
getReceiveDetailCard:{"card_number":"101001000008098","card_point":99028,"card_type_name":"多余额福卡","end_time":"2025-07-31","card_status":"Y","card_status_name":"开启","unit":"点","main_business_code_name":"蛋糕(勿改)、网络视听(勿改)、体检(勿改)","other_card_point":79222,"is_exchange":"N","exchange_card_type_name":"","exchange_card_point":0,"card_point_type":2,"is_can_unbind":"","business_codes":["movie","market","cake"],"site_entry_settings":[{"id":94,"business_code":"market","entry_name":"商城","image_url":"\/uploads\/20240903\/a36f36087bfd8f8c389a279cd08c066b.png","redirect_data":"{\"dir\":\"apply\",\"host\":\"sandbox-website-02.jufubao.cn\",\"path\":\"\\\/main\\\/mall\\\/index\",\"appType\":\"h5\",\"site_id\":\"1efce09784b33c4a\",\"site_url\":\"https:\\\/\\\/sandbox-website-02.jufubao.cn\\\/apply\\\/main\\\/mall\\\/index\",\"frontPath\":\"\\\/apply\\\/main\\\/mall\\\/index\",\"fixed_business_code\":\"\"}","custom_redirect_data":"\"\"","redirect_type":"INN","group_id":"default"},{"id":92,"business_code":"cake","entry_name":"蛋糕","image_url":"\/uploads\/20240820\/85a60857ccd5176d4e40d8fe95ebd0dc.png","redirect_data":"{\"dir\":\"apply\",\"host\":\"sandbox-website-02.jufubao.cn\",\"path\":\"\\\/main\\\/cake\\\/index\",\"appType\":\"h5\",\"site_id\":\"1efce09784b33c4a\",\"site_url\":\"https:\\\/\\\/sandbox-website-02.jufubao.cn\\\/apply\\\/main\\\/cake\\\/index\",\"frontPath\":\"\\\/apply\\\/main\\\/cake\\\/index\",\"fixed_business_code\":\"\"}","custom_redirect_data":"\"\"","redirect_type":"INN","group_id":"default"},{"id":93,"business_code":"movie","entry_name":"电影","image_url":"\/uploads\/20240820\/e1600b21059da005f446ce32388ee712.png","redirect_data":"{\"dir\":\"apply\",\"host\":\"sandbox-website-02.jufubao.cn\",\"path\":\"\\\/main\\\/movie\\\/index\",\"appType\":\"h5\",\"site_id\":\"1efce09784b33c4a\",\"site_url\":\"https:\\\/\\\/sandbox-website-02.jufubao.cn\\\/apply\\\/main\\\/movie\\\/index\",\"frontPath\":\"\\\/apply\\\/main\\\/movie\\\/index\",\"fixed_business_code\":\"\"}","custom_redirect_data":"\"\"","redirect_type":"INN","group_id":"default"}],"transfer_record":{"transfer_auth_code":"aa6ljeQETINBUAJ-9l486","status":"N","status_name":"待领取","transfer_time":"2024-09-09 11:32:11","user_id":5000223,"user_nickname":"金L爽","user_phone_number":"188****4566","greeting":"送给你了"},"request_id":"1a93ea5b639d9f60"},
|
|
12
6
|
|
|
13
7
|
}
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
<view class="content" :style="contentBgStyle">
|
|
23
23
|
<view class="content-info">{{ greeting }}</view>
|
|
24
24
|
</view>
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
>
|
|
25
|
+
<view class="btn" @click="handleToReceive" :style="btnBgStyle">{{
|
|
26
|
+
status === "T" ? "链接已失效" : "立即领取"
|
|
27
|
+
}}</view>
|
|
28
28
|
</view>
|
|
29
29
|
</view>
|
|
30
30
|
</template>
|
|
@@ -51,7 +51,8 @@ export default {
|
|
|
51
51
|
greeting: "我的时代看哈稍等哈手机卡好卡哈哈哈哈哈哈",
|
|
52
52
|
receive_get_url: "",
|
|
53
53
|
btnColor: "",
|
|
54
|
-
transfer_auth_code: null
|
|
54
|
+
transfer_auth_code: null,
|
|
55
|
+
status: "N",
|
|
55
56
|
};
|
|
56
57
|
},
|
|
57
58
|
computed: {
|
|
@@ -62,6 +63,7 @@ export default {
|
|
|
62
63
|
backgroundSize: "100% 100%",
|
|
63
64
|
width: "326rpx",
|
|
64
65
|
height: "90rpx",
|
|
66
|
+
lineHeight: "80rpx",
|
|
65
67
|
color: this.btnColor,
|
|
66
68
|
border: "none",
|
|
67
69
|
});
|
|
@@ -88,18 +90,20 @@ export default {
|
|
|
88
90
|
},
|
|
89
91
|
methods: {
|
|
90
92
|
onJfbLoad(options) {
|
|
91
|
-
this.transfer_auth_code = options.transfer_auth_code
|
|
93
|
+
this.transfer_auth_code = options.transfer_auth_code;
|
|
92
94
|
jfbRootExec("getReceiveGreetingCard", {
|
|
93
95
|
vm: this,
|
|
94
96
|
data: {
|
|
95
97
|
transfer_auth_code: this.transfer_auth_code,
|
|
96
98
|
},
|
|
97
|
-
}).then(res=>{
|
|
98
|
-
this.greeting = res.transfer_record.greeting
|
|
99
|
-
}).catch(err=>{
|
|
100
|
-
console.log(err,'err');
|
|
101
|
-
|
|
102
99
|
})
|
|
100
|
+
.then((res) => {
|
|
101
|
+
this.greeting = res.transfer_record.greeting;
|
|
102
|
+
this.status = res.transfer_record.status;
|
|
103
|
+
})
|
|
104
|
+
.catch((err) => {
|
|
105
|
+
console.log(err, "err");
|
|
106
|
+
});
|
|
103
107
|
},
|
|
104
108
|
/**
|
|
105
109
|
* @description 监听事件变化
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
|
|
5
|
-
getCardByIdFilmSquate:{},
|
|
6
|
-
|
|
7
|
-
updateCardFilmPaiqiDate:{},
|
|
8
|
-
|
|
9
|
-
removeCardFilmAddress:{},
|
|
10
|
-
|
|
11
|
-
addCardFilmcart:{},
|
|
12
|
-
|
|
4
|
+
getReceiveGreetingCard:{"card_number":"101001000008098","card_point":99028,"card_type_name":"多余额福卡","end_time":"2025-07-31","card_status":"Y","card_status_name":"开启","unit":"点","main_business_code_name":"蛋糕(勿改)、网络视听(勿改)、体检(勿改)","other_card_point":79222,"is_exchange":"N","exchange_card_type_name":"","exchange_card_point":0,"card_point_type":2,"is_can_unbind":"","business_codes":["movie","market","cake"],"site_entry_settings":[],"transfer_record":{"transfer_auth_code":"aa6ljeQETINBUAJ-9l486","status":"N","status_name":"待领取","transfer_time":"2024-09-09 11:32:11","user_id":5000223,"user_nickname":"金L爽","user_phone_number":"188****4566","greeting":"送给你了"},"request_id":"2646fc69fab35413"},
|
|
13
5
|
}
|
|
@@ -566,7 +566,7 @@
|
|
|
566
566
|
></xd-font-icon>
|
|
567
567
|
</view>
|
|
568
568
|
<view class="jfb-base-order-detail__body-show" v-else>
|
|
569
|
-
|
|
569
|
+
<text>使用{{ info.pay_info.cards.length }}张票券 收起</text>
|
|
570
570
|
<xd-font-icon
|
|
571
571
|
style="margin-left: 8rpx"
|
|
572
572
|
@click="showPayCard = false"
|
|
@@ -582,7 +582,7 @@
|
|
|
582
582
|
:key="index"
|
|
583
583
|
>
|
|
584
584
|
<view>票券:{{ item.card_type_name }}</view>
|
|
585
|
-
<view>
|
|
585
|
+
<view class="list-item">
|
|
586
586
|
<view>编号:{{ item.card_number }}</view>
|
|
587
587
|
<xd-unit
|
|
588
588
|
:fontSize="28"
|
|
@@ -590,6 +590,7 @@
|
|
|
590
590
|
:price="item.card_use_point"
|
|
591
591
|
:unit="item['card_unit']"
|
|
592
592
|
></xd-unit>
|
|
593
|
+
<view v-if="item['card_discount_use_point'] > 0" class="discount">已优惠:{{item['card_discount_use_point']}}</view>
|
|
593
594
|
</view>
|
|
594
595
|
</view>
|
|
595
596
|
</view>
|
|
@@ -616,6 +617,27 @@
|
|
|
616
617
|
</view>
|
|
617
618
|
</view>
|
|
618
619
|
</view>
|
|
620
|
+
<!-- todo -->
|
|
621
|
+
<view v-if="info.extras.travel_booking_info.travelers&&info.extras.travel_booking_info.travelers.length>0" :style="{
|
|
622
|
+
background: backgroundColor,
|
|
623
|
+
border: borderBox,
|
|
624
|
+
borderRadius: radius + 'rpx',
|
|
625
|
+
boxShadow: shadowBox,
|
|
626
|
+
marginBottom: padding + 'rpx',
|
|
627
|
+
}" class="jfb-base-order-detail__body-card jfb-base-order-detail__body-booking">
|
|
628
|
+
<view class="jfb-base-order-detail__body-delivery-bottom-title">预订信息</view>
|
|
629
|
+
<view class="jfb-base-order-detail__body-line"></view>
|
|
630
|
+
<view class="jfb-base-order-detail__body-booking-list">
|
|
631
|
+
<view v-for="(item,index) in info.extras.travel_booking_info.travelers" :key="index" class="jfb-base-order-detail__body-booking-list-item">
|
|
632
|
+
<view :style="{color:mainColor,background:bgColor}" class="jfb-base-order-detail__body-booking-list-item-num">游客{{index+1}}</view>
|
|
633
|
+
<view class="jfb-base-order-detail__body-booking-list-item-info">
|
|
634
|
+
<view class="jfb-base-order-detail__body-booking-list-item-info-name">{{item.name}}</view>
|
|
635
|
+
<view v-if="item.id_card_no" class="jfb-base-order-detail__body-booking-list-item-info-item">身份证:{{item.id_card_no}}</view>
|
|
636
|
+
<view v-if="item.mobile" class="jfb-base-order-detail__body-booking-list-item-info-item">手机号:{{item.mobile}}</view>
|
|
637
|
+
</view>
|
|
638
|
+
</view>
|
|
639
|
+
</view>
|
|
640
|
+
</view>
|
|
619
641
|
<view
|
|
620
642
|
v-if="info.productDetail"
|
|
621
643
|
class="jfb-base-order-detail__body-card jfb-base-order-detail__body-shop"
|
|
@@ -896,6 +918,9 @@ export default {
|
|
|
896
918
|
.then((res) => {
|
|
897
919
|
this.biz_code = res.biz_code;
|
|
898
920
|
this.is_not_show_price = res.is_not_show_price;
|
|
921
|
+
if(res.extras.travel_booking_info) {
|
|
922
|
+
res.extras.travel_booking_info = JSON.parse(res.extras.travel_booking_info)
|
|
923
|
+
}
|
|
899
924
|
if (this.isPreview) {
|
|
900
925
|
switch (this.viewStatus) {
|
|
901
926
|
case "mall":
|
|
@@ -960,6 +985,12 @@ export default {
|
|
|
960
985
|
item.card_use_point,
|
|
961
986
|
100
|
|
962
987
|
);
|
|
988
|
+
if(item['card_discount_use_point'] !== undefined && item['card_discount_use_point'] > 0) {
|
|
989
|
+
item.card_discount_use_point = this.$xdUniHelper.divisionFloatNumber(
|
|
990
|
+
item.card_discount_use_point,
|
|
991
|
+
100
|
|
992
|
+
);
|
|
993
|
+
}
|
|
963
994
|
return item;
|
|
964
995
|
});
|
|
965
996
|
res.codes =
|
|
@@ -1659,6 +1690,37 @@ export default {
|
|
|
1659
1690
|
}
|
|
1660
1691
|
}
|
|
1661
1692
|
|
|
1693
|
+
&-booking {
|
|
1694
|
+
&-list {
|
|
1695
|
+
&-item {
|
|
1696
|
+
display: flex;
|
|
1697
|
+
align-items: baseline;
|
|
1698
|
+
margin-bottom: 40rpx;
|
|
1699
|
+
&-num {
|
|
1700
|
+
font-size: 24rpx;
|
|
1701
|
+
margin-right: 24rpx;
|
|
1702
|
+
width: 120rpx;
|
|
1703
|
+
height: 50rpx;
|
|
1704
|
+
text-align: center;
|
|
1705
|
+
line-height: 50rpx;
|
|
1706
|
+
border-radius: 16rpx;
|
|
1707
|
+
}
|
|
1708
|
+
&-info {
|
|
1709
|
+
flex: 1;
|
|
1710
|
+
&-name {
|
|
1711
|
+
font-size: 32rpx;
|
|
1712
|
+
margin-bottom: 20rpx;
|
|
1713
|
+
}
|
|
1714
|
+
&-item {
|
|
1715
|
+
font-size: 24rpx;
|
|
1716
|
+
color: #666;
|
|
1717
|
+
margin-bottom: 16rpx;
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1662
1724
|
&-line {
|
|
1663
1725
|
border-bottom: unit(2, rpx) solid #f2f2f2;
|
|
1664
1726
|
margin-bottom: unit(40, rpx);
|
|
@@ -1704,5 +1766,22 @@ export default {
|
|
|
1704
1766
|
border-radius: unit(12, rpx);
|
|
1705
1767
|
padding: unit(14, rpx) unit(28, rpx);
|
|
1706
1768
|
}
|
|
1769
|
+
|
|
1770
|
+
.list-item {
|
|
1771
|
+
position: relative;
|
|
1772
|
+
|
|
1773
|
+
& > .discount {
|
|
1774
|
+
position: absolute;
|
|
1775
|
+
left:0;
|
|
1776
|
+
right:0;
|
|
1777
|
+
bottom:-20rpx;
|
|
1778
|
+
height: 20rpx;
|
|
1779
|
+
font-size: 20rpx;
|
|
1780
|
+
line-height: 20rpx;
|
|
1781
|
+
color: #aaa;
|
|
1782
|
+
text-align: right;
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
}
|
|
1707
1786
|
}
|
|
1708
1787
|
</style>
|
|
@@ -17,6 +17,11 @@ module.exports = {
|
|
|
17
17
|
"loading": false,
|
|
18
18
|
"loading_timeout": -1
|
|
19
19
|
},
|
|
20
|
+
"extras": {
|
|
21
|
+
"first_logistics_package_id": "",
|
|
22
|
+
"logistics_count": 0,
|
|
23
|
+
"travel_booking_info": "{\"travelers\":[{\"name\":\"\\u6d4b\\u8bd5\",\"mobile\":\"18888888889\",\"id_card_no\":\"130102198304285898\",\"id_card_type\":\"1\"}]}"
|
|
24
|
+
},
|
|
20
25
|
"film_show": {
|
|
21
26
|
"name": "聚福宝-万里归途",
|
|
22
27
|
"thumb": "https:\/\/p0.pipi.cn\/mmdb\/25bfd6ddb53c7e5015d23c5bc24d876c03d41.jpg?imageMogr2\/thumbnail\/1246x1246%3E",
|
|
@@ -22,5 +22,16 @@ module.exports = [
|
|
|
22
22
|
},
|
|
23
23
|
isConsole: true,
|
|
24
24
|
disabled: true,
|
|
25
|
+
}, {
|
|
26
|
+
mapFnName: 'getDelayOrderList',
|
|
27
|
+
title: '获取卡延期订单列表',
|
|
28
|
+
path: '/card/v1/card-delay/list-order',
|
|
29
|
+
isRule: false,
|
|
30
|
+
params: {
|
|
31
|
+
page_size: ['page_size', 'Number', true],
|
|
32
|
+
page_token: ['page_token', 'Number', true]
|
|
33
|
+
},
|
|
34
|
+
isConsole: true,
|
|
35
|
+
disabled: true,
|
|
25
36
|
},
|
|
26
37
|
];
|
|
@@ -16,8 +16,15 @@
|
|
|
16
16
|
</view>
|
|
17
17
|
<!-- #endif -->
|
|
18
18
|
<view class="jfb-base-recharge-order__body">
|
|
19
|
-
<view
|
|
20
|
-
|
|
19
|
+
<view
|
|
20
|
+
v-if="loadingList"
|
|
21
|
+
:style="{ padding: outMargin }"
|
|
22
|
+
class="skeleton-wrap"
|
|
23
|
+
>
|
|
24
|
+
<view
|
|
25
|
+
v-for="i in 3"
|
|
26
|
+
:key="i"
|
|
27
|
+
class="jfb-base-recharge-order__body-order"
|
|
21
28
|
:style="{
|
|
22
29
|
background: backgroundColor,
|
|
23
30
|
border: borderBox,
|
|
@@ -42,7 +49,10 @@
|
|
|
42
49
|
</view>
|
|
43
50
|
</view>
|
|
44
51
|
<template v-else>
|
|
45
|
-
<view
|
|
52
|
+
<view
|
|
53
|
+
v-if="orderList && orderList.length > 0"
|
|
54
|
+
:style="{ padding: outMargin }"
|
|
55
|
+
>
|
|
46
56
|
<view
|
|
47
57
|
v-for="(item, index) in orderList"
|
|
48
58
|
:key="index"
|
|
@@ -57,7 +67,7 @@
|
|
|
57
67
|
}"
|
|
58
68
|
>
|
|
59
69
|
<view class="jfb-base-recharge-order__body-order-header">
|
|
60
|
-
{{
|
|
70
|
+
{{ type === "recharge" ? "充值订单" : "延期订单" }}
|
|
61
71
|
</view>
|
|
62
72
|
<view class="jfb-base-recharge-order__body-order-middle">
|
|
63
73
|
<view
|
|
@@ -72,13 +82,21 @@
|
|
|
72
82
|
<view>交易日期:{{ item.created_time }} </view>
|
|
73
83
|
</view>
|
|
74
84
|
<view
|
|
75
|
-
style="
|
|
85
|
+
style="
|
|
86
|
+
margin-top: 32rpx;
|
|
87
|
+
display: flex;
|
|
88
|
+
justify-content: space-between;
|
|
89
|
+
"
|
|
76
90
|
>
|
|
77
|
-
|
|
78
|
-
>合计:<xd-unit
|
|
91
|
+
<view style="display: flex; align-items: center; font-size: 24rpx"
|
|
92
|
+
>合计:<xd-unit
|
|
93
|
+
:fontSize="24"
|
|
94
|
+
iconSize="0.24"
|
|
95
|
+
:price="item.total_amount"
|
|
96
|
+
></xd-unit
|
|
79
97
|
></view>
|
|
80
98
|
<xd-button
|
|
81
|
-
|
|
99
|
+
v-if="item.pay_status !== '3000'"
|
|
82
100
|
width="200rpx"
|
|
83
101
|
style="margin: 0"
|
|
84
102
|
size="mini"
|
|
@@ -92,7 +110,6 @@
|
|
|
92
110
|
</view>
|
|
93
111
|
</view>
|
|
94
112
|
</template>
|
|
95
|
-
|
|
96
113
|
</view>
|
|
97
114
|
</view>
|
|
98
115
|
</template>
|
|
@@ -147,12 +164,13 @@ export default {
|
|
|
147
164
|
right: 0,
|
|
148
165
|
bottom: 0,
|
|
149
166
|
},
|
|
167
|
+
type: "recharge",
|
|
150
168
|
};
|
|
151
169
|
},
|
|
152
170
|
watch: {
|
|
153
|
-
container(value,oldValue) {
|
|
154
|
-
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
155
|
-
if (this.$configProject[
|
|
171
|
+
container(value, oldValue) {
|
|
172
|
+
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
173
|
+
if (this.$configProject["isPreview"]) this.init(value);
|
|
156
174
|
},
|
|
157
175
|
},
|
|
158
176
|
computed: {
|
|
@@ -161,7 +179,7 @@ export default {
|
|
|
161
179
|
str = `${str} ${this.checkValue(this.margin.right, 20)}rpx`;
|
|
162
180
|
str = `${str} ${this.checkValue(this.margin.bottom, 20)}rpx`;
|
|
163
181
|
str = `${str} ${this.checkValue(this.margin.left, 20)}rpx`;
|
|
164
|
-
return str
|
|
182
|
+
return str;
|
|
165
183
|
},
|
|
166
184
|
shadowBox() {
|
|
167
185
|
if (this.is_shadow === "Y")
|
|
@@ -179,6 +197,7 @@ export default {
|
|
|
179
197
|
},
|
|
180
198
|
methods: {
|
|
181
199
|
onJfbLoad(options) {
|
|
200
|
+
this.type = options.type || "recharge";
|
|
182
201
|
this.getList();
|
|
183
202
|
},
|
|
184
203
|
/**
|
|
@@ -241,7 +260,8 @@ export default {
|
|
|
241
260
|
}).value;
|
|
242
261
|
},
|
|
243
262
|
getList() {
|
|
244
|
-
|
|
263
|
+
let fnName = this.type === "recharge" ? "getRechargeOrderList" : "getDelayOrderList";
|
|
264
|
+
jfbRootExec(fnName, {
|
|
245
265
|
vm: this,
|
|
246
266
|
data: {
|
|
247
267
|
page_size: this.page_size,
|
|
@@ -264,7 +284,7 @@ export default {
|
|
|
264
284
|
}
|
|
265
285
|
return item;
|
|
266
286
|
});
|
|
267
|
-
this.hasNext = res.next_page_token !==
|
|
287
|
+
this.hasNext = res.next_page_token !== "";
|
|
268
288
|
this.next_page_token = res.next_page_token;
|
|
269
289
|
})
|
|
270
290
|
.catch((err) => {
|
|
@@ -273,12 +293,12 @@ export default {
|
|
|
273
293
|
},
|
|
274
294
|
handleToPay(item) {
|
|
275
295
|
this.$xdUniHelper.navigateTo({
|
|
276
|
-
url: `${this.payPath}?order_id=${item.pay_order_id}&main_order_id=${item.order_id}
|
|
296
|
+
url: `${this.payPath}?order_id=${item.pay_order_id}&main_order_id=${item.order_id}`,
|
|
277
297
|
});
|
|
278
298
|
},
|
|
279
299
|
handleToDetail(item) {
|
|
280
300
|
this.$xdUniHelper.navigateTo({
|
|
281
|
-
url: `${this.detailPath}?id=${item.order_id}`,
|
|
301
|
+
url: `${this.detailPath}?id=${item.order_id}&type=${this.type}`,
|
|
282
302
|
});
|
|
283
303
|
},
|
|
284
304
|
|
|
@@ -290,9 +310,8 @@ export default {
|
|
|
290
310
|
},
|
|
291
311
|
|
|
292
312
|
onJfbBack(options) {
|
|
293
|
-
this.$xdUniHelper.navigateBack()
|
|
313
|
+
this.$xdUniHelper.navigateBack();
|
|
294
314
|
},
|
|
295
|
-
|
|
296
315
|
},
|
|
297
316
|
};
|
|
298
317
|
</script>
|
|
@@ -306,7 +325,7 @@ export default {
|
|
|
306
325
|
&-order {
|
|
307
326
|
padding: unit(32, rpx);
|
|
308
327
|
&:last-child {
|
|
309
|
-
margin-bottom: 0!important;
|
|
328
|
+
margin-bottom: 0 !important;
|
|
310
329
|
}
|
|
311
330
|
|
|
312
331
|
&-header {
|
|
@@ -316,7 +335,7 @@ export default {
|
|
|
316
335
|
padding-bottom: unit(24, rpx);
|
|
317
336
|
|
|
318
337
|
& > view {
|
|
319
|
-
.skeleton-wrap &{
|
|
338
|
+
.skeleton-wrap & {
|
|
320
339
|
.skeleton-item(200rpx, 32rpx);
|
|
321
340
|
}
|
|
322
341
|
}
|
|
@@ -324,12 +343,12 @@ export default {
|
|
|
324
343
|
|
|
325
344
|
&-middle {
|
|
326
345
|
& > view:first-child {
|
|
327
|
-
.skeleton-wrap &{
|
|
346
|
+
.skeleton-wrap & {
|
|
328
347
|
.skeleton-item(400rpx, 32rpx);
|
|
329
348
|
}
|
|
330
349
|
}
|
|
331
350
|
& > view:last-child {
|
|
332
|
-
.skeleton-wrap &{
|
|
351
|
+
.skeleton-wrap & {
|
|
333
352
|
.skeleton-item(100rpx, 32rpx);
|
|
334
353
|
}
|
|
335
354
|
}
|
|
@@ -337,19 +356,19 @@ export default {
|
|
|
337
356
|
|
|
338
357
|
&-bottom {
|
|
339
358
|
border-bottom: unit(2, rpx) solid #f2f2f2;
|
|
340
|
-
padding-bottom: unit(32,rpx);
|
|
359
|
+
padding-bottom: unit(32, rpx);
|
|
341
360
|
|
|
342
361
|
& > view:first-child {
|
|
343
|
-
.skeleton-wrap &{
|
|
362
|
+
.skeleton-wrap & {
|
|
344
363
|
.skeleton-item(400rpx, 32rpx);
|
|
345
364
|
}
|
|
346
365
|
}
|
|
347
366
|
}
|
|
348
367
|
&-bbb {
|
|
349
|
-
padding: unit(32,rpx) 0 0;
|
|
368
|
+
padding: unit(32, rpx) 0 0;
|
|
350
369
|
|
|
351
370
|
& > view:first-child {
|
|
352
|
-
.skeleton-wrap &{
|
|
371
|
+
.skeleton-wrap & {
|
|
353
372
|
.skeleton-item(100%, 32rpx);
|
|
354
373
|
}
|
|
355
374
|
}
|
|
@@ -22,4 +22,15 @@ module.exports = [
|
|
|
22
22
|
isConsole: true,
|
|
23
23
|
disabled: true,
|
|
24
24
|
},
|
|
25
|
+
{
|
|
26
|
+
mapFnName: 'getDelayOrderDetail',
|
|
27
|
+
title: '获取卡延期订单详情',
|
|
28
|
+
path: '/card/v1/card-recharge/get-order',
|
|
29
|
+
isRule: false,
|
|
30
|
+
params: {
|
|
31
|
+
order_id: ['订单id', 'Number', true],
|
|
32
|
+
},
|
|
33
|
+
isConsole: true,
|
|
34
|
+
disabled: true,
|
|
35
|
+
},
|
|
25
36
|
];
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
<!-- #endif -->
|
|
18
18
|
<view v-if="info !== null" class="jfb-base-recharge-order-detail__body">
|
|
19
19
|
<view
|
|
20
|
-
v-if="
|
|
20
|
+
v-if="type === 'delay'"
|
|
21
21
|
class="jfb-base-recharge-order-detail__body-delay jfb-base-recharge-order-detail__body-card"
|
|
22
22
|
>
|
|
23
23
|
<image
|
|
24
24
|
src="https://img.js.design/assets/img/66bad59319ceba995cccf478.png#fbe012b12eff21137811ee558189f911"
|
|
25
25
|
></image>
|
|
26
26
|
<view class="jfb-base-recharge-order-detail__body-delay-info">
|
|
27
|
-
<view>{{info.package_name}}</view>
|
|
27
|
+
<view>{{ info.package_name }}</view>
|
|
28
28
|
<view>
|
|
29
29
|
<xd-unit
|
|
30
30
|
:price="info.total_amount"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
</view>
|
|
37
37
|
<view
|
|
38
38
|
class="jfb-base-recharge-order-detail__body-point jfb-base-recharge-order-detail__body-card"
|
|
39
|
-
v-if="
|
|
39
|
+
v-if="type === 'recharge'"
|
|
40
40
|
>
|
|
41
41
|
<view>充值点数</view>
|
|
42
42
|
<xd-unit
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
></xd-unit>
|
|
47
47
|
</view>
|
|
48
48
|
<view
|
|
49
|
-
v-if="
|
|
49
|
+
v-if="type === 'recharge'"
|
|
50
50
|
class="jfb-base-recharge-order-detail__body-order jfb-base-recharge-order-detail__body-card"
|
|
51
51
|
>
|
|
52
52
|
<view class="jfb-base-recharge-order-detail__body-order-header">
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
</view>
|
|
66
66
|
</view>
|
|
67
67
|
<view
|
|
68
|
-
v-if="
|
|
68
|
+
v-if="type === 'delay'"
|
|
69
69
|
class="jfb-base-recharge-order-detail__body-order jfb-base-recharge-order-detail__body-card"
|
|
70
70
|
>
|
|
71
71
|
<view class="jfb-base-recharge-order-detail__body-order-header">
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
</view>
|
|
88
88
|
</view>
|
|
89
89
|
<view
|
|
90
|
-
v-if="
|
|
90
|
+
v-if="type === 'recharge'"
|
|
91
91
|
class="jfb-base-recharge-order-detail__body-order jfb-base-recharge-order-detail__body-card"
|
|
92
92
|
>
|
|
93
93
|
<view
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
<view>充值状态:{{ info.pay_status_name }}</view>
|
|
107
107
|
</view>
|
|
108
108
|
</view>
|
|
109
|
-
|
|
110
|
-
v-if="
|
|
109
|
+
<view
|
|
110
|
+
v-if="type === 'delay'"
|
|
111
111
|
class="jfb-base-recharge-order-detail__body-order jfb-base-recharge-order-detail__body-card"
|
|
112
112
|
>
|
|
113
113
|
<view
|
|
@@ -146,6 +146,7 @@ export default {
|
|
|
146
146
|
return {
|
|
147
147
|
order_id: "",
|
|
148
148
|
info: null,
|
|
149
|
+
type: "recharge", //延期:delay,充值:recharge
|
|
149
150
|
};
|
|
150
151
|
},
|
|
151
152
|
watch: {
|
|
@@ -160,6 +161,7 @@ export default {
|
|
|
160
161
|
methods: {
|
|
161
162
|
onJfbLoad(options) {
|
|
162
163
|
this.order_id = options.id || options.order_id;
|
|
164
|
+
this.type = options.type || "recharge";
|
|
163
165
|
this.getDetial();
|
|
164
166
|
},
|
|
165
167
|
/**
|
|
@@ -171,7 +173,11 @@ export default {
|
|
|
171
173
|
//this.height = getContainerPropsValue(container, 'content.height', 10);
|
|
172
174
|
},
|
|
173
175
|
getDetial() {
|
|
174
|
-
|
|
176
|
+
let fnName =
|
|
177
|
+
this.type === "recharge"
|
|
178
|
+
? "getRechargeOrderDetail"
|
|
179
|
+
: "getDelayOrderDetail";
|
|
180
|
+
jfbRootExec(fnName, {
|
|
175
181
|
vm: this,
|
|
176
182
|
data: {
|
|
177
183
|
order_id: this.order_id,
|
|
@@ -22,4 +22,15 @@ module.exports = [
|
|
|
22
22
|
isConsole: true,
|
|
23
23
|
disabled: true,
|
|
24
24
|
},
|
|
25
|
+
{
|
|
26
|
+
mapFnName: 'getDelayOrderDetail',
|
|
27
|
+
title: '获取卡延期订单详情',
|
|
28
|
+
path: '/card/v1/card-delay/get-order',
|
|
29
|
+
isRule: false,
|
|
30
|
+
params: {
|
|
31
|
+
order_id: ['订单id', 'Number', true],
|
|
32
|
+
},
|
|
33
|
+
isConsole: true,
|
|
34
|
+
disabled: true,
|
|
35
|
+
},
|
|
25
36
|
];
|
|
@@ -66,6 +66,7 @@ export default {
|
|
|
66
66
|
maxTime: 5, //最长轮询2的N次方(秒)
|
|
67
67
|
date: 2, //时间底数
|
|
68
68
|
time: 1, //时间幂指数
|
|
69
|
+
type: 'recharge', //延期:delay,充值:recharge
|
|
69
70
|
};
|
|
70
71
|
},
|
|
71
72
|
watch: {
|
|
@@ -80,6 +81,7 @@ export default {
|
|
|
80
81
|
methods: {
|
|
81
82
|
onJfbLoad(options) {
|
|
82
83
|
this.order_id = options.id || options.order_id;
|
|
84
|
+
this.type = options.type || 'recharge';
|
|
83
85
|
this.getStatus();
|
|
84
86
|
},
|
|
85
87
|
/**
|
|
@@ -97,7 +99,8 @@ export default {
|
|
|
97
99
|
}).value;
|
|
98
100
|
},
|
|
99
101
|
getStatus() {
|
|
100
|
-
|
|
102
|
+
let fnName = this.type === 'recharge' ? 'getRechargeOrderDetail' : 'getDelayOrderDetail';
|
|
103
|
+
jfbRootExec(fnName, {
|
|
101
104
|
vm: this,
|
|
102
105
|
data: {
|
|
103
106
|
order_id: this.order_id,
|
|
@@ -112,13 +115,13 @@ export default {
|
|
|
112
115
|
},
|
|
113
116
|
handleToPay() {
|
|
114
117
|
this.$xdUniHelper.navigateTo({
|
|
115
|
-
url: `${this.payPath}?order_id=${this.info.pay_order_id}&main_order_id=${this.order_id}
|
|
118
|
+
url: `${this.payPath}?order_id=${this.info.pay_order_id}&main_order_id=${this.order_id}`,
|
|
116
119
|
});
|
|
117
120
|
},
|
|
118
121
|
handleToBtn(item) {
|
|
119
122
|
if (item.type === "detail") {
|
|
120
123
|
this.$xdUniHelper.navigateTo({
|
|
121
|
-
url: `${this.detailPath}?id=${this.order_id}`,
|
|
124
|
+
url: `${this.detailPath}?id=${this.order_id}&type=${this.type}`,
|
|
122
125
|
});
|
|
123
126
|
} else if (item.type === "pay") {
|
|
124
127
|
this.handleToPay()
|