jufubao-takeorder 1.0.2-beta6 → 1.0.2-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
|
@@ -23,33 +23,38 @@
|
|
|
23
23
|
<view class="menu_wrap" :style="[menuWrapBoxStyle]">
|
|
24
24
|
<view class="jfb-takeorder-index__body-filter">
|
|
25
25
|
<view
|
|
26
|
-
:style="{ color: filterType === 'province' ? mainColor : '' }"
|
|
26
|
+
:style="{ color: (filterType === 'province' || selectedProvs.length > 0) ? mainColor : '' }"
|
|
27
27
|
@click="handleSwitchFilter('province')"
|
|
28
28
|
class="jfb-takeorder-index__body-filter-item"
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
>
|
|
30
|
+
<view v-if="selectedProvs.length===0">省份</view
|
|
31
|
+
>
|
|
32
|
+
<view v-else class="jfb-takeorder-index__body-filter-text">{{ selectedProvsName.join('') }}</view>
|
|
33
|
+
<XdFontIcon
|
|
31
34
|
style="font-weight: bolder"
|
|
32
35
|
size="20"
|
|
33
36
|
icon="iconxia_down"
|
|
34
37
|
></XdFontIcon
|
|
35
38
|
></view>
|
|
36
39
|
<view
|
|
37
|
-
:style="{ color: filterType === 'city' ? mainColor : '' }"
|
|
40
|
+
:style="{ color: (filterType === 'city' || selectedCity.length > 0) ? mainColor : '' }"
|
|
38
41
|
@click="handleSwitchFilter('city')"
|
|
39
42
|
class="jfb-takeorder-index__body-filter-item"
|
|
40
|
-
><view>城市</view
|
|
41
|
-
><
|
|
43
|
+
><view v-if="selectedCity.length===0">城市</view
|
|
44
|
+
><view v-else class="jfb-takeorder-index__body-filter-text">{{ selectedCityName.join('') }}</view>
|
|
45
|
+
<XdFontIcon
|
|
42
46
|
style="font-weight: bolder"
|
|
43
47
|
size="20"
|
|
44
48
|
icon="iconxia_down"
|
|
45
49
|
></XdFontIcon
|
|
46
50
|
></view>
|
|
47
51
|
<view
|
|
48
|
-
:style="{ color: filterType === 'brand' ? mainColor : '' }"
|
|
52
|
+
:style="{ color: (filterType === 'brand' || selectedBrands.length > 0) ? mainColor : '' }"
|
|
49
53
|
@click="handleSwitchFilter('brand')"
|
|
50
54
|
class="jfb-takeorder-index__body-filter-item"
|
|
51
|
-
><view>品牌</view
|
|
52
|
-
><
|
|
55
|
+
><view v-if="selectedBrands.length===0">品牌</view
|
|
56
|
+
><view v-else class="jfb-takeorder-index__body-filter-text">{{ selectedBrandsName.join('') }}</view>
|
|
57
|
+
<XdFontIcon
|
|
53
58
|
style="font-weight: bolder"
|
|
54
59
|
size="20"
|
|
55
60
|
icon="iconxia_down"
|
|
@@ -228,6 +233,9 @@ export default {
|
|
|
228
233
|
isPreview: false,
|
|
229
234
|
isOpenNew: "N",
|
|
230
235
|
isOpenWin: "N",
|
|
236
|
+
selectedProvsName: [],
|
|
237
|
+
selectedCityName: [],
|
|
238
|
+
selectedBrandsName: [],
|
|
231
239
|
};
|
|
232
240
|
},
|
|
233
241
|
computed: {
|
|
@@ -518,11 +526,13 @@ export default {
|
|
|
518
526
|
// 如果“全部”未被选中,则只选中“全部”
|
|
519
527
|
else {
|
|
520
528
|
this.selectedProvs = ["all"];
|
|
529
|
+
this.selectedProvsName = ["全部"];
|
|
521
530
|
}
|
|
522
531
|
} else {
|
|
523
532
|
// 如果当前选中了“全部”,则先取消“全部”的选择
|
|
524
533
|
if (this.selectedProvs.includes("all")) {
|
|
525
534
|
this.selectedProvs = []; // 清空,准备添加具体选项
|
|
535
|
+
this.selectedProvsName = [];
|
|
526
536
|
}
|
|
527
537
|
|
|
528
538
|
const index = this.selectedProvs.findIndex(
|
|
@@ -531,14 +541,16 @@ export default {
|
|
|
531
541
|
if (index > -1) {
|
|
532
542
|
// 如果已选中,则取消选择
|
|
533
543
|
this.selectedProvs.splice(index, 1);
|
|
534
|
-
|
|
544
|
+
this.selectedProvsName.splice(index, 1);
|
|
535
545
|
// 【可选】当所有具体选项都被取消时,自动选中“全部”
|
|
536
546
|
if (this.selectedProvs.length === 0) {
|
|
537
547
|
this.selectedProvs = ["all"];
|
|
548
|
+
this.selectedProvsName = ["全部"];
|
|
538
549
|
}
|
|
539
550
|
} else {
|
|
540
551
|
// 如果未选中,则添加
|
|
541
552
|
this.selectedProvs.push(item.value);
|
|
553
|
+
this.selectedProvsName.push(item.label);
|
|
542
554
|
}
|
|
543
555
|
}
|
|
544
556
|
},
|
|
@@ -550,9 +562,11 @@ export default {
|
|
|
550
562
|
if (index > -1) {
|
|
551
563
|
// 如果已选中,则取消选择
|
|
552
564
|
this.selectedBrands.splice(index, 1);
|
|
565
|
+
this.selectedBrandsName.splice(index, 1);
|
|
553
566
|
} else {
|
|
554
567
|
// 如果未选中,则添加
|
|
555
568
|
this.selectedBrands.push(item.value);
|
|
569
|
+
this.selectedBrandsName.push(item.label);
|
|
556
570
|
}
|
|
557
571
|
},
|
|
558
572
|
handleGetNew() {
|
|
@@ -636,20 +650,25 @@ export default {
|
|
|
636
650
|
if (index > -1) {
|
|
637
651
|
// 如果已选中,则取消选择
|
|
638
652
|
this.selectedCity.splice(index, 1);
|
|
653
|
+
this.selectedCityName.splice(index, 1);
|
|
639
654
|
} else {
|
|
640
655
|
// 如果未选中,则添加
|
|
641
656
|
this.selectedCity.push(city.city_code);
|
|
657
|
+
this.selectedCityName.push(city.city_name);
|
|
642
658
|
}
|
|
643
659
|
},
|
|
644
660
|
handleResetFilter() {
|
|
645
661
|
if (this.filterType === "province") {
|
|
646
662
|
this.selectedProvs = [];
|
|
663
|
+
this.selectedProvsName = [];
|
|
647
664
|
}
|
|
648
665
|
if (this.filterType === "brand") {
|
|
649
666
|
this.selectedBrands = [];
|
|
667
|
+
this.selectedBrandsName = [];
|
|
650
668
|
}
|
|
651
669
|
if (this.filterType === "city") {
|
|
652
670
|
this.selectedCity = [];
|
|
671
|
+
this.selectedCityName = [];
|
|
653
672
|
}
|
|
654
673
|
this.filterType = "";
|
|
655
674
|
this.showFilterQuery = false;
|
|
@@ -743,6 +762,13 @@ export default {
|
|
|
743
762
|
margin-right: 10rpx;
|
|
744
763
|
}
|
|
745
764
|
}
|
|
765
|
+
&-text {
|
|
766
|
+
max-width: 90rpx;
|
|
767
|
+
overflow: hidden;
|
|
768
|
+
text-overflow: ellipsis;
|
|
769
|
+
white-space: nowrap;
|
|
770
|
+
min-width: 0;
|
|
771
|
+
}
|
|
746
772
|
}
|
|
747
773
|
&-query {
|
|
748
774
|
&-filter {
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
<input
|
|
170
170
|
:disabled="quoteDisabled"
|
|
171
171
|
v-model="quotePrice"
|
|
172
|
-
placeholder="
|
|
172
|
+
placeholder="请输入订单报价金额"
|
|
173
173
|
/>
|
|
174
174
|
</view>
|
|
175
175
|
<view class="quote-advice"
|
|
@@ -618,7 +618,7 @@ export default {
|
|
|
618
618
|
100
|
|
619
619
|
);
|
|
620
620
|
const price = parseFloat(this.quotePrice);
|
|
621
|
-
if (price
|
|
621
|
+
if (price > max) {
|
|
622
622
|
this.$xdAlert({ content: `报价价格只能在建议报价区间内` });
|
|
623
623
|
return;
|
|
624
624
|
}
|