integralOrder.vue 19 KB

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