2 Achegas 37a7870118 ... 0ec87279d5

Autor SHA1 Mensaxe Data
  littleblue55 0ec87279d5 修改:修改url hai 2 semanas
  littleblue55 7ac7ff687f 修改:初始登录页的logo链接 hai 2 semanas

+ 3 - 15
pages/goOnEdu/course/courseMine/mineRecord/recordDetail.vue

@@ -11,12 +11,6 @@
 				<view class="list-item" style="width: 20%;">
 					学分
 				</view>
-				<!-- <view class="list-item">
-					年检情况
-				</view>
-				<view class="list-item">
-					是否完成观看
-				</view> -->
 			</view>
 			<scroll-view scroll-y="true" class="scroll-Y" @scrolltolower="scrolltolower" v-if="list.length > 0">
 				<view class="list-item-content" v-for="(item, index) in list" :key="index">
@@ -29,12 +23,6 @@
 					<view class="list-item" style="width: 20%;">
 						{{item.credit}}
 					</view>
-					<!-- <view class="list-item" v-html="item.annIns!=='学分未达标不能申请年检' ? item.annIns : '学分未达标,<br/>不能申请年检'"></view>
-					<view class="list-item">
-						<view class="button" :class="[item.finish ? 'primary' : 'error']">
-							{{item.finish ? '已完成观看' : '未完成'}}
-						</view>
-					</view> -->
 				</view>
 			</scroll-view>
 			<u-empty v-else text="暂无数据" mode="list" style="margin: 20rpx"></u-empty>
@@ -65,7 +53,7 @@
 			"year": currentYear.value
 		}
 		if(pageNumber.value===1){
-			list.value = [] 
+			list.value = []
 		}
 		uni.showLoading({
 			title: '加载中',
@@ -163,7 +151,7 @@
 				text-align: center;
 
 				&:last-child {
-					
+
 					font-weight: normal;
 				}
 			}
@@ -232,4 +220,4 @@
 			}
 		}
 	}
-</style>
+</style>

+ 14 - 4
pages/index/index.vue

@@ -7,12 +7,12 @@
 		</u-navbar>
 		<!-- <u-link href="http://www.uviewui.com">蜀道难,难于上青天</u-link> -->
 		<view class="page-content">
-			<swiper class="swiper" 
+			<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" 
+				<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>
@@ -128,7 +128,8 @@
 	import {
 		onReady,
 		onLoad,
-		onShow
+		onShow,
+		onShareAppMessage
 	} from '@dcloudio/uni-app'
 	import {
 		useAuthStore
@@ -309,7 +310,7 @@ import { msg, msgSuccess } from '../../utils/common'
 		if (data.id === 'index') {
 			// jlrzsUrl.value = 'https://www.gzrea.cn:8089/start/534C6DA13FDBAD13479F099E9FC873DF/4D3433353936/'
 			const src = encodeURIComponent(jlrzsUrl.value);
-			
+
 			uni.navigateTo({
 				url: `/pages/webview/webview?url=${src}`
 			});
@@ -436,6 +437,15 @@ import { msg, msgSuccess } from '../../utils/common'
 			}
 		})
 	})
+	// 测试
+	// onShareAppMessage(async (res) => {
+	// 	// console.log(processedImage)
+	// 	return {
+	// 		title: 'fenxiang',
+	// 		path: `/pages/index/index`,
+	// 		imageUrl: 'https://www.gzrea.org.cn/upload/news/2025/07/08b94d42b95bed40c987fe252852ba348ace99348105088a.jpg'
+	// 	};
+	// })
 	onLoad(() => {
 		init()
 		// uni.setBackgroundColor({

+ 16 - 12
pages/initial/initial.vue

@@ -2,7 +2,7 @@
 	<view class="app-login-page">
 		<view class="app-login">
 			<view class="app-icon u-m-b-30 ">
-				<image src="http://www.gzrea.org.cn:8543/icon/wxmp/login-icon.png"
+				<image :src="`${FILE_URL}/login-icon.png`"
 					mode="aspectFit" style="height: 80rpx;"></image>
 			</view>
 			<view class="app-title u-m-b-60">
@@ -52,6 +52,10 @@
 	import {
 		me
 	} from '@/api/user.js'
+
+	import configService from '@/utils/baseurl.js'
+	const FILE_URL = configService.FILE_URL;
+
 	const authStore = useAuthStore()
 	const userBook = ref(true)
 	const userBookModal = ref(false)
@@ -61,23 +65,23 @@
 		})
 	}
 	async function wxlogin(){
-		
-		
+
+
 		const loginRes = await wx.login();
 		const code = loginRes.code;
 		wxLoginOpenid({code}).then(res=>{
 			if(res?.data){
 				const { openid, sessionKey } = res.data
-				
+
 			}
 		})
 	}
-	
+
 	function confirmModal() {
 		userBook.value = true
 		// this.wxlogin()
 	}
-	
+
 	function checkUserBook() {
 		if (!userBook.value) {
 			userBookModal.value = true
@@ -85,11 +89,11 @@
 		}
 		return true
 	}
-	
+
 	function check(){
 		if (!checkUserBook()) return;
 	}
-	
+
 	async function decryptPhoneNumber(e){
 		if (e.detail.encryptedData) {
 			const {
@@ -135,7 +139,7 @@
 			}catch(err){
 				console.log("ee", err)
 			}
-			
+
 			// 将 encryptedData 和 iv 发送到后端进行解密
 		} else {
 			msg('取消授权手机号');
@@ -193,7 +197,7 @@
 	.mb-30 {
 		margin-bottom: 30rpx;
 	}
-	
+
 	.login-button {
 		background: linear-gradient(90deg, #006af5, #21b0fc);
 		border-radius: 20rpx;
@@ -210,12 +214,12 @@
 		color: #006af5;
 		background: #e5e5e5;
 	}
-	
+
 	// 用户手册模拟态
 	.modal {
 		.modal-content {
 			padding: 50rpx;
-	
+
 			.content-a {
 				color: #2979ff;
 			}

+ 4 - 4
utils/baseurl.js

@@ -2,11 +2,11 @@ let BASE_URL = ''
 let FILE_URL = ''
 // baseurl  联调时改url
 if (process.env.NODE_ENV == 'development') {
-	BASE_URL = 'https://www.gzrea.cn:8443/wxmp/api';
-	FILE_URL = 'https://www.gzrea.cn:8443/wxmp/static/icon';
+	BASE_URL = 'https://www.gzrea.cn/wxmp/api';
+	FILE_URL = 'https://www.gzrea.cn/wxmp/static/icon';
 }else{
-	BASE_URL = 'https://www.gzrea.cn:8443/wxmp/api';
-	FILE_URL = 'https://www.gzrea.cn:8443/wxmp/static/icon';
+	BASE_URL = 'https://www.gzrea.cn/wxmp/api';
+	FILE_URL = 'https://www.gzrea.cn/wxmp/static/icon';
 }
 
 const configService = {