猎豆优选小程序

optimization.vue 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600
  1. <template>
  2. <view>
  3. <!-- 顶部按钮 -->
  4. <view class="search-wrap" :style="{'top': `${statusBarHeight + 10}px`}"><u-icon name="search" color="#FFFFFF" size="44" @click="onClickSearch"></u-icon></view>
  5. <!-- 优选内容 -->
  6. <swiper class="swiper" @change="change" :style="'height:' + swiperHeight + 'px' " v-if="goodsList && goodsList.length" vertical>
  7. <block v-for="(goodsItem, index) in goodsList">
  8. <swiper-item :key="goodsItem.goods.goods_id" :item-id="(goodsItem.goods.video_list && goodsItem.goods.video_list[0] && goodsItem.goods.video_list[0].playUrl ? 'video' : 'img') + '&&' + goodsItem.goods.goods_id">
  9. <block v-if="loadLazyData.filter((v)=>{return v== index}).length > 0">
  10. <!-- 视频 -->
  11. <!-- <videoPlayer :ref="'player' + goodsItem.goods.goods_id" v-if="goodsItem.goods.video_list && goodsItem.goods.video_list[0] && goodsItem.goods.video_list[0].playUrl" :video_info="goodsItem.goods.video_list[0]" :goods_id="goodsItem.goods.goods_id" :imgSwiperGoodsId="imgSwiperGoodsId"></videoPlayer> -->
  12. <view class="video-wrap" v-if="goodsItem.goods.video_list && goodsItem.goods.video_list[0] && goodsItem.goods.video_list[0].playUrl">
  13. <image class="filterBgImg" :src="goodsItem.goods.video_list[0].imageUrl"></image>
  14. <video class="myVideo" :style="{height: `${100 * goodsItem.goods.video_list[0].high / goodsItem.goods.video_list[0].width}vw`}" @click="clickVideo" @play="changePlay" :id="'myVideo'+ goodsItem.goods.goods_id" :poster="goodsItem.goods.video_list[0].imageUrl" :src="goodsItem.goods.video_list[0].playUrl" :loop="true"></video>
  15. </view>
  16. <swiper :key="goodsItem.goods.goods_id + 'img_swiper'" class="goods-item-img-swiper" v-else circular :autoplay="imgSwiperGoodsId == goodsItem.goods.goods_id ? true : false">
  17. <swiper-item v-for="(img, idx_img) in goodsItem.goods.img_list" :key="idx_img + '&' + goodsItem.goods.goods_id">
  18. <image class="filterBgImg" :src="img.url"></image>
  19. <image class="img" :src="img.url" mode="widthFix"></image>
  20. </swiper-item>
  21. </swiper>
  22. <!-- S 商品信息 -->
  23. <view class="info-wrap">
  24. <view @click="onClickGoodsItem(goodsItem.goods)">
  25. <view class="tp-wrap">
  26. <view class="lt-wrap">
  27. <text class="price-title">{{goodsItem.goods.is_coupon == 1 && goodsItem.goods.coupon_price > 0 ? '券后价' : '' }} ¥</text>
  28. <text class="price">{{ goodsItem.goods.discount_price }}</text>
  29. <text class="price-old">¥{{ goodsItem.goods.price }}</text>
  30. </view>
  31. <view class="rt-wrap">
  32. <view class="salesVolume" v-if="goodsItem.goods.volume > 100">
  33. 月销:{{ $NumberHandle({value:goodsItem.goods.volume,comma:true}) }}+
  34. </view>
  35. </view>
  36. </view>
  37. <view class="bm-wrap">
  38. <image class="shop-icon" v-if="goodsItem.goods.shop_type == 0" src="https://ld.726p.com/ldyx_static/imgs/icon-tb.png" />
  39. <image class="shop-icon" v-else-if="goodsItem.goods.shop_type == 1" src="https://ld.726p.com/ldyx_static/imgs/icon-tmall.png" />
  40. <image class="shop-icon" v-else-if="goodsItem.goods.shop_type == 4" src="https://ld.726p.com/ldyx_static/imgs/jd-icon.png" />
  41. {{ goodsItem.goods.title }}
  42. </view>
  43. <view class="btm-wrap">
  44. <view class="flex">
  45. <view v-if="goodsItem.goods.coupon_price > 0" class="coupon-wrap">
  46. <text class="label">券</text>
  47. <text class="value">¥{{ goodsItem.goods.coupon_price }}</text>
  48. </view>
  49. <view v-if="user_level > 1 && goodsItem.goods.commission_price > 0" class="coupon-wrap commission-wrap">
  50. <text class="label">返</text>
  51. <text class="value">¥{{ goodsItem.goods.commission_price }}</text>
  52. </view>
  53. </view>
  54. <view class="goDetail">
  55. <text>详情</text>
  56. <u-icon name="arrow-right" color="#FB3F3C" size="26"></u-icon>
  57. </view>
  58. </view>
  59. </view>
  60. <!-- 底部按钮 -->
  61. <view class="footer-wrap" :style="{ 'padding-bottom': isIphoneX ? '66rpx' : '22rpx' }">
  62. <view class="btn-collect-wrap" v-if="goodsItem.goods.is_favorites == 1" @click="onClickSetFavorites({index: index, goodsItem: goodsItem.goods})">
  63. <image class="btn-collect-img" src="https://ld.726p.com/ldyx_static/imgs/icon-collect-on.png" />
  64. <text class="btn-collect-text">已收藏</text>
  65. </view>
  66. <view class="btn-collect-wrap" v-else @click="onClickSetFavorites({index: index, goodsItem: goodsItem.goods})">
  67. <image class="btn-collect-img" src="https://ld.726p.com/ldyx_static/imgs/icon-collect.png" />
  68. <text class="btn-collect-text">收藏</text>
  69. </view>
  70. <!-- 已登录按钮 -->
  71. <view v-if="isLogin" class="btn-wrap">
  72. <view class="btn-item lt-btn" @click="onClickFXZQ(goodsItem.goods)">
  73. <text class="btn-text">{{ user_level == 1 ? '分享' : '分享赚钱' }}</text>
  74. </view>
  75. <view class="btn-item rt-btn" @click="onClickGWSQ({index: index, goods_id: goodsItem.goods.goods_id})">
  76. <text class="btn-text">购物省钱</text>
  77. </view>
  78. </view>
  79. <!-- 未登录按钮 -->
  80. <view v-else class="btn-wrap">
  81. <view class="btn-item lt-btn" @click="onClickGWSQ({index: index, goods_id: goodsItem.goods.goods_id})">
  82. <text class="btn-text">直接购买</text>
  83. </view>
  84. <view class="btn-item rt-btn" @click="onClickFYJGM({index: index, goods_id: goodsItem.goods.goods_id})">
  85. <text class="btn-text">返佣金购买</text>
  86. </view>
  87. </view>
  88. </view>
  89. </view>
  90. <!-- E 商品信息 -->
  91. </block>
  92. </swiper-item>
  93. </block>
  94. </swiper>
  95. </view>
  96. </template>
  97. <script>
  98. const app = getApp()
  99. export default {
  100. data() {
  101. return {
  102. statusBarHeight: app.globalData.statusBarHeight,
  103. navbarBackground: {
  104. backgroundColor: 'transparent'
  105. },
  106. user_level: uni.getStorageSync('userInfo') ? uni.getStorageSync('userInfo').user_level : '', // 当前用户等级
  107. filter: {
  108. page: 1,
  109. page_size: 20,
  110. nowTotal: 0,
  111. hasNext: true,
  112. },
  113. goodsList: [], // 商品列表数据
  114. swiperHeight: '800', // swiper的高度
  115. imgSwiperGoodsId: '', //图片轮播ID,判断是否自动轮播
  116. play: false,
  117. loadLazyData: [-1,0,1], //懒加载数据ID,显示3张数据,上中下
  118. elite_id: 2,
  119. isLogin:false
  120. }
  121. },
  122. onShow(){
  123. const userInfo = uni.getStorageSync('userInfo') || ''
  124. const user_id = uni.getStorageSync('user_id') || ''
  125. this.user_level = uni.getStorageSync('userInfo') ? uni.getStorageSync('userInfo').user_level : ''; // 当前用户等级
  126. if (userInfo && user_id) {
  127. this.isLogin = true
  128. } else {
  129. this.isLogin = false
  130. }
  131. if (uni.getStorageSync('loginPageBack')){
  132. // 获取商品详情数据
  133. this.handleGetGoodsList()
  134. uni.setStorageSync('loginPageBack',false)
  135. }
  136. },
  137. onLoad() {
  138. this.swiperHeight = `${uni.getSystemInfoSync().windowHeight}`;
  139. this.handleGetGoodsList()
  140. },
  141. methods: {
  142. onClickSearch() {
  143. uni.navigateTo({
  144. url: '/pages/subPackages/home/search',
  145. })
  146. },
  147. // 监听点击“返佣金购买” => 跳登录页面
  148. onClickFYJGM() {
  149. uni.navigateTo({
  150. url: '/pages/subPackages/login/loginPhone'
  151. })
  152. },
  153. // 监听点击“分享赚钱” => 判断是否授权(京东商品不需要授权) => 生成图片 => 分享图片
  154. onClickFXZQ(goodsItem) {
  155. uni.navigateTo({
  156. url: `/pages/subPackages/home/shareDetail?shop_type=${goodsItem.shop_type}&goods_id=${encodeURIComponent(goodsItem.goods_id)}`
  157. })
  158. },
  159. // 监听点击“购物省钱” => 判断是否授权(京东商品不需要授权) => 获取口令 => 复制口令
  160. onClickGWSQ({index, goods_id}) {
  161. if (this.goodsList[index].goods.weChatShortLink) { // 列表中存在weChatShortLink 从列表中取
  162. wx.navigateToMiniProgram({
  163. 'shortLink': this.goodsList[index].goods.weChatShortLink
  164. })
  165. } else {// 列表中不存在weChatShortLink,调详情接口,并负值给列表
  166. this.handleGetgoodsItem(goods_id).then((data)=>{
  167. if (data.url_info && data.url_info.weChatShortLink) {
  168. wx.navigateToMiniProgram({
  169. 'shortLink': data.url_info.weChatShortLink
  170. })
  171. this.goodsList[index].goods.goods_id == goods_id ? this.goodsList[index].goods.weChatShortLink = data.url_info.weChatShortLink : '';
  172. } else {
  173. uni.showToast({ title: '购买失败!', icon: 'none' })
  174. }
  175. }).catch(()=>{
  176. uni.showToast({ title: '购买失败!', icon: 'none' })
  177. })
  178. }
  179. },
  180. // 获取商品详情数据
  181. handleGetgoodsItem(goods_id) {
  182. return new Promise(async (resolve,reject)=>{
  183. try {
  184. uni.showLoading({ title: '加载中...', mask: true })
  185. const url = this.$api_jd.goods_detail
  186. const params = { goods_id: goods_id.toString() }
  187. const { data: res = {} } = await this.$postJSON(url, params)
  188. if (res && res.errno == 0 && res.rst.data) {
  189. resolve(res.rst.data)
  190. } else {
  191. reject(false)
  192. uni.showToast({ title: res.err || '操作失败', icon: 'none' })
  193. }
  194. } catch (error) {
  195. reject(false)
  196. } finally {
  197. uni.hideLoading()
  198. }
  199. })
  200. },
  201. // 监听点击收藏
  202. onClickSetFavorites({goodsItem,index}) {
  203. if (!this.isLogin) { // 未登录 => 去登录
  204. uni.navigateTo({
  205. url: '/pages/subPackages/login/loginPhone'
  206. })
  207. } else {
  208. this.handleSetFavorites({goodsItem,index})
  209. }
  210. },
  211. async handleSetFavorites({goodsItem,index}) {
  212. const { goods_id, is_coupon, discount_price, price, coupon_price, commission_rate, coupon_end_time, coupon_start_time, shop_type } = goodsItem
  213. try {
  214. uni.showLoading({ title: '加载中...', mask: true })
  215. const url = this.$api.goodsItem_addFavorites
  216. const params = { goods_id, is_coupon, discount_price, price, coupon_price, commission_rate, coupon_end_time, coupon_start_time, shop_type }
  217. const { data: res } = await this.$postJSON(url, params)
  218. if (res && res.errno == 0) {
  219. // 设置成功 => 更新状态
  220. this.goodsList[index].goods.is_favorites = this.goodsList[index].goods.is_favorites == 1 ? 0 : 1;
  221. } else {
  222. uni.showToast({ title: res.err || '操作失败', icon: 'none' })
  223. }
  224. } catch (error) {
  225. console.log('error => ', error)
  226. } finally {
  227. uni.hideLoading()
  228. }
  229. },
  230. onClickGoodsItem(goodsItem) {
  231. try{ app.categoryNew_countBuy({shop_type: goodsItem.shop_type, type:0,path:'jd_optimization',category_id:this.elite_id}) }catch(e){} ; // 数据上报
  232. uni.navigateTo({
  233. url: `/pages/subPackages/home/jdGoodsDetail?goods_id=${encodeURIComponent(goodsItem.goods_id)}`
  234. })
  235. },
  236. change(res) {
  237. let currentItemId = res.detail.currentItemId;
  238. // 懒加载数据改变
  239. let current = res.detail.current;
  240. this.loadLazyData = [current - 1, current, current + 1];
  241. // 判断是否加载到倒数第二个数据,如果是,则分页加载下一页
  242. if (this.loadLazyData[2] == this.filter.nowTotal - 1) {
  243. if (!this.filter.hasNext) {
  244. uni.showToast({
  245. title: '没有更多了',
  246. icon: 'none'
  247. })
  248. return false;
  249. }
  250. this.filter.page++;
  251. this.handleGetGoodsList()
  252. }
  253. // 关闭之前的视频
  254. let oldVideoContext = uni.createVideoContext("myVideo" + this.imgSwiperGoodsId, this);
  255. oldVideoContext && oldVideoContext.pause ? oldVideoContext.pause() : '';
  256. this.play = false;
  257. // 滑动到的商品ID
  258. this.imgSwiperGoodsId = currentItemId.split('&&')[1];
  259. // 页面是视频,则播放视频
  260. if (currentItemId.split('&&')[0] == 'video') {
  261. this.playVideo()
  262. }
  263. },
  264. clickVideo() {
  265. if (!this.play) {
  266. this.playthis()
  267. } else {
  268. this.pauseVideo()
  269. }
  270. },
  271. playVideo() {
  272. let nowVideoContext = uni.createVideoContext("myVideo" + this.imgSwiperGoodsId, this);
  273. if (this.play === false) {
  274. nowVideoContext.seek(0)
  275. nowVideoContext.play()
  276. this.play = true
  277. }
  278. },
  279. pauseVideo() {
  280. let nowVideoContext = uni.createVideoContext("myVideo" + this.imgSwiperGoodsId, this);
  281. if (this.play === true) {
  282. nowVideoContext.pause()
  283. this.play = false
  284. }
  285. },
  286. playthis() {
  287. let nowVideoContext = uni.createVideoContext("myVideo" + this.imgSwiperGoodsId, this);
  288. if (this.play === false) {
  289. nowVideoContext.play()
  290. this.play = true
  291. }
  292. },
  293. changePlay() {
  294. this.play = true
  295. },
  296. // 获取商品获取商品列表数据列表
  297. async handleGetGoodsList() {
  298. if (!this.filter.hasNext) return false
  299. try {
  300. if (this.filter.page == 1) {
  301. uni.showLoading({ title: '加载中...', mask: true })
  302. }
  303. const url = this.$api_jd.jd_goodsListByEliteId
  304. const params = {
  305. elite_id: this.elite_id,
  306. page: this.filter.page,
  307. page_size: this.filter.page_size
  308. }
  309. const { data: res = {} } = await this.$postJSON(url, params)
  310. if (res && res.errno == 0 && Array.isArray(res.rst.data)) {
  311. if (!res.rst.data.length) { // 当前页无数据 => 更改下一页标识
  312. this.filter.hasNext = false
  313. }
  314. if (!Array.isArray(res.rst.data)) return;
  315. let res_data = res.rst.data;
  316. res_data = res_data.filter((v) => { // 排除不可用数据
  317. return v.goods
  318. })
  319. this.goodsList = [...this.goodsList, ...res_data];
  320. this.filter.nowTotal = this.goodsList.length;
  321. this.$nextTick(()=>{ // 初始化时,如果第一个数据是视频,则播放视频
  322. if (!Array.isArray(this.goodsList) || this.goodsList.length <= 0) return;
  323. if (this.filter.page == 1) {
  324. let good = this.goodsList[0].goods;
  325. this.imgSwiperGoodsId = good.goods_id;
  326. if (good && good.video_list && good.video_list[0] && good.video_list[0].playUrl) {
  327. this.playthis()
  328. }
  329. }
  330. })
  331. } else {
  332. uni.showToast({
  333. title: res.err || '操作失败',
  334. icon: 'none'
  335. })
  336. }
  337. } catch (error) {
  338. console.log('error => ', error)
  339. } finally {
  340. uni.hideLoading()
  341. }
  342. },
  343. }
  344. }
  345. </script>
  346. <style scoped lang="scss">
  347. .search-wrap{
  348. position: fixed;
  349. left: 38rpx;
  350. top: 80rpx;
  351. z-index: 9;
  352. }
  353. .goods-item-img-swiper{
  354. width: 100%;
  355. height: 100%;
  356. position: relative;
  357. z-index: -1;
  358. .img{
  359. width: 100%;
  360. position: absolute;
  361. top:0;
  362. bottom:0;
  363. margin:auto;
  364. }
  365. }
  366. .filterBgImg{
  367. width: 100%;
  368. height: 100%;
  369. position: absolute;
  370. top: 0;
  371. left: 0;
  372. filter: blur(45px)
  373. }
  374. .video-wrap{
  375. width:100%;
  376. height:100%;
  377. position: relative;
  378. z-index: -1;
  379. .myVideo{
  380. width:100vw;
  381. height: 100vw;
  382. position: absolute;
  383. top:0;
  384. bottom:0;
  385. margin:auto;
  386. }
  387. }
  388. .swiper {
  389. width: 100%;
  390. height: 1180rpx;
  391. margin: auto;
  392. }
  393. .info-wrap {
  394. width: 90vw;
  395. position: absolute;
  396. bottom: 20rpx;
  397. left: 0;
  398. right: 0;
  399. margin:auto;
  400. background-color: #FFFFFF;
  401. padding: 10rpx 20rpx 0;
  402. border-radius: 20rpx;
  403. z-index: 9999;
  404. .tp-wrap {
  405. display: flex;
  406. align-items: center;
  407. justify-content: space-between;
  408. .lt-wrap {
  409. display: flex;
  410. align-items: baseline;
  411. .price-title{
  412. color: #FF4040;
  413. font-size: 28rpx;
  414. line-height: 40rpx;
  415. }
  416. .price {
  417. font-size: 38rpx;
  418. color: #FF4040;
  419. font-weight: bold;
  420. line-height: 40rpx;
  421. margin-left: 10rpx;
  422. }
  423. .price-old {
  424. margin-left: 10rpx;
  425. font-size: 24rpx;
  426. line-height: 30rpx;
  427. text-decoration: line-through;
  428. color: #999999;
  429. }
  430. }
  431. .rt-wrap {
  432. display: flex;
  433. align-items: center;
  434. .btn-wrap {
  435. display: flex;
  436. align-items: center;
  437. .btn-img {
  438. width: 32rpx;
  439. height: 32rpx;
  440. }
  441. .btn-text {
  442. font-size: 25rpx;
  443. color: #999;
  444. }
  445. }
  446. }
  447. }
  448. .bm-wrap {
  449. margin-top: 3rpx;
  450. font-size: 28rpx;
  451. font-weight: bold;
  452. line-height: 36rpx;
  453. color: #333333;
  454. .shop-icon {
  455. margin-right: 6rpx;
  456. width: 30rpx;
  457. height: 30rpx;
  458. margin-top: -4rpx;
  459. border-radius: 4rpx;
  460. vertical-align: middle; // 解决图片下边框缝隙问题
  461. }
  462. }
  463. .btm-wrap {
  464. display: flex;
  465. align-items: center;
  466. justify-content: space-between;
  467. margin-top: 9rpx;
  468. .coupon-wrap {
  469. display: flex;
  470. align-items: center;
  471. width: 130rpx;
  472. height: 34rpx;
  473. background-image: url("https://ld.726p.com/ldyx_static/imgs/bg-quan-small.png");
  474. background-repeat: no-repeat;
  475. background-size: 100% 100%;
  476. color: #FF4040;
  477. font-size: 22rpx;
  478. line-height: 34rpx;
  479. .label {
  480. width: 40rpx;
  481. text-align: center;
  482. }
  483. .value {
  484. flex: 1;
  485. text-align: center;
  486. }
  487. }
  488. .goDetail{
  489. color: #FF4040;
  490. font-size: 26rpx;
  491. font-weight: bold;
  492. }
  493. .commission-wrap {
  494. background-image: url("https://ld.726p.com/ldyx_static/imgs/fan.png");
  495. color: #AE4300;
  496. margin-left: 12rpx;
  497. }
  498. }
  499. }
  500. .footer-wrap {
  501. // background-color: #fff;
  502. display: flex;
  503. align-items: center;
  504. justify-content: center;
  505. width: 100%;
  506. height: 86rpx;
  507. padding: 20rpx;
  508. border-top: 1rpx solid #eee;
  509. margin-top: 10rpx;
  510. .btn-wrap {
  511. flex:1;
  512. background-color: #FFBB93;
  513. display: flex;
  514. align-items: center;
  515. height: 64rpx;
  516. border-radius: 64rpx;
  517. overflow: hidden;
  518. .btn-item {
  519. height: 100%;
  520. flex: 1;
  521. display: flex;
  522. justify-content: center;
  523. align-items: center;
  524. .btn-icon {
  525. margin-right: 10rpx;
  526. }
  527. .btn-text {
  528. color: #fff;
  529. font-size: 28rpx;
  530. font-weight: bold;
  531. line-height: 64rpx;
  532. }
  533. &.lt-btn {
  534. .btn-icon {
  535. width: 42rpx;
  536. height: 38rpx;
  537. }
  538. }
  539. &.rt-btn {
  540. background: linear-gradient(90deg, #FF9048 0%, #FB3F3C 100%);
  541. border-radius: 42rpx;
  542. .btn-icon {
  543. width: 42rpx;
  544. height: 44rpx;
  545. }
  546. }
  547. }
  548. }
  549. }
  550. .btn-collect-wrap{
  551. display: flex;
  552. flex-direction: column;
  553. align-items: center;
  554. margin-right: 28rpx;
  555. .btn-collect-img{
  556. width: 34rpx;
  557. height: 34rpx;
  558. }
  559. .btn-collect-text{
  560. color: #666666;
  561. font-size: 22rpx;
  562. line-height: 28rpx;
  563. }
  564. }
  565. .salesVolume{
  566. background: url('https://ld.726p.com/ldyx_static/imgs/huo-bg.png') no-repeat;
  567. background-size: 100%;
  568. width: 200rpx;
  569. line-height: 28rpx;
  570. color: #FF4040;
  571. font-size: 24rpx;
  572. line-height: 54rpx;
  573. text-align: center;
  574. padding-left: 16rpx;
  575. }
  576. .swiper-list {
  577. margin-top: 40rpx;
  578. margin-bottom: 0;
  579. }
  580. .uni-common-mt {
  581. margin-top: 60rpx;
  582. position: relative;
  583. }
  584. .info {
  585. position: absolute;
  586. right: 20rpx;
  587. }
  588. .uni-padding-wrap {
  589. width: 550rpx;
  590. padding: 0 100rpx;
  591. }
  592. .flex{
  593. display: flex;
  594. align-items: center;
  595. }
  596. </style>