瀏覽代碼

2021-6-29

hwq 4 年之前
父節點
當前提交
7c36bf8b1c
共有 5 個文件被更改,包括 8 次插入7 次删除
  1. 1 1
      manifest.json
  2. 2 2
      pages/index/index.vue
  3. 1 1
      pages/user/about.vue
  4. 3 2
      pages/user/user.vue
  5. 1 1
      store/index.js

+ 1 - 1
manifest.json

@@ -72,7 +72,7 @@
             "proxy" : {
                 "/api" : {
                     // "target" : "http://js.frp.liuniu946.com/api",
-                    "target" : "http://bbd.liuniu946.com/api",
+                    "target" : "http://www.babido.cn/api",
                     // "changeOrigin": true,
                     "pathRewrite" : {
                         "/api" : "" // rewrite path

+ 2 - 2
pages/index/index.vue

@@ -24,7 +24,7 @@
 				<view class="font">问题反馈</view>
 			</view>
 		</view>
-		<view class="title">教育资讯</view>
+		<!-- <view class="title">教育资讯</view>
 		<scroll-view scroll-y="true" class="listBox">
 			<view v-for="(item, index) in dataList" :key="index" class="list" @click="navto(item)">
 				<view class="img"><image :src="item.image_input[0]" mode=""></image></view>
@@ -33,7 +33,7 @@
 					<view class="time">{{ item.add_time }}</view>
 				</view>
 			</view>
-		</scroll-view>
+		</scroll-view> -->
 	</view>
 </template>
 

+ 1 - 1
pages/user/about.vue

@@ -23,7 +23,7 @@
 		methods:{
 			async loadData(){
 				const obj = this;
-				details({},5).then(({data}) => {
+				details({},1).then(({data}) => {
 					obj.time = data.add_time;
 					obj.content = data.content;
 					obj.image = data.image_input[0];

+ 3 - 2
pages/user/user.vue

@@ -128,8 +128,9 @@ export default {
 				.catch(e => {
 					console.log(e);
 				});
-			my({}).then(({ data }) => {
-				this.guwen = data.adviser;
+			my({}).then(({ data }) => {
+				console.log(data,"123456");
+				this.guwen = data.adviser_name;
 				this.all = data.sum_class;
 				this.leave = data.leave;
 				this.gift = data.give_class;

+ 1 - 1
store/index.js

@@ -5,7 +5,7 @@ Vue.use(Vuex)
 
 const store = new Vuex.Store({
 	state: {
-		baseURL: 'http://bbd.liuniu946.com'	,
+		baseURL: 'http://www.babido.cn'	,
 		// baseURL: 'https://zhibo.liuniu946.com', //请求地址配置
 		urlFile:'/index',//项目部署所在文件夹
 		hasLogin: false, //是否登录