Browse Source

no message

featrue/v4.5
xpz2018 4 years ago
parent
commit
404051e7f6
3 changed files with 25 additions and 14 deletions
  1. 20
      pages/shop/index/index.js
  2. 4
      pages/shop/index/index.json
  3. 15
      pages/shop/index/index.wxml

20
pages/shop/index/index.js

@ -74,6 +74,13 @@ Page({
}]
})
},
onClose: function(){
this.setData({visible: false})
},
onImageClick: function(){
this.setData({visible: false})
wx.navigateTo({ url: '/pages/ztbvip/index' })
},
apllyShop: function(){
if(!app.globalData.userInfo.isAuth){
this.wuxDialog.open({
@ -91,18 +98,7 @@ Page({
return
}
if(!app.globalData.userInfo.isVIP){
this.wuxDialog.open({
resetOnClose: true,
title: '温馨提示',
content: '您还不是纸通宝的会员,无法开店,现在去开通会员?',
buttons: [{
text: '确定',
type: 'primary',
onTap(e) {
wx.navigateTo({ url: '/pages/ztbvip/index' })
}
}]
})
this.setData({visible: true})
return
}
if (!app.globalData.userInfo.hasStore) {

4
pages/shop/index/index.json

@ -3,6 +3,8 @@
"wux-dialog": "/components/dialog/index",
"wux-button": "/components/button/index",
"wux-cell-group": "/components/cell-group/index",
"wux-cell": "/components/cell/index"
"wux-cell": "/components/cell/index",
"wux-image": "/components/image/index",
"wux-popup": "/components/popup/index"
}
}

15
pages/shop/index/index.wxml

@ -65,4 +65,17 @@
</wux-cell-group>
<view style="height:18rpx"></view>
<wux-dialog id="wux-dialog" />
<wux-dialog id="wux-dialog" />
<wux-popup wux-class="wux-landscape" wux-content-class="wux-landscape__popup" wux-body-class="wux-landscape__popup-body"
hasHeader="{{ false }}" hasFooter="{{ false }}" visible="{{ visible }}" mask="{{ true }}" bind:close="onClose">
<view class="wux-close" bindtap="onClose">
<text class="cuIcon-roundclose text-white" style="font-size:64rpx"></text>
</view>
<view class="wux-landscape__inner">
<wux-image width="{{604}}" height="{{806}}" nuit="{{'rpx'}}" src="/assets/popup/need-member.png" bind:click="onImageClick">
<view class="flex flex-center" slot="loading" style="height:654rpx;width:680rpx">
<text class="icon--refresher"></text>
</view>
</wux-image>
</view>
</wux-popup>
Loading…
Cancel
Save