|
@@ -11,7 +11,7 @@
|
|
|
<span>注册代表您同意</span>
|
|
|
<router-link :to="{path: '/loan/privacy'}">《用户隐私协议》</router-link>
|
|
|
<span>和</span>
|
|
|
- <router-link :to="{path: '/loan/privacy'}">《会员协议》</router-link>
|
|
|
+ <router-link :to="{path: '/loan/vipAgreement'}">《会员协议》</router-link>
|
|
|
</p>
|
|
|
</div>
|
|
|
</li>
|
|
@@ -62,7 +62,8 @@
|
|
|
<span class="label-city" v-for="(str, index) in '城市:城市'" :key="index">{{ str }}</span>
|
|
|
</label>
|
|
|
<div class="value-wrap" @click="showPicker0 = true">
|
|
|
- <p class="value-city" v-show="postData.orderUserProvince">{{ postData.orderUserProvince + postData.orderUserCity +
|
|
|
+ <p class="value-city" v-show="postData.orderUserProvince">{{ postData.orderUserProvince +
|
|
|
+ postData.orderUserCity +
|
|
|
postData.orderUserDistrict}}</p>
|
|
|
<p class="value-city init" v-show="!postData.orderUserProvince">请选择所在城市</p>
|
|
|
<img class="icon_next" src="./image/btn_next@2x.png" alt="">
|
|
@@ -132,6 +133,7 @@
|
|
|
import { Picker, Popup, Toast } from 'vant'
|
|
|
import { getChinaArea, sendSMS } from '../../../api/common'
|
|
|
import { register } from './api'
|
|
|
+ import { getUserInfo } from '../mine/api'
|
|
|
|
|
|
const STRCAPTURE = process.env.API_DOMAIN + '/api/captcha'
|
|
|
export default {
|
|
@@ -182,9 +184,6 @@
|
|
|
timer: null
|
|
|
}
|
|
|
},
|
|
|
- created () {
|
|
|
- this.funGetChinaArea()
|
|
|
- },
|
|
|
async mounted () {
|
|
|
await this.$nextTick()
|
|
|
const textarea = this.$refs.myTextarea
|
|
@@ -196,6 +195,48 @@
|
|
|
textarea.addEventListener('input', this.handleTextarea(textarea, 1), false)
|
|
|
})
|
|
|
}
|
|
|
+ },
|
|
|
+ activated () {
|
|
|
+ if (!this.$route.meta.isUseCache) {
|
|
|
+ this.showEditInfo = false
|
|
|
+ this.postData = {
|
|
|
+ orderUserName: '', // 用户名称
|
|
|
+ orderUserPhone: '', // 手机号码
|
|
|
+ code: '',
|
|
|
+ capture: '',
|
|
|
+ orderUserProvince: '', // 省份
|
|
|
+ orderUserCity: '', // 城市
|
|
|
+ orderUserDistrict: '', // 区域
|
|
|
+ orderCommunity: '', // 小区
|
|
|
+ orderBuilding: '', // 楼号
|
|
|
+ orderRoom: '' // 房号
|
|
|
+ }
|
|
|
+ this.arrErrorList = []
|
|
|
+ this.showPicker0 = false
|
|
|
+ this.columnsOfCity = []
|
|
|
+ this.showPicker1 = false
|
|
|
+ this.columnsOfCommunity = [
|
|
|
+ {
|
|
|
+ values: ['东海水景城'],
|
|
|
+ defaultIndex: 0
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ this.showPicker2 = false
|
|
|
+ this.columnsOfBuildingy = [
|
|
|
+ {
|
|
|
+ values: BUILDING(),
|
|
|
+ defaultIndex: 0
|
|
|
+ },
|
|
|
+ {
|
|
|
+ values: ROOM(),
|
|
|
+ defaultIndex: 0
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ this.strCapture = STRCAPTURE
|
|
|
+ this.funGetChinaArea()
|
|
|
+ }
|
|
|
+ this.numCount = 60
|
|
|
+ clearInterval(this.timer)
|
|
|
if (!this.scroll) {
|
|
|
this.scroll = new BScroll(this.$refs.wrapper, {
|
|
|
click: true,
|
|
@@ -207,6 +248,8 @@
|
|
|
} else {
|
|
|
this.scroll.refresh()
|
|
|
}
|
|
|
+ this.funInit()
|
|
|
+ this.$route.meta.isUseCache = false
|
|
|
},
|
|
|
methods: {
|
|
|
funGetChinaArea () {
|
|
@@ -311,6 +354,16 @@
|
|
|
funUpdateCapture () {
|
|
|
this.strCapture = STRCAPTURE + '?' + new Date().getTime()
|
|
|
},
|
|
|
+ funInit () {
|
|
|
+ getUserInfo().then(res => {
|
|
|
+ const { status } = res
|
|
|
+ if (status) {
|
|
|
+ this.$router.replace({ path: '/loan/mine' })
|
|
|
+ }
|
|
|
+ }).catch((err) => {
|
|
|
+ Toast(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
funSubmit () {
|
|
|
const { orderUserName, orderUserPhone, code, orderUserProvince, orderUserCity, orderUserDistrict, orderCommunity, orderBuilding, orderRoom } = this.postData
|
|
|
const postData = {
|
|
@@ -344,6 +397,12 @@
|
|
|
if (this.scroll) {
|
|
|
this.scroll.destroy()
|
|
|
}
|
|
|
+ },
|
|
|
+ beforeRouteLeave (to, from, next) {
|
|
|
+ if (['loanPrivacy', 'loanVipAgreement'].includes(to.name)) {
|
|
|
+ from.meta.isUseCache = true
|
|
|
+ }
|
|
|
+ next()
|
|
|
}
|
|
|
}
|
|
|
|