Commit 498d0a367e36e510cd0a4402b17ab38869537d0e

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

门店地址样式调整

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