jufubao-base 1.0.177-beta3 → 1.0.179
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 +30 -19
- package/src/components/JfbBaseCardDelay/Attr.js +37 -227
- package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +79 -254
- package/src/components/JfbBaseCardDetailEntry/Attr.js +0 -12
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +0 -14
- 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 +0 -121
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +29 -202
- package/src/components/JfbBaseCardGive/Api.js +34 -18
- package/src/components/JfbBaseCardGive/Attr.js +36 -29
- package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +80 -463
- package/src/components/JfbBaseCardGive/Mock.js +9 -2
- package/src/components/JfbBaseCardReceive/Api.js +36 -10
- package/src/components/JfbBaseCardReceive/Attr.js +39 -9
- package/src/components/JfbBaseCardReceive/JfbBaseCardReceive.vue +81 -382
- package/src/components/JfbBaseCardReceiveCover/Api.js +43 -5
- package/src/components/JfbBaseCardReceiveCover/Attr.js +32 -57
- package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCover.vue +82 -143
- package/src/components/JfbBasePay/Attr.js +0 -12
- package/src/components/JfbBasePay/JfbBasePay.vue +4 -4
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +2 -2
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +12 -135
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +1 -1
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +1 -1
|
@@ -8,74 +8,49 @@ export default {
|
|
|
8
8
|
content: (data) => {
|
|
9
9
|
return [
|
|
10
10
|
{
|
|
11
|
-
label: '
|
|
12
|
-
ele: 'xd-
|
|
13
|
-
valueKey: '
|
|
14
|
-
value: data.
|
|
15
|
-
|
|
16
|
-
|
|
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, //当上传图片列表时候,最大数量数量
|
|
29
|
-
rules: [
|
|
30
|
-
{ required: true, message: '请上传图片', trigger: ['blur', 'change'] },
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
{
|
|
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, //当上传图片列表时候,最大数量数量
|
|
11
|
+
label: '背景颜色:',
|
|
12
|
+
ele: 'xd-color',
|
|
13
|
+
valueKey: 'bgcolor',
|
|
14
|
+
value: data.bgcolor || '',
|
|
15
|
+
placeholder: '请输入占位框背景颜色',
|
|
16
|
+
classNmae: 'input80',
|
|
52
17
|
rules: [
|
|
53
|
-
{
|
|
18
|
+
{
|
|
19
|
+
required: true,
|
|
20
|
+
message: '请输入占位框背景颜色',
|
|
21
|
+
trigger: 'blur'
|
|
22
|
+
},
|
|
54
23
|
]
|
|
55
24
|
},
|
|
56
25
|
{
|
|
57
|
-
label: '
|
|
26
|
+
label: '选中路径:',
|
|
58
27
|
ele: 'xd-select-pages-path',
|
|
59
|
-
valueKey: '
|
|
60
|
-
|
|
61
|
-
placeholder: '请选择领取跳转地址',
|
|
62
|
-
value: data['receive_get_url']||null,
|
|
28
|
+
valueKey: 'select-pages-path',
|
|
29
|
+
value: data['select-pages-path'] || null,
|
|
63
30
|
setting: {
|
|
64
|
-
router: XdBus.getParentApi('getPagesTree')
|
|
31
|
+
router: XdBus.getParentApi('getPagesTree')
|
|
65
32
|
},
|
|
66
|
-
|
|
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',
|
|
67
42
|
rules: [
|
|
68
|
-
{
|
|
43
|
+
{
|
|
44
|
+
required: true,
|
|
45
|
+
message: '请输入占位框高度',
|
|
46
|
+
trigger: 'blur'
|
|
47
|
+
},
|
|
69
48
|
]
|
|
70
49
|
},
|
|
71
50
|
{
|
|
72
|
-
label: '
|
|
73
|
-
ele: '
|
|
74
|
-
|
|
75
|
-
value: data['btnColor'] || '',
|
|
76
|
-
groupKey: "content",
|
|
77
|
-
placeholder: '请输入按钮文字颜色',
|
|
78
|
-
classNmae: 'input80',
|
|
51
|
+
label: '', //label
|
|
52
|
+
ele: 'slot', //package 名称
|
|
53
|
+
slot: 'is_reference',
|
|
79
54
|
},
|
|
80
55
|
].filter(i=>i)
|
|
81
56
|
},
|
|
@@ -2,171 +2,110 @@
|
|
|
2
2
|
<view
|
|
3
3
|
class="jfb-base-card-receive-cover"
|
|
4
4
|
@click="handleEditxSelect"
|
|
5
|
-
:class="{ editx: isEditx && active }"
|
|
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: isEditx && active }"
|
|
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"
|
|
14
|
-
>删除</view
|
|
15
|
-
>
|
|
13
|
+
<view class="jfb-base-card-receive-cover__edit-icon" @click="delEdit">删除</view>
|
|
16
14
|
</view>
|
|
17
15
|
<!-- #endif -->
|
|
18
|
-
<view
|
|
19
|
-
|
|
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
|
-
>
|
|
16
|
+
<view class="jfb-base-card-receive-cover__body">
|
|
17
|
+
<view>测试插件( {{containerId}} )</view>
|
|
28
18
|
</view>
|
|
29
19
|
</view>
|
|
30
20
|
</template>
|
|
31
21
|
|
|
32
22
|
<script>
|
|
33
|
-
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
});
|
|
68
|
-
},
|
|
69
|
-
contentBgStyle() {
|
|
70
|
-
return this.styleObjectToString({
|
|
71
|
-
backgroundImage: "url(" + this.contentBg + ")",
|
|
72
|
-
backgroundRepeat: "no-repeat",
|
|
73
|
-
backgroundSize: "100% 100%",
|
|
74
|
-
color: this.mainColor,
|
|
75
|
-
});
|
|
23
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
24
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
25
|
+
import JfbBaseCardReceiveCoverMixin from "./JfbBaseCardReceiveCoverMixin";
|
|
26
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
27
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
28
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
29
|
+
export default {
|
|
30
|
+
name: "JfbBaseCardReceiveCover",
|
|
31
|
+
components: {
|
|
32
|
+
XdFontIcon
|
|
76
33
|
},
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
created() {
|
|
85
|
-
this.init(this.container);
|
|
34
|
+
mixins: [
|
|
35
|
+
componentsMixins, extsMixins, JfbBaseCardReceiveCoverMixin
|
|
36
|
+
],
|
|
37
|
+
data() {
|
|
38
|
+
return {
|
|
86
39
|
|
|
87
|
-
|
|
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
|
-
})
|
|
103
|
-
},
|
|
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);
|
|
40
|
+
//todo
|
|
41
|
+
}
|
|
111
42
|
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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
|
-
);
|
|
43
|
+
watch: {
|
|
44
|
+
container(value, oldValue) {
|
|
45
|
+
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
46
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
47
|
+
},
|
|
131
48
|
},
|
|
132
|
-
|
|
133
|
-
this
|
|
134
|
-
|
|
135
|
-
|
|
49
|
+
created() {
|
|
50
|
+
this.init(this.container);
|
|
51
|
+
|
|
52
|
+
//todo
|
|
136
53
|
},
|
|
137
|
-
|
|
138
|
-
|
|
54
|
+
methods: {
|
|
55
|
+
onJfbLoad(options) {
|
|
56
|
+
|
|
57
|
+
// jfbRootExec('baiduUserLogin', {
|
|
58
|
+
|
|
59
|
+
// vm: this,// data: {
|
|
60
|
+
|
|
61
|
+
// account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
|
|
62
|
+
|
|
63
|
+
// }
|
|
64
|
+
|
|
65
|
+
// }).then().catch()
|
|
66
|
+
},
|
|
67
|
+
/**
|
|
68
|
+
* @description 监听事件变化
|
|
69
|
+
* @param container {object} 业务组件对象自己
|
|
70
|
+
*/
|
|
71
|
+
init(container) {
|
|
72
|
+
|
|
73
|
+
//this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
|
|
74
|
+
|
|
75
|
+
//this.height = getContainerPropsValue(container, 'content.height', 10);
|
|
76
|
+
},
|
|
77
|
+
onJfbScroll(options) {
|
|
78
|
+
console.log('event.onJfbScroll', options)
|
|
79
|
+
},
|
|
80
|
+
onJfbReachBottom(options) {
|
|
81
|
+
console.log('event.onJfbReachBottom', options)
|
|
82
|
+
},
|
|
83
|
+
onJfbShow(options) {
|
|
84
|
+
console.log('event.onJfbShow', options)
|
|
85
|
+
},
|
|
86
|
+
onJfbHide(options) {
|
|
87
|
+
console.log('event.onJfbHide', options)
|
|
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
|
+
|
|
139
101
|
</script>
|
|
140
102
|
|
|
141
103
|
<style scoped lang="less">
|
|
142
|
-
@import "./JfbBaseCardReceiveCoverLess.less";
|
|
104
|
+
@import "./JfbBaseCardReceiveCoverLess.less";
|
|
105
|
+
|
|
106
|
+
.jfb-base-card-receive-cover {
|
|
107
|
+
&__body{
|
|
143
108
|
|
|
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;
|
|
169
109
|
}
|
|
170
110
|
}
|
|
171
|
-
}
|
|
172
111
|
</style>
|
|
@@ -21,18 +21,6 @@ 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
|
-
},
|
|
36
24
|
].filter(i=>i)
|
|
37
25
|
},
|
|
38
26
|
}
|
|
@@ -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') {
|
|
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(
|
|
255
|
+
//充值不进行检查订单状态
|
|
256
|
+
if(this.type !== 'recharge') {
|
|
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(
|
|
364
|
+
if(this.type !== 'recharge') {
|
|
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
|
+
充值订单
|
|
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=recharge`,
|
|
277
277
|
});
|
|
278
278
|
},
|
|
279
279
|
handleToDetail(item) {
|
|
@@ -10,52 +10,25 @@
|
|
|
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"
|
|
14
|
-
>删除</view
|
|
15
|
-
>
|
|
13
|
+
<view class="jfb-base-recharge-order-detail__edit-icon" @click="delEdit">删除</view>
|
|
16
14
|
</view>
|
|
17
15
|
<!-- #endif -->
|
|
18
|
-
<view v-if="info
|
|
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>
|
|
16
|
+
<view v-if="info!==null" class="jfb-base-recharge-order-detail__body">
|
|
37
17
|
<view
|
|
38
18
|
class="jfb-base-recharge-order-detail__body-point jfb-base-recharge-order-detail__body-card"
|
|
39
|
-
v-if="info.source === 'recharge'"
|
|
40
19
|
>
|
|
41
20
|
<view>充值点数</view>
|
|
42
21
|
<xd-unit
|
|
43
22
|
:price="info.card_point"
|
|
44
23
|
:fontSize="80"
|
|
45
|
-
:iocnSize="0.
|
|
24
|
+
:iocnSize="0.50"
|
|
46
25
|
></xd-unit>
|
|
47
26
|
</view>
|
|
48
27
|
<view
|
|
49
|
-
v-if="info.source === 'recharge'"
|
|
50
28
|
class="jfb-base-recharge-order-detail__body-order jfb-base-recharge-order-detail__body-card"
|
|
51
29
|
>
|
|
52
30
|
<view class="jfb-base-recharge-order-detail__body-order-header">
|
|
53
|
-
<view>
|
|
54
|
-
<view
|
|
55
|
-
class="jfb-base-recharge-order-detail__body-order-header-copy"
|
|
56
|
-
@click="copy(info.order_id)"
|
|
57
|
-
>复制单号</view
|
|
58
|
-
>
|
|
31
|
+
<view> 充值订单编号:{{ info.order_id }} </view>
|
|
59
32
|
</view>
|
|
60
33
|
<view class="jfb-base-recharge-order-detail__body-order-item">
|
|
61
34
|
<view>充值券号:{{ info.card_number }} </view>
|
|
@@ -65,39 +38,13 @@
|
|
|
65
38
|
</view>
|
|
66
39
|
</view>
|
|
67
40
|
<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'"
|
|
91
41
|
class="jfb-base-recharge-order-detail__body-order jfb-base-recharge-order-detail__body-card"
|
|
92
42
|
>
|
|
93
|
-
<view
|
|
94
|
-
style="padding-top: 0"
|
|
95
|
-
class="jfb-base-recharge-order-detail__body-order-item"
|
|
96
|
-
>
|
|
43
|
+
<view style="padding-top: 0;" class="jfb-base-recharge-order-detail__body-order-item">
|
|
97
44
|
<view>支付方式:微信</view>
|
|
98
45
|
</view>
|
|
99
46
|
<view class="jfb-base-recharge-order-detail__body-order-item">
|
|
100
|
-
<view>充值金额:{{ info.pay_amount
|
|
47
|
+
<view>充值金额:{{ info.pay_amount/100 }} </view>
|
|
101
48
|
</view>
|
|
102
49
|
<view class="jfb-base-recharge-order-detail__body-order-item">
|
|
103
50
|
<view>充值点数:{{ info.card_point }} </view>
|
|
@@ -106,23 +53,6 @@
|
|
|
106
53
|
<view>充值状态:{{ info.pay_status_name }}</view>
|
|
107
54
|
</view>
|
|
108
55
|
</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>
|
|
126
56
|
</view>
|
|
127
57
|
</view>
|
|
128
58
|
</template>
|
|
@@ -149,9 +79,9 @@ export default {
|
|
|
149
79
|
};
|
|
150
80
|
},
|
|
151
81
|
watch: {
|
|
152
|
-
container(value,
|
|
153
|
-
if
|
|
154
|
-
if (this.$configProject[
|
|
82
|
+
container(value,oldValue) {
|
|
83
|
+
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
84
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
155
85
|
},
|
|
156
86
|
},
|
|
157
87
|
created() {
|
|
@@ -178,45 +108,18 @@ export default {
|
|
|
178
108
|
},
|
|
179
109
|
})
|
|
180
110
|
.then((res) => {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
);
|
|
185
|
-
res.card_point = this.$xdUniHelper.divisionFloatNumber(
|
|
186
|
-
res.card_point,
|
|
187
|
-
100
|
|
188
|
-
);
|
|
111
|
+
|
|
112
|
+
res.total_amount = this.$xdUniHelper.divisionFloatNumber(res.total_amount,100);
|
|
113
|
+
res.card_point = this.$xdUniHelper.divisionFloatNumber(res.card_point,100);
|
|
189
114
|
res["created_time"] = this.$xdUniHelper.getDate(
|
|
190
115
|
res["created_time"] * 1000
|
|
191
116
|
).fullTime;
|
|
192
|
-
res["card_end_time"] = this.$xdUniHelper.getDate(
|
|
193
|
-
res["card_end_time"] * 1000
|
|
194
|
-
).fullTime;
|
|
195
117
|
this.info = res;
|
|
196
118
|
})
|
|
197
119
|
.catch((err) => {
|
|
198
120
|
console.log(err, "err");
|
|
199
121
|
});
|
|
200
122
|
},
|
|
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
|
-
},
|
|
220
123
|
onJfbScroll(options) {
|
|
221
124
|
console.log("event.onJfbScroll", options);
|
|
222
125
|
},
|
|
@@ -264,23 +167,6 @@ export default {
|
|
|
264
167
|
font-size: unit(36, rpx);
|
|
265
168
|
}
|
|
266
169
|
|
|
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
|
-
|
|
284
170
|
&-order {
|
|
285
171
|
&-header {
|
|
286
172
|
display: flex;
|
|
@@ -291,15 +177,6 @@ export default {
|
|
|
291
177
|
font-weight: bold;
|
|
292
178
|
padding-bottom: unit(32, rpx);
|
|
293
179
|
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
|
-
}
|
|
303
180
|
}
|
|
304
181
|
|
|
305
182
|
&-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=recharge`,
|
|
116
116
|
});
|
|
117
117
|
},
|
|
118
118
|
handleToBtn(item) {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
<template v-if="menuType === 'card'">
|
|
52
52
|
<view v-if="loadingList">
|
|
53
53
|
<view class="bind_list skeleton-wrap">
|
|
54
|
-
<view class="bind_item" v-for="i in 5" :key="i" :style="cardItemBoxStyle">
|
|
54
|
+
<view class="bind_item" v-for="i in 5" :key="i" :style="cardItemBoxStyle" style="background: #FFFFFF !important;">
|
|
55
55
|
<view>
|
|
56
56
|
<view class="bind_point"></view>
|
|
57
57
|
<view class="bind_deduct"></view>
|