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');
}