diff --git a/api/appUser.js b/api/appUser.js index e215b24..84f0262 100755 --- a/api/appUser.js +++ b/api/appUser.js @@ -152,6 +152,10 @@ export function requestShipping(user_id, ids) { return authRequest({ url: `/api/app/users/${user_id}/inventory/request-shipping`, method: 'POST', data: { inventory_ids: ids } }) } +export function createShippingFeeOrder(user_id, ids) { + return authRequest({ url: `/api/app/users/${user_id}/inventory/shipping-fee/preorder`, method: 'POST', data: { inventory_ids: ids } }) +} + export function cancelShipping(user_id, batch_no) { return authRequest({ url: `/api/app/users/${user_id}/inventory/cancel-shipping`, method: 'POST', data: { batch_no } }) } @@ -188,10 +192,6 @@ export function redeemCouponByPoints(user_id, coupon_id) { return authRequest({ url: `/api/app/users/${user_id}/points/redeem-coupon`, method: 'POST', data: { coupon_id } }) } -export function transferCoupon(user_id, user_coupon_id, receiver_id) { - return authRequest({ url: `/api/app/users/${user_id}/coupons/${user_coupon_id}/transfer`, method: 'POST', data: { receiver_id } }) -} - export function redeemCoupon(user_id, code) { return authRequest({ url: `/api/app/users/${user_id}/coupons/redeem`, method: 'POST', data: { code } }) } diff --git a/components/GamePassPurchasePopup.vue b/components/GamePassPurchasePopup.vue index a46b9a7..48f2113 100755 --- a/components/GamePassPurchasePopup.vue +++ b/components/GamePassPurchasePopup.vue @@ -427,7 +427,7 @@ function handleClose() { .title { font-size: 38rpx; font-weight: 800; - background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%); + background: $gradient-brand; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; @@ -451,7 +451,7 @@ function handleClose() { transition: all 0.2s ease; &:active { - color: #667EEA; + color: $brand-primary; transform: rotate(90deg); } } @@ -500,7 +500,7 @@ function handleClose() { left: 0; right: 0; height: 6rpx; - background: linear-gradient(90deg, #667EEA 0%, #764BA2 100%); + background: $gradient-brand; opacity: 0; transition: opacity 0.3s; } @@ -607,7 +607,7 @@ function handleClose() { } .btn-buy { - background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%); + background: $gradient-brand; color: #FFF; font-size: 26rpx; padding: 0 28rpx; @@ -657,7 +657,7 @@ function handleClose() { line-height: 44rpx; text-align: center; font-size: 32rpx; - color: #667EEA; + color: $brand-primary; font-weight: 600; flex-shrink: 0; transition: all 0.2s ease; @@ -673,8 +673,8 @@ function handleClose() { color: #9CA3AF; &:active { - color: #667EEA; - background: rgba(102, 126, 234, 0.1); + color: $brand-primary; + background: rgba($brand-primary, 0.1); } } @@ -699,9 +699,9 @@ function handleClose() { // 选中套餐状态 .package-item.selected { - border-color: #667EEA; - background: linear-gradient(145deg, #F8F9FF 0%, #EEF0FF 100%); - box-shadow: 0 4rpx 20rpx rgba(102, 126, 234, 0.2); + border-color: $brand-primary; + background: linear-gradient(145deg, #FFF8F4 0%, #FFF0E6 100%); + box-shadow: 0 4rpx 20rpx rgba($brand-primary, 0.2); &::before { opacity: 1; @@ -826,7 +826,7 @@ function handleClose() { } .btn-checkout { - background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%); + background: $gradient-brand; color: #FFF; font-size: 32rpx; padding: 0 48rpx; diff --git a/manifest.json b/manifest.json index 308026c..c8288a2 100755 --- a/manifest.json +++ b/manifest.json @@ -41,7 +41,9 @@ ] }, /* ios打包配置 */ - "ios" : {}, + "ios" : { + "dSYMs" : false + }, /* SDK配置 */ "sdkConfigs" : {} } diff --git a/pages-activity/activity/duiduipeng/index.vue b/pages-activity/activity/duiduipeng/index.vue index 0c0cfa7..224bc37 100755 --- a/pages-activity/activity/duiduipeng/index.vue +++ b/pages-activity/activity/duiduipeng/index.vue @@ -2582,8 +2582,8 @@ onLoad((opts) => { color: #fff; &.btn-primary { - background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); - box-shadow: 0 8rpx 24rpx rgba(102, 126, 234, 0.4); + background: $gradient-brand; + box-shadow: 0 8rpx 24rpx rgba($brand-primary, 0.4); } &.btn-secondary { diff --git a/pages-game/game/minesweeper/index.vue b/pages-game/game/minesweeper/index.vue index 88eb5ff..9c99e72 100755 --- a/pages-game/game/minesweeper/index.vue +++ b/pages-game/game/minesweeper/index.vue @@ -110,7 +110,7 @@ export default { const targetCode = code || this.gameCode if (targetCode !== 'minesweeper_free' && this.ticketCount <= 0) return if (this.entering) return - + this.entering = true try { const res = await authRequest({ @@ -120,16 +120,10 @@ export default { game_code: targetCode } }) - - // const clientUrl = res.client_url || 'https://kdy.1024tool.vip' - const clientUrl = 'http://localhost:8081/' + const nakamaServer = res.nakama_server || 'wss://kdy.1024tool.vip/ws' - const userInfo = uni.getStorageSync('user_info') || {} - const nickname = userInfo.nickname || userInfo.name || '玩家' - const gameUrl = `${clientUrl}?game_token=${encodeURIComponent(res.game_token)}&nakama_server=${encodeURIComponent(nakamaServer)}&nakama_key=${encodeURIComponent(res.nakama_key)}&game_type=${encodeURIComponent(targetCode)}&nickname=${encodeURIComponent(nickname)}` - console.log('=== 游戏URL(复制到Chrome打开) ===', gameUrl) uni.navigateTo({ - url: `/pages-game/game/webview?url=${encodeURIComponent(gameUrl)}` + url: `/pages-game/game/minesweeper/play?game_token=${encodeURIComponent(res.game_token)}&nakama_server=${encodeURIComponent(nakamaServer)}&nakama_key=${encodeURIComponent(res.nakama_key)}` }) } catch (e) { uni.showToast({ @@ -151,12 +145,9 @@ export default { } }) - // const clientUrl = res.client_url || 'https://kdy.1024tool.vip' - const clientUrl = 'http://localhost:8081/' const nakamaServer = res.nakama_server || 'wss://kdy.1024tool.vip/ws' - const gameUrl = `${clientUrl}?game_token=${encodeURIComponent(res.game_token)}&nakama_server=${encodeURIComponent(nakamaServer)}&nakama_key=${encodeURIComponent(res.nakama_key)}&mode=spectate` uni.navigateTo({ - url: `/pages-game/game/webview?url=${encodeURIComponent(gameUrl)}` + url: `/pages-game/game/minesweeper/room-list?game_token=${encodeURIComponent(res.game_token)}&nakama_server=${encodeURIComponent(nakamaServer)}&nakama_key=${encodeURIComponent(res.nakama_key)}` }) } catch (e) { uni.showToast({ title: '无法获取对战列表', icon: 'none' }) diff --git a/pages-user/coupons/index.vue b/pages-user/coupons/index.vue index 329054c..241a7c0 100755 --- a/pages-user/coupons/index.vue +++ b/pages-user/coupons/index.vue @@ -94,7 +94,6 @@ - 转赠给好友 去使用 @@ -119,8 +118,8 @@ diff --git a/pages-user/tasks/index.vue b/pages-user/tasks/index.vue index 9e1169a..63079f3 100755 --- a/pages-user/tasks/index.vue +++ b/pages-user/tasks/index.vue @@ -69,6 +69,13 @@ {{ task.name }} {{ task.description }} + + {{ getTaskTimeRangeText(task) }} + + {{ getTaskCountdownText(task, nowMs) }} + + + {{ getTaskRuleTip(task) }} @@ -161,15 +168,18 @@