From c719ce1f2720c4ea76f504e1eb0fdb2e1ae84ae0 Mon Sep 17 00:00:00 2001
From: GaoHao <1210693421@qq.com>
Date: Mon, 23 Dec 2024 10:32:42 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8A=BD=E5=A5=96=E5=88=97=E8=A1=A8=EF=BC=8C?=
=?UTF-8?q?=E5=85=91=E6=8D=A2=E5=88=97=E8=A1=A8=E8=B0=83=E8=AF=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
me/choujiang/choujiang.vue | 3 +-
me/gift/duihuan.vue | 52 +++++++++++++++++--
me/gift/gift.vue | 100 ++++++++++++++++++++++++++-----------
3 files changed, 121 insertions(+), 34 deletions(-)
diff --git a/me/choujiang/choujiang.vue b/me/choujiang/choujiang.vue
index 892ef20..4abb330 100644
--- a/me/choujiang/choujiang.vue
+++ b/me/choujiang/choujiang.vue
@@ -177,8 +177,9 @@
},
toGift() {
console.log('1');
+
uni.navigateTo({
- url: '/me/gift/gift'
+ url: '/me/gift/gift?source='+this.source
})
},
// 重新生成
diff --git a/me/gift/duihuan.vue b/me/gift/duihuan.vue
index 90a7bb3..42b2bc7 100644
--- a/me/gift/duihuan.vue
+++ b/me/gift/duihuan.vue
@@ -2,11 +2,20 @@
- 兑换账号
+ 中奖用户手机号
+
+
+
+ 收货地址
+
+
+
+ 备注
-
+
+
兑换事项
@@ -15,7 +24,7 @@
- 确认兑换
+ 确认兑换
@@ -24,11 +33,44 @@
export default {
data() {
return {
-
+ query: {
+ discSpinningRecordId: null,
+ source: 1,
+ phone: "",
+ address: "",
+ remark: "",
+ },
}
},
+ onLoad(options) {
+ console.log(options)
+ if ( options.id ) {
+ this.query.discSpinningRecordId = options.id
+ }
+ if ( options.source ) {
+ this.query.source = options.source
+ }
+
+ },
methods: {
-
+ exchange(){
+ let url = ""
+ if ( !this.query.phone ) {
+ uni.showToast({ title: '请输入中奖用户手机号', icon: 'none' });
+ return;
+ }
+ if ( !this.query.address ) {
+ uni.showToast({ title: '请输入中奖用户地址', icon: 'none' });
+ return;
+ }
+ this.$Request.postJson("app/userPrizeExchange/exchange", this.query).then(res => {
+ if (res.code == 0 ) {
+ uni.navigateBack()
+ } else {
+ uni.showToast({ title: res.msg, icon: 'none' });
+ }
+ })
+ },
}
}
diff --git a/me/gift/gift.vue b/me/gift/gift.vue
index e2dbbe9..74797b9 100644
--- a/me/gift/gift.vue
+++ b/me/gift/gift.vue
@@ -4,6 +4,13 @@
+
+ {{item.label}}
+
中奖时间 2024-09-11 10:20:11
@@ -15,13 +22,13 @@
- 立即兑换
+ 立即兑换
-
+