jufubao-mall 2.0.16-beta4 → 2.0.16-beta5
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/JfbMallNewShopList/JfbMallNewShopList.vue +15 -2
- package/src/components/JfbMallNewShopList/cusAttr/content.js +27 -0
- package/src/components/JfbMallShop/JfbMallShop.vue +5 -2
- package/src/components/JfbMallShop/cusAttr/advanced.js +14 -14
- package/src/components/JfbMallShop/cusAttr/content.js +13 -1
package/package.json
CHANGED
|
@@ -76,6 +76,11 @@
|
|
|
76
76
|
@on-event="handleToEvent"
|
|
77
77
|
></cus-shops>
|
|
78
78
|
</view>
|
|
79
|
+
<xd-more
|
|
80
|
+
v-if="(isPreview || !hasNextPage) && (shopList && shopList.length > 0)"
|
|
81
|
+
:color="footerColor"
|
|
82
|
+
:background="footerColor"
|
|
83
|
+
><text>我是有底线的</text></xd-more>
|
|
79
84
|
</view>
|
|
80
85
|
</view>
|
|
81
86
|
</template>
|
|
@@ -92,6 +97,7 @@
|
|
|
92
97
|
import XdQueryFilter from "./XdQueryFilter"
|
|
93
98
|
import { baseIsEmpty, } from "@/utils/xd.base";
|
|
94
99
|
import CusShops from "@/components/CusShops/CusShops.vue";
|
|
100
|
+
import XdMore from "@/components/XdMore/XdMore.vue";
|
|
95
101
|
let $vm = null;
|
|
96
102
|
|
|
97
103
|
export default {
|
|
@@ -101,11 +107,13 @@
|
|
|
101
107
|
XdFontIcon,
|
|
102
108
|
XdButton,
|
|
103
109
|
XdQueryFilter,
|
|
110
|
+
XdMore
|
|
104
111
|
},
|
|
105
112
|
mixins: [componentsMixins,extsMixins,JfbMallNewShopListMixin],
|
|
106
113
|
data() {
|
|
107
114
|
return {
|
|
108
115
|
//系统变量
|
|
116
|
+
isPreview:false,
|
|
109
117
|
closeMask: true,
|
|
110
118
|
shopList: null,
|
|
111
119
|
page_size: 10,
|
|
@@ -135,6 +143,7 @@
|
|
|
135
143
|
bodyPadding:{},
|
|
136
144
|
contentBgColor:'rgba(0,0,0,0)',
|
|
137
145
|
cusStyle:{}, //门店样式设置
|
|
146
|
+
footerColor:'#ddd',
|
|
138
147
|
|
|
139
148
|
|
|
140
149
|
//搜索条件
|
|
@@ -176,6 +185,9 @@
|
|
|
176
185
|
}, 500)
|
|
177
186
|
}
|
|
178
187
|
},
|
|
188
|
+
showQuery(val){
|
|
189
|
+
if(val === 'Y') this.getSearchFilterList();
|
|
190
|
+
},
|
|
179
191
|
},
|
|
180
192
|
filters:{
|
|
181
193
|
filterLabels(val){
|
|
@@ -263,7 +275,7 @@
|
|
|
263
275
|
this.serverType = gCPVal(container, 'serverType', [['SELL']]);
|
|
264
276
|
this.shopType = gCPVal(container, 'shopType', '');
|
|
265
277
|
this.shopListStyle = gCPVal(container, 'shopListStyle', 'v2');
|
|
266
|
-
this.showQuery = gCPVal(container, 'showQuery', 'N');
|
|
278
|
+
this.showQuery = 'Y'//gCPVal(container, 'showQuery', 'N');
|
|
267
279
|
if(this.showQuery === 'Y') this.filterMode = gCPVal(container, 'filterMode', [['filter']])
|
|
268
280
|
else this.filterMode = [];
|
|
269
281
|
|
|
@@ -328,7 +340,7 @@
|
|
|
328
340
|
//高级属性
|
|
329
341
|
this.shopInfoPath = gCPVal(container, "shopInfoPath", {value: ""}).value;
|
|
330
342
|
this.isAutoJump = gCPVal(container, 'isAutoJump', []);
|
|
331
|
-
this.scanPath = gCPVal(container, '
|
|
343
|
+
this.scanPath = gCPVal(container, 'scanPath', {value: ''}).value;
|
|
332
344
|
this.jhdPath = gCPVal(container, "jhdPath", {value: ""}).value;
|
|
333
345
|
this.qpPath = gCPVal(container, 'qpPath', {value: ''}).value;
|
|
334
346
|
this.seatPath = gCPVal(container, 'seatPath', {value: ''}).value;
|
|
@@ -567,6 +579,7 @@
|
|
|
567
579
|
//==system event===
|
|
568
580
|
onJfbLoad(options) {
|
|
569
581
|
|
|
582
|
+
|
|
570
583
|
//测试数据
|
|
571
584
|
// options['brand_id'] = '1007871,100535';
|
|
572
585
|
// options['shop_category_ids'] = 'book,cake';
|
|
@@ -306,6 +306,33 @@ export default (data, gValue, gColor, oldData={})=>{
|
|
|
306
306
|
{value:'travel', label: '旅游门票',input:'',def:'去订票',check: false,placeholder:''}
|
|
307
307
|
])
|
|
308
308
|
},
|
|
309
|
+
rules:[{
|
|
310
|
+
validator: (rule, value, callback) => {
|
|
311
|
+
debugger
|
|
312
|
+
let errorStr = '';
|
|
313
|
+
//设置为空
|
|
314
|
+
if(!value || (value && value.length === 0)) {
|
|
315
|
+
callback();
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
//非空,判断设置的名称长度不能大于4
|
|
319
|
+
if(value && value.length > 0) {
|
|
320
|
+
let len = value.length;
|
|
321
|
+
for(let i = 0; i < len; i++) {
|
|
322
|
+
if(value[i].input.length > 4) {
|
|
323
|
+
errorStr = `${value[i].label}名称最大长度不能超过4个汉字`;
|
|
324
|
+
break
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
if(errorStr) {
|
|
329
|
+
callback(errorStr)
|
|
330
|
+
return
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
callback()
|
|
334
|
+
}, message: '输入名称内容最多4字', trigger: ['blur', 'change']
|
|
335
|
+
}]
|
|
309
336
|
},
|
|
310
337
|
{ele: 'group_end'},
|
|
311
338
|
].filter(i=>i)
|
|
@@ -263,6 +263,7 @@
|
|
|
263
263
|
travelPath: "",
|
|
264
264
|
showCode: '',
|
|
265
265
|
productInfoPath: "",
|
|
266
|
+
codePath: "",
|
|
266
267
|
|
|
267
268
|
cartStyle: '',
|
|
268
269
|
cartName: "",
|
|
@@ -502,6 +503,7 @@
|
|
|
502
503
|
this.travelPath = getContainerPropsValue(container, 'content.travelPath', {value: ""}).value;
|
|
503
504
|
this.showCode = gCPVal(container, 'showCode', 'Y');
|
|
504
505
|
this.productInfoPath = getContainerPropsValue(container, 'content.productInfoPath', {value: ""}).value;
|
|
506
|
+
this.codePath = getContainerPropsValue(container, 'content.codePath', {value: ""}).value;
|
|
505
507
|
|
|
506
508
|
this.isShowCashier = getContainerPropsValue(container, 'content.isShowCashier', 'Y');
|
|
507
509
|
this.padding = getContainerPropsValue(container, "content.padding",{});
|
|
@@ -605,7 +607,8 @@
|
|
|
605
607
|
let sy = `${item.province_name}${item.city_name}${item.area_name}${item.street_name}`;
|
|
606
608
|
return `${sy}${item.address}`;
|
|
607
609
|
},
|
|
608
|
-
handleToExchange(
|
|
610
|
+
handleToExchange(item) {
|
|
611
|
+
let key = item.consume_mode;
|
|
609
612
|
let params = JSON.parse(JSON.stringify(this.options || {}));
|
|
610
613
|
if(params['shop_id']) delete params['shop_id'];
|
|
611
614
|
params['x-params'] = Base64.encodeURI(`shop_id:${this.shopInfo.shop_id}`);
|
|
@@ -669,7 +672,7 @@
|
|
|
669
672
|
},
|
|
670
673
|
handleDetail(item){
|
|
671
674
|
if (this.$configProject['isPreview'])return;
|
|
672
|
-
toProductDetail(this, item, this.
|
|
675
|
+
toProductDetail(this, item, this.codePath, true);
|
|
673
676
|
},
|
|
674
677
|
toCallPhone(){
|
|
675
678
|
uni.makePhoneCall({
|
|
@@ -104,20 +104,20 @@ export default (data)=>{
|
|
|
104
104
|
},
|
|
105
105
|
inline: false,
|
|
106
106
|
},
|
|
107
|
-
{
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
},
|
|
107
|
+
// {
|
|
108
|
+
// label: '商品详情:',
|
|
109
|
+
// ele: 'xd-select-pages-path',
|
|
110
|
+
// valueKey: 'productInfoPath',
|
|
111
|
+
// placeholder: '请选择旅游门票跳转路径',
|
|
112
|
+
// groupKey:'advanced',
|
|
113
|
+
// value: data['productInfoPath'] || null,
|
|
114
|
+
// labelInline:true,
|
|
115
|
+
// className: "input100",
|
|
116
|
+
// setting: {
|
|
117
|
+
// router: XdBus.getParentApi('getPagesTree'),
|
|
118
|
+
// },
|
|
119
|
+
// inline: false,
|
|
120
|
+
// },
|
|
121
121
|
|
|
122
122
|
{
|
|
123
123
|
label: '版本号:',
|
|
@@ -101,7 +101,8 @@ export default function (data, gValue,gColor,oldData){
|
|
|
101
101
|
groupKey: 'content',
|
|
102
102
|
className: 'input80',
|
|
103
103
|
placeholder: "聚好兑",
|
|
104
|
-
inline: false
|
|
104
|
+
inline: false,
|
|
105
|
+
max: 5,
|
|
105
106
|
},
|
|
106
107
|
{
|
|
107
108
|
label: '标题',
|
|
@@ -113,6 +114,7 @@ export default function (data, gValue,gColor,oldData){
|
|
|
113
114
|
groupKey: 'content',
|
|
114
115
|
className: 'input80',
|
|
115
116
|
inline: false,
|
|
117
|
+
max: 5,
|
|
116
118
|
placeholder: "聚好兑"
|
|
117
119
|
},
|
|
118
120
|
{ ele: 'group_end' },
|
|
@@ -142,6 +144,7 @@ export default function (data, gValue,gColor,oldData){
|
|
|
142
144
|
groupKey: 'content',
|
|
143
145
|
className: 'input80',
|
|
144
146
|
placeholder: "扫一扫",
|
|
147
|
+
max: 5,
|
|
145
148
|
inline: false
|
|
146
149
|
},
|
|
147
150
|
{
|
|
@@ -154,6 +157,7 @@ export default function (data, gValue,gColor,oldData){
|
|
|
154
157
|
groupKey: 'content',
|
|
155
158
|
className: 'input80',
|
|
156
159
|
inline: false,
|
|
160
|
+
max: 5,
|
|
157
161
|
placeholder: "扫码提货"
|
|
158
162
|
},
|
|
159
163
|
{ ele: 'group_end' },
|
|
@@ -183,6 +187,7 @@ export default function (data, gValue,gColor,oldData){
|
|
|
183
187
|
groupKey: 'content',
|
|
184
188
|
className: 'input80',
|
|
185
189
|
placeholder: "去提货",
|
|
190
|
+
max: 5,
|
|
186
191
|
inline: false
|
|
187
192
|
},
|
|
188
193
|
{
|
|
@@ -195,6 +200,7 @@ export default function (data, gValue,gColor,oldData){
|
|
|
195
200
|
groupKey: 'content',
|
|
196
201
|
className: 'input80',
|
|
197
202
|
inline: false,
|
|
203
|
+
max: 5,
|
|
198
204
|
placeholder: "快捷提货"
|
|
199
205
|
},
|
|
200
206
|
{ ele: 'group_end' },
|
|
@@ -224,6 +230,7 @@ export default function (data, gValue,gColor,oldData){
|
|
|
224
230
|
groupKey: 'content',
|
|
225
231
|
className: 'input80',
|
|
226
232
|
placeholder: "去订票",
|
|
233
|
+
max: 5,
|
|
227
234
|
inline: false
|
|
228
235
|
},
|
|
229
236
|
{
|
|
@@ -236,6 +243,7 @@ export default function (data, gValue,gColor,oldData){
|
|
|
236
243
|
groupKey: 'content',
|
|
237
244
|
className: 'input80',
|
|
238
245
|
inline: false,
|
|
246
|
+
max: 5,
|
|
239
247
|
placeholder: "在线选座"
|
|
240
248
|
},
|
|
241
249
|
{ ele: 'group_end' },
|
|
@@ -280,6 +288,7 @@ export default function (data, gValue,gColor,oldData){
|
|
|
280
288
|
groupKey: 'content',
|
|
281
289
|
className: 'input80',
|
|
282
290
|
placeholder: "去下单",
|
|
291
|
+
max: 5,
|
|
283
292
|
inline: false
|
|
284
293
|
},
|
|
285
294
|
{
|
|
@@ -292,6 +301,7 @@ export default function (data, gValue,gColor,oldData){
|
|
|
292
301
|
groupKey: 'content',
|
|
293
302
|
className: 'input80',
|
|
294
303
|
inline: false,
|
|
304
|
+
max: 5,
|
|
295
305
|
placeholder: "到店自取"
|
|
296
306
|
},
|
|
297
307
|
{ ele: 'group_end' },
|
|
@@ -321,6 +331,7 @@ export default function (data, gValue,gColor,oldData){
|
|
|
321
331
|
groupKey: 'content',
|
|
322
332
|
className: 'input80',
|
|
323
333
|
placeholder: "去订票",
|
|
334
|
+
max: 5,
|
|
324
335
|
inline: false
|
|
325
336
|
},
|
|
326
337
|
{
|
|
@@ -333,6 +344,7 @@ export default function (data, gValue,gColor,oldData){
|
|
|
333
344
|
groupKey: 'content',
|
|
334
345
|
className: 'input80',
|
|
335
346
|
inline: false,
|
|
347
|
+
max: 5,
|
|
336
348
|
placeholder: "旅游门店"
|
|
337
349
|
},
|
|
338
350
|
{ ele: 'group_end' },
|