integralOrder.vue 18 KB

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