BUG 28351

This commit is contained in:
aixianling
2022-03-18 16:42:59 +08:00
parent 55484d2a53
commit 43be542532
2 changed files with 130 additions and 125 deletions

View File

@@ -344,8 +344,6 @@
</template>
<script>
// import AiUploader from "@/components/AiUploader/AiUploader";
// import AiSelect from "@/components/AiSelect/AiSelect";
import {mapState} from "vuex";
export default {
@@ -413,7 +411,7 @@ export default {
this.form.corpId = option.corpId
}
this.form.arriveGirdId = option.arriveGirdId
this.form.arriveGirdName = option.arriveGirdName
this.form.arriveGirdName = decodeURIComponent(option.arriveGirdName)
},
methods: {
@@ -546,11 +544,9 @@ export default {
checkPhoto: JSON.stringify(this.form.checkPhoto),
})
.then((res) => {
this.$hideLoading();
this.flag = false;
if (res.code == 0) {
console.log(res)
uni.$emit("updateBackList");
setTimeout(() => {
uni.navigateTo({url: `./Success?status=1&corpId=${this.form.corpId}`})
@@ -589,6 +585,7 @@ export default {
.form-item__checkbox {
width: 100%;
div {
width: 100%;
height: 80px;
@@ -753,6 +750,7 @@ export default {
}
}
}
.btn-wrapper {
position: fixed;
left: 50%;

View File

@@ -49,7 +49,9 @@
</div>
<div class="pad-b120"></div>
<div class="footer" v-if="isAdmin">
<div class="bg-fff" @click="linkTo(`./Add?arriveGirdId=${girdId}&arriveGirdName=${girdName}`)">登记</div>
<div class="bg-fff"
@click="linkTo(`./Add?arriveGirdId=${girdId}&arriveGirdName=${encodeURIComponent(girdName)}`)">登记
</div>
<div class="bg-blue" @click="show=true">邀请居民填写</div>
</div>
<u-popup v-model="show" mode="bottom" border-radius="14">
@@ -100,6 +102,10 @@ export default {
...mapState(['user']),
params() {
return qs.parse(decodeURIComponent(location.search))
},
shareLink() {
let {girdId, girdName, user: {corpId}} = this
return location.origin + `/apps/AppBackUserList/add?corpId=${corpId}&arriveGirdId=${girdId}&arriveGirdName=${encodeURIComponent(girdName)}`
}
},
onLoad() {
@@ -188,7 +194,7 @@ export default {
},
copy() {
let oInput = document.createElement('input')
oInput.value = location.origin + `/apps/AppBackUserList/add?corpId=${this.user.corpId}&arriveGirdId=${this.girdId}&arriveGirdName=${this.girdName}`
oInput.value = this.shareLink
document.body.appendChild(oInput)
oInput.select()
document.execCommand('Copy')
@@ -201,7 +207,7 @@ export default {
// title: this.params.title,
// desc: this.params.tableExplain,
imgUrl: 'https://cdn.cunwuyun.cn/dvcp/h5/back-user-share.png',
link: location.origin + `/apps/AppBackUserList/add?corpId=${this.user.corpId}&arriveGirdId=${this.girdId}&arriveGirdName=${this.girdName}`,
link: this.shareLink,
}])
})
},
@@ -211,7 +217,7 @@ export default {
// title: this.params.title,
// desc: this.params.tableExplain,
imgUrl: 'https://cdn.cunwuyun.cn/dvcp/h5/back-user-share.png',
link: location.origin + `/apps/AppBackUserList/add?corpId=${this.user.corpId}&arriveGirdId=${this.girdId}&arriveGirdName=${this.girdName}`,
link: this.shareLink,
}])
})
},
@@ -307,6 +313,7 @@ export default {
.user-list {
background-color: #f5f5f5;
.item {
padding: 32px 64px 24px;
background-color: #fff;