jufubao-base 1.0.242-beta4 → 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
|
@@ -146,6 +146,9 @@
|
|
|
146
146
|
import { mapState } from 'vuex';
|
|
147
147
|
|
|
148
148
|
export default {
|
|
149
|
+
//#ifdef MP-WEIXIN
|
|
150
|
+
options: { styleIsolation: 'shared' },
|
|
151
|
+
//#endif
|
|
149
152
|
name: "JfbBaseConsumpCode",
|
|
150
153
|
components: {
|
|
151
154
|
XdFontIcon,
|
|
@@ -258,10 +261,12 @@
|
|
|
258
261
|
|
|
259
262
|
if (Object.keys(this.stateLocation).length === 0) {
|
|
260
263
|
this.tip = '为了给您提供更好的服务需要获取您的位置信息'
|
|
261
|
-
this.showLocationDialog = true
|
|
264
|
+
this.showLocationDialog = true;
|
|
262
265
|
this.showMask = true;
|
|
263
266
|
this.showDialog = false;
|
|
264
267
|
return
|
|
268
|
+
} else{
|
|
269
|
+
this.showLocationDialog = false
|
|
265
270
|
}
|
|
266
271
|
}
|
|
267
272
|
if (!this.options.shop_id) {
|
|
@@ -1076,7 +1081,7 @@
|
|
|
1076
1081
|
.dialog-btns {
|
|
1077
1082
|
width: 100%;
|
|
1078
1083
|
display: flex;
|
|
1079
|
-
justify-content: space-
|
|
1084
|
+
justify-content: space-around;
|
|
1080
1085
|
|
|
1081
1086
|
}
|
|
1082
1087
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<view class="jfb-base-footer__body">
|
|
20
20
|
<view :style="[bodyStyle]">
|
|
21
21
|
<xd-footer-bar
|
|
22
|
-
class="footer-bar"
|
|
22
|
+
class="footer-bar-deep"
|
|
23
23
|
style="height:100%"
|
|
24
24
|
v-if="list !== null"
|
|
25
25
|
:height="height"
|
|
@@ -49,6 +49,9 @@
|
|
|
49
49
|
import getServiceUrl from "@/common/getServiceUrl";
|
|
50
50
|
|
|
51
51
|
export default {
|
|
52
|
+
//#ifdef MP-WEIXIN
|
|
53
|
+
options: { styleIsolation: 'shared' },
|
|
54
|
+
//#endif
|
|
52
55
|
name: "JfbBaseFooter",
|
|
53
56
|
components: {
|
|
54
57
|
XdFontIcon,
|
|
@@ -200,7 +203,7 @@
|
|
|
200
203
|
let bar = getContainerPropsValue(value, 'content.footer-setting', []);
|
|
201
204
|
let imageIcons = getContainerPropsValue(value, 'content.footerSettingImage', []);
|
|
202
205
|
this.backgroundImage = getContainerPropsValue(value, 'content.backgroundImage', '');
|
|
203
|
-
this.borderColor = getContainerPropsValue(value, 'content.borderColor', '');
|
|
206
|
+
this.borderColor = getContainerPropsValue(value, 'content.borderColor', '#eee');
|
|
204
207
|
this.list = {
|
|
205
208
|
bgColor: getContainerPropsValue(value, 'content.bgColor', '#fff'),
|
|
206
209
|
bodyStyle: this.bodyStyle,
|
|
@@ -226,9 +229,12 @@
|
|
|
226
229
|
|
|
227
230
|
<style scoped lang="less">
|
|
228
231
|
@import "./JfbBaseFooterLess.less";
|
|
229
|
-
.footer-bar
|
|
230
|
-
|
|
232
|
+
.footer-bar-deep {
|
|
233
|
+
::v-deep .xd-footer-tabbar__border {
|
|
234
|
+
border-color: var(--border-color);
|
|
235
|
+
}
|
|
231
236
|
}
|
|
237
|
+
|
|
232
238
|
|
|
233
239
|
.jfb-base-footer {
|
|
234
240
|
|
|
@@ -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
|
},
|