jufubao-base 1.0.176 → 1.0.177-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/Api.js +19 -30
- package/src/components/JfbBaseCardDelay/Attr.js +227 -37
- package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +254 -79
- 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/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +2 -2
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +8 -8
- package/src/components/JfbBaseCardEntry/Attr.js +121 -0
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +202 -29
- package/src/components/JfbBaseCardGive/Api.js +18 -34
- package/src/components/JfbBaseCardGive/Attr.js +29 -36
- package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +463 -80
- 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 +382 -81
- package/src/components/JfbBaseCardReceiveCover/Api.js +5 -43
- package/src/components/JfbBaseCardReceiveCover/Attr.js +57 -32
- package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCover.vue +143 -82
- package/src/components/JfbBasePay/Attr.js +12 -0
- package/src/components/JfbBasePay/JfbBasePay.vue +4 -4
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +2 -2
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +135 -12
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +1 -1
|
@@ -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,171 @@
|
|
|
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
|
+
<xd-button class="btn" @click="handleToReceive" :style="btnBgStyle"
|
|
26
|
+
>立即领取</xd-button
|
|
27
|
+
>
|
|
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
|
+
};
|
|
56
|
+
},
|
|
57
|
+
computed: {
|
|
58
|
+
btnBgStyle() {
|
|
59
|
+
return this.styleObjectToString({
|
|
60
|
+
backgroundImage: "url(" + this.btnBg + ")",
|
|
61
|
+
backgroundRepeat: "no-repeat",
|
|
62
|
+
backgroundSize: "100% 100%",
|
|
63
|
+
width: "326rpx",
|
|
64
|
+
height: "90rpx",
|
|
65
|
+
color: this.btnColor,
|
|
66
|
+
border: "none",
|
|
67
|
+
});
|
|
33
68
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
69
|
+
contentBgStyle() {
|
|
70
|
+
return this.styleObjectToString({
|
|
71
|
+
backgroundImage: "url(" + this.contentBg + ")",
|
|
72
|
+
backgroundRepeat: "no-repeat",
|
|
73
|
+
backgroundSize: "100% 100%",
|
|
74
|
+
color: this.mainColor,
|
|
75
|
+
});
|
|
42
76
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
77
|
+
},
|
|
78
|
+
watch: {
|
|
79
|
+
container(value, oldValue) {
|
|
80
|
+
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
81
|
+
if (this.$configProject["isPreview"]) this.init(value);
|
|
48
82
|
},
|
|
49
|
-
|
|
50
|
-
|
|
83
|
+
},
|
|
84
|
+
created() {
|
|
85
|
+
this.init(this.container);
|
|
51
86
|
|
|
52
|
-
|
|
87
|
+
//todo
|
|
88
|
+
},
|
|
89
|
+
methods: {
|
|
90
|
+
onJfbLoad(options) {
|
|
91
|
+
this.transfer_auth_code = options.transfer_auth_code
|
|
92
|
+
jfbRootExec("getReceiveGreetingCard", {
|
|
93
|
+
vm: this,
|
|
94
|
+
data: {
|
|
95
|
+
transfer_auth_code: this.transfer_auth_code,
|
|
96
|
+
},
|
|
97
|
+
}).then(res=>{
|
|
98
|
+
this.greeting = res.transfer_record.greeting
|
|
99
|
+
}).catch(err=>{
|
|
100
|
+
console.log(err,'err');
|
|
101
|
+
|
|
102
|
+
})
|
|
53
103
|
},
|
|
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
|
-
onJfbBack(options) {
|
|
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
|
-
|
|
104
|
+
/**
|
|
105
|
+
* @description 监听事件变化
|
|
106
|
+
* @param container {object} 业务组件对象自己
|
|
107
|
+
*/
|
|
108
|
+
init(container) {
|
|
109
|
+
//this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
|
|
110
|
+
//this.height = getContainerPropsValue(container, 'content.height', 10);
|
|
111
|
+
},
|
|
112
|
+
init(container) {
|
|
113
|
+
this.btnBg = getContainerPropsValue(container, "content.btnBg", {
|
|
114
|
+
path: "",
|
|
115
|
+
}).path;
|
|
116
|
+
this.contentBg = getContainerPropsValue(container, "content.contentBg", {
|
|
117
|
+
path: "",
|
|
118
|
+
}).path;
|
|
119
|
+
this.receive_get_url = getContainerPropsValue(
|
|
120
|
+
container,
|
|
121
|
+
"content.receive_get_url",
|
|
122
|
+
{
|
|
123
|
+
value: "",
|
|
124
|
+
}
|
|
125
|
+
).value;
|
|
126
|
+
this.btnColor = getContainerPropsValue(
|
|
127
|
+
container,
|
|
128
|
+
"content.btnColor",
|
|
129
|
+
"#000"
|
|
130
|
+
);
|
|
131
|
+
},
|
|
132
|
+
handleToReceive() {
|
|
133
|
+
this.$xdUniHelper.navigateTo({
|
|
134
|
+
url: `${this.receive_get_url}?transfer_auth_code=${this.transfer_auth_code}`,
|
|
135
|
+
});
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
};
|
|
101
139
|
</script>
|
|
102
140
|
|
|
103
141
|
<style scoped lang="less">
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
.jfb-base-card-receive-cover {
|
|
107
|
-
&__body{
|
|
142
|
+
@import "./JfbBaseCardReceiveCoverLess.less";
|
|
108
143
|
|
|
144
|
+
.jfb-base-card-receive-cover {
|
|
145
|
+
&__body {
|
|
146
|
+
display: flex;
|
|
147
|
+
flex-direction: column;
|
|
148
|
+
align-items: center;
|
|
149
|
+
justify-content: flex-end;
|
|
150
|
+
.content {
|
|
151
|
+
position: relative;
|
|
152
|
+
min-height: 400rpx;
|
|
153
|
+
min-width: 600rpx;
|
|
154
|
+
display: flex;
|
|
155
|
+
justify-content: center;
|
|
156
|
+
font-size: 40rpx;
|
|
157
|
+
font-weight: 500;
|
|
158
|
+
&-info {
|
|
159
|
+
padding-top: 70rpx;
|
|
160
|
+
width: 300rpx;
|
|
161
|
+
text-align: center;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
.btn {
|
|
165
|
+
margin-top: 50rpx;
|
|
166
|
+
margin-bottom: 100rpx;
|
|
167
|
+
font-size: 36rpx;
|
|
168
|
+
text-align: center;
|
|
109
169
|
}
|
|
110
170
|
}
|
|
171
|
+
}
|
|
111
172
|
</style>
|
|
@@ -21,6 +21,18 @@ export default {
|
|
|
21
21
|
},
|
|
22
22
|
inline: false,
|
|
23
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',
|
|
31
|
+
setting: {
|
|
32
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
33
|
+
},
|
|
34
|
+
inline: false,
|
|
35
|
+
},
|
|
24
36
|
].filter(i=>i)
|
|
25
37
|
},
|
|
26
38
|
}
|
|
@@ -227,7 +227,7 @@ export default {
|
|
|
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;
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
}"
|
|
58
58
|
>
|
|
59
59
|
<view class="jfb-base-recharge-order__body-order-header">
|
|
60
|
-
充值订单
|
|
60
|
+
{{item.source==='recharge'?'充值订单':'延期订单'}}
|
|
61
61
|
</view>
|
|
62
62
|
<view class="jfb-base-recharge-order__body-order-middle">
|
|
63
63
|
<view
|
|
@@ -273,7 +273,7 @@ export default {
|
|
|
273
273
|
},
|
|
274
274
|
handleToPay(item) {
|
|
275
275
|
this.$xdUniHelper.navigateTo({
|
|
276
|
-
url: `${this.payPath}?order_id=${item.pay_order_id}&main_order_id=${item.order_id}&type
|
|
276
|
+
url: `${this.payPath}?order_id=${item.pay_order_id}&main_order_id=${item.order_id}&type=${item.source}`,
|
|
277
277
|
});
|
|
278
278
|
},
|
|
279
279
|
handleToDetail(item) {
|
|
@@ -10,25 +10,52 @@
|
|
|
10
10
|
:class="{ editx: isEditx && active }"
|
|
11
11
|
v-if="isEditx && active"
|
|
12
12
|
>
|
|
13
|
-
<view class="jfb-base-recharge-order-detail__edit-icon" @click="delEdit"
|
|
13
|
+
<view class="jfb-base-recharge-order-detail__edit-icon" @click="delEdit"
|
|
14
|
+
>删除</view
|
|
15
|
+
>
|
|
14
16
|
</view>
|
|
15
17
|
<!-- #endif -->
|
|
16
|
-
<view v-if="info!==null" class="jfb-base-recharge-order-detail__body">
|
|
18
|
+
<view v-if="info !== null" class="jfb-base-recharge-order-detail__body">
|
|
19
|
+
<view
|
|
20
|
+
v-if="info.source === 'delay'"
|
|
21
|
+
class="jfb-base-recharge-order-detail__body-delay jfb-base-recharge-order-detail__body-card"
|
|
22
|
+
>
|
|
23
|
+
<image
|
|
24
|
+
src="https://img.js.design/assets/img/66bad59319ceba995cccf478.png#fbe012b12eff21137811ee558189f911"
|
|
25
|
+
></image>
|
|
26
|
+
<view class="jfb-base-recharge-order-detail__body-delay-info">
|
|
27
|
+
<view>{{info.package_name}}</view>
|
|
28
|
+
<view>
|
|
29
|
+
<xd-unit
|
|
30
|
+
:price="info.total_amount"
|
|
31
|
+
:fontSize="32"
|
|
32
|
+
:iocnSize="0.32"
|
|
33
|
+
></xd-unit>
|
|
34
|
+
</view>
|
|
35
|
+
</view>
|
|
36
|
+
</view>
|
|
17
37
|
<view
|
|
18
38
|
class="jfb-base-recharge-order-detail__body-point jfb-base-recharge-order-detail__body-card"
|
|
39
|
+
v-if="info.source === 'recharge'"
|
|
19
40
|
>
|
|
20
41
|
<view>充值点数</view>
|
|
21
42
|
<xd-unit
|
|
22
43
|
:price="info.card_point"
|
|
23
44
|
:fontSize="80"
|
|
24
|
-
:iocnSize="0.
|
|
45
|
+
:iocnSize="0.5"
|
|
25
46
|
></xd-unit>
|
|
26
47
|
</view>
|
|
27
48
|
<view
|
|
49
|
+
v-if="info.source === 'recharge'"
|
|
28
50
|
class="jfb-base-recharge-order-detail__body-order jfb-base-recharge-order-detail__body-card"
|
|
29
51
|
>
|
|
30
52
|
<view class="jfb-base-recharge-order-detail__body-order-header">
|
|
31
|
-
<view>
|
|
53
|
+
<view> 订单编号:{{ info.order_id }} </view>
|
|
54
|
+
<view
|
|
55
|
+
class="jfb-base-recharge-order-detail__body-order-header-copy"
|
|
56
|
+
@click="copy(info.order_id)"
|
|
57
|
+
>复制单号</view
|
|
58
|
+
>
|
|
32
59
|
</view>
|
|
33
60
|
<view class="jfb-base-recharge-order-detail__body-order-item">
|
|
34
61
|
<view>充值券号:{{ info.card_number }} </view>
|
|
@@ -38,13 +65,39 @@
|
|
|
38
65
|
</view>
|
|
39
66
|
</view>
|
|
40
67
|
<view
|
|
68
|
+
v-if="info.source === 'delay'"
|
|
69
|
+
class="jfb-base-recharge-order-detail__body-order jfb-base-recharge-order-detail__body-card"
|
|
70
|
+
>
|
|
71
|
+
<view class="jfb-base-recharge-order-detail__body-order-header">
|
|
72
|
+
<view> 订单编号:{{ info.order_id }} </view>
|
|
73
|
+
<view
|
|
74
|
+
class="jfb-base-recharge-order-detail__body-order-header-copy"
|
|
75
|
+
@click="copy(info.order_id)"
|
|
76
|
+
>复制单号</view
|
|
77
|
+
>
|
|
78
|
+
</view>
|
|
79
|
+
<view class="jfb-base-recharge-order-detail__body-order-item">
|
|
80
|
+
<view>延期券号:{{ info.card_number }} </view>
|
|
81
|
+
</view>
|
|
82
|
+
<view class="jfb-base-recharge-order-detail__body-order-item">
|
|
83
|
+
<view>延期时间:{{ info.delay_days }}天</view>
|
|
84
|
+
</view>
|
|
85
|
+
<view class="jfb-base-recharge-order-detail__body-order-item">
|
|
86
|
+
<view>到期时间:{{ info.card_end_time }}</view>
|
|
87
|
+
</view>
|
|
88
|
+
</view>
|
|
89
|
+
<view
|
|
90
|
+
v-if="info.source === 'recharge'"
|
|
41
91
|
class="jfb-base-recharge-order-detail__body-order jfb-base-recharge-order-detail__body-card"
|
|
42
92
|
>
|
|
43
|
-
<view
|
|
93
|
+
<view
|
|
94
|
+
style="padding-top: 0"
|
|
95
|
+
class="jfb-base-recharge-order-detail__body-order-item"
|
|
96
|
+
>
|
|
44
97
|
<view>支付方式:微信</view>
|
|
45
98
|
</view>
|
|
46
99
|
<view class="jfb-base-recharge-order-detail__body-order-item">
|
|
47
|
-
<view>充值金额:{{ info.pay_amount/100 }} </view>
|
|
100
|
+
<view>充值金额:{{ info.pay_amount / 100 }} </view>
|
|
48
101
|
</view>
|
|
49
102
|
<view class="jfb-base-recharge-order-detail__body-order-item">
|
|
50
103
|
<view>充值点数:{{ info.card_point }} </view>
|
|
@@ -53,6 +106,23 @@
|
|
|
53
106
|
<view>充值状态:{{ info.pay_status_name }}</view>
|
|
54
107
|
</view>
|
|
55
108
|
</view>
|
|
109
|
+
<view
|
|
110
|
+
v-if="info.source === 'delay'"
|
|
111
|
+
class="jfb-base-recharge-order-detail__body-order jfb-base-recharge-order-detail__body-card"
|
|
112
|
+
>
|
|
113
|
+
<view
|
|
114
|
+
style="padding-top: 0"
|
|
115
|
+
class="jfb-base-recharge-order-detail__body-order-item"
|
|
116
|
+
>
|
|
117
|
+
<view>延期方式:微信</view>
|
|
118
|
+
</view>
|
|
119
|
+
<view class="jfb-base-recharge-order-detail__body-order-item">
|
|
120
|
+
<view>下单时间:{{ info.created_time }} </view>
|
|
121
|
+
</view>
|
|
122
|
+
<view class="jfb-base-recharge-order-detail__body-order-item">
|
|
123
|
+
<view>订单状态:{{ info.pay_status_name }}</view>
|
|
124
|
+
</view>
|
|
125
|
+
</view>
|
|
56
126
|
</view>
|
|
57
127
|
</view>
|
|
58
128
|
</template>
|
|
@@ -79,9 +149,9 @@ export default {
|
|
|
79
149
|
};
|
|
80
150
|
},
|
|
81
151
|
watch: {
|
|
82
|
-
container(value,oldValue) {
|
|
83
|
-
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
84
|
-
if (this.$configProject[
|
|
152
|
+
container(value, oldValue) {
|
|
153
|
+
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
154
|
+
if (this.$configProject["isPreview"]) this.init(value);
|
|
85
155
|
},
|
|
86
156
|
},
|
|
87
157
|
created() {
|
|
@@ -108,18 +178,45 @@ export default {
|
|
|
108
178
|
},
|
|
109
179
|
})
|
|
110
180
|
.then((res) => {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
181
|
+
res.total_amount = this.$xdUniHelper.divisionFloatNumber(
|
|
182
|
+
res.total_amount,
|
|
183
|
+
100
|
|
184
|
+
);
|
|
185
|
+
res.card_point = this.$xdUniHelper.divisionFloatNumber(
|
|
186
|
+
res.card_point,
|
|
187
|
+
100
|
|
188
|
+
);
|
|
114
189
|
res["created_time"] = this.$xdUniHelper.getDate(
|
|
115
190
|
res["created_time"] * 1000
|
|
116
191
|
).fullTime;
|
|
192
|
+
res["card_end_time"] = this.$xdUniHelper.getDate(
|
|
193
|
+
res["card_end_time"] * 1000
|
|
194
|
+
).fullTime;
|
|
117
195
|
this.info = res;
|
|
118
196
|
})
|
|
119
197
|
.catch((err) => {
|
|
120
198
|
console.log(err, "err");
|
|
121
199
|
});
|
|
122
200
|
},
|
|
201
|
+
/**
|
|
202
|
+
*@description 复制功能
|
|
203
|
+
* @param text
|
|
204
|
+
*/
|
|
205
|
+
copy(text) {
|
|
206
|
+
// #ifdef H5
|
|
207
|
+
this.$copyText(text).then((res) => {
|
|
208
|
+
this.$xdAlert({ content: "复制成功" });
|
|
209
|
+
});
|
|
210
|
+
// #endif
|
|
211
|
+
// #ifndef H5
|
|
212
|
+
uni.setClipboardData({
|
|
213
|
+
data: text,
|
|
214
|
+
success: () => {
|
|
215
|
+
//this.$xdAlert({ content: "复制成功" });
|
|
216
|
+
},
|
|
217
|
+
});
|
|
218
|
+
// #endif
|
|
219
|
+
},
|
|
123
220
|
onJfbScroll(options) {
|
|
124
221
|
console.log("event.onJfbScroll", options);
|
|
125
222
|
},
|
|
@@ -167,6 +264,23 @@ export default {
|
|
|
167
264
|
font-size: unit(36, rpx);
|
|
168
265
|
}
|
|
169
266
|
|
|
267
|
+
&-delay {
|
|
268
|
+
display: flex;
|
|
269
|
+
align-items: center;
|
|
270
|
+
font-size: unit(32, rpx);
|
|
271
|
+
image {
|
|
272
|
+
width: 140rpx;
|
|
273
|
+
height: 140rpx;
|
|
274
|
+
margin-right: 56rpx;
|
|
275
|
+
}
|
|
276
|
+
&-info {
|
|
277
|
+
height: 140rpx;
|
|
278
|
+
display: flex;
|
|
279
|
+
flex-direction: column;
|
|
280
|
+
justify-content: space-between;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
170
284
|
&-order {
|
|
171
285
|
&-header {
|
|
172
286
|
display: flex;
|
|
@@ -177,6 +291,15 @@ export default {
|
|
|
177
291
|
font-weight: bold;
|
|
178
292
|
padding-bottom: unit(32, rpx);
|
|
179
293
|
border-bottom: unit(2, rpx) solid #f2f2f2;
|
|
294
|
+
&-copy {
|
|
295
|
+
border-radius: unit(16, rpx);
|
|
296
|
+
border: unit(2, rpx) solid #999999;
|
|
297
|
+
color: #999999;
|
|
298
|
+
font-size: unit(20, rpx) !important;
|
|
299
|
+
padding: unit(8, rpx) unit(20, rpx);
|
|
300
|
+
flex-shrink: 0;
|
|
301
|
+
margin-left: unit(15, rpx);
|
|
302
|
+
}
|
|
180
303
|
}
|
|
181
304
|
|
|
182
305
|
&-item {
|
|
@@ -112,7 +112,7 @@ export default {
|
|
|
112
112
|
},
|
|
113
113
|
handleToPay() {
|
|
114
114
|
this.$xdUniHelper.navigateTo({
|
|
115
|
-
url: `${this.payPath}?order_id=${this.info.pay_order_id}&main_order_id=${this.order_id}&type
|
|
115
|
+
url: `${this.payPath}?order_id=${this.info.pay_order_id}&main_order_id=${this.order_id}&type=${this.info.source}`,
|
|
116
116
|
});
|
|
117
117
|
},
|
|
118
118
|
handleToBtn(item) {
|