Browse Source

小程序:商家端-商品添加

panyong 2 years ago
parent
commit
c7b52805d5

+ 7 - 4
htmldev/wxMini/pages/businessGoodsEdit/businessGoodsEdit.scss

@@ -54,7 +54,7 @@ label {
   color: rgba(153, 153, 153, 1);
 }
 
-.box {
+.form-item {
   display: flex;
   justify-content: space-between;
   align-items: center;
@@ -98,11 +98,14 @@ label {
 }
 
 .describe {
-  position: relative;
-  left: 0;
-  top: 0;
   margin: 20rpx 0;
 
+  .value {
+    position: relative;
+    left: 0;
+    top: 0;
+  }
+
   textarea {
     display: block;
     width: 100%;

+ 10 - 10
htmldev/wxMini/pages/businessGoodsEdit/businessGoodsEdit.wxml

@@ -62,7 +62,7 @@
         </view>
         <view class="tip border-bottom-2">请上传尺寸为375*375像素图片</view>
       </view>
-      <view class="box">
+      <view class="form-item">
         <label>
           <text>标题</text>
         </label>
@@ -85,11 +85,11 @@
             auto-height="{{true}}"
             data-formkey="product_desc"
             bind:input="setFormValue"></textarea>
+          <view class="words-limit">{{form.product_desc.length}}/200</view>
         </view>
-        <view class="words-limit">{{form.product_desc.length}}/200</view>
       </view>
       <view
-        class="box border-bottom-2"
+        class="form-item border-bottom-2"
         bind:tap="categoryShow">
         <label>
           <text>商品分类</text>
@@ -103,7 +103,7 @@
         </view>
       </view>
       <view
-        class="box"
+        class="form-item"
         bind:tap="brandShow">
         <label>
           <text>商品品牌</text>
@@ -115,7 +115,7 @@
           <image class="arrow" src="../../image/businessGoodsEdit/arrow.png"></image>
         </view>
       </view>
-      <view class="box">
+      <view class="form-item">
         <label>
           <text>商品规格</text>
         </label>
@@ -128,7 +128,7 @@
             bind:input="setFormValue"></input>
         </view>
       </view>
-      <view class="box" bind:tap="unitShow">
+      <view class="form-item" bind:tap="unitShow">
         <label>
           <text>单 位</text>
         </label>
@@ -137,7 +137,7 @@
           <image class="arrow" src="../../image/businessGoodsEdit/arrow.png"></image>
         </view>
       </view>
-      <view class="box">
+      <view class="form-item">
         <label>
           <text>批发价(元)</text>
         </label>
@@ -150,7 +150,7 @@
             bind:input="setFormValue"></input>
         </view>
       </view>
-      <view class="box">
+      <view class="form-item">
         <label>
           <text>零售价(元)</text>
         </label>
@@ -163,7 +163,7 @@
             bind:input="setFormValue"></input>
         </view>
       </view>
-      <view class="box">
+      <view class="form-item">
         <label>
           <text>库 存</text>
         </label>
@@ -177,7 +177,7 @@
         </view>
       </view>
       <view
-        class="box border-bottom-2"
+        class="form-item border-bottom-2"
         bind:tap="saleAtTypeShow">
         <label>
           <text>发售时间</text>