|
|
|
@ -306,6 +306,22 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</u-popup>
|
|
|
|
</u-popup>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<u-popup :show="showAuthorization" closeable mode="bottom" @close="closePhone" :round="10">
|
|
|
|
|
|
|
|
<view class="box">
|
|
|
|
|
|
|
|
<view class="box-title" style="text-align: center;padding: 20rpx 0;font-size: 32rpx;">
|
|
|
|
|
|
|
|
请授权您的手机号
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="box-content" style="padding: 20px;">
|
|
|
|
|
|
|
|
<u-button type="primary" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">授权手机号
|
|
|
|
|
|
|
|
</u-button>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</u-popup>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<u-calendar ref="calendar" :show-confirm="false" :show="showCalendar" :minDate="minDate" :maxDate="maxDate"
|
|
|
|
<u-calendar ref="calendar" :show-confirm="false" :show="showCalendar" :minDate="minDate" :maxDate="maxDate"
|
|
|
|
color="#EF9525" round="20" defaultDate="2022-02-15" @confirm="handleSelectDate" @close="closecalendar">
|
|
|
|
color="#EF9525" round="20" defaultDate="2022-02-15" @confirm="handleSelectDate" @close="closecalendar">
|
|
|
|
</u-calendar>
|
|
|
|
</u-calendar>
|
|
|
|
@ -322,6 +338,7 @@
|
|
|
|
month = month < 10 ? `0${month}` : month
|
|
|
|
month = month < 10 ? `0${month}` : month
|
|
|
|
const date = d.getDate()
|
|
|
|
const date = d.getDate()
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
showAuthorization: false,
|
|
|
|
successshow: false,
|
|
|
|
successshow: false,
|
|
|
|
time: 3,
|
|
|
|
time: 3,
|
|
|
|
showInfo: false,
|
|
|
|
showInfo: false,
|
|
|
|
@ -464,12 +481,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
//this.maxCount = (type == 'user' ? 5 : 50);
|
|
|
|
//this.maxCount = (type == 'user' ? 5 : 50);
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//先登录
|
|
|
|
|
|
|
|
that.util.getOpenidInfo(function(res) {
|
|
|
|
|
|
|
|
//手机号
|
|
|
|
that.util.getUserInfo(function(r) {
|
|
|
|
that.util.getUserInfo(function(r) {
|
|
|
|
that.user = r;
|
|
|
|
that.user = r;
|
|
|
|
|
|
|
|
//如果手机号为空 需要先授权手机号
|
|
|
|
|
|
|
|
if (that.util.isNull(r.mobile)) {
|
|
|
|
|
|
|
|
that.showAuthorization = true;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
that.showAuthorization = false;
|
|
|
|
that.form.mobile = r.mobile;
|
|
|
|
that.form.mobile = r.mobile;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}, true);
|
|
|
|
|
|
|
|
that.loadCommonUser()
|
|
|
|
|
|
|
|
|
|
|
|
}, true);
|
|
|
|
}, true);
|
|
|
|
|
|
|
|
|
|
|
|
that.loadCommonUser();
|
|
|
|
|
|
|
|
that.maxheight = wx.getSystemInfoSync().windowHeight * 0.6 + "px"
|
|
|
|
that.maxheight = wx.getSystemInfoSync().windowHeight * 0.6 + "px"
|
|
|
|
that.scrollheight = wx.getSystemInfoSync().windowHeight * 0.6 * 0.7 + "px"
|
|
|
|
that.scrollheight = wx.getSystemInfoSync().windowHeight * 0.6 * 0.7 + "px"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -483,6 +513,25 @@
|
|
|
|
clearTimeout(this.timer)
|
|
|
|
clearTimeout(this.timer)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
closePhone() {
|
|
|
|
|
|
|
|
this.showAuthorization = false
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
getPhoneNumber(e) {
|
|
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
this.util.request({
|
|
|
|
|
|
|
|
api: '/api/mobile/user/mobile',
|
|
|
|
|
|
|
|
data: {
|
|
|
|
|
|
|
|
code: e.detail.code
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
utilSuccess: function(res) {
|
|
|
|
|
|
|
|
that.form.mobile = res.mobile;
|
|
|
|
|
|
|
|
that.showAuthorization = false
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
utilFail: function(res) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
confirmCards(e) {
|
|
|
|
confirmCards(e) {
|
|
|
|
this.card_type_names = e.value[0].label
|
|
|
|
this.card_type_names = e.value[0].label
|
|
|
|
this.form.card_type = e.value[0].value
|
|
|
|
this.form.card_type = e.value[0].value
|
|
|
|
|