+
95
-

微信小程序优惠券样式怎么写?

微信小程序优惠券样式怎么写?


网友回复

+
15
-

wxml

<view class="container coupons">
  <view class="coupons-header">
    <block wx:for="{{tabs}}" wx:key="id">
        <view class="tabs-item {{currentTabsIndex==index?'selected':''}}" bindtap="onTabsItemTap" data-index="{{index}}">
            {{item}}
        </view>
    </block>
    <view class="tips-box tips-bag">
      <text class="tips-title" style="color:#fff;">1</text>
    </view>
  </view>
  <view class="coupons-body">
    <view class="TabsClassContent" hidden="{{ currentTabsIndex!=0 }}">
      <block wx:for="{{ [0, 1] }}" wx:key="id">
        <view class="app">
          <view class="wrapper">
            <view class="content">
              <view class="coupon-top">
                <text>¥50.00</text>
              </view>
              <view class="coupon-middle">
                店名:八中撒码头
              </view>
              <view class="coupon-bottom">
                有效期:2019.12.23-2020.01.23
              </view>
            </view>
            <view class="split-line"></view>
            <view class="tip">
              <view class="conditions">
                满500元使用
              </view>
              <button class="useNow" size="mini" bindtap="">立即使用</button>
            </view>
            <label><view class="share-button">
              <image style="width:50rpx;height:50rpx;" src="../../images/icon/buttonShare.png"></image>
              <button open-type="share" data-id="{{item.id}}" class="shareButton"></button>
            </view></label>                           
          </view>
        </view>  
      </block>
    </view>
    <view class="TabsClassContent" hidden="{{ currentTabsIndex!=1 }}">
    </view>
    <view class="TabsClassContent" hidden="{{ currentTabsIndex!=2 }}">
      <view class="app">
        <view class="wrapper useless">
          <image class="overTime" src="../../images/icon/overTime.png"></image>
          <view class="content">
            <view class="coupon-top">
              <text>¥50.00</text>
            </view>
            <view cla...

点击查看剩余70%

我知道答案,我要回答