refactor:修改风格

This commit is contained in:
anonymous
2025-01-06 17:05:40 +08:00
parent dbb57f07c3
commit 71862ec3d5
11 changed files with 29 additions and 27 deletions
-1
View File
@@ -50,7 +50,6 @@ function useListPageRequest(
...getPagingParams.value, ...getPagingParams.value,
...customParams, ...customParams,
}) })
console.log(data)
data.forEach((item: any) => { data.forEach((item: any) => {
item.createtime = formatTime(item.createtime) item.createtime = formatTime(item.createtime)
item.image = getImageUrl(item.image) item.image = getImageUrl(item.image)
+22 -19
View File
@@ -64,16 +64,26 @@
</view> </view>
</view> </view>
</view> </view>
<wd-popup v-model="showRealName" custom-style="border-radius:32rpx;"> <wd-popup
<view class="p-15 w-345"> v-model="showRealName"
<text class="custom-txt">实名立即送5000股马尔代夫股权</text> custom-style="border-radius:32rpx;"
<view :close-on-click-modal="false"
@click="handleRealName" lockScroll
class="mt-15 btn-gradient rounded-full text-center text-14 text-white py-15 mt-15"
> >
去认证 <image
</view> class="w-300 h-416"
</view> src="@/static/images/realname-popup.jpeg"
mode="widthFix"
@click="handleRealName"
/>
</wd-popup>
<wd-popup closable v-model="showReward" custom-style="border-radius:32rpx;">
<image
class="w-300 h-416"
src="@/static/images/reward-bg.jpg"
mode="widthFix"
@click="showReward = false"
/>
</wd-popup> </wd-popup>
</view> </view>
</template> </template>
@@ -123,17 +133,9 @@ const handleOfficialCommunity = () => {
const handleDownload = () => { const handleDownload = () => {
downloadAppAPI() downloadAppAPI()
} }
const showReward = ref(false)
const handleReward = () => { const handleReward = () => {
showModal( showReward.value = true
`1.注册立即送5000股马尔代夫股权;\n
2.每股马尔代夫股权价值500元;\n
3.每邀请一人可以获得20股马尔代夫股权`,
{
title: '奖励制度',
confirmText: '我知道了',
},
)
} }
const showRealName = ref(false) const showRealName = ref(false)
@@ -146,6 +148,7 @@ const handleRealName = () => {
onLoad(async () => { onLoad(async () => {
const res = await getRealNameAuthAPI() const res = await getRealNameAuthAPI()
if (!res.data) { if (!res.data) {
uni.hideTabBar()
showRealName.value = true showRealName.value = true
} }
}) })
+2 -2
View File
@@ -22,7 +22,7 @@
v-model="formData.account" v-model="formData.account"
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">
@@ -74,7 +74,7 @@ onLoad((options) => {
const handleLogin = async () => { const handleLogin = async () => {
if (!formData.value.account || !formData.value.password) { if (!formData.value.account || !formData.value.password) {
return uni.showToast({ return uni.showToast({
title: '请输入用户名和密码', title: '请输入手机号和密码',
icon: 'none', icon: 'none',
}) })
} }
+4 -4
View File
@@ -15,7 +15,7 @@
<view class="text-16 mt-10">{{ userStore.userInfo.nickname }}</view> <view class="text-16 mt-10">{{ userStore.userInfo.nickname }}</view>
<view class="text-12 mt-8">账号{{ userStore.userInfo.username }}</view> <view class="text-12 mt-8">账号{{ userStore.userInfo.username }}</view>
</view> </view>
<view class="flex justify-center text-center mt-15 items-center px-30"> <view class="flex justify-center text-center mt-30 items-center px-30">
<view class="flex-1"> <view class="flex-1">
<view class="text-30 font-bold">{{ Number(userStore.userInfo.money) }}</view> <view class="text-30 font-bold">{{ Number(userStore.userInfo.money) }}</view>
<view class="text-14 mt-10 text-#3B81F3">我的余额</view> <view class="text-14 mt-10 text-#3B81F3">我的余额</view>
@@ -33,7 +33,7 @@
</view> </view>
</view> </view>
<view class="flex px-15 mt-15"> <view class="flex px-15 mt-30">
<view <view
class="flex py-30 justify-center items-center rounded-tl-10 rounded-br-10 flex-1 bg-[linear-gradient(180deg,#D9EBFF,#9EDAFF)] border-1 border-#5FAEFF80 border-solid" class="flex py-30 justify-center items-center rounded-tl-10 rounded-br-10 flex-1 bg-[linear-gradient(180deg,#D9EBFF,#9EDAFF)] border-1 border-#5FAEFF80 border-solid"
@click="handleWithdrawal" @click="handleWithdrawal"
@@ -53,7 +53,7 @@
<image <image
class="w-330 h-123 mx-auto mt-15 block" class="w-330 h-123 mx-auto mt-15 block"
src="@/static/images/my/recommend.png" src="@/static/images/my/recommend.png"
mode="aspectFill" mode="widthFix"
@click="handleInvite" @click="handleInvite"
/> />
@@ -174,7 +174,7 @@ const handleConvert = () => {
.my-page { .my-page {
min-height: 100vh; min-height: 100vh;
padding-bottom: 100rpx; padding-bottom: 100rpx;
background-image: url('@/static/images/bg.png'); background-image: url('@/static/images/my/bg.jpg');
background-position: top; background-position: top;
background-size: cover; background-size: cover;
} }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 174 KiB

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB