feat: 新增三方服务

This commit is contained in:
2026-07-25 16:24:09 +08:00
parent 7705af52af
commit 3569ff6b5a
3 changed files with 40 additions and 5 deletions
+39 -4
View File
@@ -110,6 +110,23 @@
</view>
</view>
</view>
<view class="card card5 third-party-card bg24">
<view class="card_title">第三方服务</view>
<view class="flex-center card5_con wrap ju-flex-start">
<view
class="flex-center flex-column card5_item"
v-for="(v, i) in thirdPartyServiceList"
:key="i"
@click="openThirdPartyService(v)"
>
<view class="card5_icon third-party-icon m-b-18 w_84 h_84">
<image :src="v.icon" mode="scaleToFill" />
</view>
<view class="card5_name size28 color_3">{{ v.name }}</view>
</view>
</view>
</view>
</view>
</view>
<cardTabber path="/pages/index/user" placeholder />
@@ -255,6 +272,14 @@
url: '/pages/public/setting',
},
]);
let thirdPartyServiceList = ref([
{
name: '无双',
icon: '/static/icon/web/wushuang.png',
title: '无双',
url: 'https://shop.wushuange.com/web',
},
]);
const goReal = () => {
uni.navigateTo({
url: '/pages/public/realname?status=' + realStatus.value,
@@ -280,6 +305,12 @@
});
}
};
const openThirdPartyService = (item) => {
if (!item?.url) return;
uni.navigateTo({
url: `/pages/public/webview?title=${encodeURIComponent(item.title || item.name || '第三方服务')}&url=${encodeURIComponent(item.url)}`,
});
};
const updateAvatar = async (avatar) => {
if (!avatar) return;
const res = await UserApi.updateUser({
@@ -385,14 +416,11 @@
}
.con {
position: absolute;
top: 0;
left: 0;
position: relative;
padding: 0rpx 40rpx;
box-sizing: border-box;
padding-bottom: 0;
width: 100%;
height: 100%;
z-index: 1;
.con_top {
@@ -584,6 +612,13 @@
}
}
.third-party-card {
.third-party-icon {
border-radius: 50%;
box-shadow: 0 12rpx 28rpx rgba(0, 0, 0, 0.14);
}
}
.card {
background-color: #fff;
border-radius: 20rpx;