|
|
@@ -31,8 +31,8 @@
|
|
|
<view class=" balance" @tap="Recharge(60)" :class="{balanceborder: amount == 60}">60元</view>
|
|
|
</view>
|
|
|
<view class=" line"></view>
|
|
|
- <input class="input-balance" type="text" v-model="amount" @input="onInput" @blur="onBlur"
|
|
|
- placeholder="请输入充值金额,金额大于10" placeholder-class="pc" maxlength="4" />
|
|
|
+ <input class="input-balance" type="text" v-model="amount" @input="onInput" @blur="onBlur" placeholder="请输入充值金额,金额大于10" placeholder-class="pc"
|
|
|
+ maxlength="4" />
|
|
|
<view class="line"></view>
|
|
|
<view class="btn-pay">
|
|
|
<button class="btn" url="/pagesAir/rechargeRecord/rechargeRecord" @tap="btn_click">
|
|
|
@@ -63,7 +63,7 @@
|
|
|
uni.redirectTo({
|
|
|
url: '../../pages/index/index'
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
return;
|
|
|
}
|
|
|
// 测试环境
|
|
|
@@ -75,6 +75,23 @@
|
|
|
},
|
|
|
methods: {
|
|
|
/**
|
|
|
+ * 打开页面时提示
|
|
|
+ */
|
|
|
+ tip() {
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '目前只针对墨轩湖校区【公共区域】进行充值,不包含宿舍区域!请知晓!',
|
|
|
+ showCancel: false,
|
|
|
+ confirmText: '我已知晓',
|
|
|
+ confirmColor: '#F00',
|
|
|
+ success: function(res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ // console.log('用户点击确定');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /**
|
|
|
* 获取身份证号
|
|
|
*/
|
|
|
get_base_info(options) {
|
|
|
@@ -102,7 +119,9 @@
|
|
|
}
|
|
|
|
|
|
// 请求服务器,获得余额
|
|
|
- this.getBalance()
|
|
|
+ this.getBalance();
|
|
|
+
|
|
|
+ this.tip();
|
|
|
},
|
|
|
/**
|
|
|
* 请求服务器,获得余额
|
|
|
@@ -205,7 +224,7 @@
|
|
|
icon: 'none',
|
|
|
duration: 3000
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
return
|
|
|
}
|
|
|
// 调起微信支付
|
|
|
@@ -482,4 +501,4 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|