jufubao-mall 2.0.3 → 2.0.4
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
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
class="tab_item"
|
|
19
19
|
v-for="(item,index) in titleList"
|
|
20
20
|
:key="index"
|
|
21
|
-
:class="{
|
|
21
|
+
:class="{short: tabLayout === 'v2'}"
|
|
22
22
|
@click="tab=item.value"
|
|
23
23
|
:style="[tab === item.value?tabActItemStyleComp:tabItemStyleComp]"
|
|
24
24
|
>
|
|
@@ -41,23 +41,25 @@
|
|
|
41
41
|
></xd-baidu-map>
|
|
42
42
|
<!--#endif-->
|
|
43
43
|
<!-- #ifdef MP-WEIXIN -->
|
|
44
|
-
<map
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
<map
|
|
45
|
+
style="width:100%;height: 100%;"
|
|
46
|
+
show-location
|
|
47
|
+
:longitude="mapCenter.longitude"
|
|
48
|
+
:latitude="mapCenter.latitude"
|
|
49
|
+
:markers="marketList"
|
|
50
|
+
@markertap="handleMarketTap"
|
|
50
51
|
>
|
|
51
52
|
<cover-view
|
|
52
53
|
class="cover_view"
|
|
53
54
|
slot="callout"
|
|
54
55
|
>
|
|
55
|
-
<cover-view
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
<cover-view
|
|
57
|
+
v-for="(item,index) in marketList"
|
|
58
|
+
:key="index"
|
|
59
|
+
:marker-id="item.id"
|
|
60
|
+
style="background: rgba(0,0,0,.8);border-radius: 20px;padding: 4px 8px;color: #FFFFFF;"
|
|
61
|
+
:style="{display: item.id === showMarkerId ? 'block' : 'none'}"
|
|
62
|
+
>{{ item.title }}</cover-view>
|
|
61
63
|
</cover-view>
|
|
62
64
|
</map>
|
|
63
65
|
<!-- #endif -->
|
|
@@ -245,11 +247,11 @@
|
|
|
245
247
|
}
|
|
246
248
|
},
|
|
247
249
|
tabsStyleComp() {
|
|
248
|
-
let padding = 0, height = '100rpx';
|
|
250
|
+
let padding = '0 24rpx', height = '100rpx';
|
|
249
251
|
if(this.tabLayout === 'v3') {
|
|
250
|
-
padding = '
|
|
252
|
+
padding = '20rpx 24rpx'
|
|
251
253
|
if(this.titleList.length === 1) padding = '16rpx 0'
|
|
252
|
-
height = '
|
|
254
|
+
height = '60rpx';
|
|
253
255
|
}
|
|
254
256
|
return {
|
|
255
257
|
padding,
|
|
@@ -269,7 +271,7 @@
|
|
|
269
271
|
}
|
|
270
272
|
},
|
|
271
273
|
contStyleComp(){
|
|
272
|
-
let height = this.layoutInfo.bodyMinHeightRpx -
|
|
274
|
+
let height = this.layoutInfo.bodyMinHeightRpx - 100 - 72;
|
|
273
275
|
if(this.mapIsExtend) height = height - 400;
|
|
274
276
|
height = height - this.getPMValue(this.bodyPadding, 'TB', 0);
|
|
275
277
|
return {
|
|
@@ -311,7 +313,7 @@
|
|
|
311
313
|
},
|
|
312
314
|
methods: {
|
|
313
315
|
onJfbLoad(options) {
|
|
314
|
-
this.setNameSpace(options);
|
|
316
|
+
this.setNameSpace(options, false);
|
|
315
317
|
this.uiBaiduAk = this.baiduAk || this.$settings.baiduAk;
|
|
316
318
|
this.myPosition = {
|
|
317
319
|
lng: this.stateLocation.longitude,
|
|
@@ -730,30 +732,19 @@
|
|
|
730
732
|
font-size: 32rpx;
|
|
731
733
|
color: #333;
|
|
732
734
|
font-weight: 400;
|
|
733
|
-
padding: 0
|
|
735
|
+
padding: 0 24rpx;
|
|
734
736
|
position: relative;
|
|
735
737
|
border-radius: 60rpx;
|
|
736
738
|
|
|
737
739
|
& .lineX {
|
|
738
740
|
position: absolute;
|
|
739
741
|
bottom: 14rpx;
|
|
740
|
-
height:
|
|
742
|
+
height: 6rpx;
|
|
741
743
|
background-color: var(--main-color);
|
|
742
744
|
border-radius: 6rpx;
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
& .lineX {
|
|
747
|
-
left: 40rpx;
|
|
748
|
-
right: 40rpx;;
|
|
749
|
-
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
&.short {
|
|
753
|
-
& .lineX {
|
|
754
|
-
left: 80rpx;
|
|
755
|
-
right: 80rpx;;
|
|
756
|
-
}
|
|
745
|
+
width: 64rpx;
|
|
746
|
+
left: 50%;
|
|
747
|
+
transform: translateX(-50%);
|
|
757
748
|
}
|
|
758
749
|
}
|
|
759
750
|
}
|