yuminge-app/yun-min-program-plugin-master/packageE/team_sell/getCouponShare/getCouponShare.wxml

59 lines
2.1 KiB
Plaintext

<!--packageD/team_sell/getCouponShare/getCouponShare.wxml-->
<wxs module="m1">
module.exports.toFixed = function(number){
return number.toFixed(2);
};
</wxs>
<view class="couponShare" style="padding-bottom:100rpx;">
<view style="width:100%;height:226rpx;background:#fd4e4b"></view>
<!-- 优惠卷详情 -->
<view class="couponList">
<view class="couponBrand">
<image src="{{icon}}"></image>
</view>
<view class="couponName">{{datas.name}}</view>
<view class="condition">
<view class="condMoney" wx:if="{{datas.coupon_method == 1}}">
<text>¥</text>{{ datas.deduct }}
</view>
<view class="condMoney" wx:if="{{datas.coupon_method == 2}}">
{{ datas.discount }}<text>折</text>
</view>
<view style="font-size: 28rpx;line-height: 36rpx;margin-top:30rpx">满{{ datas.enough }}元可用</view>
</view>
<view class="validity">
<view class="valid">
<view>有效期</view>
<view>{{ time_start }} - {{ time_end }}</view>
</view>
</view>
<view class="couponBtn">
<view class="getBtn" wx:if="{{datas.api_availability == 3}}" style="background-color: #d4d4d4;" data-item="{{datas}}" catchtap="selectedcoupon">立即领取</view>
<view class="getBtn" wx:else data-item="{{datas}}" catchtap="selectedcoupon" data-id="{{goods[0].id}}">立即领取</view>
<!-- <view class="coppBtn" catchtap="fuzhi">复制文案</view> -->
</view>
</view>
<view class="shop">
<view style="line-height: 36rpx;font-size: 32rpx;">适用商品</view>
<view class="shopBox" wx:for="{{goods}}" wx:key="index" data-id="{{item.id}}" catchtap="toDetail">
<view class="img">
<image src="{{item.thumb}}"></image>
</view>
<view class="shopRight">
<view class="shopNmae">{{ item.title }}</view>
<view>
<view class="nowPrice">现价{{ item.price }}</view>
<view class="laterPrice">券后价¥{{ m1.toFixed(item.deduct_price) }}</view>
</view>
</view>
</view>
</view>
<view class="explain" wx:if="{{datas.description}}">
<view style="line-height: 36rpx;font-size: 32rpx;">领卷说明</view>
<view style="margin-top:20rpx">
<rich-text nodes='{{datas.description}}'></rich-text>
</view>
</view>
</view>