|
|
|
@ -556,7 +556,7 @@ |
|
|
|
|
import { getNews, getIndexData } from "@/api/index"; |
|
|
|
|
import { groupWorks, getSpecialList } from "@/api/special"; |
|
|
|
|
import { getGoodsList } from "@/api/store"; |
|
|
|
|
import { unReadMsgNum } from '@/api/user'; |
|
|
|
|
import { unReadMsgNum, getCopyrightInfo } from '@/api/user'; |
|
|
|
|
import RecommendMaterial from "@/components/RecommendMaterial/index.vue"; |
|
|
|
|
import RecommendPoster from "@/components/RecommendPoster/index.vue"; |
|
|
|
|
import RecommendProblem from "@/components/RecommendProblem/index.vue"; |
|
|
|
@ -642,6 +642,7 @@ export default { |
|
|
|
|
this.getNewsList(); |
|
|
|
|
this.getgroupWork(); |
|
|
|
|
this.getUnReadMsgNum(); |
|
|
|
|
this.get_copyright(); |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
//#ifdef MP-WEIXIN |
|
|
|
@ -663,6 +664,15 @@ export default { |
|
|
|
|
return {}; |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// 版权信息 |
|
|
|
|
async get_copyright() { |
|
|
|
|
try { |
|
|
|
|
const { data } = await getCopyrightInfo(); |
|
|
|
|
uni.setStorageSync('openMember', data.is_open_member); |
|
|
|
|
} catch (err) { |
|
|
|
|
uni.setStorageSync('openMember', 0); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
getPositionAddress(longitude, latitude,) { |
|
|
|
|
qqmapsdk.reverseGeocoder({ |
|
|
|
|
location: { |
|
|
|
|