瀏覽代碼

wx:if="{{maskid>3}}"

guessPrice
zhanghaojie 5 年之前
父節點
當前提交
6023aed64e
共有 3 個檔案被更改,包括 4 行新增4 行删除
  1. +1
    -1
      496_dongfengqichen/pages/scout/scout.js
  2. +2
    -1
      496_dongfengqichen/pages/scout/scout.wxml
  3. +1
    -2
      496_dongfengqichen/pages/scout/scout.wxss

+ 1
- 1
496_dongfengqichen/pages/scout/scout.js 查看文件

* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function () {
// app.globalData.certificationState=4;
app.globalData.certificationState=4;
this.setData({maskid: app.globalData.certificationState}) this.setData({maskid: app.globalData.certificationState})
if(app.globalData.certificationState==1){ if(app.globalData.certificationState==1){
this.setData({titleContent:'尊敬的启辰车主您好'}) this.setData({titleContent:'尊敬的启辰车主您好'})

+ 2
- 1
496_dongfengqichen/pages/scout/scout.wxml 查看文件

<view class="showView"> <view class="showView">
<view class="content"> <view class="content">
<image class="bg" src="{{imgUrl+'/star/scout/bg.jpg'}}"></image> <image class="bg" src="{{imgUrl+'/star/scout/bg.jpg'}}"></image>
<image class="reward" src="{{imgUrl+'/star/tu1.png'}}"></image>
<image class="reward" wx:if="{{maskid<4}}" src="{{imgUrl+'/star/scout/reward.png'}}"></image>
<image class="reward" wx:if="{{maskid>3}}" src="{{imgUrl+'/star/tu1.png'}}"></image>
<view class="btn" bindtap="getPoster">立即分享,赚取奖励</view> <view class="btn" bindtap="getPoster">立即分享,赚取奖励</view>
<button class="btn2" wx:if="{{iconShow}}" open-type="getUserInfo" bindgetuserinfo="getUserWxMsg"></button> <button class="btn2" wx:if="{{iconShow}}" open-type="getUserInfo" bindgetuserinfo="getUserWxMsg"></button>
</view> </view>

+ 1
- 2
496_dongfengqichen/pages/scout/scout.wxss 查看文件

} }
.reward{ .reward{
width: 602rpx; width: 602rpx;
height: 446rpx;
height: 548rpx; height: 548rpx;
margin: 43rpx auto 0 auto; margin: 43rpx auto 0 auto;
} }
color: #ffffff; color: #ffffff;
border-radius: 15rpx; border-radius: 15rpx;
background-color: #2a558d; background-color: #2a558d;
margin: 120rpx auto 40rpx auto;
margin: 20rpx auto 40rpx auto;
} }
.btn2{ .btn2{
text-align: center; text-align: center;

Loading…
取消
儲存