|
@@ -7,13 +7,9 @@
|
|
|
</u-navbar>
|
|
|
<!-- <u-link href="http://www.uviewui.com">蜀道难,难于上青天</u-link> -->
|
|
|
<view class="page-content">
|
|
|
- <swiper class="swiper"
|
|
|
- autoplay
|
|
|
- :interval="5000"
|
|
|
- :duration="500"
|
|
|
- circular indicator-dots style="border-radius: 20rpx;overflow: hidden;height: 200px">
|
|
|
- <swiper-item v-for="(data, index) in swiperList"
|
|
|
- style="width: 100%;height: 100%;" :key="index">
|
|
|
+ <swiper class="swiper" autoplay :interval="5000" :duration="500" circular indicator-dots
|
|
|
+ style="border-radius: 20rpx;overflow: hidden;height: 200px">
|
|
|
+ <swiper-item v-for="(data, index) in swiperList" style="width: 100%;height: 100%;" :key="index">
|
|
|
<view class="swiper-item" style="width: 100%;height: 100%;" @click="itemClick(data)">
|
|
|
<image :src="data.imgUrl" mode="aspectFill" style="width: 100%;height: 100%;"></image>
|
|
|
</view>
|
|
@@ -128,8 +124,7 @@
|
|
|
import {
|
|
|
onReady,
|
|
|
onLoad,
|
|
|
- onShow,
|
|
|
- onShareAppMessage
|
|
|
+ onShow
|
|
|
} from '@dcloudio/uni-app'
|
|
|
import {
|
|
|
useAuthStore
|
|
@@ -152,7 +147,10 @@
|
|
|
import {
|
|
|
useTabbarStore
|
|
|
} from '@/store/tabbarStore.js'
|
|
|
-import { msg, msgSuccess } from '../../utils/common'
|
|
|
+ import {
|
|
|
+ msg,
|
|
|
+ msgSuccess
|
|
|
+ } from '../../utils/common'
|
|
|
const tabbarStore = useTabbarStore()
|
|
|
// 底部导航栏数据
|
|
|
const tabbarList = computed(() => {
|
|
@@ -281,7 +279,6 @@ import { msg, msgSuccess } from '../../utils/common'
|
|
|
otherAppId: '其他小程序的appid'
|
|
|
}
|
|
|
])
|
|
|
-
|
|
|
const reportList = ref([])
|
|
|
// 跳转页面
|
|
|
const jumpToPage = (data) => {
|
|
@@ -438,12 +435,29 @@ import { msg, msgSuccess } from '../../utils/common'
|
|
|
})
|
|
|
})
|
|
|
// 测试
|
|
|
- // onShareAppMessage(async (res) => {
|
|
|
- // // console.log(processedImage)
|
|
|
+ // onShareAppMessage(() => {
|
|
|
+ // const imageUrl = 'https://www.gzrea.org.cn/upload/news/2025/07/06b20b86fe90188a86405a1b77e75c306cdfb722832fb569.jpg'
|
|
|
+
|
|
|
+ // console.log('分享图片路径:', imageUrl);
|
|
|
+ // uni.getImageInfo({
|
|
|
+ // src: imageUrl,
|
|
|
+ // success: (res) => {
|
|
|
+ // console.log('图片:', res);
|
|
|
+ // },
|
|
|
+ // fail: (err) => {
|
|
|
+ // console.error('图片加载失败:', err);
|
|
|
+ // }
|
|
|
+ // })
|
|
|
// return {
|
|
|
// title: 'fenxiang',
|
|
|
- // path: `/pages/index/index`,
|
|
|
- // imageUrl: 'https://www.gzrea.org.cn/upload/news/2025/07/08b94d42b95bed40c987fe252852ba348ace99348105088a.jpg'
|
|
|
+ // path: '/pages/index/index',
|
|
|
+ // imageUrl: 'https://www.gzrea.org.cn/upload/news/2025/07/06b20b86fe90188a86405a1b77e75c306cdfb722832fb569.jpg',
|
|
|
+ // success(res) {
|
|
|
+ // console.log('分享成功:', res);
|
|
|
+ // },
|
|
|
+ // fail(err) {
|
|
|
+ // console.error('分享失败:', err);
|
|
|
+ // }
|
|
|
// };
|
|
|
// })
|
|
|
onLoad(() => {
|
|
@@ -460,7 +474,7 @@ import { msg, msgSuccess } from '../../utils/common'
|
|
|
// 登录后才请求消息数量
|
|
|
getCharCount()
|
|
|
initReport()
|
|
|
- if(!jlrzsUrl.value){
|
|
|
+ if (!jlrzsUrl.value) {
|
|
|
loadUrl()
|
|
|
}
|
|
|
// 没有用户信息就加载一边
|