|
@@ -443,6 +443,27 @@ pre {
|
|
line-height: 0.40rem;
|
|
line-height: 0.40rem;
|
|
border: 0.5px solid rgba(0, 0, 0, 0.05);
|
|
border: 0.5px solid rgba(0, 0, 0, 0.05);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+.collec_list{
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ margin-top: .08rem;
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: .4rem;
|
|
|
|
+}
|
|
|
|
+.collec_list .collec_tags{
|
|
|
|
+ margin-right: .08rem;
|
|
|
|
+ padding: .02rem .16rem;
|
|
|
|
+ background: rgba(5,166,243,0.05);
|
|
|
|
+ border-radius: 4px;
|
|
|
|
+ font-size: .24rem;
|
|
|
|
+ font-family: PingFang SC, PingFang SC-Medium;
|
|
|
|
+ font-weight: 500;
|
|
|
|
+ text-decoration: underline;
|
|
|
|
+ text-align: CENTER;
|
|
|
|
+ color: #05a6f3;
|
|
|
|
+}
|
|
|
|
+
|
|
.area {}
|
|
.area {}
|
|
|
|
|
|
.buyerclass{}
|
|
.buyerclass{}
|
|
@@ -591,7 +612,7 @@ pre {
|
|
</head>
|
|
</head>
|
|
<body>
|
|
<body>
|
|
<div id="jyKeepComponent">
|
|
<div id="jyKeepComponent">
|
|
- <keep-component ref="vKeepComponent" @on-change-keep="changeKeepStatus" :bid="nowOpenBid" :first="false"></keep-component>
|
|
|
|
|
|
+ <keep-component ref="vKeepComponent" @on-save-tag="getKeepList" @on-change-keep="changeKeepStatus" :bid="nowOpenBid" :first="false"></keep-component>
|
|
</div>
|
|
</div>
|
|
<!-- 开启推送 -->
|
|
<!-- 开启推送 -->
|
|
<div class="open" onClick="window.location.href='/front/applysub/index'">
|
|
<div class="open" onClick="window.location.href='/front/applysub/index'">
|
|
@@ -728,6 +749,8 @@ pre {
|
|
{{ end }}
|
|
{{ end }}
|
|
</script>
|
|
</script>
|
|
</div>
|
|
</div>
|
|
|
|
+ <!-- 标签列表 -->
|
|
|
|
+ <div class="collec_list"></div>
|
|
<div class="time_label">
|
|
<div class="time_label">
|
|
<script>
|
|
<script>
|
|
var l_publishtime = {{.T.obj.l_publishtime}};
|
|
var l_publishtime = {{.T.obj.l_publishtime}};
|
|
@@ -2200,7 +2223,8 @@ var vKeepComponent = new Vue({
|
|
delimiters: ['${', '}'],
|
|
delimiters: ['${', '}'],
|
|
el: '#jyKeepComponent',
|
|
el: '#jyKeepComponent',
|
|
data: {
|
|
data: {
|
|
- nowOpenBid: ''
|
|
|
|
|
|
+ nowOpenBid: '',
|
|
|
|
+ list: []
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
changeBid (id, type) {
|
|
changeBid (id, type) {
|
|
@@ -2210,7 +2234,24 @@ var vKeepComponent = new Vue({
|
|
changeKeepStatus (type) {
|
|
changeKeepStatus (type) {
|
|
changeCollectStatus(type)
|
|
changeCollectStatus(type)
|
|
changeListSessionData(type)
|
|
changeListSessionData(type)
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ getKeepList (data) {
|
|
|
|
+ this.list = data
|
|
|
|
+ let collecHtml = ''
|
|
|
|
+ if(data && data.length !== 0) {
|
|
|
|
+ $('.collec_list').show()
|
|
|
|
+ data.forEach(function(item, index) {
|
|
|
|
+ collecHtml += `<span class="collec_tags" onclick="vKeepComponent.tagClick(${index})">${item.title}</span>`
|
|
|
|
+ })
|
|
|
|
+ $('.collec_list').html(collecHtml)
|
|
|
|
+ } else {
|
|
|
|
+ $('.collec_list').hide()
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ tagClick (i) {
|
|
|
|
+ console.log(this.list[i])
|
|
|
|
+ location.href = '/weixin/frontPage/collection/sess/index?tag=' + this.list[i].title
|
|
|
|
+ }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
@@ -2243,13 +2284,25 @@ function getCollectionState () {
|
|
url: '/publicapply/bidcoll/isColl',
|
|
url: '/publicapply/bidcoll/isColl',
|
|
type: 'POST',
|
|
type: 'POST',
|
|
data: {
|
|
data: {
|
|
- bids: id
|
|
|
|
|
|
+ bids: id,
|
|
|
|
+ label: 'info'
|
|
},
|
|
},
|
|
success: function (res) {
|
|
success: function (res) {
|
|
if (res.error_code === 0 && res.data) {
|
|
if (res.error_code === 0 && res.data) {
|
|
- if (res.data.length) {
|
|
|
|
|
|
+ if (res.data.iscoll) {
|
|
changeCollectStatus(true)
|
|
changeCollectStatus(true)
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
+ if(res.data.labels && res.data.labels.length) {
|
|
|
|
+ $('.collec_list').show()
|
|
|
|
+ vKeepComponent.list = res.data.labels
|
|
|
|
+ let collecHtml = ''
|
|
|
|
+ res.data.labels.forEach(function(item, index) {
|
|
|
|
+ collecHtml += `<span class="collec_tags" onclick="vKeepComponent.tagClick(${index})">${item.title}</span>`
|
|
|
|
+ })
|
|
|
|
+ $('.collec_list').html(collecHtml)
|
|
|
|
+ } else {
|
|
|
|
+ $('.collec_list').hide()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|