diff --git a/index/index.js b/index/index.js index 956a599..3f51a79 100644 --- a/index/index.js +++ b/index/index.js @@ -17,7 +17,7 @@ Page({ userName: '', // aa: (app.statusBarHeight + 60) + "rpx", noDataFlag: false, - busineKye: 0, + businessKey: 0, businePageNum: 1, credit: 0, businessList: [], //优选好物导航 @@ -206,13 +206,13 @@ Page({ }); this.getBannerlist(); this.getBusinessList() - this.getCouponChannelList(this.data.busineKye) + this.getCouponChannelList(this.data.businessKey) }, getBusineData(e) { this.setData({ businePageNum: 1, - busineKye: e.detail, + businessKey: e.detail, noDataFlag: false, }) this.getCouponChannelList(e.detail) @@ -900,8 +900,11 @@ Page({ setTimeout(() => { that.getBannerlist(); that.getBusinessList() - that.getCouponChannelList(that.data.busineKye) - }, 2000) + that.setData({ + noDataFlag: false + }) + that.getCouponChannelList(that.data.businessKey) + }, 1000) }, @@ -1557,7 +1560,7 @@ Page({ this.getBannerlist(); this.getBusinessList() - this.getCouponChannelList(this.data.busineKye) + this.getCouponChannelList(this.data.businessKey) setTimeout(() => { tt.hideLoading(); @@ -1586,7 +1589,7 @@ Page({ // } // } else if (that.data.mouldType == 1) { // } - this.getCouponChannelList(that.data.busineKye) + this.getCouponChannelList(that.data.businessKey) }, // 用户点击右上角分享 diff --git a/project.config.json b/project.config.json index 017428f..eac2969 100644 --- a/project.config.json +++ b/project.config.json @@ -32,7 +32,7 @@ "id": 1678428610317, "name": "index/index", "pathName": "pages/main/index", - "query": "type=scanIn&tenantId=1052", + "query": "type=scanIn&tenantId=1049", "scene": "990001", "launchFrom": "scan", "location": "qr_code"