jufubao-base 1.0.119-beta20 → 1.0.119-beta21
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/JfbBaseConDialog/JfbBaseConDialog.vue +0 -3
- package/src/components/JfbBaseMySetting/Api.js +2 -2
- package/src/components/JfbBaseMySetting/Attr.js +5 -4
- package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +3 -25
- package/src/components/JfbBaseMySetting/Mock.js +2 -1
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +237 -217
package/package.json
CHANGED
|
@@ -297,9 +297,6 @@ export default {
|
|
|
297
297
|
} catch (error) {
|
|
298
298
|
console.log(error, "errorerror");
|
|
299
299
|
}
|
|
300
|
-
console.log(!storage.get(this.containerId) &&
|
|
301
|
-
this.distribution_method !== "paid" &&
|
|
302
|
-
this.distribution_method !== "card_binded",'pppppp');
|
|
303
300
|
if(this.distribution_method === 'card_binded'){
|
|
304
301
|
jfbRootFnExec(this, 'onCustomEvent')("baseConDialog@hasCon", this.containerId);
|
|
305
302
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
module.exports = [
|
|
14
14
|
{
|
|
15
|
-
mapFnName: '
|
|
15
|
+
mapFnName: 'getBaseUserInfo',
|
|
16
16
|
title: '获取用户信息',
|
|
17
17
|
path: '/passport/v1/user/get',
|
|
18
18
|
params: {},
|
|
@@ -21,7 +21,7 @@ module.exports = [
|
|
|
21
21
|
disabled: true,
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
mapFnName: '
|
|
24
|
+
mapFnName: 'getBaseCardUserSetting',
|
|
25
25
|
title: '获取用户卡券配置',
|
|
26
26
|
path: '/card/v1/card-bind/get-card-user-setting',
|
|
27
27
|
params: {},
|
|
@@ -8,10 +8,11 @@ export default {
|
|
|
8
8
|
content: (data) => {
|
|
9
9
|
return [
|
|
10
10
|
{
|
|
11
|
-
label: '绑定手机号地址:',
|
|
12
|
-
ele: 'xd-select-pages-path',
|
|
13
|
-
valueKey: 'bind_phone_url',
|
|
14
|
-
value: data['bind_phone_url'] ||
|
|
11
|
+
label: '绑定手机号地址:',
|
|
12
|
+
ele: 'xd-select-pages-path',
|
|
13
|
+
valueKey: 'bind_phone_url',
|
|
14
|
+
value: data['bind_phone_url'] || null,
|
|
15
|
+
//groupKey:'advanced',
|
|
15
16
|
setting: {
|
|
16
17
|
router: XdBus.getParentApi('getPagesTree')
|
|
17
18
|
},
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
style="margin-bottom: 8rpx;"
|
|
23
23
|
@click="handleToShowSwitch"
|
|
24
24
|
>
|
|
25
|
+
|
|
25
26
|
<view v-if="!showSwitch">去配置</view>
|
|
26
27
|
<view v-else class="switch_wrap">
|
|
27
28
|
<view :style="{
|
|
@@ -91,8 +92,6 @@
|
|
|
91
92
|
},
|
|
92
93
|
created() {
|
|
93
94
|
this.init(this.container);
|
|
94
|
-
|
|
95
|
-
//todo
|
|
96
95
|
},
|
|
97
96
|
methods: {
|
|
98
97
|
onJfbLoad(options) {
|
|
@@ -131,7 +130,7 @@
|
|
|
131
130
|
})
|
|
132
131
|
},
|
|
133
132
|
p_getUserInfo(){
|
|
134
|
-
jfbRootExec("
|
|
133
|
+
jfbRootExec("getBaseUserInfo", {
|
|
135
134
|
vm: this,
|
|
136
135
|
data: {
|
|
137
136
|
|
|
@@ -146,7 +145,7 @@
|
|
|
146
145
|
})
|
|
147
146
|
},
|
|
148
147
|
getCardConfig(){
|
|
149
|
-
jfbRootExec("
|
|
148
|
+
jfbRootExec("getBaseCardUserSetting", {
|
|
150
149
|
vm: this,
|
|
151
150
|
data: {}
|
|
152
151
|
}).then(res => {
|
|
@@ -173,27 +172,6 @@
|
|
|
173
172
|
})
|
|
174
173
|
}
|
|
175
174
|
},
|
|
176
|
-
onJfbScroll(options) {
|
|
177
|
-
console.log('event.onJfbScroll', options)
|
|
178
|
-
},
|
|
179
|
-
onJfbReachBottom(options) {
|
|
180
|
-
console.log('event.onJfbReachBottom', options)
|
|
181
|
-
},
|
|
182
|
-
onJfbShow(options) {
|
|
183
|
-
console.log('event.onJfbShow', options)
|
|
184
|
-
},
|
|
185
|
-
onJfbHide(options) {
|
|
186
|
-
console.log('event.onJfbHide', options)
|
|
187
|
-
},
|
|
188
|
-
onJfbBack(options) {
|
|
189
|
-
console.log('event.onJfbBack', options)
|
|
190
|
-
},
|
|
191
|
-
onJfbUpdate(...data) {
|
|
192
|
-
console.log('event.onJfbUpdate', data)
|
|
193
|
-
},
|
|
194
|
-
onJfbCustomEvent(options) {
|
|
195
|
-
console.log('event.onJfbReachBottom', options)
|
|
196
|
-
},
|
|
197
175
|
}
|
|
198
176
|
}
|
|
199
177
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
|
|
4
|
+
getBaseUserInfo: {"user_name":"","user_code":"pK60goP5om","nickname":"braveboy","real_name":"","head_url":"https:\/\/thirdwx.qlogo.cn\/mmopen\/vi_32\/DYAIOgq83epC3zrUbrbh1n7JAiaws8JKK0zk6Q91FNH10ticgWoVENlwnZPfdyxTicEqBnjnwd7RzJmQwicfQG0D1A\/132","province_code":"","city_code":"","province_name":"","city_name":"","sex":"","sex_name":"未知","birthday_date":"","phone_number":"151****8397","show_user_name":"braveboy","request_id":"863a1276dc972043"},
|
|
5
|
+
getBaseCardUserSetting:{"user_id":0,"is_entity_card_invalid":"","request_id":"8ddfd81488f33522"}
|
|
5
6
|
}
|
|
@@ -18,108 +18,68 @@
|
|
|
18
18
|
<!-- #endif -->
|
|
19
19
|
<view
|
|
20
20
|
class="jfb-base-success__body"
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
>
|
|
23
|
-
<view
|
|
24
|
-
|
|
23
|
+
<view class="x-line"></view>
|
|
24
|
+
<view
|
|
25
|
+
v-if="noUserLoding === true"
|
|
26
|
+
class="jfb-base-success__body-nouser"
|
|
27
|
+
:style="{ margin: jfbListMarginComputed }"
|
|
28
|
+
>
|
|
29
|
+
请关闭当前浏览器,返回原界面查看结果
|
|
25
30
|
</view>
|
|
26
31
|
<template v-if="noUserLoding === false && info !== null">
|
|
27
|
-
<view
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
<view>
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
32
|
+
<view :style="{ margin: jfbListMarginComputed }">
|
|
33
|
+
<view
|
|
34
|
+
class="jfb-base-success__body-icon"
|
|
35
|
+
:style="{
|
|
36
|
+
marginBottom: jfbListSpacing + 'rpx',
|
|
37
|
+
boxShadow: jfbListShadowComputed,
|
|
38
|
+
border: jfbListBorderComputed,
|
|
39
|
+
backgroundColor: jfbListBgColor,
|
|
40
|
+
borderRadius: jfbListRadius + 'rpx',
|
|
41
|
+
}"
|
|
42
|
+
>
|
|
43
|
+
<view class="jfb-base-success__body-icon-item">
|
|
44
|
+
<view>
|
|
45
|
+
<xd-font-icon
|
|
46
|
+
size="80"
|
|
47
|
+
:icon="info.status.icon"
|
|
48
|
+
:color="info.status.iconColor"
|
|
49
|
+
></xd-font-icon>
|
|
50
|
+
</view>
|
|
51
|
+
<view>{{ info.status.status_name }}</view>
|
|
52
|
+
<view class="jfb-base-success__body-icon-item-tip">{{
|
|
53
|
+
info.status.comment
|
|
54
|
+
}}</view>
|
|
44
55
|
</view>
|
|
45
|
-
<view
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
:type="item['type']"
|
|
56
|
-
@click="handleOnBtnClick(item)"
|
|
57
|
-
>{{ item["label"] }}
|
|
58
|
-
</xd-button>
|
|
56
|
+
<view class="jfb-base-success__body-icon-btn">
|
|
57
|
+
<view v-for="(item, index) in info['btn']" :key="index">
|
|
58
|
+
<xd-button
|
|
59
|
+
v-if="item['label']"
|
|
60
|
+
size="small"
|
|
61
|
+
:type="item['type']"
|
|
62
|
+
@click="handleOnBtnClick(item)"
|
|
63
|
+
>{{ item["label"] }}
|
|
64
|
+
</xd-button>
|
|
65
|
+
</view>
|
|
59
66
|
</view>
|
|
60
67
|
</view>
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
<!--settle-->
|
|
69
|
+
<view class="settle" v-if="info.settleInfo !== null" :style="{marginBottom: jfbListSpacing + 'rpx',}">
|
|
70
|
+
<view class="settle-item" v-for="(settle,index) in info.settleInfo" :key="index">
|
|
71
|
+
<view>{{settle.label}}:</view>
|
|
72
|
+
<view v-if="settle.type === 'price'">
|
|
73
|
+
<xd-unit :price="settle.value" unit="" :is-old="false"></xd-unit>
|
|
74
|
+
</view>
|
|
75
|
+
<view v-else v-html="settle.value"></view>
|
|
68
76
|
</view>
|
|
69
|
-
<view v-else v-html="settle.value"></view>
|
|
70
77
|
</view>
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
<view class="jfb-base-success__body-other">
|
|
74
|
-
<view
|
|
75
|
-
v-if="info.codes && info.codes.length > 0 && is_show_code === 'Y'"
|
|
76
|
-
>
|
|
78
|
+
<!--settle end-->
|
|
79
|
+
<view class="jfb-base-success__body-other">
|
|
77
80
|
<view
|
|
78
|
-
|
|
79
|
-
marginBottom: jfbListSpacing + 'rpx',
|
|
80
|
-
boxShadow: jfbListShadowComputed,
|
|
81
|
-
border: jfbListBorderComputed,
|
|
82
|
-
backgroundColor: jfbListBgColor,
|
|
83
|
-
borderRadius: jfbListRadius + 'rpx',
|
|
84
|
-
}"
|
|
85
|
-
v-if="
|
|
86
|
-
info.codes.length === 1 &&
|
|
87
|
-
(info.codes[0].show_type === 'qrcode' ||
|
|
88
|
-
info.codes[0].show_type === 'barcode')
|
|
89
|
-
"
|
|
90
|
-
class="jfb-base-success__body-card jfb-base-success__body-cashier"
|
|
81
|
+
v-if="info.codes && info.codes.length > 0 && is_show_code === 'Y'"
|
|
91
82
|
>
|
|
92
|
-
<view class="jfb-base-success__body-cashier-text"
|
|
93
|
-
>{{info.codes[0].show_type === "qrcode" ? "二维码" : "条形码" }}</view>
|
|
94
|
-
<view style="position: relative">
|
|
95
|
-
<image
|
|
96
|
-
:style="{
|
|
97
|
-
height: info.codes[0].show_type === 'qrcode' ? '50vw' : '25vw',
|
|
98
|
-
width: info.codes[0].show_type === 'qrcode' ? '50vw' : '85vw',
|
|
99
|
-
}"
|
|
100
|
-
:src="info.codes[0].code_url"
|
|
101
|
-
></image>
|
|
102
|
-
<image v-if="info.codes[0].logo&&info.codes[0].show_type === 'qrcode'" class="logo-icon" :src="info.codes[0].logo"></image>
|
|
103
|
-
</view>
|
|
104
|
-
<view class="jfb-base-success__body-cashier-text">
|
|
105
|
-
{{ info.codes[0].can_read_code }}
|
|
106
|
-
</view>
|
|
107
|
-
<view v-if="info.codes[0].refund_tip_text" style="color:red;font-size:24rpx;text-align:center;margin-top:10rpx">
|
|
108
|
-
{{info.codes[0].refund_tip_text}}
|
|
109
|
-
</view>
|
|
110
|
-
<view
|
|
111
|
-
v-if="info.codes[0].code_end_time"
|
|
112
|
-
class="jfb-base-success__body-cashier-code"
|
|
113
|
-
:style="{
|
|
114
|
-
borderColor: mainColor,
|
|
115
|
-
color: mainColor,
|
|
116
|
-
background: bgColor,
|
|
117
|
-
}"
|
|
118
|
-
>
|
|
119
|
-
{{ info.codes[0].code_end_time }}
|
|
120
|
-
</view>
|
|
121
|
-
</view>
|
|
122
|
-
<view v-else>
|
|
123
83
|
<view
|
|
124
84
|
:style="{
|
|
125
85
|
marginBottom: jfbListSpacing + 'rpx',
|
|
@@ -128,42 +88,60 @@
|
|
|
128
88
|
backgroundColor: jfbListBgColor,
|
|
129
89
|
borderRadius: jfbListRadius + 'rpx',
|
|
130
90
|
}"
|
|
131
|
-
v-
|
|
132
|
-
|
|
91
|
+
v-if="
|
|
92
|
+
info.codes.length === 1 &&
|
|
93
|
+
(info.codes[0].show_type === 'qrcode' ||
|
|
94
|
+
info.codes[0].show_type === 'barcode')
|
|
95
|
+
"
|
|
96
|
+
class="jfb-base-success__body-card jfb-base-success__body-cashier"
|
|
133
97
|
>
|
|
134
|
-
<view class="
|
|
135
|
-
|
|
98
|
+
<view class="jfb-base-success__body-cashier-text"
|
|
99
|
+
>{{info.codes[0].show_type === "qrcode" ? "二维码" : "条形码" }}</view>
|
|
100
|
+
<view style="position: relative">
|
|
101
|
+
<image
|
|
102
|
+
:style="{
|
|
103
|
+
height: info.codes[0].show_type === 'qrcode' ? '50vw' : '25vw',
|
|
104
|
+
width: info.codes[0].show_type === 'qrcode' ? '50vw' : '85vw',
|
|
105
|
+
}"
|
|
106
|
+
:src="info.codes[0].code_url"
|
|
107
|
+
></image>
|
|
108
|
+
<image v-if="info.codes[0].logo&&info.codes[0].show_type === 'qrcode'" class="logo-icon" :src="info.codes[0].logo"></image>
|
|
109
|
+
</view>
|
|
110
|
+
<view class="jfb-base-success__body-cashier-text">
|
|
111
|
+
{{ info.codes[0].can_read_code }}
|
|
112
|
+
</view>
|
|
113
|
+
<view v-if="info.codes[0].refund_tip_text" style="color:red;font-size:24rpx;text-align:center;margin-top:10rpx">
|
|
114
|
+
{{info.codes[0].refund_tip_text}}
|
|
115
|
+
</view>
|
|
136
116
|
<view
|
|
137
|
-
|
|
138
|
-
|
|
117
|
+
v-if="info.codes[0].code_end_time"
|
|
118
|
+
class="jfb-base-success__body-cashier-code"
|
|
119
|
+
:style="{
|
|
120
|
+
borderColor: mainColor,
|
|
121
|
+
color: mainColor,
|
|
122
|
+
background: bgColor,
|
|
123
|
+
}"
|
|
139
124
|
>
|
|
140
|
-
|
|
141
|
-
<view>{{ item.can_read_code }}</view>
|
|
142
|
-
</view>
|
|
143
|
-
<view
|
|
144
|
-
class="jfb-base-success__body-num-info-copy"
|
|
145
|
-
@click="copy(item.code)"
|
|
146
|
-
>复制</view>
|
|
147
|
-
<view
|
|
148
|
-
v-if="item['code_end_time']"
|
|
149
|
-
class="jfb-base-success__body-cashier-code"
|
|
150
|
-
:style="{
|
|
151
|
-
borderColor: mainColor,
|
|
152
|
-
color: mainColor,
|
|
153
|
-
background: bgColor,
|
|
154
|
-
}"
|
|
155
|
-
>{{ item['code_end_time'] }}</view>
|
|
125
|
+
{{ info.codes[0].code_end_time }}
|
|
156
126
|
</view>
|
|
127
|
+
</view>
|
|
128
|
+
<view v-else>
|
|
157
129
|
<view
|
|
158
|
-
|
|
159
|
-
|
|
130
|
+
:style="{
|
|
131
|
+
marginBottom: jfbListSpacing + 'rpx',
|
|
132
|
+
boxShadow: jfbListShadowComputed,
|
|
133
|
+
border: jfbListBorderComputed,
|
|
134
|
+
backgroundColor: jfbListBgColor,
|
|
135
|
+
borderRadius: jfbListRadius + 'rpx',
|
|
136
|
+
}"
|
|
137
|
+
v-for="(item, index) in info.codes"
|
|
138
|
+
:key="index"
|
|
160
139
|
>
|
|
140
|
+
<view class="codes-index">{{info.codes.length > 10 ? index + 1 : `0${index + 1}` }}</view>
|
|
141
|
+
<!--codes-->
|
|
161
142
|
<view
|
|
162
|
-
class="jfb-base-success__body-num"
|
|
163
|
-
|
|
164
|
-
'borderBottom': '1px solid #f2f2f2',
|
|
165
|
-
'paddingBottom': '48rpx'
|
|
166
|
-
}"
|
|
143
|
+
class="jfb-base-success__body-card jfb-base-success__body-num"
|
|
144
|
+
v-if="item.show_type === 'text' && !item.password"
|
|
167
145
|
>
|
|
168
146
|
<view class="jfb-base-success__body-num-info">
|
|
169
147
|
<view>{{ item.can_read_code }}</view>
|
|
@@ -172,18 +150,6 @@
|
|
|
172
150
|
class="jfb-base-success__body-num-info-copy"
|
|
173
151
|
@click="copy(item.code)"
|
|
174
152
|
>复制</view>
|
|
175
|
-
</view>
|
|
176
|
-
<view
|
|
177
|
-
class="jfb-base-success__body-num"
|
|
178
|
-
:style="{paddingTop: '48rpx'}"
|
|
179
|
-
>
|
|
180
|
-
<view class="jfb-base-success__body-num-info">
|
|
181
|
-
<view>{{ item.can_read_password }}</view>
|
|
182
|
-
</view>
|
|
183
|
-
<view
|
|
184
|
-
class="jfb-base-success__body-num-info-copy"
|
|
185
|
-
@click="copy(item.password)"
|
|
186
|
-
>复制</view>
|
|
187
153
|
<view
|
|
188
154
|
v-if="item['code_end_time']"
|
|
189
155
|
class="jfb-base-success__body-cashier-code"
|
|
@@ -192,48 +158,118 @@
|
|
|
192
158
|
color: mainColor,
|
|
193
159
|
background: bgColor,
|
|
194
160
|
}"
|
|
195
|
-
>
|
|
196
|
-
{{ item['code_end_time'] }}
|
|
197
|
-
</view>
|
|
161
|
+
>{{ item['code_end_time'] }}</view>
|
|
198
162
|
</view>
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
>
|
|
204
|
-
<view class="jfb-base-success__body-num">
|
|
205
|
-
<view class="jfb-base-success__body-num-info">
|
|
206
|
-
<view>{{ item.can_read_code }}</view>
|
|
207
|
-
</view>
|
|
208
|
-
<view
|
|
209
|
-
class="jfb-base-success__body-num-info-copy"
|
|
210
|
-
@click="handleShowCode(item)"
|
|
211
|
-
>查看二维码</view>
|
|
163
|
+
<view
|
|
164
|
+
class="jfb-base-success__body-card"
|
|
165
|
+
v-if="item.show_type === 'text' && item.password"
|
|
166
|
+
>
|
|
212
167
|
<view
|
|
213
|
-
|
|
214
|
-
class="jfb-base-success__body-cashier-code"
|
|
168
|
+
class="jfb-base-success__body-num"
|
|
215
169
|
:style="{
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
background: bgColor,
|
|
170
|
+
'borderBottom': '1px solid #f2f2f2',
|
|
171
|
+
'paddingBottom': '48rpx'
|
|
219
172
|
}"
|
|
220
173
|
>
|
|
221
|
-
|
|
174
|
+
<view class="jfb-base-success__body-num-info">
|
|
175
|
+
<view>{{ item.can_read_code }}</view>
|
|
176
|
+
</view>
|
|
177
|
+
<view
|
|
178
|
+
class="jfb-base-success__body-num-info-copy"
|
|
179
|
+
@click="copy(item.code)"
|
|
180
|
+
>复制</view>
|
|
181
|
+
</view>
|
|
182
|
+
<view
|
|
183
|
+
class="jfb-base-success__body-num"
|
|
184
|
+
:style="{paddingTop: '48rpx'}"
|
|
185
|
+
>
|
|
186
|
+
<view class="jfb-base-success__body-num-info">
|
|
187
|
+
<view>{{ item.can_read_password }}</view>
|
|
188
|
+
</view>
|
|
189
|
+
<view
|
|
190
|
+
class="jfb-base-success__body-num-info-copy"
|
|
191
|
+
@click="copy(item.password)"
|
|
192
|
+
>复制</view>
|
|
193
|
+
<view
|
|
194
|
+
v-if="item['code_end_time']"
|
|
195
|
+
class="jfb-base-success__body-cashier-code"
|
|
196
|
+
:style="{
|
|
197
|
+
borderColor: mainColor,
|
|
198
|
+
color: mainColor,
|
|
199
|
+
background: bgColor,
|
|
200
|
+
}"
|
|
201
|
+
>
|
|
202
|
+
{{ item['code_end_time'] }}
|
|
203
|
+
</view>
|
|
222
204
|
</view>
|
|
223
205
|
</view>
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
206
|
+
<view
|
|
207
|
+
class="jfb-base-success__body-card"
|
|
208
|
+
v-if="item.show_type === 'qrcode'"
|
|
209
|
+
>
|
|
210
|
+
<view class="jfb-base-success__body-num">
|
|
211
|
+
<view class="jfb-base-success__body-num-info">
|
|
212
|
+
<view>{{ item.can_read_code }}</view>
|
|
213
|
+
</view>
|
|
214
|
+
<view
|
|
215
|
+
class="jfb-base-success__body-num-info-copy"
|
|
216
|
+
@click="handleShowCode(item)"
|
|
217
|
+
>查看二维码</view>
|
|
218
|
+
<view
|
|
219
|
+
v-if="item['code_end_time']"
|
|
220
|
+
class="jfb-base-success__body-cashier-code"
|
|
221
|
+
:style="{
|
|
222
|
+
borderColor: mainColor,
|
|
223
|
+
color: mainColor,
|
|
224
|
+
background: bgColor,
|
|
225
|
+
}"
|
|
226
|
+
>
|
|
227
|
+
{{ item['code_end_time'] }}
|
|
228
|
+
</view>
|
|
229
|
+
</view>
|
|
230
|
+
</view>
|
|
231
|
+
<view
|
|
232
|
+
class="jfb-base-success__body-card"
|
|
233
|
+
v-if="item.show_type === 'barcode'"
|
|
234
|
+
>
|
|
235
|
+
<view class="jfb-base-success__body-num">
|
|
236
|
+
<view class="jfb-base-success__body-num-info">
|
|
237
|
+
<view>{{ item.can_read_code }}</view>
|
|
238
|
+
</view>
|
|
239
|
+
<view
|
|
240
|
+
class="jfb-base-success__body-num-info-copy"
|
|
241
|
+
@click="handleShowCode(item)"
|
|
242
|
+
>查看一维码</view>
|
|
243
|
+
<view
|
|
244
|
+
v-if="item['code_end_time']"
|
|
245
|
+
class="jfb-base-success__body-cashier-code"
|
|
246
|
+
:style="{
|
|
247
|
+
borderColor: mainColor,
|
|
248
|
+
color: mainColor,
|
|
249
|
+
background: bgColor,
|
|
250
|
+
}"
|
|
251
|
+
>
|
|
252
|
+
{{ item['code_end_time'] }}
|
|
253
|
+
</view>
|
|
254
|
+
</view>
|
|
255
|
+
</view>
|
|
256
|
+
<view
|
|
257
|
+
class="jfb-base-success__body-card jfb-base-success__body-num"
|
|
258
|
+
v-if="item.show_type === 'url'"
|
|
259
|
+
>
|
|
260
|
+
<view class="code-url">
|
|
261
|
+
<view class="jfb-base-success__body-num-info">
|
|
262
|
+
<view>{{ item.can_read_code }}</view>
|
|
263
|
+
</view>
|
|
264
|
+
<view
|
|
265
|
+
class="jfb-base-success__body-num-info-copy"
|
|
266
|
+
@click="handleToLink(item.code)"
|
|
267
|
+
>访问</view>
|
|
232
268
|
</view>
|
|
233
269
|
<view
|
|
234
270
|
class="jfb-base-success__body-num-info-copy"
|
|
235
|
-
@click="
|
|
236
|
-
|
|
271
|
+
@click="copy(item.code)"
|
|
272
|
+
>复制</view>
|
|
237
273
|
<view
|
|
238
274
|
v-if="item['code_end_time']"
|
|
239
275
|
class="jfb-base-success__body-cashier-code"
|
|
@@ -246,61 +282,32 @@
|
|
|
246
282
|
{{ item['code_end_time'] }}
|
|
247
283
|
</view>
|
|
248
284
|
</view>
|
|
285
|
+
<!--codes end-->
|
|
249
286
|
</view>
|
|
250
|
-
<view
|
|
251
|
-
class="jfb-base-success__body-card jfb-base-success__body-num"
|
|
252
|
-
v-if="item.show_type === 'url'"
|
|
253
|
-
>
|
|
254
|
-
<view class="code-url">
|
|
255
|
-
<view class="jfb-base-success__body-num-info">
|
|
256
|
-
<view>{{ item.can_read_code }}</view>
|
|
257
|
-
</view>
|
|
258
|
-
<view
|
|
259
|
-
class="jfb-base-success__body-num-info-copy"
|
|
260
|
-
@click="handleToLink(item.code)"
|
|
261
|
-
>访问</view>
|
|
262
|
-
</view>
|
|
263
|
-
<view
|
|
264
|
-
class="jfb-base-success__body-num-info-copy"
|
|
265
|
-
@click="copy(item.code)"
|
|
266
|
-
>复制</view>
|
|
267
|
-
<view
|
|
268
|
-
v-if="item['code_end_time']"
|
|
269
|
-
class="jfb-base-success__body-cashier-code"
|
|
270
|
-
:style="{
|
|
271
|
-
borderColor: mainColor,
|
|
272
|
-
color: mainColor,
|
|
273
|
-
background: bgColor,
|
|
274
|
-
}"
|
|
275
|
-
>
|
|
276
|
-
{{ item['code_end_time'] }}
|
|
277
|
-
</view>
|
|
278
|
-
</view>
|
|
279
|
-
<!--codes end-->
|
|
280
287
|
</view>
|
|
281
288
|
</view>
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
</view>
|
|
293
|
-
</view>
|
|
294
|
-
<view
|
|
295
|
-
class="jfb-base-success__body-detail"
|
|
296
|
-
v-if="is_show_product === 'Y' && info.productDetail"
|
|
297
|
-
>
|
|
298
|
-
<view class="jfb-base-success__body-detail-title">
|
|
299
|
-
<view :style="{ background: mainColor }"></view>
|
|
300
|
-
<view>商品详情</view>
|
|
289
|
+
<view class="jfb-base-success__body-detail" v-if="info.custom_content">
|
|
290
|
+
<view class="jfb-base-success__body-detail-title">
|
|
291
|
+
<view :style="{ background: mainColor }"></view>
|
|
292
|
+
<view>{{ info.custom_content.title }}</view>
|
|
293
|
+
</view>
|
|
294
|
+
<view class="jfb-base-success__body-detail-html">
|
|
295
|
+
<xd-content-xss
|
|
296
|
+
v-html="info.custom_content.content"
|
|
297
|
+
></xd-content-xss>
|
|
298
|
+
</view>
|
|
301
299
|
</view>
|
|
302
|
-
<view
|
|
303
|
-
|
|
300
|
+
<view
|
|
301
|
+
class="jfb-base-success__body-detail"
|
|
302
|
+
v-if="is_show_product === 'Y' && info.productDetail"
|
|
303
|
+
>
|
|
304
|
+
<view class="jfb-base-success__body-detail-title">
|
|
305
|
+
<view :style="{ background: mainColor }"></view>
|
|
306
|
+
<view>商品详情</view>
|
|
307
|
+
</view>
|
|
308
|
+
<view class="jfb-base-success__body-detail-html">
|
|
309
|
+
<xd-content-xss v-html="info.productDetail"></xd-content-xss>
|
|
310
|
+
</view>
|
|
304
311
|
</view>
|
|
305
312
|
</view>
|
|
306
313
|
</view>
|
|
@@ -420,8 +427,8 @@ export default {
|
|
|
420
427
|
created() {
|
|
421
428
|
this.isPreview = this.$configProject.isPreview;
|
|
422
429
|
this.noUserLoding = !this.$root['isLogined']; //判断是否需要已登陆
|
|
430
|
+
if(this.isPreview) this.noUserLoding = false;
|
|
423
431
|
this.init(this.container);
|
|
424
|
-
|
|
425
432
|
},
|
|
426
433
|
destroyed() {
|
|
427
434
|
if (this.timeer) {
|
|
@@ -701,12 +708,25 @@ export default {
|
|
|
701
708
|
|
|
702
709
|
.jfb-base-success {
|
|
703
710
|
&__body {
|
|
711
|
+
&-nouser {
|
|
712
|
+
padding: 20rpx;
|
|
713
|
+
//background: #f5f5f5;
|
|
714
|
+
color: #111;
|
|
715
|
+
font-size: 32rpx;
|
|
716
|
+
line-height: 400rpx;
|
|
717
|
+
border-radius: 16rpx;
|
|
718
|
+
box-shadow: 0 0 10rpx rgba(0,0,0,.2);
|
|
719
|
+
text-align: center;
|
|
720
|
+
}
|
|
721
|
+
|
|
704
722
|
.logo-icon {
|
|
705
723
|
width: unit(100, rpx) !important;
|
|
706
724
|
height: unit(100, rpx) !important;
|
|
707
725
|
position: absolute;
|
|
708
726
|
top: 50%;
|
|
709
727
|
transform: translate(-50rpx, -50rpx);
|
|
728
|
+
|
|
729
|
+
|
|
710
730
|
}
|
|
711
731
|
&-card {
|
|
712
732
|
padding: unit(30, rpx);
|