jufubao-mall 2.0.35-beta10 → 2.0.35-beta12

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-beta10",
3
+ "version": "2.0.35-beta12",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -271,7 +271,7 @@
271
271
  */
272
272
  init(container) {
273
273
  //基础
274
- this.xnamespace = gCPVal(container, "xnamespace", this.projectAttr.business_code||this.xnamespace);
274
+ this.xnamespace = gCPVal(container, "xnamespace", '');
275
275
  this.serverType = gCPVal(container, 'serverType', [['SELL']]);
276
276
  this.shopType = gCPVal(container, 'shopType', '');
277
277
  this.shopListStyle = gCPVal(container, 'shopListStyle', 'v2');
@@ -112,35 +112,35 @@
112
112
  </template>
113
113
  <template v-else-if="nearbyShopList.length >0">
114
114
  <template v-for="(item,index) in nearbyShopList">
115
- <view
116
- :style="[
117
- cusStyle.item,
118
- (index === 0?{marginTop: itemTop + 'rpx'}:{}),
119
- ]"
120
- class="shop_list-item"
121
- :class='[{"shop_list-item-act":resource_shop_id === item.resource_shop_id}]'
122
- :key="item.key"
123
- :id="`scroll-${item.resource_shop_id}`"
124
- @click="handleToEvent(item, 'shop')"
125
- >
126
- <view class="shop_list-item-title">
127
- <view class="title">
128
- <view>{{item.resource_shop_name}}</view>
129
- <view class="active" v-if="resource_shop_id === item.resource_shop_id">正在预览</view>
115
+ <view :style="[cusStyleBox]">
116
+
117
+ <view
118
+ :style="[cusStyle.item, (index === 0?{marginTop: itemTop + 'rpx'}:{})]"
119
+ class="shop_list-item"
120
+ :class='[{"shop_list-item-act":resource_shop_id === item.resource_shop_id}]'
121
+ :key="item.key"
122
+ :id="`scroll-${item.resource_shop_id}`"
123
+ @click="handleToEvent(item, 'shop')"
124
+ >
125
+ <view class="shop_list-item-title">
126
+ <view class="title">
127
+ <view>{{item.resource_shop_name}}</view>
128
+ <view class="active" v-if="resource_shop_id === item.resource_shop_id">正在预览</view>
129
+ </view>
130
+ <view @click.stop="handleToEvent(item, 'detail')">
131
+ <text>详情</text>
132
+ <xd-font-icon icon="iconxiangyou_xian" color="#999" size="30" width="26" height="26"></xd-font-icon>
133
+ </view>
130
134
  </view>
131
- <view @click.stop="handleToEvent(item, 'detail')">
132
- <text>详情</text>
133
- <xd-font-icon icon="iconxiangyou_xian" color="#999" size="30" width="26" height="26"></xd-font-icon>
135
+ <view class="address" :style="{marginBottom:item['business_time_name']?'16rpx':0}">
136
+ <view>{{item.address}}</view>
137
+ <view
138
+ v-if="item.distance_conversion || item.distance"
139
+ :style="[cusStyle.distance]"
140
+ >{{item.distance_conversion || item.distance}}</view>
134
141
  </view>
142
+ <view class="openTime" v-if="item['business_time_name']">营业时间:{{item['business_time_name']}}</view>
135
143
  </view>
136
- <view class="address" :style="{marginBottom:item['business_time_name']?'16rpx':0}">
137
- <view>{{item.address}}</view>
138
- <view
139
- v-if="item.distance_conversion || item.distance"
140
- :style="[cusStyle.distance]"
141
- >{{item.distance_conversion || item.distance}}</view>
142
- </view>
143
- <view class="openTime" v-if="item['business_time_name']">营业时间:{{item['business_time_name']}}</view>
144
144
  </view>
145
145
  </template>
146
146
  <xd-more>更多附近门店可搜索名称或地址查询</xd-more>
@@ -231,6 +231,7 @@
231
231
  //style
232
232
  bodyPadding: {},
233
233
  cusStyle: {},
234
+ cusStyleBox:{},
234
235
  cardItemShadowWidth:0,
235
236
  itemTop:0,
236
237
  itemBottom:0,
@@ -268,7 +269,7 @@
268
269
  return {
269
270
  height: this.layoutInfo.bodyMinHeightRpx + 'rpx',
270
271
  '--main-color': this.tabStyle.actColor,
271
- '--main-alpha-color': this.$colorChange(this.mainColor).alpha(0.01).toString(),
272
+ '--main-alpha-color': this.$colorChange(this.mainColor).alpha(0.1).toString(),
272
273
  '--main-alpha5-color': this.$colorChange(this.mainColor).alpha(0.2).toString()
273
274
  }
274
275
  },
@@ -341,7 +342,7 @@
341
342
  * @param container {object} 业务组件对象自己
342
343
  */
343
344
  init(container) {
344
- this.xnamespace = gCPVal(container, 'xnamespace', this.projectAttr.business_code||this.xnamespace);
345
+ this.xnamespace = gCPVal(container, 'xnamespace', '');
345
346
  this.serverType = gCPVal(container, 'serverType', [['SELL']]);
346
347
  this.showOftenTab = 'N' //todo gCPVal(container, 'showOftenTab', 'N');
347
348
  if(this.showOftenTab === 'N') this.titleList = [{label: '附近门店', value: 'nearby'}];
@@ -431,17 +432,20 @@
431
432
  this.itemTop = 0;
432
433
  this.itemBottom = 0;
433
434
  }
434
-
435
+ this.cusStyleBox = {
436
+ 'border-radius':cardItemRadius + 'rpx',
437
+ backgroundColor: cardItemBgColor,
438
+ 'margin-right': `${right}rpx`,
439
+ 'margin-left': `${left}rpx`,
440
+ 'margin-bottom': `${cardItemSpace}rpx`,
441
+ }
435
442
  this.cusStyle = {
436
443
  'item':{
437
- 'margin-bottom': `${cardItemSpace}rpx`,
438
444
  'border-radius':cardItemRadius + 'rpx',
439
445
  'box-shadow': cardItemShadow,
440
446
  'border': cardItemBorder,
441
- 'backgroundColor': cardItemBgColor,
442
447
  'padding': this.getMarginAndPadding(itemPadding, 0),
443
- 'margin-right': `${right}rpx`,
444
- 'margin-left': `${left}rpx`
448
+
445
449
  },
446
450
  'image':{
447
451
  'border-radius': itemImageRadius + 'rpx',
@@ -975,6 +979,7 @@
975
979
  & > view:last-child {
976
980
  flex-shrink: 0;
977
981
  margin-left: 48rpx;
982
+ line-height: 44rpx;
978
983
  font-size: 24rpx;
979
984
  color: #999;
980
985
  display: flex;