|
|
|
@ -32,25 +32,10 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- <div class="form-item p-md m-md "> |
|
|
|
<div class="color-light p-b-xs">3、{{$t('auth.b7')}}</div> |
|
|
|
<div class="fn-sm ">{{$t('auth.b8')}}。</div> |
|
|
|
<div class="d-flex justify-between m-t-md"> |
|
|
|
<div class="examples m-r-xs bg-panel-3 p-md rounded-sm box-shadow"> |
|
|
|
<img src="static/img/fill6.png" /> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
@click="getFile('hand_img')" |
|
|
|
class="upload-box d-flex justify-center align-center rounded-sm bg-panel-3 box-shadow" |
|
|
|
> |
|
|
|
<van-icon v-if="!form.hand_img" class="color-light fn-30" name="photograph" /> |
|
|
|
<img v-else :src="form.hand_img" alt /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> --> |
|
|
|
</main> |
|
|
|
<div class="p-md"> |
|
|
|
<v-button block type="green" class="w-max rounded-lg" @click="topAuth" ref="btn">{{$t('common.submit')}}</v-button> |
|
|
|
<v-button block type="green" class="w-max rounded-lg" @click="topAuth" ref="btn">{{$t('common.submit')}} |
|
|
|
</v-button> |
|
|
|
</div> |
|
|
|
<van-toast id="van-toast"/> |
|
|
|
</div> |
|
|
|
@ -60,9 +45,12 @@ import utils from "@/utils"; |
|
|
|
import Profile from "@/api/profile"; |
|
|
|
import Member from "@/api/member"; |
|
|
|
import {mapGetters} from "vuex"; |
|
|
|
|
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
detail: {}, |
|
|
|
countryList: [], |
|
|
|
imgBase: undefined, |
|
|
|
form: { |
|
|
|
hand_img: "", |
|
|
|
@ -72,7 +60,7 @@ export default { |
|
|
|
}; |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapGetters(['themeStyle']) |
|
|
|
...mapGetters(['themeStyle']), |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getFile(name) { |
|
|
|
@ -105,31 +93,47 @@ export default { |
|
|
|
} |
|
|
|
Profile.topAuth(data, {btn: this.$refs.btn}) |
|
|
|
.then(() => { |
|
|
|
// alert($t('auth.c4') ); |
|
|
|
this.$toast.success(this.$t('auth.c4') + "。"); |
|
|
|
this.$back(); |
|
|
|
clearTimeout(this.timer); //清除延迟执行 |
|
|
|
this.timer = setTimeout(()=>{ //设置延迟执行 |
|
|
|
this.$router.push("/pages/base/index"); |
|
|
|
},1000); |
|
|
|
// this.$back(); |
|
|
|
}) |
|
|
|
.catch(() => {}); |
|
|
|
}, |
|
|
|
.catch(() => { |
|
|
|
}); |
|
|
|
}, |
|
|
|
} |
|
|
|
}; |
|
|
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
|
|
.layout-page{ |
|
|
|
background-color: #fff !important; |
|
|
|
background: none; |
|
|
|
} |
|
|
|
.examples { |
|
|
|
width: 122px; |
|
|
|
height: 70px; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
|
|
|
|
img { |
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.upload-box { |
|
|
|
width: 150px; |
|
|
|
height: 100px; |
|
|
|
|
|
|
|
img { |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
object-fit: cover; |
|
|
|
} |
|
|
|
} |
|
|
|
.bg-panel-3{ |
|
|
|
background-color: #fff; |
|
|
|
} |
|
|
|
</style> |