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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-mall",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -18,7 +18,7 @@
18
18
  class="tab_item"
19
19
  v-for="(item,index) in titleList"
20
20
  :key="index"
21
- :class="{long:tabLayout === 'v1', short: tabLayout === 'v2'}"
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 style="width:100%;height: 100%;"
45
- show-location
46
- :longitude="mapCenter.longitude"
47
- :latitude="mapCenter.latitude"
48
- :markers="marketList"
49
- @markertap="handleMarketTap"
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 v-for="(item,index) in marketList" :key="index" :marker-id="item.id"
56
- style="background: rgba(0,0,0,.8);border-radius: 20px;padding: 4px 8px;color: #FFFFFF;"
57
- :style="{display: item.id === showMarkerId ? 'block' : 'none'}"
58
- >
59
- {{ item.title }}
60
- </cover-view>
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 = '16rpx 12rpx';
252
+ padding = '20rpx 24rpx'
251
253
  if(this.titleList.length === 1) padding = '16rpx 0'
252
- height = '68rpx';
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 - 110 - 72;
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 40rpx;
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: 8rpx;
742
+ height: 6rpx;
741
743
  background-color: var(--main-color);
742
744
  border-radius: 6rpx;
743
- }
744
-
745
- &.long {
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
  }
@@ -29,7 +29,7 @@ export default function (data, gValue, gColor, oldData){
29
29
  handleCustom: (cb) => {
30
30
  XdBus.getParentApi('getOptionsNamespaces')()
31
31
  .then(res => {
32
- cb(res.list)
32
+ cb([{label: '全部', value: 'all'}].concat(res.list))
33
33
  })
34
34
  .catch();
35
35
  }