} | } | ||||
}, | }, | ||||
loadFun:function(){ | loadFun:function(){ | ||||
this.getOrderInfo(); | |||||
this.getOrderInfo(); | |||||
}, | }, | ||||
/** | /** | ||||
* 生命周期函数--监听页面初次渲染完成 | * 生命周期函数--监听页面初次渲染完成 | ||||
}) | }) | ||||
}, | }, | ||||
showAppointment:function(){ | showAppointment:function(){ | ||||
this.setData({ | |||||
isAppointmentShow:true | |||||
}) | |||||
this.getUserLocation();//获取用户当前位置 | |||||
}, | }, | ||||
provinceChane: function (e) {//选中省 | provinceChane: function (e) {//选中省 | ||||
this.setData({ | this.setData({ | ||||
}, | }, | ||||
complete: (res) => { | complete: (res) => { | ||||
this.setData({ | this.setData({ | ||||
siteSelect: true, | |||||
isAppointmentShow: true | |||||
}) | }) | ||||
} | } | ||||
}) | }) | ||||
}, | }, | ||||
showSite: function () {//显示地址选择框 | showSite: function () {//显示地址选择框 | ||||
if (!this.data.siteSelect) { | if (!this.data.siteSelect) { | ||||
this.getUserLocation();//获取用户当前位置 | |||||
} | } | ||||
}, | }, | ||||
enterMyCenter: function () { | enterMyCenter: function () { |
</view> | </view> | ||||
</view> | </view> | ||||
<view class="codeGroup"> | <view class="codeGroup"> | ||||
<input class="inputCode" bindfocus="showSite" bindinput="getCaptcha" value="{{subscribeData.captcha}}" placeholder="验证码"></input> | |||||
<input class="inputCode" bindinput="getCaptcha" value="{{subscribeData.captcha}}" placeholder="验证码"></input> | |||||
<view class="codeTime" bindtap="getCode">{{verificationCode}}</view> | <view class="codeTime" bindtap="getCode">{{verificationCode}}</view> | ||||
</view> | </view> | ||||
<view wx:if="{{siteSelect}}"> | |||||
<!-- <view wx:if="{{siteSelect}}"> --> | |||||
<picker mode='selector' range="{{provinceArr}}" range-key="province" value="{{provinceValue}}" bindchange="provinceChane"> | <picker mode='selector' range="{{provinceArr}}" range-key="province" value="{{provinceValue}}" bindchange="provinceChane"> | ||||
<view class="selectGroup"> | <view class="selectGroup"> | ||||
<text class="selectName">{{provinceArr[provinceValue].province}}</text> | <text class="selectName">{{provinceArr[provinceValue].province}}</text> | ||||
<image src="{{imgUrl+'/images/selectIcon.png'}}" class="selectIcon"></image> | <image src="{{imgUrl+'/images/selectIcon.png'}}" class="selectIcon"></image> | ||||
</view> | </view> | ||||
</picker> | </picker> | ||||
</view> | |||||
<!-- </view> --> | |||||
<view class="subscribeBtn" bindtap="subscribeFun"> | <view class="subscribeBtn" bindtap="subscribeFun"> | ||||
<image style="width:100%;height:100%;" src="{{imgUrl+'/btns/indexMake.png'}}"></image> | <image style="width:100%;height:100%;" src="{{imgUrl+'/btns/indexMake.png'}}"></image> | ||||
<button wx:if="{{!userData}}" class="getUserMsgBtn" open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="getUserWxMsg" style="width:100%;height:100%;min-height:0;"></button> | <button wx:if="{{!userData}}" class="getUserMsgBtn" open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="getUserWxMsg" style="width:100%;height:100%;min-height:0;"></button> |
} | } | ||||
}, | }, | ||||
loadFun: function () { | loadFun: function () { | ||||
this.getUserLocation();//获取用户当前位置 | |||||
if (app.globalData.userMobile) { | if (app.globalData.userMobile) { | ||||
this.data.subscribeData.mobile = app.globalData.userMobile; | this.data.subscribeData.mobile = app.globalData.userMobile; | ||||
this.setData({ | this.setData({ | ||||
}, | }, | ||||
showSite: function () {//显示地址选择框 | showSite: function () {//显示地址选择框 | ||||
if (!this.data.siteSelect) { | if (!this.data.siteSelect) { | ||||
this.getUserLocation();//获取用户当前位置 | |||||
} | } | ||||
}, | }, | ||||
agreementState: function () {//协议 | agreementState: function () {//协议 |
</view> | </view> | ||||
</view> | </view> | ||||
<view class="codeGroup"> | <view class="codeGroup"> | ||||
<input class="userInput" bindfocus="showSite" bindinput="getCaptcha" style="width:350rpx;" placeholder="请输入您的验证码"></input> | |||||
<input class="userInput" bindinput="getCaptcha" style="width:350rpx;" placeholder="请输入您的验证码"></input> | |||||
<view class="getCode" bindtap="getCode">{{verificationCode}}</view> | <view class="getCode" bindtap="getCode">{{verificationCode}}</view> | ||||
</view> | </view> | ||||
<view wx:if="{{siteSelect}}" class="pickerGroup"> | |||||
<!-- <view wx:if="{{siteSelect}}" class="pickerGroup"> --> | |||||
<view class="inputGroup"> | <view class="inputGroup"> | ||||
<view class="userTitle">当前城市</view> | <view class="userTitle">当前城市</view> | ||||
<picker mode='multiSelector' range="{{provinceDataArr}}" value="{{provinceDataValue}}" bindcolumnchange="provinceDataChange" bindchange="provinceDataChane"> | <picker mode='multiSelector' range="{{provinceDataArr}}" value="{{provinceDataValue}}" bindcolumnchange="provinceDataChange" bindchange="provinceDataChane"> | ||||
</view> | </view> | ||||
</picker> | </picker> | ||||
</view> | </view> | ||||
</view> | |||||
<!-- </view> --> | |||||
<view class="agreementGroup"> | <view class="agreementGroup"> | ||||
<image class="agreeIcon" bindtap="agreementState" src="{{imgUrl+(isAgreement?'/images/agreeIcon.png?v=003':'/images/disagreeIcon.png?v=002')}}"></image> | <image class="agreeIcon" bindtap="agreementState" src="{{imgUrl+(isAgreement?'/images/agreeIcon.png?v=003':'/images/disagreeIcon.png?v=002')}}"></image> | ||||
<view class="agreementText"> | <view class="agreementText"> |
</view> | </view> | ||||
</view> | </view> | ||||
<view class="subscribeBtn" bindtap="subscribeFun"> | <view class="subscribeBtn" bindtap="subscribeFun"> | ||||
<image style="width:100%;height:100%;" src="{{imgUrl+'/btns/myCenterBtn1.png'}}"></image> | |||||
<image style="width:100%;height:100%;" src="{{imgUrl+'/newIcon/20.png'}}"></image> | |||||
<button wx:if="{{userData}}" class="getUserMsgBtn" open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="getUserWxMsg" style="width:100%;height:100%;min-height:0;padding:0;margin:0;"></button> | <button wx:if="{{userData}}" class="getUserMsgBtn" open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="getUserWxMsg" style="width:100%;height:100%;min-height:0;padding:0;margin:0;"></button> | ||||
</view> | </view> | ||||
<view class="subscribeBtn" bindtap="lookMore"> | <view class="subscribeBtn" bindtap="lookMore"> | ||||
<image style="width:100%;height:100%;" src="{{imgUrl+'/btns/myCenterBtn2.png'}}"></image> | |||||
<image style="width:100%;height:100%;" src="{{imgUrl+'/newIcon/21.png'}}"></image> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<agreement bindmyevent="agreementControl" wx:if="{{agreement}}"></agreement> | <agreement bindmyevent="agreementControl" wx:if="{{agreement}}"></agreement> |