From 30fa7ac1ef6e0fafb7bab09c37a8ecc4c60a9dad Mon Sep 17 00:00:00 2001
From: Fox-33 <1466778434@qq.com>
Date: Tue, 15 Apr 2025 23:03:18 +0800
Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=E9=A1=B5=E9=9D=A2=E8=B0=83?=
=?UTF-8?q?=E6=95=B4;?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages_order/sharing/group.vue | 2 +-
pages_order/sharing/personal.vue | 18 ++++++++++++++----
pages_order/sharing/video.vue | 17 +++++++++++------
3 files changed, 26 insertions(+), 11 deletions(-)
diff --git a/pages_order/sharing/group.vue b/pages_order/sharing/group.vue
index a86132a..b66ca87 100644
--- a/pages_order/sharing/group.vue
+++ b/pages_order/sharing/group.vue
@@ -5,7 +5,7 @@
{{ detail.headTitle || '' }}
- {{ `群人数:${detail.memberNum || 0}` }}
+ {{ `(${detail.memberNum || 0})` }}
diff --git a/pages_order/sharing/personal.vue b/pages_order/sharing/personal.vue
index 52a30e9..fcb5d18 100644
--- a/pages_order/sharing/personal.vue
+++ b/pages_order/sharing/personal.vue
@@ -9,9 +9,10 @@
-
+
+
@@ -175,7 +176,7 @@
margin-top: 30rpx;
}
-.btn, .qr {
+.btn, .qr-popup {
position: absolute;
}
@@ -195,9 +196,18 @@
box-sizing: border-box;
}
+.qr-popup {
+ bottom: 269rpx;
+
+ .tips {
+ color: #1B1B1B;
+ font-size: 32rpx;
+ }
+}
+
.qr {
+ margin-top: 40rpx;
width: 350rpx;
height: 350rpx;
- bottom: 269rpx;
}
\ No newline at end of file
diff --git a/pages_order/sharing/video.vue b/pages_order/sharing/video.vue
index cb0f56e..e2d5963 100644
--- a/pages_order/sharing/video.vue
+++ b/pages_order/sharing/video.vue
@@ -12,6 +12,7 @@
:show-fullscreen-btn="false"
:show-center-play-btn="true"
@timeupdate="onTimeupdate"
+ @ended="onTimeEnd"
>
{{ detail.author || '' }}
@@ -64,7 +65,6 @@
}
},
async onLoad(option) {
- console.log('--onLoad', option)
const { id, state, shareId } = option
if (shareId) {
@@ -137,7 +137,8 @@
if (open) {
this.isLocked = false
- this.$refs.popupQrCode.open()
+ this.timeIsUp = false
+ this.videoContext.play()
return
}
@@ -149,7 +150,6 @@
},
async onPlay() {
if (!this.isLocked) {
- this.$refs.popupQrCode.open()
return
}
@@ -160,8 +160,11 @@
if (open) { // 转发已达标
this.isLocked = false
- this.$refs.popupQrCode.open()
+ this.timeIsUp = false
+ this.videoContext.play()
} else {
+ this.videoContext.pause()
+ this.timeIsUp = true
uni.showToast({
title: `还需转发${need_num - num}次`,
icon: 'none',
@@ -172,13 +175,15 @@
async onTimeupdate(e) {
const { currentTime } = e.target
- // todo: check
- if (currentTime >= this.detail.timeNum) {
+ if (currentTime >= this.detail.timeNum && this.isLocked) {
this.videoContext.pause()
this.timeIsUp = true
this.onPlay()
}
},
+ onTimeEnd() {
+ this.$refs.popupQrCode.open()
+ },
},
}
--
2.15.0
From 8569c70b2945a3c0d734cd73428ff98ad0876bf1 Mon Sep 17 00:00:00 2001
From: Fox-33 <1466778434@qq.com>
Date: Tue, 15 Apr 2025 23:27:06 +0800
Subject: [PATCH 2/3] =?UTF-8?q?feat:=20=E9=A1=B5=E9=9D=A2=E8=B0=83?=
=?UTF-8?q?=E6=95=B4;?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/index/center.vue | 4 ++--
pages_order/sharing/personal.vue | 3 ++-
pages_order/sharing/video.vue | 11 +++++++++--
3 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/pages/index/center.vue b/pages/index/center.vue
index a987155..c0c334a 100644
--- a/pages/index/center.vue
+++ b/pages/index/center.vue
@@ -22,7 +22,7 @@
-
+
普通会员
@@ -39,7 +39,7 @@
代理商权益
- 将于{{userInfo.endTime}}到期
+ 将于{{userInfo.endTime || '-'}}到期
diff --git a/pages_order/sharing/personal.vue b/pages_order/sharing/personal.vue
index fcb5d18..da0f8fd 100644
--- a/pages_order/sharing/personal.vue
+++ b/pages_order/sharing/personal.vue
@@ -9,7 +9,7 @@
-
@@ -53,7 +54,7 @@
},
timeIsUp: false,
isLocked: true,
- videoContext: null
+ videoContext: null,
}
},
computed: {
@@ -115,6 +116,11 @@
}
},
async initData() {
+ this.fetchCheckShare().then(result => {
+ const { open } = result
+
+ this.isLocked = !open
+ })
await this.fetchDetails(this.id)
this.videoContext = uni.createVideoContext('video');
@@ -182,6 +188,7 @@
}
},
onTimeEnd() {
+ console.log('--onTimeEnd')
this.$refs.popupQrCode.open()
},
},
--
2.15.0
From a22e01586ab6ca3efc26b3c475d73536408098f5 Mon Sep 17 00:00:00 2001
From: Fox-33 <1466778434@qq.com>
Date: Tue, 15 Apr 2025 23:29:38 +0800
Subject: [PATCH 3/3] =?UTF-8?q?feat:=20=E9=A1=B5=E9=9D=A2=E8=B0=83?=
=?UTF-8?q?=E6=95=B4;?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages_order/sharing/video.vue | 1 -
1 file changed, 1 deletion(-)
diff --git a/pages_order/sharing/video.vue b/pages_order/sharing/video.vue
index 893703b..bbfc68a 100644
--- a/pages_order/sharing/video.vue
+++ b/pages_order/sharing/video.vue
@@ -188,7 +188,6 @@
}
},
onTimeEnd() {
- console.log('--onTimeEnd')
this.$refs.popupQrCode.open()
},
},
--
2.15.0