xiaoe_mp_npm 0.5.26-alpha3 → 0.5.26-alpha5
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.
|
@@ -97,15 +97,15 @@ Component({
|
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
// 判断金额长度,不同金额区间端显示不同样式(竖屏互动页优惠券样式)
|
|
100
|
-
isVerLongNumStyle1(data) {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
},
|
|
100
|
+
// isVerLongNumStyle1(data) {
|
|
101
|
+
// if (data.item && data.item.price) {
|
|
102
|
+
// let tempPrice = data.item.price / 100;
|
|
103
|
+
// if (tempPrice.toString().length >=6 ) {
|
|
104
|
+
// return true
|
|
105
|
+
// }
|
|
106
|
+
// }
|
|
107
|
+
// return false
|
|
108
|
+
// },
|
|
109
109
|
// 格式化使用说明
|
|
110
110
|
getDesInfo (data) {
|
|
111
111
|
if (!data.item.instructions) {
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
<block wx:if="{{item.discount_way == 1}}">
|
|
9
9
|
<view class="coupon-symbol">¥</view>
|
|
10
10
|
<!-- 竖屏卡片 -->
|
|
11
|
-
<view
|
|
12
|
-
{{price.ToFilter(item.price)}}
|
|
11
|
+
<view class="coupon-price">
|
|
12
|
+
<view>{{price.ToFilter(item.price)}}</view>
|
|
13
13
|
<view wx:if="{{item.price % 100 != 0}}">.{{ price.fixedFont(item.price) }}</view>
|
|
14
14
|
</view>
|
|
15
15
|
<!-- 横屏卡片 -->
|
|
16
|
-
<view wx:
|
|
17
|
-
{{price.ToFilter(item.price)}}
|
|
16
|
+
<!-- <view wx:elif style="font-size: {{isLongNumStyle1}}" class="coupon-price" >
|
|
17
|
+
<view>{{price.ToFilter(item.price)}}</view>
|
|
18
18
|
<view wx:if="{{item.price % 100 != 0}}">.{{ price.fixedFont(item.price) }}</view>
|
|
19
|
-
</view>
|
|
19
|
+
</view> -->
|
|
20
20
|
</block>
|
|
21
21
|
<block wx:if="{{item.discount_way == 2}}">
|
|
22
22
|
<view class="coupon-price">
|
package/package.json
CHANGED
|
@@ -97,15 +97,15 @@ Component({
|
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
// 判断金额长度,不同金额区间端显示不同样式(竖屏互动页优惠券样式)
|
|
100
|
-
isVerLongNumStyle1(data) {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
},
|
|
100
|
+
// isVerLongNumStyle1(data) {
|
|
101
|
+
// if (data.item && data.item.price) {
|
|
102
|
+
// let tempPrice = data.item.price / 100;
|
|
103
|
+
// if (tempPrice.toString().length >=6 ) {
|
|
104
|
+
// return true
|
|
105
|
+
// }
|
|
106
|
+
// }
|
|
107
|
+
// return false
|
|
108
|
+
// },
|
|
109
109
|
// 格式化使用说明
|
|
110
110
|
getDesInfo (data) {
|
|
111
111
|
if (!data.item.instructions) {
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
<block wx:if="{{item.discount_way == 1}}">
|
|
9
9
|
<view class="coupon-symbol">¥</view>
|
|
10
10
|
<!-- 竖屏卡片 -->
|
|
11
|
-
<view
|
|
12
|
-
{{price.ToFilter(item.price)}}
|
|
11
|
+
<view class="coupon-price">
|
|
12
|
+
<view>{{price.ToFilter(item.price)}}</view>
|
|
13
13
|
<view wx:if="{{item.price % 100 != 0}}">.{{ price.fixedFont(item.price) }}</view>
|
|
14
14
|
</view>
|
|
15
15
|
<!-- 横屏卡片 -->
|
|
16
|
-
<view wx:
|
|
17
|
-
{{price.ToFilter(item.price)}}
|
|
16
|
+
<!-- <view wx:elif style="font-size: {{isLongNumStyle1}}" class="coupon-price" >
|
|
17
|
+
<view>{{price.ToFilter(item.price)}}</view>
|
|
18
18
|
<view wx:if="{{item.price % 100 != 0}}">.{{ price.fixedFont(item.price) }}</view>
|
|
19
|
-
</view>
|
|
19
|
+
</view> -->
|
|
20
20
|
</block>
|
|
21
21
|
<block wx:if="{{item.discount_way == 2}}">
|
|
22
22
|
<view class="coupon-price">
|