Compare commits
2 Commits
7aa7f1aedb
...
fb72a18e24
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fb72a18e24 | ||
|
|
e8c88b81d9 |
@ -77,7 +77,20 @@
|
|||||||
bloggerTypeList: [],
|
bloggerTypeList: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onReady() {
|
||||||
|
console.log("onReady")
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
console.log("mounted")
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
console.log("onShow")
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
console.log("onLoad")
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
console.log("mounted")
|
||||||
this.initData("dl_platform", "platformList")
|
this.initData("dl_platform", "platformList")
|
||||||
this.initData("dl_blogger_type", "bloggerTypeList")
|
this.initData("dl_blogger_type", "bloggerTypeList")
|
||||||
this.selectDataList()
|
this.selectDataList()
|
||||||
@ -180,6 +193,7 @@
|
|||||||
* 上滑加载数据
|
* 上滑加载数据
|
||||||
*/
|
*/
|
||||||
onReachBottomCus() {
|
onReachBottomCus() {
|
||||||
|
console.log("11111")
|
||||||
//判断 如果页码*页容量大于等于总条数,提示该页数据加载完毕
|
//判断 如果页码*页容量大于等于总条数,提示该页数据加载完毕
|
||||||
if (this.queryParams.pageNum * this.queryParams.pageSize >= this.total) {
|
if (this.queryParams.pageNum * this.queryParams.pageSize >= this.total) {
|
||||||
toast("没有更多数据了")
|
toast("没有更多数据了")
|
||||||
|
|||||||
@ -5,9 +5,9 @@
|
|||||||
<!-- 通告列表页 -->
|
<!-- 通告列表页 -->
|
||||||
<notice-index ref="noticeIndex" :nowUserType="nowUserType" v-if="'home'==menuCode"
|
<notice-index ref="noticeIndex" :nowUserType="nowUserType" v-if="'home'==menuCode"
|
||||||
@openVip="openVip"></notice-index>
|
@openVip="openVip"></notice-index>
|
||||||
<mine-index ref="minePage" :key="nowUserType" :nowUserType="nowUserType" v-if="'my'==menuCode"
|
<mine-index ref="minePageCus" :key="nowUserType" :nowUserType="nowUserType" v-if="'my'==menuCode"
|
||||||
@refreshUserType="refreshUserType()"></mine-index>
|
@refreshUserType="refreshUserType()"></mine-index>
|
||||||
<subscribe :nowUserType="nowUserType" v-if="'dingyue'==menuCode"></subscribe>
|
<subscribe ref="subscribe" :nowUserType="nowUserType" v-if="'dingyue'==menuCode"></subscribe>
|
||||||
<my-notice ref="myNotice" :nowUserType="nowUserType"
|
<my-notice ref="myNotice" :nowUserType="nowUserType"
|
||||||
v-if="'myNotice'==menuCode && '02'==nowUserType"></my-notice>
|
v-if="'myNotice'==menuCode && '02'==nowUserType"></my-notice>
|
||||||
<my-notice-tg ref="myNoticeTg" :nowUserType="nowUserType"
|
<my-notice-tg ref="myNoticeTg" :nowUserType="nowUserType"
|
||||||
@ -98,7 +98,7 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
this.$refs.minePage.getDetail()
|
this.$refs.minePageCus.getDetail()
|
||||||
this.$refs.myNotice.search()
|
this.$refs.myNotice.search()
|
||||||
this.$refs.myNoticeTg.search()
|
this.$refs.myNoticeTg.search()
|
||||||
},
|
},
|
||||||
@ -106,7 +106,18 @@
|
|||||||
this.refreshUserType()
|
this.refreshUserType()
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.$refs.minePage.getDetail()
|
this.$nextTick(() => {
|
||||||
|
if (this.$refs.minePageCus) {
|
||||||
|
this.$refs.minePageCus.getDetail();
|
||||||
|
} else {
|
||||||
|
console.error('Component not found');
|
||||||
|
}
|
||||||
|
if (this.$refs.subscribe) {
|
||||||
|
this.$refs.subscribe.onRefresherrefresh();
|
||||||
|
} else {
|
||||||
|
console.error('Component not found');
|
||||||
|
}
|
||||||
|
});
|
||||||
this.refreshUserType()
|
this.refreshUserType()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.checkUserIfLogin()
|
this.checkUserIfLogin()
|
||||||
|
|||||||
@ -34,15 +34,15 @@
|
|||||||
</view>
|
</view>
|
||||||
<image class="detail-right-img" src="@/static/mine/auth/geren.png" mode="aspectFit"></image>
|
<image class="detail-right-img" src="@/static/mine/auth/geren.png" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-detail" style="background-color: #F8F4FF;" @click="goForm('05')">
|
<view class="item-detail" style="background-color: #EDFFF1;" @click="goForm('05')">
|
||||||
<view class="detail-left-box">
|
<view class="detail-left-box">
|
||||||
<view class="left-top">
|
<view class="left-top">
|
||||||
<image src="@/static/mine/auth/dian.png" mode="aspectFit"></image>
|
<image src="@/static/mine/auth/dian.png" mode="aspectFit"></image>
|
||||||
<text>转发PR</text>
|
<text>转发PR</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="left-bottom">如果你是以个人名义推广其他公司的产品,请选择“转发PR”</view>
|
<view class="left-bottom">如果你是转发其他平台的通告,请选择“转发PR”</view>
|
||||||
</view>
|
</view>
|
||||||
<image class="detail-right-img" src="@/static/mine/auth/geren.png" mode="aspectFit"></image>
|
<image class="detail-right-img" src="@/static/mine/auth/zhuanfaPR.png" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-detail" style="background-color: #FEF8F3;" @click="goForm('04')">
|
<view class="item-detail" style="background-color: #FEF8F3;" @click="goForm('04')">
|
||||||
<view class="detail-left-box">
|
<view class="detail-left-box">
|
||||||
|
|||||||
@ -334,17 +334,30 @@
|
|||||||
this.dataObj[key] = []
|
this.dataObj[key] = []
|
||||||
this.dataObj[key].push(item.code)
|
this.dataObj[key].push(item.code)
|
||||||
} else {
|
} else {
|
||||||
let tempList = []
|
if (this.dataObj[key].includes(item.code)) {
|
||||||
this.dataObj[key].push(item.code)
|
//已选中,取消选中
|
||||||
this.dataObj[key].forEach(it => {
|
let tempList = []
|
||||||
if (it != '-1') {
|
this.dataObj[key].forEach(it => {
|
||||||
tempList.push(it)
|
if (it != '-1' && item.code != it) {
|
||||||
|
tempList.push(it)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if (tempList.length == 0) {
|
||||||
|
tempList.push("-1")
|
||||||
}
|
}
|
||||||
})
|
this.dataObj[key] = tempList
|
||||||
this.dataObj[key] = tempList
|
} else {
|
||||||
|
//未选中,选中
|
||||||
|
let tempList = []
|
||||||
|
this.dataObj[key].push(item.code)
|
||||||
|
this.dataObj[key].forEach(it => {
|
||||||
|
if (it != '-1') {
|
||||||
|
tempList.push(it)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.dataObj[key] = tempList
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 添加关键词
|
* 添加关键词
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user