integralOrder.vue 19 KB

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