jufubao-mall 2.0.83 → 2.0.84-beta2

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.
@@ -0,0 +1,9 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(git checkout *)",
5
+ "Bash(npx lessc *)",
6
+ "Bash(python3 *)"
7
+ ]
8
+ }
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-mall",
3
- "version": "2.0.83",
3
+ "version": "2.0.84-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -121,8 +121,16 @@
121
121
  <!-- <xd-unit :price="prod.sale_price" :isOld="false" color="#333" :iconSize="0.3" :fontSize="36"/> -->
122
122
  <CusPrice :iconSize="0.3" :priceSize="36" :showPrice="prod.show_prices"></CusPrice>
123
123
  </view>
124
+ <!-- 只要是活动,购买数量都可以设置 -->
124
125
  <xd-number
125
- v-if="prod.status === 'ok'"
126
+ v-if="prod.is_activity === 'Y'"
127
+ v-model="prod.num"
128
+ :max="prod.max_buy !== -1 ? prod.max_buy : 100"
129
+ :min="prod.min_buy !== -1 ? prod.min_buy : 1"
130
+ @change="(num) => handleCartNumSet(num, prod, i)"
131
+ ></xd-number>
132
+ <xd-number
133
+ v-else-if="prod.status === 'ok'"
126
134
  :disabled="!(prod.status === 'ok')"
127
135
  v-model="prod.num"
128
136
  :max="prod.max_buy !== -1 ? prod.max_buy : 100"
@@ -130,8 +138,9 @@
130
138
  @change="(num) => handleCartNumSet(num, prod, i)"
131
139
  ></xd-number>
132
140
  </view>
133
- <view v-if="showActivityPrice==='Y'&&prod.is_activity==='Y'"
134
- :style="{color: activityPriceTextColor,fontSize:'24rpx',marginTop:'4rpx'}">{{prod.tip?prod.tip:'活动价'}}</view>
141
+ <view v-if="prod.tip" :style="{color: activityPriceTextColor,fontSize:'24rpx',marginTop:'4rpx'}">{{ prod.tip }}</view>
142
+ <view v-else-if="showActivityPrice==='Y'&&prod.is_activity==='Y'"
143
+ :style="{color: activityPriceTextColor,fontSize:'24rpx',marginTop:'4rpx'}">活动价</view>
135
144
  </view>
136
145
  </view>
137
146
  </uni-swipe-action-item>
@@ -57,8 +57,9 @@
57
57
  </view>
58
58
  <view style="font-size: 28rpx;color:#999">{{prod['product_num'] ? 'x': ''}} {{prod['product_num']}}</view>
59
59
  </view>
60
- <view v-if="showActivityPrice==='Y'&&prod.is_activity==='Y'"
61
- :style="{color:priceTextColor,fontSize:'24rpx'}">{{prod.error_message?prod.error_message:'活动价'}}</view>
60
+ <view v-if="prod.error_message" :style="{color:priceTextColor,fontSize:'24rpx'}">{{prod.error_message}}</view>
61
+ <view v-else-if="showActivityPrice==='Y'&&prod.is_activity==='Y'"
62
+ :style="{color:priceTextColor,fontSize:'24rpx'}">活动价</view>
62
63
  </view>
63
64
  </view>
64
65
  <view v-if="prod.blessingKey" class="wish_comment">
@@ -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/home/root/Base-Jufubao/xd-commands-bussiness/${threePackagePath}`;
12
- }
13
-
14
- if (packname === 'gxd-uni-library-editx') {
15
- return `/Users/shiyonggao/home/root/Base-Jufubao/xd-uni-library-editx/${threePackagePath}`;
16
- }
17
-
18
- };
19
-
20
- module.exports = {
21
- getPackagePath
22
- }