jufubao-mall 2.0.44-beta2 → 2.0.44

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.44-beta2",
3
+ "version": "2.0.44",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -814,8 +814,12 @@ export default {
814
814
  }),
815
815
  },
816
816
  }).then((res) => {
817
+ const hasValue = (v) => v !== undefined && v !== null && `${v}` !== "";
818
+ let url = this.orderConfirmPath + `?order_id=${res.cart_order_id}`;
819
+ if (hasValue(this.gift_scene)) url += `&scene=${encodeURIComponent(this.gift_scene)}`;
820
+ if (hasValue(gift_id)) url += `&gift_partner=${encodeURIComponent(gift_id)}`;
817
821
  this.$xdUniHelper.navigateTo({
818
- url: this.orderConfirmPath + `?order_id=${res.cart_order_id}&scene=${this.gift_scene}&gift_partner=${gift_id}`,
822
+ url,
819
823
  });
820
824
  });
821
825
  },
@@ -46,142 +46,6 @@ module.exports = [
46
46
  isConsole: true,
47
47
  disabled: true,
48
48
  },
49
- {
50
- mapFnName: "getQuickPayQRCode",
51
- title: "门店核销 - 获取快速支付二维码",
52
- path: "/store/v1/order/get-quick-pay-code",
53
- isRule: false,
54
- params: {
55
- shop_id: ['门店id', 'Number', '必选'],
56
- temp_order_id: ['临时订单号第一次获取为空,再次获取需要传上次获取到数据', 'String', '必选'],
57
- },
58
- isConsole: true,
59
- disabled: true,
60
- },
61
- {
62
- mapFnName: "getQRCodeStatus",
63
- title: "获取快捷支付码扫码状态",
64
- path: "/store/v1/order/get-quick-pay-scan-status",
65
- isRule: false,
66
- params: {
67
- shop_id: ['门店id', 'Number', '必选'],
68
- temp_order_id: ['临时订单号第一次获取为空,再次获取需要传上次获取到数据', 'String', '必选'],
69
- },
70
- isConsole: true,
71
- disabled: true,
72
- },
73
- {
74
- path: "/pay/v1/quickpay/list-my-config",
75
- title: "快捷支付-获取我的支付顺序",
76
- mapFnName: "getMyPayOrderConfig",
77
- isRule: false,
78
- params: {},
79
- isConsole: true,
80
- disabled: true,
81
- },
82
- {
83
- path: "/pay/v1/quickpay/save-my-config",
84
- title: "订单支付-选座可用钱包列表",
85
- mapFnName: "saveMyPayOrderConfig",
86
- isRule: false,
87
- data: {
88
- configs: ['支付顺序配置', 'String', '必选'],
89
- pay_method: ['支付方式 card=卡,coupon=优惠券,wallet=钱包', 'String', '必选'],
90
- priority_rules: ['优先级规则', 'array[string]', '必选'],
91
- },
92
- isConsole: true,
93
- disabled: true,
94
- },
95
- {
96
- path: "/store/v1/order/batch-use-card-created",
97
- title: "批量使用卡券下单",
98
- mapFnName: "batchUseCardCreated",
99
- isRule: false,
100
- data: {
101
- temp_order_id: ['temp_order_id', 'Number', '必选'],
102
- business_code: ['业务类型', 'String', '必选'],
103
- },
104
- isConsole: true,
105
- disabled: true,
106
- },
107
- {
108
- path: '/store/v1/order/async-submit-status',
109
- title: "获取异步下单的状态",
110
- mapFnName: "getAsyncSubmitStatus",
111
- isRule: false,
112
- params: {
113
- request_order_id: ['temp_order_id', 'Number', '必选'],
114
- },
115
- isConsole: true,
116
- disabled: true,
117
- },
118
- {
119
- mapFnName: "getListUserPayChannel",
120
- title: "获取用户可用支付渠道",
121
- path: "/pay/v1/pay-channel/list-user-pay-channel",
122
- isRule: false,
123
- params: {
124
- providers: ['支付方式id 多个用逗号分隔', "String", '必选']
125
- },
126
- isConsole: true,
127
- disabled: true
128
- },
129
- {
130
- mapFnName: "setThirdPlace",
131
- title: "第三方渠道下单",
132
- path: "/pay/v1/order/third-place",
133
- isRule: false,
134
- data: {
135
- order_id: ['订单号', "String", "必填"],
136
- channel_provider_id: ['支付渠道id', "String", '必选']
137
- },
138
- isConsole: true,
139
- disabled: true
140
- },
141
- {
142
- mapFnName: "updatePay",
143
- title: "修改订单为支付中",
144
- path: "/order/v1/order/update-to-paying",
145
- isRule: false,
146
- data: {
147
- main_order_id: ['订单号', "String", "必填"],
148
- },
149
- isConsole: true,
150
- disabled: true
151
- },
152
- {
153
- mapFnName: "getListBindedCards",
154
- title: "门店可选卡列表",
155
- path: "/store/v1/shop/list-binded-cards",
156
- isRule: false,
157
- params: {
158
- shop_id: ['shop_id ', "Number", "必填"],
159
- show_type: ['show_type ', "String", "非必填"],
160
- sort_method : ['sort_method', "String", "非必填"],
161
- },
162
- isConsole: true,
163
- disabled: true
164
- },
165
- {
166
- mapFnName: 'getBaseByIdCardDetail',
167
- isRule: false,
168
- title: '获得绑定的卡详情',
169
- prefix: 'detal',
170
- path: '/card/v1/card-bind/get-bind-card',
171
- params: {
172
- card_number: ['卡号', 'String', '必选'],
173
- },
174
- disabled: true,
175
- },
176
- {
177
- mapFnName: 'getCardYue',
178
- isRule: false,
179
- title: '获得绑定的卡剩余点数',
180
- prefix: 'yue',
181
- path: '/card/v1/card-bind/get-bind-card-points',
182
- params: {
183
- card_number: ['卡号', 'String', '必选'],
184
- },
185
- disabled: true,
186
- },
49
+
50
+
187
51
  ];
@@ -2,6 +2,7 @@
2
2
  import style from "./cusAttr/style";
3
3
  import advanced from "./cusAttr/advanced";
4
4
  import content from "./cusAttr/content";
5
+
5
6
  /**
6
7
  * @description 当表单组件中有联动操作时候,使用方法进行返回
7
8
  */
@@ -38,39 +38,31 @@
38
38
  <view class="distance_t" v-if="shopInfo.distance">{{shopInfo.distance}}</view>
39
39
  </view>
40
40
  </view>
41
- <view>
42
- <view class="shop_sub" v-if="shopInfo.business_time_name">
43
- 营业时间:<text>{{ shopInfo.business_time_name }}</text>
44
- </view>
45
- </view>
46
41
  <view>
47
42
  <view class="shop_sub">
48
- <view>{{getAddress(shopInfo)}}</view>
49
- </view>
50
- </view>
51
- <view>
52
- <view class="shop_sub contact_box">
53
- <view v-if="shopInfo.distance">{{shopInfo.distance}}</view>
54
- <view class="p_n_box">
55
- <view v-if="isNavigation" class="p_n" @click="toNavigationApp(shopInfo)">
56
- <xd-font-icon size="30" icon="iconwodedizhi" style="margin-right: 4rpx;"></xd-font-icon>导航
57
- </view>
58
- <view v-if="shopInfo.phone" class="p_n" @click="toCallPhone">
59
- <xd-font-icon size="30" icon="icondianhuatubiao" style="margin-right: 4rpx;"></xd-font-icon>电话
60
- </view>
61
- </view>
43
+ <view>{{shopInfo.brand_about}}</view>
62
44
  </view>
63
45
  </view>
64
46
  </view>
65
47
  </view>
66
48
  </view>
67
49
  <view class="shop_addr">
50
+ <view class="addr_title">门店地址</view>
51
+ <view class="addr_detail">{{getAddress(shopInfo)}}</view>
68
52
  <view class="addr_foot">
69
- <view id="textRef">{{shopInfo.brand_about}}
53
+ <view>
54
+ <template v-if="shopInfo.business_time_name">
55
+ 营业时间:<text>{{ shopInfo.business_time_name }}</text>
56
+ </template>
70
57
  </view>
71
- <view id="textRefHidden">{{shopInfo.brand_about}}
58
+ <view class="p_n_box">
59
+ <view v-if="isNavigation" class="p_n" @click="toNavigationApp(shopInfo)">
60
+ <xd-font-icon size="30" icon="iconwodedizhi" style="margin-right: 4rpx;"></xd-font-icon>导航
61
+ </view>
62
+ <view v-if="shopInfo.phone" class="p_n" @click="toCallPhone">
63
+ <xd-font-icon size="30" icon="icondianhuatubiao" style="margin-right: 4rpx;"></xd-font-icon>电话
64
+ </view>
72
65
  </view>
73
- <view v-if="isTextOverflow" class="addr_more" @click="handleShowBrandDetail">品牌详情<xd-font-icon style="margin-left: 4rpx;" size="22" icon="iconxiangyou_xian"></xd-font-icon> </view>
74
66
  </view>
75
67
  </view>
76
68
  <view class="shop_exchange_box">
@@ -93,7 +85,7 @@
93
85
  <xd-button @click="handleToExchange(item)" style="margin:0 0 0 20rpx" type="primary" size="small">{{exchangeBtnName}}</xd-button>
94
86
  </view>
95
87
  </view>
96
- <view v-if="item.consume_mode === 'QP' && showTake === 'Y'&&is_plus_site" class="shop_wrap-exchange" :key="item.consume_mode">
88
+ <view v-if="item.consume_mode === 'QP' && showTake === 'Y'" class="shop_wrap-exchange" :key="item.consume_mode">
97
89
  <view class="shop_wrap-exchange_txt">
98
90
  <view class="exchange_name">{{takeName}}</view>
99
91
  <view class="exchange_desc">{{item.desc}}</view>
@@ -131,11 +123,6 @@
131
123
  </view>
132
124
  </template>
133
125
  </view>
134
- <!-- 二维码 -->
135
- <view class="qrcode_box" v-if="shopInfo&&shopInfo.show_qrcode&&!is_plus_site&&showTake==='Y'">
136
- <qrcode-show :show_qrcode="shopInfo.show_qrcode" :shop_id="shopInfo.shop_id" :layoutInfo="layoutInfo"></qrcode-show>
137
- </view>
138
- <!-- 二维码 -->
139
126
  <view v-if="isShowCodeProduct && productList.length" class="code_product_wrap">
140
127
  <view class="code_title">电子码商品</view>
141
128
  <view class="product_list">
@@ -194,18 +181,6 @@
194
181
  </view>
195
182
  </view>
196
183
  </view>
197
- <xd-down-drawer
198
- :show.sync="showBrandDetailDialog"
199
- height="50vh"
200
- >
201
- <template>
202
- <view class="brand_detail_box">
203
- {{shopInfo.brand_about}}
204
- 福司令渠道门店品牌描述内容福司令渠道门店品牌描述内容
205
- 福司令渠道门店品牌描述品牌描述描述福司令渠道门店品牌描述品牌描述描述福司令渠道门店品牌描述品牌描述描述
206
- </view>
207
- </template>
208
- </xd-down-drawer>
209
184
  </view>
210
185
  </template>
211
186
 
@@ -216,14 +191,12 @@
216
191
  // #ifdef H5
217
192
  import XdBaiduMap from "./XdBaiduMap"
218
193
  // #endif
219
- import QrcodeShow from "./QrcodeShow"
220
194
  import { jfbRootExec } from "@/utils/xd.event";
221
195
  import { getContainerPropsValue, gCPVal, toProductDetail } from "@/utils/xd.base";
222
196
  import JfbMallShopMixin from "./JfbMallShopMixin";
223
197
  import componentsMixins from "@/mixins/componentsMixins";
224
198
  import extsMixins from "@/mixins/extsMixins"
225
199
  import getServiceUrl from "@/common/getServiceUrl";
226
- import XdDownDrawer from "@/components/XdDownDrawer/XdDownDrawer"
227
200
  import { mapState } from 'vuex';
228
201
  import Color from 'color'
229
202
  export default {
@@ -233,10 +206,8 @@
233
206
  CusPrice,
234
207
  XdButton,
235
208
  // #ifdef H5
236
- XdBaiduMap,
209
+ XdBaiduMap
237
210
  // #endif
238
- XdDownDrawer,
239
- QrcodeShow,
240
211
  },
241
212
  mixins: [componentsMixins,extsMixins,JfbMallShopMixin],
242
213
  data() {
@@ -316,8 +287,6 @@
316
287
  showDiscount: "",
317
288
  isAddCart: "",
318
289
  differ: "",
319
- isTextOverflow:false,
320
- showBrandDetailDialog:false,
321
290
  }
322
291
  },
323
292
  watch: {
@@ -441,18 +410,10 @@
441
410
  },
442
411
  },
443
412
  created() {
413
+ this.init(this.container);
444
414
  this.is_plus_site = this.projectAttr.headers['X-Site-Group']==="vip";
445
415
  this.alphaColor = Color(this.mainColor).alpha(0.1).toString();
446
416
  this.isPreview = this.$configProject.isPreview;
447
- console.log(this.isPreview, 'isPreview')
448
- this.init(this.container);
449
- },
450
- mounted() {
451
- this.$nextTick(()=>{
452
- setTimeout(()=>{
453
- this.checkTextOverflow();
454
- }, 3000)
455
- })
456
417
  },
457
418
  methods: {
458
419
  onJfbLoad(options) {
@@ -503,7 +464,6 @@
503
464
  this.shopInfo = shopInfo;
504
465
  this.mapCenter = {lng: shopInfo.longitude, lat: shopInfo.latitude}
505
466
  this.initBaidu = true;
506
- this.checkTextOverflow();
507
467
  this.$nextTick(() => {
508
468
  if(this.isShowCodeProduct){
509
469
  this.p_getProductList();
@@ -537,14 +497,9 @@
537
497
  this.scanBtnName = gCPVal(container, 'scanBtnName', '扫一扫')
538
498
  this.scanRemark = getContainerPropsValue(container, 'content.scanRemark', '');
539
499
  this.scanPath = getContainerPropsValue(container, 'content.scanPath', {value: ""}).value;
540
- if(this.is_plus_site){
541
- this.showTake = oldShowCashier || gCPVal(container, 'showTake', 'Y');
542
- this.takeBtnName = gCPVal(container, 'takeBtnName', '去提货');
543
- this.takeName = getContainerPropsValue(container, 'content.takeName', '快捷提货');
544
- }else{
545
- this.showTake = gCPVal(container, 'showTake', 'Y');
546
- }
547
- console.log("this.showTake",this.takeBtnName,this.takeName, this.showTake)
500
+ this.showTake = oldShowCashier || gCPVal(container, 'showTake', 'Y');
501
+ this.takeBtnName = gCPVal(container, 'takeBtnName', '去提货');
502
+ this.takeName = getContainerPropsValue(container, 'content.takeName', '快捷提货');
548
503
  this.takeRemark = getContainerPropsValue(container, 'content.takeRemark', '');
549
504
  this.takePath = getContainerPropsValue(container, 'content.takePath', {value: ""}).value;
550
505
  this.showMovie = gCPVal(container, 'showMovie', ['Y',"N"], {isOld: true});
@@ -633,34 +588,6 @@
633
588
  this.hasNext = !!this.next_page_token;
634
589
  })
635
590
  },
636
- checkTextOverflow() {
637
- // 创建选择器查询
638
- const query = uni.createSelectorQuery().in(this)
639
-
640
- // 获取元素位置信息
641
- query.select('#textRef').fields({
642
- size: true,
643
- scrollOffset: true
644
- }, (res) => {
645
- if (!res) return;
646
- const hiddenQuery = uni.createSelectorQuery().in(this)
647
- hiddenQuery.select('#textRefHidden').fields({
648
- size: true,
649
- scrollOffset: true
650
- }, (hiddenRes) => {
651
- if (!hiddenRes) return;
652
- console.log('元素尺寸:', res);
653
-
654
- this.isTextOverflow = hiddenRes.height > res.height;
655
- console.log('文字是否超出3行:', this.isTextOverflow);
656
- console.log('展示容器高度:', res.height);
657
- console.log('文本实际高度:', hiddenRes.height);
658
- })
659
- .exec();
660
- })
661
- .exec();
662
-
663
- },
664
591
  handleError(){
665
592
  this.errorStatus = true;
666
593
  },
@@ -785,9 +712,6 @@
785
712
  onJfbBack(options) {
786
713
  this.$xdUniHelper.navigateBack();
787
714
  },
788
- handleShowBrandDetail(){
789
- this.showBrandDetailDialog = true;
790
- },
791
715
  }
792
716
  }
793
717
 
@@ -811,8 +735,8 @@
811
735
  }
812
736
  .shop_addr{
813
737
  background: #FFFFFF;
814
- padding: 24rpx 32rpx 32rpx 32rpx;
815
- border-top: 2rpx solid #F8F8F8;
738
+ margin-top: 24rpx;
739
+ padding: 32rpx;
816
740
  .addr_title{
817
741
  font-size: 32rpx;
818
742
  color: #333333;
@@ -830,43 +754,26 @@
830
754
  font-size: 24rpx;
831
755
  color: #666666;
832
756
  margin-top: 20rpx;
833
- position: relative;
834
- }
835
- #textRef{
836
- display: -webkit-box;
837
- -webkit-box-orient: vertical;
838
- -webkit-line-clamp: 3;
839
- overflow: hidden;
840
- line-height: 40rpx;
841
- width: 100%;
842
757
  }
843
- #textRefHidden{
844
- position: absolute;
845
- top: 0;
846
- left: 0;
847
- width: 100%;
848
- z-index: -1;
849
- opacity: 0;
850
- line-height: 40rpx;
758
+ .p_n_box{
759
+ display: flex;
760
+ align-items: center;
761
+
851
762
  }
852
- .addr_more{
763
+
764
+ .p_n{
853
765
  display: flex;
854
- position: absolute;
855
- background-color: #FFFFFF;
856
- right: 0;
857
- bottom: 4rpx;
766
+ align-items: center;
767
+ background: var(--alpha-color);
858
768
  color: var(--main-color);
859
- box-shadow: -20rpx 0 20rpx rgba(255,255,255,1);
860
- cursor: pointer;
769
+ padding: 8rpx 20rpx;
770
+ border-radius: 30rpx;
771
+
772
+ & + .p_n{
773
+ margin-left: 24rpx;
774
+ }
861
775
  }
862
776
  }
863
- .qrcode_box{
864
- border-radius: unit(16, rpx);
865
- background: #FFFFFF;
866
- font-size: unit(28, rpx);
867
- padding: 0 unit(32, rpx);
868
- margin-top: unit(16, rpx);
869
- }
870
777
  .code_product_wrap{
871
778
  .code_title{
872
779
  font-size: 28rpx;
@@ -937,7 +844,7 @@
937
844
  background: #FFFFFF;
938
845
  font-size: unit(28, rpx);
939
846
  padding: 24rpx;
940
- margin-top: 16rpx;
847
+ margin-top: 24rpx;
941
848
  .mpa_wrap{
942
849
  height: unit(600, rpx);
943
850
  background: #fff;
@@ -956,7 +863,7 @@
956
863
  }
957
864
  }
958
865
  .shop_wrap{
959
- // border-radius: unit(16, rpx);
866
+ border-radius: unit(16, rpx);
960
867
  background: #FFFFFF;
961
868
 
962
869
  &-exchange {
@@ -994,7 +901,7 @@
994
901
  display: flex;
995
902
  justify-content: flex-start;
996
903
  align-items: flex-start;
997
- padding: 32rpx 32rpx 24rpx 32rpx;
904
+ padding: 32rpx;
998
905
 
999
906
 
1000
907
  .shop_image {
@@ -1085,32 +992,5 @@
1085
992
 
1086
993
  }
1087
994
  }
1088
- .contact_box{
1089
- display: flex;
1090
- justify-content: space-between;
1091
- align-items: center!important;
1092
- .p_n_box{
1093
- display: flex;
1094
- align-items: center;
1095
- width: auto !important;
1096
- .p_n{
1097
- display: flex;
1098
- align-items: center;
1099
- background: var(--alpha-color);
1100
- color: var(--main-color);
1101
- padding: 8rpx 20rpx;
1102
- border-radius: 30rpx;
1103
-
1104
- & + .p_n{
1105
- margin-left: 24rpx;
1106
- }
1107
- }
1108
- }
1109
- }
1110
- .brand_detail_box{
1111
- padding: 60rpx 32rpx 32rpx 32rpx;
1112
- font-size: 28rpx;
1113
- color: #666666;
1114
- }
1115
995
  }
1116
996
  </style>
@@ -46,7 +46,7 @@ module.exports = {
46
46
  business_time_json:
47
47
  '{"type":"","custom":{"end":"","start":"","weeks":[],"method":""}}',
48
48
  resource_shop_id: "3185468",
49
- shop_id: 52648,
49
+ shop_id: "52648",
50
50
  shop_icon:
51
51
  "https://jfbcake.oss-cn-beijing.aliyuncs.com/uploads/20220629/dda58a5983eeae3cfdea8bccc7cea714.jpg",
52
52
  distance: "20.7km",
@@ -70,8 +70,7 @@ module.exports = {
70
70
  resource_shop:
71
71
  "eyJyZXNvdXJjZV9zaG9wX2lkIjoiMzE4NTQ2OCIsInNob3BfaWQiOiI1MjY0OCJ9"
72
72
  },
73
- request_id: "8f0a57d7a475f96b",
74
- show_qrcode:'CARD',
73
+ request_id: "8f0a57d7a475f96b"
75
74
  },
76
75
  getShopProductList: {
77
76
  total_size: 106,
@@ -104,20 +104,6 @@ export default (data)=>{
104
104
  },
105
105
  inline: false,
106
106
  },
107
- {
108
- label: '支付成功:',
109
- ele: 'xd-select-pages-path',
110
- valueKey: 'successPath',
111
- placeholder: '请选择支付成功跳转路径',
112
- groupKey:'advanced',
113
- value: data['successPath'] || null,
114
- labelInline:true,
115
- className: "input100",
116
- setting: {
117
- router: XdBus.getParentApi('getPagesTree'),
118
- },
119
- inline: false,
120
- },
121
107
  // {
122
108
  // label: '商品详情:',
123
109
  // ele: 'xd-select-pages-path',
@@ -7,10 +7,8 @@ import {
7
7
  cusDisabled ,
8
8
  getCustomAttr,
9
9
  } from "@/utils/AttrTools";
10
+
10
11
  export default function (data, gValue,gColor,oldData){
11
- console.log(gValue,'gValue')
12
- let is_plus_site = gValue.projectAttr.headers['X-Site-Group']==="vip";
13
- console.log(is_plus_site,'is_plus_site')
14
12
  let isShowCashier = data.isShowCashier || "";
15
13
  let isShowExchange = data.isShowExchange || "";
16
14
  let oldShowCashier = (isShowCashier || isShowExchange) ? "N" : "Y";
@@ -194,7 +192,7 @@ export default function (data, gValue,gColor,oldData){
194
192
  valueKey: 'takeBtnName',
195
193
  labelInline: true,
196
194
  value: dataVal({ data, key: 'takeBtnName', dValue: '', gValue }),
197
- hidden: data.showTake !== 'Y'||!is_plus_site,
195
+ hidden: data.showTake !== 'Y',
198
196
  groupKey: 'content',
199
197
  className: 'input80',
200
198
  placeholder: "去提货",
@@ -207,7 +205,7 @@ export default function (data, gValue,gColor,oldData){
207
205
  valueKey: 'takeName',
208
206
  labelInline: true,
209
207
  value: dataVal({ data, key: 'takeName', dValue: '', gValue }),
210
- hidden: data.showTake !== 'Y'||!is_plus_site,
208
+ hidden: data.showTake !== 'Y',
211
209
  groupKey: 'content',
212
210
  className: 'input80',
213
211
  inline: false,
@@ -410,8 +410,7 @@
410
410
  Object.assign(params,item.params||{}, {
411
411
  brand_id: item.brand_id,
412
412
  shop_id: item.resource_shop_id,
413
- xnamespace: this.xnamespace,
414
- consume_mode:item.consume_mode.join(',')
413
+ xnamespace: this.xnamespace
415
414
  })
416
415
  params = this.$xdUniHelper.jsonToParams(params)
417
416
  this.$xdUniHelper.navigateTo({