jufubao-base 1.0.122 → 1.0.123
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/JfbBasePay/JfbBasePay.vue +11 -5
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +268 -238
- package/src/components/JfbBaseWallet/Api.js +60 -0
- package/src/components/JfbBaseWallet/Attr.js +101 -0
- package/src/components/JfbBaseWallet/JfbBaseWallet.vue +306 -0
- package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +80 -0
- package/src/components/JfbBaseWallet/JfbBaseWalletMixin.js +30 -0
- package/src/components/JfbBaseWallet/Mock.js +6 -0
- package/src/components/JfbBaseWalletDetail/Api.js +26 -0
- package/src/components/JfbBaseWalletDetail/Attr.js +16 -0
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetail.vue +175 -0
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +80 -0
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js +30 -0
- package/src/components/JfbBaseWalletDetail/Mock.js +6 -0
- package/src/components/JfbBaseWalletEffective/Api.js +27 -0
- package/src/components/JfbBaseWalletEffective/Attr.js +15 -0
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffective.vue +176 -0
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +80 -0
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveMixin.js +30 -0
- package/src/components/JfbBaseWalletEffective/Mock.js +21 -0
- package/src/components/JfbBaseWalletIndex/Api.js +48 -0
- package/src/components/JfbBaseWalletIndex/Attr.js +33 -0
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +822 -0
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +80 -0
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexMixin.js +30 -0
- package/src/components/JfbBaseWalletIndex/Mock.js +7 -0
- package/src/components/JfbBaseWalletItem/Api.js +37 -0
- package/src/components/JfbBaseWalletItem/Attr.js +33 -0
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +501 -0
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +80 -0
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItemMixin.js +30 -0
- package/src/components/JfbBaseWalletItem/Mock.js +7 -0
|
@@ -18,60 +18,20 @@
|
|
|
18
18
|
<!-- #endif -->
|
|
19
19
|
<view
|
|
20
20
|
class="jfb-base-success__body"
|
|
21
|
-
|
|
22
|
-
v-if="info !== null"
|
|
21
|
+
|
|
23
22
|
>
|
|
23
|
+
<view class="x-line"></view>
|
|
24
24
|
<view
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
boxShadow: jfbListShadowComputed,
|
|
29
|
-
border: jfbListBorderComputed,
|
|
30
|
-
backgroundColor: jfbListBgColor,
|
|
31
|
-
borderRadius: jfbListRadius + 'rpx',
|
|
32
|
-
}"
|
|
25
|
+
v-if="noUserLoding === true"
|
|
26
|
+
class="jfb-base-success__body-nouser"
|
|
27
|
+
:style="{ margin: jfbListMarginComputed }"
|
|
33
28
|
>
|
|
34
|
-
|
|
35
|
-
<view>
|
|
36
|
-
<xd-font-icon
|
|
37
|
-
size="80"
|
|
38
|
-
:icon="info.status.icon"
|
|
39
|
-
:color="info.status.iconColor"
|
|
40
|
-
></xd-font-icon>
|
|
41
|
-
</view>
|
|
42
|
-
<view>{{ info.status.status_name }}</view>
|
|
43
|
-
<view class="jfb-base-success__body-icon-item-tip">{{
|
|
44
|
-
info.status.comment
|
|
45
|
-
}}</view>
|
|
46
|
-
</view>
|
|
47
|
-
<view class="jfb-base-success__body-icon-btn">
|
|
48
|
-
<view v-for="(item, index) in info['btn']" :key="index">
|
|
49
|
-
<xd-button
|
|
50
|
-
v-if="item['label']"
|
|
51
|
-
size="small"
|
|
52
|
-
:type="item['type']"
|
|
53
|
-
@click="handleOnBtnClick(item)"
|
|
54
|
-
>{{ item["label"] }}
|
|
55
|
-
</xd-button>
|
|
56
|
-
</view>
|
|
57
|
-
</view>
|
|
29
|
+
请关闭当前浏览器,返回原界面查看结果
|
|
58
30
|
</view>
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
<view class="settle-item" v-for="(settle,index) in info.settleInfo" :key="index">
|
|
62
|
-
<view>{{settle.label}}:</view>
|
|
63
|
-
<view v-if="settle.type === 'price'">
|
|
64
|
-
<xd-unit :price="settle.value" unit="" :is-old="false"></xd-unit>
|
|
65
|
-
</view>
|
|
66
|
-
<view v-else v-html="settle.value"></view>
|
|
67
|
-
</view>
|
|
68
|
-
</view>
|
|
69
|
-
<!--settle end-->
|
|
70
|
-
<view class="jfb-base-success__body-other">
|
|
71
|
-
<view
|
|
72
|
-
v-if="info.codes && info.codes.length > 0 && is_show_code === 'Y'"
|
|
73
|
-
>
|
|
31
|
+
<template v-if="noUserLoding === false && info !== null">
|
|
32
|
+
<view :style="{ margin: jfbListMarginComputed }">
|
|
74
33
|
<view
|
|
34
|
+
class="jfb-base-success__body-icon"
|
|
75
35
|
:style="{
|
|
76
36
|
marginBottom: jfbListSpacing + 'rpx',
|
|
77
37
|
boxShadow: jfbListShadowComputed,
|
|
@@ -79,228 +39,279 @@
|
|
|
79
39
|
backgroundColor: jfbListBgColor,
|
|
80
40
|
borderRadius: jfbListRadius + 'rpx',
|
|
81
41
|
}"
|
|
82
|
-
v-if="
|
|
83
|
-
info.codes.length === 1 &&
|
|
84
|
-
(info.codes[0].show_type === 'qrcode' ||
|
|
85
|
-
info.codes[0].show_type === 'barcode')
|
|
86
|
-
"
|
|
87
|
-
class="jfb-base-success__body-card jfb-base-success__body-cashier"
|
|
88
42
|
>
|
|
89
|
-
<view class="jfb-base-success__body-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}"
|
|
97
|
-
:src="info.codes[0].code_url"
|
|
98
|
-
></image>
|
|
99
|
-
<image v-if="info.codes[0].logo&&info.codes[0].show_type === 'qrcode'" class="logo-icon" :src="info.codes[0].logo"></image>
|
|
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>
|
|
100
50
|
</view>
|
|
101
|
-
|
|
102
|
-
{{
|
|
51
|
+
<view>{{ info.status.status_name }}</view>
|
|
52
|
+
<view class="jfb-base-success__body-icon-item-tip">{{
|
|
53
|
+
info.status.comment
|
|
54
|
+
}}</view>
|
|
103
55
|
</view>
|
|
104
|
-
<view
|
|
105
|
-
|
|
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>
|
|
106
66
|
</view>
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
{{ info.codes[0].code_end_time }}
|
|
67
|
+
</view>
|
|
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>
|
|
117
76
|
</view>
|
|
118
77
|
</view>
|
|
119
|
-
|
|
78
|
+
<!--settle end-->
|
|
79
|
+
<view class="jfb-base-success__body-other">
|
|
120
80
|
<view
|
|
121
|
-
|
|
122
|
-
marginBottom: jfbListSpacing + 'rpx',
|
|
123
|
-
boxShadow: jfbListShadowComputed,
|
|
124
|
-
border: jfbListBorderComputed,
|
|
125
|
-
backgroundColor: jfbListBgColor,
|
|
126
|
-
borderRadius: jfbListRadius + 'rpx',
|
|
127
|
-
}"
|
|
128
|
-
v-for="(item, index) in info.codes"
|
|
129
|
-
:key="index"
|
|
81
|
+
v-if="info.codes && info.codes.length > 0 && is_show_code === 'Y'"
|
|
130
82
|
>
|
|
131
|
-
<view class="codes-index">{{info.codes.length > 10 ? index + 1 : `0${index + 1}` }}</view>
|
|
132
|
-
<!--codes-->
|
|
133
83
|
<view
|
|
134
|
-
|
|
135
|
-
|
|
84
|
+
:style="{
|
|
85
|
+
marginBottom: jfbListSpacing + 'rpx',
|
|
86
|
+
boxShadow: jfbListShadowComputed,
|
|
87
|
+
border: jfbListBorderComputed,
|
|
88
|
+
backgroundColor: jfbListBgColor,
|
|
89
|
+
borderRadius: jfbListRadius + 'rpx',
|
|
90
|
+
}"
|
|
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"
|
|
136
97
|
>
|
|
137
|
-
<view class="jfb-base-success__body-
|
|
138
|
-
|
|
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}}
|
|
139
115
|
</view>
|
|
140
116
|
<view
|
|
141
|
-
|
|
142
|
-
@click="copy(item.code)"
|
|
143
|
-
>复制</view>
|
|
144
|
-
<view
|
|
145
|
-
v-if="item['code_end_time']"
|
|
117
|
+
v-if="info.codes[0].code_end_time"
|
|
146
118
|
class="jfb-base-success__body-cashier-code"
|
|
147
119
|
:style="{
|
|
148
120
|
borderColor: mainColor,
|
|
149
121
|
color: mainColor,
|
|
150
122
|
background: bgColor,
|
|
151
123
|
}"
|
|
152
|
-
>
|
|
124
|
+
>
|
|
125
|
+
{{ info.codes[0].code_end_time }}
|
|
126
|
+
</view>
|
|
153
127
|
</view>
|
|
154
|
-
<view
|
|
155
|
-
class="jfb-base-success__body-card"
|
|
156
|
-
v-if="item.show_type === 'text' && item.password"
|
|
157
|
-
>
|
|
128
|
+
<view v-else>
|
|
158
129
|
<view
|
|
159
|
-
class="jfb-base-success__body-num"
|
|
160
130
|
:style="{
|
|
161
|
-
|
|
162
|
-
|
|
131
|
+
marginBottom: jfbListSpacing + 'rpx',
|
|
132
|
+
boxShadow: jfbListShadowComputed,
|
|
133
|
+
border: jfbListBorderComputed,
|
|
134
|
+
backgroundColor: jfbListBgColor,
|
|
135
|
+
borderRadius: jfbListRadius + 'rpx',
|
|
163
136
|
}"
|
|
137
|
+
v-for="(item, index) in info.codes"
|
|
138
|
+
:key="index"
|
|
164
139
|
>
|
|
165
|
-
<view class="
|
|
166
|
-
|
|
167
|
-
</view>
|
|
140
|
+
<view class="codes-index">{{info.codes.length > 10 ? index + 1 : `0${index + 1}` }}</view>
|
|
141
|
+
<!--codes-->
|
|
168
142
|
<view
|
|
169
|
-
class="jfb-base-success__body-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
143
|
+
class="jfb-base-success__body-card jfb-base-success__body-num"
|
|
144
|
+
v-if="item.show_type === 'text' && !item.password"
|
|
145
|
+
>
|
|
146
|
+
<view class="jfb-base-success__body-num-info">
|
|
147
|
+
<view>{{ item.can_read_code }}</view>
|
|
148
|
+
</view>
|
|
149
|
+
<view
|
|
150
|
+
class="jfb-base-success__body-num-info-copy"
|
|
151
|
+
@click="copy(item.code)"
|
|
152
|
+
>复制</view>
|
|
153
|
+
<view
|
|
154
|
+
v-if="item['code_end_time']"
|
|
155
|
+
class="jfb-base-success__body-cashier-code"
|
|
156
|
+
:style="{
|
|
157
|
+
borderColor: mainColor,
|
|
158
|
+
color: mainColor,
|
|
159
|
+
background: bgColor,
|
|
160
|
+
}"
|
|
161
|
+
>{{ item['code_end_time'] }}</view>
|
|
179
162
|
</view>
|
|
180
163
|
<view
|
|
181
|
-
class="jfb-base-success__body-
|
|
182
|
-
|
|
183
|
-
>复制</view>
|
|
184
|
-
<view
|
|
185
|
-
v-if="item['code_end_time']"
|
|
186
|
-
class="jfb-base-success__body-cashier-code"
|
|
187
|
-
:style="{
|
|
188
|
-
borderColor: mainColor,
|
|
189
|
-
color: mainColor,
|
|
190
|
-
background: bgColor,
|
|
191
|
-
}"
|
|
164
|
+
class="jfb-base-success__body-card"
|
|
165
|
+
v-if="item.show_type === 'text' && item.password"
|
|
192
166
|
>
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
167
|
+
<view
|
|
168
|
+
class="jfb-base-success__body-num"
|
|
169
|
+
:style="{
|
|
170
|
+
'borderBottom': '1px solid #f2f2f2',
|
|
171
|
+
'paddingBottom': '48rpx'
|
|
172
|
+
}"
|
|
173
|
+
>
|
|
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>
|
|
204
|
+
</view>
|
|
204
205
|
</view>
|
|
205
206
|
<view
|
|
206
|
-
class="jfb-base-success__body-
|
|
207
|
-
|
|
208
|
-
>查看二维码</view>
|
|
209
|
-
<view
|
|
210
|
-
v-if="item['code_end_time']"
|
|
211
|
-
class="jfb-base-success__body-cashier-code"
|
|
212
|
-
:style="{
|
|
213
|
-
borderColor: mainColor,
|
|
214
|
-
color: mainColor,
|
|
215
|
-
background: bgColor,
|
|
216
|
-
}"
|
|
207
|
+
class="jfb-base-success__body-card"
|
|
208
|
+
v-if="item.show_type === 'qrcode'"
|
|
217
209
|
>
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
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>
|
|
229
230
|
</view>
|
|
230
231
|
<view
|
|
231
|
-
class="jfb-base-success__body-
|
|
232
|
-
|
|
233
|
-
|
|
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>
|
|
234
256
|
<view
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
:style="{
|
|
238
|
-
borderColor: mainColor,
|
|
239
|
-
color: mainColor,
|
|
240
|
-
background: bgColor,
|
|
241
|
-
}"
|
|
257
|
+
class="jfb-base-success__body-card jfb-base-success__body-num"
|
|
258
|
+
v-if="item.show_type === 'url'"
|
|
242
259
|
>
|
|
243
|
-
|
|
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>
|
|
268
|
+
</view>
|
|
269
|
+
<view
|
|
270
|
+
class="jfb-base-success__body-num-info-copy"
|
|
271
|
+
@click="copy(item.code)"
|
|
272
|
+
>复制</view>
|
|
273
|
+
<view
|
|
274
|
+
v-if="item['code_end_time']"
|
|
275
|
+
class="jfb-base-success__body-cashier-code"
|
|
276
|
+
:style="{
|
|
277
|
+
borderColor: mainColor,
|
|
278
|
+
color: mainColor,
|
|
279
|
+
background: bgColor,
|
|
280
|
+
}"
|
|
281
|
+
>
|
|
282
|
+
{{ item['code_end_time'] }}
|
|
283
|
+
</view>
|
|
244
284
|
</view>
|
|
285
|
+
<!--codes end-->
|
|
245
286
|
</view>
|
|
246
287
|
</view>
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
<view
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
<view
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
color: mainColor,
|
|
270
|
-
background: bgColor,
|
|
271
|
-
}"
|
|
272
|
-
>
|
|
273
|
-
{{ item['code_end_time'] }}
|
|
274
|
-
</view>
|
|
288
|
+
</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>
|
|
299
|
+
</view>
|
|
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>
|
|
275
310
|
</view>
|
|
276
|
-
<!--codes end-->
|
|
277
311
|
</view>
|
|
278
312
|
</view>
|
|
279
313
|
</view>
|
|
280
|
-
|
|
281
|
-
<view class="jfb-base-success__body-detail-title">
|
|
282
|
-
<view :style="{ background: mainColor }"></view>
|
|
283
|
-
<view>{{ info.custom_content.title }}</view>
|
|
284
|
-
</view>
|
|
285
|
-
<view class="jfb-base-success__body-detail-html">
|
|
286
|
-
<xd-content-xss
|
|
287
|
-
v-html="info.custom_content.content"
|
|
288
|
-
></xd-content-xss>
|
|
289
|
-
</view>
|
|
290
|
-
</view>
|
|
291
|
-
<view
|
|
292
|
-
class="jfb-base-success__body-detail"
|
|
293
|
-
v-if="is_show_product === 'Y' && info.productDetail"
|
|
294
|
-
>
|
|
295
|
-
<view class="jfb-base-success__body-detail-title">
|
|
296
|
-
<view :style="{ background: mainColor }"></view>
|
|
297
|
-
<view>商品详情</view>
|
|
298
|
-
</view>
|
|
299
|
-
<view class="jfb-base-success__body-detail-html">
|
|
300
|
-
<xd-content-xss v-html="info.productDetail"></xd-content-xss>
|
|
301
|
-
</view>
|
|
302
|
-
</view>
|
|
303
|
-
</view>
|
|
314
|
+
</template>
|
|
304
315
|
</view>
|
|
305
316
|
<xd-dailog
|
|
306
317
|
:show.sync="showCode"
|
|
@@ -390,10 +401,9 @@ export default {
|
|
|
390
401
|
is_show_product: "",
|
|
391
402
|
webViewPath: "/pages/webview/webview", //容器路径
|
|
392
403
|
isPreview: false,
|
|
393
|
-
|
|
394
404
|
info: null,
|
|
395
|
-
|
|
396
405
|
timeer: null,
|
|
406
|
+
noUserLoding:null,
|
|
397
407
|
|
|
398
408
|
//请求参数
|
|
399
409
|
params: null,
|
|
@@ -405,8 +415,9 @@ export default {
|
|
|
405
415
|
};
|
|
406
416
|
},
|
|
407
417
|
watch: {
|
|
408
|
-
container(value) {
|
|
409
|
-
|
|
418
|
+
container(value,oloValue) {
|
|
419
|
+
if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
|
|
420
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
410
421
|
},
|
|
411
422
|
},
|
|
412
423
|
computed: {
|
|
@@ -414,8 +425,9 @@ export default {
|
|
|
414
425
|
...styleForm.getComputedItem(),
|
|
415
426
|
},
|
|
416
427
|
created() {
|
|
417
|
-
console.log(this.$configProject, "$configProject");
|
|
418
428
|
this.isPreview = this.$configProject.isPreview;
|
|
429
|
+
this.noUserLoding = !this.$root['isLogined']; //判断是否需要已登陆
|
|
430
|
+
if(this.isPreview) this.noUserLoding = false;
|
|
419
431
|
this.init(this.container);
|
|
420
432
|
},
|
|
421
433
|
destroyed() {
|
|
@@ -428,7 +440,15 @@ export default {
|
|
|
428
440
|
onJfbLoad(options) {
|
|
429
441
|
this.params = options;
|
|
430
442
|
this.order_id = options.order_id;
|
|
443
|
+
|
|
444
|
+
//已登陆
|
|
445
|
+
if(this.noUserLoding === false || this.isPreview ) {
|
|
446
|
+
setTimeout(()=>{
|
|
447
|
+
this.getStatus();
|
|
448
|
+
},1000)
|
|
449
|
+
}
|
|
431
450
|
},
|
|
451
|
+
|
|
432
452
|
handleShowCode(item) {
|
|
433
453
|
this.codeSrc = item.code_url;
|
|
434
454
|
this.showType = item.show_type;
|
|
@@ -494,9 +514,6 @@ export default {
|
|
|
494
514
|
this.index = this.settings.index;
|
|
495
515
|
this.packageData = true;
|
|
496
516
|
styleForm.getInitItem(this, value);
|
|
497
|
-
setTimeout(()=>{
|
|
498
|
-
this.getStatus();
|
|
499
|
-
},1000)
|
|
500
517
|
},
|
|
501
518
|
|
|
502
519
|
getStatus() {
|
|
@@ -691,12 +708,25 @@ export default {
|
|
|
691
708
|
|
|
692
709
|
.jfb-base-success {
|
|
693
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
|
+
|
|
694
722
|
.logo-icon {
|
|
695
723
|
width: unit(100, rpx) !important;
|
|
696
724
|
height: unit(100, rpx) !important;
|
|
697
725
|
position: absolute;
|
|
698
726
|
top: 50%;
|
|
699
727
|
transform: translate(-50rpx, -50rpx);
|
|
728
|
+
|
|
729
|
+
|
|
700
730
|
}
|
|
701
731
|
&-card {
|
|
702
732
|
padding: unit(30, rpx);
|