123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <!--pages/luckDraw/profile.wxml-->
- <view class="personal">
- <!-- 个人中心视图 -->
- <view class="head-bg" catchtap="turnPrize">
- <image class="image_bg" src="/images/luck-draw/per_head.png" />
- <image class="image_portrait" src="/images/luck-draw/portrait.png" />
- <button class="luck-draw-isLogin" wx:if="{{!isLogin}}" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" >登录</button>
- <view class="luck-draw-pro-nickname" wx:if="{{isLogin}}">{{phone.toHide(mobileTop)}}</view>
- </view>
- <view class="luck-draw-pro-cp">
- <!-- 优惠券 -->
- <view class="luck-draw-coupon" catchtap="getProfile">
- <view class="luck-draw-cn">{{couponNum}}</view>
- <view class="luck-draw-cz">优惠券</view>
- <view wx:if="{{goodsType == 1}}" class="luck-draw-cjh"><view class="luck-draw-cj"></view></view>
- </view>
- <!-- 奖品 -->
- <view class="luck-draw-prize" catchtap="getPrize">
- <view class="luck-draw-pn">{{productNum}}</view>
- <view class="luck-draw-pz">奖品</view>
- <view wx:if="{{goodsType == 2}}" class="luck-draw-cjh"><view class="luck-draw-cj"></view></view>
- </view>
- </view>
- <view id="couponZD" class="luck-draw-theme" hidden="{{hidden1}}">
- <!-- 折扣券 -->
- <view class="luck-draw-content" wx:for="{{goodsItemList}}" wx:key="index" data-id="{{item.id}}" >
- <view class="luck-draw-words">
- <view class="luck-draw-discount1">
- <view class="{{item.formatDiscoun.length > 3?'luck-draw-zkz4c':'luck-draw-zkz4'}}" wx:if="{{item.couponType == 'D'}}">{{item.formatDiscount ?item.formatDiscount:0}}</view>
- <view class="{{item.formatDiscoun.length > 3?'luck-draw-zkz5c':'luck-draw-zkz5'}}" wx:if="{{item.couponType == 'D'}}">折</view>
- <view class="luck-draw-djz4" wx:if="{{item.couponType == 'C'}}">¥</view>
- <view class="{{item.formatReduceCost.length > 3 ?'luck-draw-djz5c':'luck-draw-djz5'}}" wx:if="{{item.couponType == 'C'}}">{{item.formatReduceCost ?item.formatReduceCost:0}}</view>
- </view>
- <view class="luck-draw-discount2">
- <view class="luck-draw-zkz1">{{item.goodsName}}</view>
- <view class="luck-draw-mj">
- <view class="luck-draw-zkz21"></view>
- <view class="luck-draw-zkz2" wx:if="{{item.formatLeastCost == '0'}}">无门槛</view>
- <view class="luck-draw-zkz2" wx:if="{{item.formatLeastCost != '0'}}">满{{item.formatLeastCost}}使用</view>
- <view class="luck-draw-zkz22"></view>
- </view>
- <view class="luck-draw-zkz3">{{item.couponBeginTimestamp}}-{{item.couponEndTimestamp}}</view>
- </view>
- </view>
- <image wx:if="{{item.couponType == 'D'}}" class="image_zk" src="/images/luck-draw/coupon1.png" />
- <image wx:if="{{item.couponType == 'D'}}" class="image_zk_un" src="/images/luck-draw/coupon_use_now.png" />
- <image wx:if="{{item.couponType == 'C'}}" class="image_zk" src="/images/luck-draw/cash_coupon.png" />
- <image wx:if="{{item.couponType == 'C'}}" class="image_zk_un" src="/images/luck-draw/cc_use_now.png" />
- <navigator class="_btn _exchange"
- target = "miniProgram"
- app-id="wxd92a2d29f8022f40"
- path="pages/index/index"
- extra-data="{foo: 'bar'}"
- open-type='navigate'>
- </navigator>
- </view>
- <!-- 代金券
- <view class="luck-draw-content" wx:for="{{goodsItemList}}" wx:key="index" data-id="{{item.id}}" wx:if="{{item.couponType == 'C' && item.goodsType == 1}}">
- <image class="image_zk" src="/images/luck-draw/cash_coupon.png" />
- <image class="image_zk_un" src="/images/luck-draw/cc_use_now.png" />
- <navigator class="_btn _exchange"
- target = "miniProgram"
- app-id="wxd92a2d29f8022f40"
- path="page/index/index"
- open-type='navigate'>
- </navigator>
- <view class="luck-draw-words">
- <view class="luck-draw-discount1">
- <view class="luck-draw-djz4">¥</view>
- <view class="luck-draw-djz5">{{item.formatReduceCost ?item.formatReduceCost:0}}</view>
- </view>
- <view class="luck-draw-discount2">
- <view class="luck-draw-zkz1">{{item.goodsName}}</view>
- <view class="luck-draw-mj">
- <view class="luck-draw-zkz21"></view>
- <view class="luck-draw-zkz2" wx:if="{{item.formatLeastCost == '0'}}">无门槛</view>
- <view class="luck-draw-zkz2" wx:if="{{item.formatLeastCost != '0'}}">满{{item.formatLeastCost}}使用</view>
- <view class="luck-draw-zkz22"></view>
- </view>
- <view class="luck-draw-zkz3">{{item.couponBeginTimestamp ?item.couponBeginTimestamp:0}}-{{item.couponEndTimestamp ?item.couponEndTimestamp:0}}</view>
- </view>
- </view>
- </view> -->
-
- <view class="no_result" wx:if="{{noResult}}">———— 抱歉,您暂无可用优惠券 ————</view>
- <view class="no_result" wx:if="{{noMore}}">———— 更多优惠券 | 敬请期待 ————</view>
- </view>
- <view id="prize" class="luck-draw-theme" hidden="{{hidden2}}">
- <!-- 奖品 -->
- <view class="luck-draw-content" wx:for="{{goodsItemList}}" wx:key="index" data-id="{{item.id}}" wx:if="{{item.goodsType == 2}}">
- <view class="luck-draw-wordsj">
- <view class="luck-draw-discount1j">
-
- <image class="luck-draw-zkzj" src="/images/luck-draw/prize.png" />
- </view>
- <view class="luck-draw-discount2">
- <view class="luck-draw-zkz1j">{{item.goodsName}}</view>
- <view class="luck-draw-zkz3j">奖品参数</view>
- </view>
- </view>
- <image class="image_zk_unj" src="/images/luck-draw/choice.png" />
- <navigator class="_btn _exchange"
- target = "miniProgram"
- app-id="wxd92a2d29f8022f40"
- path="pages/index/index"
- extra-data="{foo: 'bar'}"
- open-type='navigate'>
- </navigator>
- </view>
- <view class="no_result" wx:if="{{noResult}}">———— 抱歉,您暂无可领取奖品 ————</view>
- <view class="no_result" wx:if="{{noMore}}">———— 更多奖品 | 敬请期待 ————</view>
- </view>
- </view>
- <!-- 使用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 />
|