Преглед на файлове

Merge branch '大连交通技师学院' of https://gogs.mtavip.com/wangguoyu/uniProject into 大连交通技师学院

tanxue преди 2 месеца
родител
ревизия
2d4196337f
променени са 2 файла, в които са добавени 16 реда и са изтрити 3 реда
  1. 12 0
      api/common.js
  2. 4 3
      pages/xygkXiaoyuanfengguang/xygkXiaoyuanfengguang.vue

+ 12 - 0
api/common.js

@@ -741,4 +741,16 @@ export function getCommonZSJYZhaoshengjianzhangInfo(data = {}) {
 		data,
 		timeout: 20000
 	})
+}
+
+export function getCommonXygkXiaoyuanfengguang(data = {}) {
+	return request({
+		'url': '/common/gaikuang/fengguang/list',
+		headers: {
+			isToken: false
+		},
+		method: 'post',
+		data,
+		timeout: 20000
+	})
 }

+ 4 - 3
pages/xygkXiaoyuanfengguang/xygkXiaoyuanfengguang.vue

@@ -16,7 +16,7 @@
 							<image :src="item.content"></image>
 							<!-- 内容 -->
 							<view class="list-right-box">
-								<view class="time-data">{{formatDateToYearMonthDay(item.createTime).join(-)}}</view>
+								<view class="time-data">{{formatDateToYearMonthDay(item.createTime).join('-')}}</view>
 								<view class="list-name">{{item.title}}</view>
 							</view>
 						</view>
@@ -44,6 +44,7 @@
 		getStringByHtml3
 	} from "@/utils/common.js"
 	import MtaFooter from "@/components/MtaFooter.vue"
+  import {getCommonXygkXiaoyuanfengguang} from "../../api/common";
 
 	const data = reactive({
 		list: '',
@@ -59,7 +60,7 @@
 	}
 
 	function getList(data) {
-		return httpApi.getCommonGaikuangRongyuList(data)
+		return httpApi.getCommonXygkXiaoyuanfengguang(data)
 	}
 
 	function handleGo() {
@@ -69,7 +70,7 @@
 	}
 
 	function pageInit() {
-		httpApi.getCommonGaikuangRongyuList({
+		httpApi.getCommonXygkXiaoyuanfengguang({
 			page: data.page,
 			size: data.size
 		}).then(res => {