Commit 38b35286e1bcbda5d9475766b7909ff8d511a8db

Authored by 后端开发-许程
1 parent 127973e1

js修改

pages/goods/goodsInfo/goodsInfo.js
@@ -222,6 +222,7 @@ Page({ @@ -222,6 +222,7 @@ Page({
222 lon:null, //经度 222 lon:null, //经度
223 223
224 is_get_local_ok:0,//获取坐标是否完成 224 is_get_local_ok:0,//获取坐标是否完成
  225 + region_name:"门店分类",//区域的名字
225 }, 226 },
226 227
227 //------初始化加载---------- 228 //------初始化加载----------
@@ -2745,8 +2746,9 @@ close_popup:function(){ @@ -2745,8 +2746,9 @@ close_popup:function(){
2745 //---选择分类门店--- 2746 //---选择分类门店---
2746 choice_sort_store:function(e){ 2747 choice_sort_store:function(e){
2747 var index=e.currentTarget.dataset.index; 2748 var index=e.currentTarget.dataset.index;
  2749 + var region_name = e.currentTarget.dataset.region;
2748 var item = this.data.all_sto[index]; 2750 var item = this.data.all_sto[index];
2749 - this.setData({ sort_store: 0, choice_sort_store:1, sec_sto: item,sec_pick_index:0 }); 2751 + this.setData({ region_name: region_name, sort_store: 0, choice_sort_store:1, sec_sto: item,sec_pick_index:0 });
2750 }, 2752 },
2751 2753
2752 //---点击二级之后的选择--- 2754 //---点击二级之后的选择---