wangyong 6 yıl önce
ebeveyn
işleme
f5d17a296a

+ 5 - 1
pages/orderCanvas/orderCanavs.js

@@ -9,7 +9,8 @@ Page({
   data: {
     orderImg:null,
     host:host,
-    params:null
+    params:null,
+    uploadText:"上传付款凭证"
   },
 
   /**
@@ -103,6 +104,9 @@ Page({
                 title: '支付凭证上传成功!',
                 icon: 'none'
               })
+              that.setData({
+                uploadText:'已上传付款凭证'
+              })
             } else {
               wx.showToast({
                 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%'>
         <button class='share-box f-item f-s32' open-type="share">分享</button>
       </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>
   </view>