jufubao-mall 2.0.35-beta2 → 2.0.35-beta3

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.35-beta2",
3
+ "version": "2.0.35-beta3",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -108,13 +108,14 @@
108
108
  v-for="item in nearbyShopList"
109
109
  :key="item.key"
110
110
  :id="`scroll-${item.resource_shop_id}`"
111
+ @click="handleToEvent(item, 'shop')"
111
112
  >
112
113
  <view class="shop_list-item-title">
113
114
  <view class="title">
114
115
  <view>{{item.resource_shop_name}}</view>
115
116
  <view class="active" v-if="resource_shop_id === item.resource_shop_id">正在预览</view>
116
117
  </view>
117
- <view>
118
+ <view @click="handleToEvent(item, 'detail')">
118
119
  <text>详情</text>
119
120
  <xd-font-icon icon="iconxiangyou_xian" color="#999" size="30" width="26" height="26"></xd-font-icon>
120
121
  </view>
@@ -522,7 +523,6 @@
522
523
 
523
524
 
524
525
  handleRegionChange(e){
525
- console.log('handleRegionChange',e);
526
526
  //重新定位
527
527
  if(['location','update'].includes(e.causedBy)){
528
528
  this.localImage = '';
@@ -723,25 +723,12 @@
723
723
  * @description
724
724
  * @param item
725
725
  * @param type detail|shop
726
- * @param isMap
727
726
  */
728
- handleToEvent({item,type,isMap=false}) {
729
- let curShop = {};
730
- if(isMap) curShop = this.nearbyShopList.filter(it=>it.resource_shop_id === item.id)[0];
731
- else curShop = this.$xdUniHelper.cloneDeep(item);
732
-
727
+ handleToEvent(item,type) {
728
+ debugger
733
729
  let parmas = [];
734
730
  let url = ''
735
- if(curShop.resource_shop_id) parmas.push(`resource_shop_id=${curShop.resource_shop_id}`);
736
- if(curShop.brand_id) parmas.push(`brand_id=${curShop.brand_id}`);
737
- if(curShop.consume_mode) parmas.push(`consume_mode=${curShop.consume_mode.join(',')}`);
738
- if(curShop.shop_id) parmas.push(`shop_id=${curShop.shop_id}`);
739
-
740
- //详情增加扩张参数
741
- if(curShop.exts_params && type === 'detail'){
742
- parmas.push(`exts_params=${curShop.exts_params}`);
743
- parmas.push(`resource_shop=${Base64.encodeURI(JSON.stringify({shop_id: curShop.shop_id,resource_shop_id: curShop.resource_shop_id }))}`);
744
- }
731
+ if(item['resource_shop_id']) parmas.push(`resource_shop_id=${item['resource_shop_id']}`)
745
732
 
746
733
  //去门店
747
734
  if(type === 'shop') url = this.codePath;
@@ -751,7 +738,6 @@
751
738
 
752
739
  if(!url) throw new Error(`${type} => 未设置访问地址,参数:${parmas.join('&')}`);
753
740
 
754
-
755
741
  //预览模式
756
742
  if(this.$configProject['isPreview']) {
757
743
  console.warn(`uri=>${url}?${parmas.join('&')}`)
@@ -795,9 +781,9 @@
795
781
  .shop_map {
796
782
  background: #fff;
797
783
  font-size: unit(28, rpx);
798
-
799
784
  .mpa_wrap {
800
- height: 500rpx;
785
+ padding: 20rpx;
786
+ height: 460rpx;
801
787
  background: #fff;
802
788
  transition: all .3s ease-in-out;
803
789
  position: relative;
@@ -811,6 +797,7 @@
811
797
  height: 0;
812
798
  position: relative;
813
799
  z-index: 0;
800
+ padding: 0;
814
801
  overflow: hidden;
815
802
  }
816
803
  }
@@ -79,7 +79,7 @@ export default function (data, gValue, gColor, oldData) {
79
79
  },
80
80
  {ele: 'group_end'},
81
81
  {
82
- label: '间距设置',
82
+ label: '行间距',
83
83
  ele: 'xd-radio',
84
84
  groupKey: 'style',
85
85
  valueKey: 'cardItemSpaceStatus',