Commit ac5ba8cb authored by 王玉鑫's avatar 王玉鑫

feat: 咨询列表

parent 53a5a5ca
...@@ -98,7 +98,12 @@ ...@@ -98,7 +98,12 @@
></image> ></image>
</div> </div>
<div>咨询列表</div> <div>咨询列表</div>
<u-badge max="99" :value="listCount" absolute :offset="[0, 0]"></u-badge> <u-badge
max="99"
:value="listCount"
absolute
:offset="[0, 0]"
></u-badge>
</div> </div>
</div> </div>
</template> </template>
...@@ -124,6 +129,7 @@ ...@@ -124,6 +129,7 @@
:show="showPicker" :show="showPicker"
:columns="formatedTypeList" :columns="formatedTypeList"
closeOnClickOverlay closeOnClickOverlay
immediateChange
@close="changeShowPicker(false)" @close="changeShowPicker(false)"
@cancel="changeShowPicker(false)" @cancel="changeShowPicker(false)"
@confirm="handlePickerConfirm" @confirm="handlePickerConfirm"
...@@ -235,9 +241,9 @@ export default { ...@@ -235,9 +241,9 @@ export default {
this.$fetch({ this.$fetch({
url: API.haveAuth, url: API.haveAuth,
data: {}, data: {},
methods: 'get', methods: "get",
}).then((res) => { }).then((res) => {
this.listCount = res.numb this.listCount = res.numb;
this.changeShowList(res.haveInvest); this.changeShowList(res.haveInvest);
}); });
}, },
...@@ -318,6 +324,7 @@ export default { ...@@ -318,6 +324,7 @@ export default {
}); });
this.initField(); this.initField();
form.clearValidate(); form.clearValidate();
this.initShowList();
}) })
.finally(() => { .finally(() => {
this.changeLoading(false); this.changeLoading(false);
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="body"> <div class="body">
<div class="list-item" v-for="item of dataList" :key="item.id"> <div class="list-item" v-for="item of dataList" :key="item.id">
<div class="title"> <div class="title">
<div>{{ getTypeName(item.consultType) }}</div> <div class="title-type">{{ getTypeName(item.consultType) }}</div>
<div class="company">{{ item.company }}</div> <div class="company">{{ item.company }}</div>
</div> </div>
<div class="info-cell"> <div class="info-cell">
...@@ -23,12 +23,14 @@ ...@@ -23,12 +23,14 @@
<div class="desc-cell"> <div class="desc-cell">
<div class="desc-name">需求描述:</div> <div class="desc-name">需求描述:</div>
<div class="desc-value"> <div class="desc-value">
<div class="desc">
{{ item.details || "--" }} {{ item.details || "--" }}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
...@@ -38,36 +40,7 @@ export default { ...@@ -38,36 +40,7 @@ export default {
name: "InvestmentList", name: "InvestmentList",
data() { data() {
return { return {
dataList: [ dataList: [],
{
company: "12312312",
consultType: "1",
createBy: "",
createTime: "",
details: "afoijwoifejwofiew",
email: "18500055742@qq.com",
id: 0,
name: "王一二",
phone: "199040222--3",
updateBy: "",
updateTime: "2022-01-04 18:32",
version: 0,
},
{
company: "",
consultType: 0,
createBy: "",
createTime: "",
details: "",
email: "",
id: 0,
name: "",
phone: "",
updateBy: "",
updateTime: "",
version: 0,
},
],
pageNum: 1, pageNum: 1,
haveMore: true, haveMore: true,
isLoading: true, isLoading: true,
...@@ -100,7 +73,7 @@ export default { ...@@ -100,7 +73,7 @@ export default {
}, },
data: { data: {
current: this.pageNum, current: this.pageNum,
size: 20, size: 5,
condition: {}, condition: {},
}, },
success: (res) => { success: (res) => {
...@@ -112,8 +85,8 @@ export default { ...@@ -112,8 +85,8 @@ export default {
}, },
getTypeName(type) { getTypeName(type) {
return ( return (
this.typeList.find(({ dictValue }) => dictValue === type)?.dictLabel || this.typeList.find(({ dictValue }) => Number(dictValue) === type)
"" ?.dictLabel || ""
); );
}, },
}, },
...@@ -148,6 +121,9 @@ export default { ...@@ -148,6 +121,9 @@ export default {
font-family: HiraginoSansGB, HiraginoSansGB; font-family: HiraginoSansGB, HiraginoSansGB;
color: #333333; color: #333333;
} }
.title-type {
font-weight: bold;
}
.company { .company {
margin-left: 20rpx; margin-left: 20rpx;
border-radius: 16rpx; border-radius: 16rpx;
...@@ -181,6 +157,7 @@ export default { ...@@ -181,6 +157,7 @@ export default {
font-size: 24rpx; font-size: 24rpx;
font-weight: 500; font-weight: 500;
color: #606266; color: #606266;
word-break: break-all;
} }
} }
.desc-cell { .desc-cell {
...@@ -192,10 +169,28 @@ export default { ...@@ -192,10 +169,28 @@ export default {
color: #333333; color: #333333;
} }
.desc-value { .desc-value {
position: relative;
margin-top: 30rpx; margin-top: 30rpx;
.desc {
font-size: 24rpx; font-size: 24rpx;
font-weight: 500; font-weight: 500;
line-height: 30rpx;
color: #606266; color: #606266;
word-break: break-all;
text-align: justify;
}
.expand {
position: absolute;
right: 0;
bottom: 0;
display: flex;
align-items: center;
z-index: 10;
font-size: 24rpx;
font-weight: 500;
line-height: 30rpx;
color: #4374ef;
}
} }
} }
} }
......
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