detail.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893
  1. <template>
  2. <mobile-frame>
  3. <view class="main">
  4. <view class="onemain">
  5. <scroll-view scroll-y="true" class="scroll-view" scroll-with-animation :scroll-into-view="topItem"
  6. @scroll="handleScroll">
  7. <view class="list-scroll-view" id="top">
  8. <view class="one">
  9. <swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff"
  10. indicator-active-color="#FB1438" :autoplay="true" :interval="3000" :duration="1000">
  11. <swiper-item class="list" v-for="(item,index) in bannerList" :key="index">
  12. <image class="image" :src="item.url" mode="">
  13. </image>
  14. </swiper-item>
  15. </swiper>
  16. </view>
  17. <view class="two">
  18. <view class="two_1">
  19. <view class="money_1">
  20. <text>¥</text>
  21. <text>{{specs&&specs.length>0?specs[0].sell_money:''}}</text>
  22. </view>
  23. <view class="money_2">
  24. <text>¥</text>
  25. <text>{{specs&&specs.length>0?specs[0].flow_money:''}}</text>
  26. </view>
  27. </view>
  28. <view class="two_2">{{info.name}}</view>
  29. <view class="two_3">{{info.shot_brief}}</view>
  30. <view class="two_4">
  31. <text>运费{{specs&&specs.length>0?specs[0].freight:''}}元</text>
  32. <text>{{info.send_time}}内发货</text>
  33. </view>
  34. </view>
  35. <view class="thr">
  36. <view class="thr_1" @click="toChoose">
  37. <view class="title">选择规格</view>
  38. <text class="iconfont icon-jiantouyou"></text>
  39. </view>
  40. <view class="thr_1">
  41. <view class="title">商品评价({{info.comment||0}})</view>
  42. <text class="iconfont icon-jiantouyou"></text>
  43. </view>
  44. </view>
  45. <view class="four">
  46. <view class="four_1">
  47. <image class="image" :src="shop.logo&&shop.logo.length>0?shop.logo[0].url:''"></image>
  48. <view class="other">
  49. <view class="name">{{shop.name}}</view>
  50. <view class="other_1"><text>宝贝数</text>{{shop.num||0}}</view>
  51. </view>
  52. </view>
  53. <view class="four_2">
  54. <view class="grade">商品:<text>{{shop.goods_score||0}}</text></view>|
  55. <view class="grade">发货:<text>{{shop.send_score||0}}</text></view>|
  56. <view class="grade">服务:<text>{{shop.service_score||0}}</text></view>
  57. </view>
  58. <view class="four_2">
  59. <view class="btn" @tap="toShop('pagesHome/shop/index')">进入店铺</view>
  60. <view class="btn" @tap="shopCollect">{{shop_collect==true?'已关注':'关注'}}</view>
  61. </view>
  62. </view>
  63. <view class="five">
  64. <view class="five_1">{{info.brief}}</view>
  65. <view class="five_2" v-for="(item,index) in bannerList" :key="index">
  66. <image class="image" :src="item.url"></image>
  67. </view>
  68. </view>
  69. </view>
  70. </scroll-view>
  71. </view>
  72. <view class="foot">
  73. <uni-goods-nav :options="options" :button-group="buttonGroup" @click="onClick"
  74. @buttonClick="buttonClick" />
  75. </view>
  76. </view>
  77. <view class="collect">
  78. <text v-if="!collection" @click="toCollect" class="iconfont icon-yduishoucangkongxin"></text>
  79. <text v-else @click="toCollect" class="iconfont icon-yduishoucangshixin-copy"></text>
  80. </view>
  81. <view class="menu">
  82. <text @click="toMenu" class="iconfont icon-gengduo"></text>
  83. </view>
  84. <view class="menu_1" v-if="menu">
  85. <view class="title" v-for="(item,index) in barList" :key="index" @click="toPath(item)">
  86. <image class="image" :src="item.normal"></image>
  87. <view class="name">{{item.name}}</view>
  88. </view>
  89. </view>
  90. <view class="backTop" v-if="isShow==true">
  91. <text @click="backTop" class="iconfont icon-fanhuidingbu"></text>
  92. </view>
  93. <uni-popup ref="popup" background-color="#fff" type="bottom">
  94. <view class="content">
  95. <view class="one">
  96. <image class="image" :src="info.file&&info.file.length>0?info.file[0].url:''"></image>
  97. <view class="other">
  98. <view class="money">
  99. <text>¥</text>
  100. <text>{{money}}</text>
  101. </view>
  102. <view class="other_1">
  103. 已选: <text>{{Selected}}</text>
  104. </view>
  105. </view>
  106. <view class="btn">
  107. <text @click="toClose" class="iconfont icon-shanchu"></text>
  108. </view>
  109. </view>
  110. <view class="two">
  111. <view class="two_1">规格</view>
  112. <view class="two_2">
  113. <text v-for="(item,index) in specs" :key="index" @click="toStyle(item,index)"
  114. :class="{ 'style': isActive==index}">{{item.name}}
  115. </text>
  116. <!-- <text class="group" v-if="item.can_group=='0'" @click="toGroup(item)">参团</text> -->
  117. </view>
  118. </view>
  119. <view class="thr">
  120. <text>数量</text>
  121. <view class="count">
  122. <uni-number-box :min="1" :max="max" :disabled="disabled" v-model="num" @change="toCount">
  123. </uni-number-box>
  124. </view>
  125. <text>库存{{max}}</text>
  126. </view>
  127. <view class="btn">
  128. <view @click="toBuy(type)" class="button1">{{type=='0'?'加入购物车':'立即购买'}}</view>
  129. <view @click="toGroup" class="button2">参团</view>
  130. </view>
  131. </view>
  132. </uni-popup>
  133. </mobile-frame>
  134. </template>
  135. <script>
  136. export default {
  137. data() {
  138. return {
  139. barList: [{
  140. name: '首页',
  141. route: 'pages/home/index',
  142. normal: require('@/static/shouye.png'),
  143. },
  144. {
  145. name: '微店',
  146. route: 'pages/store/index',
  147. normal: require('@/static/store.png'),
  148. },
  149. {
  150. name: '购物车',
  151. route: 'pages/market/index',
  152. normal: require('@/static/market.png'),
  153. },
  154. {
  155. name: '我的',
  156. route: 'pages/my/index',
  157. normal: require('@/static/my.png'),
  158. },
  159. ],
  160. options: [{
  161. icon: 'shop',
  162. text: '店铺',
  163. route: 'pagesHome/shop/index',
  164. },
  165. {
  166. icon: 'cart',
  167. text: '购物车',
  168. route: 'pages/market/index',
  169. },
  170. // {
  171. // icon: 'chat',
  172. // text: '客服',
  173. // }
  174. ],
  175. buttonGroup: [{
  176. text: '加入购物车',
  177. backgroundColor: 'linear-gradient(90deg, #FFCD1E, #FF8A18)',
  178. color: '#fff',
  179. type: '0'
  180. },
  181. {
  182. text: '立即购买',
  183. backgroundColor: 'linear-gradient(90deg, #FE6035, #EF1224)',
  184. color: '#fff',
  185. type: '1'
  186. }
  187. ],
  188. // 商品id
  189. id: '',
  190. user: {},
  191. // 轮播图
  192. bannerList: [],
  193. // 商品详情
  194. info: {},
  195. // 商店详情
  196. shop: {},
  197. // 规格情况
  198. specs: [],
  199. // 已选
  200. Selected: '',
  201. // 是否显示返回顶部
  202. isShow: false,
  203. topItem: '',
  204. // 商品收藏
  205. collection: false,
  206. // 店铺收藏
  207. shop_collect: false,
  208. // 菜单显示
  209. menu: false,
  210. disabled: true,
  211. // 显示文字判断
  212. type: '0',
  213. // 选择规格
  214. isActive: -1,
  215. money: 0,
  216. // 计数器
  217. num: 1,
  218. max: 0,
  219. // 分享
  220. share: {},
  221. };
  222. },
  223. onLoad: async function(e) {
  224. const that = this;
  225. that.$set(that, `id`, e.id || '');
  226. },
  227. onShow: async function() {
  228. const that = this;
  229. await that.search();
  230. await that.configShare();
  231. },
  232. methods: {
  233. //店铺,
  234. // 购物车,客服跳转
  235. onClick(e) {
  236. const that = this;
  237. if (e.index == '0' && e.content.route) {
  238. // 进入店铺
  239. that.toShop();
  240. } else {
  241. uni.reLaunch({
  242. url: `/${e.content.route}`
  243. })
  244. }
  245. },
  246. // 进入店铺
  247. toShop() {
  248. const that = this;
  249. uni.navigateTo({
  250. url: `/pagesHome/shop/index?id=${that.shop._id}`
  251. })
  252. },
  253. // 公共跳转
  254. toCommon(e) {
  255. uni.navigateTo({
  256. url: `/${e}`
  257. })
  258. },
  259. // 收藏
  260. async toCollect() {
  261. const that = this;
  262. let user = that.user;
  263. if (user) {
  264. let res = await that.$api(`/storeGoods`, `POST`, {
  265. customer: user._id,
  266. goods: that.id
  267. });
  268. if (res.errcode == '0') {
  269. uni.showToast({
  270. title: res.data.msg,
  271. icon: 'none'
  272. })
  273. that.$set(that, `collection`, res.data.result)
  274. }
  275. } else {
  276. uni.showToast({
  277. title: '无用户登录无法收藏商品',
  278. icon: 'none'
  279. })
  280. }
  281. },
  282. // 关注商铺
  283. async shopCollect() {
  284. const that = this;
  285. let user = that.user;
  286. if (user && user._id) {
  287. let res = await that.$api(`/storeShop`, `POST`, {
  288. customer: user._id,
  289. shop: that.shop._id
  290. });
  291. if (res.errcode == '0') {
  292. uni.showToast({
  293. title: res.data.msg,
  294. icon: 'none'
  295. })
  296. that.$set(that, `shop_collect`, res.data.result)
  297. }
  298. } else {
  299. uni.showToast({
  300. title: '无用户登录无法关注商铺',
  301. icon: 'none'
  302. })
  303. }
  304. },
  305. // 参团
  306. toGroup() {
  307. const that = this;
  308. if (that.Selected) {
  309. let specs_id;
  310. let specs = that.specs.find(i => i.name == that.Selected)
  311. if (specs.can_group == '0') {
  312. specs_id = specs._id
  313. uni.navigateTo({
  314. url: `/pagesHome/group/index?specs_id=${specs_id}&goods_id=${that.id}`
  315. })
  316. } else {
  317. uni.showToast({
  318. title: `该规格暂无团购`,
  319. icon: 'error'
  320. })
  321. }
  322. } else {
  323. uni.showModal({
  324. title: '提示',
  325. content: '请选择规格',
  326. confirmColor: '#ff0000',
  327. showCancel: false,
  328. success: function(res) {}
  329. });
  330. }
  331. },
  332. //主菜单跳转
  333. toPath(e) {
  334. if (e && e.route) uni.reLaunch({
  335. url: `/${e.route}`
  336. })
  337. },
  338. // 菜单展开
  339. toMenu() {
  340. const that = this;
  341. that.menu = !that.menu
  342. },
  343. // 计算高度
  344. handleScroll(e) {
  345. const that = this;
  346. let scrollTop = e.detail.scrollTop;
  347. that.isShow = scrollTop > 500;
  348. that.topItem = '';
  349. },
  350. // 返回顶部
  351. backTop() {
  352. const that = this;
  353. that.topItem = 'top'
  354. },
  355. //加入购物车,立即购买弹窗
  356. buttonClick(e) {
  357. const that = this;
  358. if (e && e.content) that.type = e.content.type;
  359. that.$refs.popup.open();
  360. },
  361. // 选择规格
  362. toChoose() {
  363. const that = this;
  364. that.type = '1';
  365. that.$refs.popup.open();
  366. },
  367. // 修改样式
  368. toStyle(e, index) {
  369. const that = this;
  370. that.$set(that, `isActive`, index)
  371. that.$set(that, `Selected`, e.name)
  372. that.$set(that, `max`, e.num)
  373. that.$set(that, `money`, e.sell_money)
  374. that.disabled = false;
  375. },
  376. // 计数器
  377. toCount(e) {
  378. const that = this;
  379. that.num = e;
  380. },
  381. // 立即购买
  382. toBuy(e) {
  383. const that = this;
  384. uni.getStorage({
  385. key: 'token',
  386. success: async function(res) {
  387. let user = that.$jwt(res.data);
  388. that.$set(that, `user`, user)
  389. if (that.Selected) {
  390. let specs_id;
  391. let specs = that.specs.find(i => i.name == that.Selected)
  392. if (specs) specs_id = specs._id
  393. let data = {
  394. customer: user._id,
  395. shop: that.shop._id,
  396. goods: that.info._id,
  397. goodsSpec: specs_id,
  398. num: that.num
  399. }
  400. if (e == '0') {
  401. let arr = await that.$api(`/cart`, 'POST', data)
  402. if (arr.errcode == '0') {
  403. uni.showToast({
  404. title: `加入购物车成功`,
  405. icon: 'success'
  406. })
  407. that.$refs.popup.close()
  408. } else {
  409. uni.showToast({
  410. title: arr.errmsg,
  411. icon: 'none'
  412. })
  413. }
  414. } else {
  415. let arr = await that.$api(`/util/checkCanBuy`, 'POST', data)
  416. if (arr.errcode == '0') {
  417. if (arr.data.result == true) {
  418. uni.navigateTo({
  419. url: `/pagesHome/order/order?key=${arr.data.key}`
  420. })
  421. } else {
  422. uni.showToast({
  423. title: arr.data.msg,
  424. icon: 'none'
  425. })
  426. }
  427. } else {
  428. uni.showToast({
  429. title: arr.errmsg,
  430. icon: 'none'
  431. })
  432. }
  433. }
  434. } else {
  435. uni.showModal({
  436. title: '提示',
  437. content: '请选择规格',
  438. confirmColor: '#ff0000',
  439. showCancel: false,
  440. success: function(res) {}
  441. });
  442. }
  443. },
  444. fail: function(err) {
  445. uni.navigateTo({
  446. url: `/pages/login/index`
  447. })
  448. }
  449. });
  450. },
  451. // 关闭弹框
  452. toClose() {
  453. const that = this;
  454. that.$refs.popup.close()
  455. },
  456. // 详情数据
  457. async search() {
  458. const that = this;
  459. uni.getStorage({
  460. key: 'token',
  461. success: function(res) {
  462. let user = that.$jwt(res.data);
  463. if (user) that.$set(that, `user`, user);
  464. that.searchOther();
  465. },
  466. fail: function(err) {
  467. // uni.showToast({
  468. // title: '无用户登录无法查看收藏信息',
  469. // icon: 'none'
  470. // })
  471. }
  472. });
  473. let res = await that.$api(`/viewGoods/goodsDetail`, `POST`, {
  474. id: that.id
  475. });
  476. if (res.errcode == '0') {
  477. that.$set(that, `info`, res.data.goods)
  478. that.$set(that, `specs`, res.data.specs)
  479. that.$set(that, `shop`, res.data.shop)
  480. if (res.data.specs.length > 0) that.$set(that, `money`, res.data.specs[0].sell_money)
  481. that.$set(that, `bannerList`, res.data.goods.file)
  482. }
  483. },
  484. async searchOther() {
  485. const that = this;
  486. let user = that.user;
  487. // 商品是否收藏
  488. let res = await that.$api(`/storeGoods/check`, `GET`, {
  489. customer: user._id,
  490. goods: that.id
  491. });
  492. if (res.errcode == '0') {
  493. that.$set(that, `collection`, res.data)
  494. }
  495. // 商铺是否收藏
  496. let arr = await that.$api(`/storeShop/check`, `GET`, {
  497. customer: user._id,
  498. shop: that.shop._id
  499. });
  500. if (arr.errcode == '0') {
  501. that.$set(that, `shop_collect`, arr.data)
  502. }
  503. },
  504. // 配置分享内容
  505. configShare() {
  506. const that = this;
  507. let user_id = that.user && that.user._id ? that.user._id : '';
  508. let id = that.info && that.info._id ? that.info._id : ''
  509. let obj = {
  510. title: that.info.name,
  511. path: `/pagesHome/order/detail?id=${id}&user_id=${user_id}`,
  512. imageUrl: that.info.file[0].url
  513. }
  514. that.$set(that, `share`, obj)
  515. }
  516. }
  517. }
  518. </script>
  519. <style lang="scss">
  520. .scrollView {
  521. height: 100vh;
  522. }
  523. .main {
  524. display: flex;
  525. flex-direction: column;
  526. width: 100vw;
  527. height: 100vh;
  528. .onemain {
  529. position: relative;
  530. flex-grow: 1;
  531. background-color: var(--f1Color);
  532. .one {
  533. swiper {
  534. height: 70vw;
  535. }
  536. .list {
  537. border-radius: 5px;
  538. .image {
  539. width: 100%;
  540. height: 100%;
  541. border-radius: 5px;
  542. }
  543. }
  544. }
  545. .two {
  546. padding: 0 0 2vw 0;
  547. background-color: var(--mainColor);
  548. .two_1 {
  549. display: flex;
  550. align-items: center;
  551. border-bottom: 0.5vw solid var(--f9Color);
  552. padding: 2vw;
  553. .money_1 {
  554. color: var(--ff0Color);
  555. text {
  556. margin: 0 1vw 0 0;
  557. }
  558. text:last-child {
  559. font-size: var(--font20Szie);
  560. font-weight: bold;
  561. }
  562. }
  563. .money_2 {
  564. text-decoration: line-through;
  565. color: var(--f99Color);
  566. text {
  567. margin: 0 1vw 0 0;
  568. }
  569. text:last-child {
  570. font-size: var(--font16Size);
  571. }
  572. }
  573. }
  574. .two_2 {
  575. font-size: var(--font18Szie);
  576. font-weight: bold;
  577. padding: 1vw 2vw;
  578. }
  579. .two_3 {
  580. font-size: var(--font16Szie);
  581. color: var(--f85Color);
  582. padding: 1vw 2vw;
  583. }
  584. .two_4 {
  585. font-size: var(--font12Size);
  586. color: var(--fcColor);
  587. padding: 1vw 2vw;
  588. text {
  589. margin: 0 2vw 0 0;
  590. }
  591. }
  592. }
  593. .thr {
  594. .thr_1 {
  595. display: flex;
  596. flex-direction: row;
  597. justify-content: space-between;
  598. margin: 2vw 0 2vw 0;
  599. padding: 2vw;
  600. background-color: var(--mainColor);
  601. }
  602. }
  603. .four {
  604. padding: 2vw;
  605. background-color: var(--mainColor);
  606. .four_1 {
  607. display: flex;
  608. justify-content: space-between;
  609. .image {
  610. width: 15vw;
  611. height: 15vw;
  612. border: 0.1vw solid var(--fcColor);
  613. }
  614. .other {
  615. flex-grow: 1;
  616. margin: 0 0 0 2vw;
  617. .name {
  618. font-size: var(--font16Szie);
  619. }
  620. .other_1 {
  621. font-size: var(--font12Size);
  622. text {
  623. color: var(--fcColor);
  624. margin: 0 2vw 0 0;
  625. }
  626. }
  627. }
  628. }
  629. .four_2 {
  630. display: flex;
  631. flex-direction: row;
  632. justify-content: space-evenly;
  633. padding: 2vw 0;
  634. color: var(--f99Color);
  635. .grade {
  636. font-size: var(--font14Size);
  637. color: var(--f85Color);
  638. text {
  639. color: var(--ff0Color);
  640. }
  641. }
  642. .btn {
  643. border: 0.1vw solid var(--fcColor);
  644. padding: 1vw 6vw;
  645. border-radius: 1vw;
  646. color: var(--f00Color);
  647. }
  648. .btn:last-child {
  649. padding: 1vw 10vw;
  650. }
  651. }
  652. }
  653. .five {
  654. margin: 2vw 0 0 0;
  655. .five_1 {
  656. padding: 2vw;
  657. background-color: var(--mainColor);
  658. font-size: var(--font18Szie);
  659. color: var(--f99Color);
  660. }
  661. .five_2 {
  662. padding: 0 2vw;
  663. background-color: var(--mainColor);
  664. text-align: center;
  665. }
  666. }
  667. }
  668. }
  669. .scroll-view {
  670. position: absolute;
  671. top: 0;
  672. left: 0;
  673. right: 0;
  674. bottom: 0;
  675. .list-scroll-view {
  676. display: flex;
  677. flex-direction: column;
  678. }
  679. }
  680. .scrollView {
  681. height: 100vh;
  682. }
  683. .collect {
  684. position: fixed;
  685. top: 4vw;
  686. right: 5vw;
  687. text {
  688. font-size: 30px;
  689. background-color: #0000005f;
  690. border-radius: 90px;
  691. }
  692. }
  693. .menu {
  694. position: fixed;
  695. bottom: 30vw;
  696. right: 5vw;
  697. text {
  698. font-size: 30px;
  699. background-color: #0000005f;
  700. border-radius: 90px;
  701. }
  702. }
  703. .menu_1 {
  704. position: fixed;
  705. bottom: 40vw;
  706. right: 5vw;
  707. background-color: var(--mainColor);
  708. padding: 2vw;
  709. .title {
  710. display: flex;
  711. padding: 2vw;
  712. border-bottom: 0.1vw solid var(--fcColor);
  713. .image {
  714. width: 7vw;
  715. height: 6vw;
  716. }
  717. .name {
  718. margin: 0 0 0 1vw;
  719. font-size: var(--font14Size);
  720. }
  721. }
  722. }
  723. .backTop {
  724. position: fixed;
  725. bottom: 20vw;
  726. right: 5vw;
  727. text {
  728. font-size: 30px;
  729. background-color: #0000005f;
  730. border-radius: 90px;
  731. }
  732. }
  733. uni-popup {
  734. z-index: 999999 !important;
  735. }
  736. .content {
  737. height: 100vw;
  738. .one {
  739. display: flex;
  740. flex-direction: row;
  741. justify-content: space-between;
  742. margin: 2vw;
  743. padding: 2vw 0;
  744. border-bottom: 1px solid var(--f9Color);
  745. .image {
  746. width: 25vw;
  747. height: 25vw;
  748. margin: 0 2vw 0 0;
  749. }
  750. .other {
  751. display: flex;
  752. flex-direction: column;
  753. flex-grow: 1;
  754. margin: 0 0 0 2vw;
  755. .money {
  756. color: var(--fFB1Color);
  757. font-size: var(--font20Szie);
  758. padding: 2vw 0;
  759. }
  760. .other_1 {
  761. font-size: var(--font14Size);
  762. text {
  763. padding: 0 2vw;
  764. color: var(--f85Color);
  765. }
  766. }
  767. }
  768. }
  769. .two {
  770. margin: 0 2vw;
  771. padding: 2vw 0;
  772. font-size: var(--font12Size);
  773. border-bottom: 1px solid var(--f9Color);
  774. .two_2 {
  775. padding: 1vw;
  776. text {
  777. margin: 0 2vw 0 0;
  778. padding: 1vw;
  779. border-radius: 1vw;
  780. background-color: var(--f9Color);
  781. }
  782. .style {
  783. color: var(--mainColor);
  784. background-color: var(--ff0Color);
  785. }
  786. }
  787. }
  788. .thr {
  789. display: flex;
  790. justify-content: flex-start;
  791. margin: 0 2vw;
  792. padding: 2vw 0;
  793. text {
  794. margin: 0 2vw 0 0;
  795. }
  796. text:last-child {
  797. margin: 0 0 0 2vw;
  798. font-size: var(--font12Size);
  799. color: var(--f85Color);
  800. }
  801. }
  802. .btn {
  803. display: flex;
  804. justify-content: space-between;
  805. position: fixed;
  806. bottom: 0;
  807. .button1 {
  808. width: 50vw;
  809. padding: 4vw 0;
  810. background-color: var(--fFB1Color);
  811. text-align: center;
  812. font-size: var(--font18Szie);
  813. color: var(--mainColor);
  814. }
  815. .button2 {
  816. width: 50vw;
  817. padding: 4vw 0;
  818. background-color: #FF8A18;
  819. text-align: center;
  820. font-size: var(--font18Szie);
  821. color: var(--mainColor);
  822. }
  823. }
  824. }
  825. </style>