camera.bak.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915
  1. <template>
  2. <view class="camera">
  3. <view class="details_title">
  4. <view class="details_nav"></view>
  5. <view class="details-title_head flex">
  6. <view class="details_title_return" @click="returnTop">
  7. <image src="/static/image/publice/fanhui@2x.png" mode=""></image>
  8. </view>
  9. <view class="details_title_name">{{ name }}</view>
  10. <view class="details_title_mp3" @click="changePlay">
  11. <image :src="isPlay ? '/static/image/home/bofang@2x.png' : '/static/image/home/guanbiyinyue@2x.png' " mode=""></image>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="camera_main">
  16. <view class="camera_main_head flex">
  17. <view class="details_head_price flexs">
  18. <view class="details_head_gold">我的余额:{{ info.coin }}金币</view>
  19. <view class="details_head_btn center" @click="recharge">充值</view>
  20. </view>
  21. <view class="details_head_rule flexs" @click="$refs.regulation.open()">
  22. <text>玩法规则</text>
  23. <image src="/static/image/home/wenhao@2x.png" mode=""></image>
  24. </view>
  25. </view>
  26. <view class="camera_main_box">
  27. <view class="camera_main_box_name">选择心仪的盒子</view>
  28. <view class="camera_main_box_ul flexs">
  29. <view class="camera_main_box_li center" @click="changeBox(item,index)" :class="{active:prizeList.indexOf(index)!=-1 || indexs == index}" v-for="(item,index) in 16" :key="index">
  30. <image src="/pagesA/static/hezi@2x.png" mode="aspectFill"></image>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="camera_footer flex">
  35. <view class="camera_footer_li center" @click="unpack(index)" v-for="(item,index) in 2" :key="index"> {{ index == 0 ? ( i == 0 ? '随机一个' : '随机五个') : '开箱' }}</view>
  36. </view>
  37. </view>
  38. <uni-popup ref="popup" type="bottom" :mask-click="false">
  39. <view class="pay">
  40. <view class="pay_close" @click="$refs.popup.close()">
  41. <image src="/static/image/home/guanbi@2x.png" mode=""></image>
  42. </view>
  43. <view class="pay_head">支付</view>
  44. <view class="pay_shop flexs">
  45. <view class="pay_shop_img">
  46. <view class="pay_shop_img_top">
  47. <view class="pay_shop_img_left">
  48. <image :src="boxMessage.image" mode="aspectFill"></image>
  49. </view>
  50. <view class="pay_shop_img_right">
  51. <image :src="item" mode="aspectFill" v-for="(item,index) in boxMessage.right" :key="index"></image>
  52. </view>
  53. </view>
  54. <view class="pay_shop_img_bot">
  55. <image :src="item" mode="aspectFill" v-for="(item,index) in boxMessage.bot" :key="index"></image>
  56. </view>
  57. </view>
  58. <view class="pay_shop_main">
  59. <view class="pay_shop_name">{{ boxMessage.box_name }}</view>
  60. <view class="pay_shop_price flex">
  61. <view class="pay_shop_price_l">{{ boxMessage.coin_amount }}金币</view>
  62. <view class="pay_shop_price_btn center" v-if="boxMessage.coin_not_enough">金额不足</view>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="pay_attention">{{ boxMessage.notice }}</view>
  67. <view class="pay_contant flexs">
  68. <image @click="isConsent = !isConsent" :src="isConsent ? '/static/image/publice/xuanzhong1@2x.png' : '/static/image/publice/weixuanzhong1@2x.png' " mode=""></image>
  69. <text @click="goBuyer">我已阅读并同意《喵喵开盒买家须知》</text>
  70. </view>
  71. <button class="pay_gold" @click="goldPay" v-if="!boxMessage.coin_not_enough" hover-class="hover-view">金币支付</button>
  72. <view class="pay_ul flex" v-else>
  73. <button class="pay_ul_btn" @click="recharge()" hover-class="hover-view">立即充值</button>
  74. <!--button class="pay_ul_btn" @click="patternIndex(index)" hover-class="hover-view" v-for="(item,index) in 2" :key="index">{{ index == 0 ? '微信支付'+ boxMessage.rmb_amount +'金币' : '支付宝支付'+ boxMessage.rmb_amount +'金币' }}</button-->
  75. </view>
  76. </view>
  77. </uni-popup>
  78. <!--S 玩法规则 -->
  79. <uni-popup ref="regulation" :mask-click="false">
  80. <view class="regulation">
  81. <view class="regulation_close" @click="$refs.regulation.close()">
  82. <image src="/static/image/home/guanbi@2x.png" mode=""></image>
  83. </view>
  84. <view class="regulation_name">玩法规则</view>
  85. <view class="regulation_main">
  86. <scroll-view scroll-y="true" class="scroll-view">
  87. <u-parse :content="message" ></u-parse>
  88. </scroll-view>
  89. </view>
  90. </view>
  91. </uni-popup>
  92. <!--E 玩法规则 -->
  93. <!-- S 奖品弹框 -->
  94. <uni-popup ref="prize" :mask-click="false">
  95. <view class="prize ">
  96. <view class="prize_box center">
  97. <view class="prize_close" @click="$refs.prize.close()">
  98. <image src="https://chaomd.liuniu946.com/image/open/guanbi@2x.png" mode=""></image>
  99. </view>
  100. <view class="prize_shop center" v-if="i == 0">
  101. <image v-if="prizedata&&prizedata.prizeInfo" :src="prizedata.prizeInfo[0].image" mode="aspectFill"></image>
  102. <text v-if="prizedata&&prizedata.prizeInfo">{{ prizedata.prizeInfo[0].goods_name }}</text>
  103. </view>
  104. <view class="prize_ul" v-else>
  105. <scroll-view scroll-x="true" class="scroll-view">
  106. <view class="prize_ul_li" v-for="(item,index) in prizedata.prizeInfo" :key="index">
  107. <image :src="item.image" mode="aspectFill"></image>
  108. <text>{{ item.goods_name }}</text>
  109. </view>
  110. </scroll-view>
  111. </view>
  112. <view class="prize_footer flex" v-if="type == 0">
  113. <view class="prize_footer_li center" v-for="(item,index) in 2" :key="index" @click="recycle(index)">{{ index == 0 ? '一键回收' : '立即发货'}}</view>
  114. </view>
  115. <view class="shiwan center" v-else>试玩结果仅供展示哦~</view>
  116. </view>
  117. </view>
  118. </uni-popup>
  119. <!-- E 奖品弹框 -->
  120. <!-- 收回弹框 -->
  121. <uni-popup ref="recycle" :mask-click="false">
  122. <view class="recycle">
  123. <view class="recycle_close" @click="$refs.recycle.close()">
  124. <image src="/static/image/publice/guanbi@2x.png" mode=""></image>
  125. </view>
  126. <view class="recycle_head">提示</view>
  127. <view class="recycle_price center">
  128. <text>¥{{ recycleMessage.amount }}</text>
  129. <text>回收金币</text>
  130. </view>
  131. <view class="recycle_ul">
  132. <view class="recycle_ul_li flex" v-for="(item,index) in recycleMessage.goods_info" :key="index">
  133. <view class="recycle_ul_li_txt">{{ item.name }}</view>
  134. <view class="recycle_ul_li_r flexs">
  135. <text>¥{{ item.price }}</text>
  136. <text>x{{ item.num }}</text>
  137. </view>
  138. </view>
  139. </view>
  140. <view class="recycle_txt">{{ recycleMessage.notice }}</view>
  141. </view>
  142. </uni-popup>
  143. </view>
  144. </template>
  145. <script>
  146. var jweixin = require('@/js_sdk');
  147. const innerAudioContexts = uni.createInnerAudioContext();
  148. // innerAudioContexts.autoplay = true;
  149. innerAudioContexts.loop = true;
  150. innerAudioContexts.src = '/static/image/home/bj.mp3';
  151. const innerAudioContext = uni.createInnerAudioContext();
  152. innerAudioContext.obeyMuteSwitch = false
  153. export default {
  154. data() {
  155. return {
  156. name:'',
  157. box_id:'',//盒子ID
  158. prizeList:[],//奖品列表
  159. indexs: -1, // 当前转动到哪个位置,起点位置
  160. count: 9, // 总共有多少个位置
  161. timer: 0, // 每次转动定时器
  162. speed: 200, // 初始转动速度
  163. times: 0, // 转动次数
  164. cycle: 30, // 转动基本次数:即至少需要转动多少次再进入抽奖环节
  165. prize: -1, // 中奖位置
  166. click: true, //标识是否处于抽奖状态
  167. showToast: false ,//显示中奖弹窗
  168. indexList:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],
  169. type:null,//1试玩0详情
  170. i:'',//一发还是五发
  171. message:'',//玩法规则
  172. boxMessage:{},//盒子详情
  173. goldFlag:true,
  174. prizedata:{},//奖品列表
  175. isConsent:false,//是否同意
  176. isHand:false,
  177. info:{},//个人信息
  178. recovery_rule:'',
  179. recycleMessage:{},//回收信息
  180. out_trade_no:'',//微信支付宝支付订单号
  181. isPlay:true,
  182. };
  183. },
  184. methods:{
  185. changePlay () {
  186. this.isPlay = !this.isPlay
  187. uni.setStorageSync('isPlay',this.isPlay)
  188. this.isPlay ? innerAudioContexts.play() : innerAudioContexts.pause()
  189. },
  190. //一键回收
  191. recycle (index) {
  192. let ids = []
  193. this.prizedata.prizeInfo.forEach(item=>{
  194. ids.push(item.prize_id)
  195. })
  196. this.$refs.prize.close()
  197. if (index == 0) {
  198. this.$api.exchange({record_ids:ids.join(',')}).then(res=>{
  199. if (res.code === 1) {
  200. this.recycleMessage = res.data
  201. this.$refs.recycle.open()
  202. }
  203. })
  204. } else {
  205. uni.redirectTo({url:'/pages/me/applyFaHuo?id=' + ids.join(',')})
  206. }
  207. },
  208. //买家须知
  209. goBuyer () {
  210. uni.navigateTo({url:'/pagesA/pages/buyer'})
  211. },
  212. //金币支付
  213. goldPay () {
  214. if (!this.isConsent) return uni.showToast({title:'请阅读并勾选买家须知',icon:'none'})
  215. if (!this.goldFlag) return
  216. this.goldFlag = false
  217. this.$api.coinPay({order_id:this.boxMessage.order_id}).then(res=>{
  218. if (res.code === 1) {
  219. this.prizedata = res.data.prize
  220. this.$refs.popup.close()
  221. if (!this.isHand) {
  222. this.getInfo()
  223. this.startRoll()
  224. this.playMp3()
  225. } else {
  226. this.$refs.prize.open()
  227. }
  228. this.goldFlag = true
  229. } else {
  230. this.goldFlag = true
  231. }
  232. })
  233. },
  234. //支付宝微信支付
  235. patternIndex (index) {
  236. if (!this.isConsent) return uni.showToast({title:'请阅读并勾选买家须知',icon:'none'})
  237. if (!this.goldFlag) return
  238. this.goldFlag = false
  239. let that = this
  240. this.$http.post(this.boxMessage.wechat).then(res=>{
  241. if (res.code === 1) {
  242. WeixinJSBridge.invoke('getBrandWCPayRequest', {
  243. "appId": res.data.appId, //公众号ID,由商户传入
  244. "timeStamp": res.data.timeStamp, //时间戳,自1970年以来的秒数
  245. "nonceStr": res.data.nonceStr, //随机串
  246. "package": res.data.package,
  247. "signType": res.data.signType, //微信签名方式:
  248. "paySign": res.data.paySign //微信签名
  249. },
  250. function(res) {
  251. if (res.err_msg == "get_brand_wcpay_request:ok") {
  252. that.type = 0
  253. that.getOpenByOrderTrade(0)
  254. // 使用以上方式判断前端返回,微信团队郑重提示:
  255. //res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
  256. }
  257. });
  258. } else if (res.code === 403) {
  259. }
  260. })
  261. if (index == 0) {
  262. // this.$api.
  263. } else {
  264. location.href = this.boxMessage[index == 0 ? 'wechat' : 'alipay'] + '?type='+ this.type +'&index='+ this.i+'&id='+ this.box_id +'&name=' + this.name + '&token=' + uni.getStorageSync('token')
  265. }
  266. },
  267. //去充值
  268. recharge () {
  269. uni.navigateTo({url:'/pages/me/recharge'})
  270. },
  271. //播放音频
  272. playMp3 () {
  273. innerAudioContext.src = '/pagesA/static/jhr.mp3'
  274. innerAudioContext.loop = true
  275. innerAudioContext.play()
  276. },
  277. //开奖
  278. unpack (index) {
  279. this.isHand = index == 0 ? false : true
  280. if (index == 1) {
  281. if (this.i == 0) {
  282. if (this.prizeList.length == 0) return uni.showToast({title:'请选择一个盒子',icon:'none'})
  283. } else {
  284. if (this.prizeList.length < 5) return uni.showToast({title:'请选择五个盒子',icon:'none'})
  285. }
  286. } else {
  287. this.prizeList = []
  288. }
  289. this.createOrder(index)
  290. //
  291. },
  292. startRoll() {
  293. this.times += 1; // 转动次数
  294. this.oneRoll(); // 转动过程调用的每一次转动方法,这里是第一次调用初始化
  295. // 如果当前转动次数达到要求 && 目前转到的位置是中奖位置
  296. if (this.times > this.cycle + 10 && this.prize === this.indexs) {
  297. clearTimeout(this.timer); // 清除转动定时器,停止转动
  298. this.$refs.prize.open()
  299. innerAudioContext.stop()
  300. innerAudioContext.loop = false
  301. innerAudioContext.src = '/pagesA/static/hjo.mp3'
  302. innerAudioContext.play()
  303. this.prize = -1;
  304. // if (this.isDemo) {
  305. // this.$refs.single_prize.open()
  306. // } else {
  307. // this.num == 1 ? this.setlottery(true,this.$store.state.prizedata.type-1+2) : this.setlottery(true,9)
  308. // }
  309. // this.prizeList.push(this.indexs)
  310. // this.getBoxMessage()
  311. this.indexs = -1
  312. //
  313. this.times = 0;
  314. this.speed = 46;
  315. this.click = true;
  316. this.pretreasurerunging = false
  317. var that = this;
  318. setTimeout(res => {
  319. that.showToast = true;
  320. // this.index = -1
  321. }, 500);
  322. } else {
  323. if (this.times < this.cycle) {
  324. this.speed -= 10; // 加快转动速度
  325. } else if (this.times === this.cycle) {
  326. const index = parseInt(Math.random() * 10, 0) || 0; // 随机获得一个中奖位置
  327. // this.prize = this.lotteryList.indexOf(this.prizeMessage.id); //中奖位置,可由后台返回
  328. this.prize = this.indexs
  329. } else if (this.times > this.cycle + 10 && ((this.prize === 0 && this.indexs === 7) || this.prize === this.indexs + 1)) {
  330. this.speed += 110;
  331. } else {
  332. this.speed += 20;
  333. }
  334. if (this.speed < 40) {
  335. this.speed = 46;
  336. }
  337. this.timer = setTimeout(this.startRoll, 46);
  338. }
  339. },
  340. // 每一次转动
  341. oneRoll() {
  342. let index = this.indexs; // 当前转动到哪个位置
  343. const count = this.count; // 总共有多少个位置
  344. index += 1;
  345. if (index > count - 1) {
  346. index = 0;
  347. }
  348. let num = parseInt(Math.random() * this.indexList.length);
  349. this.indexs = this.indexList[num]
  350. },
  351. //选择奖品
  352. changeBox (item,index) {
  353. var indexs = this.prizeList.indexOf(index);
  354. if(indexs>-1) {//大于0 代表存在,
  355. this.prizeList.splice(indexs,1);//存在就删除
  356. } else {
  357. if (this.i == 1) {
  358. if (this.prizeList.length == 5) {
  359. this.prizeList.shift()
  360. }
  361. } else {
  362. if (this.prizeList.length == 1) {
  363. this.prizeList = []
  364. }
  365. }
  366. this.prizeList.push(index)
  367. }
  368. },
  369. returnTop () {
  370. uni.navigateBack()
  371. },
  372. //玩法规则
  373. getMessage () {
  374. this.$api.agreement({name:'play_rule'}).then(res=>{
  375. if (res.code === 1) {
  376. this.message = res.data.content
  377. }
  378. })
  379. this.$api.agreement({name:'recovery_rule'}).then(res=>{
  380. if (res.code === 1) {
  381. this.recovery_rule = res.data.content
  382. }
  383. })
  384. },
  385. //创建订单
  386. createOrder (index) {
  387. this.$api[this.type == 1 ? 'haveATry' : 'createOrder']({box_id:this.box_id,num:this.i == 0 ? 1 : 5,msg:this.type == 1 ? '试玩' : '创建订单中',select:this.prizeList.join(',')}).then(res=>{
  388. if (res.code === 1) {
  389. if (this.type == 1) {
  390. this.prizedata = {prizeInfo:res.data.goodsInfo}
  391. this.$refs.popup.close()
  392. if (!this.isHand) {
  393. this.startRoll()
  394. this.playMp3()
  395. } else {
  396. this.$refs.prize.open()
  397. }
  398. } else {
  399. res.data.right = []
  400. res.data.bot = []
  401. res.data.image = res.data.images[0]
  402. res.data.images.forEach((item,index)=>{
  403. if (index > 0 && index < 3) {
  404. res.data.right.push(item)
  405. }
  406. if (index > 2) {
  407. res.data.bot.push(item)
  408. }
  409. })
  410. this.boxMessage = res.data
  411. this.$refs.popup.open()
  412. }
  413. }
  414. })
  415. },
  416. //获取个人信息
  417. getInfo () {
  418. this.$api.userinfo().then(res=>{
  419. if (res.code === 1) {
  420. this.info = res.data
  421. }
  422. })
  423. },
  424. getOpenByOrderTrade (type) {
  425. this.$api.openByOrderTrade(type == 0 ? {order_id:this.boxMessage.order_id} : {out_trade_no:this.out_trade_no}).then(res=>{
  426. if (res.code === 1) {
  427. this.prizedata = res.data.prize
  428. this.$refs.popup.close()
  429. this.startRoll()
  430. this.playMp3()
  431. this.goldFlag = true
  432. }
  433. })
  434. },
  435. },
  436. onUnload() {
  437. innerAudioContexts.pause()
  438. },
  439. onLoad ({type,index,id,name,status,out_trade_no,token}) {
  440. this.isPlay = uni.getStorageSync('isPlay')
  441. this.isPlay ? innerAudioContexts.play() : innerAudioContexts.pause()
  442. if (token) {
  443. uni.setStorageSync('token',token)
  444. }
  445. if (out_trade_no) {
  446. this.out_trade_no = out_trade_no
  447. }
  448. if (status == 0 || status) {
  449. status == 0 ? uni.showToast({title:'取消支付',icon:'none'}) : this.getOpenByOrderTrade(1)
  450. }
  451. this.name = name
  452. this.box_id = id
  453. this.i = index
  454. this.type = type
  455. this.getMessage()
  456. this.getInfo()
  457. }
  458. }
  459. </script>
  460. <style lang="scss">
  461. .camera_head {
  462. height: 88rpx;
  463. }
  464. .details_title {
  465. width: 100%;
  466. position: sticky;
  467. top: 0;
  468. z-index: 2021;
  469. .details_nav {width: 100%;}
  470. .details-title_head {
  471. width: 100%;
  472. height: 88rpx;
  473. padding: 0 30rpx;
  474. background: #FFFFFF;
  475. .details_title_return {
  476. width: 44rpx;
  477. height: 44rpx;
  478. }
  479. .details_title_name {
  480. width: 466rpx;
  481. text-align: center;
  482. overflow: hidden;
  483. text-overflow:ellipsis;
  484. white-space: nowrap;
  485. font-size: 36rpx;
  486. font-weight: bold;
  487. }
  488. .details_title_mp3 {
  489. width: 44rpx;
  490. height: 44rpx;
  491. }
  492. }
  493. }
  494. .camera_main {
  495. height: calc(100vh - 88rpx);
  496. background: url(../static/beijing@2x.png) no-repeat;
  497. background-size: cover;
  498. .camera_main_head {
  499. padding: 30rpx 30rpx 80rpx 30rpx;
  500. .details_head_gold {
  501. color: #FFFFFF;
  502. font-size: 30rpx;
  503. font-weight: bold;
  504. }
  505. .details_head_btn {
  506. width: 120rpx;
  507. height: 50rpx;
  508. color: #FFFFFF;
  509. font-size: 28rpx;
  510. background: linear-gradient(0deg, #F6AF32 0%, #F7751F 100%);
  511. border-radius: 25rpx;
  512. margin-left: 30rpx;
  513. }
  514. .details_head_rule {
  515. image {
  516. width: 24rpx;
  517. height: 24rpx;
  518. margin-left: 10rpx;
  519. }
  520. text {
  521. color: #FFFFFF;
  522. font-size: 26rpx;
  523. }
  524. }
  525. }
  526. .camera_main_box {
  527. width: 713rpx;
  528. height: 628rpx;
  529. margin: 0 auto;
  530. background: url(../static/xuanzehezi@2x.png) no-repeat;
  531. background-size: cover;
  532. .camera_main_box_name {
  533. color: #FFFFFF;
  534. height: 140rpx;
  535. line-height: 140rpx;
  536. padding-top: 10rpx;
  537. text-align: center;
  538. font-size: 30rpx;
  539. }
  540. .camera_main_box_ul {
  541. width: 592rpx;
  542. margin: 0 auto;
  543. flex-wrap: wrap;
  544. .camera_main_box_li {
  545. width: 142rpx;
  546. height: 110rpx;
  547. margin: 0 8rpx 8rpx 0;
  548. &:nth-child(4n) {
  549. margin-right: 0;
  550. }
  551. background: url(../static/hezibeijing@2x.png) no-repeat;
  552. background-size: cover;
  553. border-image: linear-gradient(164deg, #FFA800, #FF3904, #FF8A00) 2 2;
  554. border-radius: 8rpx;
  555. image {
  556. width: 72rpx;
  557. height: 72rpx;
  558. }
  559. }
  560. .active {
  561. background: url(../static/xuanzhongbeijing@2x.png) no-repeat;
  562. background-size: cover;
  563. }
  564. }
  565. }
  566. }
  567. .camera_footer {
  568. padding: 0 30rpx;
  569. margin-top: 190rpx;
  570. .camera_footer_li {
  571. width: 330rpx;
  572. height: 88rpx;
  573. font-size: 30rpx;
  574. font-family: PingFang SC;
  575. font-weight: 500;
  576. color: #FFFFFF;
  577. text-shadow: 0rpx 2rpx 1rpx #FC985C;
  578. &:first-child {
  579. background: linear-gradient(145deg, #FB986E, #FA7E48);
  580. box-shadow: 0rpx 5rpx 5rpx 0rpx rgba(138, 56, 6, 0.44);
  581. }
  582. &:last-child {
  583. background: linear-gradient(145deg, #FF6666, #FF413F);
  584. box-shadow: 0rpx 5rpx 5rpx 0rpx rgba(138, 56, 6, 0.44);
  585. border-radius: 44rpx;
  586. }
  587. border-radius: 44rpx;
  588. }
  589. }
  590. .pay {
  591. background: #FFFFFF;
  592. border-radius: 20rpx 20rpx 0rpx 0rpx;
  593. padding: 0 50rpx 32rpx 50rpx;
  594. position: relative;
  595. .pay_close {
  596. top: 30rpx;
  597. right: 30rpx;
  598. width: 44rpx;
  599. height: 44rpx;
  600. position: absolute;
  601. }
  602. .pay_head {
  603. text-align: center;
  604. font-size: 30rpx;
  605. font-weight: bold;
  606. padding: 40rpx 0 50rpx 0;
  607. }
  608. .pay_shop {
  609. margin-bottom: 40rpx;
  610. .pay_shop_main {
  611. display: flex;
  612. flex: 1;
  613. height: 200rpx;
  614. flex-direction: column;
  615. justify-content: space-around;
  616. }
  617. .pay_shop_img {
  618. width: 200rpx;
  619. height: 200rpx;
  620. padding: 12rpx;
  621. .pay_shop_img_top {
  622. display: flex;
  623. margin-bottom: 12rpx;
  624. .pay_shop_img_left {
  625. image {
  626. width: 114rpx;
  627. height: 114rpx;
  628. border-radius: 6rpx;
  629. }
  630. margin-right: 12rpx;
  631. }
  632. .pay_shop_img_right {
  633. image {
  634. width: 51rpx;
  635. height: 51rpx;
  636. &:first-child {
  637. margin-bottom: 12rpx;
  638. }
  639. border-radius: 6rpx;
  640. }
  641. }
  642. }
  643. .pay_shop_img_bot {
  644. display: flex;
  645. justify-content: flex-end;
  646. image {
  647. width: 51rpx;
  648. height: 51rpx;
  649. margin-left: 12rpx;
  650. &:first-child {
  651. margin-left: 0;
  652. }
  653. border-radius: 6rpx;
  654. }
  655. }
  656. margin-right: 30rpx;
  657. }
  658. .pay_shop_name {
  659. font-size: 28rpx;
  660. }
  661. .pay_shop_price_l {
  662. color: #CF271B;
  663. font-size: 30rpx;
  664. }
  665. .pay_shop_price_btn {
  666. width: 183rpx;
  667. height: 50rpx;
  668. color: #FA7E48;
  669. font-size: 30rpx;
  670. font-weight: bold;
  671. background: rgba(246, 175, 50, 0.5);
  672. border-radius: 25rpx;
  673. }
  674. }
  675. .pay_attention {
  676. color: #666666;
  677. }
  678. .pay_contant {
  679. margin: 24rpx 0 59rpx 0;
  680. image {
  681. width: 32rpx;
  682. height: 32rpx;
  683. margin-right: 10rpx;
  684. }
  685. text {
  686. font-size: 26rpx;
  687. }
  688. }
  689. .pay_gold {
  690. height: 78rpx;
  691. font-size: 26rpx;
  692. background: #FF6666;
  693. border-radius: 39rpx;
  694. }
  695. .pay_ul_btn {
  696. width: 310rpx;
  697. height: 78rpx;
  698. font-size: 26rpx;
  699. background: #FA7E48;
  700. border-radius: 39rpx;
  701. &:last-child {
  702. background: #FF6666;
  703. }
  704. }
  705. }
  706. .regulation {
  707. width: 650rpx;
  708. .scroll-view {
  709. height: 735rpx;
  710. }
  711. padding: 0 0 0 30rpx;
  712. background: #FFFFFF;
  713. border-radius: 20rpx;
  714. position: relative;
  715. .regulation_close {
  716. position: absolute;
  717. width: 44rpx;
  718. height: 44rpx;
  719. top: 30rpx;
  720. right: 30rpx;
  721. }
  722. .regulation_name {
  723. padding: 40rpx 0;
  724. padding-right: 30rpx;
  725. text-align: center;
  726. font-size: 30rpx;
  727. font-weight: bold;
  728. }
  729. }
  730. .prize {
  731. width: 750rpx;
  732. display: flex;
  733. justify-content: flex-end;
  734. .prize_box {
  735. width: 709rpx;
  736. height: 876rpx;
  737. padding: 160rpx 160rpx 0 0 ;
  738. position: relative;
  739. flex-direction: column;
  740. background: url(https://chaomd.liuniu946.com/image/open/beijing@2x.png) no-repeat;
  741. background-size: cover;
  742. .prize_close {
  743. width: 30rpx;
  744. height: 30rpx;
  745. top: 70rpx;
  746. right: 127rpx;
  747. position: absolute;
  748. }
  749. }
  750. .shiwan {
  751. background: url(https://chaomd.liuniu946.com/image/open/tanchuangbeijing@2x.png) no-repeat;
  752. background-size: cover;
  753. }
  754. .scroll-view {
  755. width: 522rpx;
  756. white-space:nowrap;
  757. .prize_ul_li {
  758. margin-right: 20rpx;
  759. &:last-child {
  760. margin-right: 0;
  761. }
  762. display: inline-block;
  763. image {
  764. width: 174rpx;
  765. height: 235rpx;
  766. margin: 0 auto;
  767. margin-bottom: 20rpx;
  768. }
  769. text {
  770. width: 100%;
  771. text-align: center;
  772. color: #FFFFFF;
  773. display: inline-block;
  774. font-size: 28rpx;
  775. }
  776. }
  777. }
  778. .prize_shop {
  779. display: flex;
  780. flex-direction: column;
  781. image {
  782. width: 174rpx;
  783. height: 235rpx;
  784. margin-bottom: 20rpx;
  785. }
  786. text {
  787. color: #FFFFFF;
  788. font-size: 28rpx;
  789. }
  790. }
  791. .prize_footer {
  792. margin-top: 40rpx;
  793. .prize_footer_li {
  794. width: 180rpx;
  795. height: 60rpx;
  796. color: #FFFFFF;
  797. font-size: 26rpx;
  798. background: #FF6666;
  799. border-radius: 30rpx;
  800. &:last-child {
  801. background: #FA7E48;
  802. margin-left: 60rpx;
  803. }
  804. }
  805. }
  806. .shiwan {
  807. width: 399rpx;
  808. height: 48rpx;
  809. color: #FFFFFF;
  810. font-size: 30rpx;
  811. margin-top: 40rpx;
  812. background: #000000;
  813. border-radius: 27rpx 27rpx 27rpx 27rpx;
  814. }
  815. }
  816. .recycle {
  817. width: 640rpx;
  818. padding-bottom: 95rpx;
  819. position: relative;
  820. background: #FFFFFF;
  821. box-shadow: 0rpx -5rpx 20rpx 0rpx rgba(0, 0, 0, 0.1);
  822. border-radius: 30rpx;
  823. .recycle_close {
  824. top: 20rpx;
  825. right: 30rpx;
  826. width: 44rpx;
  827. height: 44rpx;
  828. position: absolute;
  829. }
  830. .recycle_head {
  831. height: 100rpx;
  832. text-align: center;
  833. line-height: 100rpx;
  834. font-size: 32rpx;
  835. font-weight: bold;
  836. border-bottom: 2rpx solid #E9E9E9;
  837. }
  838. .recycle_price {
  839. margin: 40rpx 0 0rpx 0;
  840. flex-direction: column;
  841. text {
  842. color: #FA7E48;
  843. font-size: 36rpx;
  844. font-weight: bold;
  845. &:last-child {
  846. color: #333333;
  847. margin-top: 10rpx;
  848. font-size: 26rpx;
  849. }
  850. }
  851. }
  852. .recycle_ul {
  853. padding: 0 30rpx;
  854. margin: 50rpx 0;
  855. }
  856. .recycle_ul_li {
  857. margin-bottom: 30rpx;
  858. &:last-child {
  859. margin-bottom: 0;
  860. }
  861. .recycle_ul_li_txt {
  862. color: #999999;
  863. font-size: 26rpx;
  864. }
  865. .recycle_ul_li_r {
  866. text {
  867. color: #999999;
  868. font-size: 26rpx;
  869. &:last-child {
  870. width: 80rpx;
  871. text-align: right;
  872. color: #FA7E48;
  873. font-size: 30rpx;
  874. }
  875. }
  876. }
  877. }
  878. .recycle_txt {
  879. padding: 0 30rpx;
  880. color: #999999;
  881. font-size: 26rpx;
  882. }
  883. }
  884. </style>