| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674 |
- <template>
- <div class="broadcast-details" :style="'height:'+windowH+'px'">
- <view class="hd-wrapper" :class="active === true ? 'on' : ''">
- <view class="store-wrapper" v-if="storeInfo">
- <view class="left">
- <image :src="storeInfo.mer_avatar" mode=""></image>
- <view class="txt">{{storeInfo.mer_name}}</view>
- </view>
- <navigator v-if="hide_mer_status != 1" :url="'/pages/store/home/index?id='+storeInfo.mer_id" class="link" open-type="redirect">进店</navigator>
- </view>
- <div class="broadcast-details_order">
- <!-- 商品信息 -->
- <div class="broadcast-details_box" v-if="productId && productInfo.product_id">
- <div class="broadcast_details_img">
- <img v-if="!presellId" :src="productInfo.image" />
- <img v-else :src="productInfo.product.image" />
- </div>
- <div class="broadcast_details_picBox">
- <div class="broadcast_details_tit" v-text="productInfo.store_name"></div>
- <div class="acea-row row-between">
- <div class="broadcast_details_pic">
- ¥{{ productInfo.price
- }}<span class="broadcast_details_pic_num">¥{{ productInfo.ot_price }}</span>
- </div>
- <div class="broadcast_details_btn" @click="sendProduct">发送客服</div>
- </div>
- </div>
- </div>
- <!-- 订单信息 -->
- <div class="broadcast_box" v-if="orderId && orderInfo.order_id">
- <div class="broadcast-details_num broadcast_num">
- <span>订单号:{{ orderInfo.order_sn }}</span>
- <span>{{ orderInfo.pay_time }}</span>
- </div>
- <div class="broadcast-details_box">
- <div class="broadcast_details_img">
- <img :src="cartInfo.cart_info.product.image" />
- <div class="broadcast_details_model">
- {{ orderInfo.total_num }}件商品
- </div>
- </div>
- <div class="broadcast_details_picBox">
- <div class="broadcast_details_tit">
- {{ cartInfo.cart_info.product.store_name }}
- </div>
- <div class="acea-row row-between">
- <div class="broadcast_details_pic">
- ¥{{ cartInfo.cart_info.productAttr.price
- }}<span class="broadcast_details_pic_num">¥{{ cartInfo.cart_info.productAttr.cost }}</span>
- </div>
- <div class="broadcast_details_btn" @click="sendOrder">
- 发送客服
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- 退款订单 -->
- <div class="broadcast_box" v-if="refund_order_id && refundDetail.refund_order_id">
- <div class="broadcast-details_num broadcast_num">
- <span>订单号:{{ refundDetail.refund_order_sn }}</span>
- <span>{{ refundDetail.status_time }}</span>
- </div>
- <div class="broadcast-details_box">
- <div class="broadcast_details_img">
- <img :src="refundDetail.refundProduct[0].product.cart_info.product.image" />
- <div class="broadcast_details_model">
- {{ refundDetail.refund_num }}件商品
- </div>
- </div>
- <div class="broadcast_details_picBox">
- <div class="broadcast_details_tit">
- {{ refundDetail.refundProduct[0].product.cart_info.product.store_name }}
- </div>
- <div class="acea-row row-between">
- <div class="broadcast_details_pic">
- ¥{{ refundDetail.refundProduct[0].product.cart_info.productAttr.price
- }}<span class="broadcast_details_pic_num">¥{{ refundDetail.refundProduct[0].product.cart_info.productAttr.ot_price}}</span>
- </div>
- <div class="broadcast_details_btn" @click="sendRefundOrder">
- 发送客服
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <scroll-view scroll-y="true" style="height: 100%; overflow: hidden;" :scroll-top="scrollTop" scroll-with-animation="true"
- @scrolltoupper="bindScroll">
- <div class="chat" ref="chat">
- <Loading :loaded="status" :loading="loading"></Loading>
- <!-- 客服聊天列表 -->
- <block v-for="(item,index) in history" v-if="userId != 0" :key="index">
- <!-- 左边 -->
- <div class="item acea-row row-top" v-if="item.send_type == 0">
- <div class="pictrue">
- <image :src="item.user.avatar" v-if="item.user.avatar"/>
- <image src="/static/images/f.png" mode="" v-else></image>
- </div>
- <div class="text">
- <div class="name">{{ item.user.nickname }}</div>
- <div class="acea-row">
- <!--退款订单链接-->
- <navigator v-if="item.msn_type === 6 && item.refundOrder && item.refundOrder.refund_order_id" open-type="redirect">
- <div class="broadcast-details_num">
- <span>退款单号:{{ item.refundOrder.refund_order_sn }}</span>
- </div>
- <div class="conter acea-row row-middle">
- <div class="broadcast-details_order noPad" v-for="(val, inx) in item.refundOrder.refundProduct" :key="item.service_log_id">
- <div class="broadcast-details_box noPad" v-if="inx == 0">
- <div class="broadcast_details_img">
- <img :src="val.product.cart_info.product.image" />
- <div class="broadcast_details_model">
- {{item.refundOrder.refund_num}}件商品
- </div>
- </div>
- <div class="broadcast_details_picBox noPad">
- <div class="broadcast_details_tit" v-text="val.product.cart_info.product.store_name"></div>
- <div class="broadcast_details_pic">
- ¥{{ val.product.cart_info.productAttr.price }}
- </div>
- </div>
- </div>
- </div>
- </div>
- </navigator>
- <!--订单链接-->
- <navigator v-if="item.msn_type === 5 && item.orderInfo && item.orderInfo.order_id" :url="'/pages/admin/orderDetail/index?id='+item.orderInfo.order_id" open-type="redirect">
- <div class="broadcast-details_num">
- <span>订单号:{{ item.orderInfo.order_sn }}</span>
- </div>
- <div class="conter acea-row row-middle">
- <div class="broadcast-details_order noPad" v-for="(val, inx) in item.orderInfo.orderProduct" :key="val.id">
- <div class="broadcast-details_box noPad" v-if="inx == 0">
- <div class="broadcast_details_img">
- <img :src="val.cart_info.product.image" />
- <div class="broadcast_details_model">
- {{item.orderInfo.total_num}}件商品
- </div>
- </div>
- <div class="broadcast_details_picBox noPad">
- <div class="broadcast_details_tit" v-text="val.cart_info.product.store_name"></div>
- <div class="broadcast_details_pic">
- ¥{{ val.cart_info.productAttr.price }}
- </div>
- </div>
- </div>
- </div>
- </div>
- </navigator>
- <!--商品链接-->
- <div class="conter acea-row row-middle" v-if="item.msn_type === 4 && item.product">
- <div class=" noPad">
- <navigator class="acea-row row-column-around noPad" v-if="item.product.product_id" :url="`/pages/goods_details/index?id=${item.product.product_id}`" open-type="redirect">
- <div class="broadcast_details_img_no">
- <img :src="item.product.image" />
- </div>
- <div class="broadcast_details_picBox_no noPad">
- <div class="broadcast_details_pic">
- ¥{{ item.product.price }}
- </div>
- <div class="broadcast_details_tit_no" v-text="item.product.store_name"></div>
- </div>
- </navigator>
- </div>
- </div>
- <!--预售商品链接-->
- <div class="conter acea-row row-middle" v-if="item.msn_type === 7 && item.presell && item.presell.product">
- <div class=" noPad">
- <navigator class="acea-row row-column-around noPad" v-if="item.presell.product_presell_id" :url="`/pages/activity/presell_details/index?id=${item.presell.product_presell_id}`" open-type="redirect">
- <div class="broadcast_details_img_no">
- <img :src="item.presell.product.image" />
- </div>
- <div class="broadcast_details_picBox_no noPad">
- <div class="broadcast_details_pic">
- ¥{{ item.presell.price }}
- </div>
- <div class="broadcast_details_tit_no" v-text="item.presell.store_name"></div>
- </div>
- </navigator>
- </div>
- </div>
- <!--拼团商品链接-->
- <div class="conter acea-row row-middle" v-if="item.msn_type === 8 && item.productGroup && item.productGroup.product">
- <div class=" noPad">
- <navigator class="acea-row row-column-around noPad" v-if="item.productGroup.product_group_id" :url="`/pages/activity/combination_details/index?id=${item.productGroup.product_group_id}`" open-type="redirect">
- <div class="broadcast_details_img_no">
- <img :src="item.productGroup.product.image" />
- </div>
- <div class="broadcast_details_picBox_no noPad">
- <div class="broadcast_details_pic">
- ¥{{ item.productGroup.product.price }}
- </div>
- <div class="broadcast_details_tit_no" v-text="item.productGroup.product.store_name"></div>
- </div>
- </navigator>
- </div>
- </div>
- <!-- <div class="conter acea-row row-middle" v-if="item.msn_type === 3">
- <img src="/static/images/signal2.gif" class="signal" style="margin-right: 0.27rem;" />
- </div> -->
- <div class="conter acea-row row-middle" v-if="item.msn_type === 3">
- <image :src="item.msn" mode="heightFix" />
- </div>
- <div class="conter acea-row row-middle" v-if="item.msn_type === 2">
- <i class="em" :class="item.msn"></i>
- </div>
- <div class="conter acea-row row-middle" v-if="item.msn_type === 1">
- {{ item.msn }}
- </div>
- </div>
- </div>
- </div>
- <!-- 右边 -->
- <div class="item acea-row row-top row-right" v-else>
- <div class="text textR">
- <div class="name">{{ item.service.nickname }}</div>
- <div class="acea-row ">
- <!--退款订单链接-->
- <navigator v-if="item.msn_type === 6 && item.refundOrder.refund_order_id" open-type="redirect">
- <div class="broadcast-details_num">
- <span>订单号:{{ item.refundOrder.refund_order_sn }}</span>
- </div>
- <div class="conter acea-row row-middle">
- <div class="broadcast-details_order noPad" v-for="(val, inx) in item.refundOrder.refundProduct" :key="val.id">
- <div class="broadcast-details_box noPad" v-if="inx == 0">
- <div class="broadcast_details_img">
- <img :src="val.product.cart_info.product.image" />
- <div class="broadcast_details_model">
- {{item.refundOrder.refund_num}}件商品
- </div>
- </div>
- <div class="broadcast_details_picBox noPad">
- <div class="broadcast_details_tit" v-text="val.product.cart_info.product.store_name"></div>
- <div class="broadcast_details_pic">
- ¥{{ val.product.cart_info.productAttr.price }}
- </div>
- </div>
- </div>
- </div>
- </div>
- </navigator>
- <!--订单链接-->
- <navigator v-if="item.msn_type === 5 && item.orderInfo.order_id" :url="'/pages/admin/orderDetail/index?id='+item.orderInfo.order_id" open-type="redirect">
- <div class="broadcast-details_num">
- <span>订单号:{{ item.orderInfo.order_sn }}</span>
- </div>
- <div class="conter acea-row row-middle">
- <div class="broadcast-details_order noPad" v-for="(val, inx) in item.orderInfo.orderProduct" :key="val.id">
- <div class="broadcast-details_box noPad" v-if="inx == 0">
- <div class="broadcast_details_img">
- <img :src="val.cart_info.product.image" />
- <div class="broadcast_details_model">
- {{item.orderInfo.total_num}}件商品
- </div>
- </div>
- <div class="broadcast_details_picBox noPad">
- <div class="broadcast_details_tit" v-text="val.cart_info.product.store_name"></div>
- <div class="broadcast_details_pic">
- ¥{{ val.cart_info.productAttr.price }}
- </div>
- </div>
- </div>
- </div>
- </div>
- </navigator>
- <!--商品链接-->
- <div class="conter acea-row row-middle" v-if="item.msn_type === 4 && item.product">
- <div class=" acea-row row-column-around noPad">
- <navigator class="" v-if="item.product.product_id" :url="`/pages/goods_details/index?id=${item.product.product_id}`" open-type="redirect">
- <div class="broadcast_details_img_no">
- <img :src="item.product.image" />
- </div>
- <div class="broadcast_details_picBox_no noPad">
- <div class="broadcast_details_pic">
- ¥{{ item.product.price }}
- </div>
- <div class="broadcast_details_tit_no" v-text="item.product.store_name"></div>
- </div>
- </navigator>
- </div>
- </div>
- <!--预售商品链接-->
- <div class="conter acea-row row-middle" v-if="item.msn_type === 7 && item.presell && item.presell.product">
- <div class=" acea-row row-column-around noPad">
- <navigator class="" v-if="item.presell.product_presell_id" :url="`/pages/activity/presell_details/index?id=${item.presell.product_presell_id}`" open-type="redirect">
- <div class="broadcast_details_img_no">
- <img :src="item.presell.product.image" />
- </div>
- <div class="broadcast_details_picBox_no noPad">
- <div class="broadcast_details_pic">
- ¥{{ item.presell.price }}
- </div>
- <div class="broadcast_details_tit_no" v-text="item.presell.store_name"></div>
- </div>
- </navigator>
- </div>
- </div>
- <!--拼团商品链接-->
- <div class="conter acea-row row-middle" v-if="item.msn_type === 8 && item.productGroup && item.productGroup.product">
- <div class=" acea-row row-column-around noPad">
- <navigator class="" v-if="item.productGroup.product_group_id" :url="`/pages/activity/combination_details/index?id=${item.productGroup.product_group_id}`" open-type="redirect">
- <div class="broadcast_details_img_no">
- <img :src="item.productGroup.product.image" />
- </div>
- <div class="broadcast_details_picBox_no noPad">
- <div class="broadcast_details_pic">
- ¥{{ item.productGroup.product.price }}
- </div>
- <div class="broadcast_details_tit_no" v-text="item.productGroup.product.store_name"></div>
- </div>
- </navigator>
- </div>
- </div>
- <div class="conter acea-row row-middle" v-if="item.msn_type === 3">
- <image :src="item.msn" mode="heightFix" />
- </div>
- <div class="conter acea-row row-middle" v-if="item.msn_type === 2">
- <i class="em" :class="item.msn"></i>
- </div>
- <div class="conter acea-row row-middle" v-if="item.msn_type === 1">
- {{ item.msn }}
- </div>
- </div>
- </div>
- <div class="pictrue">
- <image :src="item.service.avatar" v-if="item.service.avatar" />
- <image src="/static/images/f.png" mode="" v-else></image>
- </div>
- </div>
- </block>
- <!-- 客户聊天列表 -->
- <block v-for="(item,j) in history" v-if="userId == 0" :key="j">
- <!-- 左边 -->
- <div class="item acea-row row-top" v-if="item.send_type == 1">
- <div class="pictrue">
- <image :src="item.service.avatar" v-if="item.service.avatar" />
- <image src="/static/images/f.png" mode="" v-else></image>
- </div>
- <div class="text">
- <div class="name">{{ item.service.nickname }}</div>
- <div class="acea-row">
- <!--退款订单链接-->
- <navigator v-if="item.msn_type === 6 && item.refundOrder.refund_order_id" open-type="redirect">
- <div class="broadcast-details_num">
- <span>退款单号:{{ item.refundOrder.refund_order_sn }}</span>
- </div>
- <div class="conter acea-row row-middle">
- <!-- :key="item.service_log_id" -->
- <div class="broadcast-details_order noPad" v-for="(val, inx) in item.refundOrder.refundProduct">
- <div class="broadcast-details_box noPad" v-if="inx == 0">
- <div class="broadcast_details_img">
- <img :src="val.product.cart_info.product.image" />
- <div class="broadcast_details_model">
- {{item.refundOrder.refund_num}}件商品
- </div>
- </div>
- <div class="broadcast_details_picBox noPad">
- <div class="broadcast_details_tit" v-text="val.product.cart_info.product.store_name"></div>
- <div class="broadcast_details_pic">
- ¥{{ val.product.cart_info.productAttr.price }}
- </div>
- </div>
- </div>
- </div>
- </div>
- </navigator>
- <!--订单链接-->
- <navigator v-if="item.msn_type === 5 && item.orderInfo.order_id" :url="'/pages/order_details/index?order_id='+item.orderInfo.order_id" open-type="redirect">
- <div class="broadcast-details_num">
- <span>订单号:{{ item.orderInfo.order_sn }}</span>
- </div>
- <div class="conter acea-row row-middle">
- <!-- :key="item.service_log_id" -->
- <div class="broadcast-details_order noPad" v-for="(val, inx) in item.orderInfo.orderProduct">
- <div class="broadcast-details_box noPad" v-if="inx == 0">
- <div class="broadcast_details_img">
- <img :src="val.cart_info.product.image" />
- <div class="broadcast_details_model">
- {{item.orderInfo.total_num}}件商品
- </div>
- </div>
- <div class="broadcast_details_picBox noPad">
- <div class="broadcast_details_tit" v-text="val.cart_info.product.store_name"></div>
- <div class="broadcast_details_pic">
- ¥{{ val.cart_info.productAttr.price }}
- </div>
- </div>
- </div>
- </div>
- </div>
- </navigator>
- <!--商品链接-->
- <div class="conter acea-row row-middle" v-if="item.msn_type === 4 && item.product">
- <div class=" noPad">
- <navigator class="acea-row row-column-around noPad" v-if="item.product.product_id" :url="`/pages/goods_details/index?id=${item.product.product_id}`" open-type="redirect">
- <div class="broadcast_details_img_no">
- <img :src="item.product.image" />
- </div>
- <div class="broadcast_details_picBox_no noPad">
- <div class="broadcast_details_pic">
- ¥{{ item.product.price }}
- </div>
- <div class="broadcast_details_tit_no" v-text="item.product.store_name"></div>
- </div>
- </navigator>
- </div>
- </div>
- <!--预售商品链接-->
- <div class="conter acea-row row-middle" v-if="item.msn_type === 7 && item.presell && item.presell.product">
- <div class=" noPad">
- <navigator class="acea-row row-column-around noPad" v-if="item.presell.product_presell_id" :url="`/pages/activity/presell_details/index?id=${item.presell.product_presell_id}`" open-type="redirect">
- <div class="broadcast_details_img_no">
- <img :src="item.presell.product.image" />
- </div>
- <div class="broadcast_details_picBox_no noPad">
- <div class="broadcast_details_pic">
- ¥{{ item.presell.price }}
- </div>
- <div class="broadcast_details_tit_no" v-text="item.presell.store_name"></div>
- </div>
- </navigator>
- </div>
- </div>
- <!--拼团商品链接-->
- <div class="conter acea-row row-middle" v-if="item.msn_type === 8 && item.productGroup && item.productGroup.product">
- <div class="noPad">
- <navigator class="acea-row row-column-around noPad" v-if="item.productGroup.product_group_id" :url="`/pages/activity/combination_details/index?id=${item.productGroup.product_group_id}`" open-type="redirect">
- <div class="broadcast_details_img_no">
- <img :src="item.productGroup.product.image" />
- </div>
- <div class="broadcast_details_picBox_no noPad">
- <div class="broadcast_details_pic">
- ¥{{ item.productGroup.product.price }}
- </div>
- <div class="broadcast_details_tit_no" v-text="item.productGroup.product.store_name"></div>
- </div>
- </navigator>
- </div>
- </div>
- <div class="conter acea-row row-middle" v-if="item.msn_type === 3">
- <image :src="item.msn" mode="heightFix" />
- </div>
- <div class="conter acea-row row-middle" v-if="item.msn_type === 2">
- <i class="em" :class="item.msn"></i>
- </div>
- <div class="conter acea-row row-middle" v-if="item.msn_type === 1">
- {{ item.msn }}
- </div>
- </div>
- </div>
- </div>
- <!-- 右边 -->
- <div class="item acea-row row-top row-right" v-else>
- <div class="text textR">
- <div class="name">{{ item.user.nickname }}</div>
- <div class="acea-row ">
- <!--退款订单链接-->
- <navigator v-if="item.msn_type === 6 && item.refundOrder.refund_order_id" open-type="redirect">
- <div class="broadcast-details_num">
- <span>退款单号:{{ item.refundOrder.refund_order_sn }}</span>
- </div>
- <div class="conter acea-row row-middle">
- <!-- :key="item.service_log_id" -->
- <div class="broadcast-details_order noPad" v-for="(val, inx) in item.refundOrder.refundProduct">
- <div class="broadcast-details_box noPad" v-if="inx == 0">
- <div class="broadcast_details_img">
- <img :src="val.product.cart_info.product.image" />
- <div class="broadcast_details_model">
- {{item.refundOrder.refund_num}}件商品
- </div>
- </div>
- <div class="broadcast_details_picBox noPad">
- <div class="broadcast_details_tit" v-text="val.product.cart_info.product.store_name"></div>
- <div class="broadcast_details_pic">
- ¥{{ val.product.cart_info.productAttr.price }}
- </div>
- </div>
- </div>
- </div>
- </div>
- </navigator>
- <!--订单链接-->
- <navigator v-if="item.msn_type === 5 && item.orderInfo.order_id" :url="'/pages/order_details/index?order_id='+item.orderInfo.order_id" open-type="redirect">
- <div class="broadcast-details_num">
- <span>订单号:{{ item.orderInfo.order_sn }}</span>
- </div>
- <div class="conter acea-row row-middle">
- <!-- :key="item.service_log_id" -->
- <div class="broadcast-details_order noPad" v-for="(val, inx) in item.orderInfo.orderProduct">
- <div class="broadcast-details_box noPad" v-if="inx == 0">
- <div class="broadcast_details_img">
- <img :src="val.cart_info.product.image" />
- <div class="broadcast_details_model">
- {{item.orderInfo.total_num}}件商品
- </div>
- </div>
- <div class="broadcast_details_picBox noPad">
- <div class="broadcast_details_tit" v-text="val.cart_info.product.store_name"></div>
- <div class="broadcast_details_pic">
- ¥{{ val.cart_info.productAttr.price }}
- </div>
- </div>
- </div>
- </div>
- </div>
- </navigator>
- <!--商品链接-->
- <div class="conter acea-row row-middle" v-if="item.msn_type === 4 && item.product">
- <div class=" acea-row row-column-around noPad">
- <navigator class="" v-if="item.product.product_id" :url="`/pages/goods_details/index?id=${item.product.product_id}`" open-type="redirect">
- <div class="broadcast_details_img_no">
- <img :src="item.product.image" />
- </div>
- <div class="broadcast_details_picBox_no noPad">
- <div class="broadcast_details_pic">
- ¥{{ item.product.price }}
- </div>
- <div class="broadcast_details_tit_no" v-text="item.product.store_name"></div>
- </div>
- </navigator>
- </div>
- </div>
- <!--预售商品链接-->
- <div class="conter acea-row row-middle" v-if="item.msn_type === 7 && item.presell && item.presell.product">
- <div class=" acea-row row-column-around noPad">
- <navigator class="" v-if="item.presell.product_presell_id" :url="`/pages/activity/presell_details/index?id=${item.presell.product_presell_id}`" open-type="redirect">
- <div class="broadcast_details_img_no">
- <img :src="item.presell.product.image" />
- </div>
- <div class="broadcast_details_picBox_no noPad">
- <div class="broadcast_details_pic">
- ¥{{ item.presell.price }}
- </div>
- <div class="broadcast_details_tit_no" v-text="item.presell.store_name"></div>
- </div>
- </navigator>
- </div>
- </div>
- <!--拼团商品链接-->
- <div class="conter acea-row row-middle" v-if="item.msn_type === 8 && item.productGroup && item.productGroup.product">
- <div class=" acea-row row-column-around noPad">
- <navigator class="" v-if="item.productGroup.product_group_id" :url="`/pages/activity/combination_details/index?id=${item.productGroup.product_group_id}`" open-type="redirect">
- <div class="broadcast_details_img_no">
- <img :src="item.productGroup.product.image" />
- </div>
- <div class="broadcast_details_picBox_no noPad">
- <div class="broadcast_details_pic">
- ¥{{ item.productGroup.product.price }}
- </div>
- <div class="broadcast_details_tit_no" v-text="item.productGroup.product.store_name"></div>
- </div>
- </navigator>
- </div>
- </div>
- <div class="conter acea-row row-middle" v-if="item.msn_type === 3">
- <image :src="item.msn" mode="heightFix" />
- </div>
- <div class="conter acea-row row-middle" v-if="item.msn_type === 2">
- <i class="em" :class="item.msn"></i>
- </div>
- <div class="conter acea-row row-middle" v-if="item.msn_type === 1">
- {{ item.msn }}
- </div>
- </div>
- </div>
- <div class="pictrue">
- <image :src="item.user.avatar" v-if="item.user.avatar"/>
- <image src="/static/images/f.png" mode="" v-else></image>
- </div>
- </div>
- </block>
- </div>
- <div :style=" active === true
- ? 'height:' + footerConH + 'rem;'
- : 'height:' + footerH + 'rem;'
- "></div>
- </scroll-view>
- </view>
- <div class="footerCon" :class="active === true ? 'on' : ''" :style="'transform: translate3d(0,' + percent + '%,0);'"
- ref="footerCon">
- <form>
- <div class="footer acea-row row-between row-bottom" ref="footer">
- <!--<img-->
- <!--:src="-->
- <!--voice === true-->
- <!--? require('@assets/images/keyboard.png')-->
- <!--: require('@assets/images/voice.png')-->
- <!--"-->
- <!--@click="voiceBnt"-->
- <!--/>-->
- <img @click="uploadImg" src="/static/images/plus.png" />
- <img :src="
- active === true
- ? '/static/images/keyboard.png'
- : '/static/images/face.png'
- "
- @click="emoticon" />
- <div class="voice acea-row row-center-wrapper" v-if="voice" @touchstart.prevent="start" @touchmove.prevent="move"
- @touchend.prevent="end">
- {{ speak }}
- </div>
- <!-- <p contenteditable="true" class="input" ref="input" v-show="!voice" @keydown="keydown($event)" @keyup="keyup" @focus="focus"></p> -->
- <input type="text" placeholder="请输入内容" class="input" ref="input" v-show="!voice" @input="bindInput" @keyup="keyup"
- @focus="focus" cursor-spacing="20" v-model="textCon">
- <div class="send" :class="sendColor === true ? 'font-color-red' : ''" @click="sendTest">
- 发送
- </div>
- </div>
- </form>
- <div class="banner slider-banner">
- <swiper class="swiper-wrapper" :autoplay="autoplay" :circular="circular" :interval="interval" :duration="duration"
- v-if="emojiGroup.length > 0">
- <block v-for="(emojiList, index) in emojiGroup" :key="index">
- <swiper-item>
- <i class="em" :class="emoji" v-for="emoji in emojiList" :key="emoji" @click="addEmoji(emoji)"></i>
- <img src="/static/images/del.png" class="emoji-outer" />
- </swiper-item>
- </block>
- </swiper>
- </div>
- </div>
- <div class="recording" v-if="recording">
- <img src="/static/images/recording.png" />
- </div>
- </div>
- </template>
- <script>
- import emojiList from "@/utils/emoji";
- import Socket from "@/libs/chat";
- import {
- getChatRecord,
- getMerHistory
- } from "@/api/user";
- import {
- getProductDetail,
- getPresellProductDetail,
- getStoreDetail
- } from "@/api/store";
-
- import {
- getCombinationDetail
- } from "@/api/activity";
- import {
- getOrderDetail,
- refundDetail
- } from "@/api/order";
- // import VueCoreImageUpload from "vue-core-image-upload";
- import easyUpload from '@/components/easy-upload/easy-upload.vue'
- import Loading from "@/components/Loading";
- import {
- TOKENNAME,
- HTTP_REQUEST_URL
- } from '@/config/app.js';
- const chunk = function(arr, num) {
- num = num * 1 || 1;
- var ret = [];
- arr.forEach(function(item, i) {
- if (i % num === 0) {
- ret.push([]);
- }
- ret[ret.length - 1].push(item);
- });
- return ret;
- };
- const NAME = "CustomerService";
- const PATH = 'pages/chat/customer_list/chat'
- const app = getApp();
- export default {
- name: NAME,
- components: {
- // swiper,
- // swiperSlide,
- Loading,
- easyUpload
- },
- props: {
- couponList: {
- type: Array,
- default: () => []
- }
- },
- data: function() {
- return {
- url: `${HTTP_REQUEST_URL}/api/upload/image`,
- headers: {
- "Authori-zation": "Bearer " + this.$store.state.app.token
- },
- emojiGroup: chunk(emojiList, 20),
- active: false,
- voice: false,
- speak: "按住 说话",
- recording: false,
- swiperOption: {
- pagination: {
- el: ".swiper-pagination",
- clickable: true
- },
- speed: 1000,
- observer: true,
- observeParents: true
- },
- percent: 0,
- footerConH: 0,
- footerH: 1.08,
- socket: null,
- toUid: 0,
- page: 1,
- limit: 30,
- loading: false,
- loaded: false,
- history: [],
- sendColor: false,
- sendtxt: "",
- productId: 0,
- presellId: 0,
- combinationId: 0,
- productInfo: {},
- orderId: "",
- orderInfo: {},
- cartInfo: {},
- autoplay: false,
- circular: true,
- interval: 3000,
- duration: 500,
- upload_max: 2, //图片大小
- //上传的图片地址
- uploadImages: [],
- //展示的图片地址
- uploads: [],
- // 超出限制数组
- exceeded_list: [],
- windowH: 0,
- isBQ: false,
- scrollTop: 0, //滚动距离
- textCon: '', //文字
- mer_id: 0, //商铺id
- refund_order_id: 0, //退款订单id
- refundDetail: '', //退款订单详情
- userId: 0, //客服----用户id
- pageType: 0, //页面区分
- status: false, //砍价列表是否获取完成 false 未完成 true 完成
- storeInfo: '',
- isBack: false,
- hide_mer_status: app.globalData.hide_mer_status
- };
- },
- watch: {
- // // #ifdef H5
- // $route(n) {
- // console.log(n)
- // if (n.path == PATH) {
- // if (n.query) {
- // this.orderId = n.query.order_id;
- // this.toUid = n.query.uid || 0;
- // this.productId = parseInt(n.query.productId) || 0;
- // this.orderId = n.query.order_id || ""
- // this.mer_id = n.query.mer_id || 0
- // this.refund_order_id = n.query.refund_order_id || 0
- // this.userId = n.query.userId || 0
- // }
- // this.wsStart();
- // } else {
- // if (this.userId == 0) {
- // this.socket.send({
- // data: {
- // mer_id: this.mer_id
- // },
- // type: "chat_end"
- // });
- // } else {
- // this.socket.send({
- // data: {
- // uid: this.userId
- // },
- // type: "service_chat_end"
- // });
- // }
- // this.socket && this.socket.onClose();
- // }
- // }
- // // #endif
- },
- beforeDestroy() {
- console.log('beforeDestroy')
- this.wsEnd();
- },
- onUnload() {
- console.log('onUnload')
- this.wsEnd();
- },
- // onHide() {
- // console.log('onHide')
- // this.wsEnd();
- // },
- onLoad(option) {
- let self = this
- this.toUid = option.uid || 0;
- this.productId = parseInt(option.productId) || 0;
- this.presellId = parseInt(option.presellId) || 0;
- this.combinationId = parseInt(option.combinationId) || 0;
- this.orderId = option.order_id || ""
- this.mer_id = option.mer_id || 0
- this.refund_order_id = option.refund_order_id || 0
- this.userId = option.userId || 0
- uni.getSystemInfo({
- success: function(res) {
- self.windowH = res.windowHeight
- }
- })
- },
- onReady() {
- uni.$on('update',(data)=>{
- this.hide_mer_status = data.hide_mer_status
- })
- },
- mounted: function() {
- this.height();
- if (this.userId == 0) {
- // 用户
- this.getHistory();
- this.getproductInfo();
- this.getOrderInfo();
- this.getRefundDetail();
- this.getStoreDetail();
- } else {
- // 客服
- this.getMerHistory();
- }
- uni.$on("socket_open", () => {
- if (this.userId == 0) {
- this.socket.send({
- data: {
- mer_id: this.mer_id
- },
- type: "chat_start"
- });
- } else {
- this.socket.send({
- data: {
- uid: this.userId
- },
- type: "service_chat_start"
- });
- }
- });
- uni.$on(["reply", "chat", "send_chat"], data => {
- this.history.push(data);
- this.height();
- });
- uni.$on("socket_error", () => {
- if (!this.isBack) {
- let self = this
- uni.showModal({
- title: '提示',
- content: '连接失败,是否重新连接',
- success: function(res) {
- if (res.confirm) {
- self.wsStart()
- } else if (res.cancel) {
- uni.navigateBack();
- }
- }
- });
- }
- });
- uni.$on("err_tip", data => {
- let pages = getCurrentPages();
- let curPage = pages[pages.length - 1]; // 当前页面路径
- let beforePage = pages[pages.length - 2]; // 前一个页面路径
- console.log(pages,'pages')
- console.log(curPage.route,'curPage')
- if (!this.isBack) {
- uni.showModal({
- title: '提示',
- content: data,
- success: function(res) {
- if (res.confirm) {
- console.log('用户点击确定');
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- }
- });
- uni.$on("socket_close", () => {
- let pages = getCurrentPages();
- let curPage = pages[pages.length - 1]; // 当前页面路径
- let beforePage = pages[pages.length - 2]; // 前一个页面路径
- console.log(pages,'pages')
- console.log(curPage,'curPage')
- if (!this.isBack) {
- let curRoute = this.$mp.page.route;
- console.log(this.$mp.page, 'curRoute')
- let self = this
- uni.showModal({
- title: '提示',
- content: '连接断开,是否重新连接',
- success: function(res) {
- if (res.confirm) {
- self.wsStart()
- } else if (res.cancel) {
- uni.navigateBack();
- }
- }
- });
- }
- })
- this.$nextTick(() => {
- this.hide_mer_status = app.globalData.hide_mer_status
- });
- this.wsStart();
- },
- methods: {
- // 获取店铺详情
- getStoreDetail() {
- getStoreDetail(this.mer_id).then(res => {
- this.storeInfo = res.data
- })
- },
- // ws连接
- wsStart() {
- this.socket = new Socket();
- this.height();
- },
- // ws关闭
- wsEnd() {
- if (this.userId == 0) {
- this.socket.send({
- data: {
- mer_id: this.mer_id
- },
- type: "chat_end"
- });
- } else {
- this.socket.send({
- data: {
- uid: this.userId
- },
- type: "service_chat_end"
- });
- }
- this.isBack = true
- this.socket && this.socket.onClose();
- },
- // 退款订单
- getRefundDetail() {
- if (this.refund_order_id) {
- refundDetail(this.refund_order_id).then(res => {
- this.refundDetail = res.data
- })
- }
- },
- uploadImg() {
- let self = this
- self.$util.uploadImageOne('upload/image', function(res) {
- if(res.status == 200){
- self.sendMsg(res.data.path, 3)
- }
- });
- },
- getOrderInfo() {
- if (!this.orderId) return;
- getOrderDetail(this.orderId).then(res => {
- this.orderInfo = res.data;
- // if (this.orderInfo.add_time_h) {
- // this.orderInfo.add_time_h = this.orderInfo.add_time_h.substring(
- // 0,
- // this.orderInfo.add_time_h.lastIndexOf(":")
- // );
- // }
- if (this.orderInfo.orderProduct.length) {
- this.cartInfo = this.orderInfo.orderProduct[0];
- }
- });
- },
- getproductInfo() {
- let that = this;
- if (!that.productId && !that.presellId && !that.combinationId) return;
- if(that.presellId || that.combinationId){
- if(that.presellId){
- getPresellProductDetail(that.presellId).then(res => {
- that.productInfo = res.data;
- });
-
- }else if(that.combinationId){
- getCombinationDetail(that.combinationId).then(res => {
- that.productInfo = res.data.product;
- });
- }
- }else{
- getProductDetail(that.productId).then(res => {
- that.productInfo = res.data;
- });
- }
-
-
- },
- scroll() {
- if (window.scrollY < 300 && !this.loaded && !this.loading)
- this.getHistory();
- },
- imageuploaded(res) {
- console.log(res)
- if (res.status !== 200)
- return this.$util.Tips({
- title: res.msg || "上传图片失败"
- });
- this.sendMsg(res.data.url, 3);
- },
- // 用户聊天记录
- getHistory() {
- if (this.loading || this.loaded) return;
- this.loading = true;
- getChatRecord(this.mer_id, {
- page: this.page,
- limit: this.limit
- })
- .then(({
- data
- }) => {
-
- this.history = data.list.concat(this.history);
- if (this.page === 1) {
- this.$nextTick(function() {
- // window.scrollTo(0, document.documentElement.scrollHeight + 999);
- this.height();
- });
- }
- this.page++;
- this.loading = false;
- this.loaded = data.length < this.limit;
- })
- .catch(err => {
- this.$util.Tips({
- title: err.msg || "加载失败"
- });
- });
- },
- // 客服聊天记录
- getMerHistory() {
- if (this.loading || this.loaded) return;
- this.loading = true;
- getMerHistory(this.userId, this.mer_id, {
- page: this.page,
- limit: this.limit
- })
- .then(({
- data
- }) => {
- this.history = data.list.concat(this.history);
- if (this.page === 1) {
- this.$nextTick(function() {
- this.height();
- });
- }
- this.page++;
- this.loading = false;
- this.loaded = data.length < this.limit;
- })
- .catch(err => {
- this.$util.Tips({
- title: err.msg || "加载失败"
- });
- });
- },
- focus: function() {
- this.active = false;
- },
- keyup: function() {
- // console.log(this.$refs.input.innerHTML.length);
- if (this.$refs.input.innerHTML.length > 0) {
- this.sendColor = true;
- } else {
- this.sendColor = false;
- }
- },
- addEmoji(name) {
- this.sendMsg(name, 2);
- },
- sendMsg(msn, type) {
- let self = this
- if (this.userId == 0) {
- this.height();
- this.socket.send({
- data: {
- msn,
- msn_type: type,
- // to_uid: this.toUid,
- mer_id: self.mer_id
- },
- type: "send_chat",
- })
- } else {
- this.height();
- this.socket.send({
- data: {
- msn,
- msn_type: type,
- // to_uid: this.toUid,
- uid: self.userId
- },
- type: "service_chat",
- })
- }
- },
- sendTest() {
- this.sendMsg(this.textCon, 1);
- this.textCon = ''
- this.height();
- },
- sendProduct() {
- if(this.presellId || this.combinationId){
- if(this.presellId){
- this.sendMsg(this.presellId, 7);
- this.presellId = 0;
- }else if(this.combinationId){
- this.sendMsg(this.combinationId, 8);
- this.combinationId = 0;
- }
- }else{
- this.sendMsg(this.productId, 4);
- this.productId = 0;
- }
-
- this.productInfo = {};
- },
- sendOrder() {
- this.sendMsg(this.orderId, 5);
- this.orderId = 0;
- this.orderInfo = {};
- },
- sendRefundOrder() {
- this.sendMsg(this.refund_order_id, 6);
- this.refund_order_id = 0;
- this.refundDetail = {};
- },
- bindInput: function(e) {
- if (e.detail.value) {
- this.sendColor = true
- } else {
- this.sendColor = false
- }
- // if ($event.keyCode === 13) {
- // $event.preventDefault();
- // if (this.$refs.input.innerHTML) {
- // this.sendMsg(this.$refs.input.innerHTML, 1);
- // this.$refs.input.innerHTML = "";
- // }
- // }
- this.height();
- },
- start() {
- var that = this;
- this.longClick = 0;
- this.timeOutEvent = setTimeout(function() {
- that.longClick = 1;
- }, 500);
- that.speak = "松开 结束";
- that.recording = true;
- },
- move() {
- clearTimeout(this.timeOutEvent);
- this.timeOutEvent = 0;
- },
- end() {
- clearTimeout(this.timeOutEvent);
- if (this.timeOutEvent !== 0 && this.longClick === 0) {
- //点击
- //此处为点击事件----在此处添加跳转详情页
- }
- this.speak = "按住 说话";
- this.recording = false;
- return false;
- },
- voiceBnt: function() {
- this.active = false;
- if (this.voice === true) {
- this.voice = false;
- this.$nextTick(function() {
- this.$refs.input.focus();
- });
- } else {
- this.voice = true;
- }
- // window.scrollTo(0, document.documentElement.scrollHeight);
- this.percent = 0;
- this.footerConH = 0;
- this.footerH = 0;
- this.$nextTick(function() {
- this.height();
- });
- },
- emoticon: function() {
- this.voice = false;
- if (this.active === true) {
- this.active = false;
- this.isBQ = false
- // this.$nextTick(function() {
- // this.$refs.input.focus();
- // });
- } else {
- this.active = true;
- this.isBQ = true
- // this.$nextTick(function() {
- // this.$refs.input.blur();
- // });
- }
- // this.$nextTick(function() {
- // window.scrollTo(0, document.documentElement.scrollHeight);
- // });
- this.height();
- },
- height() {
- let self = this
- var scrollTop = 0
- let info = uni.createSelectorQuery().select(".chat");
- // let footerConH = this.$refs.footerCon.offsetHeight;
- // let footerH = this.$refs.footer.offsetHeight;
- // let scale = 750 / window.screen.availWidth;
- // this.footerConH = (footerConH * scale) / 100;
- // this.footerH = (footerH * scale) / 100;
- // this.percent = ((this.footerConH - this.footerH) / this.footerConH) * 100;
- setTimeout(res => {
- info.boundingClientRect(function(data) { //data - 各种参数
- console.log(data.height, 'data.height') // 获取元素高度
- scrollTop = data.height
- if (self.active) {
- self.scrollTop = parseInt(scrollTop) + 500
- } else {
- self.scrollTop = parseInt(scrollTop) + 100
- }
- }).exec()
- }, 1000)
- },
- // 滚动到头部
- bindScroll() {
- console.log('滚动到头部')
- if (this.userId == 0) {
- // this.getHistory();
- this.getHistory();
- this.getproductInfo();
- this.getOrderInfo();
- this.getRefundDetail();
- this.getStoreDetail();
- } else {
- this.getMerHistory();
- }
- }
- }
- };
- </script>
- <style lang="scss">
- page {
- width: 100%;
- height: 100%;
- }
- @import url("@/plugin/emoji-awesome/css/google.min.css");
- .broadcast_num {
- padding: 0 10rpx !important;
- }
- .noPad {
- padding: 0 !important;
- margin-bottom: 0 !important;
- height: auto !important;
- }
- .broadcast-details_num {
- width: 100%;
- height: 80rpx;
- line-height: 80rpx;
- color: #000000;
- font-size: 26rpx;
- display: flex;
- justify-content: space-between;
- background: #fff;
- border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
- padding: 0 24rpx;
- }
- .broadcast-details_order {
- padding: 15rpx;
- }
- .broadcast-details_box {
- padding: 24rpx;
- display: flex;
- background: #fff;
- border-radius: 6px;
- margin-bottom: 24rpx;
- }
- .broadcast_details_model {
- width: 100%;
- height: 43rpx;
- background: rgba(0, 0, 0, 0.5);
- border-radius: 0px 0px 8px 8px;
- position: absolute;
- z-index: 2;
- bottom: 0;
- font-size: 22rpx;
- color: #fff;
- text-align: center;
- line-height: 43rpx;
- }
- .broadcast_details_img {
- width: 140rpx;
- height: 140rpx;
- border-radius: 8px;
- overflow: hidden;
- position: relative;
- }
- .broadcast_details_img img {
- width: 100%;
- height: 100%;
- }
- .broadcast_details_img_no {
- width: 456rpx;
- height: 456rpx;
- border-radius: 8px 8px 0px 0px;
- overflow: hidden;
- margin-bottom: 10rpx;
- }
- .broadcast_details_picBox_no {
- width: 100%;
- }
- .broadcast_details_img_no img {
- width: 100%;
- height: 100%;
- }
- .broadcast_details_tit {
- font-size: 28rpx;
- color: #333333;
- height: 85rpx;
- font-weight: 800;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- text-align: left !important;
- }
- .broadcast_details_tit_no {
- font-size: 28rpx;
- color: #333333;
- font-weight: 800;
- text-align: left;
- margin-top: 5rpx;
- }
- .broadcast_details_picBox {
- width: 75%;
- margin-left: 24rpx;
- }
- .broadcast_details_pic {
- font-size: 36rpx;
- color: #e93323;
- text-align: left;
- }
- .broadcast_details_pic_num {
- text-decoration: line-through;
- font-size: 28rpx;
- color: rgba(0, 0, 0, 0.5);
- margin-left: 0.1rem;
- }
- .broadcast_details_btn {
- width: 130rpx;
- height: 50rpx;
- background: #e83323;
- opacity: 1;
- border-radius: 125rpx;
- color: #fff;
- font-size: 24rpx;
- text-align: center;
- line-height: 50rpx;
- }
- .broadcast-details .chat {
- padding: 1rpx 23rpx 0 23rpx;
- margin-bottom: 3rpx;
- }
- .broadcast-details .chat .item {
- margin-top: 37rpx;
- }
- .broadcast-details .chat .item .pictrue {
- width: 80rpx;
- height: 80rpx;
- margin-top: 10rpx;
- }
- .broadcast-details .chat .item .pictrue image {
- width: 100%;
- height: 100%;
- border-radius: 50%;
- }
- .broadcast-details .chat .item .text {
- margin-left: 20rpx;
- }
- .broadcast-details .chat .item .text.textR {
- text-align: right;
- margin: 0 20rpx 0 0;
- }
- .broadcast-details .chat .item .text .name {
- font-size: 24rpx;
- color: #999;
- }
- .broadcast-details .chat .item .text .name .return {
- color: #509efb;
- margin-left: 17rpx;
- }
- .broadcast-details .chat .item .text.textR .name .return {
- margin: 0 0.17rem 0 0;
- }
- .broadcast-details .chat .item .text .conter {
- background-color: #fff;
- border-radius: 8rpx;
- padding: 16rpx 20rpx;
- font-size: 30rpx;
- color: #333;
- position: relative;
- max-width: 496rpx;
- margin-top: 2rpx;
- word-break: break-all;
- .em{
- margin: 0;
- }
- }
- .broadcast-details .chat .item .text .spot {
- width: 15rpx;
- height: 15rpx;
- background-color: #c00000;
- border-radius: 50%;
- margin-left: 20rpx;
- }
- .broadcast-details .chat .item .text .conter:before {
- position: absolute;
- content: "";
- width: 0;
- height: 0;
- border-bottom: 9rpx solid transparent;
- border-right: 14rpx solid #fff;
- border-top: 9rpx solid transparent;
- left: -14rpx;
- top: 25rpx;
- }
- .broadcast-details .chat .item .text.textR .conter:before {
- left: unset;
- right: -14rpx;
- transform: rotateY(180deg);
- }
- .broadcast-details .chat .item .text .conter img {
- /* #ifdef H5 */
- width: 100%;
- /* #endif */
- display: block;
- }
- .broadcast-details .chat .item .text .conter .signal {
- width: 48rpx;
- height: 48rpx;
- }
- .broadcast-details .chat .item .text .conter .signal.signalR {
- transform: rotate(180deg);
- -ms-transform: rotate(180deg);
- -webkit-transform: rotate(180deg);
- }
- .broadcast-details .footerCon {
- height: 100rpx;
- width: 100%;
- transition: all 0.005s cubic-bezier(0.25, 0.5, 0.5, 0.9);
- background-color: #fff;
- }
- .broadcast-details .footerCon.on {
- position: relative;
- top: -300rpx;
- transform: translate3d(0, 0, 0) !important;
- }
- .broadcast-details .footerCon .banner .swiper-slide {
- flex-wrap: wrap;
- -webkit-flex-wrap: wrap;
- background-color: #fff;
- padding-bottom: 50rpx;
- border-top: 1px solid #f5f5f5;
- }
- .broadcast-details .footerCon .banner .swiper-slide .emoji-outer,
- .swiper-slide .em {
- display: block;
- width: 50rpx;
- height: 50rpx;
- margin: 40rpx 0 0 50rpx;
- }
- .broadcast-details .footerCon .banner .swiper-container-horizontal>.swiper-pagination-bullets {
- bottom: 10rpx;
- }
- .broadcast-details .footerCon .slider-banner .swiper-pagination-bullet-active {
- background-color: #999;
- }
- .broadcast-details .recording {
- width: 300rpx;
- height: 300rpx;
- position: fixed;
- top: 40%;
- left: 50%;
- margin-left: -150rpx;
- }
- .broadcast-details .recording img {
- width: 100%;
- height: 100%;
- }
- .broadcast-details .footer {
- width: 100%;
- background-color: #fff;
- padding: 17rpx 26rpx;
- }
- .broadcast-details .footer img {
- width: 61rpx;
- height: 60rpx;
- display: block;
- }
- .broadcast-details .footer .input,
- .broadcast-details .footer .voice {
- width: 440rpx;
- border-radius: 10rpx;
- background-color: #e5e5e5;
- /* padding: 17rpx 30rpx; */
- height: 60rpx;
- padding-left: 20rpx;
- }
- .input {}
- .broadcast-details .footer .input {
- max-height: 150rpx;
- overflow-y: auto;
- overflow-x: hidden;
- }
- .broadcast-details .footer .send {
- width: 70rpx;
- text-align: center;
- height: 60rpx;
- line-height: 60rpx;
- font-weight: bold;
- }
- .em {
- display: inline-block;
- width: 50rpx;
- height: 50rpx;
- margin: 40rpx 0 0 50rpx;
- }
- .emoji-outer {
- position: absolute;
- right: 50rpx;
- bottom: 30rpx;
- width: 50rpx;
- height: 50rpx;
- }
- .broadcast-details {
- display: flex;
- flex-direction: column;
- width: 100%;
- overflow: hidden;
- .hd-wrapper {
- flex: 1;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- &.on {
- padding-bottom: 300rpx;
- }
- }
- }
- .store-wrapper {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 15rpx 20rpx;
- background-color: #fff;
- image {
- width: 60rpx;
- height: 60rpx;
- margin-right: 10rpx;
- }
- .left {
- display: flex;
- align-items: center;
- }
- .link {
- width: 80rpx;
- height: 40rpx;
- line-height: 38rpx;
- border: 1px solid $theme-color;
- border-radius: 20px;
- font-size: 24rpx;
- color: $theme-color;
- text-align: center;
- }
- }
- </style>
|