Переглянути джерело

始宁农业小程序:商户申请必填信息修改

panyong 2 роки тому
батько
коміт
745e7a8650

+ 11 - 8
htmldev/shiningWxMini/components/business-detail-large/index.wxml

@@ -1,7 +1,8 @@
 <view class="business-info">
   <view
     class="box"
-    bind:tap="openLocationBridge">
+    bind:tap="openLocationBridge"
+    wx:if="{{!!shopDetail.shop_address.address_name}}">
     <image
       class="label"
       src="../../image/common/location.png"></image>
@@ -25,13 +26,15 @@
       class="arrow"
       src="../../image/common/arrow_2.png"></image>
   </view>
-  <view class="qrcode">
-    <image
-      class="code"
-      src="{{shopDetail.user_code_url}}"
-      show-menu-by-longpress="{{true}}"></image>
-  </view>
-  <view class="tip">长按扫码,添加微信</view>
+  <block wx:if="{{!!shopDetail.user_code_url}}">
+    <view class="qrcode">
+      <image
+        class="code"
+        src="{{shopDetail.user_code_url}}"
+        show-menu-by-longpress="{{true}}"></image>
+    </view>
+    <view class="tip">长按扫码,添加微信</view>
+  </block>
 </view>
 
 <van-action-sheet

+ 4 - 1
htmldev/shiningWxMini/pages/businessDetail/businessDetail.wxml

@@ -1,5 +1,7 @@
 <!-- 轮播 -->
-<view class="page-section">
+<view
+  class="page-section"
+  wx:if="{{!!objShopDetail.shop_img_url}}">
   <swiper
     indicator-dots="{{false}}"
     indicator-color="rgba(130, 130, 130, 1)"
@@ -11,6 +13,7 @@
       <swiper-item>
         <view class="swiper-item">
           <image
+            mode="widthFix"
             src="{{item}}"></image>
         </view>
       </swiper-item>

+ 1 - 2
htmldev/shiningWxMini/pages/guide/guide.scss

@@ -5,12 +5,11 @@
   right: 0;
   bottom: 0;
   padding: 48rpx;
-  background-color: rgb(230, 239, 225);
 
   view {
     line-height: 38rpx;
     font-size: 28rpx;
-    color: rgba(102, 102, 102, 1);
+    color: rgba(68, 68, 68, 1);
 
     &.mt-20 {
       margin-top: 20rpx;

+ 5 - 3
htmldev/shiningWxMini/pages/partner/partner.wxml

@@ -27,7 +27,9 @@
       bind:tap="jumpBusinessDetail">
       <view class="top">
         <view class="photo-wrap">
-          <image src="{{item.shop_img_url}}"></image>
+          <image
+            mode="aspectFill"
+            src="{{item.shop_img_url || '../../image/common/logo.png'}}"></image>
         </view>
         <view class="name-wrap">
           <view class="name">{{item.shop_name}}</view>
@@ -39,11 +41,11 @@
         <view class="label">电话:</view>
         <view class="value">{{item.shop_phone}}</view>
       </view>
-      <view class="wechat">
+      <view class="wechat" wx:if="{{!!item.user_wechat_code}}">
         <view class="label">微信:</view>
         <view class="value">{{item.user_wechat_code}}</view>
       </view>
-      <view class="adress">
+      <view class="adress" wx:if="{{!!item.shop_address.address_name}}">
         <text class="label">地址:</text>
         <text class="value">{{item.shop_address.address_name}}{{item.shop_address.name}}</text>
       </view>