From 84c02f90f760b2b0c0fb927ec087f679cd2681ee Mon Sep 17 00:00:00 2001 From: Gdpao <1341331954@qq.com> Date: Thu, 20 Aug 2020 15:34:04 +0800 Subject: [PATCH] gdpao --- pages/index/index.vue | 24 +++++++++++++----------- pages/login/login.vue | 8 ++++---- pages/release/index.vue | 1 + 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 9d831c8..08e9189 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -339,17 +339,19 @@ export default { }, // 获取轮播图 getswiper() { - this.imageList = [ - { - image: '../../static/image/index/swiper.png' - }, - { - image: '../../static/image/index/swiper.png' - }, - { - image: '../../static/image/index/swiper.png' - } - ]; + this.$u.post("adv/indexAdv").then(res => { + let item = res.data; + let arr; + arr = item.map(data => { + console.log(data); + return { + image: data.adv_code, + adv_id: data.adv_id, + adv_link: data.adv_link, + } + }) + this.imageList = arr; + }) }, // 打开发布弹窗 publish() { diff --git a/pages/login/login.vue b/pages/login/login.vue index 40661cf..ccd2cb3 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -56,10 +56,10 @@ export default { value: '', login: '登录', show: false, - zhanghao: 'seller', - mima: '123456', - zhanghaoA: '18953829598 ', - mimaA: '123456', + zhanghao: '', + mima: '', + zhanghaoA: '', + mimaA: '', url: '', state:0, clickstate:false diff --git a/pages/release/index.vue b/pages/release/index.vue index e023ab7..cfe70df 100644 --- a/pages/release/index.vue +++ b/pages/release/index.vue @@ -238,6 +238,7 @@ export default { } else { this.tagcontent = ''; this.show = false; + res.data.state = false; this.fileListes.push(res.data); this.$refs.uToast.show({ title: res.message,