|
|
|
@ -121,10 +121,18 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="b" v-if="isOpen"> |
|
|
|
|
<image @click="uploadImg()" src="@/static/chat-zhaopian.png"></image> |
|
|
|
|
<image @click="uploadVideo()" src="@/static/chat-xiangji.png"></image> |
|
|
|
|
<image @click="openShiping()" src="@/static/chat-yinshipin.png"></image> |
|
|
|
|
<image @click="openGift()" src="@/static/chat-liwu.png"></image> |
|
|
|
|
<view class="dt" @click="uploadImg()"> |
|
|
|
|
<image src="@/static/chat-zhaopian.png"></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="dt" @click="uploadVideo()"> |
|
|
|
|
<image src="@/static/chat-xiangji.png"></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="dt" @click="openShiping()"> |
|
|
|
|
<image src="@/static/chat-yinshipin.png"></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="dt" @click="openGift()"> |
|
|
|
|
<image src="@/static/chat-liwu.png"></image> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="c" v-if="isBiaoqing"> |
|
|
|
|
<image @click="toClick(i)" v-for="i in 75" :key="i" :src="'https://api.lyiyuan.cn/profile/upload/static/face/'+i+'.gif'"></image> |
|
|
|
@ -693,18 +701,22 @@ |
|
|
|
|
message: type == 3?that.content: that.img |
|
|
|
|
}) |
|
|
|
|
if(code == 200){ |
|
|
|
|
let svgaSrc = null |
|
|
|
|
if(that.giftList && that.giftList.length > 0){ |
|
|
|
|
svgaSrc = that.giftList[that.tabIndex].specialEffects |
|
|
|
|
} |
|
|
|
|
uni.sendSocketMessage({data:JSON.stringify({ |
|
|
|
|
"userId": uni.getStorageSync("userInfo").id, |
|
|
|
|
sellerId:that.id, |
|
|
|
|
type, |
|
|
|
|
num: (that.count+1), |
|
|
|
|
message: (type == 3?that.content: that.img), |
|
|
|
|
svgaSrc: that.giftList[that.tabIndex].specialEffects, |
|
|
|
|
svgaSrc: svgaSrc?svgaSrc:'', |
|
|
|
|
"topic":"message" |
|
|
|
|
})}) |
|
|
|
|
if(type==5){ |
|
|
|
|
that.svgaSrc = that.giftList[that.tabIndex].specialEffects |
|
|
|
|
if(that.svgaSrc){ |
|
|
|
|
if(svgaSrc){ |
|
|
|
|
that.svgaSrc = svgaSrc |
|
|
|
|
that.isSvga = true; |
|
|
|
|
that.$refs.cSvgaRef.call("clear"); |
|
|
|
|
that.$refs.cSvgaRef.call("startAnimation") |
|
|
|
@ -715,7 +727,6 @@ |
|
|
|
|
} |
|
|
|
|
that.isOpen = false; |
|
|
|
|
that.isBiaoqing = false; |
|
|
|
|
that.isToggle = true; |
|
|
|
|
that.show1 = false; |
|
|
|
|
that.userBalance(); |
|
|
|
|
that.editorCtx.clear(); |
|
|
|
@ -1111,13 +1122,13 @@ |
|
|
|
|
/* #endif */ |
|
|
|
|
height: calc(100vh - 190rpx - 88rpx - 70rpx); |
|
|
|
|
&-on{ |
|
|
|
|
height: calc(100vh - 190rpx - 88rpx - 70rpx - 160rpx); |
|
|
|
|
height: calc(100vh - 190rpx - 88rpx - 70rpx - 260rpx); |
|
|
|
|
} |
|
|
|
|
&-active{ |
|
|
|
|
height: calc(100vh - 120rpx - 88rpx - 70rpx); |
|
|
|
|
} |
|
|
|
|
&-active1{ |
|
|
|
|
height: calc(100vh - 120rpx - 88rpx - 70rpx - 160rpx); |
|
|
|
|
height: calc(100vh - 120rpx - 88rpx - 70rpx - 260rpx); |
|
|
|
|
} |
|
|
|
|
.changyong{ |
|
|
|
|
overflow: hidden; |
|
|
|
@ -1487,22 +1498,27 @@ |
|
|
|
|
} |
|
|
|
|
.b{ |
|
|
|
|
width: 100%; |
|
|
|
|
height: 160rpx; |
|
|
|
|
height: 260rpx; |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
border-top: 1px solid #E2E2E2; |
|
|
|
|
padding: 0 45rpx; |
|
|
|
|
box-sizing: border-box; |
|
|
|
|
.dt{ |
|
|
|
|
flex: 1; |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: center; |
|
|
|
|
margin-top: 30rpx; |
|
|
|
|
image{ |
|
|
|
|
width: 100rpx; |
|
|
|
|
height: 100rpx; |
|
|
|
|
display: block; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.c{ |
|
|
|
|
width: 100%; |
|
|
|
|
height: 160rpx; |
|
|
|
|
height: 260rpx; |
|
|
|
|
overflow-y: auto; |
|
|
|
|
overflow-x: hidden; |
|
|
|
|
border-top: 1px solid #E2E2E2; |
|
|
|
@ -1515,12 +1531,12 @@ |
|
|
|
|
opacity: 0; |
|
|
|
|
} |
|
|
|
|
image{ |
|
|
|
|
width: 70rpx; |
|
|
|
|
height: 70rpx; |
|
|
|
|
width: 24px; |
|
|
|
|
height: 24px; |
|
|
|
|
float: left; |
|
|
|
|
margin-top: 6rpx; |
|
|
|
|
margin-bottom: 6rpx; |
|
|
|
|
margin-right: 5rpx; |
|
|
|
|
margin-top: 5rpx; |
|
|
|
|
margin-bottom: 5rpx; |
|
|
|
|
margin-right: 7rpx; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|