jufubao-base 1.0.104 → 1.0.105-beta1
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
CHANGED
|
@@ -6,6 +6,17 @@
|
|
|
6
6
|
export default {
|
|
7
7
|
style: [],
|
|
8
8
|
content: [
|
|
9
|
+
{
|
|
10
|
+
label: '查看已领票券路径:', //label
|
|
11
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
12
|
+
valueKey: 'collectedPath', //form[valueKey]
|
|
13
|
+
placeholder: '请选择查看已领票券路径',
|
|
14
|
+
value: null,
|
|
15
|
+
setting: {
|
|
16
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
17
|
+
},
|
|
18
|
+
inline: false,
|
|
19
|
+
},
|
|
9
20
|
// {
|
|
10
21
|
// label: '领券规则:',
|
|
11
22
|
// ele: 'xd-site-news',
|
|
@@ -16,15 +16,14 @@
|
|
|
16
16
|
<view class="jfb-base-con-list__edit-icon" @click="delEdit">删除</view>
|
|
17
17
|
</view>
|
|
18
18
|
<!-- #endif -->
|
|
19
|
-
<view class="jfb-base-con-list__body" v-if="done"
|
|
19
|
+
<view class="jfb-base-con-list__body" v-if="done" :style="{
|
|
20
|
+
backgroundImage: `url(${background})`,
|
|
21
|
+
backgroundSize: '100%',
|
|
22
|
+
backgroundRepeat: 'no-repeat',
|
|
23
|
+
minHeight: `${layoutInfo.bodyMinHeightRpx}rpx`,
|
|
24
|
+
}">
|
|
20
25
|
<view
|
|
21
26
|
v-if="couponList&&couponList.length > 0"
|
|
22
|
-
:style="{
|
|
23
|
-
backgroundImage: `url(${background})`,
|
|
24
|
-
backgroundSize: '100%',
|
|
25
|
-
backgroundRepeat: 'no-repeat',
|
|
26
|
-
height: `${layoutInfo.bodyMinHeightRpx}rpx`,
|
|
27
|
-
}"
|
|
28
27
|
>
|
|
29
28
|
<view class="jfb-base-con-list__body-content">
|
|
30
29
|
<view class="jfb-base-con-list__body-content-header">
|
|
@@ -41,7 +40,7 @@
|
|
|
41
40
|
<xd-font-icon size="20" icon="iconxiangyou_xian"></xd-font-icon>
|
|
42
41
|
</view>
|
|
43
42
|
</view>
|
|
44
|
-
<view class="jfb-base-con-list__body-content-list">
|
|
43
|
+
<view v-if="can_take === 'Y' && has_times === 'Y'" class="jfb-base-con-list__body-content-list">
|
|
45
44
|
<view v-for="(item, index) in couponList" :key="index">
|
|
46
45
|
<view
|
|
47
46
|
class="jfb-base-con-list__body-content-list-item"
|
|
@@ -106,24 +105,27 @@
|
|
|
106
105
|
<view></view>
|
|
107
106
|
|
|
108
107
|
<xd-button
|
|
109
|
-
v-if="item.can_take_num !== 'Y'"
|
|
110
108
|
size="small"
|
|
111
109
|
:disabled="item.remain_card_count == 0"
|
|
112
110
|
@click="getCoupont(item)"
|
|
113
111
|
type="primary"
|
|
112
|
+
style="width: 170rpx;height: 60rpx;"
|
|
114
113
|
:style="item.btn"
|
|
115
114
|
:color="item.infoColor"
|
|
116
|
-
|
|
117
|
-
>
|
|
115
|
+
>{{ item.btn_txt }}</xd-button>
|
|
118
116
|
</view>
|
|
119
117
|
</view>
|
|
120
118
|
</view>
|
|
121
119
|
</view>
|
|
122
120
|
</view>
|
|
123
|
-
<view class="jfb-base-con-list__body-content-
|
|
124
|
-
|
|
125
|
-
>
|
|
121
|
+
<view v-else class="jfb-base-con-list__body-content-list" style="padding-bottom: 60rpx;">
|
|
122
|
+
<image mode="widthFix" src="//sandbox-img.jufubao.cn/uploads/20240123/0b022b56928000ae54f5e7c9669cf214.png?ver=tjJC9jW3mbfiz2p19I6l"></image>
|
|
123
|
+
</view>
|
|
126
124
|
</view>
|
|
125
|
+
<view class="jfb-base-con-list__body-content-foot"
|
|
126
|
+
@click="toCoupon"
|
|
127
|
+
>查看已领票券</view
|
|
128
|
+
>
|
|
127
129
|
</view>
|
|
128
130
|
<view
|
|
129
131
|
v-else
|
|
@@ -180,6 +182,9 @@ export default {
|
|
|
180
182
|
activity_id: "",
|
|
181
183
|
background: "",
|
|
182
184
|
app_coupon_url: "",
|
|
185
|
+
used_up_url: "",
|
|
186
|
+
can_take: "",
|
|
187
|
+
has_times: "",
|
|
183
188
|
method: "entry",
|
|
184
189
|
maxTime: 5, //最长轮询2的N次方(秒)
|
|
185
190
|
date: 2, //时间底数
|
|
@@ -188,6 +193,8 @@ export default {
|
|
|
188
193
|
order_num: null,
|
|
189
194
|
done: false,
|
|
190
195
|
message: "",
|
|
196
|
+
|
|
197
|
+
collectedPath: "",
|
|
191
198
|
};
|
|
192
199
|
},
|
|
193
200
|
computed: {
|
|
@@ -213,6 +220,7 @@ export default {
|
|
|
213
220
|
init(value) {
|
|
214
221
|
this.contentBackground = '#FFF8F8';
|
|
215
222
|
this.iconColor = '#FF4D4A';
|
|
223
|
+
this.collectedPath = getContainerPropsValue(value, "content.collectedPath", {value: ''}).value;
|
|
216
224
|
},
|
|
217
225
|
getList() {
|
|
218
226
|
jfbRootExec("getCouponList", {
|
|
@@ -225,16 +233,22 @@ export default {
|
|
|
225
233
|
})
|
|
226
234
|
.then((res) => {
|
|
227
235
|
this.background = getServiceUrl(res.background);
|
|
236
|
+
this.used_up_url = getServiceUrl(res.used_up_url);
|
|
237
|
+
this.can_take = res.can_take;
|
|
238
|
+
this.has_times = res.has_times;
|
|
239
|
+
|
|
228
240
|
this.couponList =
|
|
229
241
|
res.list &&
|
|
230
242
|
res.list.length > 0 &&
|
|
231
243
|
res.list.map((item) => {
|
|
244
|
+
let mapArr = {"Y": "去查看", "P": "领取", "N": "已发完"}
|
|
245
|
+
item.btn_txt = mapArr[item.can_take_num];
|
|
232
246
|
if (item.can_take_num === "Y" || item.can_take_num === "P") {
|
|
233
247
|
//按钮样式
|
|
234
248
|
item.btn = res.app_coupon_button_bg_url
|
|
235
249
|
? {
|
|
236
250
|
backgroundImage: `url(${getServiceUrl(
|
|
237
|
-
res.app_coupon_button_bg_url
|
|
251
|
+
item.can_take_num === "Y" ? res.app_coupon_button_see_url : res.app_coupon_button_bg_url
|
|
238
252
|
)})`,
|
|
239
253
|
backgroundSize: "100%",
|
|
240
254
|
backgroundRepeat: "no-repeat",
|
|
@@ -288,6 +302,11 @@ export default {
|
|
|
288
302
|
console.log(err, "err");
|
|
289
303
|
});
|
|
290
304
|
},
|
|
305
|
+
toCoupon(){
|
|
306
|
+
this.$xdUniHelper.navigateTo({
|
|
307
|
+
url: this.collectedPath,
|
|
308
|
+
});
|
|
309
|
+
},
|
|
291
310
|
getCoupont(item) {
|
|
292
311
|
this.$xdShowLoading({});
|
|
293
312
|
jfbRootExec("getAllCoupon", {
|
|
@@ -438,6 +457,9 @@ export default {
|
|
|
438
457
|
&__body {
|
|
439
458
|
position: relative;
|
|
440
459
|
overflow-y: auto;
|
|
460
|
+
padding-top: 82px;
|
|
461
|
+
box-sizing: border-box;
|
|
462
|
+
background-color: #FAFAFA;
|
|
441
463
|
.empty_data {
|
|
442
464
|
text-align: center;
|
|
443
465
|
color: #999999;
|
|
@@ -455,8 +477,6 @@ export default {
|
|
|
455
477
|
border-radius: unit(20, rpx);
|
|
456
478
|
background: #fff;
|
|
457
479
|
padding: unit(34, rpx);
|
|
458
|
-
position: relative;
|
|
459
|
-
top: unit(164, rpx);
|
|
460
480
|
margin-right: auto;
|
|
461
481
|
margin-left: auto;
|
|
462
482
|
width: unit(650, rpx);
|
|
@@ -534,7 +554,7 @@ export default {
|
|
|
534
554
|
color: #a6a6a6;
|
|
535
555
|
font-size: unit(24, rpx);
|
|
536
556
|
text-align: center;
|
|
537
|
-
margin
|
|
557
|
+
margin: unit(40, rpx) 0;
|
|
538
558
|
}
|
|
539
559
|
}
|
|
540
560
|
}
|