integralOrder - 副本.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754
  1. <template>
  2. <view class="exchangePrize">
  3. <!-- 表单 -->
  4. <view class="form">
  5. <view class="">
  6. <uni-forms :modelValue="formData">
  7. <uni-forms-item name="type" v-if="is_virtual == 0 ">
  8. <view class="selectType" @click="openSelect">
  9. <view class="uni-input">
  10. <text v-if="formData.type==''||formData.type==null"
  11. style="color: #999999 ;font-size: 30rpx;">请选择配送方式</text>
  12. <text v-if="formData.type!=''" style="font-size: 30rpx;">{{formData.type}}</text>
  13. </view>
  14. <image src="/static/icon/right.png"
  15. style="width: 14rpx;height: 24rpx;position: absolute;top:31rpx;right: 30rpx;">
  16. </image>
  17. </view>
  18. </uni-forms-item>
  19. <uni-forms-item name="name" v-if="formData.type!=''||isVerification==true">
  20. <uni-easyinput type="text" v-model="Data.receiver" placeholder="填写联系人" />
  21. </uni-forms-item>
  22. <uni-forms-item name="phone" v-if="formData.type!=''||isVerification==true">
  23. <uni-easyinput type="number" v-model="Data.phone" placeholder="填写联系电话" maxlength=11 />
  24. </uni-forms-item>
  25. <uni-forms-item name="region" v-if="formData.type=='快递配送'">
  26. <pickerAddress @change="change">
  27. <!-- <uni-easyinput type="text" v-model="formData.region" placeholder="所在地区" /> -->
  28. <view class="selectType">
  29. <view class="uni-input">
  30. <text v-if="formData.region==''||formData.region==null"
  31. style="color: #999999 ; font-size: 30rpx; ">所在地区</text>
  32. <text style="font-size: 30rpx;"
  33. v-if="formData.region!=''">{{formData.region}}</text>
  34. </view>
  35. <image src="/static/icon/right.png"
  36. style="width: 14rpx;height: 24rpx;position: absolute;top:31rpx;right: 30rpx;">
  37. </image>
  38. </view>
  39. </pickerAddress>
  40. </uni-forms-item>
  41. <uni-forms-item name="region" v-if="formData.type=='快递配送'">
  42. <textarea placeholder-style="#999" class="text-area" type="text" placeholder="详细地址"
  43. v-model="Data.address" />
  44. </uni-forms-item>
  45. <uni-forms-item name="region" v-if="formData.type=='到店自提'||isVerification==true">
  46. <view class="selectType" @click="openShop">
  47. <view class="uni-input">
  48. <text v-if="formData.shop==''||formData.shop==null"
  49. style="color: #999999 ; font-size: 30rpx; ">请选择门店</text>
  50. <text style="font-size: 30rpx;" v-if="formData.shop!=''">{{formData.shop}}</text>
  51. <text class="distance" v-if="formData.shop!=''">{{formData.distanceToMe}}km</text>
  52. </view>
  53. <image src="/static/icon/right.png"
  54. style="width: 14rpx;height: 24rpx;position: absolute;top:31rpx;right: 30rpx;">
  55. </image>
  56. </view>
  57. </uni-forms-item>
  58. </uni-forms>
  59. </view>
  60. </view>
  61. <!-- 产品信息 -->
  62. <view class="msg">
  63. <view class="title">
  64. <text>产品信息</text>
  65. </view>
  66. <view class="shopCard">
  67. <image :src="productDetail.cover_img">
  68. </image>
  69. <view style="margin-left: 24rpx;">
  70. <text class="name">{{productDetail.name}}</text>
  71. <text class="tag" v-if="attrArry[0]">{{attrArry[0].attr_group_name == '包装'?attrArry[1].attr_group_name.slice(0,2)+'装':'' }} {{integral}}积分</text>
  72. </view>
  73. </view>
  74. <view class="shopNumber">
  75. <text>件数</text>
  76. <text>1件</text>
  77. </view>
  78. <view class="shopNumber">
  79. <text>积分</text>
  80. <text>{{integral}}积分</text>
  81. </view>
  82. <view style="width: 694rpx;height: 4rpx;border: 2rpx dashed #F2F2F2;margin-top: 38rpx;"></view>
  83. <view class="shopNumber" style="margin-top: 38rpx;">
  84. <text>合计</text>
  85. <text>{{integral}}积分</text>
  86. </view>
  87. </view>
  88. <!-- 兑换按钮 -->
  89. <view class="bottombtn" @click="goExchange">
  90. <view class="btnitem">
  91. <text>确认兑换</text>
  92. </view>
  93. </view>
  94. <!-- 配送方式-->
  95. <uni-popup ref="Recipient" type="bottom" mask-background-color=" rgba(0,0,0,0.7);">
  96. <view class="pop">
  97. <view class="popuptitle">
  98. <view @click="cancelBtn" style="width: 68rpx;color: #999;font-size: 32rpx;">
  99. <text>取消</text>
  100. </view>
  101. <view>
  102. <text style="font-weight: bold; font-size: 32rpx; color: #080F18; ">配送方式</text>
  103. </view>
  104. <view @click="sureBtn" style="width: 68rpx;"><text
  105. style="font-size: 32rpx; color: #FF6200;line-height: 34rpx">确定</text></view>
  106. </view>
  107. <view class="chooselag">
  108. <view @click="companyed(item.name,index)" class="language" v-for="(item,index) in typeSelect "
  109. :key="index" :class="[activeIndex === index?'sgActive': ''] ">
  110. <text>{{item.name}}</text>
  111. </view>
  112. </view>
  113. </view>
  114. </uni-popup>
  115. <!-- 门店选择-->
  116. <uni-popup ref="shopSelected" type="bottom" mask-background-color=" rgba(0,0,0,0.7);">
  117. <view class="pop">
  118. <view class="popuptitle">
  119. <view @click="cancelShopBtn" style="width: 68rpx;color: #999;font-size: 32rpx;">
  120. <text>取消</text>
  121. </view>
  122. <view>
  123. <text style="font-weight: bold; font-size: 32rpx; color: #080F18; ">配送方式</text>
  124. </view>
  125. <view @click="sureShopBtn" style="width: 68rpx;"><text
  126. style="font-size: 32rpx; color: #FF6200;line-height: 34rpx">确定</text></view>
  127. </view>
  128. <view class="chooselag">
  129. <view@click="companyedShop(item.name,item.id,item.distanceToMe,index)" class="language"
  130. v-for="(item,index) in hotelList" :key="index"
  131. :class="[activeIndex2 === index?'sgActive': ''] ">
  132. <text>{{item.name}}</text>
  133. </view>
  134. </view>
  135. </view>
  136. </uni-popup>
  137. </view>
  138. </template>
  139. <script>
  140. import pickerAddress from '@/uni_modules/hu-pickerAddress/hu-pickerAddress.vue'
  141. export default {
  142. components: {
  143. pickerAddress
  144. },
  145. data() {
  146. return {
  147. //产品规格数组
  148. attrArry:[],
  149. //产品规格
  150. attrName:'',
  151. //积分
  152. integral: '',
  153. //选中激活样式
  154. activeIndex: '',
  155. activeIndex2: '',
  156. //经纬度
  157. latitude: '',
  158. longitude: '',
  159. //实物奖品0,虚拟奖品1
  160. is_virtual: '',
  161. // activeIndex: null,
  162. // 是否核销
  163. isVerification: false,
  164. // 产品信息
  165. productDetail: '',
  166. // 表单数据
  167. formData: {
  168. // 表单数据
  169. type: '',
  170. region: '',
  171. shop: '',
  172. distanceToMe: ''
  173. },
  174. Data: {
  175. // 快递类型(1.快递发货 2.到店自提也是线下核销)
  176. express_type: '',
  177. // 收货人
  178. receiver: "",
  179. // 联系电话
  180. phone: '',
  181. // 地址ID,最小行政单位地区ID,express_type=1时必传
  182. area_id: '',
  183. // 详细地址,express_type=1时必传
  184. address: '',
  185. //门店ID,express_type=2时必传
  186. hotel_id: 0,
  187. // 产品ID
  188. product_id: '',
  189. // 产品规格ID
  190. attr: '',
  191. },
  192. // 配送方式
  193. typeSelect: [{
  194. name: '快递配送',
  195. }, {
  196. name: '到店自提',
  197. }],
  198. // 是否显示配送方式
  199. istype: true,
  200. // 选择门店
  201. hotelList: []
  202. }
  203. },
  204. onLoad(op) {
  205. console.log(op, "产品id")
  206. this.Data.product_id = op.product_id
  207. this.Data.attr = op.attr
  208. this.integral = op.integral
  209. this.attrName= op.attrName
  210. this.attrArry= this.attrName.split("-").map(item=>{
  211. return {
  212. attr_group_name: item
  213. }
  214. })
  215. console.log(this.attrArry[1].attr_group_name.split(','),1111111111111)
  216. this.getProductDetail(op.product_id)
  217. this.init()
  218. },
  219. methods: {
  220. //初始化
  221. async init() {
  222. await this.goLocation();
  223. await this.getHotel();
  224. },
  225. space(lat1, lng1, lat2, lng2) {
  226. var radLat1 = lat1 * Math.PI / 180.0;
  227. var radLat2 = lat2 * Math.PI / 180.0;
  228. var a = radLat1 - radLat2;
  229. var b = lng1 * Math.PI / 180.0 - lng2 * Math.PI / 180.0;
  230. var s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) +
  231. Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2)));
  232. s = s * 6378.137;
  233. s = Math.round(s * 10000) / 10000;
  234. return s // 单位千米
  235. },
  236. //门店列表
  237. getHotel(id) {
  238. this.$api.hotel.getHotelList({
  239. page: 1,
  240. type: 2,
  241. latitude: this.latitude,
  242. longitude: this.longitude,
  243. product_id: id
  244. }).then(res => {
  245. this.hotelList = res.data.data
  246. this.hotelList.map(item => {
  247. item.distanceToMe = this.space(this.latitude, this.longitude, item.latitude, item
  248. .longitude).toFixed(1);
  249. return item;
  250. })
  251. console.log(this.hotelList, '-------->this.hotelList');
  252. //最近的酒店
  253. this.formData.shop = this.hotelList[0].name
  254. this.formData.distanceToMe = this.hotelList[0].distanceToMe
  255. this.Data.hotel_id = this.hotelList[0].id
  256. })
  257. },
  258. //获取定位
  259. goLocation() {
  260. let _this = this
  261. uni.getLocation({
  262. type: "gcj02", //返回可以用于wx.openLocation的经纬度
  263. success: function(res) {
  264. _this.latitude = res.latitude
  265. _this.longitude = res.longitude
  266. },
  267. fail: function(res) {
  268. console.log(res)
  269. }
  270. })
  271. },
  272. // 获取产品信息
  273. getProductDetail(id) {
  274. this.$loading()
  275. this.$api.product.getProductDetail({
  276. product_id: id
  277. }).then(res => {
  278. console.log(res, "产品信息")
  279. this.$hideLoading()
  280. if (res.code == 0) {
  281. this.productDetail = res.data
  282. this.is_virtual = res.data.is_virtual
  283. if (this.is_virtual == 1) {
  284. this.isVerification = true
  285. this.Data.express_type = 2
  286. this.goLocation()
  287. setTimeout(() => {
  288. this.getHotel(id)
  289. }, 1000)
  290. }
  291. } else {
  292. uni.showToast({
  293. title: res.msg,
  294. icon: 'none'
  295. })
  296. }
  297. })
  298. },
  299. //订单兑换
  300. goExchange() {
  301. if (this.formData.type == '' && this.is_virtual == 0) {
  302. uni.showToast({
  303. icon: 'none',
  304. title: '请选择配送方式'
  305. })
  306. return
  307. }
  308. if (this.Data.receiver == '') {
  309. uni.showToast({
  310. icon: 'none',
  311. title: '请填写联系人'
  312. })
  313. return
  314. }
  315. if (this.Data.phone == '') {
  316. uni.showToast({
  317. icon: 'none',
  318. title: '请填写联系电话'
  319. })
  320. return
  321. }
  322. if (this.formData.region == '' && this.Data.express_type == 1) {
  323. uni.showToast({
  324. icon: 'none',
  325. title: '请填写所在地区'
  326. })
  327. return
  328. }
  329. if (this.Data.address == '' && this.Data.express_type == 1) {
  330. uni.showToast({
  331. icon: 'none',
  332. title: '请填写详细地址'
  333. })
  334. return
  335. }
  336. if (this.Data.hotel_id == '' && this.Data.express_type == 2) {
  337. uni.showToast({
  338. icon: 'none',
  339. title: '请选择门店'
  340. })
  341. return
  342. }
  343. if (this.is_virtual == 0) {
  344. let _this = this
  345. uni.showModal({
  346. title: '提示',
  347. content: '确认使用积分兑换',
  348. success: function(res) {
  349. if (res.confirm) {
  350. if (_this.Data.express_type == 1) {
  351. _this.$api.product.integralExchange({
  352. ..._this.Data
  353. }).then(res => {
  354. if (res.code == 0) {
  355. uni.navigateTo({
  356. url: `/pages/my/prize/exchangeDetail?productType=1&integral=${_this.integral}`
  357. })
  358. } else {
  359. uni.showToast({
  360. icon: 'none',
  361. title: res.msg
  362. })
  363. }
  364. })
  365. } else {
  366. let obj = {}
  367. obj.express_type = _this.Data.express_type
  368. obj.product_id = _this.Data.product_id
  369. obj.receiver = _this.Data.receiver
  370. obj.phone = _this.Data.phone
  371. obj.hotel_id = _this.Data.hotel_id
  372. obj.attr = _this.Data.attr
  373. _this.$api.product.integralExchange({
  374. ...obj
  375. }).then(res => {
  376. if (res.code == 0) {
  377. uni.navigateTo({
  378. url: `/pages/my/prize/exchangeDetail?productType=1&integral=${_this.integral}`
  379. })
  380. } else {
  381. uni.showToast({
  382. icon: 'none',
  383. title: res.msg
  384. })
  385. }
  386. })
  387. }
  388. } else if (res.cancel) {
  389. console.log('用户点击取消');
  390. }
  391. }
  392. });
  393. } else {
  394. let _this = this
  395. uni.showModal({
  396. title: '提示',
  397. content: '确认使用积分兑换',
  398. success: function(res) {
  399. if (res.confirm) {
  400. let obj = {}
  401. obj.express_type = _this.Data.express_type
  402. obj.product_id = _this.Data.product_id
  403. obj.receiver = _this.Data.receiver
  404. obj.phone = _this.Data.phone
  405. obj.hotel_id = _this.Data.hotel_id
  406. obj.attr = _this.Data.attr
  407. _this.$api.product.integralExchange({
  408. ...obj
  409. }).then(res => {
  410. if (res.code == 0) {
  411. uni.navigateTo({
  412. url: `/pages/my/prize/exchangeDetail?productType=1&integral=${_this.integral}`
  413. })
  414. } else {
  415. uni.showToast({
  416. icon: 'none',
  417. title: res.msg
  418. })
  419. }
  420. })
  421. } else if (res.cancel) {
  422. console.log('用户点击取消');
  423. }
  424. }
  425. });
  426. }
  427. },
  428. change(ret) {
  429. this.formData.region = ret.data.join('-')
  430. this.Data.area_id = ret.code[2]
  431. },
  432. //打开门店弹框
  433. openShop() {
  434. this.$refs.shopSelected.open('bottom')
  435. },
  436. companyedShop(i, id, distance, index) {
  437. this.typestatus2 = i
  438. this.distanceToMe1 = distance
  439. this.activeIndex2 = index
  440. this.Data.hotel_id = id
  441. },
  442. //确定按钮
  443. sureShopBtn() {
  444. if (this.typestatus2 == undefined) {
  445. uni.showToast({
  446. icon: "none",
  447. title: '请选择门店'
  448. })
  449. } else {
  450. this.formData.shop = this.typestatus2
  451. this.formData.distanceToMe = this.distanceToMe1
  452. this.$refs.shopSelected.close()
  453. }
  454. },
  455. //取消按钮
  456. cancelShopBtn() {
  457. this.$refs.shopSelected.close()
  458. },
  459. // 打开配送弹框
  460. openSelect() {
  461. this.$refs.Recipient.open('bottom')
  462. },
  463. //选择配送方式
  464. companyed(i, index) {
  465. this.typestatus1 = i
  466. this.activeIndex = index
  467. if (index == 0) {
  468. this.Data.express_type = 1
  469. } else if (index == 1) {
  470. this.Data.express_type = 2
  471. this.goLocation()
  472. setTimeout(() => {
  473. this.getHotel(this.Data.product_id)
  474. }, 1000)
  475. }
  476. },
  477. //确定按钮
  478. sureBtn() {
  479. if (this.typestatus1 == undefined) {
  480. uni.showToast({
  481. icon: "none",
  482. title: '请选择配送方式'
  483. })
  484. } else {
  485. this.formData.type = this.typestatus1
  486. this.$refs.Recipient.close()
  487. }
  488. },
  489. //取消按钮
  490. cancelBtn() {
  491. this.$refs.Recipient.close()
  492. },
  493. }
  494. }
  495. </script>
  496. <style lang="scss" scoped>
  497. $pageColor:#F9F9F9;
  498. $bgColor:#FFFFFF;
  499. @mixin flexlayout {
  500. display: flex;
  501. align-items: center;
  502. justify-content: center;
  503. }
  504. .exchangePrize {
  505. height: 100%;
  506. // background: #f9f9f9;
  507. }
  508. .distance {
  509. position: absolute;
  510. right: 60rpx;
  511. top: 23rpx;
  512. }
  513. .uni-input-area {
  514. width: 100%;
  515. height: 98rpx;
  516. padding: 34rpx 20rpx;
  517. background: #FFFFFF;
  518. border-radius: 8rpx;
  519. border: 2rpx solid #EAEAEA;
  520. font-size: 30rpx;
  521. color: #000;
  522. line-height: 30rpx;
  523. }
  524. //底部弹框样式
  525. .pop {
  526. width: 100%;
  527. height: 616rpx;
  528. background: #FFFFFF;
  529. border-radius: 16rpx 16rpx 0 0;
  530. overflow: scroll;
  531. .popuptitle {
  532. position: fixed;
  533. top: 0;
  534. display: flex;
  535. width: 100%;
  536. padding: 0 30rpx;
  537. height: 122rpx;
  538. background: #fff;
  539. display: flex;
  540. align-items: center;
  541. justify-content: space-between;
  542. image {
  543. display: inline-block;
  544. width: 33rpx;
  545. height: 33rpx;
  546. border-radius: 1rpx;
  547. }
  548. }
  549. .chooselag {
  550. flex-direction: column;
  551. justify-content: center;
  552. align-items: center;
  553. background: #FFFFFF;
  554. padding: 0 30rpx;
  555. overflow-y: scroll;
  556. margin-top: 122rpx;
  557. .language {
  558. width: 100%;
  559. font-size: 32rpx;
  560. font-weight: 400;
  561. color: #777777;
  562. border-bottom: 1rpx #E2E4EA solid;
  563. display: flex;
  564. align-items: center;
  565. justify-content: center;
  566. padding-top: 40rpx;
  567. padding-bottom: 40rpx;
  568. }
  569. .sgActive {
  570. color: #FF6200 !important;
  571. font-weight: bold !important;
  572. }
  573. }
  574. }
  575. .text-area {
  576. width: 100%;
  577. height: 130rpx;
  578. padding: 34rpx 20rpx;
  579. background: #FFFFFF;
  580. border-radius: 8rpx;
  581. border: 2rpx solid #EAEAEA;
  582. font-size: 30rpx;
  583. color: #000;
  584. line-height: 30rpx;
  585. }
  586. ::v-deep .uni-forms-item {
  587. // height: 98rpx;
  588. margin-bottom: 0;
  589. margin-top: 24rpx;
  590. font-size: 30rpx !important;
  591. &:first-child {
  592. margin-top: 0;
  593. }
  594. }
  595. ::v-deep .is-input-border {
  596. background-color: #ffffff !important;
  597. border: 2rpx solid #EAEAEA !important;
  598. height: 98rpx;
  599. }
  600. ::v-deep .uni-icons {
  601. color: #c0c4cc !important;
  602. }
  603. ::v-deep .uni-easyinput__placeholder-class {
  604. font-size: 30rpx !important;
  605. color: #999 !important;
  606. }
  607. ::v-deep .uni-easyinput__content-input {
  608. font-size: 30rpx !important;
  609. color: #000 !important;
  610. }
  611. .form {
  612. background: $pageColor;
  613. width: 750rpx;
  614. padding: 24rpx 30rpx;
  615. box-sizing: border-box;
  616. .selectType {
  617. width: 690rpx;
  618. height: 98rpx;
  619. background: #FFFFFF;
  620. border-radius: 8rpx;
  621. border: 2rpx solid #EAEAEA;
  622. display: flex;
  623. align-items: center;
  624. padding-left: 20rpx;
  625. box-sizing: border-box;
  626. position: relative;
  627. }
  628. }
  629. .msg {
  630. width: 750rpx;
  631. height: 700rpx;
  632. background: $bgColor;
  633. border-radius: 12rpx 12rpx 0px 0px;
  634. padding: 32rpx 30rpx;
  635. .title {
  636. margin-bottom: 24rpx;
  637. text {
  638. font-size: 32rpx;
  639. font-family: PingFang-SC-Bold, PingFang-SC;
  640. font-weight: bold;
  641. color: #080F18;
  642. }
  643. }
  644. .shopCard {
  645. margin-top: 28rpx;
  646. width: 694rpx;
  647. height: 164rpx;
  648. background: #F4F5F6;
  649. border-radius: 10rpx;
  650. display: flex;
  651. align-items: center;
  652. image {
  653. width: 132rpx;
  654. height: 132rpx;
  655. margin-left: 16rpx;
  656. display: inline-block;
  657. border-radius: 10rpx;
  658. }
  659. .name {
  660. font-size: 28rpx;
  661. font-family: PingFangSC-Medium, PingFang SC;
  662. font-weight: 500;
  663. color: #080F18;
  664. display: block;
  665. }
  666. .tag {
  667. font-size: 24rpx;
  668. font-family: PingFang-SC-Medium, PingFang-SC;
  669. font-weight: 500;
  670. color: #666666;
  671. }
  672. }
  673. .shopNumber {
  674. display: flex;
  675. justify-content: space-between;
  676. align-items: center;
  677. margin-top: 25rpx;
  678. text {
  679. font-size: 26rpx;
  680. font-family: PingFang-SC-Medium, PingFang-SC;
  681. font-weight: 500;
  682. color: #000000;
  683. }
  684. }
  685. }
  686. .bottombtn {
  687. width: 690rpx;
  688. height: 92rpx;
  689. background: linear-gradient(270deg, #FF6200 0%, #FF9342 100%);
  690. border-radius: 12rpx;
  691. margin-left: 30rpx;
  692. position: fixed;
  693. bottom: 72rpx;
  694. @include flexlayout() .btnitem {
  695. @include flexlayout() text {
  696. font-size: 30rpx;
  697. font-family: PingFang-SC-Bold, PingFang-SC;
  698. font-weight: bold;
  699. color: $bgColor;
  700. }
  701. }
  702. }
  703. </style>