fix: 上线修改
This commit is contained in:
+6
-6
@@ -39,12 +39,12 @@ export default defineUniPages({
|
||||
pagePath: 'pages/invite/index',
|
||||
text: '邀请好友',
|
||||
},
|
||||
{
|
||||
iconPath: 'static/tabbar/invest.png',
|
||||
selectedIconPath: 'static/tabbar/investHL.png',
|
||||
pagePath: 'pages/invest/index',
|
||||
text: '理财',
|
||||
},
|
||||
// {
|
||||
// iconPath: 'static/tabbar/invest.png',
|
||||
// selectedIconPath: 'static/tabbar/investHL.png',
|
||||
// pagePath: 'pages/invest/index',
|
||||
// text: '理财',
|
||||
// },
|
||||
{
|
||||
iconPath: 'static/tabbar/personal.png',
|
||||
selectedIconPath: 'static/tabbar/personalHL.png',
|
||||
|
||||
@@ -35,12 +35,6 @@
|
||||
"pagePath": "pages/invite/index",
|
||||
"text": "邀请好友"
|
||||
},
|
||||
{
|
||||
"iconPath": "static/tabbar/invest.png",
|
||||
"selectedIconPath": "static/tabbar/investHL.png",
|
||||
"pagePath": "pages/invest/index",
|
||||
"text": "理财"
|
||||
},
|
||||
{
|
||||
"iconPath": "static/tabbar/personal.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" />
|
||||
<text class="mt-8 text-14 text-#333">奖励制度</text>
|
||||
</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">
|
||||
<image class="w-30 h-30" src="@/static/images/home/nav-3.png" mode="aspectFill" />
|
||||
<text class="mt-8 text-14 text-#333">官方社群</text>
|
||||
@@ -60,12 +64,23 @@
|
||||
</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>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import { getIntroductionAPI } from '@/service'
|
||||
import { downloadAppAPI, getIntroductionAPI, getRealNameAuthAPI } from '@/service'
|
||||
import { showModal } from '@/utils'
|
||||
|
||||
defineOptions({
|
||||
@@ -105,6 +120,10 @@ const handleOfficialCommunity = () => {
|
||||
})
|
||||
}
|
||||
|
||||
const handleDownload = () => {
|
||||
downloadAppAPI()
|
||||
}
|
||||
|
||||
const handleReward = () => {
|
||||
showModal(
|
||||
`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>
|
||||
|
||||
<style>
|
||||
|
||||
+12
-4
@@ -60,14 +60,14 @@
|
||||
<view class="mt-15 grid grid-cols-2 gap-10 p-15">
|
||||
<view
|
||||
@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" />
|
||||
<view class="text-14 text-#333 ml-10">我的邀请</view>
|
||||
</view>
|
||||
<view
|
||||
@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" />
|
||||
<view class="text-14 text-#333 ml-10">我的资产</view>
|
||||
@@ -75,18 +75,25 @@
|
||||
|
||||
<view
|
||||
@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" />
|
||||
<view class="text-14 text-#333 ml-10">实名认证</view>
|
||||
</view>
|
||||
<view
|
||||
@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" />
|
||||
<view class="text-14 text-#333 ml-10">我的银行卡</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
|
||||
@@ -102,6 +109,7 @@
|
||||
import Avatar from '@/components/Avatar.vue'
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import { loginRoute } from '@/interceptors/route'
|
||||
import { downloadAppAPI } from '@/service'
|
||||
import { useUserStore } from '@/store/user'
|
||||
import { getImageUrl } from '@/utils'
|
||||
|
||||
|
||||
@@ -33,9 +33,9 @@ onLoad((options) => {
|
||||
})
|
||||
|
||||
const handleRegister = mergeStep(async () => {
|
||||
if (!form.value.username) {
|
||||
if (!/^\d{11}$/.test(form.value.username)) {
|
||||
uni.showToast({
|
||||
title: '请输入用户名',
|
||||
title: '请输入正确手机号(11位)',
|
||||
icon: 'none',
|
||||
})
|
||||
return
|
||||
@@ -107,7 +107,7 @@ onLoad(async (options) => {
|
||||
type="text"
|
||||
placeholder-class="text-#889BC6"
|
||||
class="text-right flex-1 text-14"
|
||||
placeholder="请输入用户名"
|
||||
placeholder="请输入手机号"
|
||||
/>
|
||||
</view>
|
||||
<view class="flex items-center py-15">
|
||||
|
||||
@@ -148,3 +148,8 @@ export const getWithdrawalRecordAPI = (data) =>
|
||||
method: 'POST',
|
||||
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 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;
|
||||
|
||||
Reference in New Issue
Block a user