|
|
@@ -9,6 +9,8 @@ import eventBus from '../../utils/eventBus';
|
|
|
|
|
|
Page({
|
|
|
data: {
|
|
|
+ showPopup:false,
|
|
|
+ imageUrl:'',
|
|
|
isHand:false,
|
|
|
shopList:[],
|
|
|
showShopList:false,
|
|
|
@@ -278,6 +280,27 @@ Page({
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ /**
|
|
|
+ * 弹窗公告
|
|
|
+ */
|
|
|
+ getDialog: function () {
|
|
|
+ var params = {
|
|
|
+ url: "/popup/config",
|
|
|
+ method: "GET",
|
|
|
+ data: {
|
|
|
+ },
|
|
|
+ callBack: (res) => {
|
|
|
+ this.setData({
|
|
|
+ showPopup:res.showPopup,
|
|
|
+ imageUrl:res.imageUrl
|
|
|
+ })
|
|
|
+ }
|
|
|
+ };
|
|
|
+ http.request(params);
|
|
|
+ },
|
|
|
+ onClickHide:function(){
|
|
|
+ this.setData({showPopup:false})
|
|
|
+ },
|
|
|
/**
|
|
|
* 广告位
|
|
|
*/
|
|
|
@@ -735,7 +758,7 @@ Page({
|
|
|
},
|
|
|
|
|
|
onShow: function () {
|
|
|
-
|
|
|
+ this.getDialog()
|
|
|
// this.get_test()
|
|
|
this.setData({
|
|
|
select_address: wx.getStorageSync('ADDRESS')
|