From ed854ff6b963c727e7f0e9c995a256a1167d4643 Mon Sep 17 00:00:00 2001
From: "Mr.jiang" <714156421@qq.com>
Date: Fri, 2 Aug 2024 10:01:09 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9D=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
manifest.json | 2 +-
pages.json | 12 +
pages/index/index.vue | 21 +-
pages/index/searchAddress.vue | 153 +++++++++++
pages/msg/im.vue | 30 +++
pages/my/index.vue | 492 +++++++++++++++++++++-------------
6 files changed, 517 insertions(+), 193 deletions(-)
create mode 100644 pages/index/searchAddress.vue
diff --git a/manifest.json b/manifest.json
index d843a22..a21c9c4 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,6 +1,6 @@
{
"name" : "盛安到家",
- "appid" : "__UNI__807ED4C",
+ "appid" : "__UNI__0A81F4F",
"description" : "",
"versionName" : "1.0.1",
"versionCode" : 101,
diff --git a/pages.json b/pages.json
index 7f20640..136fffc 100644
--- a/pages.json
+++ b/pages.json
@@ -54,6 +54,18 @@
}
}
},
+ {
+ "path": "pages/index/searchAddress",
+ "style": {
+ "navigationBarTitleText": "地址列表",
+ "enablePullDownRefresh": false,
+ "onReachBottomDistance":200,
+ "navigationStyle": "custom",
+ "app-plus": {
+ "titleNView": false
+ }
+ }
+ },
{
"path": "pages/videoCircle/index",
"style": {
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 9385074..273e62a 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -645,15 +645,18 @@
},
goCity(){
var that = this
- uni.chooseLocation({
- success: function(res) {
- console.log('经度:' + res);
- that.detailaddress = res.name
- that.latitude = res.latitude
- that.longitude = res.longitude
- that.selectCity(res.longitude, res.latitude);
- }
- });
+ uni.navigateTo({
+ url:'/pages/index/searchAddress'
+ })
+ // uni.chooseLocation({
+ // success: function(res) {
+ // console.log('经度:' + res);
+ // that.detailaddress = res.name
+ // that.latitude = res.latitude
+ // that.longitude = res.longitude
+ // that.selectCity(res.longitude, res.latitude);
+ // }
+ // });
},
selectCity(longitude, latitude) {
diff --git a/pages/index/searchAddress.vue b/pages/index/searchAddress.vue
new file mode 100644
index 0000000..e27681c
--- /dev/null
+++ b/pages/index/searchAddress.vue
@@ -0,0 +1,153 @@
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/msg/im.vue b/pages/msg/im.vue
index c0a76f3..999d4a7 100644
--- a/pages/msg/im.vue
+++ b/pages/msg/im.vue
@@ -245,6 +245,8 @@
uni.showLoading({
title: '连接中...'
})
+ // wss://sausers.blxinchuang.com/wss/chatSocket/
+ // websocketUtils.getWsBaseUrl()
uni.connectSocket({
url: websocketUtils.getWsBaseUrl() + userId,
data() {
@@ -299,6 +301,30 @@
that.startRecive = false
that.msg = false
console.log('onClose', res)
+ uni.showLoading({
+ title: '连接中...'
+ })
+ uni.connectSocket({
+ url: websocketUtils.getWsBaseUrl() + userId,
+ data() {
+ return {
+ msg: 'Hello'
+ }
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ method: 'GET',
+ success(res) {
+ uni.hideLoading();
+ that.getTimeOrListItem1();
+ // 这里是接口调用成功的回调,不是连接成功的回调,请注意
+ },
+ fail(err) {
+ // 这里是接口调用失败的回调,不是连接失败的回调,请注意
+ console.log("--------------"+JSON.stringify(err))
+ }
+ });
});
},
close() {
@@ -392,6 +418,7 @@
}, 50);
},
fail(err) {
+ that.connect()
console.log(err);
}
})
@@ -545,6 +572,9 @@
+
\ No newline at end of file