Bladeren bron

产品管理去除标签

zhaoxiaohai 3 jaren geleden
bovenliggende
commit
dc4cca31ab
2 gewijzigde bestanden met toevoegingen van 12 en 11 verwijderingen
  1. 8 7
      pages/productManagement/change.js
  2. 4 4
      pages/productManagement/change.wxml

+ 8 - 7
pages/productManagement/change.js

@@ -15,7 +15,7 @@ Page({
         fprodnum: "", //产品编码
         attinfos: [], //附件列表
         fintroduction: "", //产品说明
-        ftag: [], //产品标签
+        //ftag: [],产品标签
         showSaleprod: "", //标签显示
         tagents_productid: 0, //识别产品ID
         checked: true, //开关控件
@@ -47,17 +47,18 @@ Page({
             };
             /* 是否上架 */
             const checked = (data.fisonsale == 1) ? true : false
-            let showSaleprod = "",
-                ftag = data.ftag
-            /* 空标签转换为数组格式 */
+            let showSaleprod = "";
+
+            /* 空标签转换为数组格式 
+            ftag = data.ftag
             if (data.ftag == null || data.ftag == '') {
                 ftag = []
             } else {
-                /* 字符串数组转换数组 */
+                //字符串数组转换数组
                 for (var i = 0; i < ftag.length; i++) {
                     showSaleprod += ftag[i] + ' ';
                 }
-            }
+            }*/
             /* 渲染数据 */
             this.setData({
                 fprodname: data.fprodname, //产品名称
@@ -65,7 +66,7 @@ Page({
                 attinfos, //附件列表
                 fintroduction: data.fintroduction, //产品说明
                 fisonsale: data.fisonsale, //是否上架
-                ftag: ftag, //产品标签
+                //ftag: ftag, 产品标签
                 tagents_productid: data.tagents_productid, //识别产品ID
                 showSaleprod, // 显示标签
                 checked, //是否上架

+ 4 - 4
pages/productManagement/change.wxml

@@ -1,23 +1,23 @@
 <My_GeneralTemplate padBot="20rpx">
     <view class="product_message">
         <My_GreyRectangleForm title="产品名" required>
-            <van-field autosize type="textarea" model:value="{{ fprodname }}" data-name="fprodname" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fprodname}}" input-class="input-class" placeholder="点击填写" border="{{ false }}" />
+            <van-field model:value="{{ fprodname }}" data-name="fprodname" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fprodname}}" input-class="input-class" placeholder="点击填写" border="{{ false }}" />
         </My_GreyRectangleForm>
 
         <My_GreyRectangleForm title="产品编码" required>
-            <van-field autosize type="textarea" model:value="{{ fprodnum }}" data-name="fprodnum" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fprodnum}}" input-class="input-class" placeholder="点击填写" border="{{ false }}" />
+            <van-field model:value="{{ fprodnum }}" data-name="fprodnum" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fprodnum}}" input-class="input-class" placeholder="点击填写" border="{{ false }}" />
         </My_GreyRectangleForm>
 
         <My_GreyRectangleForm title="产品图" required>
             <My_UploadFiles id="UploadFiles" fileList="{{attinfos}}" upType="productImage" maxCount="3" tagents_productid="{{tagents_productid}}" UploadShow="2" previewSize="60px" bindimageChange="imageChange"></My_UploadFiles>
         </My_GreyRectangleForm>
 
-        <My_GreyRectangleForm title="标签">
+        <!--         <My_GreyRectangleForm title="标签">
             <view class="input_text_tips">
                 <My_inputPromptd show="{{errTips.showSaleprod}}" text="多种产品标签请以“空格”分隔"></My_inputPromptd>
             </view>
             <van-field autosize type="textarea" model:value="{{ showSaleprod }}" data-name="showSaleprod" input-class="input-class" bind:focus='inputFocus' bindblur='inputBlur' placeholder="点击填写" border="{{ false }}" />
-        </My_GreyRectangleForm>
+        </My_GreyRectangleForm> -->
 
         <My_GreyRectangleForm title="说明">
             <van-field autosize type="textarea" model:value="{{ fintroduction }}" input-class="input-class" placeholder="点击填写" border="{{ false }}" />