Browse Source

修改用户协议接口调用

pangqijun 1 year ago
parent
commit
4546aaf475

+ 7 - 4
pages/groupbuying/privacyAgreement/privacyAgreement.vue

@@ -11,7 +11,7 @@
 </template>
 
 <script>
-	import {getNoticeByType} from '@/api/groupon.js'
+	import {getNoticeByType, getArticle} from '@/api/groupon.js'
 	export default {
 		data() {
 			return {
@@ -29,9 +29,12 @@
 		methods: {
 
 			getNoticeByType(){
-				getNoticeByType(3).then(res =>{
-					this.notice = res.data
-				})
+				// getNoticeByType(3).then(res =>{
+				// 	this.notice = res.data
+				// })
+        getArticle("1676236635245780993").then(res => {
+          this.notice = res.data;
+        });
 			}
 
 		},

+ 7 - 4
pages/groupbuying/userAgreement/userAgreement.vue

@@ -11,7 +11,7 @@
 </template>
 
 <script>
-	import {getNoticeByType} from '@/api/groupon.js'
+	import {getNoticeByType, getArticle} from '@/api/groupon.js'
 	export default {
 		data() {
 			return {
@@ -28,9 +28,12 @@
 
 		methods: {
 			getNoticeByType(){
-				getNoticeByType(2).then(res =>{
-					this.notice = res.data
-				})
+				// getNoticeByType(2).then(res =>{
+				// 	this.notice = res.data
+				// })
+        getArticle("1676237032362483713").then(res => {
+          this.notice = res.data;
+        });
 			}