Browse Source

始宁农业小程序:代码优化

panyong 2 years ago
parent
commit
b3157e8f98

+ 2 - 2
htmldev/shiningWxMini/pages/businessGoodsEdit/businessGoodsEdit.js

@@ -223,9 +223,9 @@ Page({
               } else {
                 const { YYYY, MM, DD, HH, mm } = formatTs(value * 1000)
 
-                value = `${YYYY}年${MM}月${DD}日 ${HH}:${mm}`
                 temp['saleAtType'] = '1'
-                temp['currentDate'] = value
+                temp['currentDate'] = value * 1000
+                value = `${YYYY}年${MM}月${DD}日 ${HH}:${mm}`
               }
             }
 

+ 1 - 1
htmldev/shiningWxMini/pages/mediaDetail/mediaDetail.scss

@@ -171,7 +171,7 @@ input {
   position: absolute;
   right: 14rpx;
   top: 10rpx;
-  z-index: 1;
+  z-index: 99;
   width: 108rpx;
   height: 56rpx;
   border-radius: 38rpx;

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

@@ -60,6 +60,7 @@
         placeholder-class="placeholder"
         value="{{form.comment}}"
         placeholder="说点什么吧..."
+        :cursor-spacing="{{60}}"
         bind:input="setComment"></input>
       <button
         class="btn-send"