QYF-GitLab1
4 天以前 b55024ee2f42aa93e0ecaa3113bdeb286f6e59ac
pages/scanResult/index.wxml
@@ -7,9 +7,10 @@
      </view>
      <view class="productInfo">
        <text wx:if="{{item.name}}" class="publicCss">{{ item.name }}</text>
        <text wx:if="{{item.tourism_ISBN}}" class="publicCss">ISBN:{{ item.tourism_ISBN }}</text>
        <text wx:if="{{item.tourism_author}}" class="publicCss">作者:{{ item.tourism_author }}</text>
        <text wx:if="{{item.price}}" class="publicCss">价格:<text style="color:red">¥{{ item.price }}</text></text>
        <!-- <text wx:if="{{item.price}}" class="publicCss"
          >价格:<text style="color: red">¥{{ item.price }}</text></text
        > -->
        <text class="type-box">{{item.itemType}}</text>
      </view>
    </view>
  </view>
@@ -22,9 +23,7 @@
      <view class="price">¥{{ item.value }}元</view>
      <view class="couponInfo">
        <text>{{ item.name }}</text>
        <text class="timer">{{
          item.isForAllProduct ? "全场可用" : "仅可购买指定商品"
          }}</text>
        <text class="timer">{{ item.isForAllProduct ? "全场可用" : "仅可购买指定商品" }}</text>
        <view class="timer">
          <text>{{ item.start }}</text>
          <text>~</text>
@@ -34,11 +33,15 @@
    </view>
  </view>
  <view class="button-example" wx:if="{{productInfo.length > 0 || couponList.length > 0}}">
    <t-button theme="danger" bindtap="useActiveCode" size="large" block>{{textValue}}</t-button>
    <t-button bindtap="useActiveCode" size="large" block>{{textValue}}</t-button>
  </view>
  <view class="text">
    <rich-text space="emsp" nodes="{{rules.tourism_content}}" />
  </view>
  <view class="explain" wx:if="{{textValue == '激活'}}">
    <view>激活成功后,请到“京师智教”小程序个人中心“激活商品”中查看激活商品。</view>
    <view class="center">激活码最终解释权归北京师范大学出版集团所有。</view>
  </view>
</view>
<view wx:else class="empyt">
  <t-empty icon="error-circle" description="请扫描正确的二维码" />