Explorar o código

10.9暂时退回测试版

李万涛 hai 1 ano
pai
achega
c457671dae

+ 17 - 1
common/config.js

xqd
@@ -1,3 +1,19 @@
+var baseUrl = ''
+var chatUrl = ''
+if (process.env.NODE_ENV === 'development') {
+	console.log('开发环境---------------------');
+	baseUrl = 'https://t20.9026.com/api/common/upload'
+	chatUrl = 'https://t20.9026.com/api/chat/send'
+}
+if (process.env.NODE_ENV === 'production') {
+	console.log('生产环境------------------');
+	baseUrl = 'https://t20.9026.com/api/common/upload'
+	chatUrl = 'https://t20.9026.com/api/chat/send'
+
+	// baseUrl: 'https://www.ai5566.top/api/common/upload'
+}
+
 module.exports = {
-	baseUrl: 'https://www.ai5566.top/api/common/upload'
+	baseUrl,
+	chatUrl
 }

+ 2 - 2
manifest.json

xqd xqd
@@ -1,5 +1,5 @@
 {
-    "name" : "数趣AI",
+    "name" : "大学生任务接单平台",
     "appid" : "__UNI__CE99D9E",
     "description" : "",
     "versionName" : "1.0.0",
@@ -120,7 +120,7 @@
             "mode" : "history",
             "base" : "/h5/"
         },
-        "title" : "数趣AI",
+        "title" : "大学生任务接单平台",
         "devServer" : {
             "https" : false
         },

+ 3 - 1
pages/chat/chat.vue

xqd xqd
@@ -124,6 +124,7 @@
 	import {
 		sendGpt
 	} from '@/api/public/index.js';
+	import uploadUrl from '@/common/config.js'
 
 	import {
 		userInfo,
@@ -313,7 +314,8 @@
 
 				// 原方案
 
-				let url = 'https://www.ai5566.top/api/chat/send'
+				// let url = 'https://www.ai5566.top/api/chat/send'
+				let url = uploadUrl.chatUrl
 				fetch(url, {
 					method: 'POST',
 					headers: {

+ 1 - 1
pages/user/takenotes/takenotes.vue

xqd
@@ -91,7 +91,7 @@
 				let res = await quesRecord(params)
 				if (res.code == 0) {
 					// this.jobList = res.data.data
-					this.$refs.paging.complete(res.data.data.reverse());
+					this.$refs.paging.complete(res.data.data);
 					this.isLoading = false;
 				}
 				console.log('问答记录返回值', res, this.jobList);

+ 2 - 2
tuniao-ui/components/tn-nav-bar/tn-nav-bar.vue

xqd xqd
@@ -1,5 +1,5 @@
 <template>
-	<view class="tn-custom-nav-bar-class tn-custom-nav-bar" :style="[navBarStyle]">
+	<view class="tn-custom-nav-bar-class tn-custom-nav-bar" :style="[navBarStyle]" style="z-index: 1;">
 		<view class="tn-custom-nav-bar__bar" :class="[barClass]" :style="[barStyle]">
 			<view v-if="isBack">
 				<view v-if="customBack">
@@ -95,7 +95,7 @@
 				if (this.fixed) {
 					style.position = 'fixed'
 				}
-				style.zIndex = this.elZIndex
+				// style.zIndex = this.elZIndex
 
 				return style
 			},

+ 14 - 1
utils/request/index.js

xqd
@@ -6,7 +6,20 @@ uni.$u.http.setConfig((config) => {
 	/* config 为默认全局配置 */
 
 	// 数趣Ai项目接口根路径
-	config.baseURL = 'https://www.ai5566.top/api/' /* 根域名 */
+	// config.baseURL = 'https://www.ai5566.top/api/'
+	/* 根域名 */
+
+	if (process.env.NODE_ENV === 'development') {
+		console.log('开发环境---------------------');
+		config.baseURL = 'https://t20.9026.com/api/'
+	}
+	if (process.env.NODE_ENV === 'production') {
+		console.log('生产环境------------------');
+		config.baseURL = 'https://t20.9026.com/api/'
+
+		// config.baseURL = 'https://www.ai5566.top/api/'
+	}
+
 
 	config.header = {
 		// 'Content-Type': 'application/x-www-form-urlencoded',