Commit bd067e17b6fa34545ea5684f939190f4af707e00
1 parent
0fc8e380
门店地址样式js修改
Showing
2 changed files
with
8 additions
and
10 deletions
pages/goods/goodsInfo/goodsInfo.js
@@ -2842,7 +2842,7 @@ close_popup:function(e){ | @@ -2842,7 +2842,7 @@ close_popup:function(e){ | ||
2842 | }, | 2842 | }, |
2843 | 2843 | ||
2844 | //把选择的门店设置成默认的门店def_pick | 2844 | //把选择的门店设置成默认的门店def_pick |
2845 | - set_def_pick:function (e) { | 2845 | + set_def_pick:function (e) { |
2846 | var th = this; var item = null; | 2846 | var th = this; var item = null; |
2847 | var openindstore = e.currentTarget.dataset.openindstore; | 2847 | var openindstore = e.currentTarget.dataset.openindstore; |
2848 | if (openindstore == 1) { | 2848 | if (openindstore == 1) { |
@@ -2850,18 +2850,18 @@ close_popup:function(e){ | @@ -2850,18 +2850,18 @@ close_popup:function(e){ | ||
2850 | th.setData({ | 2850 | th.setData({ |
2851 | openSpecModal: !0, | 2851 | openSpecModal: !0, |
2852 | openSpecModal_ind: openindstore, | 2852 | openSpecModal_ind: openindstore, |
2853 | - store: 0, choice_sort_store: 0, sort_store: 0 | 2853 | + store: 0, choice_sort_store: 0, sort_store: 0, |
2854 | }); | 2854 | }); |
2855 | } else if (openindstore == 2) { | 2855 | } else if (openindstore == 2) { |
2856 | 2856 | ||
2857 | th.setData({ | 2857 | th.setData({ |
2858 | openSpecModal: !0, | 2858 | openSpecModal: !0, |
2859 | openSpecModal_ind: openindstore, | 2859 | openSpecModal_ind: openindstore, |
2860 | - store: 0, choice_sort_store: 0, sort_store: 0 | 2860 | + store: 0, choice_sort_store: 0, sort_store: 0, |
2861 | }); | 2861 | }); |
2862 | } else { | 2862 | } else { |
2863 | th.setData({ | 2863 | th.setData({ |
2864 | - store: 0, choice_sort_store: 0, sort_store: 0 | 2864 | + store: 0, choice_sort_store: 0, sort_store: 0, |
2865 | }) | 2865 | }) |
2866 | } | 2866 | } |
2867 | 2867 | ||
@@ -2886,7 +2886,7 @@ close_popup:function(e){ | @@ -2886,7 +2886,7 @@ close_popup:function(e){ | ||
2886 | success:function(res){ | 2886 | success:function(res){ |
2887 | console.log("是什么",res.data.code); | 2887 | console.log("是什么",res.data.code); |
2888 | if (res.data.code!=-1){ | 2888 | if (res.data.code!=-1){ |
2889 | - console.log("门店地址成功"); | 2889 | + th.setData({fir_pick_index:0}); |
2890 | s.showWarning("设置门店地址成功", null, 500, !1); | 2890 | s.showWarning("设置门店地址成功", null, 500, !1); |
2891 | }else{ | 2891 | }else{ |
2892 | console.log("门店地址失败"); | 2892 | console.log("门店地址失败"); |
@@ -2895,7 +2895,7 @@ close_popup:function(e){ | @@ -2895,7 +2895,7 @@ close_popup:function(e){ | ||
2895 | 2895 | ||
2896 | } | 2896 | } |
2897 | }); | 2897 | }); |
2898 | - console.log("王朝马汉吱吱吱吱7",item); | 2898 | + |
2899 | th.setData({ | 2899 | th.setData({ |
2900 | def_pick_store: item, sto_sele_name: item.pickup_name, | 2900 | def_pick_store: item, sto_sele_name: item.pickup_name, |
2901 | sto_sele_id: item.pickup_id, sto_sele_distr: item.distr_type, store: 0, choice_sort_store: 0 | 2901 | sto_sele_id: item.pickup_id, sto_sele_distr: item.distr_type, store: 0, choice_sort_store: 0 |
pages/goods/goodsInfo/goodsInfo.wxss
@@ -2278,10 +2278,8 @@ width: 40rpx; | @@ -2278,10 +2278,8 @@ width: 40rpx; | ||
2278 | padding-left: 15rpx; | 2278 | padding-left: 15rpx; |
2279 | padding-right: 15rpx; | 2279 | padding-right: 15rpx; |
2280 | background: #eee; | 2280 | background: #eee; |
2281 | - border-radius: 20rpx; | ||
2282 | - height: 30rpx; | ||
2283 | -line-height: 30rpx; | ||
2284 | - | 2281 | + border-radius: 20rpx; |
2282 | + margin-right: 5rpx; | ||
2285 | } | 2283 | } |
2286 | /* 选择门店的弹窗 */ | 2284 | /* 选择门店的弹窗 */ |
2287 | .mongolia-layer{ | 2285 | .mongolia-layer{ |