瀏覽代碼

修复bug和添加密码提示

sharp-agezi 6 年之前
父節點
當前提交
428d701753
共有 3 個文件被更改,包括 7 次插入3 次删除
  1. 1 1
      customized/pages/index/index.js
  2. 3 2
      customized/pages/index/index.wxml
  3. 3 0
      customized/pages/index/index.wxss

+ 1 - 1
customized/pages/index/index.js

@@ -109,7 +109,7 @@ Page({
 
   },
   customized(e){
-    if (!e.currentTarget.dataset.state){
+    if (e.currentTarget.dataset.state == '1'){
       return;
     }
     console.log('canvas')

+ 3 - 2
customized/pages/index/index.wxml

@@ -1,5 +1,5 @@
 <view class="auto">
-  <view wx:for="{{madeList}}" class="f-box mar-t20 custom-list" data-state="{{item.state}}" bindtap='customized'>
+  <view wx:for="{{madeList}}" class="f-box mar-t20 custom-list" data-state="{{item.customgoodsIsAllow}}" bindtap='customized'>
     <view class='cust-img mar-r20 mar-l20 f-box f-align-items-center'>
       <image src="{{host}}/{{item.customgoodsNameImgJson}}" mode="aspectFit"></image>
     </view>
@@ -10,7 +10,7 @@
      
      <view class='f-box mar-t20 f-s32 f-align-items-center'>
       <view class='f-item'>
-        <navigator class="{{item.customgoodsIsAllow === '1' ? 'disabled' : ''}} cust-btn  f-s30 c-green">去定制</navigator>
+        <view class="{{item.customgoodsIsAllow === '1' ? 'disabled' : ''}} cust-btn  f-s30 c-green">去定制</view>
        </view>
        <view class='tu-icon f-box f-align-items-center'>
         <image src='/customized/images/customized/tu_icon.png' mode="aspectFit"></image>
@@ -47,6 +47,7 @@
 <!-- 密码输入框 -->
 <view class='pwd-box' bindtap='close' wx:if="{{pwdStatic}}">
 <view class='pwd-main'>
+<view class='f-s32 pwd-title mar-b20'>请输入密码</view>
 <view class='f-box content'>
   <block wx:for="{{Length}}" wx:key="item">
     <input class='iptbox' value="{{Value.length>=index+1?Value[index]:''}}" disabled password='{{ispassword}}' catchtap='Tap'></input>

+ 3 - 0
customized/pages/index/index.wxss

@@ -117,4 +117,7 @@ page{
 }
 .btn-del{
   border:2rpx solid #e0e0e0;
+}
+.pwd-title{
+  text-align: center;
 }