From 29253c593f2989c00f066f68e292d0f7af39b8d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyansj=E2=80=9D?= Date: Tue, 5 Sep 2023 10:24:32 +0800 Subject: [PATCH] gx --- src/pagesD/xskz/index.vue | 26 +++++++++++++++++++++++--- src/request/interface.js | 4 ++-- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/src/pagesD/xskz/index.vue b/src/pagesD/xskz/index.vue index a234f9c..caf071e 100644 --- a/src/pagesD/xskz/index.vue +++ b/src/pagesD/xskz/index.vue @@ -3,12 +3,18 @@ - - + + + + + + @@ -63,6 +69,9 @@ export default { console.log(store); }, methods: { + onBindplay() { + console.log('执行'); + }, toTab(val) { this.tabC = val; // this.getData() @@ -125,7 +134,18 @@ export default { .request("/exhibition/list", this.query, "GET") .then((res) => { if (res.code == 200) { - this.list = res.data.records; + let list = [] + list = res.data.records; + /* #ifdef MP-WEIXIN*/ + list.forEach(item => { + if (item.linkPath) { + let path = item.linkPath.split('/') + let video = path[path.length - 1].split('.html') + item.linkPath = video[0] + } + }); + /* #endif */ + this.list = list; this.query.page = res.data.current; this.query.size = res.data.size; } diff --git a/src/request/interface.js b/src/request/interface.js index 6aa278d..f9c0845 100644 --- a/src/request/interface.js +++ b/src/request/interface.js @@ -5,9 +5,9 @@ export default { config: { - baseUrl: "http://192.168.1.20:8080/h5/api", //俞燕红-小程序不能配跨域 + // baseUrl: "http://192.168.1.20:8080/h5/api", //俞燕红-小程序不能配跨域 // baseUrl: "/pre", //俞燕红-跨域 - // baseUrl: "https://yxx.ydool.net/h5/api", //线上 + baseUrl: "https://yxx.ydool.net/h5/api", //线上 // baseUrl: "/h5/api", //h5 header: { 'Content-Type': 'application/json;charset=UTF-8',