|
@@ -1,10 +1,9 @@
|
|
|
<template>
|
|
|
<div class="home-list">
|
|
|
- <div class="divider-container">
|
|
|
+ <!-- <div class="divider-container">
|
|
|
<van-divider>最新标讯</van-divider>
|
|
|
- </div>
|
|
|
- <van-loading v-if="loading" style="text-align: center" />
|
|
|
- <div
|
|
|
+ </div> -->
|
|
|
+ <!-- <div
|
|
|
class="to-setting-container fixed-bottom"
|
|
|
v-if="showToSettingTip"
|
|
|
ref="settingTip"
|
|
@@ -17,16 +16,21 @@
|
|
|
<span>去设置</span>
|
|
|
<van-icon name="arrow" />
|
|
|
</button>
|
|
|
- <!-- <van-button
|
|
|
- size="mini"
|
|
|
- class="setting-button"
|
|
|
- type="confirm"
|
|
|
+ </div>
|
|
|
+ </div> -->
|
|
|
+ <div class="flex flex-items-center van-hairline--bottom home-list-header">
|
|
|
+ <h3 class="header-title">商机推荐</h3>
|
|
|
+ <div class="flex flex-items-center header-value">
|
|
|
+ <span class="header-desc">完善信息,推荐更准</span>
|
|
|
+ <span
|
|
|
+ class="flex flex-items-center header-set"
|
|
|
@click="gotoKeySettingPage"
|
|
|
- >去设置</van-button
|
|
|
- > -->
|
|
|
+ >去设置 <van-icon name="arrow" color="#2ABED1"></van-icon
|
|
|
+ ></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="list">
|
|
|
+ <van-loading v-if="loading" style="text-align: center" />
|
|
|
<project-cell
|
|
|
class="right-bottom"
|
|
|
v-for="(item, index) in list"
|
|
@@ -67,7 +71,7 @@
|
|
|
<AppIcon
|
|
|
style="margin-right: 4px"
|
|
|
svg
|
|
|
- size="20"
|
|
|
+ size="16"
|
|
|
:name="item.isCollected ? 'shoucang' : 'shoucang_weishoucang'"
|
|
|
/>
|
|
|
<span class="label-icon">收藏</span>
|
|
@@ -470,7 +474,8 @@ export default {
|
|
|
}
|
|
|
openAppOrWxPage({
|
|
|
wx: LINKS.标讯详情页前缀.wx + item.id + '.html?' + qs.stringify(query),
|
|
|
- app: LINKS.标讯详情页前缀.app + item.id + '.html?' + qs.stringify(query),
|
|
|
+ app:
|
|
|
+ LINKS.标讯详情页前缀.app + item.id + '.html?' + qs.stringify(query),
|
|
|
h5: LINKS.标讯详情页前缀.h5 + item.id + '.html?' + qs.stringify(query)
|
|
|
})
|
|
|
},
|
|
@@ -563,8 +568,8 @@ export default {
|
|
|
v?.bidamount
|
|
|
? formatMoney(v?.bidamount)
|
|
|
: v?.budget
|
|
|
- ? formatMoney(v?.budget)
|
|
|
- : ''
|
|
|
+ ? formatMoney(v?.budget)
|
|
|
+ : ''
|
|
|
].filter((v) => v),
|
|
|
time: v?.publishTime ? v.publishTime * 1000 : '',
|
|
|
data: v
|
|
@@ -591,6 +596,34 @@ export default {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.home-list {
|
|
|
+ .home-list-header {
|
|
|
+ margin: 8px 8px 0;
|
|
|
+ padding: 6px 12px;
|
|
|
+ background: linear-gradient(#d7fbff, #ffffff);
|
|
|
+ border-radius: 12px 12px 0 0;
|
|
|
+ .header-title {
|
|
|
+ margin-right: 8px;
|
|
|
+ font-size: 14px;
|
|
|
+ line-height: 20px;
|
|
|
+ font-weight: 700;
|
|
|
+ }
|
|
|
+ .header-value {
|
|
|
+ padding: 0 8px;
|
|
|
+ }
|
|
|
+ .header-desc {
|
|
|
+ color: #5f5e64;
|
|
|
+ font-size: 11px;
|
|
|
+ }
|
|
|
+ .header-set {
|
|
|
+ padding-left: 10px;
|
|
|
+ font-size: 11px;
|
|
|
+ line-height: 16px;
|
|
|
+ color: $color_main;
|
|
|
+ }
|
|
|
+ .van-icon-arrow {
|
|
|
+ margin-left: 4px;
|
|
|
+ }
|
|
|
+ }
|
|
|
.list {
|
|
|
background: #f5f6f7;
|
|
|
}
|
|
@@ -630,6 +663,10 @@ export default {
|
|
|
&::after {
|
|
|
margin-left: 16px;
|
|
|
}
|
|
|
+ &:first-child {
|
|
|
+ margin-top: 0;
|
|
|
+ border-radius: 0 0 12px 12px;
|
|
|
+ }
|
|
|
}
|
|
|
.list-tips {
|
|
|
background-color: #fff;
|
|
@@ -667,7 +704,7 @@ export default {
|
|
|
left: 50%;
|
|
|
bottom: calc(50px + 16px);
|
|
|
transform: translateX(-50%);
|
|
|
- transition: bottom ease .2s;
|
|
|
+ transition: bottom ease 0.2s;
|
|
|
z-index: 98;
|
|
|
}
|
|
|
.to-setting-container {
|
|
@@ -683,8 +720,8 @@ export default {
|
|
|
line-height: 18px;
|
|
|
color: #171826;
|
|
|
border-radius: 8px;
|
|
|
- background: linear-gradient(180deg, #E8FFFF 0%, #FFFFFF 100%);
|
|
|
- box-shadow: 0px 4px 16px 0px #081F2614;
|
|
|
+ background: linear-gradient(180deg, #e8ffff 0%, #ffffff 100%);
|
|
|
+ box-shadow: 0px 4px 16px 0px #081f2614;
|
|
|
border: 0.5px solid $main;
|
|
|
}
|
|
|
.to-setting-text {
|