jufubao-mall 2.0.32-beta3 → 2.0.32-beta8

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.32-beta3",
3
+ "version": "2.0.32-beta8",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -17,8 +17,8 @@
17
17
  <!-- #endif -->
18
18
  <view class="jfb-mall-network-media__body" :style="[gCompStyle]">
19
19
  <view class="media-tab" v-if="cateOneList.length > 0">
20
- <view class="media-tab-hold" :style="holdTabStyleComp" v-if="!isPreview"></view>
21
- <view class="media-tab-cont" :style="tabStyleComp" :class="{isPreview:isPreview}">
20
+ <view class="media-tab-hold" :style="[holdTabStyleComp]" v-if="!isPreview"></view>
21
+ <view class="media-tab-cont" :style="[tabStyleComp]" :class="{isPreview:isPreview}">
22
22
  <cus-tab
23
23
  class="xd-tab"
24
24
  item-padding="0 16rpx"
@@ -80,7 +80,12 @@
80
80
  v-for="item in blessingData"
81
81
  :key="item.id"
82
82
  >
83
- <input :maxlength="item.struct.maxlength||16" v-model="item.data" :placeholder="item.value" />
83
+ <input
84
+ :maxlength="item.struct.maxlength||16"
85
+ :minlength="item.struct.minlength||0"
86
+ v-model="item.data"
87
+ placeholder-style="color: #ccc"
88
+ :placeholder="item.value || item.struct.placeholder" />
84
89
  <view
85
90
  class="media-input-tip"
86
91
  v-if="item.struct && item.struct.explain"
@@ -397,7 +402,6 @@
397
402
  if(this.$configProject['isPreview']) {
398
403
  this.addressPid = 157696
399
404
  }
400
-
401
405
  await this.getCategoryList();
402
406
  },
403
407
 
@@ -635,8 +639,10 @@
635
639
 
636
640
  },
637
641
  getProductInfo(item = null){
638
- this.prodcutInfo = '';
639
- if(item === null) this.hasProducts = 'N';
642
+ if(item === null) {
643
+ this.prodcutInfo = '';
644
+ this.hasProducts = 'N';
645
+ }
640
646
  else {
641
647
  this.hasProducts = 'Y';
642
648
  this.getList(item);
@@ -703,9 +709,6 @@
703
709
 
704
710
  getProductContent(product_id){
705
711
  return new Promise((resolve)=>{
706
- this.prodcutInfo = '';
707
- this.prodcutContKey = Date.now();
708
-
709
712
  jfbRootExec("getMallMediaProductContent", {
710
713
  vm: this,
711
714
  data: {
@@ -766,11 +769,14 @@
766
769
  }
767
770
  else {
768
771
  this.$xdHideLoading();
772
+ this.blessingData = [];
773
+ this.prodcutInfo = '';
769
774
  }
770
775
 
771
776
  }).catch(err=>{
772
777
  this.$xdHideLoading();
773
778
  this.productList = [ ]
779
+ this.prodcutInfo = '';
774
780
  })
775
781
  },
776
782
  //==商品相关操作=======
@@ -945,6 +951,8 @@
945
951
 
946
952
  .media-content {
947
953
  margin: 0 16rpx 16rpx;
954
+ position: relative;
955
+ z-index: 0;
948
956
  }
949
957
 
950
958
  .media-no-data {
@@ -972,7 +980,8 @@
972
980
 
973
981
  & > input {
974
982
  padding: 20rpx;
975
- background-color: #f8f8f8;
983
+ background-color: #fff;
984
+ border: 1px solid #ccc;
976
985
  height: 40rpx;
977
986
  line-height: 40rpx;
978
987
  border-radius: 16rpx;
@@ -3,7 +3,8 @@
3
3
  import {dataVal, isObject, statusDataVal, statusShow} from "@/utils/AttrTools";
4
4
 
5
5
  export default (data, gValue, gColor, oldData)=>{
6
-
6
+ let navStyle = 'line-6-8-s';
7
+ if(data['navStyle']) navStyle = data['navStyle'];
7
8
  return [
8
9
  {
9
10
  ele: 'title',
@@ -92,7 +93,7 @@ export default (data, gValue, gColor, oldData)=>{
92
93
  setting: {
93
94
  fontSize: true,
94
95
  weight:true,
95
- bgColor:true,
96
+ bgColor: navStyle === 'tags',
96
97
  selected:true,
97
98
  default:{
98
99
  color: '#333',