gdpaomg
This commit is contained in:
commit
3ecaac3190
@ -73,7 +73,7 @@
|
|||||||
<u-popup v-model="publishstate" mode="bottom">
|
<u-popup v-model="publishstate" mode="bottom">
|
||||||
<view class="publish">
|
<view class="publish">
|
||||||
<view class="list">
|
<view class="list">
|
||||||
<view @click="navto('release/tosign')" v-if="0">
|
<view @click="navto('release/tosign')">
|
||||||
<image src="../../static/image/index/live.png"></image>
|
<image src="../../static/image/index/live.png"></image>
|
||||||
<text>直播</text>
|
<text>直播</text>
|
||||||
</view>
|
</view>
|
||||||
|
@ -91,6 +91,10 @@
|
|||||||
<text style="color:#fff;font-size:30rpx">RMB {{jieshu.sales_amount}}</text>
|
<text style="color:#fff;font-size:30rpx">RMB {{jieshu.sales_amount}}</text>
|
||||||
<text style="color:#fff;font-size:30rpx;margin-top:10rpx">直播销量</text>
|
<text style="color:#fff;font-size:30rpx;margin-top:10rpx">直播销量</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="jieshuboxitem" v-if="list.length != 0">
|
||||||
|
<text style="color:#fff;font-size:30rpx">{{jieshu.buy_num}}</text>
|
||||||
|
<text style="color:#fff;font-size:30rpx;margin-top:10rpx">购买人数</text>
|
||||||
|
</view>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <button class="btn" @click="start">开始推流1</button>
|
<!-- <button class="btn" @click="start">开始推流1</button>
|
||||||
@ -336,11 +340,13 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
left: 30rpx;
|
left: 30rpx;
|
||||||
bottom: 118rpx;
|
bottom: 118rpx;
|
||||||
|
width: 690rpx;
|
||||||
}
|
}
|
||||||
.danmuitem{
|
.danmuitem{
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
flex-direction: column-reverse;
|
flex-direction: column-reverse;
|
||||||
|
word-wrap:anywhere;
|
||||||
}
|
}
|
||||||
.livePusher{
|
.livePusher{
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
|
@ -11,6 +11,10 @@
|
|||||||
</view>
|
</view>
|
||||||
<image src="/static/image/user/1.png"></image>
|
<image src="/static/image/user/1.png"></image>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="nav" @click="navtos()">
|
||||||
|
<text>活动消息</text>
|
||||||
|
<image src="/static/image/user/1.png"></image>
|
||||||
|
</view>
|
||||||
<view class="nav" @click="toOthersPage('fans')">
|
<view class="nav" @click="toOthersPage('fans')">
|
||||||
<text>我的粉丝</text>
|
<text>我的粉丝</text>
|
||||||
<image src="/static/image/user/1.png"></image>
|
<image src="/static/image/user/1.png"></image>
|
||||||
@ -77,49 +81,54 @@ export default {
|
|||||||
this.imService.connectIM()
|
this.imService.connectIM()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取缓存
|
// 获取缓存
|
||||||
getCache() {
|
getCache() {
|
||||||
let _this = this;
|
let _this = this;
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
plus.cache.calculate(function(size) {
|
plus.cache.calculate(function(size) {
|
||||||
console.log(size);
|
console.log(size);
|
||||||
let sizeCache = size;
|
let sizeCache = size;
|
||||||
if (sizeCache == 0) {
|
if (sizeCache == 0) {
|
||||||
_this.fileSizeString = "0B";
|
_this.fileSizeString = "0B";
|
||||||
} else if (sizeCache < 1024) {
|
} else if (sizeCache < 1024) {
|
||||||
_this.fileSizeString = sizeCache + "B";
|
_this.fileSizeString = sizeCache + "B";
|
||||||
} else if (sizeCache < 1048576) {
|
} else if (sizeCache < 1048576) {
|
||||||
_this.fileSizeString = (sizeCache / 1024).toFixed(2) + "KB";
|
_this.fileSizeString = (sizeCache / 1024).toFixed(2) + "KB";
|
||||||
} else if (sizeCache < 1073741824) {
|
} else if (sizeCache < 1073741824) {
|
||||||
_this.fileSizeString = (sizeCache / 1048576).toFixed(2) + "MB";
|
_this.fileSizeString = (sizeCache / 1048576).toFixed(2) + "MB";
|
||||||
} else {
|
} else {
|
||||||
_this.fileSizeString = (sizeCache / 1073741824).toFixed(2) + "GB";
|
_this.fileSizeString = (sizeCache / 1073741824).toFixed(2) + "GB";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
// 清除缓存
|
// 清除缓存
|
||||||
clearCache() {
|
clearCache() {
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "确定要清理缓存吗?",
|
title: "确定要清理缓存吗?",
|
||||||
cancelColor: "#999",
|
cancelColor: "#999",
|
||||||
confirmColor: "#f00",
|
confirmColor: "#f00",
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
// console.log(res);
|
// console.log(res);
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
plus.cache.clear(function(e) {
|
plus.cache.clear(function(e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.getCache();
|
this.getCache();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
// 退出登录
|
navtos(){
|
||||||
|
this.$u.route({
|
||||||
|
url:"/pages/messages/list"
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 退出登录
|
||||||
loginOut(){
|
loginOut(){
|
||||||
this.imService.disconnect();
|
this.imService.disconnect()
|
||||||
uni.clearStorage();
|
uni.clearStorage();
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: "退出登陆成功!",
|
title: "退出登陆成功!",
|
||||||
|
@ -784,6 +784,10 @@ IMService.prototype.initialWhenOnlineUserChange = function (whenOnlineUserChange
|
|||||||
IMService.prototype.listenerNewMessage = function () {
|
IMService.prototype.listenerNewMessage = function () {
|
||||||
|
|
||||||
this.im.on(GoEasyIM.EVENT.GROUP_MESSAGE_RECEIVED, (message) => {
|
this.im.on(GoEasyIM.EVENT.GROUP_MESSAGE_RECEIVED, (message) => {
|
||||||
|
console.log(message)
|
||||||
|
if(message.senderId == 0){
|
||||||
|
return ;
|
||||||
|
}
|
||||||
var content = JSON.parse(message.payload.text);
|
var content = JSON.parse(message.payload.text);
|
||||||
this.addNewMessage(message);
|
this.addNewMessage(message);
|
||||||
this.whenNewMessage(content);
|
this.whenNewMessage(content);
|
||||||
|
Loading…
Reference in New Issue
Block a user