Explorar o código

始宁农业小程序:商品新增、编辑发售时间选择

panyong %!s(int64=2) %!d(string=hai) anos
pai
achega
11bc8c7abc

+ 1 - 0
htmldev/shiningWxMini/pages/businessApply/businessApply.wxml

@@ -110,6 +110,7 @@
           max-count="{{1}}"
           multiple="{{false}}"
           accept="image"
+          image-fit="widthFix"
           data-formkey="shop_img_url"
           bind:after-read="afterRead"
           bind:delete="delete"/>

+ 15 - 2
htmldev/shiningWxMini/pages/businessDetail/businessDetail.scss

@@ -20,10 +20,16 @@
 
 .business-name {
   display: flex;
-  align-items: center;
-  flex-flow: row wrap;
+  align-items: flex-start;
   padding: 68rpx 56rpx 0;
 
+  .name-wrap {
+    display: flex;
+    align-items: center;
+    flex-flow: row wrap;
+    width: 80%;
+  }
+
   text {
     font-size: 48rpx;
     color: rgba(51, 51, 51, 1);
@@ -33,6 +39,13 @@
     width: 32rpx;
     height: 42rpx;
     margin-left: 20rpx;
+    margin-right: 6rpx;
+  }
+
+  .btn-bookmark {
+    display: flex;
+    align-items: center;
+    margin-top: 16rpx;
   }
 }
 

+ 17 - 11
htmldev/shiningWxMini/pages/businessDetail/businessDetail.wxml

@@ -21,17 +21,23 @@
   </swiper>
 </view>
 <view
-  class="business-name"
-  bind:tap="shopCollect">
-  <text
-    wx:for="{{objShopDetail.shop_name}}"
-    wx:key="index">{{item}}</text>
-  <image
-    src="../../image/common/bookmark_0.png"
-    wx:if="{{searchForm.type === 1}}"></image>
-  <image
-    src="../../image/common/bookmark_1.png"
-    wx:elif="{{searchForm.type === 2}}"></image>
+  class="business-name">
+  <view class="name-wrap">
+    <text
+      wx:for="{{objShopDetail.shop_name + objShopDetail.shop_name + objShopDetail.shop_name}}"
+      wx:key="index">{{item}}</text>
+  </view>
+  <view
+    class="btn-bookmark"
+    bind:tap="shopCollect">
+    <image
+      src="../../image/common/bookmark_0.png"
+      wx:if="{{searchForm.type === 1}}"></image>
+    <image
+      src="../../image/common/bookmark_1.png"
+      wx:elif="{{searchForm.type === 2}}"></image>
+    收藏
+  </view>
 </view>
 <customer-tab
   nav="{{nav}}"

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

@@ -10,7 +10,9 @@
       wx:key="*this">
       <swiper-item>
         <view class="swiper-item">
-          <image src="{{item}}"></image>
+          <image
+            mode="widthFix"
+            src="{{item}}"></image>
         </view>
       </swiper-item>
     </block>
@@ -95,6 +97,7 @@
   <image
     class="banner"
     src="{{item}}"
+    mode="widthFix"
     wx:for="{{objProductDetail.product_detail_img_list}}"
     wx:key="index"></image>
 </view>

+ 1 - 0
htmldev/shiningWxMini/pages/mine/mine.wxml

@@ -11,6 +11,7 @@
         data-formkey="user_head_img_url"
         preview-full-image="{{false}}"
         disabled="{{!sessionId}}"
+        image-fit="aspectFill"
         bind:click-preview="uploadImg"
         bind:after-read="afterRead"
         bind:delete="delete"