wangyong 6 vuotta sitten
vanhempi
commit
f5d17a296a
2 muutettua tiedostoa jossa 6 lisäystä ja 2 poistoa
  1. 5 1
      pages/orderCanvas/orderCanavs.js
  2. 1 1
      pages/orderCanvas/orderCanavs.wxml

+ 5 - 1
pages/orderCanvas/orderCanavs.js

@@ -9,7 +9,8 @@ Page({
   data: {
   data: {
     orderImg:null,
     orderImg:null,
     host:host,
     host:host,
-    params:null
+    params:null,
+    uploadText:"上传付款凭证"
   },
   },
 
 
   /**
   /**
@@ -103,6 +104,9 @@ Page({
                 title: '支付凭证上传成功!',
                 title: '支付凭证上传成功!',
                 icon: 'none'
                 icon: 'none'
               })
               })
+              that.setData({
+                uploadText:'已上传付款凭证'
+              })
             } else {
             } else {
               wx.showToast({
               wx.showToast({
                 title: res.data,
                 title: res.data,

+ 1 - 1
pages/orderCanvas/orderCanavs.wxml

@@ -8,7 +8,7 @@
       <view class='f-item f-box f-justify-content-center c-white bg-orange' style='width:100%'>
       <view class='f-item f-box f-justify-content-center c-white bg-orange' style='width:100%'>
         <button class='share-box f-item f-s32' open-type="share">分享</button>
         <button class='share-box f-item f-s32' open-type="share">分享</button>
       </view>
       </view>
-      <view wx:if="{{!params.static}}" class='f-item f-box f-justify-content-center c-white f-s32' style='width:100%;background:#eea957' bindtap='uploadImg'>上传付款凭证</view>
+      <view wx:if="{{!params.static}}" class='f-item f-box f-justify-content-center c-white f-s32' style='width:100%;background:#eea957' bindtap='uploadImg'>{{uploadText}}</view>
       <view class='f-item f-box f-justify-content-center c-white bg-theme f-s32' style='width:100%' bindtap='returnHome'>首页</view>
       <view class='f-item f-box f-justify-content-center c-white bg-theme f-s32' style='width:100%' bindtap='returnHome'>首页</view>
     </view>
     </view>
   </view>
   </view>