diff --git a/components/diy_store_select/diy_store_select.js b/components/diy_store_select/diy_store_select.js
index fc6f2b1..fdc6784 100644
--- a/components/diy_store_select/diy_store_select.js
+++ b/components/diy_store_select/diy_store_select.js
@@ -36,6 +36,12 @@ Component({
//-- 初始化顶部的门店显示 --
init(){
var th=this;
+
+ var user_id=getApp().globalData.user_id;
+ if(!user_id){
+ return false;
+ }
+
//获取顶部的门店
getApp().get_user_store(function(){
var top_store=getApp().globalData.pk_store;
@@ -83,7 +89,12 @@ Component({
//点击选择门店
sele_top_store(){
var user_id=getApp().globalData.user_id;
- if(!user_id) return false;
+ if(!user_id){
+ wx.navigateTo({
+ url: '/pages/togoin/togoin',
+ });
+ return false;
+ }
var th=this;
this.get_top_sto(function(){
th.setData({store:1});
diff --git a/pages/index/index/index.js b/pages/index/index/index.js
index 6019783..04fca46 100644
--- a/pages/index/index/index.js
+++ b/pages/index/index/index.js
@@ -232,6 +232,7 @@ Page({
getApp().getConfig2(function(e) {
var json_d = JSON.parse(e.switch_list);
th.setData({is_closecoupon: json_d.is_closecoupon})
+ th.setData({is_topstore: json_d.is_show_storeselect})
},1)
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
diff --git a/pages/index/index/index.wxml b/pages/index/index/index.wxml
index 022f444..c88fe7b 100644
--- a/pages/index/index/index.wxml
+++ b/pages/index/index/index.wxml
@@ -6,11 +6,13 @@
-
-
+
+
+
+
-
+
分