添加分享
This commit is contained in:
parent
75c82ad59d
commit
34eda16251
@ -4,7 +4,7 @@
|
|||||||
"path": "pages/index/index",
|
"path": "pages/index/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "首页",
|
"navigationBarTitleText": "首页",
|
||||||
"navigationStyle": "custom", // 首页使用自定义导航栏(需手动绘制)
|
"navigationStyle": "custom",
|
||||||
"enableShareAppMessage": true
|
"enableShareAppMessage": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -307,6 +307,13 @@ export default {
|
|||||||
reconnectInterval: 5000 // 重连间隔(5秒)
|
reconnectInterval: 5000 // 重连间隔(5秒)
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
onShareAppMessage() {
|
||||||
|
return {
|
||||||
|
title: '欢迎是有Totustec',
|
||||||
|
path: '/pages/index/index',
|
||||||
|
imageUrl: 'https://online.totustec.com/upload/indexPage/logo.png'
|
||||||
|
}
|
||||||
|
},
|
||||||
onLoad () {
|
onLoad () {
|
||||||
const systemInfo = wx.getSystemInfoSync();
|
const systemInfo = wx.getSystemInfoSync();
|
||||||
const {
|
const {
|
||||||
@ -327,7 +334,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({
|
||||||
|
Loading…
Reference in New Issue
Block a user