Commit 498d0a367e36e510cd0a4402b17ab38869537d0e

Authored by 后端开发-许程
1 parent 38b35286

门店地址样式调整

pages/goods/goodsInfo/goodsInfo.js
@@ -916,6 +916,9 @@ Page({ @@ -916,6 +916,9 @@ Page({
916 }); 916 });
917 }, 917 },
918 openSpecModel: function(t) { 918 openSpecModel: function(t) {
  919 + this.setData({
  920 + store: 0, choice_sort_store: 0, sort_store: 0
  921 + })
919 //--先判断会员状态-- 922 //--先判断会员状态--
920 var user_info=getApp().globalData.userInfo; 923 var user_info=getApp().globalData.userInfo;
921 if(user_info==null || user_info.mobile==undefined || user_info.mobile=="" || user_info.mobile==null){ 924 if(user_info==null || user_info.mobile==undefined || user_info.mobile=="" || user_info.mobile==null){
@@ -2729,8 +2732,7 @@ Page({ @@ -2729,8 +2732,7 @@ Page({
2729 //关闭选择门店 2732 //关闭选择门店
2730 close_popup:function(){ 2733 close_popup:function(){
2731 this.setData({ 2734 this.setData({
2732 - store: 0, choice_sort_store: 0,sort_store:0}  
2733 - ) 2735 + store: 0, choice_sort_store: 0,sort_store:0})
2734 }, 2736 },
2735 //选择更多门店 2737 //选择更多门店
2736 more_store:function(){ 2738 more_store:function(){
pages/goods/goodsInfo/goodsInfo.wxml
@@ -301,7 +301,7 @@ @@ -301,7 +301,7 @@
301 </block> 301 </block>
302 302
303 <!-- 门店收货地址 --> 303 <!-- 门店收货地址 -->
304 - <view class="xc-address_frame flex-vertical xc-ash" > 304 + <view class="xc-address_frame flex-vertical xc-ash {{def_pick_store!=null?'sn_height':'on_height'}}" >
305 <view class="address_frame"> 305 <view class="address_frame">
306 <view class="flex-vertical-between "> 306 <view class="flex-vertical-between ">
307 <view class="flex"> 307 <view class="flex">
@@ -318,7 +318,7 @@ @@ -318,7 +318,7 @@
318 <view class="flex-space-between address ai_end "> 318 <view class="flex-space-between address ai_end ">
319 <view> 319 <view>
320 <text class="fs32 xc-black3 shop_name">{{def_pick_store.pickup_name}}</text> 320 <text class="fs32 xc-black3 shop_name">{{def_pick_store.pickup_name}}</text>
321 - <!--<text class="fs20">暂无库存</text>--> 321 +
322 </view> 322 </view>
323 <view class="distance fs20"> 323 <view class="distance fs20">
324 距离:{{filters.toFix(def_pick_store.distance,0)}}m 324 距离:{{filters.toFix(def_pick_store.distance,0)}}m
@@ -798,7 +798,7 @@ @@ -798,7 +798,7 @@
798 <text class="right-arrow"></text> 798 <text class="right-arrow"></text>
799 </view> 799 </view>
800 </view> 800 </view>
801 - <view class="fs20 xc-ash xc-distance-top">地址:{{def_pick_store.fulladdress}}</view> 801 + <view class="fs20 xc-ash xc-distance-top "wx:if="{{def_pick_store}}">地址:{{def_pick_store.fulladdress}}</view>
802 </view> 802 </view>
803 <!----商品的属性项目----> 803 <!----商品的属性项目---->
804 <view class="xc-goods-attribute"> 804 <view class="xc-goods-attribute">
@@ -1055,7 +1055,7 @@ @@ -1055,7 +1055,7 @@
1055 <block wx:if="{{sort_store==0}}"> 1055 <block wx:if="{{sort_store==0}}">
1056 <!-- 头部 标题 --> 1056 <!-- 头部 标题 -->
1057 <view class="popup-top flex-space-between"> 1057 <view class="popup-top flex-space-between">
1058 - <text class="fs32 nearby_store">{{choice_sort_store==0?'附近的门店':'门店分类'}}</text> 1058 + <text class="fs32 nearby_store">{{choice_sort_store==0?'附近的门店':region_name}}</text>
1059 <view> 1059 <view>
1060 <view> 1060 <view>
1061 <icon bindtap="close_popup" class="modal-closes" color="black" size="22" type="cancel"></icon> 1061 <icon bindtap="close_popup" class="modal-closes" color="black" size="22" type="cancel"></icon>
@@ -1174,9 +1174,9 @@ @@ -1174,9 +1174,9 @@
1174 </view> 1174 </view>
1175 <view class="sort_store_list"> 1175 <view class="sort_store_list">
1176 1176
1177 - <view class="sort-store-frame" wx:for="{{all_sto}}" data-index="{{index}}" bindtap="choice_sort_store"> 1177 + <view class="sort-store-frame" wx:for="{{all_sto}}" data-index="{{index}}" bindtap="choice_sort_store" data-region="{{item.name}}">
1178 <view class="sort-store flex-vertical-between" > 1178 <view class="sort-store flex-vertical-between" >
1179 - <view class="fs28">{{item.name}}</view> 1179 + <view class="fs28" di>{{item.name}}</view>
1180 <view class="black_rights-frame"> 1180 <view class="black_rights-frame">
1181 <view class="black_rights"></view> 1181 <view class="black_rights"></view>
1182 </view> 1182 </view>
pages/goods/goodsInfo/goodsInfo.wxss
@@ -2244,9 +2244,14 @@ right:17rpx; top:55rpx; @@ -2244,9 +2244,14 @@ right:17rpx; top:55rpx;
2244 .xc-address_frame{ 2244 .xc-address_frame{
2245 border-top:1rpx solid #eee; 2245 border-top:1rpx solid #eee;
2246 width: 100%; 2246 width: 100%;
2247 - min-height: 90rpx;  
2248 height: auto; 2247 height: auto;
2249 } 2248 }
  2249 +.on_height{
  2250 +height: 90rpx;
  2251 +}
  2252 +.sn_height{
  2253 + height: 170rpx;
  2254 +}
2250 .xc-address_frame .address_frame{ 2255 .xc-address_frame .address_frame{
2251 width: 92%; 2256 width: 92%;
2252 padding-left: 10rpx; 2257 padding-left: 10rpx;
@@ -2387,17 +2392,18 @@ line-height: 30rpx; @@ -2387,17 +2392,18 @@ line-height: 30rpx;
2387 .store-bottom{ 2392 .store-bottom{
2388 width: 85%; 2393 width: 85%;
2389 margin: auto; 2394 margin: auto;
2390 - height: 105rpx; 2395 + height: 90rpx;
  2396 +
2391 2397
2392 } 2398 }
2393 .determine{ 2399 .determine{
2394 - width: 280rpx; 2400 + width: 260rpx;
2395 height: 44rpx; 2401 height: 44rpx;
2396 border-radius: 50rpx; 2402 border-radius: 50rpx;
2397 line-height: 44rpx; 2403 line-height: 44rpx;
2398 } 2404 }
2399 .default{ 2405 .default{
2400 - width: 280rpx; 2406 + width: 260rpx;
2401 height: 44rpx; 2407 height: 44rpx;
2402 border:3rpx solid #c8c8c8; 2408 border:3rpx solid #c8c8c8;
2403 border-radius: 50rpx; 2409 border-radius: 50rpx;
@@ -2407,6 +2413,8 @@ line-height: 30rpx; @@ -2407,6 +2413,8 @@ line-height: 30rpx;
2407 width: 95%; 2413 width: 95%;
2408 border-top: 3rpx solid #eee; 2414 border-top: 3rpx solid #eee;
2409 margin: auto; 2415 margin: auto;
  2416 + margin-top: 10rpx;
  2417 +
2410 } 2418 }
2411 /* 门店分类列表 */ 2419 /* 门店分类列表 */
2412 .sort_store_list{ 2420 .sort_store_list{