|
@@ -40,7 +40,7 @@
|
|
@click="toPage('/pages/researchReport/reportHome/reportHome')"></u-section>
|
|
@click="toPage('/pages/researchReport/reportHome/reportHome')"></u-section>
|
|
</template>
|
|
</template>
|
|
<template v-slot:body>
|
|
<template v-slot:body>
|
|
- <view v-if="reportList.length!=0">
|
|
|
|
|
|
+ <view v-if="reportList.length!=0" >
|
|
<view v-for="(data,index) in reportList" :key="index" class="u-body-item u-flex u-p-t-0 "
|
|
<view v-for="(data,index) in reportList" :key="index" class="u-body-item u-flex u-p-t-0 "
|
|
style="align-items: inherit;" @click="toReport(data.id, data.title)">
|
|
style="align-items: inherit;" @click="toReport(data.id, data.title)">
|
|
<image :src="data.cover" mode="aspectFill"></image>
|
|
<image :src="data.cover" mode="aspectFill"></image>
|
|
@@ -180,18 +180,19 @@
|
|
const isMember = ref(false)
|
|
const isMember = ref(false)
|
|
|
|
|
|
// 首页-轮播图
|
|
// 首页-轮播图
|
|
- const swiperList = ref([{
|
|
|
|
- imgUrl: 'https://tse3-mm.cn.bing.net/th/id/OIP-C.YKoZzgmubNBxQ8j-mmoTKAHaEK?rs=1&pid=ImgDetMain',
|
|
|
|
- id: 1
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- imgUrl: 'https://pic3.zhimg.com/v2-e52354ffdbd94a8e0a7649eacd34a788_r.jpg?source=1940ef5c',
|
|
|
|
- id: 2
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- imgUrl: 'https://desk-fd.zol-img.com.cn/t_s960x600c5/g4/M03/00/0C/Cg-4zFS8bC-Ie9zBADCvovJAqiEAATJ8wDX__cAMK-6184.jpg',
|
|
|
|
- id: 3
|
|
|
|
- },
|
|
|
|
|
|
+ const swiperList = ref([
|
|
|
|
+ // {
|
|
|
|
+ // imgUrl: 'https://tse3-mm.cn.bing.net/th/id/OIP-C.YKoZzgmubNBxQ8j-mmoTKAHaEK?rs=1&pid=ImgDetMain',
|
|
|
|
+ // id: 1
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // imgUrl: 'https://pic3.zhimg.com/v2-e52354ffdbd94a8e0a7649eacd34a788_r.jpg?source=1940ef5c',
|
|
|
|
+ // id: 2
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // imgUrl: 'https://desk-fd.zol-img.com.cn/t_s960x600c5/g4/M03/00/0C/Cg-4zFS8bC-Ie9zBADCvovJAqiEAATJ8wDX__cAMK-6184.jpg',
|
|
|
|
+ // id: 3
|
|
|
|
+ // },
|
|
])
|
|
])
|
|
|
|
|
|
const courseList = ref([{
|
|
const courseList = ref([{
|
|
@@ -252,9 +253,9 @@
|
|
isLogin: true,
|
|
isLogin: true,
|
|
title: '水平认证',
|
|
title: '水平认证',
|
|
icon: 'icon-zhengshu-copy',
|
|
icon: 'icon-zhengshu-copy',
|
|
- url: '跳转页面的路径',
|
|
|
|
|
|
+ url: 'pages/index/index',
|
|
toOtherApp: true,
|
|
toOtherApp: true,
|
|
- otherAppId: '其他小程序的appid'
|
|
|
|
|
|
+ otherAppId: 'wx050c17d8b239da86'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
id: 'report',
|
|
id: 'report',
|
|
@@ -279,8 +280,8 @@
|
|
isLogin: true,
|
|
isLogin: true,
|
|
title: '会费缴交',
|
|
title: '会费缴交',
|
|
icon: 'icon-jinqian-jiage',
|
|
icon: 'icon-jinqian-jiage',
|
|
- url: '跳转页面的路径',
|
|
|
|
- toOtherApp: true,
|
|
|
|
|
|
+ url: '/pages/huiFeiJiaoJiao/huiFeiJiaoJiao',
|
|
|
|
+ toOtherApp: false,
|
|
otherAppId: '其他小程序的appid'
|
|
otherAppId: '其他小程序的appid'
|
|
}
|
|
}
|
|
])
|
|
])
|
|
@@ -291,7 +292,17 @@
|
|
const jumpToPage = (data) => {
|
|
const jumpToPage = (data) => {
|
|
if (data.toOtherApp) {
|
|
if (data.toOtherApp) {
|
|
// 跳转其他小程序
|
|
// 跳转其他小程序
|
|
- console.log("跳转至其他小程序", data.otherAppId)
|
|
|
|
|
|
+ wx.navigateToMiniProgram({
|
|
|
|
+ appId: data.otherAppId, // 例如:wx1234567890abcdef
|
|
|
|
+ path: data.url, // 跳转路径
|
|
|
|
+ envVersion: 'release', // 版本(develop/trial/release)
|
|
|
|
+ success(res) {
|
|
|
|
+ console.log('跳转成功');
|
|
|
|
+ },
|
|
|
|
+ fail(err) {
|
|
|
|
+ console.error('跳转失败', err);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (data.isLogin) {
|
|
if (data.isLogin) {
|
|
@@ -363,16 +374,18 @@
|
|
courseList.value = res.data
|
|
courseList.value = res.data
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ initReport()
|
|
|
|
+ // homeSetting().then(res=>{
|
|
|
|
+ // console.log(res)
|
|
|
|
+ // })
|
|
|
|
+ }
|
|
|
|
+ function initReport (){
|
|
homeReportList().then(res => {
|
|
homeReportList().then(res => {
|
|
if (res?.data) {
|
|
if (res?.data) {
|
|
reportList.value = res.data
|
|
reportList.value = res.data
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- // homeSetting().then(res=>{
|
|
|
|
- // console.log(res)
|
|
|
|
- // })
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
function getCharCount() {
|
|
function getCharCount() {
|
|
count().then(res => {
|
|
count().then(res => {
|
|
if (res && res.message === 'success') {
|
|
if (res && res.message === 'success') {
|
|
@@ -417,12 +430,14 @@
|
|
if (isLogin) {
|
|
if (isLogin) {
|
|
// 登录后才请求消息数量
|
|
// 登录后才请求消息数量
|
|
getCharCount()
|
|
getCharCount()
|
|
|
|
+ initReport()
|
|
// 没有用户信息就加载一边
|
|
// 没有用户信息就加载一边
|
|
if (!isUserInfo) {
|
|
if (!isUserInfo) {
|
|
initUser();
|
|
initUser();
|
|
} else {
|
|
} else {
|
|
isMember.value = authStore.userInfo.isMember === '0' ? false : true;
|
|
isMember.value = authStore.userInfo.isMember === '0' ? false : true;
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
})
|
|
})
|
|
@@ -659,4 +674,4 @@
|
|
color: $uni-text-color;
|
|
color: $uni-text-color;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+</style>
|