瀏覽代碼

[首页优惠券库存增加][增加]:首页优惠券库存增加

tags/2.2.4
meo 6 年之前
父節點
當前提交
fdfb5b138d
共有 3 個文件被更改,包括 6 次插入6 次删除
  1. +4
    -3
      components/coupons/index.wxml
  2. +2
    -2
      components/coupons/index.wxss
  3. +0
    -1
      pages/index/index.js

+ 4
- 3
components/coupons/index.wxml 查看文件

@@ -6,19 +6,20 @@
</view>
<view class="coupons-info">
<view class="coupons-info-name">{{data.title}}</view>
<view class="coupons-info-name subtitle ">{{data.subTitle}}</view>
<view class="coupons-info-name subtitle">{{data.subTitle}}</view>
<view class="coupons-info-manjian" style="margin-top:10rpx;" wx:if="{{data.type == 1}}">
满¥{{data.usePriceStr}}可用
</view>
<view class="coupons-info-manjian" wx:elif="{{data.type == 2||data.type == 3||data.type==4||data.type==5}}">
仅限本店使用
</view>
<view class="coupons-info-name subtitle ">剩余库存: {{data.remainInventory}}</view>
</view>
<view class="coupons-btn">
<!-- 优惠券价格 -->
<view class="coupons-info-price">
<text class="coupons-info-price-p">¥{{data.salePrice/100}}</text>
<text class="coupons-info-price-o">¥{{data.price/100}}</text>
<text class="coupons-info-price-p">¥{{data.salePriceStr}}</text>
<text class="coupons-info-price-o">¥{{data.priceStr}}</text>
</view>
<i-button i-class="coupons-btn-gm" wx:if="{{data.type==4}}" data-date='{{data}}'>领取</i-button>
<i-button i-class="coupons-btn-gm" wx:elif="{{data.type == 1||data.type == 2||data.type==3||data.type==4}}" data-date='{{data}}'>购买</i-button>


+ 2
- 2
components/coupons/index.wxss 查看文件

@@ -92,12 +92,12 @@
color: #ffffff !important;
letter-spacing: 0;
height: 50rpx !important;
width: 114rpx !important;
width: 138rpx !important;
line-height: 50rpx !important;
}
.subtitle {
font-size: 26rpx;
color: #666;
color: #333;
font-weight: 100;
}
.coupons-info-manjian {


+ 0
- 1
pages/index/index.js 查看文件

@@ -36,7 +36,6 @@ Page({
title: "加载中"
});
var scene = decodeURIComponent(options.scene);
var that = this;
setTimeout(function() {
wx.hideLoading();
}, 2200);


Loading…
取消
儲存