jufubao-base 1.0.180 → 1.0.181-beta2
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/Api.js +19 -30
- package/src/components/JfbBaseCardDelay/Attr.js +237 -35
- package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +279 -78
- package/src/components/JfbBaseCardDetailEntry/Attr.js +12 -0
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +14 -0
- package/src/components/JfbBaseCardDetailEntry/Mock.js +1 -1
- package/src/components/JfbBaseCardEntry/Attr.js +121 -0
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +205 -29
- package/src/components/JfbBaseCardGive/Api.js +18 -34
- package/src/components/JfbBaseCardGive/Attr.js +29 -36
- package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +482 -78
- package/src/components/JfbBaseCardGive/Mock.js +2 -9
- package/src/components/JfbBaseCardReceive/Api.js +10 -36
- package/src/components/JfbBaseCardReceive/Attr.js +9 -39
- package/src/components/JfbBaseCardReceive/JfbBaseCardReceive.vue +403 -80
- package/src/components/JfbBaseCardReceive/Mock.js +1 -7
- package/src/components/JfbBaseCardReceiveCover/Api.js +5 -43
- package/src/components/JfbBaseCardReceiveCover/Attr.js +57 -32
- package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCover.vue +150 -82
- 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/JfbBasePay/Attr.js +12 -0
- package/src/components/JfbBasePay/JfbBasePay.vue +14 -8
- 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 +142 -13
- 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/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +2 -2
|
@@ -8,49 +8,74 @@ export default {
|
|
|
8
8
|
content: (data) => {
|
|
9
9
|
return [
|
|
10
10
|
{
|
|
11
|
-
label: '
|
|
12
|
-
ele: 'xd-
|
|
13
|
-
valueKey: '
|
|
14
|
-
value: data.
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
label: '按钮背景图:', //label
|
|
12
|
+
ele: 'xd-upload', //package 名称
|
|
13
|
+
valueKey: 'btnBg', //form[valueKey]
|
|
14
|
+
value: data.btnBg || null, //v-model
|
|
15
|
+
defaultValue: data.btnBg || null, //默认图片对象
|
|
16
|
+
groupKey: "style",
|
|
17
|
+
slot: true, //按钮是否使用slot
|
|
18
|
+
oneWidth: 163, //单个图片显示宽度
|
|
19
|
+
oneHeight: 45, //单个图片显示高度
|
|
20
|
+
elinputClassName: 'input40',
|
|
21
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
22
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
23
|
+
styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
|
|
24
|
+
uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
|
|
25
|
+
size: 5, //5M
|
|
26
|
+
action: 'aliyun',
|
|
27
|
+
sort: true, //当上传图片列表时候,是否启用排序
|
|
28
|
+
maxlen: 100, //当上传图片列表时候,最大数量数量
|
|
17
29
|
rules: [
|
|
18
|
-
{
|
|
19
|
-
required: true,
|
|
20
|
-
message: '请输入占位框背景颜色',
|
|
21
|
-
trigger: 'blur'
|
|
22
|
-
},
|
|
30
|
+
{ required: true, message: '请上传图片', trigger: ['blur', 'change'] },
|
|
23
31
|
]
|
|
24
32
|
},
|
|
25
33
|
{
|
|
26
|
-
label: '
|
|
34
|
+
label: '内容背景图:', //label
|
|
35
|
+
ele: 'xd-upload', //package 名称
|
|
36
|
+
valueKey: 'contentBg', //form[valueKey]
|
|
37
|
+
value: data.contentBg || null, //v-model
|
|
38
|
+
defaultValue: data.contentBg || null, //默认图片对象
|
|
39
|
+
groupKey: "style",
|
|
40
|
+
slot: true, //按钮是否使用slot
|
|
41
|
+
oneWidth: 300, //单个图片显示宽度
|
|
42
|
+
oneHeight: 200, //单个图片显示高度
|
|
43
|
+
elinputClassName: 'input40',
|
|
44
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
45
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
46
|
+
styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
|
|
47
|
+
uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
|
|
48
|
+
size: 5, //5M
|
|
49
|
+
action: 'aliyun',
|
|
50
|
+
sort: true, //当上传图片列表时候,是否启用排序
|
|
51
|
+
maxlen: 100, //当上传图片列表时候,最大数量数量
|
|
52
|
+
rules: [
|
|
53
|
+
{ required: true, message: '请上传图片', trigger: ['blur', 'change'] },
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
label: '领取跳转地址:',
|
|
27
58
|
ele: 'xd-select-pages-path',
|
|
28
|
-
valueKey: '
|
|
29
|
-
|
|
59
|
+
valueKey: 'receive_get_url',
|
|
60
|
+
groupKey:'advanced',
|
|
61
|
+
placeholder: '请选择领取跳转地址',
|
|
62
|
+
value: data['receive_get_url']||null,
|
|
30
63
|
setting: {
|
|
31
|
-
router: XdBus.getParentApi('getPagesTree')
|
|
64
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
32
65
|
},
|
|
33
|
-
|
|
34
|
-
data.bgcolor && {
|
|
35
|
-
label: '高度:',
|
|
36
|
-
ele: 'el-input',
|
|
37
|
-
type: 'number',
|
|
38
|
-
valueKey: 'height',
|
|
39
|
-
value: data.height || 100,
|
|
40
|
-
placeholder: '请输入占位框高度,单位像素,默认:10px',
|
|
41
|
-
className: 'input80',
|
|
66
|
+
inline: false,
|
|
42
67
|
rules: [
|
|
43
|
-
{
|
|
44
|
-
required: true,
|
|
45
|
-
message: '请输入占位框高度',
|
|
46
|
-
trigger: 'blur'
|
|
47
|
-
},
|
|
68
|
+
{ required: true, message: '请选择领取地址', trigger: ['blur', 'change'] },
|
|
48
69
|
]
|
|
49
70
|
},
|
|
50
71
|
{
|
|
51
|
-
label: '',
|
|
52
|
-
ele: '
|
|
53
|
-
|
|
72
|
+
label: '按钮文字颜色:',
|
|
73
|
+
ele: 'xd-color',
|
|
74
|
+
valueKey: 'btnColor',
|
|
75
|
+
value: data['btnColor'] || '',
|
|
76
|
+
groupKey: "content",
|
|
77
|
+
placeholder: '请输入按钮文字颜色',
|
|
78
|
+
classNmae: 'input80',
|
|
54
79
|
},
|
|
55
80
|
].filter(i=>i)
|
|
56
81
|
},
|
|
@@ -2,110 +2,178 @@
|
|
|
2
2
|
<view
|
|
3
3
|
class="jfb-base-card-receive-cover"
|
|
4
4
|
@click="handleEditxSelect"
|
|
5
|
-
:class="{ editx
|
|
5
|
+
:class="{ editx: isEditx && active }"
|
|
6
6
|
>
|
|
7
7
|
<!--#ifdef H5-->
|
|
8
8
|
<view
|
|
9
9
|
class="jfb-base-card-receive-cover__edit"
|
|
10
|
-
:class="{ editx
|
|
10
|
+
:class="{ editx: isEditx && active }"
|
|
11
11
|
v-if="isEditx && active"
|
|
12
12
|
>
|
|
13
|
-
<view class="jfb-base-card-receive-cover__edit-icon" @click="delEdit"
|
|
13
|
+
<view class="jfb-base-card-receive-cover__edit-icon" @click="delEdit"
|
|
14
|
+
>删除</view
|
|
15
|
+
>
|
|
14
16
|
</view>
|
|
15
17
|
<!-- #endif -->
|
|
16
|
-
<view
|
|
17
|
-
|
|
18
|
+
<view
|
|
19
|
+
:style="{ height: layoutInfo.bodyMinHeightRpx + 'rpx' }"
|
|
20
|
+
class="jfb-base-card-receive-cover__body"
|
|
21
|
+
>
|
|
22
|
+
<view class="content" :style="contentBgStyle">
|
|
23
|
+
<view class="content-info">{{ greeting }}</view>
|
|
24
|
+
</view>
|
|
25
|
+
<view class="btn" @click="handleToReceive" :style="btnBgStyle">{{
|
|
26
|
+
status === "T" ? "链接已失效" : "立即领取"
|
|
27
|
+
}}</view>
|
|
18
28
|
</view>
|
|
19
29
|
</view>
|
|
20
30
|
</template>
|
|
21
31
|
|
|
22
32
|
<script>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
34
|
+
import XdButton from "@/components/XdButton/XdButton";
|
|
35
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
36
|
+
import JfbBaseCardReceiveCoverMixin from "./JfbBaseCardReceiveCoverMixin";
|
|
37
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
38
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
39
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
40
|
+
export default {
|
|
41
|
+
name: "JfbBaseCardReceiveCover",
|
|
42
|
+
components: {
|
|
43
|
+
XdFontIcon,
|
|
44
|
+
XdButton,
|
|
45
|
+
},
|
|
46
|
+
mixins: [componentsMixins, extsMixins, JfbBaseCardReceiveCoverMixin],
|
|
47
|
+
data() {
|
|
48
|
+
return {
|
|
49
|
+
btnBg: "",
|
|
50
|
+
contentBg: "",
|
|
51
|
+
greeting: "",
|
|
52
|
+
receive_get_url: "",
|
|
53
|
+
btnColor: "",
|
|
54
|
+
transfer_auth_code: null,
|
|
55
|
+
status: "N",
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
computed: {
|
|
59
|
+
btnBgStyle() {
|
|
60
|
+
return this.styleObjectToString({
|
|
61
|
+
backgroundImage: "url(" + this.btnBg + ")",
|
|
62
|
+
backgroundRepeat: "no-repeat",
|
|
63
|
+
backgroundSize: 'cover',
|
|
64
|
+
width: "326rpx",
|
|
65
|
+
height: "90rpx",
|
|
66
|
+
display: "flex",
|
|
67
|
+
justifyContent: "center",
|
|
68
|
+
alignItems: "center",
|
|
69
|
+
color: this.btnColor,
|
|
70
|
+
border: "none",
|
|
71
|
+
});
|
|
33
72
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
73
|
+
contentBgStyle() {
|
|
74
|
+
return this.styleObjectToString({
|
|
75
|
+
backgroundImage: "url(" + this.contentBg + ")",
|
|
76
|
+
backgroundRepeat: "no-repeat",
|
|
77
|
+
backgroundSize: "100% 100%",
|
|
78
|
+
color: this.mainColor,
|
|
79
|
+
});
|
|
42
80
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
81
|
+
},
|
|
82
|
+
watch: {
|
|
83
|
+
container(value, oldValue) {
|
|
84
|
+
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
85
|
+
if (this.$configProject["isPreview"]) this.init(value);
|
|
48
86
|
},
|
|
49
|
-
|
|
50
|
-
|
|
87
|
+
},
|
|
88
|
+
created() {
|
|
89
|
+
this.init(this.container);
|
|
51
90
|
|
|
52
|
-
|
|
91
|
+
//todo
|
|
92
|
+
},
|
|
93
|
+
methods: {
|
|
94
|
+
onJfbLoad(options) {
|
|
95
|
+
this.transfer_auth_code = options.transfer_auth_code;
|
|
96
|
+
jfbRootExec("getReceiveGreetingCard", {
|
|
97
|
+
vm: this,
|
|
98
|
+
data: {
|
|
99
|
+
transfer_auth_code: this.transfer_auth_code,
|
|
100
|
+
},
|
|
101
|
+
})
|
|
102
|
+
.then((res) => {
|
|
103
|
+
this.greeting = res.transfer_record.greeting;
|
|
104
|
+
this.status = res.transfer_record.status;
|
|
105
|
+
})
|
|
106
|
+
.catch((err) => {
|
|
107
|
+
console.log(err, "err");
|
|
108
|
+
});
|
|
53
109
|
},
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
console.log('event.onJfbBack', options)
|
|
91
|
-
},
|
|
92
|
-
onJfbUpdate(...data) {
|
|
93
|
-
console.log('event.onJfbUpdate', data)
|
|
94
|
-
},
|
|
95
|
-
onJfbCustomEvent(options) {
|
|
96
|
-
console.log('event.onJfbReachBottom', options)
|
|
97
|
-
},
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
110
|
+
/**
|
|
111
|
+
* @description 监听事件变化
|
|
112
|
+
* @param container {object} 业务组件对象自己
|
|
113
|
+
*/
|
|
114
|
+
init(container) {
|
|
115
|
+
//this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
|
|
116
|
+
//this.height = getContainerPropsValue(container, 'content.height', 10);
|
|
117
|
+
},
|
|
118
|
+
init(container) {
|
|
119
|
+
this.btnBg = getContainerPropsValue(container, "content.btnBg", {
|
|
120
|
+
path: "",
|
|
121
|
+
}).path;
|
|
122
|
+
this.contentBg = getContainerPropsValue(container, "content.contentBg", {
|
|
123
|
+
path: "",
|
|
124
|
+
}).path;
|
|
125
|
+
this.receive_get_url = getContainerPropsValue(
|
|
126
|
+
container,
|
|
127
|
+
"content.receive_get_url",
|
|
128
|
+
{
|
|
129
|
+
value: "",
|
|
130
|
+
}
|
|
131
|
+
).value;
|
|
132
|
+
this.btnColor = getContainerPropsValue(
|
|
133
|
+
container,
|
|
134
|
+
"content.btnColor",
|
|
135
|
+
"#000"
|
|
136
|
+
);
|
|
137
|
+
},
|
|
138
|
+
handleToReceive() {
|
|
139
|
+
if(this.status === "T") return;
|
|
140
|
+
this.$xdUniHelper.navigateTo({
|
|
141
|
+
url: `${this.receive_get_url}?transfer_auth_code=${this.transfer_auth_code}`,
|
|
142
|
+
});
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
};
|
|
101
146
|
</script>
|
|
102
147
|
|
|
103
148
|
<style scoped lang="less">
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
.jfb-base-card-receive-cover {
|
|
107
|
-
&__body{
|
|
149
|
+
@import "./JfbBaseCardReceiveCoverLess.less";
|
|
108
150
|
|
|
151
|
+
.jfb-base-card-receive-cover {
|
|
152
|
+
&__body {
|
|
153
|
+
display: flex;
|
|
154
|
+
flex-direction: column;
|
|
155
|
+
align-items: center;
|
|
156
|
+
justify-content: flex-end;
|
|
157
|
+
.content {
|
|
158
|
+
position: relative;
|
|
159
|
+
min-height: 400rpx;
|
|
160
|
+
min-width: 600rpx;
|
|
161
|
+
display: flex;
|
|
162
|
+
justify-content: center;
|
|
163
|
+
font-size: 40rpx;
|
|
164
|
+
font-weight: 500;
|
|
165
|
+
&-info {
|
|
166
|
+
padding-top: 70rpx;
|
|
167
|
+
width: 300rpx;
|
|
168
|
+
text-align: center;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
.btn {
|
|
172
|
+
margin-top: 50rpx;
|
|
173
|
+
margin-bottom: 100rpx;
|
|
174
|
+
font-size: 36rpx;
|
|
175
|
+
text-align: center;
|
|
109
176
|
}
|
|
110
177
|
}
|
|
178
|
+
}
|
|
111
179
|
</style>
|
|
@@ -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",
|
|
@@ -16,6 +16,18 @@ export default {
|
|
|
16
16
|
placeholder: '请选择支付成功路径',
|
|
17
17
|
value: data.pay_success_path || null,
|
|
18
18
|
groupKey:'advanced',
|
|
19
|
+
setting: {
|
|
20
|
+
router: XdBus.getParentApi('getPag©esTree'),
|
|
21
|
+
},
|
|
22
|
+
inline: false,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
label: '票券支付成功跳转路径:', //label
|
|
26
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
27
|
+
valueKey: 'rechargeSuccessPath', //form[valueKey]
|
|
28
|
+
placeholder: '请选择票券支付成功跳转路径',
|
|
29
|
+
value: data.rechargeSuccessPath || null,
|
|
30
|
+
groupKey:'advanced',
|
|
19
31
|
setting: {
|
|
20
32
|
router: XdBus.getParentApi('getPagesTree'),
|
|
21
33
|
},
|
|
@@ -222,12 +222,12 @@ 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(){
|
|
229
229
|
let url = this.paySuccessPath;
|
|
230
|
-
if(this.type === 'recharge') {
|
|
230
|
+
if(this.type === 'recharge'||this.type==='delay') {
|
|
231
231
|
url = this.rechargeSuccessPath || url;
|
|
232
232
|
}
|
|
233
233
|
return url
|
|
@@ -252,8 +252,8 @@ export default {
|
|
|
252
252
|
this.p_getPayOrderDetail();
|
|
253
253
|
this.p_getListUserPayChannel();
|
|
254
254
|
|
|
255
|
-
|
|
256
|
-
if(this.type !== 'recharge') {
|
|
255
|
+
//充值延期不进行检查订单状态
|
|
256
|
+
if((this.type !== 'recharge'&&this.type!=='delay')) {
|
|
257
257
|
this.p_getBaseOrderDetail();
|
|
258
258
|
}
|
|
259
259
|
},
|
|
@@ -361,7 +361,7 @@ export default {
|
|
|
361
361
|
async doThirdPay() {
|
|
362
362
|
if (this.$configProject.isPreview) return;
|
|
363
363
|
|
|
364
|
-
if(this.type !== 'recharge') {
|
|
364
|
+
if((this.type !== 'recharge'&&this.type!=='delay')) {
|
|
365
365
|
await this.p_getBaseOrderDetail();
|
|
366
366
|
}
|
|
367
367
|
const {channel_provider_id, order_id, payInfo} = this;
|
|
@@ -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});
|
|
@@ -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
|
];
|