exchangePrize.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787
  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. console.log(this.id,'---->订单id');
  199. this.isPhy = o.isPhy
  200. if (this.isPhy == 1) {
  201. //实物奖品
  202. await this.getPrizeList(0)
  203. if(this.product_id){
  204. this.init(this.Data.product_id)
  205. console.log(1111);
  206. }
  207. } else {
  208. //虚拟奖品
  209. await this.getPrizeList(1)
  210. if(this.product_id){
  211. this.init(this.Data.product_id)
  212. console.log(222);
  213. }
  214. }
  215. }
  216. },
  217. methods: {
  218. //初始化
  219. async init(id) {
  220. await this.goLocation();
  221. await this.getHotel(id);
  222. },
  223. //菜单index切换
  224. async checked(index, id) {
  225. this.isActive = index
  226. if (this.isActive == 0) {
  227. this.formData.type = '快递配送'
  228. this.Data.express_type = 1
  229. } else {
  230. this.formData.type = '门店自提'
  231. this.Data.express_type = 2
  232. await this.goLocation()
  233. await this.getHotel(this.Data.product_id)
  234. }
  235. },
  236. space(lat1, lng1, lat2, lng2) {
  237. var radLat1 = lat1 * Math.PI / 180.0;
  238. var radLat2 = lat2 * Math.PI / 180.0;
  239. var a = radLat1 - radLat2;
  240. var b = lng1 * Math.PI / 180.0 - lng2 * Math.PI / 180.0;
  241. var s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) +
  242. Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2)));
  243. s = s * 6378.137;
  244. s = Math.round(s * 10000) / 10000;
  245. return s // 单位千米
  246. },
  247. //门店列表
  248. getHotel(id) {
  249. this.$api.hotel.getHotelList({
  250. page: 1,
  251. type: 2,
  252. latitude: this.latitude,
  253. longitude: this.longitude,
  254. product_id: id
  255. }).then(res => {
  256. this.hotelList = res.data.data.map(item => {
  257. item.distanceToMe = this.space(this.latitude, this.longitude, item.latitude, item
  258. .longitude).toFixed(1);
  259. return item;
  260. })
  261. console.log(this.hotelList, '-------->this.hotelList');
  262. //最近的酒店
  263. this.formData.shop = this.hotelList[0].name
  264. this.formData.distanceToMe = this.hotelList[0].distanceToMe
  265. this.Data.hotel_id = this.hotelList[0].id
  266. })
  267. },
  268. //获取定位
  269. goLocation() {
  270. let _this = this
  271. uni.getLocation({
  272. type: "gcj02", //返回可以用于wx.openLocation的经纬度
  273. success: function(res) {
  274. _this.latitude = res.latitude
  275. _this.longitude = res.longitude
  276. },
  277. fail: function(res) {
  278. console.log(res)
  279. }
  280. })
  281. },
  282. //订单兑换
  283. goExDetail() {
  284. if (this.formData.type == '' && this.isPhy == 1) {
  285. uni.showToast({
  286. icon: 'none',
  287. title: '请选择配送方式'
  288. })
  289. return
  290. }
  291. if (this.Data.receiver == '') {
  292. uni.showToast({
  293. icon: 'none',
  294. title: '请填写联系人'
  295. })
  296. return
  297. }
  298. if (this.Data.phone == '') {
  299. uni.showToast({
  300. icon: 'none',
  301. title: '请填写联系电话'
  302. })
  303. return
  304. }
  305. if (this.formData.region == '' && this.Data.express_type == 1) {
  306. uni.showToast({
  307. icon: 'none',
  308. title: '请填写所在地区'
  309. })
  310. return
  311. }
  312. if (this.Data.address == '' && this.Data.express_type == 1) {
  313. uni.showToast({
  314. icon: 'none',
  315. title: '请填写详细地址'
  316. })
  317. return
  318. }
  319. if (this.Data.hotel_id == '' && this.Data.express_type == 2) {
  320. uni.showToast({
  321. icon: 'none',
  322. title: '请选择门店'
  323. })
  324. return
  325. }
  326. if (this.isPhy == 1) {
  327. if (this.Data.express_type == 1) {
  328. this.$api.product.orderExchange({
  329. ...this.Data
  330. }).then(res => {
  331. if (res.code == 0) {
  332. uni.navigateTo({
  333. url: `/pages/my/prize/exchangeDetail?productType=2`
  334. })
  335. } else {
  336. uni.showToast({
  337. icon: 'none',
  338. title: res.msg
  339. })
  340. }
  341. })
  342. } else {
  343. let obj = {}
  344. obj.express_type = this.Data.express_type
  345. obj.order_id = this.Data.order_id
  346. obj.receiver = this.Data.receiver
  347. obj.phone = this.Data.phone
  348. obj.hotel_id = this.Data.hotel_id
  349. this.$api.product.orderExchange({
  350. ...obj
  351. }).then(res => {
  352. if (res.code == 0) {
  353. uni.navigateTo({
  354. url: `/pages/my/prize/exchangeDetail?productType=2`
  355. })
  356. } else {
  357. uni.showToast({
  358. icon: 'none',
  359. title: res.msg
  360. })
  361. }
  362. })
  363. }
  364. } else {
  365. let obj = {}
  366. obj.express_type = this.Data.express_type
  367. obj.order_id = this.Data.order_id
  368. obj.receiver = this.Data.receiver
  369. obj.phone = this.Data.phone
  370. obj.hotel_id = this.Data.hotel_id
  371. this.$api.product.orderExchange({
  372. ...obj
  373. }).then(res => {
  374. if (res.code == 0) {
  375. uni.navigateTo({
  376. url: `/pages/my/prize/exchangeDetail?productType=2`
  377. })
  378. } else {
  379. uni.showToast({
  380. icon: 'none',
  381. title: res.msg
  382. })
  383. }
  384. })
  385. }
  386. },
  387. //打开门店弹框
  388. openShop() {
  389. this.$refs.shopSelected.open('bottom')
  390. },
  391. companyedShop(i, id, distance, index) {
  392. this.typestatus2 = i
  393. this.activeIndex2 = index
  394. this.distanceToMe1 = distance
  395. this.Data.hotel_id = id
  396. },
  397. //确定按钮
  398. sureShopBtn() {
  399. if (this.typestatus2 == undefined) {
  400. uni.showToast({
  401. icon: "none",
  402. title: '请选择门店'
  403. })
  404. } else {
  405. this.formData.shop = this.typestatus2
  406. this.formData.distanceToMe = this.distanceToMe1
  407. this.$refs.shopSelected.close()
  408. }
  409. },
  410. //取消按钮
  411. cancelShopBtn() {
  412. this.$refs.shopSelected.close()
  413. },
  414. change(ret) {
  415. this.formData.region = ret.data.join('-')
  416. this.Data.area_id = ret.code[2]
  417. },
  418. //取消按钮
  419. cancelBtn() {
  420. this.$refs.Recipient.close()
  421. },
  422. //选择配送方式
  423. companyed(i, index) {
  424. this.typestatus1 = i
  425. this.activeIndex = index
  426. console.log(i, this.activeIndex)
  427. if (index == 0) {
  428. this.Data.express_type = 1
  429. } else if (index == 1) {
  430. this.Data.express_type = 2
  431. this.goLocation()
  432. setTimeout(() => {
  433. this.getHotel(this.product_id)
  434. }, 1000)
  435. }
  436. },
  437. //确定按钮
  438. sureBtn() {
  439. if (this.typestatus1 == undefined) {
  440. uni.showToast({
  441. icon: "none",
  442. title: '请选择配送方式'
  443. })
  444. } else {
  445. this.formData.type = this.typestatus1
  446. this.$refs.Recipient.close()
  447. }
  448. },
  449. // 打开配送弹框
  450. openSelect() {
  451. this.$refs.Recipient.open('bottom')
  452. },
  453. // 获取奖品列表
  454. getPrizeList(type) {
  455. this.$api.lottery.getDrawRecord({
  456. is_virtual: type,
  457. page: 0
  458. }).then(res => {
  459. this.prizeDetail = res.data.data.filter(item => {
  460. return item.id == this.id
  461. })
  462. this.coverImg = this.prizeDetail[0].img_urls
  463. this.Data.order_id = this.prizeDetail[0].order_id
  464. this.Data.product_id = this.prizeDetail[0].product_id
  465. this.product_id = this.Data.product_id
  466. console.log(this.product_id, '----->this.product_id');
  467. this.init(this.product_id)
  468. if (this.isPhy == 2) {
  469. this.isVerification = true
  470. this.Data.express_type = 2
  471. this.goLocation()
  472. setTimeout(() => {
  473. this.getHotel(this.product_id)
  474. }, 500)
  475. }else if(this.isPhy == 1 ){
  476. this.formData.type = '快递配送'
  477. this.Data.express_type = 1
  478. }
  479. })
  480. },
  481. }
  482. }
  483. </script>
  484. <style lang="scss" scoped>
  485. $pageColor:#F9F9F9;
  486. $bgColor:#FFFFFF;
  487. @mixin flexlayout {
  488. display: flex;
  489. align-items: center;
  490. justify-content: center;
  491. }
  492. .exchangePrize {
  493. height: 100%;
  494. background: $bgColor;
  495. }
  496. .distance {
  497. position: absolute;
  498. right: 60rpx;
  499. top: 15rpx;
  500. }
  501. ::v-deep .uni-forms-item {
  502. margin-bottom: 24rpx;
  503. }
  504. ::v-deep .uni-forms-item__content {
  505. font-size: 30rpx;
  506. border: 2rpx solid #EAEAEA;
  507. padding: 18rpx 0;
  508. border-radius: 8rpx;
  509. background-color: #fff;
  510. }
  511. ::v-deep .is-input-border {
  512. border: none;
  513. }
  514. //奖品备注
  515. .shopRemark{
  516. margin-top: 30rpx;
  517. margin-bottom: 66rpx;
  518. padding: 30rpx 24rpx 26rpx;
  519. background: #F4F5F6;
  520. border-radius: 12rpx;
  521. .shopRemark-title{
  522. font-size: 30rpx;
  523. font-weight: bold;
  524. color: #333333;
  525. }
  526. .shopRemark-content{
  527. margin-top: 20rpx;
  528. font-size: 24rpx;
  529. font-weight: bold;
  530. color: #666666;
  531. }
  532. }
  533. .form {
  534. background: $pageColor;
  535. width: 750rpx;
  536. padding: 24rpx 30rpx 12rpx 30rpx;
  537. box-sizing: border-box;
  538. .selectType {
  539. width: 690rpx;
  540. height: 68rpx;
  541. background: #FFFFFF;
  542. display: flex;
  543. align-items: center;
  544. padding-left: 20rpx;
  545. box-sizing: border-box;
  546. position: relative;
  547. }
  548. .selectTypeNone{
  549. color: #df6220;
  550. padding-left: 20rpx;
  551. }
  552. }
  553. .msg {
  554. width: 750rpx;
  555. height: 700rpx;
  556. background: $bgColor;
  557. border-radius: 12rpx 12rpx 0px 0px;
  558. padding: 32rpx 30rpx;
  559. .title {
  560. margin-bottom: 24rpx;
  561. text {
  562. font-size: 32rpx;
  563. font-family: PingFang-SC-Bold, PingFang-SC;
  564. font-weight: bold;
  565. color: #080F18;
  566. }
  567. }
  568. .shopCard {
  569. margin-top: 28rpx;
  570. width: 694rpx;
  571. height: 164rpx;
  572. background: #F4F5F6;
  573. border-radius: 10rpx;
  574. display: flex;
  575. align-items: center;
  576. image {
  577. width: 132rpx;
  578. height: 132rpx;
  579. margin-left: 16rpx;
  580. display: inline-block;
  581. border-radius: 10rpx;
  582. }
  583. .name {
  584. font-size: 28rpx;
  585. font-family: PingFangSC-Medium, PingFang SC;
  586. font-weight: 500;
  587. color: #080F18;
  588. display: block;
  589. }
  590. .tag {
  591. font-size: 24rpx;
  592. font-family: PingFang-SC-Medium, PingFang-SC;
  593. font-weight: 500;
  594. color: #666666;
  595. }
  596. }
  597. .shopNumber {
  598. display: flex;
  599. justify-content: space-between;
  600. align-items: center;
  601. margin-top: 25rpx;
  602. text {
  603. font-size: 26rpx;
  604. font-family: PingFang-SC-Medium, PingFang-SC;
  605. font-weight: 500;
  606. color: #000000;
  607. }
  608. }
  609. }
  610. .bottombtn {
  611. width: 690rpx;
  612. height: 92rpx;
  613. background: linear-gradient(270deg, #FF6200 0%, #FF9342 100%);
  614. border-radius: 12rpx;
  615. margin-left: 30rpx;
  616. position: fixed;
  617. bottom: 72rpx;
  618. @include flexlayout();
  619. .btnitem {
  620. @include flexlayout();
  621. text {
  622. font-size: 30rpx;
  623. font-family: PingFang-SC-Bold, PingFang-SC;
  624. font-weight: bold;
  625. color: $bgColor;
  626. }
  627. }
  628. }
  629. .pop {
  630. width: 100%;
  631. height: 616rpx;
  632. background: #FFFFFF;
  633. border-radius: 16rpx 16rpx 0 0;
  634. overflow: scroll;
  635. .popuptitle {
  636. position: fixed;
  637. top: 0;
  638. display: flex;
  639. width: 100%;
  640. padding: 0 30rpx;
  641. height: 122rpx;
  642. background: #fff;
  643. display: flex;
  644. align-items: center;
  645. justify-content: space-between;
  646. image {
  647. display: inline-block;
  648. width: 33rpx;
  649. height: 33rpx;
  650. border-radius: 1rpx;
  651. }
  652. }
  653. .chooselag {
  654. flex-direction: column;
  655. justify-content: center;
  656. align-items: center;
  657. background: #FFFFFF;
  658. padding: 0 30rpx;
  659. overflow-y: scroll;
  660. margin-top: 122rpx;
  661. .language {
  662. width: 100%;
  663. font-size: 32rpx;
  664. font-weight: 400;
  665. color: #777777;
  666. border-bottom: 1rpx #E2E4EA solid;
  667. display: flex;
  668. align-items: center;
  669. justify-content: center;
  670. padding-top: 40rpx;
  671. padding-bottom: 40rpx;
  672. }
  673. .sgActive {
  674. color: #FF6200 !important;
  675. font-weight: bold !important;
  676. }
  677. }
  678. }
  679. .text-area {
  680. width: 100%;
  681. height: 130rpx;
  682. padding: 0rpx 20rpx;
  683. background: #FFFFFF;
  684. border-radius: 8rpx;
  685. font-size: 30rpx;
  686. color: #000;
  687. line-height: 30rpx;
  688. }
  689. ::v-deep .uni-icons {
  690. color: #c0c4cc !important;
  691. font-size: 24px !important;
  692. }
  693. ::v-deep .uni-easyinput__content-input {
  694. color: #333333;
  695. font-size: 30rpx;
  696. }
  697. ::v-deep .uni-easyinput__placeholder-class {
  698. color: #999 !important;
  699. font-size: 30rpx !important;
  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>