CustomMessageRender.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778
  1. <template>
  2. <view class="custom" @click="handleCustomerItem">
  3. <template v-if="isCustom === 'order'">
  4. <view class="order-item">
  5. <view class="title">问诊订单</view>
  6. <view class="text">患者:{{ extension.patientName }} {{ extension.sex }} {{ extension.mobile }}</view>
  7. <view class="text">患病时间:{{ extension.duration }}</view>
  8. <view class="text">就诊情况:{{ extension.isVisit }}</view>
  9. <view class="text">病情描述:{{ extension.title }}</view>
  10. </view>
  11. </template>
  12. <template v-else-if="isCustom === 'prescribe'">
  13. <view class="prescribe-item">
  14. <view class="title">电子处方单</view>
  15. <view class="text">诊断:{{ extension.diagnose }}</view>
  16. <view class="btns">
  17. <view class="btn">查看处方</view>
  18. </view>
  19. </view>
  20. </template>
  21. <template v-else-if="isCustom === 'report'">
  22. <view class="report-item">
  23. <view class="title">问诊报告单</view>
  24. <view class="btns">
  25. <view class="btn">查看报告单</view>
  26. </view>
  27. </view>
  28. </template>
  29. <template v-else-if="isCustom === 'follow'">
  30. <view class="prescribe-item">
  31. <view class="title">随访单</view>
  32. <view class="btns">
  33. <view class="btn">查看随访</view>
  34. </view>
  35. </view>
  36. </template>
  37. <template v-else-if="isCustom === 'drugReport'">
  38. <view class="report-item">
  39. <view class="title">用药报告单</view>
  40. <view class="btns">
  41. <view class="btn">查看报告单</view>
  42. </view>
  43. </view>
  44. </template>
  45. <template v-else-if="isCustom === 'package'">
  46. <view class="package-item">
  47. <view class="title">{{extension.title}}</view>
  48. <view class="cover" v-if="!!extension.image">
  49. <image :src="extension.image" mode="aspectFill"></image>
  50. </view>
  51. <view v-else class="btns">
  52. <view class="btn">查看疗法</view>
  53. </view>
  54. </view>
  55. </template>
  56. <template v-else-if="isCustom === 'couponPackage'">
  57. <view class="package-item">
  58. <view class="title">{{extension.title}}</view>
  59. <view class="stitle"><i class="psub">¥</i> <i class="psub price"> {{ extension.price.toFixed(2) }} </i> {{ "(满"+extension.minPrice.toFixed(2)+"元可用)" }} </view>
  60. <view class="stitle stitle1">{{ extension.limitTime+"到期 不可叠加使用"}}</view>
  61. <view class="cover" v-if="!!extension.image">
  62. <image :src="extension.image" mode="aspectFill"></image>
  63. </view>
  64. <view v-else class="btns">
  65. <view class="btn">查看私域疗法券</view>
  66. </view>
  67. </view>
  68. </template>
  69. <template v-else-if="isCustom === 'inquirySelect'">
  70. <view class="package-item">
  71. <view class="title">{{extension.title}}</view>
  72. <view class="stitle">医疗专家团队远程咨询</view>
  73. <view class="cover" v-if="!!extension.image">
  74. <image :src="extension.image" mode="aspectFill"></image>
  75. </view>
  76. <view v-else class="btns">
  77. <view class="btn">查看会诊</view>
  78. </view>
  79. </view>
  80. </template>
  81. <template v-else-if="isCustom === 'startInquiry'">
  82. <view class="content content-in">
  83. <span>{{ extension.title }}</span>
  84. </view>
  85. </template>
  86. <template v-else-if="isCustom === 'finishInquiry'">
  87. <view class="content content-ou">
  88. <span>{{ extension.title }}</span>
  89. </view>
  90. </template>
  91. <template v-else-if="isCustom === 'course'">
  92. <view class="box">
  93. <view class="list-item">
  94. <view class="list-con border-line">
  95. <view class="list-itemtxt">
  96. <!-- <text class="list-title textOne">{{extension.courseName}}</text> -->
  97. <text class="list-desc textTwo">{{extension.title}}</text>
  98. </view>
  99. <view class="list-cover">
  100. <image :src="extension.courseUrl" mode="aspectFill"></image>
  101. </view>
  102. </view>
  103. </view>
  104. </view>
  105. </template>
  106. <template v-else-if="isCustom === 'live'">
  107. <view class="box">
  108. <view class="liveList">
  109. <view class="list-item">
  110. <image :src="extension.appRealLink" mode="aspectFill"></image>
  111. <view class="info">
  112. <text>{{extension.liveName}}</text>
  113. </view>
  114. <view class="livebox">直播</view>
  115. </view>
  116. </view>
  117. </view>
  118. </template>
  119. <template v-else-if="isCustom === 'luckyBag'">
  120. <view class="box">
  121. <view class="luckyBagBox" :class="isSender ? 'image_right' : 'image_left'">
  122. <view class="u-f es-ac">
  123. <view class="u-f-ajc es-mr-20">
  124. <image class="es-icon-56" src="/pages_im/static/images/luckyBag/new_lucky_bag_icon.png" mode=""></image>
  125. </view>
  126. <view class="es-fs-32 es-fw-500 es-c-white">
  127. 给你发送福袋
  128. </view>
  129. </view>
  130. <view class="es-mt-16 luckyBagBox-line"></view>
  131. <view class="es-mt-16 es-fs-20 es-c-white">
  132. 专属福袋
  133. </view>
  134. </view>
  135. </view>
  136. </template>
  137. <template v-else>
  138. <view class="content"></view>
  139. </template>
  140. </view>
  141. </template>
  142. <script>
  143. import MyAvatar from '../../../../../components/MyAvatar/index.vue';
  144. export default {
  145. name: 'CustomMessageRender',
  146. components: { MyAvatar },
  147. props: {
  148. message: {
  149. type: Object,
  150. default: () => ({
  151. customElem: {
  152. data: '{}' // 默认空JSON
  153. },
  154. cardElem: {
  155. userID: ''
  156. }
  157. })
  158. },
  159. isSender: {
  160. type: Boolean,
  161. default: false
  162. }
  163. },
  164. data() {
  165. return {
  166. isCustom: null, // 明确初始化null
  167. payload: {}, // 与服务端数据结构对齐
  168. extension: {} // 保持响应式基础结构
  169. };
  170. },
  171. computed: {
  172. customDataStr() {
  173. return this.message?.customElem?.data;
  174. }
  175. },
  176. watch: {
  177. customDataStr: {
  178. handler() {
  179. this.safeParseData();
  180. },
  181. immediate: true
  182. },
  183. message: {
  184. handler: function(newVal, oldVal) {
  185. this.safeParseData();
  186. },
  187. immediate: true,
  188. deep: true
  189. }
  190. },
  191. mounted() {
  192. this.safeParseData();
  193. },
  194. methods: {
  195. safeParseData() {
  196. try {
  197. const rawData = this.message?.customElem?.data || '{}';
  198. const parsed = JSON.parse(rawData);
  199. //结构化赋值
  200. this.payload = parsed.payload || {};
  201. this.extension = this.payload.extension || {};
  202. this.isCustom = this.payload.data ?? null;
  203. } catch (e) {
  204. console.error('[消息解析失败]', e);
  205. this.$emit('parse-error', {
  206. raw: this.message,
  207. error: e
  208. });
  209. }
  210. },
  211. handleCustomerItem() {
  212. const rawData = this.message?.customElem.data;
  213. let item = JSON.parse(rawData);
  214. if (item.payload.data == 'order') {
  215. uni.navigateTo({
  216. url: '/pages/store/inquiryOrderDetails?orderId=' + item.payload.description
  217. });
  218. } else if (item.payload.data == 'prescribe') {
  219. var prescribe = item.payload.extension;
  220. uni.navigateTo({
  221. url: '/pages/store/prescribeDetails?prescribeId=' + prescribe.prescribeId
  222. });
  223. } else if (item.payload.data == 'package') {
  224. var packageItem = item.payload.extension;
  225. let companyId=packageItem.companyId;
  226. let companyUserId=packageItem.companyUserId;
  227. let nUrl="/pages/store/packageDetails?packageId="+packageItem.packageId+"&companyId="+companyId+"&companyUserId="+companyUserId;
  228. uni.navigateTo({url: nUrl});
  229. }
  230. else if (item.payload.data == 'couponPackage') {
  231. //console.log("qxj item",item);
  232. var cItem = item.payload.extension;
  233. let companyId=cItem.companyId;
  234. let companyUserId=cItem.companyUserId;
  235. let nUrl='/pages/company/couponDetails?couponId='+cItem.couponId+"&isShare=1";
  236. uni.navigateTo({url: nUrl});
  237. }
  238. else if (item.payload.data == 'inquirySelect') {
  239. var cItem = item.payload.extension;
  240. let companyId=cItem.companyId;
  241. let companyUserId=cItem.companyUserId;
  242. let type=cItem.type;
  243. if(type==3){
  244. let nUrl="/pages/store/inquiryForm2_2?inquiryType=2&orderType=2&inquirySubType="+type+"&companyId="+companyId+"&companyUserId="+companyUserId+"&isShare=1";
  245. uni.navigateTo({url: nUrl});
  246. } else if(type==4){
  247. } else {
  248. let nUrl="/pages/store/inquiryForm2_1?inquiryType=2&orderType=2&inquirySubType="+type+"&companyId="+companyId+"&companyUserId="+companyUserId+"&isShare=1";
  249. uni.navigateTo({url: nUrl});
  250. }
  251. }
  252. else if (item.payload.data == 'follow') {
  253. var follow = item.payload.extension;
  254. if (follow.writeStatus == 0) {
  255. uni.navigateTo({
  256. url: '/pages/user/doFollow?followId=' + follow.followId
  257. });
  258. } else if (follow.writeStatus == 1) {
  259. uni.navigateTo({
  260. url: '/pages/user/followDetails?followId=' + follow.followId
  261. });
  262. }
  263. } else if (item.payload.data == 'report') {
  264. uni.navigateTo({
  265. url: '/pages/store/inquiryOrderReport?orderId=' + item.payload.description
  266. });
  267. } else if (item.payload.data == 'drugReport') {
  268. // var report=JSON.parse(item.payload.extension);
  269. uni.navigateTo({
  270. url: '/pages/user/drugReportDetails?reportId=' + item.payload.description
  271. });
  272. }
  273. else if (item.payload.data == 'course') {
  274. console.log("qxj extension:",item);
  275. let couseItem = item.payload.extension;
  276. if (uni.getStorageSync('companyUserId')) {
  277. const queryString = couseItem.appRealLink.split('?')[1] || '';
  278. const courseParamMatch = queryString.match(/course=({[^&]+})/);
  279. if (!courseParamMatch) {
  280. uni.showToast({
  281. icon: 'none',
  282. title: '看课链接不存在'
  283. })
  284. }
  285. const courseJson = decodeURIComponent(courseParamMatch[1]);
  286. const courseData = JSON.parse(courseJson);
  287. return uni.navigateTo({
  288. url: `/pages_managedata/coursedetail?videoId=${courseData.videoId}&id=${courseData.id}&periodId=${courseData.periodId}`
  289. });
  290. }
  291. if (couseItem.appRealLink) {
  292. const match = couseItem.appRealLink.match(/appcourse\/(.*)/);
  293. if (match && match[1]) {
  294. // 截取到的页面路径 + 参数
  295. const realPath = "/" + match[1];
  296. // 直接跳转 APP 原生页面 ✅
  297. uni.navigateTo({
  298. url: realPath
  299. });
  300. return;
  301. }else{
  302. uni.showToast({
  303. icon: 'none',
  304. title: '看课链接不存在'
  305. })
  306. }
  307. // if (/^\//.test(couseItem.appRealLink)) {
  308. // uni.navigateTo({
  309. // url: couseItem.appRealLink,
  310. // })
  311. // } else {
  312. // uni.navigateTo({
  313. // url: "/pages_im/pages/common/webH5/index?url=" + couseItem.appRealLink
  314. // });
  315. // }
  316. } else {
  317. uni.showToast({
  318. icon: 'none',
  319. title: "暂无看课链接",
  320. });
  321. }
  322. }
  323. else if (item.payload.data == "luckyBag") {
  324. console.log("qxj extension:",item);
  325. let luckyBagItem=item.payload.extension;
  326. if(luckyBagItem.appRealLink) {
  327. let str = luckyBagItem.appRealLink.split('?link=')[1]
  328. uni.navigateTo({
  329. url: '/pages/courseAnswer/luckyBag?link='+str
  330. });
  331. }else {
  332. uni.showToast({
  333. icon:'none',
  334. title: "福袋信息为空",
  335. });
  336. }
  337. }
  338. else if (item.payload.data == 'live') {
  339. var liveItem=item.payload.extension;
  340. console.log("qxj liveItem:",JSON.stringify(liveItem));
  341. let url='/pages_live/living?liveId=' + liveItem.liveId;
  342. if(liveItem.companyId){
  343. url += "&companyId="+liveItem.companyId;
  344. }
  345. if(liveItem.companyUserId){
  346. url += "&companyUserId="+liveItem.companyUserId;
  347. }
  348. console.log("qxj url:"+url);
  349. uni.navigateTo({
  350. url: url
  351. });
  352. return;
  353. if(couseItem.appRealLink) {
  354. uni.navigateTo({
  355. url: couseItem.appRealLink
  356. });
  357. }else {
  358. uni.showToast({
  359. icon:'none',
  360. title: "暂无看课链接",
  361. });
  362. }
  363. }
  364. }
  365. }
  366. };
  367. </script>
  368. <style lang="scss" scoped>
  369. @mixin u-flex($flexD, $alignI, $justifyC) {
  370. display: flex;
  371. flex-direction: $flexD;
  372. align-items: $alignI;
  373. justify-content: $justifyC;
  374. }
  375. .card_message_container {
  376. @include colBox(false);
  377. background-color: #fff;
  378. box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
  379. border-radius: 12rpx;
  380. width: 444rpx;
  381. border: 1px solid #ececec;
  382. .card_info {
  383. @include vCenterBox();
  384. padding: 24rpx 32rpx;
  385. border-bottom: 1px solid #e9e9e9;
  386. .card_name {
  387. @include ellipsisWithLine(1);
  388. margin-left: 24rpx;
  389. }
  390. }
  391. .card_desc {
  392. padding: 8rpx 0 8rpx 42rpx;
  393. color: #999;
  394. }
  395. }
  396. .custom {
  397. .order-item {
  398. width: 450rpx;
  399. padding: 15rpx;
  400. padding: 15rpx;
  401. border: 1rpx solid #ececec;
  402. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  403. background-color: #fff;
  404. border-radius: 15rpx;
  405. display: flex;
  406. flex-direction: column;
  407. align-items: flex-start;
  408. justify-content: flex-start;
  409. .title {
  410. font-size: 16px;
  411. font-family: PingFang SC;
  412. font-weight: normal;
  413. color: #111111;
  414. }
  415. .text {
  416. font-size: 12px;
  417. font-family: PingFang SC;
  418. color: #9a9a9c;
  419. padding:6rpx 0;
  420. }
  421. }
  422. .prescribe-item {
  423. width: 450rpx;
  424. padding: 15rpx;
  425. border: 1rpx solid #ececec;
  426. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  427. background-color: #fff;
  428. border-radius: 15rpx;
  429. display: flex;
  430. flex-direction: column;
  431. align-items: flex-start;
  432. justify-content: flex-start;
  433. .title {
  434. font-size: 16px;
  435. font-family: PingFang SC;
  436. font-weight: normal;
  437. color: #111111;
  438. }
  439. .text {
  440. margin-top: 10rpx;
  441. font-size: 12px;
  442. font-family: PingFang SC;
  443. color: #9a9a9c;
  444. }
  445. .btns {
  446. padding: 15rpx;
  447. display: flex;
  448. align-items: center;
  449. justify-content: center;
  450. width: 100%;
  451. .btn {
  452. border-radius: 30rpx;
  453. padding: 15rpx 30rpx;
  454. border: 1rpx solid #ececec;
  455. font-family: PingFang SC;
  456. color: #333333;
  457. }
  458. }
  459. }
  460. .report-item {
  461. width: 450rpx;
  462. padding: 15rpx;
  463. border: 1rpx solid #ececec;
  464. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  465. background-color: #fff;
  466. border-radius: 15rpx;
  467. display: flex;
  468. flex-direction: column;
  469. align-items: flex-start;
  470. justify-content: flex-start;
  471. .title {
  472. font-size: 16px;
  473. font-family: PingFang SC;
  474. font-weight: normal;
  475. color: #111111;
  476. }
  477. .text {
  478. margin-top: 10rpx;
  479. font-size: 12px;
  480. font-family: PingFang SC;
  481. color: #9a9a9c;
  482. }
  483. .btns {
  484. padding: 15rpx;
  485. display: flex;
  486. align-items: center;
  487. justify-content: center;
  488. width: 100%;
  489. .btn {
  490. border-radius: 30rpx;
  491. padding: 15rpx 30rpx;
  492. border: 1rpx solid #ececec;
  493. font-family: PingFang SC;
  494. color: #333333;
  495. font-size: 16px;
  496. }
  497. }
  498. }
  499. .package-item{
  500. width: 450rpx;
  501. padding: 15rpx;
  502. border: 1rpx solid #ececec;
  503. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  504. background-color: #fff;
  505. border-radius: 15rpx;
  506. display: flex;
  507. flex-direction: column;
  508. align-items: flex-start;
  509. justify-content: flex-start;
  510. .title {
  511. font-size: 16px;
  512. font-family: PingFang SC;
  513. color: #333;
  514. margin-bottom: 10rpx;
  515. }
  516. .stitle {
  517. font-size: 15px;
  518. font-family: PingFang SC;
  519. font-weight: 500;
  520. color: #666;
  521. margin-bottom: 10rpx;
  522. }
  523. .psub{
  524. color: #e41f19;
  525. font-size: 15px;
  526. font-style: normal;
  527. }
  528. .price{
  529. font-size: 18px;
  530. font-style: normal;
  531. font-weight: bold;
  532. }
  533. .stitle1{
  534. font-size: 14px;
  535. }
  536. .cover{
  537. width:calc(100%);
  538. height: 400rpx;
  539. border-radius: 16rpx;
  540. box-sizing: border-box;
  541. image{
  542. width: 100%;
  543. height: 100%;
  544. }
  545. }
  546. }
  547. }
  548. .content {
  549. padding: 10px;
  550. background: #f0f0f0;
  551. &-in {
  552. border-radius: 0px 10px 10px 10px;
  553. }
  554. &-out {
  555. border-radius: 10px 0px 10px 10px;
  556. }
  557. }
  558. .list{
  559. &-item {
  560. width: 450rpx;
  561. padding: 0rpx;
  562. border: 1rpx solid #ececec;
  563. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  564. background-color: #fff;
  565. border-radius: 16rpx;
  566. margin-bottom: 0rpx;
  567. box-sizing: border-box;
  568. font-family: PingFang SC, PingFang SC;
  569. font-weight: 400;
  570. font-size: 15px;
  571. color: #333333;
  572. line-height: 36rpx;
  573. image {
  574. flex-shrink: 0;
  575. width: 150rpx;
  576. height: 120rpx;
  577. margin-left: 16rpx;
  578. background: #F5F6F6;
  579. border-radius: 10rpx 10rpx 10rpx 10rpx;
  580. overflow: hidden;
  581. }
  582. }
  583. &-con {
  584. width: 100%;
  585. padding: 24rpx;
  586. box-sizing: border-box;
  587. @include u-flex(column, flex-start, space-between);
  588. }
  589. &-cover {
  590. width: 100%;
  591. margin-top: 20rpx;
  592. @include u-flex(row, flex-start, flex-end);
  593. }
  594. &-itemtxt {
  595. flex: 1;
  596. overflow: hidden;
  597. word-break: break-all;
  598. display: block;
  599. }
  600. &-title {
  601. word-break: break-all;
  602. display: block;
  603. }
  604. &-desc {
  605. margin-top: 0rpx;
  606. font-size: 16px;
  607. color: #333;
  608. line-height: 22px;
  609. }
  610. &-time {
  611. font-size: 11px;
  612. color: #999999;
  613. }
  614. &-footer {
  615. padding: 20rpx 24rpx;
  616. box-sizing: border-box;
  617. @include u-flex(row, center, space-between);
  618. position: relative;
  619. view {
  620. @include u-flex(row, center, flex-start);
  621. }
  622. image {
  623. height: 50rpx;
  624. width: 50rpx;
  625. border-radius: 50%;
  626. margin: 0 10rpx 0 0;
  627. }
  628. }
  629. }
  630. .liveList {
  631. .list-item {
  632. border-radius: 4rpx;
  633. width: 300rpx;
  634. height: 500rpx;
  635. background-color: #ececec;
  636. margin-bottom: 24rpx;
  637. overflow: hidden;
  638. position: relative;
  639. .livebox{
  640. background: #ff5500;
  641. border-radius: 8rpx;
  642. font-size: 26rpx;
  643. color: #fff;
  644. text-align: center;
  645. position: absolute;
  646. left: 18rpx;
  647. top: 18rpx;
  648. padding:8rpx 14rpx;
  649. }
  650. image {
  651. width: 100%;
  652. height: 100%;
  653. margin-left: 0;
  654. }
  655. video {
  656. width: 100%;
  657. height: 100%;
  658. object-fit: cover;
  659. }
  660. .info {
  661. position: absolute;
  662. left: 20rpx;
  663. bottom: 14rpx;
  664. right: 20rpx;
  665. color: #ffffff;
  666. display: flex;
  667. align-items: center;
  668. .live-badge {
  669. background-color: #e74c3c;
  670. padding: 4rpx 12rpx;
  671. border-radius: 8rpx;
  672. font-size: 20rpx;
  673. margin-right: 12rpx;
  674. }
  675. .record-badge {
  676. background-color: #3498db;
  677. padding: 4rpx 12rpx;
  678. border-radius: 8rpx;
  679. font-size: 20rpx;
  680. margin-right: 12rpx;
  681. }
  682. }
  683. .error-tip {
  684. position: absolute;
  685. top: 50%;
  686. left: 50%;
  687. transform: translate(-50%, -50%);
  688. color: #fff;
  689. background-color: rgba(0, 0, 0, 0.7);
  690. padding: 16rpx 24rpx;
  691. border-radius: 8rpx;
  692. font-size: 24rpx;
  693. }
  694. }
  695. // 使列表项均匀分布
  696. .list-item:nth-child(2n) {
  697. margin-right: 0;
  698. }
  699. }
  700. .luckyBagBox {
  701. width: 384rpx;
  702. height: 160rpx;
  703. border-radius: 8rpx;
  704. padding: 24rpx 24rpx 20rpx 24rpx;
  705. background-repeat: no-repeat;
  706. background-size: 100% 100%;
  707. .luckyBagBox-line {
  708. width: 100%;
  709. height: 1rpx;
  710. background: rgba(255, 255, 255,0.2);
  711. }
  712. }
  713. .image_right {
  714. background-image: url('/pages_im/static/images/luckyBag/lucky_bag_new_bg_right.png');
  715. }
  716. .image_left {
  717. background-image: url('/pages_im/static/images/luckyBag/lucky_bag_new_bg_left.png');
  718. }
  719. </style>