details.vue 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488
  1. <template>
  2. <view class="index-main">
  3. <view class="vheight"></view>
  4. <!-- <audio id="audio" src="/static/image/home/bj.mp3" loop></audio> -->
  5. <view class="details">
  6. <!-- nav start -->
  7. <view class="details_title">
  8. <view class="details_nav"></view>
  9. <view class="details-title_head flex">
  10. <view class="details_title_return" @click="returnTop"><image src="/static/image/publice/fanhui@2x.png" mode=""></image></view>
  11. <view class="details_title_name">{{ boxDetail.box_name }}</view>
  12. <!-- <view class="details_title_mp3" @click="changePlay">
  13. <image :src="isPlay ? '/static/image/home/bofang@2x.png' : '/static/image/home/guanbiyinyue@2x.png' " mode=""></image>
  14. </view> -->
  15. </view>
  16. </view>
  17. </view>
  18. <!-- nav end -->
  19. <!-- 灯光 -->
  20. <view class="bjt">
  21. <!-- <image class="light" src="/h5/static/image/new_home/dg.png" mode="widthFix"></image> -->
  22. <!-- 上半部分 -->
  23. <view class="top">
  24. <!-- <view class="title">
  25. <view class="oval" @click="toRecharge()">
  26. <image class="small-img" src="/static/image/new_home/yecz.png" mode="widthFix"></image>
  27. <text> {{capital.coin}} </text>
  28. <span>金币充值</span>
  29. </view>
  30. <view class="oval1" @click="toMyBox()">
  31. <image class="small-img" src="/static/image/new_home/tbxg.png" mode="widthFix"></image>
  32. <text> {{capital.box}} </text>
  33. <span>物品盒柜</span>
  34. </view>
  35. <view class="right" @click="wfashuiming()">
  36. <image class="small-img" src="/static/image/new_home/wfsm.png" mode="widthFix"></image>
  37. <span>玩法说明</span>
  38. </view>
  39. </view> -->
  40. <lunbobox></lunbobox>
  41. <!-- <view class="play-explain" @tap="$refs.regulation.open()">
  42. <image class="small-img" src="/static/image/tabbar/wodeyixuanzhong@2x1.png" mode="widthFix"></image>
  43. <text>买家须知</text>
  44. </view> -->
  45. <view class="details_footer_coll" @click="changeStar" v-if="type == 0">
  46. <image
  47. :src="boxDetail.is_star == 1 ? 'https://www.chaomangdao.com/image/home/shoucangyixuanzhong@2x.png' : '/static/image/home/shoucangweixuanzhong@2x.png'"
  48. mode="widthFix"
  49. ></image>
  50. </view>
  51. <view class="loop-container">
  52. <!-- 图片轮播主区域 -->
  53. <view class="loop-image-main">
  54. <prize-flying v-if="box_id" :key="`flying`" :box-id="box_id"></prize-flying>
  55. <!-- 图片轮播 -->
  56. <view class="loop-image-warapper">
  57. <swiper autoplay circular class="swiper">
  58. <swiper-item>
  59. <view :class="['image-box']">
  60. <template v-for="(item, index) in boxDetail.box_banner">
  61. <view :key="index">
  62. <image
  63. :class="[boxDetail.box_banner.length > 1 ? `box-banner-${index}` : 'box-banner']"
  64. :src="item.image"
  65. mode="heightFix"
  66. @click="lookImg(item.image)"
  67. ></image>
  68. <text>{{ item.desc }}</text>
  69. </view>
  70. </template>
  71. </view>
  72. </swiper-item>
  73. </swiper>
  74. <!-- <image src="/static/image/home/erji@2x.png" mode=""></image> -->
  75. </view>
  76. <!-- 底座 -->
  77. <!-- <view class="pedestal">
  78. <image src="/h5/static/image/new_home/dizhuo.png" mode="heightFix"></image>
  79. </view> -->
  80. <!-- 手指 -->
  81. <!-- <view class="finger">
  82. <image src="/h5/static/image/new_home/sz.png" mode="heightFix"></image>
  83. </view> -->
  84. </view>
  85. </view>
  86. </view>
  87. <!-- 下半部分 -->
  88. <view class="bottom">
  89. <view>
  90. <!-- 下方按钮区 -->
  91. <view class="button-container">
  92. <view class="side-btn" @click="haveTry()"><image src="/static/image/new_home/swmhan.png" mode="widthFix"></image></view>
  93. <view class="center-btn" @click="selectNum()">
  94. <image src="/static/image/new_home/khan.png" mode="widthFix"></image>
  95. <!-- <text>立即开箱</text> -->
  96. </view>
  97. <view class="side-btn" @click="$refs.regulation.open()"><image src="/static/image/new_home/gdmhan.png" mode="widthFix"></image></view>
  98. </view>
  99. <!-- <view class="button-container">
  100. <view class="side-btn" @click="haveTry()">
  101. <image src="/static/image/new_home/swmhan.png" mode="widthFix"></image>
  102. </view>
  103. <view class="center-btn" @click="selectNum()">
  104. <image src="/static/image/new_home/khan.png" mode="widthFix"></image>
  105. </view>
  106. </view> -->
  107. <!-- 下方价格 -->
  108. <!-- <view class="price-container">
  109. <text class="price">{{ boxDetail.box_name }}{{ boxDetail.coin_price }}元/个</text>
  110. </view> -->
  111. <!-- <view class="kxbz">盲盒开箱必中以下宝贝之一</view> -->
  112. </view>
  113. </view>
  114. </view>
  115. <uni-popup ref="num-popup" type="bottom" :mask-click="false">
  116. <view class="num-popup">
  117. <view class="popup-close" @click="closeNumPopup"><image src="https://www.chaomangdao.com/image/home/guanbi@2x.png" mode=""></image></view>
  118. <view class="num-button-group">
  119. <view class="num-button" @click="createOder(1)">
  120. <image src="/static/image/new_home/btn-1.png" mode="widthFix"></image>
  121. <text>一发入魂</text>
  122. </view>
  123. </view>
  124. <view class="num-button-group">
  125. <view class="num-button" @click="createOder(5)">
  126. <image src="../../static/image/new_home/btn-3.png" mode="widthFix"></image>
  127. <text>五连绝世</text>
  128. </view>
  129. <view class="num-button" @click="createOder(9)">
  130. <image src="../../static/image/new_home/btn-2.png" mode="widthFix"></image>
  131. <text>九连更稳</text>
  132. </view>
  133. </view>
  134. <view class="order-info">
  135. <view>开盒数量:{{ boxNum }}</view>
  136. <view class="total-price">订单金额:¥{{ totalPrice }}</view>
  137. </view>
  138. <view class="popup-btn"><!-- <button type="primary" @click="$refs['payment'].open(0, boxNum)">创建订单</button> --></view>
  139. </view>
  140. </uni-popup>
  141. <payment ref="payment" :box-id="box_id" :box-num="boxNum" :type="type" @create-success="closeNumPopup" @show-result="showResult"></payment>
  142. <show-result ref="resultPopup" :num="boxNum" @accept="toMyBox()" @recycle="recycle" :type="type"></show-result>
  143. <recycle ref="recycle"></recycle>
  144. <!-- <image src="https://www.chaomangdao.com/image/kxbz.png" mode=""></image> -->
  145. <!-- 商品预览start -->
  146. <view class="goods-view">
  147. <view class="rate-view flex">
  148. <!-- <text class="rate-txt">获得概率</text> -->
  149. <!-- <view class="rate-list flex">
  150. <view class="rate-item" v-for="(item, index) in rates" :key="item.value">
  151. <text :class="['rate-name', `rate-name-${index}`]">{{ item.name }}</text>
  152. <text class="rate-value">{{ item.value }}%</text>
  153. </view>
  154. </view> -->
  155. </view>
  156. <view class="goods-list-view flex">
  157. <view class="goods-item" v-for="(item, index) in boxDetail.goodslist" :key="index">
  158. <text class="goods-tag" :class="'goods-tag-' + (item.tag == '传说' ? 0 : item.tag == '史诗' ? 1 : item.tag == '稀有' ? 2 : 3)">
  159. {{ item.tag == '传说' ? rates[0].value : item.tag == '史诗' ? rates[1].value : item.tag == '稀有' ? rates[2].value : rates[3].value }}%
  160. </text>
  161. <view class="goods-img-view">
  162. <image :src="item.image.indexOf('http') == -1 ? 'https://www.chaomangdao.com' + item.image : item.image" mode="" @click="lookDetail(item)"></image>
  163. </view>
  164. <view class="goods-name clamp2">{{ item.goods_name }}</view>
  165. <view class="goods-price">¥{{ item.price }}</view>
  166. <!-- <view class="goods-price-view">
  167. <span class="rmb">¥</span>
  168. {{ item.price }}
  169. </view> -->
  170. </view>
  171. </view>
  172. </view>
  173. <!-- 商品预览end -->
  174. <!-- 开盒记录start -->
  175. <!-- <view class="record-view">
  176. <view class="title flex">
  177. <text class="title-left">开盒记录</text>
  178. <view class="title-right flex" @tap="$refs.morerecord.open()">
  179. <text>更多记录</text>
  180. <view class="rule-box">
  181. <image src="../../static/image/publice/jinruer@2x.png" mode="aspectFit"></image>
  182. </view>
  183. </view>
  184. </view>
  185. <view class="record-list-view">
  186. <view class="record-item flex" v-for="(item, index) in record3" :key="index">
  187. <view class="goods-img-view">
  188. <image :src="item.goods_image" mode="aspectFit"></image>
  189. </view>
  190. <view class="record-item-right">
  191. <view class="goods-name-view flex">
  192. <text class="username">{{item.nickname}}</text>
  193. <text class="txt">开出了</text>
  194. <text class="goods-name">{{item.goods_name}}</text>
  195. </view>
  196. <view class="goods-price-view">
  197. 参考价 ¥{{item.goods_rmb_price}}
  198. </view>
  199. <view class="goods-time-view">
  200. 开盒时间:{{item.create_time}}
  201. </view>
  202. </view>
  203. </view>
  204. </view>
  205. </view> -->
  206. <!-- 开盒记录end -->
  207. <!--S 更多记录 -->
  208. <!-- <uni-popup ref="morerecord" :mask-click="true">
  209. <view class="regulation">
  210. <view class="regulation_close" @click="$refs.morerecord.close()">
  211. <image src="/static/image/home/guanbi@2x.png" mode=""></image>
  212. </view>
  213. <view class="regulation_name">开盒记录</view>
  214. <view class="regulation_main">
  215. <scroll-view scroll-y="true" class="scroll-view">
  216. <view class="record-item flex" v-for="(item, index) in boxDetail.record" :key="index">
  217. <view class="goods-img-view">
  218. <image :src="item.goods_image" mode="aspectFit"></image>
  219. </view>
  220. <view class="record-item-right">
  221. <view class="goods-name-view flex">
  222. <text class="username">{{item.nickname}}</text>
  223. <text class="txt">开出了</text>
  224. <text class="goods-name">{{item.goods_name}}</text>
  225. </view>
  226. <view class="goods-price-view">
  227. 参考价 ¥{{item.goods_rmb_price}}
  228. </view>
  229. <view class="goods-time-view">
  230. 开盒时间:{{item.create_time}}
  231. </view>
  232. </view>
  233. </view>
  234. </scroll-view>
  235. </view>
  236. </view>
  237. </uni-popup> -->
  238. <!-- 购买须知start -->
  239. <!-- <view class="buy-rule-view">
  240. <view class="title flex">
  241. <text class="title-left">购买须知</text>
  242. </view>
  243. <view class="box-view" v-html="notice_to_buyers"> -->
  244. <!-- <view class="rule-item">
  245. <view class="rule-title">
  246. 【盲盒规则】
  247. </view>
  248. <view class="rule-html">
  249. 这是一段规则这是一段规则这是一段规则这是一段规则这是一段规则这是一段规则这是一段规则这是一段规则这是一段规则这是一段规则
  250. </view>
  251. </view>
  252. <view class="rule-item">
  253. <view class="rule-title">
  254. 【关于配送】
  255. </view>
  256. <view class="rule-html">
  257. 这是一段规则这是一段规则这是一段规则这是一段规则这是一段规则这是一段规则这是一段规则这是一段规则这是一段规则这是一段规则
  258. </view>
  259. </view>
  260. <view class="rule-item">
  261. <view class="rule-title">
  262. 【售后问题】
  263. </view>
  264. <view class="rule-html">
  265. 这是一段规则这是一段规则这是一段规则这是一段规则这是一段规则这是一段规则这是一段规则这是一段规则这是一段规则这是一段规则
  266. </view>
  267. </view> -->
  268. <!-- </view>
  269. </view> -->
  270. <!-- 购买须知end -->
  271. <!--S 买家须知 -->
  272. <uni-popup ref="regulation" :mask-click="false">
  273. <view class="regulation">
  274. <view class="regulation_close" @click="$refs.regulation.close()"><image src="https://www.chaomangdao.com/image/home/guanbi@2x.png" mode=""></image></view>
  275. <view class="regulation_name">买家须知</view>
  276. <view class="regulation_main">
  277. <scroll-view scroll-y="true" class="scroll-view"><u-parse :content="message"></u-parse></scroll-view>
  278. </view>
  279. </view>
  280. </uni-popup>
  281. <!--E 买家须知 -->
  282. <!-- 更多商品详情 -->
  283. <goods-detail ref="goods-detail"></goods-detail>
  284. </view>
  285. </template>
  286. <script>
  287. import payment from '@/components/payment.vue';
  288. import showResult from '@/components/show-result.vue';
  289. import recycle from '@/components/recycle.vue';
  290. import goodsDetail from '@/components/goods-detail.vue';
  291. import lunbobox from '@/components/lunbobox.vue';
  292. import prizeFlying from '@/components/prize-flying.vue';
  293. const innerAudioContext = uni.createInnerAudioContext();
  294. export default {
  295. components: {
  296. payment,
  297. showResult,
  298. recycle,
  299. goodsDetail,
  300. lunbobox,
  301. prizeFlying
  302. },
  303. data() {
  304. return {
  305. box_id: null, //盲盒ID
  306. message: '', //玩法规则
  307. boxDetail: {}, //盲盒详情
  308. capital: {
  309. box: 0,
  310. coin: 0
  311. },
  312. //金额
  313. price: 0,
  314. //数量
  315. boxNum: 1,
  316. //开盒类型 0:正式开盒 1:试玩
  317. type: 0,
  318. record3: [],
  319. notice_to_buyers: '',
  320. rates: [
  321. {
  322. value: '0.1%',
  323. // name: '传说款',
  324. tag: '传说'
  325. },
  326. {
  327. value: '10.9%',
  328. // name: '史诗款',
  329. tag: '史诗'
  330. },
  331. {
  332. value: '22.5%',
  333. // name: '稀有款',
  334. tag: '稀有'
  335. },
  336. {
  337. value: '76.5%',
  338. // name: '普通款',
  339. tag: '普通'
  340. }
  341. ]
  342. };
  343. },
  344. computed: {
  345. //订单总金额
  346. totalPrice() {
  347. return this.boxNum * this.boxDetail.coin_price;
  348. }
  349. },
  350. created() {
  351. console.log(this.box_id);
  352. },
  353. mounted() {
  354. // let audio = document.getElementById('audio').querySelector('audio');
  355. // audio.play();
  356. },
  357. methods: {
  358. lookImg(url) {
  359. uni.previewImage({
  360. urls: [url],
  361. longPressActions: {
  362. itemList: ['发送给朋友', '保存图片', '收藏'],
  363. success: function(data) {
  364. console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
  365. },
  366. fail: function(err) {
  367. console.log(err.errMsg);
  368. }
  369. }
  370. });
  371. },
  372. //查看详情
  373. lookDetail(goods) {
  374. let rate = this.rates.find(item => item.tag == goods.tag);
  375. console.log(this.rates);
  376. this.$refs['goods-detail'].open(goods, rate);
  377. },
  378. changePlay() {
  379. this.isPlay = !this.isPlay;
  380. uni.setStorageSync('isPlay', this.isPlay);
  381. this.isPlay ? innerAudioContext.play() : innerAudioContext.pause();
  382. },
  383. //去充值
  384. recharge() {
  385. uni.navigateTo({ url: '/pages/me/recharge' });
  386. },
  387. //是否点赞
  388. changeStar() {
  389. this.$api.star({ box_id: this.box_id }).then(res => {
  390. if (res.code === 1) {
  391. res.data.is_star == 1 ? (this.boxDetail.is_star = 1) : (this.boxDetail.is_star = 0);
  392. uni.showToast({ title: res.msg });
  393. }
  394. });
  395. },
  396. //跳转说明
  397. wfsm() {
  398. uni.navigateTo({ url: '/pages/index/wfsm' });
  399. },
  400. //跳转盒柜
  401. toMyBox() {
  402. this.$refs['num-popup'].close();
  403. uni.navigateTo({ url: '/pages/me/myBox' });
  404. },
  405. returnTop() {
  406. uni.navigateBack();
  407. },
  408. //获取详情
  409. getDetails() {
  410. this.$api.boxDetail({ box_id: this.box_id }).then(res => {
  411. if (res.code === 1) {
  412. this.boxDetail = res.data;
  413. this.record3 = res.data.record.slice(0, 3);
  414. this.rates[0].value = (res.data.more.tags.legend * 1).toFixed(2);
  415. this.rates[1].value = (res.data.more.tags.supreme * 1).toFixed(2);
  416. this.rates[2].value = (res.data.more.tags.rare * 1).toFixed(2);
  417. this.rates[3].value = (res.data.more.tags.normal * 1).toFixed(2);
  418. console.log(this.boxDetail);
  419. }
  420. });
  421. },
  422. //试玩
  423. haveTry() {
  424. this.type = 1;
  425. this.boxNum = 1;
  426. this.$refs['payment'].open(1, 1);
  427. },
  428. //选择数量
  429. selectNum() {
  430. this.type = 0;
  431. this.boxNum = 1;
  432. this.$refs['num-popup'].open();
  433. },
  434. //创建订单
  435. createOder(num) {
  436. this.boxNum = num;
  437. this.$refs['payment'].open(0, this.boxNum);
  438. },
  439. //创建订单成功或者试玩返回结果
  440. closeNumPopup() {
  441. //关闭数量弹窗
  442. this.$refs['num-popup'].close();
  443. },
  444. //展示结果
  445. showResult(result) {
  446. //试玩
  447. if (this.type == 1) {
  448. this.$refs['resultPopup'].open({ prizeInfo: result.goodsInfo });
  449. return;
  450. }
  451. this.$refs['resultPopup'].open(result);
  452. },
  453. //回收
  454. recycle(prizedata) {
  455. this.$refs['num-popup'].close();
  456. this.$refs['recycle'].recycle(prizedata.prizeInfo);
  457. },
  458. //玩法规则
  459. getMessage() {
  460. this.$api.agreement({ name: 'notice_to_buyers' }).then(res => {
  461. if (res.code === 1) {
  462. this.message = res.data.content;
  463. }
  464. });
  465. }
  466. },
  467. onUnload() {
  468. innerAudioContext.pause();
  469. },
  470. onLoad({ id }) {
  471. console.log(id, '123456');
  472. this.box_id = parseInt(id);
  473. this.getDetails();
  474. this.getMessage();
  475. },
  476. onShow() {
  477. this.isPlay = uni.getStorageSync('isPlay');
  478. this.isPlay ? innerAudioContext.play() : innerAudioContext.pause();
  479. },
  480. //刷新金币和盒子数量
  481. onShow() {
  482. this.$api.getUserCapital().then(({ code, data }) => {
  483. if (code == 1) {
  484. this.capital = data;
  485. }
  486. });
  487. let is_notice = uni.getStorageSync('is_notice');
  488. uni.removeStorageSync('is_notice');
  489. if (is_notice == 1) {
  490. setTimeout(() => {
  491. uni.showModal({
  492. title: '提示',
  493. content: '恭喜,获得10金币',
  494. success: function(res) {
  495. if (res.confirm) {
  496. console.log('用户点击确定');
  497. } else if (res.cancel) {
  498. console.log('用户点击取消');
  499. }
  500. }
  501. });
  502. }, 1000);
  503. }
  504. }
  505. };
  506. </script>
  507. <style lang="scss">
  508. .bottom-top {
  509. // height: 50rpx;
  510. height: 140rpx;
  511. margin: 20rpx 0;
  512. }
  513. .vheight {
  514. height: var(--status-bar-height);
  515. width: 100%;
  516. }
  517. .bottom-top .bottom-top-left {
  518. width: 25%;
  519. float: left;
  520. margin-left: 5rpx;
  521. }
  522. .bottom-top .bottom-top-center {
  523. width: 26%;
  524. display: block;
  525. float: left;
  526. uni-image {
  527. width: 50rpx;
  528. height: 50rpx;
  529. margin: 0 auto;
  530. float: right;
  531. }
  532. }
  533. .bottom-top .bottom-top-right {
  534. float: right;
  535. margin-right: 5rpx;
  536. }
  537. .kxbz {
  538. display: block;
  539. font-size: 35rpx;
  540. text-align: center;
  541. margin: 5rpx 0;
  542. }
  543. .details_footer_coll {
  544. position: absolute;
  545. box-shadow: 0px 4rpx 6rpx 2rpx #5ca6c8;
  546. background-color: #fff;
  547. top: 8vh;
  548. right: 0;
  549. display: flex;
  550. z-index: 99;
  551. align-items: center;
  552. border-radius: 100rpx;
  553. padding: 8rpx 20rpx;
  554. border-top-right-radius: 0;
  555. border-bottom-right-radius: 0;
  556. uni-text {
  557. color: #5348c9 !important;
  558. margin-left: 10rpx;
  559. }
  560. uni-image {
  561. width: 40rpx;
  562. }
  563. }
  564. uni-page-body {
  565. height: 100%;
  566. }
  567. .play-explain {
  568. position: absolute;
  569. box-shadow: 0px 4rpx 6rpx 2rpx #5ca6c8;
  570. background-color: #fff;
  571. top: 62vh;
  572. right: 0;
  573. display: flex;
  574. z-index: 99;
  575. align-items: center;
  576. border-radius: 100rpx;
  577. padding: 8rpx 20rpx;
  578. border-top-right-radius: 0;
  579. border-bottom-right-radius: 0;
  580. uni-text {
  581. color: #5348c9 !important;
  582. margin-left: 10rpx;
  583. }
  584. uni-image {
  585. width: 40rpx;
  586. }
  587. }
  588. uni-page-body {
  589. height: 100%;
  590. }
  591. .bjt {
  592. background: url(https://www.chaomangdao.com/image/bj.jpg);
  593. background-size: 100% 100%;
  594. }
  595. .index-main {
  596. height: 100%;
  597. background-repeat: no-repeat;
  598. background-size: 100%;
  599. flex-direction: column;
  600. .light {
  601. position: absolute;
  602. top: 0;
  603. }
  604. > view {
  605. display: flex;
  606. flex-direction: column;
  607. }
  608. .top {
  609. flex: 0.6;
  610. .title {
  611. display: flex;
  612. margin-top: 30rpx;
  613. height: 130rpx;
  614. z-index: 19;
  615. padding: 0 30rpx;
  616. > view {
  617. align-items: center;
  618. font-size: 28rpx;
  619. image {
  620. margin-right: 10rpx;
  621. }
  622. }
  623. .oval1,
  624. .oval {
  625. position: relative;
  626. width: 100rpx;
  627. text-align: center;
  628. margin: 0 auto;
  629. }
  630. .oval span,
  631. .oval1 span {
  632. display: block;
  633. position: absolute;
  634. bottom: 0rpx;
  635. font-size: 26rpx;
  636. }
  637. index-xg.png .oval1 text {
  638. color: #4e2ea9 !important;
  639. }
  640. .oval text,
  641. .oval1 text {
  642. color: #fff !important;
  643. border-radius: 100rpx;
  644. width: 80rpx;
  645. background: #cf0000;
  646. position: absolute;
  647. top: 0px;
  648. right: -50rpx;
  649. }
  650. .right {
  651. position: relative;
  652. width: 100rpx;
  653. text-align: center;
  654. margin: 0 auto;
  655. span {
  656. display: block;
  657. position: absolute;
  658. bottom: 0rpx;
  659. font-size: 26rpx;
  660. }
  661. }
  662. }
  663. .loop-container {
  664. background: url(https://www.chaomangdao.com/image/hzbj.gif);
  665. .loop-image-main {
  666. margin-top: 20rpx;
  667. margin-bottom: 20rpx;
  668. position: relative;
  669. height: 580rpx;
  670. .loop-image-warapper {
  671. z-index: 20;
  672. position: absolute;
  673. height: 65%;
  674. margin-top: 100rpx;
  675. width: 100%;
  676. .image-box {
  677. display: flex;
  678. justify-content: center;
  679. height: 100%;
  680. .box-banner {
  681. height: 80%;
  682. }
  683. .box-banner-0 {
  684. width: 118px;
  685. height: 80%;
  686. left: 50%;
  687. transform: translateX(-50%);
  688. position: absolute;
  689. bottom: 0;
  690. }
  691. .box-banner-1 {
  692. left: 50%;
  693. transform: translateX(-50%);
  694. position: absolute;
  695. top: 0;
  696. height: 50%;
  697. }
  698. }
  699. }
  700. .pedestal {
  701. position: absolute;
  702. height: 400rpx;
  703. width: 100%;
  704. bottom: 0;
  705. uni-image {
  706. margin: 0 auto;
  707. }
  708. }
  709. .finger {
  710. position: absolute;
  711. z-index: 21;
  712. height: 140rpx;
  713. right: 180rpx;
  714. bottom: 50rpx;
  715. }
  716. .prize {
  717. position: absolute;
  718. height: 120rpx;
  719. right: 10rpx;
  720. bottom: 50rpx;
  721. z-index: 22;
  722. }
  723. }
  724. .loop-label-warapper {
  725. height: 180rpx;
  726. .label-box {
  727. height: 75%;
  728. display: flex;
  729. align-items: center;
  730. justify-content: center;
  731. }
  732. .loop-label {
  733. transition: 0.2s;
  734. margin: 0 auto;
  735. width: 60%;
  736. height: 65%;
  737. background-image: linear-gradient(45deg, #89f7fe, #7c66ff);
  738. display: flex;
  739. align-items: center;
  740. justify-content: center;
  741. border-radius: 14rpx;
  742. text {
  743. transition: 0.2s;
  744. color: #ffffff;
  745. font-size: 28rpx;
  746. letter-spacing: 2rpx;
  747. font-weight: 400;
  748. }
  749. }
  750. .label-active {
  751. .loop-label {
  752. width: 90%;
  753. height: 80%;
  754. background-image: linear-gradient(45deg, #84f8ff, #1030ff);
  755. text {
  756. font-size: 42rpx;
  757. font-weight: bold;
  758. }
  759. }
  760. }
  761. }
  762. uni-swiper {
  763. height: 90%;
  764. }
  765. }
  766. }
  767. .bottom {
  768. flex: 0.4;
  769. .button-container {
  770. flex: 1;
  771. display: flex;
  772. padding-bottom: 10rpx;
  773. position: fixed;
  774. bottom: 0px;
  775. width: 100%;
  776. z-index: 99;
  777. background: #fff;
  778. > view {
  779. display: flex;
  780. align-items: center;
  781. justify-content: center;
  782. margin: 0 auto;
  783. }
  784. .center-btn {
  785. flex: 0.87;
  786. uni-image {
  787. width: 75%;
  788. }
  789. uni-text {
  790. position: absolute;
  791. font-size: 40rpx;
  792. line-height: 1.1;
  793. color: #ffffff;
  794. font-weight: bold;
  795. font-style: italic;
  796. letter-spacing: 2px;
  797. }
  798. }
  799. .side-btn {
  800. flex-direction: column;
  801. flex: 0.28;
  802. image {
  803. width: 60%;
  804. }
  805. text {
  806. margin-top: 14rpx;
  807. font-size: 28rpx;
  808. font-weight: bold;
  809. }
  810. }
  811. }
  812. .price-container {
  813. text-align: center;
  814. .price {
  815. font-size: 36rpx;
  816. font-weight: bold;
  817. }
  818. }
  819. .look-rule {
  820. font-size: 30rpx;
  821. padding-left: 14rpx;
  822. color: #575757;
  823. }
  824. .banner {
  825. display: flex;
  826. margin: 20rpx 14rpx;
  827. > view {
  828. display: flex;
  829. font-size: 28rpx;
  830. image {
  831. margin-right: 10rpx;
  832. }
  833. }
  834. .center {
  835. flex: 1;
  836. }
  837. }
  838. }
  839. }
  840. .small-img {
  841. width: 80rpx;
  842. margin: 0 auto;
  843. margin-right: 0px;
  844. }
  845. //选择数量弹窗
  846. .num-popup {
  847. background: #ffffff;
  848. border-radius: 10px 10px 0px 0px;
  849. padding: 50px 25px 90px 25px;
  850. .popup-close {
  851. top: 30rpx;
  852. right: 30rpx;
  853. width: 44rpx;
  854. height: 44rpx;
  855. position: absolute;
  856. }
  857. .num-button-group {
  858. display: flex;
  859. justify-content: center;
  860. gap: 50rpx;
  861. }
  862. .num-button {
  863. position: relative;
  864. width: 300rpx;
  865. text {
  866. position: absolute;
  867. top: 50%;
  868. left: 50%;
  869. transform: translateX(-50%) translateY(-50%);
  870. font-size: 36rpx;
  871. font-weight: bold;
  872. color: #fff;
  873. text-shadow: 1px 1px 1px black;
  874. }
  875. }
  876. .order-info {
  877. display: flex;
  878. > view {
  879. flex: 1;
  880. display: flex;
  881. align-items: center;
  882. }
  883. > view {
  884. font-size: 28rpx;
  885. font-weight: bold;
  886. }
  887. .total-price {
  888. color: red;
  889. }
  890. }
  891. > view {
  892. margin-bottom: 30rpx;
  893. }
  894. }
  895. /deep/ .pay {
  896. padding-bottom: 100px !important;
  897. }
  898. // 动画
  899. @keyframes updown {
  900. 0% {
  901. top: 0px;
  902. }
  903. 50% {
  904. top: 10px;
  905. }
  906. 100% {
  907. top: 0px;
  908. }
  909. }
  910. .bottom-top-center uni-image {
  911. animation: jt 2s infinite;
  912. -webkit-animation: jt 2s infinite;
  913. }
  914. .loop-image-warapper {
  915. animation: updown 2s infinite;
  916. -webkit-animation: updown 2s infinite;
  917. }
  918. @keyframes rotate {
  919. 0% {
  920. transform: rotate(0deg);
  921. }
  922. 50% {
  923. transform: rotate(-10deg);
  924. }
  925. 100% {
  926. transform: rotate(0deg);
  927. }
  928. }
  929. .finger {
  930. animation: rotate 1.8s infinite;
  931. -webkit-animation: rotate 1.8s infinite;
  932. }
  933. .details_title {
  934. width: 100%;
  935. position: sticky;
  936. top: 0;
  937. z-index: 2021;
  938. .details_nav {
  939. width: 100%;
  940. }
  941. .details-title_head {
  942. width: 100%;
  943. height: 88rpx;
  944. padding: 0 30rpx;
  945. background: #ffffff;
  946. .details_title_return {
  947. width: 44rpx;
  948. height: 44rpx;
  949. }
  950. .details_title_name {
  951. width: 100%;
  952. text-align: center;
  953. overflow: hidden;
  954. text-overflow: ellipsis;
  955. white-space: nowrap;
  956. font-size: 36rpx;
  957. font-weight: bold;
  958. }
  959. .details_title_mp3 {
  960. width: 44rpx;
  961. height: 44rpx;
  962. }
  963. }
  964. }
  965. .goods-view {
  966. .title {
  967. padding: 0 30rpx;
  968. margin: 30rpx 0 22rpx;
  969. .title-left {
  970. font-size: 34rpx;
  971. font-family: PingFangSC-Medium, PingFang SC;
  972. font-weight: 500;
  973. color: #171a20;
  974. line-height: 48rpx;
  975. }
  976. .title-right {
  977. font-size: 24rpx;
  978. font-family: PingFangSC-Regular, PingFang SC;
  979. font-weight: 400;
  980. color: #7a808d;
  981. line-height: 34rpx;
  982. .rule-box {
  983. width: 28rpx;
  984. height: 28rpx;
  985. margin-left: 6rpx;
  986. }
  987. }
  988. }
  989. .rate-view {
  990. background: #fff;
  991. padding: 20rpx 0;
  992. .rate-txt {
  993. display: inline-block;
  994. width: 172rpx;
  995. height: 80rpx;
  996. line-height: 80rpx;
  997. text-align: center;
  998. background: #696969;
  999. font-size: 24rpx;
  1000. font-family: PingFangSC-Regular, PingFang SC;
  1001. font-weight: 400;
  1002. color: #666666;
  1003. border-top-right-radius: 30rpx;
  1004. }
  1005. .rate-list {
  1006. background: #ffff;
  1007. margin: 5rpx 20rpx;
  1008. border-radius: 20rpx;
  1009. padding: 10rpx 0;
  1010. justify-content: space-around;
  1011. flex: 1;
  1012. .rate-item {
  1013. display: flex;
  1014. flex-direction: column;
  1015. align-items: center;
  1016. .rate-value {
  1017. font-size: 24rpx;
  1018. font-family: PingFangSC-Regular, PingFang SC;
  1019. font-weight: 400;
  1020. color: #0c0d10;
  1021. line-height: 34rpx;
  1022. }
  1023. .rate-name {
  1024. font-size: 24rpx;
  1025. font-family: PingFangSC-Medium, PingFang SC;
  1026. font-weight: 1000;
  1027. line-height: 34rpx;
  1028. }
  1029. }
  1030. .rate-value {
  1031. color: #666666 !important;
  1032. display: block;
  1033. margin-top: 10rpx;
  1034. }
  1035. .rate-name-0 {
  1036. background: url(../../static/image/new_home/cs.png);
  1037. background-size: 100% 100%;
  1038. height: 80rpx;
  1039. width: 80rpx;
  1040. }
  1041. .rate-name-1 {
  1042. background: url(../../static/image/new_home/ss.png);
  1043. background-size: 100% 100%;
  1044. height: 80rpx;
  1045. width: 80rpx;
  1046. }
  1047. .rate-name-2 {
  1048. background: url(../../static/image/new_home/xy.png);
  1049. background-size: 100% 100%;
  1050. height: 80rpx;
  1051. width: 80rpx;
  1052. }
  1053. .rate-name-3 {
  1054. background: url(../../static/image/new_home/pt.png);
  1055. background-size: 100% 100%;
  1056. height: 80rpx;
  1057. width: 80rpx;
  1058. }
  1059. }
  1060. }
  1061. .goods-list-view {
  1062. margin-bottom: 134rpx;
  1063. flex-wrap: wrap;
  1064. padding: 0 16rpx;
  1065. margin-top: 14rpx;
  1066. &::after {
  1067. content: '';
  1068. width: 220rpx;
  1069. }
  1070. .goods-item {
  1071. width: 227rpx;
  1072. height: 291rpx;
  1073. // padding: 20rpx;
  1074. background: #ffffff;
  1075. // background: #000;
  1076. border-radius: 16rpx;
  1077. position: relative;
  1078. margin-top: 20rpx;
  1079. display: flex;
  1080. flex-direction: column;
  1081. // justify-content: center;
  1082. align-items: center;
  1083. .goods-price {
  1084. position: absolute;
  1085. right: 0;
  1086. top: 188rpx;
  1087. background-color: #ff7184;
  1088. width: 88rpx;
  1089. height: 30rpx;
  1090. text-align: center;
  1091. font-size: 20rpx;
  1092. line-height: 30rpx;
  1093. border-radius: 15rpx 0 15rpx 0;
  1094. color: #fff;
  1095. }
  1096. .goods-tag {
  1097. position: absolute;
  1098. top: 0;
  1099. left: 0;
  1100. width: 88rpx;
  1101. height: 30rpx;
  1102. // background-color: #ff5423;
  1103. z-index: 9;
  1104. color: #fff;
  1105. text-align: center;
  1106. font-size: 20rpx;
  1107. line-height: 30rpx;
  1108. border-radius: 15rpx 0 15rpx 0;
  1109. &-0 {
  1110. background-color: #ff5423;
  1111. }
  1112. &-1 {
  1113. background-color: #ffaa40;
  1114. }
  1115. &-2 {
  1116. background-color: #46aaff;
  1117. }
  1118. &-3 {
  1119. background-color: #7162ff;
  1120. }
  1121. }
  1122. .goods-img-view {
  1123. // width: 40%;
  1124. width: 100%;
  1125. height: 218rpx;
  1126. image {
  1127. width: 100%;
  1128. height: 218rpx;
  1129. // margin: auto;
  1130. display: inline-block;
  1131. }
  1132. // float: left;
  1133. // margin-right: 10rpx;
  1134. }
  1135. .goods-price-view {
  1136. width: 260rpx;
  1137. height: 40rpx;
  1138. font-size: 45rpx;
  1139. font-family: PingFangSC-Regular, PingFang SC;
  1140. font-weight: 500;
  1141. color: #ff495d;
  1142. line-height: 40rpx;
  1143. float: left;
  1144. margin: 26rpx 0;
  1145. display: block;
  1146. .rmb {
  1147. font-size: 28rpx;
  1148. }
  1149. }
  1150. .goods-name {
  1151. // width: 58%;
  1152. // font-size: 32rpx;
  1153. // font-family: PingFangSC-Medium, PingFang SC;
  1154. // font-weight: 500;
  1155. // color: #171a20;
  1156. // line-height: 50rpx;
  1157. // overflow: hidden;
  1158. // text-overflow: ellipsis;
  1159. font-size: 20rpx;
  1160. padding: 5rpx 20rpx 0;
  1161. }
  1162. }
  1163. }
  1164. .record-view {
  1165. .title {
  1166. padding: 0 30rpx;
  1167. margin: 30rpx 0 22rpx;
  1168. .title-left {
  1169. font-size: 34rpx;
  1170. font-family: PingFangSC-Medium, PingFang SC;
  1171. font-weight: 500;
  1172. color: #171a20;
  1173. line-height: 48rpx;
  1174. }
  1175. .title-right {
  1176. font-size: 24rpx;
  1177. font-family: PingFangSC-Regular, PingFang SC;
  1178. font-weight: 400;
  1179. color: #7a808d;
  1180. line-height: 34rpx;
  1181. .rule-box {
  1182. width: 24rpx;
  1183. height: 24rpx;
  1184. margin-left: 6rpx;
  1185. }
  1186. }
  1187. }
  1188. .record-list-view {
  1189. .record-item {
  1190. margin: 20rpx auto 0;
  1191. width: 690rpx;
  1192. height: 180rpx;
  1193. background: #ffffff;
  1194. border-radius: 16rpx;
  1195. padding: 12rpx 0 10rpx 18rpx;
  1196. .goods-img-view {
  1197. width: 158rpx;
  1198. height: 158rpx;
  1199. }
  1200. .record-item-right {
  1201. flex: 1;
  1202. margin-left: 22rpx;
  1203. line-height: 42rpx;
  1204. .goods-name-view {
  1205. justify-content: flex-start;
  1206. font-size: 24rpx;
  1207. font-family: PingFangSC-Medium, PingFang SC;
  1208. font-weight: 500;
  1209. color: #171a20;
  1210. .username,
  1211. .goods-name {
  1212. color: #0091ff;
  1213. }
  1214. .goods-name {
  1215. display: inline-block;
  1216. width: 200rpx;
  1217. overflow: hidden;
  1218. text-overflow: ellipsis;
  1219. white-space: nowrap;
  1220. }
  1221. .txt {
  1222. display: inline-block;
  1223. margin: 0 8rpx;
  1224. }
  1225. }
  1226. .goods-price-view {
  1227. font-size: 24rpx;
  1228. font-family: PingFangSC-Regular, PingFang SC;
  1229. font-weight: 400;
  1230. color: #ff495d;
  1231. }
  1232. .goods-time-view {
  1233. font-size: 24rpx;
  1234. font-family: PingFangSC-Regular, PingFang SC;
  1235. font-weight: 400;
  1236. color: #7a808d;
  1237. }
  1238. }
  1239. }
  1240. }
  1241. }
  1242. }
  1243. .record-view {
  1244. .title {
  1245. padding: 0 30rpx;
  1246. margin: 30rpx 0 22rpx;
  1247. .title-left {
  1248. font-size: 34rpx;
  1249. font-family: PingFangSC-Medium, PingFang SC;
  1250. font-weight: 500;
  1251. color: #171a20;
  1252. line-height: 48rpx;
  1253. }
  1254. .title-right {
  1255. font-size: 24rpx;
  1256. font-family: PingFangSC-Regular, PingFang SC;
  1257. font-weight: 400;
  1258. color: #7a808d;
  1259. line-height: 34rpx;
  1260. .rule-box {
  1261. width: 24rpx;
  1262. height: 24rpx;
  1263. margin-left: 6rpx;
  1264. }
  1265. }
  1266. }
  1267. .record-list-view {
  1268. .record-item {
  1269. margin: 20rpx auto 0;
  1270. width: 690rpx;
  1271. height: 180rpx;
  1272. background: #ffffff;
  1273. border-radius: 16rpx;
  1274. padding: 12rpx 0 10rpx 18rpx;
  1275. .goods-img-view {
  1276. width: 158rpx;
  1277. height: 158rpx;
  1278. }
  1279. .record-item-right {
  1280. flex: 1;
  1281. margin-left: 22rpx;
  1282. line-height: 42rpx;
  1283. .goods-name-view {
  1284. justify-content: flex-start;
  1285. font-size: 24rpx;
  1286. font-family: PingFangSC-Medium, PingFang SC;
  1287. font-weight: 500;
  1288. color: #171a20;
  1289. .username,
  1290. .goods-name {
  1291. color: #0091ff;
  1292. }
  1293. .goods-name {
  1294. display: inline-block;
  1295. width: 200rpx;
  1296. overflow: hidden;
  1297. text-overflow: ellipsis;
  1298. white-space: nowrap;
  1299. }
  1300. .txt {
  1301. display: inline-block;
  1302. margin: 0 8rpx;
  1303. }
  1304. }
  1305. .goods-price-view {
  1306. font-size: 24rpx;
  1307. font-family: PingFangSC-Regular, PingFang SC;
  1308. font-weight: 400;
  1309. color: #ff495d;
  1310. }
  1311. .goods-time-view {
  1312. font-size: 24rpx;
  1313. font-family: PingFangSC-Regular, PingFang SC;
  1314. font-weight: 400;
  1315. color: #7a808d;
  1316. }
  1317. }
  1318. }
  1319. }
  1320. }
  1321. .regulation {
  1322. width: 650rpx;
  1323. height: 900rpx;
  1324. padding: 0 0 0 30rpx;
  1325. background: #ffffff;
  1326. border-radius: 20rpx;
  1327. position: relative;
  1328. .regulation_close {
  1329. position: absolute;
  1330. width: 44rpx;
  1331. height: 44rpx;
  1332. top: 30rpx;
  1333. right: 30rpx;
  1334. }
  1335. .regulation_name {
  1336. padding: 40rpx 0;
  1337. text-align: center;
  1338. font-size: 30rpx;
  1339. font-weight: bold;
  1340. }
  1341. .scroll-view {
  1342. height: 735rpx;
  1343. }
  1344. }
  1345. .regulation {
  1346. .record-item {
  1347. margin: 20rpx auto 0;
  1348. width: 616rpx;
  1349. height: 180rpx;
  1350. background: #ffffff;
  1351. border-radius: 16rpx;
  1352. .goods-img-view {
  1353. width: 158rpx;
  1354. height: 158rpx;
  1355. }
  1356. .record-item-right {
  1357. flex: 1;
  1358. margin-left: 22rpx;
  1359. line-height: 42rpx;
  1360. .goods-name-view {
  1361. justify-content: flex-start;
  1362. font-size: 24rpx;
  1363. font-family: PingFangSC-Medium, PingFang SC;
  1364. font-weight: 500;
  1365. color: #171a20;
  1366. .username,
  1367. .goods-name {
  1368. color: #0091ff;
  1369. }
  1370. .goods-name {
  1371. display: inline-block;
  1372. width: 150rpx;
  1373. overflow: hidden;
  1374. text-overflow: ellipsis;
  1375. white-space: nowrap;
  1376. }
  1377. .txt {
  1378. display: inline-block;
  1379. margin: 0 8rpx;
  1380. }
  1381. }
  1382. .goods-price-view {
  1383. font-size: 24rpx;
  1384. font-family: PingFangSC-Regular, PingFang SC;
  1385. font-weight: 400;
  1386. color: #ff495d;
  1387. }
  1388. .goods-time-view {
  1389. font-size: 24rpx;
  1390. font-family: PingFangSC-Regular, PingFang SC;
  1391. font-weight: 400;
  1392. color: #7a808d;
  1393. }
  1394. }
  1395. }
  1396. }
  1397. .buy-rule-view {
  1398. padding-bottom: 46rpx;
  1399. .title {
  1400. padding: 0 30rpx;
  1401. margin: 30rpx 0 22rpx;
  1402. .title-left {
  1403. font-size: 34rpx;
  1404. font-family: PingFangSC-Medium, PingFang SC;
  1405. font-weight: 500;
  1406. color: #171a20;
  1407. line-height: 48rpx;
  1408. }
  1409. }
  1410. .box-view {
  1411. width: 690rpx;
  1412. margin: 0 auto;
  1413. background: #ffffff;
  1414. border-radius: 16rpx;
  1415. padding: 28rpx 0;
  1416. .rule-item {
  1417. .rule-title {
  1418. padding: 0 10rpx;
  1419. font-size: 28rpx;
  1420. font-family: PingFangSC-Medium, PingFang SC;
  1421. font-weight: 500;
  1422. color: #2e333f;
  1423. }
  1424. .rule-html {
  1425. padding: 0 26rpx;
  1426. font-size: 24rpx;
  1427. font-family: PingFangSC-Regular, PingFang SC;
  1428. font-weight: 400;
  1429. color: #7a808d;
  1430. line-height: 40rpx;
  1431. margin: 12rpx 0 24rpx;
  1432. }
  1433. }
  1434. }
  1435. }
  1436. .center-btn uni-text {
  1437. -webkit-animation-name: living; /*关键帧名称*/
  1438. -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
  1439. -webkit-animation-iteration-count: infinite; /*动画播放的次数*/
  1440. -webkit-animation-duration: 5s; /*动画所花费的时间*/
  1441. }
  1442. //放大动画
  1443. @keyframes living {
  1444. 0% {
  1445. transform: scale(0.8);
  1446. opacity: 0.8;
  1447. }
  1448. 50% {
  1449. transform: scale(1);
  1450. opacity: 1; /*圆形放大的同时,透明度逐渐减小为0*/
  1451. }
  1452. 100% {
  1453. transform: scale(0.8);
  1454. opacity: 0.8;
  1455. }
  1456. }
  1457. // 动画
  1458. @keyframes updown {
  1459. 0% {
  1460. top: 0px;
  1461. }
  1462. 50% {
  1463. top: 10px;
  1464. }
  1465. 100% {
  1466. top: 0px;
  1467. }
  1468. }
  1469. // 动画
  1470. @keyframes jt {
  1471. 0% {
  1472. top: 0px;
  1473. }
  1474. 50% {
  1475. top: 5px;
  1476. }
  1477. 100% {
  1478. top: 0px;
  1479. }
  1480. }
  1481. </style>