index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959
  1. <template>
  2. <view class="main">
  3. <view class="one">
  4. <swiper class="swiper" circular :indicator-dots="true" indicator-color="#F5F5F5"
  5. indicator-active-color="#ffffff" :autoplay="true" :interval="3000" :duration="1000">
  6. <swiper-item class="list" v-for="(item,index) in config.file" :key="index">
  7. <image class="image" :src="item.url" mode="">
  8. </image>
  9. </swiper-item>
  10. </swiper>
  11. </view>
  12. <view class="bottom">
  13. <view class="two">
  14. <view class="two_1">{{config.name||'暂无'}}</view>
  15. <view class="two_2">
  16. <view class="left">
  17. <view class="left_1">
  18. <text :class="[config.status=='0'?'text_1':'text_2']">{{config.zhStatus||'暂无'}}</text>
  19. <text class="time">{{config.open_time||'暂无'}}</text>
  20. </view>
  21. <view class="left_2">
  22. <text>有优待政策</text>
  23. <text>景区电话</text>
  24. <text>有免费停车</text>
  25. <text>院内交通</text>
  26. </view>
  27. </view>
  28. <view class="right" @tap="toBrief">简介<text class="iconfont icon-dayuhao"></text></view>
  29. </view>
  30. <view class="two_3">
  31. <view class="left">{{config.address||'暂无'}}</view>
  32. <view class="right" @tap="toMap">
  33. <text class="iconfont icon-ditu"></text>
  34. <text>地图</text>
  35. </view>
  36. </view>
  37. <view class="two_4" v-if="couponList.length>0" @tap="toCoupon">
  38. <view class="left">优惠卷</view>
  39. <view class="center">
  40. <view class="center_1" v-for="(item,index) in couponList" :key="index">
  41. <text
  42. v-if="item.discount_type=='min'&&item.discount_config.limit=='0'">立减{{item.discount_config.min}}</text>
  43. <text
  44. v-if="item.discount_type=='min'&&item.discount_config.limit!='0'">满{{item.discount_config.limit}}减{{item.discount_config.min}}</text>
  45. </view>
  46. </view>
  47. <view class="right">领卷<text class="iconfont icon-dayuhao"></text></view>
  48. </view>
  49. </view>
  50. <view class="thr">
  51. <view class="thr_1">门票</view>
  52. <view class="thr_2">
  53. <text class="text" @tap="toChoose('0')">今日出游</text>
  54. <text class="text" @tap="toChoose('1')">明日出游</text>
  55. <text class="text" @tap="toOpen">指定日期<text class="iconfont icon-dayuhao"></text></text>
  56. </view>
  57. <view class="thr_3">
  58. <scroll-view class="scroll-view_H" scroll-x="true">
  59. <text v-for="(item, index) in totalList" :key="index" @tap="toType(item)"
  60. :class="[is_type==item._id||is_person==item._id?'text_1':'text']">{{item.label}}</text>
  61. </scroll-view>
  62. <view @tap="toSelect">
  63. 筛选
  64. <uni-icons v-if="is_select" type="top"></uni-icons>
  65. <uni-icons v-else type="bottom"></uni-icons>
  66. </view>
  67. </view>
  68. <view class="thr_4">
  69. <scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage" @scroll="toScroll">
  70. <view class="list-scroll-view">
  71. <view class="list" v-for="(item, index) in list" :key="index" @tap="toInfo(item)">
  72. <view class="left">
  73. <view class="name textOne">{{item.name||'暂无'}}</view>
  74. <view class="type textOne">#{{item.zhType||'暂无'}}</view>
  75. <view class="other textOne">
  76. 已售 {{item.buy_num||0}} | 购买须知
  77. <text class="iconfont icon-dayuhao"></text>
  78. </view>
  79. </view>
  80. <view class="right">
  81. <view class="money">
  82. <text>¥{{item.original_price||'暂无'}}</text>
  83. <text>¥{{item.money||'暂无'}}起</text>
  84. </view>
  85. <view class="button">
  86. <button @tap.stop="toBuy(item)">预订</button>
  87. </view>
  88. </view>
  89. </view>
  90. </view>
  91. <view class="is_bottom" v-if="is_bottom">
  92. <text>{{config.bottom_title||'到底了!'}}</text>
  93. </view>
  94. </scroll-view>
  95. </view>
  96. </view>
  97. </view>
  98. <!-- 日历选择 -->
  99. <uni-calendar ref="calendar" :clear-date="true" :insert="false" :lunar="true" :range="false"
  100. @confirm="toConfirm" />
  101. <!-- 筛选门票类型 -->
  102. <uni-popup ref="popup" type="top" background-color="#fff" @maskClick="toClose">
  103. <view class="popup">
  104. <view class="one">
  105. <view class="name">出游人群</view>
  106. <view class="cotent">
  107. <view class="list" v-for="(item, index) in personList" :key="index" @tap="toScreen(item,'0')">
  108. <text :class="[is_person==item._id?'text_1':'text']">{{item.label}}</text>
  109. </view>
  110. </view>
  111. </view>
  112. <view class="one">
  113. <view class="name">服务特色</view>
  114. <view class="cotent">
  115. <view class="list" v-for="(item, index) in typeList" :key="index" @tap="toScreen(item,'1')">
  116. <text :class="[is_type==item._id?'text_1':'text']">{{item.label}}</text>
  117. </view>
  118. </view>
  119. </view>
  120. <view class="button">
  121. <button class="button_1" type="default" @tap.stop="toReset">重置</button>
  122. <button class="button_2" type="default" @tap.stop="toSubmit">确定</button>
  123. </view>
  124. </view>
  125. </uni-popup>
  126. <!-- 领取优惠卷 -->
  127. <uni-popup ref="coupon" background-color="#fff" type="bottom" :is-mask-click="false">
  128. <view class="coupon">
  129. <view class="close">
  130. <text>抵用券</text>
  131. <text @click="toCouponClose" class="iconfont icon-shanchu"></text>
  132. </view>
  133. <view class="info_1">
  134. <scroll-view scroll-y="true" class="scroll-view">
  135. <view class="list-scroll-view">
  136. <view class="list" v-for="(item, index) in discountList" :key="index">
  137. <view class="list_1">
  138. <view class="left">
  139. <view class="left_1">
  140. ¥<text>{{item.discount_config.min}}</text>
  141. </view>
  142. <view class="left_2">
  143. <text v-if="item.discount_config.limit=='0'">无门槛</text>
  144. <text
  145. v-else>满{{item.discount_config.limit}}减{{item.discount_config.min}}</text>
  146. </view>
  147. </view>
  148. <view class="center">
  149. <view class="name textOver">{{item.name}}</view>
  150. <view class="content">有效日期:{{item.expire_type_label}}-{{item.expire_time}}
  151. </view>
  152. </view>
  153. <view class="right">
  154. <button class="button" type="primary" @tap="toReceive">立即领取</button>
  155. </view>
  156. </view>
  157. <view class="list_2">
  158. <uni-collapse>
  159. <uni-collapse-item title="使用规则补充说明" :open="false">
  160. <view class="content">{{item.brief}}</view>
  161. </uni-collapse-item>
  162. </uni-collapse>
  163. </view>
  164. </view>
  165. </view>
  166. </scroll-view>
  167. </view>
  168. </view>
  169. </uni-popup>
  170. </view>
  171. </template>
  172. <script>
  173. import moment from 'moment';
  174. export default {
  175. data() {
  176. return {
  177. type: '',
  178. searchInfo: {},
  179. config: {},
  180. user: {},
  181. list: [],
  182. total: 0,
  183. skip: 0,
  184. limit: 10,
  185. page: 0,
  186. // 数据是否触底
  187. is_bottom: false,
  188. scrollTop: 0,
  189. // 优惠卷
  190. couponList: [],
  191. // 优惠券全部
  192. discountList: [],
  193. // 字典表
  194. statusList: [],
  195. personList: [],
  196. typeList: [],
  197. totalList: [],
  198. // 是否筛选
  199. is_select: false,
  200. is_person: '',
  201. is_type: '',
  202. }
  203. },
  204. onLoad: async function(e) {
  205. const that = this;
  206. that.$set(that, `type`, e && e.type || '');
  207. uni.setNavigationBarTitle({
  208. title: e && e.title || '分类'
  209. });
  210. },
  211. onShow: async function(e) {
  212. const that = this;
  213. await that.searchToken();
  214. await that.searchOther();
  215. await that.searchConfig();
  216. await that.clearPage();
  217. await that.search();
  218. },
  219. methods: {
  220. searchToken() {
  221. const that = this;
  222. try {
  223. const res = uni.getStorageSync('token');
  224. if (res) that.$set(that, `user`, res);
  225. } catch (e) {
  226. uni.showToast({
  227. title: err.errmsg,
  228. icon: 'error',
  229. duration: 2000
  230. });
  231. }
  232. },
  233. searchConfig() {
  234. const that = this;
  235. try {
  236. const res = uni.getStorageSync('config');
  237. if (res) {
  238. const status = that.statusList.find(i => i.value == res.status)
  239. if (status) res.zhStatus = status.label
  240. that.$set(that, `config`, res);
  241. }
  242. } catch (e) {
  243. uni.showToast({
  244. title: err.errmsg,
  245. icon: 'error',
  246. duration: 2000
  247. });
  248. }
  249. },
  250. // 查询
  251. async search() {
  252. const that = this;
  253. let info = {
  254. skip: that.skip,
  255. limit: that.limit,
  256. is_use: '0',
  257. status: '1'
  258. }
  259. const res = await that.$api(`/ticket/queryDate`, 'GET', {
  260. ...info,
  261. ...that.searchInfo
  262. })
  263. if (res.errcode == '0') {
  264. let list = [...that.list, ...res.data];
  265. for (let val of list) {
  266. const type = that.typeList.find(i => i.value == val.type)
  267. if (type) val.zhType = type.label
  268. }
  269. that.$set(that, `list`, list)
  270. that.$set(that, `total`, res.total)
  271. } else {
  272. uni.showToast({
  273. title: res.errmsg,
  274. });
  275. }
  276. },
  277. // 输入框
  278. toInput(e) {
  279. const that = this;
  280. if (that.searchInfo.name) that.$set(that.searchInfo, `name`, e.detail.value)
  281. else that.$set(that, `searchInfo`, {})
  282. that.clearPage();
  283. that.search();
  284. },
  285. // 简介
  286. toBrief() {
  287. uni.navigateTo({
  288. url: `/pagesHome/info/index`
  289. })
  290. },
  291. // 地图
  292. toMap() {
  293. uni.reLaunch({
  294. url: `/pages/map/index`
  295. })
  296. },
  297. // 领卷
  298. async toCoupon() {
  299. const that = this;
  300. // 优惠券
  301. const res = await that.$api(`/coupon/specialQuery`, 'GET', {
  302. is_use: '0',
  303. type: '1'
  304. })
  305. if (res.errcode == '0') that.$set(that, `discountList`, res.data);
  306. that.$refs.coupon.open()
  307. },
  308. // 领取优惠券
  309. toReceive() {},
  310. // 关闭弹框
  311. toCouponClose() {
  312. const that = this;
  313. that.$refs.coupon.close();
  314. },
  315. // 打开日历
  316. toOpen() {
  317. const that = this;
  318. that.$refs.calendar.open()
  319. },
  320. // 选择的日期
  321. toConfirm(e) {
  322. const that = this;
  323. that.$set(that.searchInfo, `date`, e.fulldate)
  324. that.clearPage();
  325. that.search();
  326. },
  327. // 选择当天还是明天
  328. toChoose(type) {
  329. const that = this;
  330. if (type == '0') that.$set(that.searchInfo, `date`, moment().format('YYYY-MM-DD'))
  331. else that.$set(that.searchInfo, `date`, moment(new Date()).add(1, 'days').format("YYYY-MM-DD"))
  332. that.clearPage();
  333. that.search();
  334. },
  335. // 选择类型
  336. toType(item) {
  337. const that = this;
  338. if (item.type == 'ticket_person') {
  339. if (item._id == that.is_person) {
  340. that.$set(that, `is_person`, '')
  341. delete that.searchInfo.person
  342. } else {
  343. that.$set(that, `is_person`, item._id)
  344. that.$set(that.searchInfo, `person`, item.value)
  345. }
  346. } else {
  347. if (item._id == that.is_type) {
  348. that.$set(that, `is_type`, '')
  349. delete that.searchInfo.type
  350. } else {
  351. that.$set(that, `is_type`, item._id)
  352. that.$set(that.searchInfo, `type`, item.value)
  353. }
  354. }
  355. that.clearPage();
  356. that.search();
  357. },
  358. // 筛选打开弹窗
  359. toSelect() {
  360. const that = this;
  361. that.$set(that, `is_select`, true)
  362. that.$refs.popup.open()
  363. },
  364. // 关闭弹窗
  365. toClose() {
  366. const that = this;
  367. that.$set(that, `is_select`, false)
  368. that.$refs.popup.close()
  369. },
  370. // 筛选
  371. toScreen(item, type) {
  372. const that = this;
  373. if (type == '0') that.$set(that, `is_person`, item._id)
  374. else that.$set(that, `is_type`, item._id)
  375. },
  376. // 重置
  377. toReset() {
  378. const that = this;
  379. that.$set(that, `is_person`, '')
  380. that.$set(that, `is_type`, '')
  381. delete that.searchInfo.person
  382. delete that.searchInfo.type
  383. },
  384. // 确定
  385. toSubmit() {
  386. const that = this;
  387. const person = that.personList.find(i => i._id == that.is_person)
  388. if (person) that.$set(that.searchInfo, `person`, person.value)
  389. const type = that.typeList.find(i => i._id == that.is_type)
  390. if (type) that.$set(that.searchInfo, `type`, type.value)
  391. that.clearPage();
  392. that.search();
  393. that.toClose();
  394. },
  395. // 详情
  396. toInfo(e) {
  397. uni.navigateTo({
  398. url: `/pagesHome/ticket/info?id=${e.id||e._id}`
  399. })
  400. },
  401. // 预订
  402. toBuy(item) {
  403. const that = this;
  404. if (that.user && that.user._id) {
  405. uni.navigateTo({
  406. url: `/pagesIndex/order/order?id=${item.id||item._id}`
  407. })
  408. } else {
  409. uni.navigateTo({
  410. url: `/pagesIndex/login/index`
  411. })
  412. }
  413. },
  414. // 查询其他信息
  415. async searchOther() {
  416. const that = this;
  417. let res;
  418. // 查询状态
  419. res = await that.$api(`/dictData`, 'GET', {
  420. type: 'config_status',
  421. is_use: '0',
  422. })
  423. if (res.errcode == '0') that.$set(that, `statusList`, res.data);
  424. // 出游人群
  425. res = await that.$api(`/dictData`, 'GET', {
  426. type: 'ticket_person',
  427. is_use: '0',
  428. })
  429. if (res.errcode == '0') that.$set(that, `personList`, res.data);
  430. // 服务特色
  431. res = await that.$api(`/dictData`, 'GET', {
  432. type: 'ticket_type',
  433. is_use: '0',
  434. })
  435. if (res.errcode == '0') that.$set(that, `typeList`, res.data);
  436. that.$set(that, `totalList`, [...that.personList, ...that.typeList]);
  437. // 优惠券
  438. res = await that.$api(`/coupon/specialQuery`, 'GET', {
  439. is_use: '0',
  440. discount_type: 'min',
  441. type: '1'
  442. })
  443. if (res.errcode == '0') that.$set(that, `couponList`, res.data.slice(0, 3));
  444. },
  445. // 分页
  446. toPage(e) {
  447. const that = this;
  448. let list = that.list;
  449. let limit = that.limit;
  450. if (that.total > list.length) {
  451. uni.showLoading({
  452. title: '加载中',
  453. mask: true
  454. })
  455. let page = that.page + 1;
  456. that.$set(that, `page`, page)
  457. let skip = page * limit;
  458. that.$set(that, `skip`, skip)
  459. that.searchComment();
  460. uni.hideLoading();
  461. } else that.$set(that, `is_bottom`, true)
  462. },
  463. // 触底
  464. toScroll(e) {
  465. const that = this;
  466. let up = that.scrollTop;
  467. that.$set(that, `scrollTop`, e.detail.scrollTop);
  468. let num = Math.sign(up - e.detail.scrollTop);
  469. if (num == 1) that.$set(that, `is_bottom`, false);
  470. },
  471. // 清空列表
  472. clearPage() {
  473. const that = this;
  474. that.$set(that, `list`, [])
  475. that.$set(that, `skip`, 0)
  476. that.$set(that, `limit`, 10)
  477. that.$set(that, `page`, 0)
  478. },
  479. }
  480. }
  481. </script>
  482. <style lang="scss" scoped>
  483. .main {
  484. display: flex;
  485. flex-direction: column;
  486. width: 100vw;
  487. height: 100vh;
  488. .one {
  489. padding: 0 0 2vw 0;
  490. .swiper {
  491. height: 60vw;
  492. .list {
  493. .image {
  494. width: 100%;
  495. height: 100%;
  496. }
  497. }
  498. }
  499. }
  500. .bottom {
  501. position: absolute;
  502. top: 55vw;
  503. left: 0;
  504. right: 0;
  505. background-color: var(--f9Color);
  506. border-radius: 20px;
  507. padding: 2vw;
  508. .two {
  509. .two_1 {
  510. padding: 2vw;
  511. font-size: var(--font18Size);
  512. font-weight: bold;
  513. }
  514. .two_2 {
  515. display: flex;
  516. justify-content: space-between;
  517. align-items: center;
  518. padding: 1vw 2vw;
  519. .left {
  520. .left_1 {
  521. font-size: var(--font12Size);
  522. .time {
  523. font-weight: 500;
  524. margin: 0 1vw;
  525. }
  526. .text_1 {
  527. padding: 1px;
  528. color: var(--mainColor);
  529. background-color: mediumseagreen;
  530. }
  531. .text_2 {
  532. padding: 1px;
  533. color: var(--mainColor);
  534. background-color: red;
  535. }
  536. }
  537. .left_2 {
  538. font-size: var(--font12Size);
  539. margin: 2vw 0;
  540. text {
  541. margin: 0 2px 0 0;
  542. padding: 2px 3px;
  543. border: 1px solid var(--f3CColor);
  544. color: var(--f3CColor);
  545. border-radius: 5px;
  546. }
  547. }
  548. }
  549. .right {
  550. display: flex;
  551. align-items: center;
  552. font-size: var(--font14Size);
  553. color: var(--f85Color);
  554. }
  555. }
  556. .two_3 {
  557. display: flex;
  558. justify-content: space-between;
  559. align-items: center;
  560. font-size: var(--font13Size);
  561. padding: 0 2vw;
  562. .right {
  563. display: flex;
  564. flex-direction: column;
  565. align-items: center;
  566. font-size: var(--font12Size);
  567. padding: 0 2vw 0 0;
  568. .iconfont {
  569. font-size: 20px;
  570. }
  571. }
  572. }
  573. .two_4 {
  574. display: flex;
  575. justify-content: space-between;
  576. align-items: center;
  577. padding: 3vw 2vw;
  578. font-size: var(--font14Size);
  579. background-color: var(--mainColor);
  580. border-radius: 10px;
  581. margin: 2vw 0;
  582. .center {
  583. display: flex;
  584. align-items: center;
  585. width: 65vw;
  586. .center_1 {
  587. text {
  588. margin: 0 1vw 0 0;
  589. padding: 2px;
  590. font-size: var(--font12Size);
  591. color: var(--mainColor);
  592. border-radius: 5px;
  593. background: linear-gradient(to right, #FFA500, #FF0000);
  594. }
  595. }
  596. }
  597. .right {
  598. display: flex;
  599. align-items: center;
  600. font-size: var(--font14Size);
  601. color: var(--fF0Color);
  602. }
  603. }
  604. }
  605. .thr {
  606. .thr_1 {
  607. padding: 2vw 1vw;
  608. font-size: var(--font16Size);
  609. font-weight: bold;
  610. }
  611. .thr_2 {
  612. padding: 1vw 0;
  613. .text {
  614. margin: 0 5px 0 0;
  615. padding: 1vw;
  616. border-radius: 5px;
  617. font-size: var(--font12Size);
  618. color: var(--f69Color);
  619. background-color: var(--mainColor);
  620. .iconfont {
  621. font-size: 14px;
  622. }
  623. }
  624. }
  625. .thr_3 {
  626. display: flex;
  627. justify-content: space-between;
  628. padding: 1vw 0;
  629. font-size: var(--font15Size);
  630. margin: 1vw 0 0 0;
  631. .scroll-view_H {
  632. white-space: nowrap;
  633. width: 80vw;
  634. height: 5vh;
  635. .text {
  636. margin: 0 5px 0 0;
  637. padding: 1vw 2vw;
  638. border-radius: 5px;
  639. font-size: var(--font12Size);
  640. color: var(--f69Color);
  641. background-color: var(--mainColor);
  642. .iconfont {
  643. font-size: 14px;
  644. }
  645. }
  646. .text_1 {
  647. margin: 0 5px 0 0;
  648. padding: 1vw 2vw;
  649. border-radius: 5px;
  650. font-size: var(--font12Size);
  651. color: var(--mainColor);
  652. background-color: var(--f3CColor);
  653. .iconfont {
  654. font-size: 14px;
  655. }
  656. }
  657. }
  658. }
  659. .thr_4 {
  660. position: relative;
  661. height: 82vh;
  662. .list {
  663. display: flex;
  664. justify-content: space-between;
  665. background-color: var(--mainColor);
  666. border: 1px solid var(--f5Color);
  667. padding: 2vw;
  668. margin: 2vw 2vw 0 2vw;
  669. border-radius: 10px;
  670. .left {
  671. padding: 2vw 0;
  672. width: 55vw;
  673. .name {
  674. padding: 2vw 0;
  675. font-size: var(--font16Size);
  676. font-weight: bold;
  677. }
  678. .type {
  679. padding: 0 0 1vw 0;
  680. color: var(--f3CColor);
  681. font-size: var(--font12Size);
  682. }
  683. .other {
  684. color: var(--f69Color);
  685. font-size: var(--font12Size);
  686. .iconfont {
  687. font-size: 14px;
  688. }
  689. }
  690. }
  691. .right {
  692. width: 28vw;
  693. display: flex;
  694. flex-direction: column;
  695. justify-content: space-between;
  696. padding: 2vw 0;
  697. .money {
  698. text-align: right;
  699. color: var(--fF0Color);
  700. font-size: var(--font16Size);
  701. font-weight: bold;
  702. text:first-child {
  703. text-decoration: line-through;
  704. color: var(--f69Color);
  705. font-size: var(--font12Size);
  706. font-weight: 400;
  707. }
  708. }
  709. .button {
  710. button {
  711. font-size: var(--font14Size);
  712. border-radius: 40px;
  713. color: var(--mainColor);
  714. background: linear-gradient(to right, #00BFFF, #007AFF);
  715. }
  716. }
  717. }
  718. }
  719. }
  720. }
  721. }
  722. }
  723. .popup {
  724. padding: 2vw;
  725. .one {
  726. padding: 2vw;
  727. .name {
  728. padding: 2vw 0;
  729. font-size: var(--font16Size);
  730. font-weight: bold;
  731. }
  732. .cotent {
  733. display: flex;
  734. flex-wrap: wrap;
  735. margin: 5vw 0;
  736. .list {
  737. margin: 0 0 5vw 0;
  738. .text {
  739. margin: 0 5px 0 0;
  740. padding: 2vw 7vw;
  741. border-radius: 5px;
  742. font-size: var(--font14Size);
  743. color: var(--f69Color);
  744. background-color: var(--f9Color);
  745. }
  746. .text_1 {
  747. margin: 0 5px 0 0;
  748. padding: 2vw 7vw;
  749. border-radius: 5px;
  750. font-size: var(--font14Size);
  751. color: var(--mainColor);
  752. background-color: var(--f3CColor);
  753. }
  754. }
  755. }
  756. }
  757. .button {
  758. display: flex;
  759. padding: 2vw;
  760. button {
  761. width: 30vw;
  762. font-size: var(--font16Size);
  763. border-radius: 40px;
  764. }
  765. button:last-child {
  766. color: var(--mainColor);
  767. background: linear-gradient(to right, #00BFFF, #007AFF);
  768. }
  769. }
  770. }
  771. .uni-popup {
  772. z-index: 9999 !important;
  773. }
  774. .coupon {
  775. display: flex;
  776. flex-direction: column;
  777. width: 100vw;
  778. height: 60vh;
  779. background-color: var(--f9Color);
  780. .close {
  781. display: flex;
  782. justify-content: space-between;
  783. padding: 2vw;
  784. text:first-child {
  785. font-size: var(--font16Size);
  786. font-weight: bold;
  787. }
  788. }
  789. .info_1 {
  790. position: relative;
  791. display: flex;
  792. flex-direction: column;
  793. height: 54vh;
  794. padding: 2vw;
  795. .list {
  796. background-color: var(--mainColor);
  797. border: 1px solid var(--f5Color);
  798. padding: 2vw;
  799. margin: 2vw 2vw 0 2vw;
  800. border-radius: 5px;
  801. .list_1 {
  802. display: flex;
  803. justify-content: space-between;
  804. align-items: center;
  805. .left {
  806. width: 20vw;
  807. display: flex;
  808. flex-direction: column;
  809. justify-content: center;
  810. align-items: center;
  811. padding: 3vw;
  812. color: var(--fF0Color);
  813. font-size: var(--font14Size);
  814. .left_1 {
  815. text {
  816. font-weight: bold;
  817. font-size: 25px;
  818. }
  819. }
  820. .left_2 {
  821. font-size: var(--font12Size);
  822. }
  823. }
  824. .center {
  825. width: 40vw;
  826. .name {
  827. font-size: var(--font14Size);
  828. font-weight: bold;
  829. margin: 0 0 1vw 0;
  830. }
  831. .content {
  832. color: var(--f85Color);
  833. font-size: var(--font12Size);
  834. }
  835. }
  836. .right {
  837. button {
  838. font-size: 12px;
  839. border-radius: 20px;
  840. background: linear-gradient(to right, #FFA500, #FF0000);
  841. }
  842. }
  843. }
  844. .list_2 {
  845. font-size: var(--font12Size);
  846. /deep/.uni-collapse-item__title-box {
  847. padding: 0 !important;
  848. font-size: 12px !important;
  849. }
  850. /deep/.uni-collapse-item__title-text {
  851. font-size: 12px !important;
  852. }
  853. .content {
  854. padding: 2vw;
  855. }
  856. }
  857. }
  858. }
  859. }
  860. .scroll-view {
  861. position: absolute;
  862. top: 0;
  863. left: 0;
  864. right: 0;
  865. bottom: 0;
  866. .list-scroll-view {
  867. display: flex;
  868. flex-direction: column;
  869. }
  870. }
  871. .is_bottom {
  872. width: 100%;
  873. text-align: center;
  874. text {
  875. padding: 2vw 0;
  876. display: inline-block;
  877. color: var(--f85Color);
  878. font-size: var(--font14Size);
  879. }
  880. }
  881. </style>