123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819 |
- <template>
- <view class="container">
- <trtc-room ref="trtc-component" :config="rtcConfig"> </trtc-room>
- <view class="top_box" :style="{ top: btn_top, left: btn_left}">
- <image class="top_box_img" :src="head_img"></image>
- <view class="top_box_text">
- <text class="text_box_top">{{title}}</text><text class="text_box_bottom" >{{user_name}}</text>
- </view>
- </view>
- <view class="popup-flip" @click="changeCamera()">
- <view class="iconfont iconFill"></view>
- </view>
- <view class="popup-open" @click="popupShow = true">
- <view class="iconfont iconzhibo-shangpin"></view>
- </view>
- <u-popup v-model="popupShow" mode="bottom">
- <view class="popup-box">
- <view class="popup-close" @click="popupShow = false">收起</view>
- <view class="popup-edit" @click="bindGood()">绑定</view>
- <scroll-view scroll-y="true" class="good-select-box">
- <view class="select-good-row" v-for="(item, index) in goodList" :key="index">
- <view class="good-check">
- <view class="iconfont" :class="item.check ? 'iconqueding' : 'iconfeigouxuan'" @click="checkGoods(item)"></view>
- </view>
- <view class="good-card" style="width: calc(100% - 60px);">
- <image class="goods-img" :src="item.imgPath" mode="aspectFill"></image>
- <view class="good-info">
- <view class="good-name">{{item.productName}}</view>
- <view class="good-text">销量:{{item.sellCount}}</view>
- <view class="good-price">
- <text class="goods-spec">¥{{item.bizPrice}}/{{item.unit}}</text>
- <text class="goods-original">原价:{{item.originalPrice}}</text>
- </view>
- </view>
- </view>
- </view>
- </scroll-view>
- </view>
- </u-popup>
- <u-top-tips ref="uTips"></u-top-tips>
-
-
- <view class="talk_box" :style="{ left: btn_left}">
- <view class="line_box" v-for="(item, index) in text_list" :key="index">
- <view class="talk_box_timp" >
- <image :src="item.description"></image>
- <text>{{item.extension}}:{{item.data}}</text>
- </view>
- </view>
- </view>
- <view class="talk_input" :style="{ left: btn_left}">
- <view class="talk_box_timp" style="width: 60%;height: 80rpx;padding: 10rpx;">
- <input placeholder="说点什么..." placeholder-style="color:#fff" :value="send_value" type='text' confirm-type="send" @confirm="sendsms_fun" @input="getVal"/>
-
- </view>
- </view>
- </view>
- </template>
- <script>
- const NET = require('@/utils/request')
- const API = require('@/config/api')
- import {
- genTestUserSig,
- setData
- } from "@/pagesMedia/debug/GenerateTestUserSig";
- import trtcRoom from "@/pagesMedia/trtc-room/trtc-room";
- export default {
- components: {
- trtcRoom
- },
- data() {
- return {
- text_list:[
- //{description:'https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJc8RKCs43SAHMkh1bxVR3WTCr0MRkPCQkhlPrhA6Zhib1l5BouSIW0g6su8ia1cNVKhC2IZmM5humA/132',extension:'1111',data:'323123'}
- ],
- first_gx:true,
- send_value:'',
- roomID: '',
- liveId: '',
- popupShow: false,
- goodList: [],
- rtcConfig: {
- sdkAppID: '',
- // 必要参数 开通实时音视频服务创建应用后分配的 sdkAppID
- userID: '',
- // 必要参数 用户 ID 可以由您的帐号系统指定
- userSig: '',
- // 必要参数 身份签名,相当于登录密码的作用
- template: '' // 必要参数 组件模版,支持的值 1v1 grid custom ,注意:不支持动态修改, iOS 不支持 pusher 动态渲染
- },
- showTipToast: false,
- options: {},
- btn_left:0,
- btn_top:0,
- title:"",
- user_name:'0',
- head_img:"../static/images/loginLogo.png"
- }
- },
- onLoad(options) {
- this.liveId = options.liveId
- NET.request(API.getBindedLiveGoods, {
- liveId: this.liveId
- }, 'GET').then(res => {
- let goodsIds = res.data.map(site => {
- return site.productId
- }).join(',')
- this.getAllGoods(goodsIds)
- }).catch(res => {
- this.$refs.uTips.show({
- title: '获取已绑定商品失败',
- type: 'warning',
- })
- })
- NET.request(API.creatLive, {
- liveId: this.liveId,
- liveStatus: 1
- }, 'GET').then(res => {}).catch(res => {
- this.$refs.uTips.show({
- title: '开启直播失败',
- type: 'warning',
- })
- })
- NET.request(API.startLivePushMessage + options.liveId, {}, 'GET').then(res => {
-
- //this.goodsList = res.data
- }).catch(res => {
-
- })
-
- },
- onReady() {
- var that=this;
-
- let menuButtonObject = wx.getMenuButtonBoundingClientRect();
- let userData = uni.getStorageSync("userData")
- wx.getSystemInfo({
- success: res => {
- this.setData({
- btn_left: res.windowWidth - menuButtonObject.right+'px',
- btn_top:menuButtonObject.top+menuButtonObject.height+14+'rpx'
- })
- },
- })
-
- wx.setKeepScreenOn({
- keepScreenOn: true
- }); // 获取 rtcroom 实例
- this.trtcComponent = this.$refs['trtc-component']; // 监听TRTC Room 关键事件
- this.bindTRTCRoomEvent(); // 将String 类型的 true false 转换成 boolean
- this.options.localAudio = true; //开启麦克风
- this.options.localVideo = true; //开启视频
- NET.request(API.getLiveData + this.liveId, {}, 'POST').then(res => {
- this.enterRoom({
- roomID: Number(res.data.roomId),
- userID: uni.getStorageSync("userData").userId,
- template: "grid",
- });
- this.setData({
- head_img:res.data.imgUrl,
- title:res.data.liveName,
- roomID:Number(res.data.roomId)
- })
- }).catch(res => {
- this.$refs.uTips.show({
- title: '获取直播设置参数失败',
- type: 'warning',
- })
- })
- },
- onUnload() {
- NET.request(API.creatLive, {
- liveId: this.liveId,
- liveStatus: 2
- }, 'GET').then(res => {}).catch(res => {
- this.$refs.uTips.show({
- title: '关闭直播失败',
- type: 'warning',
- })
- })
- },
- methods: {
- getVal(e) {
- let {
- value
- } = e.detail
- this.send_value = value;
- },
- sendsms_fun:function(){
- /*this.trtcComponent.sendGroupTextMessage({
- roomID: Number(this.data.roomID), // 房间 ID
- message: this.data.title,
- })*/
- if(Number(wx.getStorageSync('jy_time'))>(new Date()).valueOf()){
- wx.showToast({
- title: "禁言中,不能发言",
- icon: 'none'
- })
- return false;
- }
-
- this.trtcComponent.sendGroupCustomMessage({
- roomID: Number(this.roomID), // 房间 ID
- payload: {
- data: this.send_value,
- description: uni.getStorageSync("userData").headImage,
- extension: uni.getStorageSync("userData").userName
- }
- })
- var that=this;
- console.log("new_log",uni.getStorageSync("userData"))
- var temp={
- data: this.send_value,
- description: uni.getStorageSync("userData").headImage,
- extension: uni.getStorageSync("userData").userName
- };
- var data=that.text_list;
- if(data.length==5){
- data.shift();
- }
- data.push(temp);
- this.setData({
- text_list:data,
- });
- this.setData({
- send_value:'',
- });
- },
- // 勾选商品
- checkGoods(site) {
- site.check = !site.check
- },
- // 获取可绑定商品
- getAllGoods(goodsIds) {
- NET.request(API.getVideoGoods, {}, 'GET').then(res => {
- res.data.forEach(site => {
- site.check = goodsIds.indexOf(site.productId) != -1
- })
- this.goodList = res.data
- }).catch(res => {
- this.$refs.uTips.show({
- title: '获取可绑定商品失败',
- type: 'warning',
- })
- })
- },
- // 绑定商品
- bindGood() {
- NET.request(API.bindLiveGoods, {
- liveId: this.liveId,
- prudoctIds: this.goodList.filter(site => site.check).map(site => {
- return site.productId
- })
- }, 'POST').then(res => {
- this.popupShow = false
- this.$refs.uTips.show({
- title: '设置成功',
- type: 'success',
- })
- }).catch(res => {
- this.$refs.uTips.show({
- title: '设置失败',
- type: 'warning',
- })
- })
- },
- setData,
- enterRoom: function(params) {
- params.template = params.template || '1v1';
- params.roomID = params.roomID || 2333;
- params.userID = params.userID || new Date().getTime().toString(16);
- console.log('* room enterRoom', params);
- const Signature = genTestUserSig(params.userID);
- params.sdkAppID = Signature.sdkAppID;
- params.userSig = Signature.userSig;
- this.template = params.template;
- this.rtcConfig = {
- sdkAppID: params.sdkAppID,
- // 您的实时音视频服务创建应用后分配的 sdkAppID
- userID: params.userID,
- userSig: params.userSig,
- template: params.template,
- // 1v1 grid custom
- debugMode: false,
- // 非必要参数,打开组件的调试模式,开发调试时建议设置为 true
- // cloudenv: params.cloudenv, // 非必要参数
- frontCamera: "front",
- enableEarMonitor: false,
- enableAutoFocus: true,
- localMirror: 'auto',
- enableAgc: true,
- enableAns: true,
- encsmall: false ? 1 : 0,
- videoWidth: 1280,
- videoHeight: 720,
- scene: "live",
- maxBitrate: 2000,
- minBitrate: 1500,
- beautyLevel: 9, // 默认开启美颜
- enableIM: true, // 用于组件内渲染
- showIMPanel: false,
- exitIMThrottle: false,
- messageContent: '',
- messageList: [], // 仅保留10条消息
- maxMessageListLength: 10,
- messageListScrollTop: 0
- };
- this.setData({
- rtcConfig: this.rtcConfig
- }, () => {
- // roomID 取值范围 1 ~ 4294967295
- this.trtcComponent.enterRoom({
- roomID: params.roomID
- }).then(() => {
- if (this.template === 'custom') {
- // 设置推流端视窗的坐标和尺寸
- this.trtcComponent.setViewRect({
- userID: params.userID,
- xAxis: '480rpx',
- yAxis: '160rpx',
- width: '240rpx',
- height: '320rpx'
- });
- }
- }).catch(res => {
- console.error('* room joinRoom 进房失败:', res);
- });
- });
- },
- setNum:function(){
- var that=this;
- let promise = that.trtcComponent.tim.getGroupProfile({ groupID: this.roomID+"" });
- promise.then(function(imResponse) {
- that.setData({
- user_name:(Number(imResponse.data.group.memberCount)-1)
- })
- console.log(imResponse.data.group);
- }).catch(function(imError) {
- console.warn('getGroupProfile error:', imError); // 获取群详细资料失败的相关信息
- });
- },
- bindTRTCRoomEvent: function() {
- const TRTC_EVENT = this.trtcComponent.EVENT;
- this.timestamp = []; // 初始化事件订阅
- this.trtcComponent.on(TRTC_EVENT.LOCAL_JOIN, event => {
- let user_list=this.trtcComponent.getRemoteUserList();
- this.setData({
- user_name:user_list.length
- })
- console.log('* room LOCAL_JOIN', event); // 进房成功,触发该事件后可以对本地视频和音频进行设置
- if (this.options.localVideo === true || this.options.template === '1v1') {
- this.trtcComponent.publishLocalVideo();
- }
- if (this.options.localAudio === true || this.options.template === '1v1') {
- this.trtcComponent.publishLocalAudio();
- }
- });
- this.trtcComponent.on(TRTC_EVENT.LOCAL_LEAVE, event => {
- console.log('* room LOCAL_LEAVE', event);
- });
- this.trtcComponent.on(TRTC_EVENT.ERROR, event => {
- console.log('* room ERROR', event);
-
- }); // 远端用户进房
- this.trtcComponent.on(TRTC_EVENT.REMOTE_USER_JOIN, event => {
- let user_list=this.trtcComponent.getRemoteUserList();
- this.setData({
- user_name:user_list.length
- })
-
- console.log('* room REMOTE_USER_JOIN --- room.vue', event, this.trtcComponent.getRemoteUserList(), this.template);
- this.timestamp.push(new Date()); // 1v1视频通话时限制人数为两人的简易逻辑,建议通过后端实现房间人数管理
- // 2人以上同时进行通话请选择网格布局
- if (this.template === '1v1' && this.timestamp.length > 1) {
- const interval = this.timestamp[1] - this.timestamp[0];
- if (interval < 1000) {
- // 房间里已经有两个人
- this.setData({
- showTipToast: true
- }, () => {
- setTimeout(() => {
- this.setData({
- showTipToast: false
- });
- wx.navigateBack({
- delta: 1
- });
- }, 4000);
- });
- }
- }
- }); // 远端用户退出
- this.trtcComponent.on(TRTC_EVENT.REMOTE_USER_LEAVE, event => {
- let user_list=this.trtcComponent.getRemoteUserList();
- this.setData({
- user_name:user_list.length
- })
- console.log('* room REMOTE_USER_LEAVE', event, this.trtcComponent.getRemoteUserList());
- if (this.template === '1v1') {
- this.timestamp = [];
- }
- if (this.template === '1v1' && this.remoteUser === event.data.userID) {
- this.remoteUser = null;
- }
- }); // 远端用户推送视频
- this.trtcComponent.on(TRTC_EVENT.REMOTE_VIDEO_ADD, event => {
- console.log('* room REMOTE_VIDEO_ADD', event, this.trtcComponent.getRemoteUserList()); // 订阅视频
- const userList = this.trtcComponent.getRemoteUserList();
- const data = event.data;
- if (this.template === '1v1' && (!this.remoteUser || this.remoteUser === data.userID)) {
- // 1v1 只订阅第一个远端流
- this.remoteUser = data.userID;
- this.trtcComponent.subscribeRemoteVideo({
- userID: data.userID,
- streamType: data.streamType
- });
- } else if (this.template === 'grid') {
- this.trtcComponent.subscribeRemoteVideo({
- userID: data.userID,
- streamType: data.streamType
- });
- }
- if (this.template === 'custom' && data.userID && data.streamType) {
- let index = userList.findIndex(item => {
- return item.userID === data.userID;
- });
- index++;
- const y = 320 * index + 160; // 设置远端视图坐标和尺寸
- this.trtcComponent.setViewRect({
- userID: data.userID,
- streamType: data.streamType,
- xAxis: '480rpx',
- yAxis: y + 'rpx',
- width: '240rpx',
- height: '320rpx'
- });
- }
- }); // 远端用户取消推送视频
- this.trtcComponent.on(TRTC_EVENT.REMOTE_VIDEO_REMOVE, event => {
- console.log('* room REMOTE_VIDEO_REMOVE', event, this.trtcComponent.getRemoteUserList());
- }); // 远端用户推送音频
- this.trtcComponent.on(TRTC_EVENT.REMOTE_AUDIO_ADD, event => {
- console.log('* room REMOTE_AUDIO_ADD', event, this.trtcComponent.getRemoteUserList()); // 订阅音频
- const data = event.data;
- if (this.template === '1v1' && (!this.remoteUser || this.remoteUser === data.userID)) {
- this.remoteUser = data.userID;
- this.trtcComponent.subscribeRemoteAudio({
- userID: data.userID
- });
- } else if (this.template === 'grid' || this.template === 'custom') {
- this.trtcComponent.subscribeRemoteAudio({
- userID: data.userID
- });
- } // 如果不订阅就不会自动播放音频
- // this.trtcComponent.subscribeRemoteAudio({ userID: data.userID })
- }); // 远端用户取消推送音频
- this.trtcComponent.on(TRTC_EVENT.REMOTE_AUDIO_REMOVE, event => {
- console.log('* room REMOTE_AUDIO_REMOVE', event, this.trtcComponent.getRemoteUserList());
- });
- this.trtcComponent.on(TRTC_EVENT.IM_READY, event => {
- console.log('* room IM_READY', event)
- var that=this;
- if(event.data.name=="onMessageReceived"){
- setTimeout(function(){
- if(that.first_gx){
- that.first_gx=false;
- that.setNum();
- }
- },3000)
- }
- })
- this.trtcComponent.on(TRTC_EVENT.IM_MESSAGE_RECEIVED, event => {
- var that=this;
- if(event.data.data==undefined){
- return false;
- }
- if(event.data.data[0]==undefined){
- return false;
- }
-
- if(event.data.data[0].type=="TIMCustomElem"){
- if(event.data.data[0].payload.description==0||event.data.data[0].payload.description==1||event.data.data[0].payload.description==2||event.data.data[0].payload.description==3){
- var user_id=wx.getStorageSync('uid');
- if(event.data.data[0].payload.data==user_id){
- var jy_time=0;
- if(event.data.data[0].payload.description==0){
- jy_time=(new Date()).valueOf()+5*60*1000;
- }
- if(event.data.data[0].payload.description==1){
- jy_time=(new Date()).valueOf()+10*60*1000;
- }
- if(event.data.data[0].payload.description==2){
- jy_time=(new Date()).valueOf()+30*60*1000;
- }
- if(event.data.data[0].payload.description==3){
- jy_time=(new Date()).valueOf()+60*60*1000;
- }
- wx.setStorageSync('jy_time', jy_time)
- }
- wx.showToast({
- title: event.data.data[0].payload.extension,
- icon: 'none'
- })
- }else{
- var temp=event.data.data[0].payload;
- if(temp.data=="genxin"){
- setTimeout(function(){
- that.setNum();
- },3000)
- return false;
- }
- var data=that.text_list;
- if(data.length==5){
- data.shift();
- }
- data.push(temp);
- this.setData({
- text_list:data,
- });
- }
- }
- })
- },
- changeCamera: function() {
- this.trtcComponent.switchCamera();
- }
- },
- }
- </script>
- <style lang="less" scoped>
- page {
- width: 100%;
- height: 100%;
- }
- .container {
- width: 100%;
- height: 100%;
- float: left;
- position: relative;
- .popup-flip {
- width: 50px;
- height: 50px;
- position: fixed;
- top: 15px;
- right: 15px;
- background: #52A63A;
- border-radius: 50%;
- text-align: center;
- line-height: 50px;
- z-index: 10000;
- .iconFill {
- color: #FFFFFF;
- font-size: 34px;
- }
- }
- .popup-open {
- width: 50px;
- height: 50px;
- position: fixed;
- bottom: 15px;
- right: 15px;
- background: #52A63A;
- border-radius: 50%;
- text-align: center;
- line-height: 50px;
- z-index: 10000;
- .iconzhibo-shangpin {
- color: #FFFFFF;
- font-size: 34px;
- }
- }
- .popup-box {
- width: 100%;
- height: 400px;
- float: left;
- background-color: #FFFFFF;
- border-radius: 15px 15px 0px 0px;
- box-sizing: border-box;
- padding: 16px 0 0 0;
- position: relative;
- .popup-close {
- width: 50%;
- height: 26px;
- float: left;
- box-sizing: border-box;
- padding: 10px 15px 0 15px;
- font-size: 15px;
- font-family: PingFang SC;
- color: #52A63A;
- line-height: 16px;
- margin-bottom: 10px;
- }
- .popup-edit {
- width: 50%;
- height: 26px;
- float: right;
- box-sizing: border-box;
- padding: 10px 15px 0 15px;
- font-size: 15px;
- font-family: PingFang SC;
- color: #52A63A;
- line-height: 16px;
- margin-bottom: 10px;
- text-align: right;
- }
- .good-select-box {
- width: 100%;
- height: 400px;
- float: left;
- overflow-y: auto;
- padding: 40px 0 10px 0;
- }
- .select-good-row {
- width: 100%;
- height: 114px;
- float: left;
- }
- .good-check {
- width: 30px;
- height: 104px;
- float: left;
- line-height: 104px;
- margin-right: 10px;
- .iconfont {
- font-size: 40px;
- text-align: right;
- color: #51A539;
- }
- }
- .good-card {
- width: 100%;
- float: left;
- margin: 5px;
- background: #FFFFFF;
- border-radius: 15px;
- box-shadow: 0px 1px 5px 0px rgba(102, 102, 102, 0.43);
- padding: 12px;
- box-sizing: border-box;
- .goods-img {
- width: 80px;
- height: 80px;
- float: left;
- border-radius: 10px;
- object-fit: cover;
- }
- .good-info {
- width: calc(100% - 86px);
- height: 80px;
- float: right;
- .good-name {
- width: 100%;
- height: 40px;
- float: left;
- font-size: 15px;
- font-family: PingFang SC;
- color: #333333;
- line-height: 20px;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- word-wrap: break-word;
- }
- .good-price {
- width: 100%;
- height: 20px;
- float: left;
- line-height: 20px;
- font-family: PingFang SC;
- white-space: nowrap;
- margin: 3px 0 3px 0;
- .goods-spec {
- font-size: 15px;
- color: #52A63A;
- margin-right: 6px;
- }
- .goods-original {
- font-size: 12px;
- text-decoration: line-through;
- color: #A67954;
- }
- }
- }
- }
- }
- .top_box{
- width: 304rpx;
- height: 86rpx;
- position: absolute;
- z-index: 100;
- background:rgba(0, 0, 0, 0.4);
- border-radius: 100px;
- top: 182rpx;
- left: 30rpx;
- }
- .top_box_img{
- width: 86rpx;
- height: 86rpx;
- border-radius: 100rpx;
- float: left;
- }
- .top_box_text{
- float: left;
- color: #fff;
- margin-left: 30rpx;
- width: 180rpx;
- padding-top: 2rpx;
- }
- .text_box_top{
- font-size: 28rpx;
- width: 100%;
- display: block;
- height: 30rpx;
- float: left;
- margin-top: 6rpx;
- }
- .text_box_bottom{
- font-size: 22rpx;
- float: left;
- margin-top: 10rpx;
- }
- .tx_btn{
- background: #4fa237;
- display: inline-block;
- height: 70rpx;
- margin-top: 5rpx;
- border-radius: 60rpx;
- line-height: 70rpx;
- padding: 0 30rpx;
- margin-left: 30rpx;
- }
- .tx_btn image{
- width: 60rpx;
- height: 60rpx;
- margin-top: 5rpx;
- margin-right: 20rpx;
- }
- .tixingn{
- font-size: 34rpx;
- display: flex;
- }
-
- .tixingn:before {
- font-size: 60rpx;
- }
- .talk_box{
- z-index: 10;
- position: absolute;
- bottom: 30rpx;
- left: 0rpx;
- }
- .line_box{
- width:100%
- }
- .talk_box_timp{
- display: inline-block;
- border-radius: 60rpx;
- background: rgba(0, 0, 0, 0.4);
- margin-bottom: 10rpx;
- }
- .talk_box_timp image{
- width: 56rpx;
- height: 56rpx;
- border-radius: 60rpx;
- float: left;
-
- }
- .talk_box_timp text{
- float: left;
- color: #fff;
- padding-top: 6rpx;
- padding-right: 50rpx;
- font-size: 28rpx;
- margin-left: 20rpx;
- line-height: 45rpx;
- }
- .talk_input{
- display:none;
- z-index: 10;
- position: absolute;
- bottom: 38rpx;
- left: 0rpx;
- width:100%
- }
- .talk_box_timp input{
- float: left;
- color: #fff;
- padding-top: 6rpx;
- padding-right: 50rpx;
- font-size: 30rpx;
- margin-left: 20rpx;
- line-height: 45rpx;
- line-height: 34rpx;
- }
-
- }
- </style>
|