integralOrder.vue 18 KB

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