123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <!--pages/luckDraw/profile.wxml-->
- <!-- 首部信息 -->
- <custom-page head-bg-image="https://dy.shpr.top/luckDraw/per_head.png" bind:reachbottom="scrollToBottom">
- <topbar slot="head" title="抽奖记录" topbar-title-class="profile-topbar"/>
- <view slot="body">
- <view class="head flex-column">
- <image wx:if="{{!isLogin}}" class="head_portrait" src="/images/welfareMall/head-portrait.png" />
- <!-- 获取用户头像 -->
- <open-data wx:if="{{isLogin}}" class="head_portrait" type="userAvatarUrl"></open-data>
- <view class="head_text" wx:if="{{isLogin}}">{{phone.toHide(mobileTop)}}</view>
- <button class="sigin-isLogin" wx:if="{{!isLogin}}" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">登录</button>
- </view>
- <!-- 中部说明 -->
- <view class="explain flex-row">
- <view class="explain-left flex-column" catchtap="{{isLogin?'getProfile':''}}">
- <view class="explain-text">{{couponNum}}</view>
- <view class="explain-discount">优惠券</view>
- <view class="{{noCoupon?'explain-column':'explain-columnNo'}}"></view>
- </view>
- <view class="explain-right flex-column" catchtap="{{isLogin?'getPrize':''}}">
- <view class="explain-text">{{thirdPrizeNum}}</view>
- <view class="explain-utility">奖品</view>
- <view class="{{noPrize?'explain-column':'explain-columnNo'}}"></view>
- </view>
- </view>
- <!-- 主要内容 -->
- <view class="check-in-content flex-column">
- <!-- 优惠券内容 -->
- <view hidden="{{hidden1}}">
- <view wx:for="{{goodsItemList}}" wx:key="index" data-id="{{item.id}}" class="{{item.couponType == 'C'?'coupon flex-row':'coupon2 flex-row'}}">
- <view class="coupon-left flex-row">
- <!-- 代金券 -->
- <view class="coupon-left-symbol" wx:if="{{item.couponType == 'C'}}">¥</view>
- <view class="{{item.formatReduceCost.length > 3 ?'coupon-left-numSmall':'coupon-left-num'}}" wx:if="{{item.couponType == 'C'}}">{{item.formatReduceCost ?item.formatReduceCost:0}}</view>
- <!-- 折扣券 -->
- <view class="{{item.formatDiscount.length > 3 ?'coupon-left-numSmall':'coupon-left-num'}}" wx:if="{{item.couponType == 'D'}}">{{item.formatDiscount ?item.formatDiscount:0}}</view>
- <view class="coupon-left-symbol" wx:if="{{item.couponType == 'D'}}" style="font-size: 16px;">折</view>
- </view>
- <view class="coupon-center flex-column">
- <view class="coupon-center-upper over-ellipsis">{{item.couponTitle}}</view>
- <view class="coupon-center-bm flex-row">
- <view class="coupon-center-block1"></view>
- <view class="coupon-center-middle" wx:if="{{item.formatLeastCost == '0'}}">无门槛</view>
- <view class="coupon-center-middle" wx:if="{{item.formatLeastCost != '0'}}">满{{item.formatLeastCost}}使用</view>
- <view class="coupon-center-block2"></view>
- </view>
- <view class="coupon-center-lower">{{item.couponBeginTimestamp}}-{{item.couponEndTimestamp}}</view>
- </view>
- <view class="coupon-right">
- <view class="{{item.couponType == 'C'?'coupon-right-usenow flex-row':'coupon-right-usenow2 flex-row'}}">
- <navigator class="btn_exchange" target="miniProgram" app-id="wxd92a2d29f8022f40" path="pages/index/index" open-type='navigate'>
- </navigator>
- </view>
- </view>
- </view>
- <view class="no_result" wx:if="{{noResult}}">———— 抱歉,您暂无可用优惠券 ————</view>
- <view class="no_result" wx:if="{{noMore}}">———— 更多优惠券 | 敬请期待 ————</view>
- </view>
- <!-- 奖品 -->
- <view hidden="{{hidden2}}">
- <view class="prize-content flex-row" wx:for="{{goodsItemList}}" wx:key="index" data-id="{{item.id}}">
- <view class="prize-img flex-column">
- <image class="prize-img-small" src="{{item.fullGoodsSmallImage}}" />
- </view>
- <view class="prize-text">
- <view class="prize-text-top over-ellipsis">{{item.goodsName}}</view>
- <view class="prize-text-buttom over-ellipsis-two">{{item.hitDesc}}</view>
- </view>
- <view class="prize-jump flex-row">
- <view class="btn_exchange" data-src="{{item.fullGoodsBigImage}}" catchtap="toLookHitPhoto">
- </view>
- </view>
- </view>
- <view class="no_result" wx:if="{{noResult}}">———— 抱歉,您暂无可领取奖品 ————</view>
- <view class="no_result" wx:if="{{noMore}}">———— 更多奖品 | 敬请期待 ————</view>
- </view>
- </view>
- </view>
- </custom-page>
- <!-- 使用wxs 手机号码中间四位显示为*号 -->
- <wxs module="phone">
- var toHide = function (array) {
- var mphone = array.substring(0, 3) + '****' + array.substring(7);
- return mphone;
- }
- module.exports.toHide = toHide;
- </wxs>
- <!-- 底部导航 -->
- <!-- <tab-bar /> -->
- <custom-preview-image wx:if="{{showCustomPreview}}" src="{{previewImgSrc}}" bind:closeCallback="closePreviewImage"/>
|