From a484e2b16e46ca15e50a9725ce570448f5bbd0fc Mon Sep 17 00:00:00 2001
From: 396316021 <396316021@qq.com>
Date: Thu, 28 Dec 2023 17:16:57 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8A=BD=E5=A5=96=E5=88=86=E4=BA=AB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/coupons.js | 2 +-
api/draw.js | 4 +-
config/host.js | 6 +--
pages/Coupons/index.vue | 88 +++++++++++++++++++++++++++++++++++++++--
pages/Draw/index.vue | 4 +-
utils/request.js | 11 ++++--
6 files changed, 101 insertions(+), 14 deletions(-)
diff --git a/api/coupons.js b/api/coupons.js
index 00045c2..a9dff7e 100644
--- a/api/coupons.js
+++ b/api/coupons.js
@@ -8,7 +8,7 @@ export function couponsList(data) {
url: `${host}/coupons/coupons-list`,
method: "get",
data
- });
+ },false);
}
export function obtainCoupons(data) {
diff --git a/api/draw.js b/api/draw.js
index 015af5f..427caa5 100644
--- a/api/draw.js
+++ b/api/draw.js
@@ -2,10 +2,10 @@ import request from "@/utils/request";
import requestOther from "@/utils/requestOther";
export function drawList(){
- return requestOther({
+ return request({
url:'draw/drawgoods-list',
method:'post',
- })
+ },false)
}
export function getDraw(data){
return request({
diff --git a/config/host.js b/config/host.js
index 32618ef..cd923c9 100644
--- a/config/host.js
+++ b/config/host.js
@@ -1,6 +1,6 @@
-// const host='http://192.168.2.92:9505/api'
-// const host='https://weiyang.test.scyp.ink/api'
-const host='https://wechat.wwxtx.com/api'
+// const host='http://192.168.2.92:9509/api'
+const host='https://weiyang.test.scyp.ink/api'
+// const host='https://wechat.wwxtx.com/api'
// const host='https://bml.test.scyp.ink/api'
// const host='http://192.168.2.92:9503/api'
// const imghost='https://weiyang.test.scyp.ink/static/image'
diff --git a/pages/Coupons/index.vue b/pages/Coupons/index.vue
index 42c890c..5963a25 100644
--- a/pages/Coupons/index.vue
+++ b/pages/Coupons/index.vue
@@ -87,7 +87,56 @@
-
+
+
+
+
+
+
+ 提示
+
+
+
+
+
+ 当前不在活动时间内
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提示
+
+
+
+
+
+ 当前未登录,是否前往登录
+
+
+
+
+
+ {
+ this.navTo('/pages/Login/index');
+ this.$refs.notLoginPop.close();
+ }" button-color="#4DC3B8" font-color="#fff">
+
+
+
+
+