CustomMessageRender.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784
  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. const linkValue = couseItem.appRealLink.split('link=')[1];
  294. if (match && match[1]) {
  295. // 截取到的页面路径 + 参数
  296. const realPath = "/" + match[1];
  297. // 直接跳转 APP 原生页面 ✅
  298. uni.navigateTo({
  299. url: realPath
  300. });
  301. return;
  302. }else if(linkValue){
  303. uni.navigateTo({
  304. url: "/pages_course/video?link=" + linkValue
  305. });
  306. return;
  307. }else{
  308. uni.showToast({
  309. icon: 'none',
  310. title: '看课链接不存在'
  311. })
  312. }
  313. // if (/^\//.test(couseItem.appRealLink)) {
  314. // uni.navigateTo({
  315. // url: couseItem.appRealLink,
  316. // })
  317. // } else {
  318. // uni.navigateTo({
  319. // url: "/pages_im/pages/common/webH5/index?url=" + couseItem.appRealLink
  320. // });
  321. // }
  322. } else {
  323. uni.showToast({
  324. icon: 'none',
  325. title: "暂无看课链接",
  326. });
  327. }
  328. }
  329. else if (item.payload.data == "luckyBag") {
  330. console.log("qxj extension:",item);
  331. let luckyBagItem=item.payload.extension;
  332. if(luckyBagItem.appRealLink) {
  333. let str = luckyBagItem.appRealLink.split('?link=')[1]
  334. uni.navigateTo({
  335. url: '/pages/courseAnswer/luckyBag?link='+str
  336. });
  337. }else {
  338. uni.showToast({
  339. icon:'none',
  340. title: "福袋信息为空",
  341. });
  342. }
  343. }
  344. else if (item.payload.data == 'live') {
  345. var liveItem=item.payload.extension;
  346. console.log("qxj liveItem:",JSON.stringify(liveItem));
  347. let url='/pages_live/living?liveId=' + liveItem.liveId;
  348. if(liveItem.companyId){
  349. url += "&companyId="+liveItem.companyId;
  350. }
  351. if(liveItem.companyUserId){
  352. url += "&companyUserId="+liveItem.companyUserId;
  353. }
  354. console.log("qxj url:"+url);
  355. uni.navigateTo({
  356. url: url
  357. });
  358. return;
  359. if(couseItem.appRealLink) {
  360. uni.navigateTo({
  361. url: couseItem.appRealLink
  362. });
  363. }else {
  364. uni.showToast({
  365. icon:'none',
  366. title: "暂无看课链接",
  367. });
  368. }
  369. }
  370. }
  371. }
  372. };
  373. </script>
  374. <style lang="scss" scoped>
  375. @mixin u-flex($flexD, $alignI, $justifyC) {
  376. display: flex;
  377. flex-direction: $flexD;
  378. align-items: $alignI;
  379. justify-content: $justifyC;
  380. }
  381. .card_message_container {
  382. @include colBox(false);
  383. background-color: #fff;
  384. box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
  385. border-radius: 12rpx;
  386. width: 444rpx;
  387. border: 1px solid #ececec;
  388. .card_info {
  389. @include vCenterBox();
  390. padding: 24rpx 32rpx;
  391. border-bottom: 1px solid #e9e9e9;
  392. .card_name {
  393. @include ellipsisWithLine(1);
  394. margin-left: 24rpx;
  395. }
  396. }
  397. .card_desc {
  398. padding: 8rpx 0 8rpx 42rpx;
  399. color: #999;
  400. }
  401. }
  402. .custom {
  403. .order-item {
  404. width: 450rpx;
  405. padding: 15rpx;
  406. padding: 15rpx;
  407. border: 1rpx solid #ececec;
  408. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  409. background-color: #fff;
  410. border-radius: 15rpx;
  411. display: flex;
  412. flex-direction: column;
  413. align-items: flex-start;
  414. justify-content: flex-start;
  415. .title {
  416. font-size: 16px;
  417. font-family: PingFang SC;
  418. font-weight: normal;
  419. color: #111111;
  420. }
  421. .text {
  422. font-size: 12px;
  423. font-family: PingFang SC;
  424. color: #9a9a9c;
  425. padding:6rpx 0;
  426. }
  427. }
  428. .prescribe-item {
  429. width: 450rpx;
  430. padding: 15rpx;
  431. border: 1rpx solid #ececec;
  432. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  433. background-color: #fff;
  434. border-radius: 15rpx;
  435. display: flex;
  436. flex-direction: column;
  437. align-items: flex-start;
  438. justify-content: flex-start;
  439. .title {
  440. font-size: 16px;
  441. font-family: PingFang SC;
  442. font-weight: normal;
  443. color: #111111;
  444. }
  445. .text {
  446. margin-top: 10rpx;
  447. font-size: 12px;
  448. font-family: PingFang SC;
  449. color: #9a9a9c;
  450. }
  451. .btns {
  452. padding: 15rpx;
  453. display: flex;
  454. align-items: center;
  455. justify-content: center;
  456. width: 100%;
  457. .btn {
  458. border-radius: 30rpx;
  459. padding: 15rpx 30rpx;
  460. border: 1rpx solid #ececec;
  461. font-family: PingFang SC;
  462. color: #333333;
  463. }
  464. }
  465. }
  466. .report-item {
  467. width: 450rpx;
  468. padding: 15rpx;
  469. border: 1rpx solid #ececec;
  470. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  471. background-color: #fff;
  472. border-radius: 15rpx;
  473. display: flex;
  474. flex-direction: column;
  475. align-items: flex-start;
  476. justify-content: flex-start;
  477. .title {
  478. font-size: 16px;
  479. font-family: PingFang SC;
  480. font-weight: normal;
  481. color: #111111;
  482. }
  483. .text {
  484. margin-top: 10rpx;
  485. font-size: 12px;
  486. font-family: PingFang SC;
  487. color: #9a9a9c;
  488. }
  489. .btns {
  490. padding: 15rpx;
  491. display: flex;
  492. align-items: center;
  493. justify-content: center;
  494. width: 100%;
  495. .btn {
  496. border-radius: 30rpx;
  497. padding: 15rpx 30rpx;
  498. border: 1rpx solid #ececec;
  499. font-family: PingFang SC;
  500. color: #333333;
  501. font-size: 16px;
  502. }
  503. }
  504. }
  505. .package-item{
  506. width: 450rpx;
  507. padding: 15rpx;
  508. border: 1rpx solid #ececec;
  509. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  510. background-color: #fff;
  511. border-radius: 15rpx;
  512. display: flex;
  513. flex-direction: column;
  514. align-items: flex-start;
  515. justify-content: flex-start;
  516. .title {
  517. font-size: 16px;
  518. font-family: PingFang SC;
  519. color: #333;
  520. margin-bottom: 10rpx;
  521. }
  522. .stitle {
  523. font-size: 15px;
  524. font-family: PingFang SC;
  525. font-weight: 500;
  526. color: #666;
  527. margin-bottom: 10rpx;
  528. }
  529. .psub{
  530. color: #e41f19;
  531. font-size: 15px;
  532. font-style: normal;
  533. }
  534. .price{
  535. font-size: 18px;
  536. font-style: normal;
  537. font-weight: bold;
  538. }
  539. .stitle1{
  540. font-size: 14px;
  541. }
  542. .cover{
  543. width:calc(100%);
  544. height: 400rpx;
  545. border-radius: 16rpx;
  546. box-sizing: border-box;
  547. image{
  548. width: 100%;
  549. height: 100%;
  550. }
  551. }
  552. }
  553. }
  554. .content {
  555. padding: 10px;
  556. background: #f0f0f0;
  557. &-in {
  558. border-radius: 0px 10px 10px 10px;
  559. }
  560. &-out {
  561. border-radius: 10px 0px 10px 10px;
  562. }
  563. }
  564. .list{
  565. &-item {
  566. width: 450rpx;
  567. padding: 0rpx;
  568. border: 1rpx solid #ececec;
  569. box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.05);
  570. background-color: #fff;
  571. border-radius: 16rpx;
  572. margin-bottom: 0rpx;
  573. box-sizing: border-box;
  574. font-family: PingFang SC, PingFang SC;
  575. font-weight: 400;
  576. font-size: 15px;
  577. color: #333333;
  578. line-height: 36rpx;
  579. image {
  580. flex-shrink: 0;
  581. width: 150rpx;
  582. height: 120rpx;
  583. margin-left: 16rpx;
  584. background: #F5F6F6;
  585. border-radius: 10rpx 10rpx 10rpx 10rpx;
  586. overflow: hidden;
  587. }
  588. }
  589. &-con {
  590. width: 100%;
  591. padding: 24rpx;
  592. box-sizing: border-box;
  593. @include u-flex(column, flex-start, space-between);
  594. }
  595. &-cover {
  596. width: 100%;
  597. margin-top: 20rpx;
  598. @include u-flex(row, flex-start, flex-end);
  599. }
  600. &-itemtxt {
  601. flex: 1;
  602. overflow: hidden;
  603. word-break: break-all;
  604. display: block;
  605. }
  606. &-title {
  607. word-break: break-all;
  608. display: block;
  609. }
  610. &-desc {
  611. margin-top: 0rpx;
  612. font-size: 16px;
  613. color: #333;
  614. line-height: 22px;
  615. }
  616. &-time {
  617. font-size: 11px;
  618. color: #999999;
  619. }
  620. &-footer {
  621. padding: 20rpx 24rpx;
  622. box-sizing: border-box;
  623. @include u-flex(row, center, space-between);
  624. position: relative;
  625. view {
  626. @include u-flex(row, center, flex-start);
  627. }
  628. image {
  629. height: 50rpx;
  630. width: 50rpx;
  631. border-radius: 50%;
  632. margin: 0 10rpx 0 0;
  633. }
  634. }
  635. }
  636. .liveList {
  637. .list-item {
  638. border-radius: 4rpx;
  639. width: 300rpx;
  640. height: 500rpx;
  641. background-color: #ececec;
  642. margin-bottom: 24rpx;
  643. overflow: hidden;
  644. position: relative;
  645. .livebox{
  646. background: #ff5500;
  647. border-radius: 8rpx;
  648. font-size: 26rpx;
  649. color: #fff;
  650. text-align: center;
  651. position: absolute;
  652. left: 18rpx;
  653. top: 18rpx;
  654. padding:8rpx 14rpx;
  655. }
  656. image {
  657. width: 100%;
  658. height: 100%;
  659. margin-left: 0;
  660. }
  661. video {
  662. width: 100%;
  663. height: 100%;
  664. object-fit: cover;
  665. }
  666. .info {
  667. position: absolute;
  668. left: 20rpx;
  669. bottom: 14rpx;
  670. right: 20rpx;
  671. color: #ffffff;
  672. display: flex;
  673. align-items: center;
  674. .live-badge {
  675. background-color: #e74c3c;
  676. padding: 4rpx 12rpx;
  677. border-radius: 8rpx;
  678. font-size: 20rpx;
  679. margin-right: 12rpx;
  680. }
  681. .record-badge {
  682. background-color: #3498db;
  683. padding: 4rpx 12rpx;
  684. border-radius: 8rpx;
  685. font-size: 20rpx;
  686. margin-right: 12rpx;
  687. }
  688. }
  689. .error-tip {
  690. position: absolute;
  691. top: 50%;
  692. left: 50%;
  693. transform: translate(-50%, -50%);
  694. color: #fff;
  695. background-color: rgba(0, 0, 0, 0.7);
  696. padding: 16rpx 24rpx;
  697. border-radius: 8rpx;
  698. font-size: 24rpx;
  699. }
  700. }
  701. // 使列表项均匀分布
  702. .list-item:nth-child(2n) {
  703. margin-right: 0;
  704. }
  705. }
  706. .luckyBagBox {
  707. width: 384rpx;
  708. height: 160rpx;
  709. border-radius: 8rpx;
  710. padding: 24rpx 24rpx 20rpx 24rpx;
  711. background-repeat: no-repeat;
  712. background-size: 100% 100%;
  713. .luckyBagBox-line {
  714. width: 100%;
  715. height: 1rpx;
  716. background: rgba(255, 255, 255,0.2);
  717. }
  718. }
  719. .image_right {
  720. background-image: url('/pages_im/static/images/luckyBag/lucky_bag_new_bg_right.png');
  721. }
  722. .image_left {
  723. background-image: url('/pages_im/static/images/luckyBag/lucky_bag_new_bg_left.png');
  724. }
  725. </style>