|
@@ -6,31 +6,32 @@
|
|
|
:visited="visited"
|
|
|
@click="onCellClick(item, 'buyer')"
|
|
|
/>
|
|
|
- <ProjectCell
|
|
|
- v-else
|
|
|
- :keys="searchKey"
|
|
|
- card-type="detailed"
|
|
|
- class="list-project-cell"
|
|
|
- :visited="visited"
|
|
|
- v-bind="item"
|
|
|
- @click="onCellClick(item, 'bidding')"
|
|
|
- >
|
|
|
- <template #buyerText="{ item }">
|
|
|
- <span class="buyer-item link-clickable">
|
|
|
- {{ item.text }}
|
|
|
- </span>
|
|
|
- </template>
|
|
|
- <template #winnerText="{ item }">
|
|
|
- <span
|
|
|
- v-for="(winner, index) in item.children"
|
|
|
- :key="index"
|
|
|
- class="winner-item highlight-text link-clickable j-splitter"
|
|
|
- data-j-splitter="、"
|
|
|
- >
|
|
|
- {{ winner.text }}
|
|
|
- </span>
|
|
|
- </template>
|
|
|
- </ProjectCell>
|
|
|
+ <use-login v-else class="custom-cell-container" @click="onCellClick(item, 'bidding')" @success="onCellClick(item, 'bidding')">
|
|
|
+ <ProjectCell
|
|
|
+ :keys="searchKey"
|
|
|
+ card-type="detailed"
|
|
|
+ class="list-project-cell"
|
|
|
+ :visited="visited"
|
|
|
+ v-bind="item"
|
|
|
+ >
|
|
|
+ <template #buyerText="{ item }">
|
|
|
+ <span class="buyer-item link-clickable">
|
|
|
+ {{ item.text }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ <template #winnerText="{ item }">
|
|
|
+ <span
|
|
|
+ v-for="(winner, index) in item.children"
|
|
|
+ :key="index"
|
|
|
+ class="winner-item highlight-text link-clickable j-splitter"
|
|
|
+ data-j-splitter="、"
|
|
|
+ >
|
|
|
+ {{ winner.text }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </ProjectCell>
|
|
|
+ </use-login>
|
|
|
+
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -39,10 +40,12 @@ import Taro from '@tarojs/taro'
|
|
|
import { checkArticleReadMax } from '@/api/modules/search'
|
|
|
import { showDialog, showToast } from '@/utils/'
|
|
|
import { mixinVisited } from '@/utils/mixins/visited'
|
|
|
+import UseLogin from "../../../login/useLogin.vue";
|
|
|
|
|
|
export default {
|
|
|
name: 'SearchFiltersContainer',
|
|
|
components: {
|
|
|
+ UseLogin,
|
|
|
[ProjectCell.name]: ProjectCell,
|
|
|
[BuyerCell.name]: BuyerCell
|
|
|
},
|
|
@@ -72,7 +75,7 @@ export default {
|
|
|
return {
|
|
|
loading: false,
|
|
|
visited: false,
|
|
|
- // 类型 1:标讯详情 2:画像详情页 3:情报详情页
|
|
|
+ // 类型 1:标讯详情 2:画像详情页 3:情报详情页
|
|
|
reqMap: {
|
|
|
bidding: 1,
|
|
|
buyer: 2,
|
|
@@ -117,6 +120,11 @@ export default {
|
|
|
id,
|
|
|
type: this.reqMap[this.cellType]
|
|
|
})
|
|
|
+
|
|
|
+ if (code === 1001) {
|
|
|
+ return -1
|
|
|
+ }
|
|
|
+
|
|
|
if (data) {
|
|
|
return data.isView // 0可正常访问。-1:未登录,-2:配置错误,-3:付费次数用完,-4:免费次数用完,-5 免费用户配置可读的是0
|
|
|
} else {
|
|
@@ -131,6 +139,7 @@ export default {
|
|
|
this.loading = true
|
|
|
try {
|
|
|
const status = await this.checkArticleReadMax(id)
|
|
|
+ console.log(status, 'sss')
|
|
|
if (status === -5) {
|
|
|
// 免费用户配置免费可读的是0,直接跳转去购买
|
|
|
this.toBuyVip()
|