diff --git a/components/base/navbar.vue b/components/base/navbar.vue index 49636c4..4948bfb 100644 --- a/components/base/navbar.vue +++ b/components/base/navbar.vue @@ -2,7 +2,7 @@ + :style="{background : bgColor, color}"> + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/components/list/square/waterfallItem.vue b/components/list/square/waterfallItem.vue new file mode 100644 index 0000000..b3ac633 --- /dev/null +++ b/components/list/square/waterfallItem.vue @@ -0,0 +1,297 @@ + + + + + \ No newline at end of file diff --git a/components/userShop/userShopCommission.vue b/components/userShop/userShopCommission.vue index 496229f..9877557 100644 --- a/components/userShop/userShopCommission.vue +++ b/components/userShop/userShopCommission.vue @@ -9,7 +9,7 @@ {{ userInfo.price }}元 - s + - + @@ -303,6 +303,17 @@ } }) }, + + // 跳转到我的个人主页 + goToMyProfile() { + if (!this.isLogin) { + this.showLoginTip() + return + } + uni.navigateTo({ + url: `/pages_order/profile/userProfile?userId=${this.userInfo.id}` + }) + }, } } diff --git a/pages/index/product.vue b/pages/index/product.vue index d8e244a..7028c09 100644 --- a/pages/index/product.vue +++ b/pages/index/product.vue @@ -91,7 +91,6 @@ --> - diff --git a/pages/index/square.vue b/pages/index/square.vue new file mode 100644 index 0000000..d0387c9 --- /dev/null +++ b/pages/index/square.vue @@ -0,0 +1,371 @@ + + + + + diff --git a/pages_order/marketing/turntable.vue b/pages_order/marketing/turntable.vue index 6715abd..b1a5fcd 100644 --- a/pages_order/marketing/turntable.vue +++ b/pages_order/marketing/turntable.vue @@ -126,6 +126,8 @@ ], isSpinning: false, // 是否正在旋转 rotateAngle: 0, // 旋转角度 + totalSpinRounds: 0, // 总旋转圈数 + currentAngle: 0, // 当前角度(0-360度) showResult: false, // 显示结果弹窗 currentPrize: null, // 当前中奖奖品 sectorAngle: 0, // 每个扇形的角度 @@ -242,12 +244,24 @@ const prizeIndex = this.prizes.findIndex(prize => prize.id == result.gift.id) if (prizeIndex !== -1) { - // 计算旋转角度 - const targetAngle = 360 - (prizeIndex * this.sectorAngle + this.sectorAngle / 2) + // 计算目标角度 + // 奖品在扇形中心的角度 + const prizeAngle = prizeIndex * this.sectorAngle + this.sectorAngle / 2 + // 要让奖品转到指针位置(0度),目标角度就是负的奖品角度 + let targetAngle = -prizeAngle + + // 确保目标角度为正值(0-360度范围内) + if (targetAngle < 0) { + targetAngle += 360 + } + + // 增加旋转圈数 const spinRounds = 5 // 转5圈 - const finalAngle = this.rotateAngle + spinRounds * 360 + targetAngle - - this.rotateAngle = finalAngle + this.totalSpinRounds += spinRounds + this.currentAngle = targetAngle + + // 计算最终的旋转角度 = 总圈数 * 360 + 当前角度 + this.rotateAngle = this.totalSpinRounds * 360 + this.currentAngle // 动画结束后显示结果 setTimeout(() => { diff --git a/pages_order/profile/fansList.vue b/pages_order/profile/fansList.vue new file mode 100644 index 0000000..462714c --- /dev/null +++ b/pages_order/profile/fansList.vue @@ -0,0 +1,476 @@ + + + + + \ No newline at end of file diff --git a/pages_order/profile/userProfile.vue b/pages_order/profile/userProfile.vue new file mode 100644 index 0000000..d9dc51f --- /dev/null +++ b/pages_order/profile/userProfile.vue @@ -0,0 +1,797 @@ + + + + + \ No newline at end of file