添加分享

This commit is contained in:
18796357645 2025-07-15 15:49:56 +08:00
parent 34eda16251
commit 73536a9cc1
3 changed files with 26 additions and 6 deletions

View File

@ -12,7 +12,8 @@
"path": "pages/mine/index",
"style": {
"navigationBarTitleText": "我的",
"navigationStyle": "custom"
"navigationStyle": "custom",
"enableShareAppMessage": true
}
},
{

View File

@ -294,7 +294,7 @@ export default {
methods: {
// ---------------------- WebSocket ----------------------
connectWebSocket () {
const wsUrl = "ws://e7eb22d8.natappfree.cc/webSocket/vue";
const wsUrl = "ws://online.totustec.com/webSocket/vue";
// WebSocket 使 uni-app
this.socketTask = uni.connectSocket({
@ -356,7 +356,7 @@ export default {
this.socketData = message.data;
if (this.socketData.imageUrl) {
this.socketData.imageUrl =
"http://e7eb22d8.natappfree.cc" + message.data.imageUrl;
"http://online.totustec.com" + message.data.imageUrl;
}
}
// WRITEIMG

View File

@ -51,7 +51,7 @@
<image class="area2_item_right" src="https://online.totustec.com/upload/minePage/mine_area_right.png"></image>
</view> -->
<!-- <view class="function_area2_item" style="
<view class="function_area2_item" open-type="share" style="
border-bottom-left-radius: 20rpx;
border-bottom-right-radius: 20rpx;
">
@ -60,8 +60,10 @@
</image>
<view class="area2_item_txt">分享小程序</view>
</view>
<button open-type="share" class="area2_item_right_btn">
<image class="area2_item_right" src="https://online.totustec.com/upload/minePage/mine_area_right.png"></image>
</view> -->
</button>
</view>
</view>
</view>
@ -157,6 +159,13 @@ export default {
uni.showToast({ title: "登录失败", icon: "none" });
}
},
onShareAppMessage() {
return {
title: '欢迎体验Totustec',
path: '/pages/index/index',
imageUrl: 'https://online.totustec.com/upload/indexPage/company_logo1.png'
}
},
},
};
</script>
@ -253,6 +262,16 @@ export default {
width: 100%;
margin-top: -20rpx;
}
.area2_item_right_btn {
background: none;
border: none;
padding: 0;
margin: 0;
box-shadow: none;
display: flex;
align-items: center;
}
</style>
<style scoped>
.contai_warp {