fix: 上线修改
This commit is contained in:
+6
-6
@@ -39,12 +39,12 @@ export default defineUniPages({
|
|||||||
pagePath: 'pages/invite/index',
|
pagePath: 'pages/invite/index',
|
||||||
text: '邀请好友',
|
text: '邀请好友',
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
iconPath: 'static/tabbar/invest.png',
|
// iconPath: 'static/tabbar/invest.png',
|
||||||
selectedIconPath: 'static/tabbar/investHL.png',
|
// selectedIconPath: 'static/tabbar/investHL.png',
|
||||||
pagePath: 'pages/invest/index',
|
// pagePath: 'pages/invest/index',
|
||||||
text: '理财',
|
// text: '理财',
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
iconPath: 'static/tabbar/personal.png',
|
iconPath: 'static/tabbar/personal.png',
|
||||||
selectedIconPath: 'static/tabbar/personalHL.png',
|
selectedIconPath: 'static/tabbar/personalHL.png',
|
||||||
|
|||||||
@@ -35,12 +35,6 @@
|
|||||||
"pagePath": "pages/invite/index",
|
"pagePath": "pages/invite/index",
|
||||||
"text": "邀请好友"
|
"text": "邀请好友"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"iconPath": "static/tabbar/invest.png",
|
|
||||||
"selectedIconPath": "static/tabbar/investHL.png",
|
|
||||||
"pagePath": "pages/invest/index",
|
|
||||||
"text": "理财"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"iconPath": "static/tabbar/personal.png",
|
"iconPath": "static/tabbar/personal.png",
|
||||||
"selectedIconPath": "static/tabbar/personalHL.png",
|
"selectedIconPath": "static/tabbar/personalHL.png",
|
||||||
|
|||||||
@@ -28,6 +28,10 @@
|
|||||||
<image class="w-30 h-30" src="@/static/images/home/nav-2.png" mode="aspectFill" />
|
<image class="w-30 h-30" src="@/static/images/home/nav-2.png" mode="aspectFill" />
|
||||||
<text class="mt-8 text-14 text-#333">奖励制度</text>
|
<text class="mt-8 text-14 text-#333">奖励制度</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="flex-1 flex flex-col items-center" @click="handleDownload">
|
||||||
|
<image class="w-30 h-30" src="@/static/images/home/nav-2.png" mode="aspectFill" />
|
||||||
|
<text class="mt-8 text-14 text-#333">下载APP</text>
|
||||||
|
</view>
|
||||||
<view class="flex-1 flex flex-col items-center" @click="handleOfficialCommunity">
|
<view class="flex-1 flex flex-col items-center" @click="handleOfficialCommunity">
|
||||||
<image class="w-30 h-30" src="@/static/images/home/nav-3.png" mode="aspectFill" />
|
<image class="w-30 h-30" src="@/static/images/home/nav-3.png" mode="aspectFill" />
|
||||||
<text class="mt-8 text-14 text-#333">官方社群</text>
|
<text class="mt-8 text-14 text-#333">官方社群</text>
|
||||||
@@ -60,12 +64,23 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<wd-popup v-model="showRealName" custom-style="border-radius:32rpx;">
|
||||||
|
<view class="p-15 w-345">
|
||||||
|
<text class="custom-txt">实名立即送5000股马尔代夫股权</text>
|
||||||
|
<view
|
||||||
|
@click="handleRealName"
|
||||||
|
class="mt-15 btn-gradient rounded-full text-center text-14 text-white py-15 mt-15"
|
||||||
|
>
|
||||||
|
去认证
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</wd-popup>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import { getIntroductionAPI } from '@/service'
|
import { downloadAppAPI, getIntroductionAPI, getRealNameAuthAPI } from '@/service'
|
||||||
import { showModal } from '@/utils'
|
import { showModal } from '@/utils'
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
@@ -105,6 +120,10 @@ const handleOfficialCommunity = () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const handleDownload = () => {
|
||||||
|
downloadAppAPI()
|
||||||
|
}
|
||||||
|
|
||||||
const handleReward = () => {
|
const handleReward = () => {
|
||||||
showModal(
|
showModal(
|
||||||
`1.注册立即送5000股马尔代夫股权;\n
|
`1.注册立即送5000股马尔代夫股权;\n
|
||||||
@@ -116,6 +135,20 @@ const handleReward = () => {
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const showRealName = ref(false)
|
||||||
|
const handleRealName = () => {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages-sub/realname/index',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
onLoad(async () => {
|
||||||
|
const res = await getRealNameAuthAPI()
|
||||||
|
if (!res.data) {
|
||||||
|
showRealName.value = true
|
||||||
|
}
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
+12
-4
@@ -60,14 +60,14 @@
|
|||||||
<view class="mt-15 grid grid-cols-2 gap-10 p-15">
|
<view class="mt-15 grid grid-cols-2 gap-10 p-15">
|
||||||
<view
|
<view
|
||||||
@click="handleTeam"
|
@click="handleTeam"
|
||||||
class="flex justify-center rounded-tl-10 rounded-br-10 bg-[linear-gradient(45deg,#EFF7FF,#D1E8FF)] p-15 border border-#BEDCFF border-solid"
|
class="flex items-center justify-center rounded-tl-10 rounded-br-10 bg-[linear-gradient(45deg,#EFF7FF,#D1E8FF)] p-15 border border-#BEDCFF border-solid"
|
||||||
>
|
>
|
||||||
<image class="w-24 h-24" src="@/static/images/my/team.png" mode="aspectFit" />
|
<image class="w-24 h-24" src="@/static/images/my/team.png" mode="aspectFit" />
|
||||||
<view class="text-14 text-#333 ml-10">我的邀请</view>
|
<view class="text-14 text-#333 ml-10">我的邀请</view>
|
||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
@click="handleAsset"
|
@click="handleAsset"
|
||||||
class="flex justify-center rounded-tl-10 rounded-br-10 bg-[linear-gradient(45deg,#EFF7FF,#D1E8FF)] p-15 border border-#BEDCFF border-solid"
|
class="flex items-center justify-center rounded-tl-10 rounded-br-10 bg-[linear-gradient(45deg,#EFF7FF,#D1E8FF)] p-15 border border-#BEDCFF border-solid"
|
||||||
>
|
>
|
||||||
<image class="w-24 h-24" src="@/static/images/my/house.png" mode="aspectFit" />
|
<image class="w-24 h-24" src="@/static/images/my/house.png" mode="aspectFit" />
|
||||||
<view class="text-14 text-#333 ml-10">我的资产</view>
|
<view class="text-14 text-#333 ml-10">我的资产</view>
|
||||||
@@ -75,18 +75,25 @@
|
|||||||
|
|
||||||
<view
|
<view
|
||||||
@click="handleRealName"
|
@click="handleRealName"
|
||||||
class="flex justify-center rounded-tl-10 rounded-br-10 bg-[linear-gradient(45deg,#EFF7FF,#D1E8FF)] p-15 border border-#BEDCFF border-solid"
|
class="flex items-center justify-center rounded-tl-10 rounded-br-10 bg-[linear-gradient(45deg,#EFF7FF,#D1E8FF)] p-15 border border-#BEDCFF border-solid"
|
||||||
>
|
>
|
||||||
<image class="w-24 h-24" src="@/static/images/my/realname.png" mode="aspectFit" />
|
<image class="w-24 h-24" src="@/static/images/my/realname.png" mode="aspectFit" />
|
||||||
<view class="text-14 text-#333 ml-10">实名认证</view>
|
<view class="text-14 text-#333 ml-10">实名认证</view>
|
||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
@click="handleBankCard"
|
@click="handleBankCard"
|
||||||
class="flex justify-center rounded-tl-10 rounded-br-10 bg-[linear-gradient(45deg,#EFF7FF,#D1E8FF)] p-15 border border-#BEDCFF border-solid"
|
class="flex items-center justify-center rounded-tl-10 rounded-br-10 bg-[linear-gradient(45deg,#EFF7FF,#D1E8FF)] p-15 border border-#BEDCFF border-solid"
|
||||||
>
|
>
|
||||||
<image class="w-24 h-24" src="@/static/images/my/card.png" mode="aspectFit" />
|
<image class="w-24 h-24" src="@/static/images/my/card.png" mode="aspectFit" />
|
||||||
<view class="text-14 text-#333 ml-10">我的银行卡</view>
|
<view class="text-14 text-#333 ml-10">我的银行卡</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view
|
||||||
|
@click="downloadAppAPI"
|
||||||
|
class="flex items-center justify-center rounded-tl-10 rounded-br-10 bg-[linear-gradient(45deg,#EFF7FF,#D1E8FF)] p-15 border border-#BEDCFF border-solid"
|
||||||
|
>
|
||||||
|
<image class="w-24 h-24" src="@/static/images/my/download.png" mode="aspectFit" />
|
||||||
|
<view class="text-14 text-#333 ml-10">下载APP</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view
|
<view
|
||||||
@@ -102,6 +109,7 @@
|
|||||||
import Avatar from '@/components/Avatar.vue'
|
import Avatar from '@/components/Avatar.vue'
|
||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import { loginRoute } from '@/interceptors/route'
|
import { loginRoute } from '@/interceptors/route'
|
||||||
|
import { downloadAppAPI } from '@/service'
|
||||||
import { useUserStore } from '@/store/user'
|
import { useUserStore } from '@/store/user'
|
||||||
import { getImageUrl } from '@/utils'
|
import { getImageUrl } from '@/utils'
|
||||||
|
|
||||||
|
|||||||
@@ -33,9 +33,9 @@ onLoad((options) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const handleRegister = mergeStep(async () => {
|
const handleRegister = mergeStep(async () => {
|
||||||
if (!form.value.username) {
|
if (!/^\d{11}$/.test(form.value.username)) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请输入用户名',
|
title: '请输入正确手机号(11位)',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
@@ -107,7 +107,7 @@ onLoad(async (options) => {
|
|||||||
type="text"
|
type="text"
|
||||||
placeholder-class="text-#889BC6"
|
placeholder-class="text-#889BC6"
|
||||||
class="text-right flex-1 text-14"
|
class="text-right flex-1 text-14"
|
||||||
placeholder="请输入用户名"
|
placeholder="请输入手机号"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex items-center py-15">
|
<view class="flex items-center py-15">
|
||||||
|
|||||||
@@ -148,3 +148,8 @@ export const getWithdrawalRecordAPI = (data) =>
|
|||||||
method: 'POST',
|
method: 'POST',
|
||||||
data,
|
data,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 下载APP
|
||||||
|
export const downloadAppAPI = () => {
|
||||||
|
location.href = 'https://tiktok-test.gbnorg.com/7885922.apk'
|
||||||
|
}
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 4.4 KiB |
Vendored
+1
-1
@@ -32,7 +32,7 @@ interface NavigateToOptions {
|
|||||||
interface RedirectToOptions extends NavigateToOptions {}
|
interface RedirectToOptions extends NavigateToOptions {}
|
||||||
|
|
||||||
interface SwitchTabOptions {
|
interface SwitchTabOptions {
|
||||||
url: "/pages/index/index" | "/pages/invite/index" | "/pages/invest/index" | "/pages/my/index"
|
url: "/pages/index/index" | "/pages/invite/index" | "/pages/my/index"
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReLaunchOptions = NavigateToOptions | SwitchTabOptions;
|
type ReLaunchOptions = NavigateToOptions | SwitchTabOptions;
|
||||||
|
|||||||
Reference in New Issue
Block a user