index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924
  1. <template>
  2. <view class="luckyDraw" :style="{backgroundImage:`url(${bg})` }">
  3. <view class="lucky-box" :class="isHidden?'hidden':''">
  4. <LuckyWheel ref="myLucky" width="600rpx" height="600rpx" :blocks="blocks" :prizes="prizes"
  5. :buttons="buttons" :defaultStyle="defaultStyle" @start="startCallBack" @end="endCallBack" />
  6. <view class="desk">
  7. <image class="icon"
  8. src="https://hyxhsh.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/HmntmDPPKjjS11b74d9dd70452a39648bfab16eb88cb.png/1.png"
  9. mode=""></image>
  10. <view class="times">
  11. 抽奖次数:{{prizeNum}}次
  12. </view>
  13. </view>
  14. </view>
  15. <view class="rule-btn" @click="handleRule">
  16. 抽奖规则
  17. </view>
  18. <view class="box">
  19. <view class="title">
  20. <image class="icon" src="https://hyxhsh.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/K4cEa0zOfcQ6371bdc4794cc3926a80e57995db464c9.png/1.png" mode=""></image>
  21. <!-- 中奖记录 -->
  22. </view>
  23. <view class="content box-container">
  24. <u-empty v-if="!logList.length" text="中奖记录空空如也" iconSize="200rpx" textSize="28rpx">
  25. </u-empty>
  26. <zs-list class="store-box" mt="0" @load="prizeList" :status="status">
  27. <view class="item" v-for="(item,index) in logList" :key="index">
  28. 恭喜
  29. <text class="yellow">
  30. {{item.nickname}}
  31. </text>
  32. 获得
  33. <text class="yellow">
  34. {{item.prizeName}}
  35. </text>
  36. </view>
  37. </zs-list>
  38. </view>
  39. </view>
  40. <view class="box">
  41. <view class="title">
  42. <image class="icon" src="https://hyxhsh.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/NWz4vrvoR3UX83e62d6820324af95a2878ccedd39049.png/1.png" mode=""></image>
  43. <!-- 活动奖品 -->
  44. </view>
  45. <view class="content flex-box">
  46. <view class="item" v-for="(item,index) in list" :key="index">
  47. <image class="icon" :src="item.prizeImg" mode=""></image>
  48. <view class="name">
  49. {{item.prizeName}}
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="box">
  55. <view class="title">
  56. <image class="icon" src="https://hyxhsh.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/YfCL69lDjHXI5b33c3b17b10267f2aa2a41a152aa42f.png/1.png" mode=""></image>
  57. <!-- 我的奖品 -->
  58. </view>
  59. <view class="more-btn" @click="handleMore">
  60. 查看
  61. </view>
  62. <view class="content table-box">
  63. <view class="header">
  64. <view class="num">
  65. 序号
  66. </view>
  67. <view class="time">
  68. 获奖时间
  69. </view>
  70. <view class="info">
  71. 奖品信息
  72. </view>
  73. </view>
  74. <view class="table-body">
  75. <u-empty v-if="!myLogList.length" text="你还没有中奖记录" iconSize="200rpx" textSize="28rpx"></u-empty>
  76. <view class="item" v-for="(item,index) in myLogList" :key="index">
  77. <view class="num">
  78. {{index+1}}
  79. </view>
  80. <view class="time">
  81. {{item.createTime}}
  82. </view>
  83. <view class="info">
  84. {{item.prizeName}}
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. </view>
  90. <!-- 视频会员 -->
  91. <zs-luck-dialog v-if="show" btnText="立即充值" @submit="submit" @close="handleClose('show')">
  92. <view class="result-box">
  93. <view class="goods-name">
  94. {{result.prizeName}}
  95. </view>
  96. <image class="img" :src="result.prizeImg" mode=""></image>
  97. <view class="input-box">
  98. <view class="label">
  99. 请输入充值手机号:
  100. </view>
  101. <input class="input" type="text" :maxlength="11" v-model.trim="account" placeholder="请输入充值账号" />
  102. </view>
  103. <view class="notice">
  104. 请立即输入账号进行充值,若不充值则视为放弃
  105. </view>
  106. </view>
  107. </zs-luck-dialog>
  108. <!-- 邮寄 -->
  109. <zs-luck-dialog v-if="show1" btnText="提交收货信息" @submit="submit1" @close="handleClose('show1')">
  110. <view class="result-box">
  111. <view class="goods-name">
  112. {{result.prizeName}}
  113. </view>
  114. <image class="img" :src="result.prizeImg" mode=""></image>
  115. <view class="sub-title">
  116. 中奖奖品将邮寄给您,请输入收货信息
  117. </view>
  118. <u--form :model="noteQuery" ref="uForm" borderBottom labelWidth="180rpx" :labelStyle="{'color': '#222222','font-weight': 'bold','line-height':'60rpx','font-size': '28rpx'}">
  119. <u-form-item label="收货人姓名" prop="notes.name" borderBottom ref="item1" required>
  120. <u--input v-model.trim="noteQuery.notes.name" placeholder="请输入姓名" border="none"></u--input>
  121. </u-form-item>
  122. <u-form-item label="收货地址" prop="notes.address" borderBottom ref="item1" required>
  123. <u--input v-model.trim="noteQuery.notes.address" :maxlength="50" placeholder="请输入收货地址" border="none"></u--input>
  124. </u-form-item>
  125. <u-form-item label="联系电话" prop="notes.phone" borderBottom ref="item1" required>
  126. <u--input v-model.trim="noteQuery.notes.phone" :maxlength="11" placeholder="请输入手机号" border="none"></u--input>
  127. </u-form-item>
  128. </u--form>
  129. <view class="notice">
  130. 说明:为保障商品及时送到您的手中,请填写准确的地
  131. 址信息,若提交后需要修改地址信息请及时联系客服
  132. </view>
  133. </view>
  134. </zs-luck-dialog>
  135. <!-- 线上发货 线下自提 -->
  136. <zs-luck-dialog v-if="show2" @submit="handleClose('show2')" @close="handleClose('show2')">
  137. <view class="result-box">
  138. <view class="goods-name">
  139. {{result.prizeName}}
  140. </view>
  141. <image class="img" :src="result.prizeImg" mode=""></image>
  142. <view class="address">
  143. 取货地址:{{result.address}}
  144. </view>
  145. <view class="notice">
  146. {{result.sendType == 1?`兑换有效期:请在${result.valid}个工作日内到自提点取货,过期失效`:'优惠劵已存入【我的优惠劵】,可前往【我的优惠劵】中查看使用'}}
  147. </view>
  148. </view>
  149. </zs-luck-dialog>
  150. <!-- 未中奖 -->
  151. <zs-luck-dialog v-if="show3" :titleIcon="result.prizeType == 5?'https://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/R5gnXtO4tU9I391ccdbfe29a8a21e97108077dbbf4c5.png/1.png':'https://hyxhsh.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/ApX9kwEUYgE84e54016e951eaab20c5a504e8c5df6f2.png/1.png'" @submit="handleClose('show3')" @close="handleClose('show3')">
  152. <view class="result-box">
  153. <view class="goods-name">
  154. {{result.prizeName}}
  155. </view>
  156. <image class="img" :src="result.prizeImg" mode=""></image>
  157. <view class="address">
  158. {{result.prizeType == 5?'好可惜啊,差一点就中了':result.address}}
  159. </view>
  160. </view>
  161. </zs-luck-dialog>
  162. <zs-luck-dialog titleIcon="https://hyxhsh.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/DNbGhIUkgQSc756a0dc349b888bddc286ecea867f25f.png/1.png" v-if="show4" @submit="handleClose('show4')" @close="handleClose('show4')">
  163. <view class="rule-content">
  164. <rich-text class="rule-text" :nodes="rule"></rich-text>
  165. </view>
  166. </zs-luck-dialog>
  167. </view>
  168. </template>
  169. <script>
  170. import {
  171. prizeList,
  172. getLuckyDrawDetail,
  173. prize,
  174. sendVipPrize,
  175. notes,
  176. remainder
  177. } from "@/api/luckyDraw.js"
  178. import LuckyWheel from '@/components/@lucky-canvas/uni/lucky-wheel' // 大转盘
  179. export default {
  180. components: {
  181. LuckyWheel
  182. },
  183. data() {
  184. return {
  185. fullPrize:[],//完整奖品
  186. bg:'https://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/rP86PRmpk21z60fd17f0e1363aacf412d0a7f9983abb.png/1.png',
  187. isPrize:false,
  188. isGet:false,
  189. prizeId:0,
  190. prizeNum:'',
  191. rule:'',
  192. prizeIndex:0,
  193. result:{
  194. prizeImg:'',
  195. prizeName:'',
  196. },
  197. query:{
  198. raffleId:0,
  199. currentPage:1,
  200. pageSize:10,
  201. },
  202. status:'more',
  203. list:[],
  204. logList:[],//中奖记录
  205. myLogList:[],//我的中奖纪录
  206. account:'',//充值账号
  207. show: false,
  208. show1: false,
  209. show2: false,
  210. show3: false,
  211. show4: false,
  212. colorList:['#E2EEF5','#FFF4DC','#FFEAC0'],
  213. blocks: [{
  214. padding: '60rpx',
  215. imgs: [{
  216. src: 'https://hyxhsh.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/G4CJbO8GK7vJ26e48d74c4cd60260313494a367fbe7b.png/1.png',
  217. width: "600rpx",
  218. height: '600rpx',
  219. }]
  220. }],
  221. prizes: [],
  222. buttons: [{
  223. radius: '110rpx',
  224. imgs: [{
  225. src: 'https://hyxhsh.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/eTft9lkLzsdTf25c64b3163deb68039b574142a917bb.png/1.png',
  226. top: '-87rpx',
  227. width: "110rpx",
  228. height: '152rpx',
  229. }]
  230. },
  231. ],
  232. userId:'',
  233. noteQuery:{
  234. "notes": {
  235. "address": "",
  236. "name": "",
  237. "phone": ""
  238. },
  239. "rafflePrizeLogId": 0
  240. },
  241. rules:{
  242. 'notes.name': {
  243. type: 'string',
  244. required: true,
  245. message: '请输入姓名',
  246. trigger: ['blur', 'change']
  247. },
  248. 'notes.address': {
  249. type: 'string',
  250. required: true,
  251. message: '请输入收货地址',
  252. trigger: ['blur', 'change']
  253. },
  254. 'notes.phone': {
  255. type: 'string',
  256. required: true,
  257. message: '请输入手机号',
  258. trigger: ['blur', 'change']
  259. },
  260. }
  261. }
  262. },
  263. computed: {
  264. isHidden() {
  265. if(this.show||this.show1||this.show2||this.show3||this.show4){
  266. return true
  267. }else{
  268. return false
  269. }
  270. }
  271. },
  272. methods: {
  273. handleMore(url){
  274. uni.navigateTo({
  275. url:'/luckyDraw/prizeList?id='+this.query.raffleId
  276. })
  277. },
  278. handleClose(val){
  279. this[val] = false
  280. },
  281. handleRule(){
  282. this.show4 = true
  283. },
  284. // 点击抽奖按钮触发回调
  285. startCallBack() {
  286. if(this.isPrize) return
  287. // 先开始旋转
  288. if(this.prizeNum>0){
  289. this.isPrize = true
  290. this.prizeNum--
  291. // this.$refs.myLucky.play()
  292. this.prize()
  293. }else{
  294. return uni.showToast({
  295. title:'抽奖次数不足',
  296. icon:'none'
  297. })
  298. }
  299. },
  300. // 抽奖结束触发回调
  301. endCallBack(prize) {
  302. setTimeout(()=>{
  303. this.isPrize = false
  304. },200)
  305. console.log(prize)
  306. if(JSON.stringify(prize) == '{}') return
  307. this.initLogs()
  308. // 奖品详情
  309. if(this.result.prizeType == 2){//视频会员
  310. this.show = true
  311. }else if(this.result.prizeType == 5){//未中奖
  312. this.show3 = true
  313. }else if(this.result.sendType == 2){//邮寄
  314. this.show1 = true
  315. this.$nextTick(() => {
  316. this.$refs.uForm.setRules(this.rules)
  317. })
  318. }else if(this.result.sendType == 1 || this.result.sendType == 3){//线上线下发货
  319. this.show2 = true
  320. }
  321. },
  322. // 将两个数组交替插入一个数组
  323. mergeArraysAlternately(arr1, arr2) {
  324. const result = [];
  325. const length1 = arr1.length;
  326. const length2 = arr2.length;
  327. let i = 0, j = 0;
  328. while (i < length1 || j < length2) {
  329. if (i < length1) {
  330. result.push(arr1[i]);
  331. i++;
  332. }
  333. if (j < length2) {
  334. result.push(arr2[j]);
  335. j++;
  336. }
  337. }
  338. return result;
  339. },
  340. getLuckyDrawDetail(raffleId) {
  341. getLuckyDrawDetail({
  342. raffleId,
  343. regionCode:'520100'
  344. }).then(res => {
  345. if (res.state == 'Success') {
  346. this.bg = res.content.backImg
  347. this.rule = res.content.raffleRule
  348. let prizeList = [] // 奖品列表
  349. let failList = []//未中奖列表
  350. res.content.prizes.map(item=>{
  351. if(item.prizeType == 5){
  352. failList.push(item)
  353. }else{
  354. prizeList.push(item)
  355. }
  356. })
  357. this.fullPrize = this.mergeArraysAlternately(prizeList,failList)
  358. this.list = prizeList
  359. this.prizes = []
  360. this.fullPrize.map((item,index)=>{
  361. this.prizes.push({
  362. fonts: [{
  363. text: item.prizeName,
  364. top: '10%',
  365. fontSize:'20rpx',
  366. wordWrap:true,
  367. lengthLimit:'70%',
  368. fontColor:'#FF8A26'
  369. }],
  370. background: this.colorList[(index+1)%3] ,
  371. imgs:[{
  372. src:item.prizeIcon,
  373. top: '50rpx',
  374. width:'70rpx',
  375. }]
  376. })
  377. })
  378. }
  379. })
  380. },
  381. initLogs(){
  382. this.myPrizeList()
  383. this.status = 'more'
  384. this.logList = []
  385. this.query.currentPage = 1
  386. this.prizeList()
  387. },
  388. prizeList(){
  389. this.status = 'loading'
  390. prizeList(this.query).then(res=>{
  391. if (res.state == 'Success') {
  392. this.logList = this.logList.concat(res.content.records)
  393. if(this.logList.length>= res.content.total){
  394. this.status = 'noMore'
  395. }else{
  396. this.status = 'more'
  397. this.query.currentPage++
  398. }
  399. }
  400. })
  401. },
  402. myPrizeList(){
  403. prizeList({raffleId:this.query.raffleId,currentPage:1,pageSize:10,phoneNum:JSON.parse(uni.getStorageSync('userInfo')).phoneNum}).then(res=>{
  404. if (res.state == 'Success') {
  405. this.myLogList = res.content.records
  406. }
  407. })
  408. },
  409. prize(){
  410. prize({raffleId:this.prizeId}).then(res=>{
  411. this.remainder(this.query.raffleId)
  412. if (res.state == 'Success') {
  413. this.$refs.myLucky.play()
  414. let id = res.content.rafflePrizeId
  415. this.fullPrize.map((item,index)=>{
  416. if(item.id == id){
  417. this.result = item
  418. this.prizeIndex = index
  419. }
  420. })
  421. this.result.rafflePrizeId = res.content.rafflePrizeId
  422. this.result.rafflePrizeLogId = res.content.rafflePrizeLogId
  423. console.log(this.result);
  424. setTimeout(()=>{
  425. this.$refs.myLucky.stop(this.prizeIndex)
  426. },500)
  427. }else{
  428. console.log('baoc');
  429. this.isPrize = false
  430. this.$refs.myLucky.stop()
  431. }
  432. })
  433. },
  434. // 视频会员领取
  435. submit(){
  436. if(!this.account){
  437. return uni.showToast({
  438. title:'请输入账号',
  439. icon:'none'
  440. })
  441. }else if(!uni.$u.test.mobile(this.account)){
  442. return uni.showToast({
  443. title:'手机号错误',
  444. icon:'none'
  445. })
  446. }else{
  447. uni.showLoading({
  448. title:'提交中'
  449. })
  450. sendVipPrize({accountType:1,mobile:this.account,productId:this.result.prizeContent,userId:this.userId,rafflePrizeLogId:this.result.rafflePrizeLogId,rafflePrizeId:this.result.rafflePrizeId}).then(res=>{
  451. if (res.state == 'Success') {
  452. uni.hideLoading({noConflict:true})
  453. this.show1 = false
  454. this.account=JSON.parse(uni.getStorageSync('userInfo')).phoneNum
  455. uni.showToast({
  456. title:'提交成功',
  457. icon:'none'
  458. })
  459. }
  460. })
  461. }
  462. },
  463. // 邮寄信息
  464. submit1(){
  465. this.$refs.uForm.validate().then(res => {
  466. uni.showLoading({
  467. title:'提交中'
  468. })
  469. this.noteQuery.rafflePrizeLogId = this.result.rafflePrizeLogId
  470. notes(this.noteQuery).then(res=>{
  471. if (res.state == 'Success') {
  472. this.show1 = false
  473. uni.hideLoading({noConflict:true})
  474. uni.showToast({
  475. title:'领取成功',
  476. icon:'none'
  477. })
  478. }
  479. })
  480. })
  481. },
  482. remainder(raffleId){
  483. if(this.isGet) return
  484. this.isGet = true
  485. remainder({raffleId}).then(res=>{
  486. this.isGet = false
  487. if (res.state == 'Success') {
  488. this.prizeNum = res.content
  489. }
  490. })
  491. }
  492. },
  493. mounted() {
  494. // this.startCallBack()
  495. },
  496. onLoad(options) {
  497. this.query.raffleId = options.id
  498. this.prizeId = options.id
  499. this.remainder(options.id)
  500. this.getLuckyDrawDetail(options.id)
  501. this.myPrizeList()
  502. try{
  503. this.userId=JSON.parse(uni.getStorageSync('userInfo')).userId
  504. this.account=JSON.parse(uni.getStorageSync('userInfo')).phoneNum
  505. }catch(e){
  506. //TODO handle the exception
  507. return uni.showModal({
  508. title:'请登录',
  509. confirmText:'去登录',
  510. success(res){
  511. console.log(res);
  512. if(res.confirm){
  513. uni.navigateTo({
  514. url:'../../login/login/login?redirect=/luckyDraw/prizeList'
  515. })
  516. }
  517. }
  518. })
  519. }
  520. }
  521. }
  522. </script>
  523. <style lang="scss">
  524. .luckyDraw {
  525. padding-top: 500rpx;
  526. padding-bottom: 80rpx;
  527. position: relative;
  528. background-image: url('https://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/rP86PRmpk21z60fd17f0e1363aacf412d0a7f9983abb.png/1.png') ;
  529. background-size: 750rpx ;
  530. .rule-btn{
  531. width: 56rpx;
  532. height: 204rpx;
  533. background: linear-gradient( 89deg, #FEBF37 0%, #FF8A26 100%);
  534. box-shadow: 0rpx 4rpx 2rpx 2rpx rgba(249,115,29,0.63), inset 0rpx 6rpx 12rpx 2rpx rgba(255,255,255,0.49);
  535. border-radius: 20rpx 0rpx 0rpx 20rpx;
  536. border: 0rpx solid #FF8B26;
  537. font-size: 28rpx;
  538. color: #FFFFFF;
  539. writing-mode: vertical-lr;
  540. text-align: center;
  541. display: flex;
  542. align-items: center;
  543. justify-content: center;
  544. letter-spacing: 10rpx;
  545. position: absolute;
  546. right: 0%;
  547. top: 430rpx;
  548. }
  549. .lucky-box {
  550. z-index: 3;
  551. .desk {
  552. position: relative;
  553. // top: -100rpx;
  554. margin-top: -100rpx;
  555. margin-bottom: 20rpx;
  556. display: flex;
  557. justify-content: center;
  558. .icon {
  559. width: 618rpx;
  560. height: 234rpx;
  561. }
  562. .times {
  563. position: absolute;
  564. bottom: 22rpx;
  565. left: 50%;
  566. transform: translateX(-50%);
  567. font-size: 36rpx;
  568. color: #FFFFFF;
  569. }
  570. }
  571. }
  572. .box{
  573. width: 710rpx;
  574. background: #FFE3A9;
  575. box-shadow: 0rpx 2rpx 12rpx 2rpx #FF8B26, inset 0rpx 6rpx 12rpx 2rpx rgba(255,255,255,0.58);
  576. border-radius: 16rpx;
  577. margin: 0 auto 28rpx;
  578. padding-bottom: 20rpx;
  579. position: relative;
  580. .title{
  581. font-size: 48rpx;
  582. color: #EE4320;
  583. text-align: center;
  584. padding: 20rpx 0;
  585. .icon{
  586. width: 192rpx;
  587. height: 48rpx;
  588. }
  589. }
  590. .more-btn{
  591. font-size: 28rpx;
  592. color: #FF8F2E;
  593. position: absolute;
  594. right: 24rpx;
  595. top: 34rpx;
  596. }
  597. .content{
  598. width: 668rpx;
  599. max-height: 480rpx;
  600. overflow: auto;
  601. background: #FFFFFF;
  602. border-radius: 16rpx 16rpx 16rpx 16rpx;
  603. margin: 0 auto;
  604. padding: 14rpx 28rpx;
  605. box-sizing: border-box;
  606. }
  607. .box-container{
  608. .item{
  609. font-size: 28rpx;
  610. color: #222222;
  611. padding: 12rpx 0;
  612. line-height: 40rpx;
  613. .yellow{
  614. color: #FF8B26;
  615. }
  616. }
  617. }
  618. .flex-box{
  619. display: flex;
  620. flex-wrap: wrap;
  621. padding: 14rpx 0;
  622. .item{
  623. width: 167rpx;
  624. padding: 14rpx 0;
  625. display: flex;
  626. flex-direction: column;
  627. align-items: center;
  628. .icon{
  629. width: 80rpx;
  630. height: 80rpx;
  631. }
  632. .name{
  633. width: 140rpx;
  634. font-size: 24rpx;
  635. color: #222222;
  636. margin-top: 12rpx;
  637. text-align: center;
  638. overflow: hidden;
  639. text-overflow: ellipsis;
  640. /* 弹性伸缩盒子模型显示 */
  641. display: -webkit-box;
  642. /* 限制在一个块元素显示的文本的行数 */
  643. -webkit-line-clamp: 2;
  644. /* 设置或检索伸缩盒对象的子元素的排列方式 */
  645. -webkit-box-orient: vertical;
  646. }
  647. }
  648. }
  649. .table-box{
  650. padding: 0;
  651. .header{
  652. padding: 14rpx 0;
  653. font-size: 28rpx;
  654. color: #222222;
  655. display: flex;
  656. align-items: center;
  657. .num{
  658. width: 120rpx;
  659. text-align: center;
  660. }
  661. .time{
  662. flex: 1;
  663. text-align: center;
  664. }
  665. .info{
  666. flex: 1;
  667. text-align: center;
  668. }
  669. }
  670. .table-body{
  671. max-height: 360rpx;
  672. overflow: auto;
  673. .item{
  674. padding: 14rpx 0;
  675. display: flex;
  676. align-items: center;
  677. font-size: 24rpx;
  678. .num{
  679. width: 120rpx;
  680. text-align: center;
  681. }
  682. .time{
  683. flex: 1;
  684. text-align: center;
  685. }
  686. .info{
  687. flex: 1;
  688. color: #FF8B26;
  689. text-align: center;
  690. }
  691. }
  692. }
  693. }
  694. }
  695. .vue-ref {
  696. box-shadow: 0rpx 20rpx 20rpx 2rpx rgba(165, 81, 9, 0.3);
  697. }
  698. .hidden {
  699. position: fixed;
  700. top: 999999rpx;
  701. left: 999999rpx;
  702. }
  703. .modal {
  704. position: fixed;
  705. top: 0%;
  706. left: 0;
  707. width: 100%;
  708. height: 100%;
  709. display: flex;
  710. justify-content: center;
  711. align-items: center;
  712. background: rgba(0, 0, 0, .4);
  713. }
  714. .dialog-border {
  715. width: 590rpx;
  716. height: 672rpx;
  717. background: #FF5642;
  718. box-shadow: inset 0rpx 6rpx 12rpx 2rpx #FFFFFF;
  719. border-radius: 24rpx 24rpx 24rpx 24rpx;
  720. border: 1rpx solid #FFFFFF;
  721. display: flex;
  722. justify-content: center;
  723. align-items: center;
  724. position: relative;
  725. .close{
  726. width: 40rpx;
  727. height: 40rpx;
  728. position: absolute;
  729. bottom: -70rpx;
  730. left: calc(50% - 20rpx);
  731. }
  732. .top-icon {
  733. width: 332rpx;
  734. height: 142rpx;
  735. position: absolute;
  736. top: -130rpx;
  737. left: calc(50% - 166rpx);
  738. vertical-align: bottom;
  739. }
  740. .btn-box {
  741. position: absolute;
  742. left: 0%;
  743. bottom: 0%;
  744. width: 590rpx;
  745. height: 134rpx;
  746. background: linear-gradient(180deg, #FFF3E2 0%, #F4AF9E 100%);
  747. border-radius: 0rpx 0rpx 24rpx 24rpx;
  748. display: flex;
  749. align-items: center;
  750. justify-content: center;
  751. .btn {
  752. width: 258rpx;
  753. height: 80rpx;
  754. line-height: 80rpx;
  755. text-align: center;
  756. background: #FF4D3A;
  757. box-shadow: 0rpx 6rpx 12rpx 2rpx #FF4D3A, inset 0rpx 16rpx 4rpx 2rpx #E8422F;
  758. border-radius: 72rpx 72rpx 72rpx 72rpx;
  759. border: 2rpx solid #FFFFFF;
  760. font-weight: bold;
  761. font-size: 32rpx;
  762. color: #FFFFFF;
  763. }
  764. }
  765. .dialog-content {
  766. width: 542rpx;
  767. height: 612rpx;
  768. overflow: auto;
  769. background: linear-gradient(151deg, #FFFFFF 0%, #FFFFFF 0%, #FFD9BF 100%);
  770. border-radius: 24rpx 24rpx 24rpx 24rpx;
  771. .title-icon {
  772. width: 430rpx;
  773. height: 84rpx;
  774. margin-left: 84rpx;
  775. margin-top: 30rpx;
  776. }
  777. }
  778. }
  779. // .result-box{
  780. // width: 80%;
  781. // text-align: center;
  782. // margin: 0 auto;
  783. // .goods-name{
  784. // font-weight: bold;
  785. // font-size: 28rpx;
  786. // color: #222222;
  787. // }
  788. // .img{
  789. // width: 168rpx;
  790. // height: 168rpx;
  791. // margin-top: 20rpx;
  792. // }
  793. // .address{
  794. // font-weight: bold;
  795. // font-size: 28rpx;
  796. // color: #222222;
  797. // margin-top: 20rpx;
  798. // }
  799. // .notice{
  800. // font-size: 20rpx;
  801. // color: #AAAAAA;
  802. // margin-top: 20rpx;
  803. // }
  804. // }
  805. .result-box{
  806. // width: 80%;
  807. width: 90%;
  808. text-align: center;
  809. margin: 0 auto;
  810. padding-bottom: 200rpx;
  811. .goods-name{
  812. font-weight: bold;
  813. font-size: 28rpx;
  814. color: #222222;
  815. }
  816. .img{
  817. width: 168rpx;
  818. height: 168rpx;
  819. margin-top: 20rpx;
  820. }
  821. .sub-title{
  822. font-size: 24rpx;
  823. color: #222222;
  824. margin-top: 20rpx;
  825. }
  826. .input-box{
  827. display: flex;
  828. font-size: 28rpx;
  829. color: #222222;
  830. margin-top: 20rpx;
  831. .label{
  832. font-weight: bold;
  833. font-size: 28rpx;
  834. color: #222222;
  835. width: 350rpx;
  836. white-space: nowrap;
  837. }
  838. .input{
  839. font-size: 28rpx;
  840. color: #222222;
  841. }
  842. }
  843. .address{
  844. font-weight: bold;
  845. font-size: 28rpx;
  846. color: #222222;
  847. margin-top: 20rpx;
  848. }
  849. .notice{
  850. font-size: 20rpx;
  851. color: #AAAAAA;
  852. margin-top: 20rpx;
  853. }
  854. }
  855. .rule-content{
  856. padding: 0 28rpx 160rpx;
  857. overflow: auto;
  858. max-height: 380rpx;
  859. .rule-text{
  860. font-size: 24rpx;
  861. color: #222222;
  862. word-break: break-all;
  863. }
  864. }
  865. }
  866. </style>