Commit 53a5a5ca authored by 王玉鑫's avatar 王玉鑫

feat: 咨询详情入口

parent 44c817d9
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
</u-form-item> </u-form-item>
</u--form> </u--form>
<div class="submit-btn" @tap="handleSubmit">提交</div> <div class="submit-btn" @tap="handleSubmit">提交</div>
<div v-if="false" class="to-list" @tap="handleToList"> <div v-if="isShowList" class="to-list relative" @tap="handleToList">
<div> <div>
<image <image
class="customer-icon" class="customer-icon"
...@@ -98,6 +98,7 @@ ...@@ -98,6 +98,7 @@
></image> ></image>
</div> </div>
<div>咨询列表</div> <div>咨询列表</div>
<u-badge max="99" :value="listCount" absolute :offset="[0, 0]"></u-badge>
</div> </div>
</div> </div>
</template> </template>
...@@ -188,6 +189,10 @@ export default { ...@@ -188,6 +189,10 @@ export default {
showPicker: false, showPicker: false,
selectedType: "", selectedType: "",
contactList: [], contactList: [],
/** 是否展示咨询列表 */
isShowList: false,
/** 咨询列表数量 */
listCount: 0,
}; };
}, },
computed: { computed: {
...@@ -221,6 +226,20 @@ export default { ...@@ -221,6 +226,20 @@ export default {
this.initField(); this.initField();
this.initTypeList(); this.initTypeList();
this.initContacts(); this.initContacts();
this.initShowList();
},
/**
* 初始化是否展示列表入口
*/
initShowList() {
this.$fetch({
url: API.haveAuth,
data: {},
methods: 'get',
}).then((res) => {
this.listCount = res.numb
this.changeShowList(res.haveInvest);
});
}, },
initContacts() { initContacts() {
this.$fetch({ this.$fetch({
...@@ -339,6 +358,9 @@ export default { ...@@ -339,6 +358,9 @@ export default {
phoneNumber: phone, phoneNumber: phone,
}); });
}, },
changeShowList(b) {
this.isShowList = b;
},
}, },
}; };
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment