diff --git a/pages/components/subscribe.vue b/pages/components/subscribe.vue
index 74a4f89..93fb0c8 100644
--- a/pages/components/subscribe.vue
+++ b/pages/components/subscribe.vue
@@ -77,7 +77,20 @@
bloggerTypeList: [],
}
},
+ onReady() {
+ console.log("onReady")
+ },
mounted() {
+ console.log("mounted")
+ },
+ onShow() {
+ console.log("onShow")
+ },
+ onLoad() {
+ console.log("onLoad")
+ },
+ mounted() {
+ console.log("mounted")
this.initData("dl_platform", "platformList")
this.initData("dl_blogger_type", "bloggerTypeList")
this.selectDataList()
@@ -180,6 +193,7 @@
* 上滑加载数据
*/
onReachBottomCus() {
+ console.log("11111")
//判断 如果页码*页容量大于等于总条数,提示该页数据加载完毕
if (this.queryParams.pageNum * this.queryParams.pageSize >= this.total) {
toast("没有更多数据了")
diff --git a/pages/index.vue b/pages/index.vue
index a583a56..e6c90ff 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -5,9 +5,9 @@
-
-
+
{
+ 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()
setTimeout(() => {
this.checkUserIfLogin()
diff --git a/pages/mine/auth/auth-choose.vue b/pages/mine/auth/auth-choose.vue
index a7f20a9..096f872 100644
--- a/pages/mine/auth/auth-choose.vue
+++ b/pages/mine/auth/auth-choose.vue
@@ -34,15 +34,15 @@
-
+
转发PR
- 如果你是以个人名义推广其他公司的产品,请选择“转发PR”
+ 如果你是转发其他平台的通告,请选择“转发PR”
-
+
diff --git a/pages/notice/subscribe-set.vue b/pages/notice/subscribe-set.vue
index 9962b13..bdc3167 100644
--- a/pages/notice/subscribe-set.vue
+++ b/pages/notice/subscribe-set.vue
@@ -334,17 +334,30 @@
this.dataObj[key] = []
this.dataObj[key].push(item.code)
} else {
- let tempList = []
- this.dataObj[key].push(item.code)
- this.dataObj[key].forEach(it => {
- if (it != '-1') {
- tempList.push(it)
+ if (this.dataObj[key].includes(item.code)) {
+ //已选中,取消选中
+ let tempList = []
+ this.dataObj[key].forEach(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
+ }
}
-
},
/**
* 添加关键词