ycm 2 سال پیش
والد
کامیت
4cce293633
2فایلهای تغییر یافته به همراه8 افزوده شده و 4 حذف شده
  1. 5 1
      pages/tabber/builds/hand_desc/handDesc.js
  2. 3 3
      pages/tabber/builds/hand_desc/handDesc.wxml

+ 5 - 1
pages/tabber/builds/hand_desc/handDesc.js

@@ -16,7 +16,8 @@ Page({
     placeholder: "",
     hand_up_count: 0,
     need_hand_up_count: 0,
-    order_no:""
+    order_no:"",
+    popuptype: 0,
   },
 
   onLoad(option) {
@@ -96,6 +97,8 @@ Page({
   },
   show(e) {
     var tid = e.currentTarget.dataset.id
+    var type = e.currentTarget.dataset.type
+    this.setData({popuptype: type})
     console.log(tid)
     if (tid==1) {
       this.setData({
@@ -127,6 +130,7 @@ Page({
   onClose() {
     this.setData({
       show: !this.data.show,
+      popuptype: 0
     })
   },
   Close() {

+ 3 - 3
pages/tabber/builds/hand_desc/handDesc.wxml

@@ -69,7 +69,7 @@
     <view class="section7">
         <view class="main1">
             <view class="layer5">
-                <view class="outer1" bindtap="show" data-id="1">
+                <view class="outer1" bindtap="show" data-type="{{1}}" data-id="1">
                     <view class="mod10">
                         <image src="/image/build/scan.png"></image>
                     </view>
@@ -90,7 +90,7 @@
         <view class="mod-1">
             <view class="bd-1">
                 <view class="section-2">
-                <input type="text" style="width: 100%;" value="{{inpuval}}" bindinput="bindinput" placeholder="扫描或人工输入封签号"></input>
+                <input type="text" style="width: 100%;" value="{{inpuval}}" bindinput="bindinput" placeholder="{{popuptype==2?'扫描或人工输入封签号':'扫描或人工输入水洗码'}}"></input>
                     <!-- <text lines="1" class="info-1">扫描或人工输入封签号</text> -->
                     <image src="/image/build/scan.png" class="label-1" bindtap="getScancode"></image>
                 </view>
@@ -135,7 +135,7 @@
                     <button bindtap="Close" class="bd21">
                         <text lines="1" class="word11">取消</text>
                     </button>
-                    <button bindtap="show" class="bd31" data-id="2">
+                    <button bindtap="show" data-type="{{2}}" class="bd31" data-id="2">
                         <text lines="1" class="word21">确定</text>
                     </button>
                 </view>