index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922
  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. this.isPrize = false
  303. console.log(prize)
  304. if(JSON.stringify(prize) == '{}') return
  305. this.initLogs()
  306. // 奖品详情
  307. if(this.result.prizeType == 2){//视频会员
  308. this.show = true
  309. }else if(this.result.prizeType == 5){//未中奖
  310. this.show3 = true
  311. }else if(this.result.sendType == 2){//邮寄
  312. this.show1 = true
  313. this.$nextTick(() => {
  314. this.$refs.uForm.setRules(this.rules)
  315. })
  316. }else if(this.result.sendType == 1 || this.result.sendType == 3){//线上线下发货
  317. this.show2 = true
  318. }
  319. },
  320. // 将两个数组交替插入一个数组
  321. mergeArraysAlternately(arr1, arr2) {
  322. const result = [];
  323. const length1 = arr1.length;
  324. const length2 = arr2.length;
  325. let i = 0, j = 0;
  326. while (i < length1 || j < length2) {
  327. if (i < length1) {
  328. result.push(arr1[i]);
  329. i++;
  330. }
  331. if (j < length2) {
  332. result.push(arr2[j]);
  333. j++;
  334. }
  335. }
  336. return result;
  337. },
  338. getLuckyDrawDetail(raffleId) {
  339. getLuckyDrawDetail({
  340. raffleId,
  341. regionCode:'520100'
  342. }).then(res => {
  343. if (res.state == 'Success') {
  344. this.bg = res.content.backImg
  345. this.rule = res.content.raffleRule
  346. let prizeList = [] // 奖品列表
  347. let failList = []//未中奖列表
  348. res.content.prizes.map(item=>{
  349. if(item.prizeType == 5){
  350. failList.push(item)
  351. }else{
  352. prizeList.push(item)
  353. }
  354. })
  355. this.fullPrize = this.mergeArraysAlternately(prizeList,failList)
  356. this.list = prizeList
  357. this.prizes = []
  358. this.fullPrize.map((item,index)=>{
  359. this.prizes.push({
  360. fonts: [{
  361. text: item.prizeName,
  362. top: '10%',
  363. fontSize:'20rpx',
  364. wordWrap:true,
  365. lengthLimit:'70%',
  366. fontColor:'#FF8A26'
  367. }],
  368. background: this.colorList[(index+1)%3] ,
  369. imgs:[{
  370. src:item.prizeIcon,
  371. top: '50rpx',
  372. width:'70rpx',
  373. }]
  374. })
  375. })
  376. }
  377. })
  378. },
  379. initLogs(){
  380. this.myPrizeList()
  381. this.status = 'more'
  382. this.logList = []
  383. this.query.currentPage = 1
  384. this.prizeList()
  385. },
  386. prizeList(){
  387. this.status = 'loading'
  388. prizeList(this.query).then(res=>{
  389. if (res.state == 'Success') {
  390. this.logList = this.logList.concat(res.content.records)
  391. if(this.logList.length>= res.content.total){
  392. this.status = 'noMore'
  393. }else{
  394. this.status = 'more'
  395. this.query.currentPage++
  396. }
  397. }
  398. })
  399. },
  400. myPrizeList(){
  401. prizeList({raffleId:this.query.raffleId,currentPage:1,pageSize:10,phoneNum:JSON.parse(uni.getStorageSync('userInfo')).phoneNum}).then(res=>{
  402. if (res.state == 'Success') {
  403. this.myLogList = res.content.records
  404. }
  405. })
  406. },
  407. prize(){
  408. prize({raffleId:this.prizeId}).then(res=>{
  409. this.remainder(this.query.raffleId)
  410. if (res.state == 'Success') {
  411. this.$refs.myLucky.play()
  412. let id = res.content.rafflePrizeId
  413. this.fullPrize.map((item,index)=>{
  414. if(item.id == id){
  415. this.result = item
  416. this.prizeIndex = index
  417. }
  418. })
  419. this.result.rafflePrizeId = res.content.rafflePrizeId
  420. this.result.rafflePrizeLogId = res.content.rafflePrizeLogId
  421. console.log(this.result);
  422. setTimeout(()=>{
  423. this.$refs.myLucky.stop(this.prizeIndex)
  424. },500)
  425. }else{
  426. console.log('baoc');
  427. this.isPrize = false
  428. this.$refs.myLucky.stop()
  429. }
  430. })
  431. },
  432. // 视频会员领取
  433. submit(){
  434. if(!this.account){
  435. return uni.showToast({
  436. title:'请输入账号',
  437. icon:'none'
  438. })
  439. }else if(!uni.$u.test.mobile(this.account)){
  440. return uni.showToast({
  441. title:'手机号错误',
  442. icon:'none'
  443. })
  444. }else{
  445. uni.showLoading({
  446. title:'提交中'
  447. })
  448. sendVipPrize({accountType:1,mobile:this.account,productId:this.result.prizeContent,userId:this.userId,rafflePrizeLogId:this.result.rafflePrizeLogId,rafflePrizeId:this.result.rafflePrizeId}).then(res=>{
  449. if (res.state == 'Success') {
  450. uni.hideLoading({noConflict:true})
  451. this.show1 = false
  452. this.account=JSON.parse(uni.getStorageSync('userInfo')).phoneNum
  453. uni.showToast({
  454. title:'提交成功',
  455. icon:'none'
  456. })
  457. }
  458. })
  459. }
  460. },
  461. // 邮寄信息
  462. submit1(){
  463. this.$refs.uForm.validate().then(res => {
  464. uni.showLoading({
  465. title:'提交中'
  466. })
  467. this.noteQuery.rafflePrizeLogId = this.result.rafflePrizeLogId
  468. notes(this.noteQuery).then(res=>{
  469. if (res.state == 'Success') {
  470. this.show1 = false
  471. uni.hideLoading({noConflict:true})
  472. uni.showToast({
  473. title:'领取成功',
  474. icon:'none'
  475. })
  476. }
  477. })
  478. })
  479. },
  480. remainder(raffleId){
  481. if(this.isGet) return
  482. this.isGet = true
  483. remainder({raffleId}).then(res=>{
  484. this.isGet = false
  485. if (res.state == 'Success') {
  486. this.prizeNum = res.content
  487. }
  488. })
  489. }
  490. },
  491. mounted() {
  492. // this.startCallBack()
  493. },
  494. onLoad(options) {
  495. this.query.raffleId = options.id
  496. this.prizeId = options.id
  497. this.remainder(options.id)
  498. this.getLuckyDrawDetail(options.id)
  499. this.myPrizeList()
  500. try{
  501. this.userId=JSON.parse(uni.getStorageSync('userInfo')).userId
  502. this.account=JSON.parse(uni.getStorageSync('userInfo')).phoneNum
  503. }catch(e){
  504. //TODO handle the exception
  505. return uni.showModal({
  506. title:'请登录',
  507. confirmText:'去登录',
  508. success(res){
  509. console.log(res);
  510. if(res.confirm){
  511. uni.navigateTo({
  512. url:'../../login/login/login?redirect=/luckyDraw/prizeList'
  513. })
  514. }
  515. }
  516. })
  517. }
  518. }
  519. }
  520. </script>
  521. <style lang="scss">
  522. .luckyDraw {
  523. padding-top: 500rpx;
  524. padding-bottom: 80rpx;
  525. position: relative;
  526. background-image: url('https://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/rP86PRmpk21z60fd17f0e1363aacf412d0a7f9983abb.png/1.png') ;
  527. background-size: 750rpx ;
  528. .rule-btn{
  529. width: 56rpx;
  530. height: 204rpx;
  531. background: linear-gradient( 89deg, #FEBF37 0%, #FF8A26 100%);
  532. box-shadow: 0rpx 4rpx 2rpx 2rpx rgba(249,115,29,0.63), inset 0rpx 6rpx 12rpx 2rpx rgba(255,255,255,0.49);
  533. border-radius: 20rpx 0rpx 0rpx 20rpx;
  534. border: 0rpx solid #FF8B26;
  535. font-size: 28rpx;
  536. color: #FFFFFF;
  537. writing-mode: vertical-lr;
  538. text-align: center;
  539. display: flex;
  540. align-items: center;
  541. justify-content: center;
  542. letter-spacing: 10rpx;
  543. position: absolute;
  544. right: 0%;
  545. top: 430rpx;
  546. }
  547. .lucky-box {
  548. z-index: 3;
  549. .desk {
  550. position: relative;
  551. // top: -100rpx;
  552. margin-top: -100rpx;
  553. margin-bottom: 20rpx;
  554. display: flex;
  555. justify-content: center;
  556. .icon {
  557. width: 618rpx;
  558. height: 234rpx;
  559. }
  560. .times {
  561. position: absolute;
  562. bottom: 22rpx;
  563. left: 50%;
  564. transform: translateX(-50%);
  565. font-size: 36rpx;
  566. color: #FFFFFF;
  567. }
  568. }
  569. }
  570. .box{
  571. width: 710rpx;
  572. background: #FFE3A9;
  573. box-shadow: 0rpx 2rpx 12rpx 2rpx #FF8B26, inset 0rpx 6rpx 12rpx 2rpx rgba(255,255,255,0.58);
  574. border-radius: 16rpx;
  575. margin: 0 auto 28rpx;
  576. padding-bottom: 20rpx;
  577. position: relative;
  578. .title{
  579. font-size: 48rpx;
  580. color: #EE4320;
  581. text-align: center;
  582. padding: 20rpx 0;
  583. .icon{
  584. width: 192rpx;
  585. height: 48rpx;
  586. }
  587. }
  588. .more-btn{
  589. font-size: 28rpx;
  590. color: #FF8F2E;
  591. position: absolute;
  592. right: 24rpx;
  593. top: 34rpx;
  594. }
  595. .content{
  596. width: 668rpx;
  597. max-height: 480rpx;
  598. overflow: auto;
  599. background: #FFFFFF;
  600. border-radius: 16rpx 16rpx 16rpx 16rpx;
  601. margin: 0 auto;
  602. padding: 14rpx 28rpx;
  603. box-sizing: border-box;
  604. }
  605. .box-container{
  606. .item{
  607. font-size: 28rpx;
  608. color: #222222;
  609. padding: 12rpx 0;
  610. line-height: 40rpx;
  611. .yellow{
  612. color: #FF8B26;
  613. }
  614. }
  615. }
  616. .flex-box{
  617. display: flex;
  618. flex-wrap: wrap;
  619. padding: 14rpx 0;
  620. .item{
  621. width: 167rpx;
  622. padding: 14rpx 0;
  623. display: flex;
  624. flex-direction: column;
  625. align-items: center;
  626. .icon{
  627. width: 80rpx;
  628. height: 80rpx;
  629. }
  630. .name{
  631. width: 140rpx;
  632. font-size: 24rpx;
  633. color: #222222;
  634. margin-top: 12rpx;
  635. text-align: center;
  636. overflow: hidden;
  637. text-overflow: ellipsis;
  638. /* 弹性伸缩盒子模型显示 */
  639. display: -webkit-box;
  640. /* 限制在一个块元素显示的文本的行数 */
  641. -webkit-line-clamp: 2;
  642. /* 设置或检索伸缩盒对象的子元素的排列方式 */
  643. -webkit-box-orient: vertical;
  644. }
  645. }
  646. }
  647. .table-box{
  648. padding: 0;
  649. .header{
  650. padding: 14rpx 0;
  651. font-size: 28rpx;
  652. color: #222222;
  653. display: flex;
  654. align-items: center;
  655. .num{
  656. width: 120rpx;
  657. text-align: center;
  658. }
  659. .time{
  660. flex: 1;
  661. text-align: center;
  662. }
  663. .info{
  664. flex: 1;
  665. text-align: center;
  666. }
  667. }
  668. .table-body{
  669. max-height: 360rpx;
  670. overflow: auto;
  671. .item{
  672. padding: 14rpx 0;
  673. display: flex;
  674. align-items: center;
  675. font-size: 24rpx;
  676. .num{
  677. width: 120rpx;
  678. text-align: center;
  679. }
  680. .time{
  681. flex: 1;
  682. text-align: center;
  683. }
  684. .info{
  685. flex: 1;
  686. color: #FF8B26;
  687. text-align: center;
  688. }
  689. }
  690. }
  691. }
  692. }
  693. .vue-ref {
  694. box-shadow: 0rpx 20rpx 20rpx 2rpx rgba(165, 81, 9, 0.3);
  695. }
  696. .hidden {
  697. position: fixed;
  698. top: 999999rpx;
  699. left: 999999rpx;
  700. }
  701. .modal {
  702. position: fixed;
  703. top: 0%;
  704. left: 0;
  705. width: 100%;
  706. height: 100%;
  707. display: flex;
  708. justify-content: center;
  709. align-items: center;
  710. background: rgba(0, 0, 0, .4);
  711. }
  712. .dialog-border {
  713. width: 590rpx;
  714. height: 672rpx;
  715. background: #FF5642;
  716. box-shadow: inset 0rpx 6rpx 12rpx 2rpx #FFFFFF;
  717. border-radius: 24rpx 24rpx 24rpx 24rpx;
  718. border: 1rpx solid #FFFFFF;
  719. display: flex;
  720. justify-content: center;
  721. align-items: center;
  722. position: relative;
  723. .close{
  724. width: 40rpx;
  725. height: 40rpx;
  726. position: absolute;
  727. bottom: -70rpx;
  728. left: calc(50% - 20rpx);
  729. }
  730. .top-icon {
  731. width: 332rpx;
  732. height: 142rpx;
  733. position: absolute;
  734. top: -130rpx;
  735. left: calc(50% - 166rpx);
  736. vertical-align: bottom;
  737. }
  738. .btn-box {
  739. position: absolute;
  740. left: 0%;
  741. bottom: 0%;
  742. width: 590rpx;
  743. height: 134rpx;
  744. background: linear-gradient(180deg, #FFF3E2 0%, #F4AF9E 100%);
  745. border-radius: 0rpx 0rpx 24rpx 24rpx;
  746. display: flex;
  747. align-items: center;
  748. justify-content: center;
  749. .btn {
  750. width: 258rpx;
  751. height: 80rpx;
  752. line-height: 80rpx;
  753. text-align: center;
  754. background: #FF4D3A;
  755. box-shadow: 0rpx 6rpx 12rpx 2rpx #FF4D3A, inset 0rpx 16rpx 4rpx 2rpx #E8422F;
  756. border-radius: 72rpx 72rpx 72rpx 72rpx;
  757. border: 2rpx solid #FFFFFF;
  758. font-weight: bold;
  759. font-size: 32rpx;
  760. color: #FFFFFF;
  761. }
  762. }
  763. .dialog-content {
  764. width: 542rpx;
  765. height: 612rpx;
  766. overflow: auto;
  767. background: linear-gradient(151deg, #FFFFFF 0%, #FFFFFF 0%, #FFD9BF 100%);
  768. border-radius: 24rpx 24rpx 24rpx 24rpx;
  769. .title-icon {
  770. width: 430rpx;
  771. height: 84rpx;
  772. margin-left: 84rpx;
  773. margin-top: 30rpx;
  774. }
  775. }
  776. }
  777. // .result-box{
  778. // width: 80%;
  779. // text-align: center;
  780. // margin: 0 auto;
  781. // .goods-name{
  782. // font-weight: bold;
  783. // font-size: 28rpx;
  784. // color: #222222;
  785. // }
  786. // .img{
  787. // width: 168rpx;
  788. // height: 168rpx;
  789. // margin-top: 20rpx;
  790. // }
  791. // .address{
  792. // font-weight: bold;
  793. // font-size: 28rpx;
  794. // color: #222222;
  795. // margin-top: 20rpx;
  796. // }
  797. // .notice{
  798. // font-size: 20rpx;
  799. // color: #AAAAAA;
  800. // margin-top: 20rpx;
  801. // }
  802. // }
  803. .result-box{
  804. // width: 80%;
  805. width: 90%;
  806. text-align: center;
  807. margin: 0 auto;
  808. padding-bottom: 200rpx;
  809. .goods-name{
  810. font-weight: bold;
  811. font-size: 28rpx;
  812. color: #222222;
  813. }
  814. .img{
  815. width: 168rpx;
  816. height: 168rpx;
  817. margin-top: 20rpx;
  818. }
  819. .sub-title{
  820. font-size: 24rpx;
  821. color: #222222;
  822. margin-top: 20rpx;
  823. }
  824. .input-box{
  825. display: flex;
  826. font-size: 28rpx;
  827. color: #222222;
  828. margin-top: 20rpx;
  829. .label{
  830. font-weight: bold;
  831. font-size: 28rpx;
  832. color: #222222;
  833. width: 350rpx;
  834. white-space: nowrap;
  835. }
  836. .input{
  837. font-size: 28rpx;
  838. color: #222222;
  839. }
  840. }
  841. .address{
  842. font-weight: bold;
  843. font-size: 28rpx;
  844. color: #222222;
  845. margin-top: 20rpx;
  846. }
  847. .notice{
  848. font-size: 20rpx;
  849. color: #AAAAAA;
  850. margin-top: 20rpx;
  851. }
  852. }
  853. .rule-content{
  854. padding: 0 28rpx 160rpx;
  855. overflow: auto;
  856. max-height: 380rpx;
  857. .rule-text{
  858. font-size: 24rpx;
  859. color: #222222;
  860. word-break: break-all;
  861. }
  862. }
  863. }
  864. </style>