From 7c702cd4c32104117058860c9003448b87d01344 Mon Sep 17 00:00:00 2001
From: "Mr.jiang" <714156421@qq.com>
Date: Wed, 24 Jul 2024 22:24:15 +0800
Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E8=B5=9E=20=E8=81=8A=E5=A4=A9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/msg/im.vue | 1 +
pages/videoCircle/index.vue | 20 ++++++++------------
utils/websocketUtils.js | 2 +-
3 files changed, 10 insertions(+), 13 deletions(-)
diff --git a/pages/msg/im.vue b/pages/msg/im.vue
index 9c7bd94..78dd1ca 100644
--- a/pages/msg/im.vue
+++ b/pages/msg/im.vue
@@ -208,6 +208,7 @@
msg: 'Hello'
}
},
+ // protocols: ['protocol1'],
header: {
'content-type': 'application/json'
},
diff --git a/pages/videoCircle/index.vue b/pages/videoCircle/index.vue
index 57f6f75..5449802 100644
--- a/pages/videoCircle/index.vue
+++ b/pages/videoCircle/index.vue
@@ -54,8 +54,8 @@
-
-
+
+
{{list.dzs}}
@@ -125,6 +125,7 @@
},
data() {
return {
+ isLiked:false,
dianzhan:0,
showPopup:false,
ccRef: null,
@@ -806,15 +807,12 @@
shipinquanId:this.dataList[this.k].id,
}
// this.dataList[this.k].sfdz = !this.dataList[this.k].sfdz
- if(this.dataList[this.k].sfdz=='1'){
+ if(this.dataList[this.k].sfdz=='0'){
this.$Request.post("/app/shipinquan/addDianzan", data).then(res => {
if (res.code == 0) {
- // this.dataList[this.k].dzs += 1;
- // this.dataList[this.k].sfdz = '0';
- const video = this.dataList[this.k].dzs;
- sss=video.dzs += 1;
+ this.dataList[this.k].dzs += 1;
+ this.dataList[this.k].sfdz = '1';
} else {
- this.dataList[this.k].sfdz ='0'
uni.showToast({
title: res.msg,
icon: 'none'
@@ -823,13 +821,11 @@
});
}else{//取消点赞
- this.dataList[this.k].sfdz ='0'
this.$Request.post("/app/shipinquan/delDianzan", data).then(res => {
if (res.code == 0) {
- const video = this.dataList[this.k];
- sss=video.dzs -= 1;
+ this.dataList[this.k].dzs -= 1;
+ this.dataList[this.k].sfdz = '0';
} else {
- this.dataList[this.k].sfdz ='0'
uni.showToast({
title: res.msg,
icon: 'none'
diff --git a/utils/websocketUtils.js b/utils/websocketUtils.js
index 61f6907..6240ccb 100644
--- a/utils/websocketUtils.js
+++ b/utils/websocketUtils.js
@@ -587,7 +587,7 @@ export function uploadFileUrl(){
}
export function getWsBaseUrl(){
- return config('WSHOST');
+ return config('APIHOST');
}