detail_buy.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888
  1. <template>
  2. <view class="container">
  3. <view class="introduce-section">
  4. <view class="price-box">
  5. <view class="title">{{goods.title}}</view>
  6. <view v-if='goods.isFutures==0' class="title-tip">
  7. <text class="price-tip">¥</text>
  8. <text class="price">{{goods.price}}</text>
  9. <text class="price-tip">元/吨</text>
  10. </view>
  11. <view v-else class="title-tip">
  12. <text class="price-tip">今日基差</text>
  13. <text class="price-tip">¥</text>
  14. <text class="price-tip">{{goods.basis}}</text>
  15. <text class="price-tip">元/吨</text>
  16. </view>
  17. </view>
  18. <view class="bot-row">
  19. <view v-if='goods.companyId==2' class='cu-tag radius line-orange'>佳屹农</view>
  20. <view v-else class='cu-tag radius line-orange'>易粮易运</view>
  21. <view v-if='goods.buyerPhone && goods.companyId!=2' class='cu-tag radius line-orange' >{{goods.buyerPhone}}</view>
  22. </view>
  23. <view class="bot-row">
  24. <view v-if='goods.companyId!=2' class='cu-tag radius line-orange'>剩余量: {{goods.total - goods.boughtCount}}吨</view>
  25. <view v-if='goods.companyId!=2' class='cu-tag radius line-orange'>总量: {{goods.total}}吨</view>
  26. </view>
  27. </view>
  28. <view class="detail-desc">
  29. <view class="d-header">
  30. <text>基本信息</text>
  31. </view>
  32. <view class="c-list">
  33. <view class="c-row b-b">
  34. <text class="tit">品种</text>
  35. <view class="con-list">
  36. <text>{{goods.goodsName}}</text>
  37. </view>
  38. </view>
  39. <view v-if='goods.companyId!=2' class="c-row b-b">
  40. <text class="tit">产地</text>
  41. <view class="con-list">
  42. <text>{{goods.origin}}</text>
  43. </view>
  44. </view>
  45. <view v-if='goods.companyId!=2' class="c-row b-b">
  46. <text class="tit">国标等级</text>
  47. <view class="con-list">
  48. <text>{{goods.level}}</text>
  49. </view>
  50. </view>
  51. <view v-if='goods.companyId!=2' class="c-row b-b">
  52. <text class="tit">年份</text>
  53. <view class="con-list">
  54. <text>{{goods.year}}</text>
  55. </view>
  56. </view>
  57. <view v-if='goods.companyId!=2' class="c-row b-b">
  58. <text class="tit">包装方式</text>
  59. <view class="con-list">
  60. <text>{{goods.packing}}</text>
  61. </view>
  62. </view>
  63. <view v-if='goods.companyId!=2' class="c-row b-b">
  64. <text class="tit">最小成交量</text>
  65. <view class="con-list">
  66. <text>{{goods.minSale}}(吨)</text>
  67. </view>
  68. </view>
  69. <view v-if='goods.isFutures==0' class="c-row b-b">
  70. <text class="tit">剩余量</text>
  71. <view class="con-list">
  72. <text>{{goods.total-goods.boughtCount}}</text>
  73. </view>
  74. </view>
  75. <!-- <view class="c-row b-b">
  76. <text class="tit">短溢装(%)</text>
  77. <view class="con-list">
  78. <text>{{goods.overFlow}}</text>
  79. </view>
  80. </view> -->
  81. <view class="c-row b-b">
  82. <text class="tit">价格类型</text>
  83. <view class="con-list">
  84. <text>{{goods.priceType}}</text>
  85. </view>
  86. </view>
  87. <view class="c-row b-b">
  88. <text class="tit">交货地</text>
  89. <view class="con-list">
  90. <text>{{goods.stock}}</text>
  91. </view>
  92. </view>
  93. </view>
  94. <view class="d-header">
  95. <text>粮食指标</text>
  96. </view>
  97. <view class="c-list">
  98. <view v-if='goods.goodsName=="玉米"' class="c-row b-b">
  99. <text class="tit">杂质(%){{'<='}}</text>
  100. <view class="con-list">
  101. <text>{{goods.impurity}}</text>
  102. </view>
  103. </view>
  104. <view v-if='goods.goodsName=="玉米"' class="c-row b-b">
  105. <text class="tit">生霉粒(%){{'<='}}</text>
  106. <view class="con-list">
  107. <text>{{goods.moldy}}</text>
  108. </view>
  109. </view>
  110. <view v-if='goods.goodsName=="玉米"' class="c-row b-b">
  111. <text class="tit">容重(g/L){{'<='}}</text>
  112. <view class="con-list">
  113. <text>{{goods.bulkDensity}}</text>
  114. </view>
  115. </view>
  116. <view v-if='goods.goodsName=="玉米"' class="c-row b-b">
  117. <text class="tit">气味、色泽</text>
  118. <view class="con-list">
  119. <text>{{goods.smell}}</text>
  120. </view>
  121. </view>
  122. <!-- <view v-if='goods.goodsName=="玉米"' class="c-row b-b">
  123. <text class="tit">热损(%){{'<='}}</text>
  124. <view class="con-list">
  125. <text>{{goods.heatLoss}}</text>
  126. </view>
  127. </view> -->
  128. <view class="c-row b-b">
  129. <text class="tit">水分(%){{'<='}} </text>
  130. <view class="con-list">
  131. <text>{{goods.waterContent}}</text>
  132. </view>
  133. </view>
  134. <view v-if='goods.goodsName=="大豆"' class="c-row b-b">
  135. <text class="tit">蛋白(%){{'>='}} </text>
  136. <view class="con-list">
  137. <text>{{goods.protein}}</text>
  138. </view>
  139. </view>
  140. <view v-if='goods.goodsName=="大豆"' class="c-row b-b">
  141. <text class="tit">粒型</text>
  142. <view class="con-list">
  143. <text>{{goods.grainType}}</text>
  144. </view>
  145. </view>
  146. </view>
  147. </view>
  148. <!-- 底部操作菜单 -->
  149. <view class="page-bottom">
  150. <view class="action-btn-group">
  151. <button type="primary" class=" action-btn no-border buy-now-btn" @click="contactUs">立即沟通</button>
  152. <button v-if="goods.status == 20" type="primary" class=" action-btn no-border add-cart-btn" @click="tradeNow">我要卖粮</button>
  153. <button v-else type="primary" class=" action-btn no-border add-cart-btn" >交易结束</button>
  154. </view>
  155. </view>
  156. <u-modal v-model="isShowAlert" :title-style="{fontSize: '18px',fontWeight:'500'}"
  157. :content-style="{fontSize: '14px',fontWeight:'400'}" confirm-color='#22C572' confirm-text='确定' title='提示'
  158. :showCancelButton='false' :content="content" @confirm="alertBtn" @cancel="cancelClick"></u-modal>
  159. </view>
  160. </template>
  161. <script>
  162. import uniNumberBox from '@/components/uni-number-box.vue';
  163. import {
  164. mapState
  165. } from 'vuex';
  166. export default {
  167. components: {
  168. uniNumberBox
  169. },
  170. data() {
  171. return {
  172. isShowAlert: false,
  173. content: '您尚未登录,是否立即登录?',
  174. goods: {
  175. },
  176. share:{
  177. title: '',
  178. imageUrl:'https://taohaoliang.oss-cn-beijing.aliyuncs.com/shareLogo.png',
  179. }
  180. };
  181. },
  182. onShow() {
  183. },
  184. onLoad(options) {
  185. const that = this
  186. uni.showLoading({
  187. title: '正在加载',
  188. mask:true
  189. })
  190. that.$api.request('goods', 'getBuyDetailInfo', {
  191. id: options.id
  192. }, failres => {
  193. that.$api.msg(failres.errmsg)
  194. uni.hideLoading()
  195. }).then(res => {
  196. that.goods = res.data
  197. // if(that.goods.soldCount >= that.goods.total){
  198. // that.goods.status = 0
  199. // }
  200. // that.share.title = that.goods.title
  201. uni.hideLoading()
  202. })
  203. },
  204. computed: {
  205. ...mapState(['hasLogin','userInfo'])
  206. },
  207. methods: {
  208. alertBtn() {
  209. uni.navigateTo({
  210. url: '/pages/public/login'
  211. })
  212. },
  213. cancelClick() {
  214. this.isShowAlert = false
  215. },
  216. contactUs() {
  217. const that = this
  218. uni.makePhoneCall({
  219. // 手机号
  220. phoneNumber: that.goods.buyerPhone,
  221. // 成功回调
  222. success: (res) => {
  223. console.log('调用成功!')
  224. },
  225. // 失败回调
  226. fail: (res) => {
  227. console.log('调用失败!')
  228. that.contactUs()
  229. }
  230. });
  231. },
  232. tradeNow(){
  233. if (!this.hasLogin) {
  234. // uni.showModal({
  235. // title: '提示',
  236. // content: '您尚未登录,是否立即登录?',
  237. // showCancel: true,
  238. // confirmText: '登录',
  239. // success: (e) => {
  240. // if (e.confirm) {
  241. // uni.navigateTo({
  242. // url: '/pages/public/login'
  243. // })
  244. // }
  245. // },
  246. // fail: () => {},
  247. // complete: () => {}
  248. // })
  249. this.isShowAlert = true;
  250. }
  251. else{
  252. const that = this
  253. uni.navigateTo({
  254. url: `/pageA/product/trade_buy?id=${that.goods.id}&packing=${that.goods.packing}&province=${that.goods.province}
  255. &city=${that.goods.city}&area=${that.goods.area}&storeName=${that.goods.storeName}&buyer=${that.goods.buyer}
  256. &companyId=${that.goods.companyId}&buyerPhone=${that.goods.buyerPhone}&minSale=${that.goods.minSale}
  257. &exsitCount=${that.goods.total}&isFutures=${that.goods.isFutures}&basis=${that.goods.basis}&unloadingFee=${that.goods.unloadingFee}`
  258. })
  259. }
  260. }
  261. },
  262. }
  263. </script>
  264. <style lang='scss'>
  265. page {
  266. background: $page-color-base;
  267. /* padding-bottom: 160upx; */
  268. }
  269. .container{
  270. padding-bottom: 160upx;
  271. }
  272. .icon-you {
  273. font-size: $font-base + 2upx;
  274. color: #888;
  275. }
  276. .carousel {
  277. height: 722upx;
  278. position: relative;
  279. swiper {
  280. height: 100%;
  281. }
  282. .image-wrapper {
  283. width: 100%;
  284. height: 100%;
  285. }
  286. .swiper-item {
  287. display: flex;
  288. justify-content: center;
  289. align-content: center;
  290. height: 750upx;
  291. overflow: hidden;
  292. image {
  293. width: 100%;
  294. height: 100%;
  295. }
  296. }
  297. }
  298. /* 标题简介 */
  299. .introduce-section {
  300. background: #fff;
  301. padding: 20upx 30upx;
  302. .title {
  303. font-size: 28upx;
  304. color: $font-color-dark;
  305. height: 50upx;
  306. line-height: 50upx;
  307. flex:3;
  308. }
  309. .title-tip {
  310. flex:2;
  311. }
  312. .price-box {
  313. display: flex;
  314. align-items: baseline;
  315. height: 120upx;
  316. padding: 10upx 0;
  317. font-size: 26upx;
  318. color: $uni-color-primary;
  319. }
  320. .price {
  321. font-size: $font-lg + 2upx;
  322. }
  323. .m-price {
  324. margin: 0 12upx;
  325. color: $font-color-light;
  326. text-decoration: line-through;
  327. }
  328. .coupon-tip {
  329. align-items: center;
  330. padding: 4upx 10upx;
  331. background: $uni-color-primary;
  332. font-size: $font-sm;
  333. color: #fff;
  334. border-radius: 6upx;
  335. line-height: 1;
  336. transform: translateY(-4upx);
  337. }
  338. .bot-row {
  339. display: flex;
  340. align-items: center;
  341. height: 50upx;
  342. font-size: $font-sm;
  343. color: $font-color-light;
  344. view {
  345. flex: 1;
  346. }
  347. }
  348. }
  349. .c-list {
  350. font-size: $font-sm + 2upx;
  351. color: $font-color-base;
  352. background: #fff;
  353. .c-row {
  354. display: flex;
  355. align-items: center;
  356. padding: 20upx 30upx;
  357. position: relative;
  358. }
  359. .tit {
  360. width: 180upx;
  361. }
  362. .con {
  363. flex: 1;
  364. color: $font-color-dark;
  365. .selected-text {
  366. margin-right: 10upx;
  367. }
  368. }
  369. .bz-list {
  370. height: 40upx;
  371. font-size: $font-sm+2upx;
  372. color: $font-color-dark;
  373. text {
  374. display: inline-block;
  375. margin-right: 30upx;
  376. }
  377. }
  378. .con-list {
  379. flex: 1;
  380. display: flex;
  381. flex-direction: column;
  382. color: $font-color-dark;
  383. line-height: 40upx;
  384. text-align: right;
  385. padding-right: 20upx;
  386. }
  387. .red {
  388. color: $uni-color-primary;
  389. }
  390. }
  391. /* 评价 */
  392. .eva-section {
  393. display: flex;
  394. flex-direction: column;
  395. padding: 20upx 30upx;
  396. background: #fff;
  397. margin-top: 16upx;
  398. .e-header {
  399. display: flex;
  400. align-items: center;
  401. height: 70upx;
  402. font-size: $font-sm + 2upx;
  403. color: $font-color-light;
  404. .tit {
  405. font-size: $font-base + 2upx;
  406. color: $font-color-dark;
  407. margin-right: 4upx;
  408. }
  409. .tip {
  410. flex: 1;
  411. text-align: right;
  412. }
  413. .icon-you {
  414. margin-left: 10upx;
  415. }
  416. }
  417. }
  418. .eva-box {
  419. display: flex;
  420. padding: 20upx 0;
  421. .portrait {
  422. flex-shrink: 0;
  423. width: 80upx;
  424. height: 80upx;
  425. border-radius: 100px;
  426. }
  427. .right {
  428. flex: 1;
  429. display: flex;
  430. flex-direction: column;
  431. font-size: $font-base;
  432. color: $font-color-base;
  433. padding-left: 26upx;
  434. .con {
  435. font-size: $font-base;
  436. color: $font-color-dark;
  437. padding: 20upx 0;
  438. }
  439. .bot {
  440. display: flex;
  441. justify-content: space-between;
  442. font-size: $font-sm;
  443. color: $font-color-light;
  444. }
  445. }
  446. }
  447. /* 详情 */
  448. .detail-desc {
  449. background: #fff;
  450. margin-top: 16upx;
  451. width: 750upx;
  452. .d-header {
  453. display: flex;
  454. justify-content: center;
  455. align-items: center;
  456. height: 80upx;
  457. font-size: $font-base + 2upx;
  458. color: $font-color-dark;
  459. position: relative;
  460. text {
  461. padding: 0 20upx;
  462. background: #fff;
  463. position: relative;
  464. z-index: 1;
  465. }
  466. &:after {
  467. position: absolute;
  468. left: 50%;
  469. top: 50%;
  470. transform: translateX(-50%);
  471. width: 300upx;
  472. height: 0;
  473. content: '';
  474. border-bottom: 1px solid #ccc;
  475. }
  476. }
  477. }
  478. /* 规格选择弹窗 */
  479. .attr-content {
  480. padding: 10upx 30upx;
  481. .a-t {
  482. display: flex;
  483. image {
  484. width: 170upx;
  485. height: 170upx;
  486. flex-shrink: 0;
  487. margin-top: -40upx;
  488. border-radius: 8upx;
  489. ;
  490. }
  491. .right {
  492. display: flex;
  493. flex-direction: column;
  494. padding-left: 24upx;
  495. font-size: $font-sm + 2upx;
  496. color: $font-color-base;
  497. line-height: 42upx;
  498. .price {
  499. font-size: $font-lg;
  500. color: $uni-color-primary;
  501. margin-bottom: 10upx;
  502. }
  503. .selected-text {
  504. margin-right: 10upx;
  505. }
  506. }
  507. }
  508. .attr-list {
  509. display: flex;
  510. flex-direction: column;
  511. font-size: $font-base + 2upx;
  512. color: $font-color-base;
  513. padding-top: 30upx;
  514. padding-left: 10upx;
  515. }
  516. .item-list {
  517. padding: 30upx 0 0;
  518. display: flex;
  519. flex-wrap: wrap;
  520. text {
  521. display: flex;
  522. align-items: center;
  523. justify-content: center;
  524. background: #eee;
  525. margin-right: 20upx;
  526. margin-bottom: 20upx;
  527. border-radius: 100upx;
  528. min-width: 60upx;
  529. height: 60upx;
  530. padding: 0 20upx;
  531. font-size: $font-base;
  532. color: $font-color-dark;
  533. }
  534. .selected {
  535. background: #fbebee;
  536. color: $uni-color-primary;
  537. }
  538. }
  539. }
  540. /* 弹出层 */
  541. .popup {
  542. position: fixed;
  543. left: 0;
  544. top: 0;
  545. right: 0;
  546. bottom: 0;
  547. z-index: 99;
  548. &.show {
  549. display: block;
  550. .mask {
  551. animation: showPopup 0.2s linear both;
  552. }
  553. .layer {
  554. animation: showLayer 0.2s linear both;
  555. }
  556. }
  557. &.hide {
  558. .mask {
  559. animation: hidePopup 0.2s linear both;
  560. }
  561. .layer {
  562. animation: hideLayer 0.2s linear both;
  563. }
  564. }
  565. &.none {
  566. display: none;
  567. }
  568. .mask {
  569. position: fixed;
  570. top: 0;
  571. width: 100%;
  572. height: 100%;
  573. z-index: 1;
  574. background-color: rgba(0, 0, 0, 0.4);
  575. }
  576. .layer {
  577. position: fixed;
  578. z-index: 99;
  579. bottom: 0;
  580. width: 100%;
  581. min-height: 40vh;
  582. border-radius: 10upx 10upx 0 0;
  583. background-color: #fff;
  584. .btn {
  585. height: 66upx;
  586. line-height: 66upx;
  587. border-radius: 100upx;
  588. background: $uni-color-primary;
  589. font-size: $font-base + 2upx;
  590. color: #fff;
  591. margin: 30upx auto 20upx;
  592. }
  593. }
  594. @keyframes showPopup {
  595. 0% {
  596. opacity: 0;
  597. }
  598. 100% {
  599. opacity: 1;
  600. }
  601. }
  602. @keyframes hidePopup {
  603. 0% {
  604. opacity: 1;
  605. }
  606. 100% {
  607. opacity: 0;
  608. }
  609. }
  610. @keyframes showLayer {
  611. 0% {
  612. transform: translateY(120%);
  613. }
  614. 100% {
  615. transform: translateY(0%);
  616. }
  617. }
  618. @keyframes hideLayer {
  619. 0% {
  620. transform: translateY(0);
  621. }
  622. 100% {
  623. transform: translateY(120%);
  624. }
  625. }
  626. }
  627. /* 底部操作菜单 */
  628. .page-bottom {
  629. position: fixed;
  630. left: 30upx;
  631. bottom: 30upx;
  632. z-index: 95;
  633. display: flex;
  634. justify-content: center;
  635. align-items: center;
  636. width: 690upx;
  637. height: 100upx;
  638. background: rgba(255, 255, 255, .9);
  639. box-shadow: 0 0 20upx 0 rgba(0, 0, 0, .5);
  640. border-radius: 16upx;
  641. .p-b-btn {
  642. display: flex;
  643. flex-direction: column;
  644. align-items: center;
  645. justify-content: center;
  646. font-size: $font-sm;
  647. color: $font-color-base;
  648. width: 96upx;
  649. height: 80upx;
  650. .yticon {
  651. font-size: 40upx;
  652. line-height: 48upx;
  653. color: $font-color-light;
  654. }
  655. &.active,
  656. &.active .yticon {
  657. color: $uni-color-primary;
  658. }
  659. .icon-fenxiang2 {
  660. font-size: 42upx;
  661. transform: translateY(-2upx);
  662. }
  663. .icon-shoucang {
  664. font-size: 46upx;
  665. }
  666. }
  667. }
  668. /* 优惠券面板 */
  669. .mask {
  670. display: flex;
  671. align-items: flex-end;
  672. position: fixed;
  673. left: 0;
  674. top: var(--window-top);
  675. bottom: 0;
  676. width: 100%;
  677. background: rgba(0, 0, 0, 0);
  678. z-index: 9995;
  679. transition: .3s;
  680. .mask-content {
  681. width: 100%;
  682. min-height: 30vh;
  683. max-height: 70vh;
  684. background: #f3f3f3;
  685. transform: translateY(100%);
  686. transition: .3s;
  687. overflow-y: scroll;
  688. }
  689. &.none {
  690. display: none;
  691. }
  692. &.show {
  693. background: rgba(0, 0, 0, .4);
  694. .mask-content {
  695. transform: translateY(0);
  696. }
  697. }
  698. }
  699. /* 优惠券列表 */
  700. .coupon-item {
  701. display: flex;
  702. flex-direction: column;
  703. margin: 20upx 24upx;
  704. background: #fff;
  705. .con {
  706. display: flex;
  707. align-items: center;
  708. position: relative;
  709. height: 120upx;
  710. padding: 0 30upx;
  711. &:after {
  712. position: absolute;
  713. left: 0;
  714. bottom: 0;
  715. content: '';
  716. width: 100%;
  717. height: 0;
  718. border-bottom: 1px dashed #f3f3f3;
  719. transform: scaleY(50%);
  720. }
  721. }
  722. .left {
  723. display: flex;
  724. flex-direction: column;
  725. justify-content: center;
  726. flex: 1;
  727. overflow: hidden;
  728. height: 100upx;
  729. }
  730. .title {
  731. font-size: 32upx;
  732. color: $font-color-dark;
  733. margin-bottom: 10upx;
  734. }
  735. .time {
  736. font-size: 24upx;
  737. color: $font-color-light;
  738. }
  739. .right {
  740. display: flex;
  741. flex-direction: column;
  742. justify-content: center;
  743. align-items: center;
  744. font-size: 26upx;
  745. color: $font-color-base;
  746. height: 100upx;
  747. }
  748. .price {
  749. font-size: 44upx;
  750. color: $base-color;
  751. &:before {
  752. content: '¥';
  753. font-size: 34upx;
  754. }
  755. }
  756. .tips {
  757. font-size: 24upx;
  758. color: $font-color-light;
  759. line-height: 60upx;
  760. padding-left: 30upx;
  761. }
  762. .circle {
  763. position: absolute;
  764. left: -6upx;
  765. bottom: -10upx;
  766. z-index: 10;
  767. width: 20upx;
  768. height: 20upx;
  769. background: #f3f3f3;
  770. border-radius: 100px;
  771. &.r {
  772. left: auto;
  773. right: -6upx;
  774. }
  775. }
  776. }
  777. .rich-img {
  778. width: 100%;
  779. height: auto;
  780. margin: 0;
  781. padding: 0;
  782. line-height: 0px;
  783. }
  784. button::after {
  785. border: none;
  786. }
  787. </style>