exchangePrize.vue 18 KB

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