|
|
@ -72,12 +72,19 @@ |
|
|
<view class="form-item border-b m-b-md p-b-xs"> |
|
|
<view class="form-item border-b m-b-md p-b-xs"> |
|
|
<view> |
|
|
<view> |
|
|
<view class="label m-b-xs">{{$t('reg.a2')}}</view> |
|
|
<view class="label m-b-xs">{{$t('reg.a2')}}</view> |
|
|
<v-input v-model="form.phone" class="color-light" :placeholder="$t('reg.a3')"> |
|
|
<view class="d-flex"> |
|
|
<template #left> |
|
|
<view style="width: 30%;margin-right: 20rpx;"> |
|
|
<v-country ref="country" style="width: 80rpx;height: 40rpx;border: 1px solid #ccc;text-align: center;line-height: 40rpx;" |
|
|
<el-select v-model="form.country_id" filterable :placeholder="$t('login.country')" no-match-text="No matching data"> |
|
|
@country_code="country_code=$event" class="m-r-xs" v-model="form.country_id" /> |
|
|
<el-option v-for="(item, index) in countryList" :key="index" :value="`${item.id}`" :label="`+${item.country_code} ${item.name}`"></el-option> |
|
|
</template> |
|
|
</el-select> |
|
|
</v-input> |
|
|
</view> |
|
|
|
|
|
<v-input style="width: 380rpx;" v-model="form.phone" class="color-light" :placeholder="$t('reg.a3')"> |
|
|
|
|
|
<!-- <template #left> |
|
|
|
|
|
<v-country ref="country" style="width: 80rpx;height: 40rpx;border: 1px solid #ccc;text-align: center;line-height: 40rpx;" |
|
|
|
|
|
@country_code="country_code=$event" class="m-r-xs" v-model="form.country_id" /> |
|
|
|
|
|
</template> --> |
|
|
|
|
|
</v-input> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
@ -174,8 +181,10 @@ |
|
|
</template> |
|
|
</template> |
|
|
<script> |
|
|
<script> |
|
|
import Member from "@/api/member"; |
|
|
import Member from "@/api/member"; |
|
|
|
|
|
import serve from "@/api/serve/index"; |
|
|
import app from "app.js"; |
|
|
import app from "app.js"; |
|
|
import tfVerifyImg from '@/components/tf-verify-img/tf-verify-img.vue'; |
|
|
import tfVerifyImg from '@/components/tf-verify-img/tf-verify-img.vue'; |
|
|
|
|
|
import { mapState, mapActions } from "vuex"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
@ -183,7 +192,7 @@ export default { |
|
|
form: { |
|
|
form: { |
|
|
type: 2, |
|
|
type: 2, |
|
|
country_code: "", |
|
|
country_code: "", |
|
|
country_id: 1, |
|
|
country_id: "", |
|
|
account: "", |
|
|
account: "", |
|
|
code: "", |
|
|
code: "", |
|
|
password: "", |
|
|
password: "", |
|
|
@ -214,6 +223,9 @@ export default { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
|
|
|
...mapState({ |
|
|
|
|
|
countryList: "countryList", |
|
|
|
|
|
}), |
|
|
}, |
|
|
}, |
|
|
components:{tfVerifyImg}, |
|
|
components:{tfVerifyImg}, |
|
|
methods: { |
|
|
methods: { |
|
|
@ -243,7 +255,7 @@ export default { |
|
|
this.$toast(this.$t('common.c14')); |
|
|
this.$toast(this.$t('common.c14')); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
if(!this.country_code||!this.form.phone){ |
|
|
if(!this.form.country_code||!this.form.phone){ |
|
|
this.$toast(this.$t('common.phonenumber')); |
|
|
this.$toast(this.$t('common.phonenumber')); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
@ -344,25 +356,35 @@ export default { |
|
|
this.agreement = res.data; |
|
|
this.agreement = res.data; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 拼图滑块 |
|
|
// 拼图滑块 |
|
|
changeSLider(){ |
|
|
changeSLider(){ |
|
|
|
|
|
this.showVerify = true; |
|
|
|
|
|
}, |
|
|
|
|
|
open(){ |
|
|
|
|
|
// console.log("open"); |
|
|
this.showVerify = true; |
|
|
this.showVerify = true; |
|
|
}, |
|
|
}, |
|
|
open(){ |
|
|
chenggong(){ |
|
|
// console.log("open"); |
|
|
uni.showToast({ |
|
|
this.showVerify = true; |
|
|
title: this.$t('homeNewText.dd1') |
|
|
}, |
|
|
}); |
|
|
chenggong(){ |
|
|
this.showVerify = false; |
|
|
uni.showToast({ |
|
|
this.sendAAA = true; |
|
|
title: this.$t('homeNewText.dd1') |
|
|
}, |
|
|
}); |
|
|
|
|
|
this.showVerify = false; |
|
|
...mapActions({ |
|
|
this.sendAAA = true; |
|
|
setCountryList: "countryList", |
|
|
} |
|
|
}), |
|
|
|
|
|
getCountry() { |
|
|
|
|
|
serve.get("/getCountryList").then((res) => { |
|
|
|
|
|
this.setCountryList(res.data); |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
this.gett_gc_code(); |
|
|
this.gett_gc_code(); |
|
|
|
|
|
this.getCountry(); |
|
|
}, |
|
|
}, |
|
|
onLoad(query){ |
|
|
onLoad(query){ |
|
|
this.query = query |
|
|
this.query = query |
|
|
|