|
@@ -3,11 +3,13 @@
|
|
layout: 'default',
|
|
layout: 'default',
|
|
style: {
|
|
style: {
|
|
navigationStyle: 'custom',
|
|
navigationStyle: 'custom',
|
|
- },
|
|
|
|
|
|
+ navigationBarTitleText: '%mine.pages.share.title%'
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</route>
|
|
</route>
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
|
+import { t } from '@/locale'
|
|
import { goBack } from '@/utils/page'
|
|
import { goBack } from '@/utils/page'
|
|
|
|
|
|
// 获取屏幕边界到安全区域距离
|
|
// 获取屏幕边界到安全区域距离
|
|
@@ -49,7 +51,7 @@ function copyReferrerCode() {
|
|
data: userInfo.value.userNo,
|
|
data: userInfo.value.userNo,
|
|
success: () => {
|
|
success: () => {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- title: 'Copied to clipboard',
|
|
|
|
|
|
+ title: t('mine.pages.share.copySuccess'),
|
|
icon: 'success',
|
|
icon: 'success',
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -66,7 +68,7 @@ function handleShare(platform: string) {
|
|
}
|
|
}
|
|
|
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- title: `Share to ${platformNames[platform]}`,
|
|
|
|
|
|
+ title: t('mine.pages.share.shareTo', [platformNames[platform]]),
|
|
icon: 'none',
|
|
icon: 'none',
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -89,7 +91,7 @@ function handleShare(platform: string) {
|
|
<!-- 推荐码标题 -->
|
|
<!-- 推荐码标题 -->
|
|
<view class="mb-10rpx mt-40rpx text-center">
|
|
<view class="mb-10rpx mt-40rpx text-center">
|
|
<text class="text-28rpx text-#333 font-medium">
|
|
<text class="text-28rpx text-#333 font-medium">
|
|
- My Referrer Code
|
|
|
|
|
|
+ {{ t('mine.pages.share.referrerCode') }}
|
|
</text>
|
|
</text>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
@@ -113,7 +115,7 @@ function handleShare(platform: string) {
|
|
📱
|
|
📱
|
|
</view>
|
|
</view>
|
|
<text class="text-28rpx text-#999">
|
|
<text class="text-28rpx text-#999">
|
|
- QR Code
|
|
|
|
|
|
+ {{ t('mine.pages.share.qrCode') }}
|
|
</text>
|
|
</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -122,7 +124,7 @@ function handleShare(platform: string) {
|
|
<!-- 分享说明 -->
|
|
<!-- 分享说明 -->
|
|
<view class="mb-60rpx text-center">
|
|
<view class="mb-60rpx text-center">
|
|
<text class="text-28rpx text-#797979 leading-relaxed">
|
|
<text class="text-28rpx text-#797979 leading-relaxed">
|
|
- Share your aR code with your friends, they can scan it with their camera to register as your downline.
|
|
|
|
|
|
+ {{ t('mine.pages.share.description') }}
|
|
</text>
|
|
</text>
|
|
</view>
|
|
</view>
|
|
|
|
|