添加分享
This commit is contained in:
parent
34eda16251
commit
73536a9cc1
@ -12,7 +12,8 @@
|
|||||||
"path": "pages/mine/index",
|
"path": "pages/mine/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "我的",
|
"navigationBarTitleText": "我的",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom",
|
||||||
|
"enableShareAppMessage": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -294,7 +294,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
// ---------------------- WebSocket 核心方法 ----------------------
|
// ---------------------- WebSocket 核心方法 ----------------------
|
||||||
connectWebSocket () {
|
connectWebSocket () {
|
||||||
const wsUrl = "ws://e7eb22d8.natappfree.cc/webSocket/vue";
|
const wsUrl = "ws://online.totustec.com/webSocket/vue";
|
||||||
|
|
||||||
// 初始化 WebSocket 连接(使用 uni-app 接口)
|
// 初始化 WebSocket 连接(使用 uni-app 接口)
|
||||||
this.socketTask = uni.connectSocket({
|
this.socketTask = uni.connectSocket({
|
||||||
@ -356,7 +356,7 @@ export default {
|
|||||||
this.socketData = message.data;
|
this.socketData = message.data;
|
||||||
if (this.socketData.imageUrl) {
|
if (this.socketData.imageUrl) {
|
||||||
this.socketData.imageUrl =
|
this.socketData.imageUrl =
|
||||||
"http://e7eb22d8.natappfree.cc" + message.data.imageUrl;
|
"http://online.totustec.com" + message.data.imageUrl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// WRITEIMG 接收图片数据中
|
// WRITEIMG 接收图片数据中
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
<image class="area2_item_right" src="https://online.totustec.com/upload/minePage/mine_area_right.png"></image>
|
<image class="area2_item_right" src="https://online.totustec.com/upload/minePage/mine_area_right.png"></image>
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|
||||||
<!-- <view class="function_area2_item" style="
|
<view class="function_area2_item" open-type="share" style="
|
||||||
border-bottom-left-radius: 20rpx;
|
border-bottom-left-radius: 20rpx;
|
||||||
border-bottom-right-radius: 20rpx;
|
border-bottom-right-radius: 20rpx;
|
||||||
">
|
">
|
||||||
@ -60,8 +60,10 @@
|
|||||||
</image>
|
</image>
|
||||||
<view class="area2_item_txt">分享小程序</view>
|
<view class="area2_item_txt">分享小程序</view>
|
||||||
</view>
|
</view>
|
||||||
<image class="area2_item_right" src="https://online.totustec.com/upload/minePage/mine_area_right.png"></image>
|
<button open-type="share" class="area2_item_right_btn">
|
||||||
</view> -->
|
<image class="area2_item_right" src="https://online.totustec.com/upload/minePage/mine_area_right.png"></image>
|
||||||
|
</button>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -157,6 +159,13 @@ export default {
|
|||||||
uni.showToast({ title: "登录失败", icon: "none" });
|
uni.showToast({ title: "登录失败", icon: "none" });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onShareAppMessage() {
|
||||||
|
return {
|
||||||
|
title: '欢迎体验Totustec',
|
||||||
|
path: '/pages/index/index',
|
||||||
|
imageUrl: 'https://online.totustec.com/upload/indexPage/company_logo1.png'
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
@ -253,6 +262,16 @@ export default {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: -20rpx;
|
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>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.contai_warp {
|
.contai_warp {
|
||||||
|
Loading…
Reference in New Issue
Block a user