jufubao-mall 2.0.91 → 2.0.92-beta1

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.91",
3
+ "version": "2.0.92-beta1",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -154,6 +154,7 @@
154
154
  :height="contProductImageHeight"
155
155
  :cell="column_num"
156
156
  :name-font="itemFontStyle"
157
+ :price-font="itemPriceFontStyle"
157
158
  :product-config="productConfig"
158
159
  :isPlus="isGVipSite"
159
160
  :item="item"
@@ -324,6 +325,7 @@
324
325
  imageRadius:'0',
325
326
  radius:'0',
326
327
  itemFontStyle:{},
328
+ itemPriceFontStyle:{},
327
329
  itemBgcColor:'',
328
330
  contBorder:'',
329
331
  contStyleBorder:0,
@@ -953,6 +955,14 @@
953
955
  gCPVal(container,'contStyle', {}, {sKey:'contStyleStatus',fields:['itemSpacing','contStyle']}),
954
956
  {fontSize: '28rpx', color: '#000', fontWeight: 'normal'},
955
957
  )
958
+ this.itemPriceFontStyle = this.getFontAndBgcStyle(
959
+ gCPVal(container,'priceFont', {}, {sKey:'priceFontStatus',fields:['priceFont']}),
960
+ {fontSize: '40', color: '', fontWeight: 'normal'},
961
+ )
962
+ //配置面板存储的fontSize带rpx后缀,此处去除避免下游重复拼接rpx导致单位无效
963
+ if (this.itemPriceFontStyle && this.itemPriceFontStyle.fontSize) {
964
+ this.itemPriceFontStyle.fontSize = String(this.itemPriceFontStyle.fontSize).replace('rpx', '');
965
+ }
956
966
 
957
967
  //商品样式关联属性
958
968
  const sValue = "{\"border\":0,\"backgroundColor\":\"#fff\"}";
@@ -44,7 +44,7 @@
44
44
  </view>
45
45
  <view class="qrcode_choose" @click="handleChooseCard">
46
46
  <view class="qrcode_choose_name"><xd-font-icon style="margin-right: 24rpx;" size="32" icon="iconpiao"></xd-font-icon>{{card_name}}</view>
47
- <view class="qrcode_choose_icon"><xd-font-icon style="margin-left: 4rpx;" size="22" icon="iconxiangyou_xian"></xd-font-icon></view>
47
+ <view class="qrcode_choose_icon"><view>切换票券</view><xd-font-icon style="margin-left: 4rpx;" size="22" icon="iconxiangyou_xian"></xd-font-icon></view>
48
48
  </view>
49
49
  <xd-down-drawer
50
50
  :show.sync="showCardDialog"
@@ -267,10 +267,10 @@
267
267
  }).then(res => {
268
268
  this.showCardList = res.list;
269
269
 
270
- //自动选择逻辑
271
- let useCard = this.showCardList.filter(item => item.is_auto_use === 'Y');
272
- if(useCard.length>0 && this.chooseData.length ===0) {
273
- let ticket = useCard[0];
270
+ //自动选择逻辑:优先选择is_auto_use为Y的卡,否则选择第一张卡
271
+ if(this.chooseData.length === 0 && this.showCardList.length) {
272
+ let useCard = this.showCardList.filter(item => item.is_auto_use === 'Y');
273
+ let ticket = useCard.length > 0 ? useCard[0] : this.showCardList[0];
274
274
  this.handlerTicketSelect(!this.checkedCards.includes(ticket.card_number), ticket);
275
275
  setTimeout(() => {
276
276
  this.handleChooseConfirm()
@@ -1,22 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * @description 第三方库
5
- * @param threePackagePath {String} 第三方库所在项目路径存放路径路
6
- * @param packname {String} 包名字
7
- * @returns {string|*}
8
- */
9
- const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>{
10
- if(packname === 'gxd-commands-bussiness') {
11
- return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-commands-bussiness/${threePackagePath}`;
12
- }
13
-
14
- if (packname === 'gxd-uni-library-editx') {
15
- return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library-editx/${threePackagePath}`;
16
- }
17
-
18
- };
19
-
20
- module.exports = {
21
- getPackagePath
22
- }