Browse Source

查看退款说明

kk.shi 3 years ago
parent
commit
c92036a631
2 changed files with 20 additions and 1 deletions
  1. 19 0
      pages/welfareMall/refund/refund.js
  2. 1 1
      pages/welfareMall/refund/refund.wxml

+ 19 - 0
pages/welfareMall/refund/refund.js

@@ -8,6 +8,25 @@ Page({
 
   },
 
+  getModal() {
+    wx.showModal({
+      title: '退款说明',
+      content: '福利社优惠券退款说明,福利社优惠券退款说明,福利社优惠券退款说明,福利社优惠券退款说明,福利社优惠券退款说明,福利社优惠券退款说明',
+      showCancel: false,//是否显示取消按钮
+      cancelText:"否",//默认是“取消”
+      cancelColor:'skyblue',//取消文字的颜色
+      confirmText:"我知道了",//默认是“确定”
+      confirmColor: 'black',//确定文字的颜色
+      success: res => {if (res.cancel) {
+            //点击取消,默认隐藏弹框
+        } else {
+            //点击确定 
+        }
+      },
+      fail: function (res) { },//接口调用失败的回调函数 
+    })
+},
+
   /**
    * 生命周期函数--监听页面加载
    */

+ 1 - 1
pages/welfareMall/refund/refund.wxml

@@ -36,7 +36,7 @@
         <view class="lower-total-text">系统正在审核您是否符合退款条件,请耐心等待</view>
       </view>
     </view>
-    <view class="refund-ex flex-row">
+    <view class="refund-ex flex-row" catchtap="getModal">
       <view class="refund-explain">查看退款说明</view>
     </view>
   </view>