|
@@ -189,7 +189,6 @@ var subComponent = {
|
|
|
},
|
|
|
mounted () {
|
|
|
this.getData()
|
|
|
- this.getResultView()
|
|
|
},
|
|
|
watch: {
|
|
|
initdata: function(newVal, oldVal) {
|
|
@@ -205,6 +204,7 @@ var subComponent = {
|
|
|
this.setKeyword()
|
|
|
this.getActionDefault()
|
|
|
this.getIndustryType()
|
|
|
+ this.getResultView()
|
|
|
this.getProjectMatch()
|
|
|
},
|
|
|
// 设置区域
|
|
@@ -216,13 +216,11 @@ var subComponent = {
|
|
|
} else {
|
|
|
let proStr = ''
|
|
|
Object.keys(this.initdata.area).forEach(function(item,index) {
|
|
|
- console.log(_this.initdata.area[item])
|
|
|
if(_this.initdata.area[item].length == 0) {
|
|
|
proStr += item + '、'
|
|
|
} else {
|
|
|
let cityStr = ''
|
|
|
_this.initdata.area[item].forEach(function(data, i) {
|
|
|
- console.log(data)
|
|
|
cityStr += data + '、'
|
|
|
})
|
|
|
if (cityStr.length > 0) {
|
|
@@ -267,8 +265,12 @@ var subComponent = {
|
|
|
arr.push(data.key[0])
|
|
|
})
|
|
|
})
|
|
|
+ if(arr.length == 0) {
|
|
|
+ $('.body-item.keywords .keywords-text').text('请设置关键词')
|
|
|
+ } else {
|
|
|
+ $('.body-item.keywords .keywords-text').text('已设置' +arr.length+ '组关键词')
|
|
|
+ }
|
|
|
// $('.body-item.keywords .keywords-text').text(arr.join('、'))
|
|
|
- $('.body-item.keywords .keywords-text').text('已设置' +arr.length+ '组关键词')
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
@@ -291,7 +293,6 @@ var subComponent = {
|
|
|
},
|
|
|
// 项目匹配
|
|
|
getProjectMatch: function() {
|
|
|
- console.log(this.initdata.projectmatch)
|
|
|
if (this.initdata.projectmatch == 1) {
|
|
|
$('.switch').addClass('checked')
|
|
|
this.checkedflag = true
|
|
@@ -302,7 +303,6 @@ var subComponent = {
|
|
|
},
|
|
|
switchs: function() {
|
|
|
// switch点击切换
|
|
|
- console.log(this.checkedflag)
|
|
|
if (!this.checkedflag) {
|
|
|
this.checkedflag = !this.checkedflag;
|
|
|
this.setprojectmatch(1);
|
|
@@ -319,7 +319,6 @@ var subComponent = {
|
|
|
}
|
|
|
},
|
|
|
setprojectmatch(index) {
|
|
|
- console.log(this.checkedflag)
|
|
|
let _this = this
|
|
|
$.post("/subscribepay/afterPay/setUserInfo", {pageType: "projectMatch", pmindex: index}, function (r) {
|
|
|
if (r.flag) {
|
|
@@ -344,7 +343,6 @@ var subComponent = {
|
|
|
}
|
|
|
$('#iosActionsheet .weui-actionsheet__cell').each(function (index, item) {
|
|
|
var t = $(item).children().text().trim();
|
|
|
- console.log(t, defaultTitle)
|
|
|
if (t == defaultTitle) {
|
|
|
$(this).addClass('active')
|
|
|
}
|
|
@@ -423,7 +421,6 @@ var subComponent = {
|
|
|
type: 'POST',
|
|
|
url: '/subscribepay/afterPay/getPushCount',
|
|
|
success: function(res) {
|
|
|
- console.log(res)
|
|
|
if(_this.type == 'introduce') {
|
|
|
_this.pushsetShow = false
|
|
|
_this.resultTime = '(仅限超级订阅用户预览)'
|