feat: 新增三方服务
This commit is contained in:
@@ -21,7 +21,7 @@ SHOPRO_BASE_URL=http://www.qflyqzy.net:48090
|
||||
# SHOPRO_DEV_BASE_URL=https://www.qflyqzy.net/yg-api
|
||||
|
||||
# 伟伟
|
||||
# SHOPRO_DEV_BASE_URL=http://192.168.1.8:48090
|
||||
# SHOPRO_DEV_BASE_URL=http://192.168.1.7:48080
|
||||
|
||||
# 测试环境
|
||||
SHOPRO_DEV_BASE_URL=https://yougoutest.api.riananyoumu.com
|
||||
|
||||
+39
-4
@@ -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;
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
Reference in New Issue
Block a user