问卷表单
This commit is contained in:
@@ -46,7 +46,7 @@
|
|||||||
<image style="display: block; max-width: 100%;margin: 0 auto" v-if="formInfo[`field_${index}`]" :src="formInfo[`field_${index}`]" />
|
<image style="display: block; max-width: 100%;margin: 0 auto" v-if="formInfo[`field_${index}`]" :src="formInfo[`field_${index}`]" />
|
||||||
<div v-else class="components-item__select components-item__textarea components-item__upload">
|
<div v-else class="components-item__select components-item__textarea components-item__upload">
|
||||||
<image :src="`${$cdn}askform/upload.png`"/>
|
<image :src="`${$cdn}askform/upload.png`"/>
|
||||||
<span>选择图片(2M以内)</span>
|
<span>选择图片(10M以内)</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="(item.type === 'input')">
|
<template v-if="(item.type === 'input')">
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.$loading()
|
// this.$loading()
|
||||||
this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType']).then(() => {
|
this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType']).then(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
...mapActions(['injectJWeixin', 'wxInvoke']),
|
||||||
getGirdUserList() {
|
getGirdUserList() {
|
||||||
this.$http.post(`/app/appgirdmemberinfo/listGirdMemberByGirdId?girdId=${this.userGird.id}`).then((res) => {
|
this.$http.post(`/app/appgirdmemberinfo/listGirdMemberByGirdId?girdId=${this.userGird.id}`).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
@@ -74,14 +75,16 @@ export default {
|
|||||||
uni.navigateTo({url})
|
uni.navigateTo({url})
|
||||||
},
|
},
|
||||||
viewUser(userId) {
|
viewUser(userId) {
|
||||||
wx.invoke('openUserProfile', {
|
this.injectJWeixin('openUserProfile').then(() => {
|
||||||
"type": 1, //1表示该userid是企业成员,2表示该userid是外部联系人
|
this.wxInvoke([
|
||||||
"userid": userId //可以是企业成员,也可以是外部联系人
|
'openUserProfile',
|
||||||
}, function(res) {
|
{
|
||||||
if(res.err_msg != "openUserProfile:ok") {
|
type: 1,
|
||||||
//错误处理
|
userid: userId,
|
||||||
}
|
},
|
||||||
});
|
() => 0,
|
||||||
|
])
|
||||||
|
})
|
||||||
},
|
},
|
||||||
toFamily(item) {
|
toFamily(item) {
|
||||||
uni.navigateTo({url: `./FamilyList?id=${item.id}&girdId=${this.userGird.id}`})
|
uni.navigateTo({url: `./FamilyList?id=${item.id}&girdId=${this.userGird.id}`})
|
||||||
|
|||||||
Reference in New Issue
Block a user