fix: 上线修改

This commit is contained in:
anonymous
2025-01-04 09:31:17 +08:00
parent ae8ec19ba8
commit dbb57f07c3
8 changed files with 61 additions and 21 deletions
+34 -1
View File
@@ -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>