diff --git a/.env b/.env index 41da9fe..99fd28f 100644 --- a/.env +++ b/.env @@ -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 diff --git a/pages/index/user.vue b/pages/index/user.vue index b4583ca..70b570a 100644 --- a/pages/index/user.vue +++ b/pages/index/user.vue @@ -110,6 +110,23 @@ + + 第三方服务 + + + + + + + {{ v.name }} + + + @@ -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; diff --git a/static/icon/web/wushuang.png b/static/icon/web/wushuang.png new file mode 100644 index 0000000..5f760eb Binary files /dev/null and b/static/icon/web/wushuang.png differ