This commit is contained in:
2021-11-04 21:20:31 +08:00
parent c5c2f661a0
commit ec0724c873
38 changed files with 6870 additions and 189 deletions
+11 -10
View File
@@ -45,21 +45,19 @@
<template #input>
<div>
<p class="input-small-tip">照片需清晰美观,用于信众展示</p>
<van-uploader v-model="uploader" />
<uploader v-model="form.avatar_url" :max-count="1" />
</div>
</template>
</van-field>
<van-field
v-model="form.cert_url"
type="text"
label="戒牒照片"
readonly
placeholder="戒牒照片"
>
<template #input>
<div>
<p class="input-small-tip">仅用于认证,不公开</p>
<van-uploader v-model="uploader" />
<uploader v-model="form.cert_url" :max-count="1" />
</div>
</template>
</van-field>
@@ -69,6 +67,9 @@
label="自我介绍"
placeholder="向他人展示自己的文字说明"
:rules="[{ required: true }]"
maxlength="500"
:rows="8"
show-word-limit
/>
<div style="margin: 16px;">
<van-button round block type="temple" native-type="submit">提交</van-button>
@@ -106,8 +107,8 @@ export default {
rank_text: '', // 称谓
region: '',
place_temple: '', // 驻赐寺院
avatar_url: 'http://test.url',
cert_url: 'http://test.url',
avatar_url: [], // 法师照片
cert_url: [], // 戒牒照片
description: ''
},
cascaderValue: [3,40, 431],
@@ -126,11 +127,15 @@ export default {
const [province_id, city_id, county_id] = this.form.city_id;
const params = {
...this.form,
avatar_url: this.form.avatar_url[0].url,
cert_url: this.form.cert_url[0].url,
province_id,
city_id,
county_id
}
await certifyMonk(params)
this.$toast.success('认证信息提交成功')
await this.$delay(2000)
this.authing = true;
},
@@ -162,10 +167,6 @@ export default {
font-size: .32rem;
color: #aaa;
}
.van-uploader__upload{
width: 3.13rem;
height: 3.13rem;
}
.van-button--temple{
background: $primary-color;
border: 1px solid $primary-color;