更改一些文本,新增了用户邀请码复制
This commit is contained in:
parent
d930756130
commit
f9bc754dec
@ -27,7 +27,7 @@
|
|||||||
{
|
{
|
||||||
"path": "pages/cabinet/index",
|
"path": "pages/cabinet/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "货柜"
|
"navigationBarTitleText": "盒柜"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -141,7 +141,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pagePath": "pages/cabinet/index",
|
"pagePath": "pages/cabinet/index",
|
||||||
"text": "货柜",
|
"text": "盒柜",
|
||||||
"iconPath": "static/tab/box.png",
|
"iconPath": "static/tab/box.png",
|
||||||
"selectedIconPath": "static/tab/box_active.png"
|
"selectedIconPath": "static/tab/box_active.png"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -682,7 +682,7 @@ async function onShip() {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
/* ============================================
|
/* ============================================
|
||||||
柯大鸭潮玩 - 货柜页面
|
柯大鸭潮玩 - 盒柜页面
|
||||||
采用现代卡片式布局,统一设计语言
|
采用现代卡片式布局,统一设计语言
|
||||||
============================================ */
|
============================================ */
|
||||||
|
|
||||||
|
|||||||
@ -55,7 +55,7 @@
|
|||||||
<text class="invite-tag">好礼相送</text>
|
<text class="invite-tag">好礼相送</text>
|
||||||
<text class="invite-title">邀请好友送好礼</text>
|
<text class="invite-title">邀请好友送好礼</text>
|
||||||
</view>
|
</view>
|
||||||
<text class="invite-desc">全新版本等你来玩,奖励拿到手软</text>
|
<text class="invite-desc" @tap="copyInviteCode">我的邀请码:{{ getInviteCode() || '-' }}(点击复制)</text>
|
||||||
</view>
|
</view>
|
||||||
<button class="invite-action-btn invite-share-btn" open-type="share">
|
<button class="invite-action-btn invite-share-btn" open-type="share">
|
||||||
<image class="invite-share-icon" src="/static/logo.png" mode="aspectFit"></image>
|
<image class="invite-share-icon" src="/static/logo.png" mode="aspectFit"></image>
|
||||||
@ -75,7 +75,7 @@
|
|||||||
<text class="invite-tag">好礼相送</text>
|
<text class="invite-tag">好礼相送</text>
|
||||||
<text class="invite-title">邀请好友送好礼</text>
|
<text class="invite-title">邀请好友送好礼</text>
|
||||||
</view>
|
</view>
|
||||||
<text class="invite-desc">全新版本等你来玩,奖励拿到手软</text>
|
<text class="invite-desc" @click.stop="copyInviteCode">我的邀请码:{{ getInviteCode() || '-' }}(点击复制)</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="invite-action-btn">
|
<view class="invite-action-btn">
|
||||||
<text>立即邀请</text>
|
<text>立即邀请</text>
|
||||||
@ -502,6 +502,19 @@ export default {
|
|||||||
const v = this.inviteCode || uni.getStorageSync('invite_code') || (uni.getStorageSync('user_info') || {}).invite_code || ''
|
const v = this.inviteCode || uni.getStorageSync('invite_code') || (uni.getStorageSync('user_info') || {}).invite_code || ''
|
||||||
return String(v || '').trim()
|
return String(v || '').trim()
|
||||||
},
|
},
|
||||||
|
copyInviteCode() {
|
||||||
|
const code = this.getInviteCode()
|
||||||
|
if (!code) {
|
||||||
|
uni.showToast({ title: '暂无邀请码', icon: 'none' })
|
||||||
|
return
|
||||||
|
}
|
||||||
|
uni.setClipboardData({
|
||||||
|
data: code,
|
||||||
|
success: () => {
|
||||||
|
uni.showToast({ title: '邀请码已复制', icon: 'none' })
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
getInviteSharePath() {
|
getInviteSharePath() {
|
||||||
const code = this.getInviteCode()
|
const code = this.getInviteCode()
|
||||||
return code ? `/pages/register/register?invite_code=${encodeURIComponent(code)}` : '/pages/register/register'
|
return code ? `/pages/register/register?invite_code=${encodeURIComponent(code)}` : '/pages/register/register'
|
||||||
|
|||||||
@ -46,9 +46,9 @@
|
|||||||
<view v-for="(item, index) in order.items" :key="index" class="item-card">
|
<view v-for="(item, index) in order.items" :key="index" class="item-card">
|
||||||
<view class="item-image-wrap">
|
<view class="item-image-wrap">
|
||||||
<image class="item-image" :src="getProductImage(item)" mode="aspectFill" />
|
<image class="item-image" :src="getProductImage(item)" mode="aspectFill" />
|
||||||
<!-- 中奖标识 -->
|
<!-- 购买标识 -->
|
||||||
<view class="winner-tag" v-if="order.is_winner && order.source_type === 2">
|
<view class="winner-tag" v-if="order.is_winner && order.source_type === 2">
|
||||||
<text class="tag-text">中奖</text>
|
<text class="tag-text">已开启</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="level-tag" v-if="order.reward_level">
|
<view class="level-tag" v-if="order.reward_level">
|
||||||
<text class="tag-text">{{ order.reward_level }}赏</text>
|
<text class="tag-text">{{ order.reward_level }}赏</text>
|
||||||
|
|||||||
@ -72,7 +72,7 @@
|
|||||||
mode="aspectFill"
|
mode="aspectFill"
|
||||||
/>
|
/>
|
||||||
<view class="image-overlay" v-if="item.is_winner">
|
<view class="image-overlay" v-if="item.is_winner">
|
||||||
<text class="winner-badge">🎉 中奖</text>
|
<text class="winner-badge">🎉 已开启</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -409,7 +409,7 @@ onReachBottom(() => {
|
|||||||
padding-bottom: calc(40rpx + env(safe-area-inset-bottom));
|
padding-bottom: calc(40rpx + env(safe-area-inset-bottom));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 顶部 Tab - 与货柜页面保持一致 */
|
/* 顶部 Tab - 与盒柜页面保持一致 */
|
||||||
.tabs {
|
.tabs {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user