diff --git a/pages/shop/index/index.js b/pages/shop/index/index.js
index 770fa95..9336c96 100644
--- a/pages/shop/index/index.js
+++ b/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) {
diff --git a/pages/shop/index/index.json b/pages/shop/index/index.json
index 8e94359..543e9b5 100644
--- a/pages/shop/index/index.json
+++ b/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"
}
}
\ No newline at end of file
diff --git a/pages/shop/index/index.wxml b/pages/shop/index/index.wxml
index 486c9c9..1bd924a 100644
--- a/pages/shop/index/index.wxml
+++ b/pages/shop/index/index.wxml
@@ -65,4 +65,17 @@
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file