jufubao-base 1.0.242-beta5 → 1.0.242-beta7
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
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
let bar = getContainerPropsValue(value, 'content.footer-setting', []);
|
|
204
204
|
let imageIcons = getContainerPropsValue(value, 'content.footerSettingImage', []);
|
|
205
205
|
this.backgroundImage = getContainerPropsValue(value, 'content.backgroundImage', '');
|
|
206
|
-
this.borderColor = getContainerPropsValue(value, 'content.borderColor', '');
|
|
206
|
+
this.borderColor = getContainerPropsValue(value, 'content.borderColor', '#eee');
|
|
207
207
|
this.list = {
|
|
208
208
|
bgColor: getContainerPropsValue(value, 'content.bgColor', '#fff'),
|
|
209
209
|
bodyStyle: this.bodyStyle,
|
|
@@ -142,9 +142,9 @@
|
|
|
142
142
|
padding: this.getMarginAndPadding(this.tabPadding, { top: 40, right: 0, bottom: 40, left: 0 }),
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
|
-
disabledMonth(){
|
|
145
|
+
disabledMonth() {
|
|
146
146
|
let month = new Date().getMonth() + 1
|
|
147
|
-
return this.getYearAndMonth(this.monthDateRange).month==month
|
|
147
|
+
return this.getYearAndMonth(this.monthDateRange).month == month
|
|
148
148
|
}
|
|
149
149
|
},
|
|
150
150
|
watch: {
|
|
@@ -154,6 +154,8 @@
|
|
|
154
154
|
},
|
|
155
155
|
tab(value, oldValue) {
|
|
156
156
|
//请求数据
|
|
157
|
+
this.hasNext = true;
|
|
158
|
+
this.page_token = 1
|
|
157
159
|
if (value === 'month') {
|
|
158
160
|
this.getMonthData()
|
|
159
161
|
} else if (value === 'year') {
|
|
@@ -161,8 +163,6 @@
|
|
|
161
163
|
} else if (value === 'total') {
|
|
162
164
|
this.getTotalData()
|
|
163
165
|
}
|
|
164
|
-
this.hasNext = true;
|
|
165
|
-
this.page_token = 1
|
|
166
166
|
this.monthDateRange = ""
|
|
167
167
|
}
|
|
168
168
|
},
|
|
@@ -180,7 +180,10 @@
|
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
182
|
getMonthData() {
|
|
183
|
-
let data = {
|
|
183
|
+
let data = {
|
|
184
|
+
page_size: 10,
|
|
185
|
+
page_token: this.page_token,
|
|
186
|
+
}
|
|
184
187
|
if (this.monthDateRange) {
|
|
185
188
|
data.year = this.getYearAndMonth(this.monthDateRange).year
|
|
186
189
|
data.month = this.getYearAndMonth(this.monthDateRange).month
|
|
@@ -287,18 +290,22 @@
|
|
|
287
290
|
};
|
|
288
291
|
this.monthDateRange = res.date_range
|
|
289
292
|
this.saveAmount = res.save_amount
|
|
290
|
-
this.hasNext = res.next_page_token !== "";
|
|
291
293
|
if (this.page_token === 1) {
|
|
292
294
|
this.productList = list
|
|
293
295
|
} else {
|
|
294
296
|
this.productList = this.productList.concat(list);
|
|
295
297
|
}
|
|
298
|
+
this.next_page_token = res.next_page_token
|
|
299
|
+
this.hasNext = res.next_page_token !== "";
|
|
296
300
|
})
|
|
297
301
|
},
|
|
298
302
|
getYearData() {
|
|
299
303
|
jfbRootExec('getYearSavingDetail', {
|
|
300
304
|
vm: this,
|
|
301
|
-
data: {
|
|
305
|
+
data: {
|
|
306
|
+
page_size: 10,
|
|
307
|
+
page_token: this.page_token,
|
|
308
|
+
},
|
|
302
309
|
}).then(res => {
|
|
303
310
|
let list = res.list.map(item => {
|
|
304
311
|
item["order_time"] = this.$xdUniHelper.getDate(
|
|
@@ -380,18 +387,22 @@
|
|
|
380
387
|
};
|
|
381
388
|
this.yearDateRange = res.date_range
|
|
382
389
|
this.saveAmount = res.save_amount
|
|
383
|
-
this.hasNext = res.next_page_token !== "";
|
|
384
390
|
if (this.page_token === 1) {
|
|
385
391
|
this.productList = list
|
|
386
392
|
} else {
|
|
387
393
|
this.productList = this.productList.concat(list);
|
|
388
394
|
}
|
|
395
|
+
this.next_page_token = res.next_page_token
|
|
396
|
+
this.hasNext = res.next_page_token !== "";
|
|
389
397
|
})
|
|
390
398
|
},
|
|
391
399
|
getTotalData() {
|
|
392
400
|
jfbRootExec('getTotalSavingDetail', {
|
|
393
401
|
vm: this,
|
|
394
|
-
data: {
|
|
402
|
+
data: {
|
|
403
|
+
page_size: 10,
|
|
404
|
+
page_token: this.page_token,
|
|
405
|
+
},
|
|
395
406
|
}).then(res => {
|
|
396
407
|
let list = res.list.map(item => {
|
|
397
408
|
item["order_time"] = this.$xdUniHelper.getDate(
|
|
@@ -472,12 +483,13 @@
|
|
|
472
483
|
};
|
|
473
484
|
this.totalDateRange = res.date_range
|
|
474
485
|
this.saveAmount = res.save_amount
|
|
475
|
-
this.hasNext = res.next_page_token !== "";
|
|
476
486
|
if (this.page_token === 1) {
|
|
477
487
|
this.productList = list
|
|
478
488
|
} else {
|
|
479
489
|
this.productList = this.productList.concat(list);
|
|
480
490
|
}
|
|
491
|
+
this.next_page_token = res.next_page_token
|
|
492
|
+
this.hasNext = res.next_page_token !== "";
|
|
481
493
|
})
|
|
482
494
|
},
|
|
483
495
|
/**
|
|
@@ -497,7 +509,7 @@
|
|
|
497
509
|
this.tabIndex = i;
|
|
498
510
|
},
|
|
499
511
|
getAmout(amount) {
|
|
500
|
-
return this.$xdUniHelper.divisionFloatNumber(amount, 100)||0
|
|
512
|
+
return this.$xdUniHelper.divisionFloatNumber(amount, 100) || 0
|
|
501
513
|
},
|
|
502
514
|
getYearAndMonth(dateStr) {
|
|
503
515
|
// 将输入的日期字符串转换为Date对象
|
|
@@ -673,6 +685,7 @@
|
|
|
673
685
|
|
|
674
686
|
&-info {
|
|
675
687
|
flex: 1;
|
|
688
|
+
|
|
676
689
|
&-name {
|
|
677
690
|
font-size: 28rpx;
|
|
678
691
|
color: #333333;
|
|
@@ -701,7 +714,8 @@
|
|
|
701
714
|
}
|
|
702
715
|
}
|
|
703
716
|
}
|
|
704
|
-
|
|
717
|
+
|
|
718
|
+
.monthDisabled {
|
|
705
719
|
background: #FCFCFC !important;
|
|
706
720
|
color: #EEEEEE !important;
|
|
707
721
|
}
|
|
@@ -116,6 +116,7 @@
|
|
|
116
116
|
let urlSearch = item.share_image_url.split('?')[1];
|
|
117
117
|
let newImgUrl = getServiceUrl(item.share_image_url);
|
|
118
118
|
item.share_image_url = newImgUrl.split('?')[0] + '?' + urlSearch;
|
|
119
|
+
item.wx_mini_share_image = getServiceUrl(item.wx_mini_share_image);
|
|
119
120
|
return item;
|
|
120
121
|
});
|
|
121
122
|
})
|
|
@@ -128,7 +129,7 @@
|
|
|
128
129
|
let curShare = this.shareList[shareIndex];
|
|
129
130
|
this.setShareInfo({
|
|
130
131
|
title: "您的好友邀请您使用PLUS会员",
|
|
131
|
-
imageUrl: curShare.
|
|
132
|
+
imageUrl: curShare.wx_mini_share_image,
|
|
132
133
|
path: `${curShare.jump_url}`,
|
|
133
134
|
});
|
|
134
135
|
},
|