index.vue 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258
  1. <template>
  2. <view class="container">
  3. <view class="uni-nav-bar">
  4. <view :style="{height: statusBarHeight,width: '100%'}"></view>
  5. <view class="uni-nav-barbox">
  6. <view class="uni-nav-back" @click="$navBack()">
  7. <image src="@/static/images/back_white_icon.png" mode="aspectFill"></image>
  8. </view>
  9. <view class="uni-nav-title" style="flex: 1;text-align: center;">我的钱包</view>
  10. </view>
  11. </view>
  12. <image class="integral_top_bg" src="@/static/images/wallet/my_wallet_top_bg.png" mode="widthFix"></image>
  13. <view class="container-body">
  14. <view style="padding:24rpx;">
  15. <!-- 可提现佣金 -->
  16. <view class="money">
  17. <view class="box-top x-bc">
  18. <view class="y-bc">
  19. <view class="title x-c">可提现佣金(元)
  20. <image src="@/static/images/wallet/eye_open.png" mode="aspectFill"></image>
  21. </view>
  22. <view class="price">
  23. {{info.mayWithdraw||'0.00'}}
  24. </view>
  25. </view>
  26. <view class="wbtn" @click="navTo('/pages/user/wallet/addApply')">去提现</view>
  27. </view>
  28. <view class="fanghua x-f">
  29. 您有{{info.withdrawIntegral||0}}芳华币可兑换
  30. <view v-if="info.withdrawIntegral!==0" class="duihuan" @click="openBox">【去兑换】</view>
  31. </view>
  32. <view class="box-bottom x-ac">
  33. <view class="y-bc">
  34. <view class="title">累计佣金(元)</view>
  35. <view class="num">{{info.totalCommission||'0.00'}}</view>
  36. </view>
  37. <!-- <view class="y-bc">
  38. <view class="title">冻结佣金(元)</view>
  39. <view class="num">200.00</view>
  40. </view> -->
  41. <view class="y-bc">
  42. <view class="title">已提现佣金(元)</view>
  43. <view class="num">{{info.withdrawFinish||'0.00'}}</view>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="benefit box">
  48. <view class="benefit-box">
  49. <view class="benefit-item" @click="show=true">
  50. <image src="@/static/images/wallet/withdrawal_methodpng.png" mode="aspectFill"></image>
  51. <view>提现方式</view>
  52. </view>
  53. <view class="benefit-item" @click="navTo('/pages/user/wallet/recordList')">
  54. <image src="@/static/images/wallet/withdrawal_record.png" mode="aspectFill"></image>
  55. <view>提现记录</view>
  56. </view>
  57. </view>
  58. </view>
  59. <!-- 佣金明细 -->
  60. <view class="task box">
  61. <view class="x-bc">
  62. <text class="box-title">兑换明细</text>
  63. <view class="more x-c" @click="navTo('/pages/user/wallet/commissionLogsList')">查看全部
  64. <image src="@/static/image/hall/my_right_arrow_right_icon.png"></image>
  65. </view>
  66. </view>
  67. <view class="taskloglist">
  68. <view class="item y-bc" v-for="(item,index) in dataList" :key="index">
  69. <view class="share x-bc">
  70. <view class="type">芳华币兑换</view>
  71. <view class="total">
  72. 兑换<text class="num">+{{item.commission}}</text>
  73. </view>
  74. </view>
  75. <view class="amount x-bc">
  76. <view>芳华币:{{item.integral}}</view>
  77. <view>{{item.createTime}}</view>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. <u-popup :show="isShow" mode="center" :safeAreaInsetBottom="false" @close="closeBox" :round="16" style="width: 80%;">
  85. <view class="tips-box">
  86. <view class="tips-title">
  87. 温馨提示
  88. </view>
  89. <view class="desc">
  90. 您有{{info.withdrawIntegral}}芳华币可兑换现金<text style="color:#FF5C03;">{{info.withdrawCash}}元,</text>是否兑换?
  91. </view>
  92. <view class="tips x-f">
  93. <image src="@/static/images/integral/stunning_degree.png"></image>
  94. <view class="text">注意:一旦兑换不可撤销。</view>
  95. </view>
  96. <view class="btn-box x-ac">
  97. <view class="okbtn cancel" @click="closeBox">取消</view>
  98. <view class="okbtn" @click="integralExchange">确定</view>
  99. </view>
  100. </view>
  101. </u-popup>
  102. <!-- 弹窗 -->
  103. <u-popup :show="show" mode="center" @close="close" :round="16">
  104. <view class="pay-list">
  105. <view class="title x-bc">
  106. <view style="width: 48rpx;"></view>
  107. 提现方式
  108. <image class="close" @click="close" src="@/static/image/hall/close_icon.png"></image>
  109. </view>
  110. <view class="pay-box">
  111. <radio-group @change="payTypeChange">
  112. <view class="item-box x-bc">
  113. <image src="@/static/images/wallet/order_wechat.png" mode=""></image>
  114. <view class="right x-bc">
  115. <text class="text">微信支付</text>
  116. <!-- <label>
  117. <radio :value="1" :checked="payType=='1'" activeBackgroundColor="#FF5C03" />
  118. </label> -->
  119. </view>
  120. </view>
  121. </radio-group>
  122. </view>
  123. </view>
  124. </u-popup>
  125. </view>
  126. </template>
  127. <script>
  128. import {getDictByKey} from '@/api/common.js'
  129. import {getUserSign,getUserIntegralLogsList,doSign,getNewcomerBenefits,getDownloadPoster,invited} from '@/api/integral';
  130. import {getUserInfo,getWallet,integralExchange,exchangDetail} from '@/api/user'
  131. import Loading from "@/components/Loading";
  132. export default {
  133. data() {
  134. return {
  135. info:{},
  136. dataList:[],
  137. isShow:false,
  138. show:false,
  139. statusBarHeight: uni.getSystemInfoSync().statusBarHeight + 'px',
  140. signLoading: false,
  141. signList: [10,10,10,50,50,60],
  142. typeOptions:[],
  143. isDaySign:false,
  144. signNum:0,
  145. integral:0,
  146. sign:[],
  147. timer:null,
  148. user:{"phone":""},
  149. isBindMobile:false,
  150. expireTime: "",
  151. countdownText: '',
  152. userBenefits:{},
  153. isNewUser: 0,
  154. downUrlImg: "",
  155. bindLoading: false,
  156. user:{},
  157. payType: 1,
  158. }
  159. },
  160. computed: {
  161. money() {
  162. const num = Number(this.integral || 0) / 1000
  163. return num.toFixed(2)
  164. }
  165. },
  166. onLoad(option) {
  167. this.getDictByKey("sys_integral_log_type");
  168. this.user = this.$getUserInfo();
  169. this.getWalletList(this.user.userId);
  170. this.isBindMobile=!this.$isEmpty(this.user.phone);
  171. this.getNewcomerBenefits();
  172. //this.getUserIntegralLogsList()
  173. },
  174. onShow() {
  175. this.getWallet(this.user.userId);
  176. //this.getUserSign();
  177. },
  178. methods: {
  179. getWallet(id){
  180. getWallet({userId:id}).then(
  181. res => {
  182. if(res.code==200){
  183. this.info=res.data
  184. }else{
  185. uni.showToast({
  186. icon:'none',
  187. title: res.msg,
  188. });
  189. }
  190. },
  191. err => {
  192. }
  193. );
  194. },
  195. payTypeChange(e) {
  196. this.payType = e.detail.value
  197. },
  198. integralExchange(){
  199. if(this.info.withdrawIntegral==0){
  200. uni.showToast({
  201. icon:'none',
  202. title:"您没有可兑换的芳华币",
  203. });
  204. return;
  205. }
  206. integralExchange({userId:this.user.userId}).then(
  207. res => {
  208. if(res.code==200){
  209. uni.showToast({
  210. icon:'none',
  211. title: "兑换成功",
  212. });
  213. this.isShow=false
  214. this.getWallet(this.user.userId);
  215. this.getWalletList(this.user.userId);
  216. }else{
  217. uni.showToast({
  218. icon:'none',
  219. title: res.msg,
  220. });
  221. }
  222. },
  223. err => {
  224. }
  225. );
  226. },
  227. getWalletList(id){
  228. var data={
  229. userId:id,
  230. page:1,
  231. limit:10
  232. }
  233. exchangDetail(data).then(
  234. res => {
  235. if(res.code==200){
  236. this.dataList=res.data.rows
  237. }else{
  238. uni.showToast({
  239. icon:'none',
  240. title: res.msg,
  241. });
  242. }
  243. },
  244. err => {
  245. }
  246. );
  247. },
  248. handleDetail() {
  249. uni.navigateTo({
  250. url: '/pages/user/integral/integralLogsList'
  251. })
  252. },
  253. navTo(url){
  254. if(url){
  255. uni.navigateTo({
  256. url: url
  257. })
  258. }else{
  259. uni.showToast({
  260. icon:'none',
  261. title: "正在紧急开发中...",
  262. });
  263. }
  264. },
  265. openWay() {
  266. this.show = true
  267. },
  268. openBox(){
  269. this.isShow=true
  270. },
  271. closeBox() {
  272. this.isShow = false
  273. },
  274. close() {
  275. this.show = false
  276. },
  277. getDictByKey(key){
  278. var data={key:key}
  279. getDictByKey(data).then(
  280. res => {
  281. if(res.code==200){
  282. this.typeOptions=res.data;
  283. }
  284. },
  285. err => {
  286. }
  287. );
  288. },
  289. doSign(){
  290. // if(this.isDaySign){
  291. // uni.showToast({
  292. // title:"今日已签到",
  293. // icon:"none",
  294. // duration:2000
  295. // })
  296. // return;
  297. // }
  298. uni.showLoading({
  299. title:"正在加载中..."
  300. });
  301. var data={};
  302. let that=this;
  303. doSign(data).then(res => {
  304. uni.hideLoading()
  305. if(res.code==200){
  306. that.isDaySign = true
  307. uni.showToast({icon:'success',title: res.msg});
  308. setTimeout(e=>{
  309. that.getUserInfo();
  310. that.getUserSign();
  311. uni.$emit('refreshUserSign',{});
  312. },1000);
  313. }else{
  314. uni.showToast({
  315. icon:'none',
  316. title: res.msg,
  317. });
  318. }
  319. },
  320. rej => {}
  321. );
  322. },
  323. getUserSign(){
  324. getUserSign().then(res => {
  325. if(res.code==200){
  326. this.data=res.member;
  327. this.signNum=res.signNum;
  328. this.isDaySign=res.isDaySign;
  329. this.integral=res.integral;
  330. this.sign=JSON.parse(res.sign);
  331. }else{
  332. uni.showToast({
  333. icon:'none',
  334. title: "请求失败",
  335. });
  336. }
  337. },
  338. rej => {}
  339. );
  340. },
  341. getNewcomerBenefits(){
  342. getNewcomerBenefits().then(res => {
  343. if(res.code==200){
  344. this.userBenefits=res.data;
  345. console.log("qxj userBenefits:"+JSON.stringify(this.userBenefits));
  346. this.expireTime=this.$timeFormat(res.createTime,"yyyy-mm-dd hh:MM:ss");
  347. console.log("this.expireTime==",this.expireTime)
  348. this.isNewUser=res.isNewUser;
  349. if(!this.timer){
  350. this.timer=setInterval(() => {
  351. this.calculateCountdown();
  352. }, 1000);
  353. } else {
  354. this.calculateCountdown();
  355. }
  356. }else{
  357. uni.showToast({
  358. icon:'none',
  359. title: "请求失败",
  360. });
  361. }
  362. },
  363. rej => {}
  364. );
  365. },
  366. getUserIntegralLogsList() {
  367. let that = this;
  368. if (that.loaded == true || that.loading == true) return;
  369. that.loading = true;
  370. uni.showLoading({
  371. title:"加载中..."
  372. });
  373. getUserIntegralLogsList(that.page).then(res => {
  374. that.loading = false;
  375. that.loaded = res.data.list.length < that.page.pageSize;
  376. that.page.page = that.page.page + 1;
  377. that.list.push.apply(that.list, res.data.list);
  378. uni.hideLoading()
  379. },
  380. err => {
  381. uni.hideLoading();
  382. uni.showToast({
  383. title: err.msg ,
  384. icon: 'none',
  385. duration: 2000
  386. });
  387. }
  388. );
  389. },
  390. getUserInfo(){
  391. let that=this;
  392. getUserInfo().then(res => {
  393. if(res.code==200){
  394. if(res.user!=null){
  395. uni.setStorageSync('userInfo',JSON.stringify(res.user));
  396. this.user=res.user;
  397. }
  398. else{
  399. uni.showToast({
  400. icon:'none',
  401. title: res.msg,
  402. });
  403. }
  404. }
  405. },
  406. rej => {}
  407. );
  408. },
  409. handleMenu(item) {
  410. console.log("qxj handleMenu:"+JSON.stringify(item));
  411. if(item.isCourse!=undefined && item.isCourse){
  412. this.goToCourse();
  413. }
  414. else if(item.isVideo!=undefined && item.isVideo){
  415. uni.switchTab({url: '/pages/course/video/living-app' });
  416. }
  417. else if(item.isLive!=undefined && item.isLive){
  418. this.goToCourse();
  419. }else{
  420. this.loginNavTo(item.pageUrl);
  421. }
  422. },
  423. goToCourse(){
  424. uni.switchTab({url: '/pages/course/index' });
  425. },
  426. handleNewTask(index){ //新人福利任务
  427. },
  428. handleDayTask(item){ //每日任务
  429. if(item.isCourse!=undefined && item.isCourse){
  430. this.goToCourse();
  431. }else if(item.isVideo!=undefined && item.isVideo){
  432. uni.switchTab({url: '/pages/course/video/living-app' });
  433. }
  434. else if(item.isLive!=undefined && item.isLive){
  435. this.goToCourse();
  436. }else if(item.title == '分享健康知识') {
  437. const list = [{
  438. name: "药膳食疗",
  439. pageUrl:"/pages/article/medicatedFoodList"
  440. },
  441. {
  442. name: "经络穴位",
  443. pageUrl:"/pages/article/vesselList"
  444. }, {
  445. name: "问答专区",
  446. pageUrl:"/pages/article/questionsList"
  447. }, {
  448. name: "疾病",
  449. pageUrl:"/pages/article/diseaseList"
  450. }, {
  451. name: "中药图解",
  452. pageUrl:"/pages/article/chineseMedicineList"
  453. },
  454. {
  455. name: "名方今用",
  456. pageUrl:"/pages/article/famousPrescribeList"
  457. }, {
  458. name: "养生讲堂",
  459. pageUrl:"/pages/doctor/doctorArticleList"
  460. }, {
  461. name: "养生干货",
  462. pageUrl:"/pages/article/articleList"
  463. }]
  464. const num = Math.floor(Math.random() * list.length);
  465. this.loginNavTo(list[num].pageUrl);
  466. }else if(item.title == '邀请好友享福利'){
  467. this.handleInvite()
  468. }else{
  469. this.loginNavTo(item.pageUrl);
  470. }
  471. },
  472. calculateCountdown() {
  473. const targetTime = new Date(this.expireTime.replace(/-/g, '/'));
  474. targetTime.setDate(targetTime.getDate() + 7); // ➕7天
  475. const timeDiff = targetTime - new Date(); // 剩余毫秒
  476. if (timeDiff <= 0) {
  477. this.countdownText = '已结束';
  478. clearInterval(this.timer);
  479. } else {
  480. const days = Math.floor(timeDiff / (24 * 60 * 60 * 1000));
  481. const hours = Math.floor((timeDiff % (24 * 60 * 60 * 1000)) / (60 * 60 * 1000));
  482. const minutes = Math.floor((timeDiff % (60 * 60 * 1000)) / (60 * 1000));
  483. const seconds = Math.floor((timeDiff % (60 * 1000)) / 1000);
  484. this.countdownText = `${days}天${this.padZero(hours)}:${this.padZero(minutes)}:${this.padZero(seconds)}`;
  485. }
  486. },
  487. padZero(num) {
  488. return num < 10 ? '0' + num : num;
  489. },
  490. loginNavTo(url){
  491. if(!this.$isLogin()){
  492. this.$showLoginPage();
  493. return;
  494. }
  495. uni.navigateTo({
  496. url: url
  497. });
  498. },
  499. // 绑定邀请码领奖励
  500. bindCode() {
  501. if(!uni.$u.test.digits(this.invitationCode)) {
  502. uni.showToast({
  503. title:'请输入正确的邀请码',
  504. icon:'none'
  505. })
  506. return
  507. }
  508. this.bindLoading = true
  509. invited({userId: this.invitationCode}).then(res=>{
  510. this.bindLoading = false
  511. if(res.code == 200) {
  512. this.invitationCode = ""
  513. uni.showToast({
  514. title:'领取成功',
  515. icon:'none'
  516. })
  517. this.getUserSign();
  518. } else {
  519. uni.showToast({
  520. title:res.msg,
  521. icon:'none'
  522. })
  523. }
  524. }).catch(()=>{
  525. this.bindLoading = false
  526. })
  527. },
  528. copyCode() {
  529. let user=JSON.parse(uni.getStorageSync('userInfo'));
  530. uni.setClipboardData({
  531. data: String(user.userId),
  532. success:()=>{
  533. uni.showToast({
  534. title:'邀请码复制成功',
  535. icon:'none'
  536. })
  537. },
  538. complete: (err) => {
  539. console.log(err)
  540. }
  541. });
  542. },
  543. // 邀请
  544. handleInvite() {
  545. uni.showLoading({
  546. title: "海报生成中"
  547. })
  548. getDownloadPoster().then(res=>{
  549. uni.hideLoading()
  550. if(res.code == 200) {
  551. this.downUrlImg = res.msg
  552. this.$refs.invitePopup.open()
  553. } else {
  554. uni.showToast({
  555. title:'生成海报失败',
  556. icon:'none'
  557. })
  558. }
  559. }).catch(()=>{
  560. uni.hideLoading()
  561. uni.showToast({
  562. title:'生成海报失败',
  563. icon:'none'
  564. })
  565. })
  566. },
  567. closepop() {
  568. this.$refs.invitePopup.close()
  569. },
  570. longpressImg() {
  571. // #ifndef MP-WEIXIN
  572. uni.showActionSheet({
  573. title: "",
  574. itemList: ["保存图片"],
  575. success: (res)=> {
  576. console.log("保存图片")
  577. this.downImg()
  578. }
  579. });
  580. // #endif
  581. },
  582. downImg() {
  583. uni.showLoading({
  584. title: "图片保存中..."
  585. })
  586. uni.downloadFile({
  587. url: this.downUrlImg,
  588. fail: function(res) {
  589. uni.showModal({
  590. title: '提示',
  591. content: '保存失败',
  592. })
  593. uni.hideLoading();
  594. },
  595. success: function(res) {
  596. var tempFilePath = res.tempFilePath;
  597. uni.saveImageToPhotosAlbum({
  598. filePath: tempFilePath,
  599. success:()=> {
  600. uni.showToast({
  601. title: "保存成功",
  602. duration: 2000
  603. })
  604. },
  605. fail:()=>{
  606. console.log("保存失败");
  607. uni.showToast({
  608. title: "保存失败",
  609. duration: 2000,
  610. icon: "error"
  611. })
  612. uni.hideLoading();
  613. },
  614. complete: function() {
  615. uni.hideLoading();
  616. }
  617. })
  618. },
  619. })
  620. }
  621. }
  622. }
  623. </script>
  624. <style lang="scss" scoped>
  625. @mixin u-flex($flexD, $alignI, $justifyC) {
  626. display: flex;
  627. flex-direction: $flexD;
  628. align-items: $alignI;
  629. justify-content: $justifyC;
  630. }
  631. ::v-deep .u-popup__content{
  632. width: 80% !important;
  633. overflow: hidden;
  634. }
  635. .tips-box{
  636. //padding: 36rpx;
  637. padding-bottom: 40rpx;
  638. .tips-title{
  639. background: linear-gradient( 0deg, rgba(255, 92, 3, 0) 0%,rgba(255, 92, 3, 0.30) 100%,);
  640. font-family: PingFang SC, PingFang SC;
  641. font-weight: 600;
  642. font-size: 40rpx;
  643. color: #222222;
  644. line-height: 128rpx;
  645. text-align: center;
  646. }
  647. .desc{
  648. padding:0 36rpx;
  649. font-family: PingFang SC, PingFang SC;
  650. font-weight: 400;
  651. font-size: 32rpx;
  652. line-height: 48rpx;
  653. color: #222222;
  654. margin-bottom: 36rpx;
  655. }
  656. .tips{
  657. padding:0 36rpx;
  658. image{
  659. width: 28rpx;
  660. height: 28rpx;
  661. margin-right: 8rpx;
  662. }
  663. .text{
  664. font-family: PingFang SC, PingFang SC;
  665. font-weight: 600;
  666. font-size: 28rpx;
  667. color: #FF5C03;
  668. line-height: 24rpx;
  669. }
  670. }
  671. .btn-box{
  672. margin-top: 40rpx;
  673. .okbtn{
  674. padding:20rpx 100rpx;
  675. font-family: PingFang SC, PingFang SC;
  676. font-weight: 400;
  677. font-size: 28rpx;
  678. color: #FFFFFF;
  679. background: #FF5C03;
  680. border-radius: 42rpx ;
  681. &.cancel{
  682. background: #F5F7FA;
  683. color: #757575
  684. }
  685. }
  686. }
  687. }
  688. .invite {
  689. width: 100vw;
  690. height: calc(100vh - var(--status-bar-height) - 88rpx);
  691. @include u-flex(column, center, center);
  692. image {
  693. width: 100%;
  694. flex: 1;
  695. }
  696. .downtbn {
  697. margin-top: 24rpx;
  698. min-width: 254rpx;
  699. min-height: 88rpx;
  700. padding: 0 16rpx;
  701. box-sizing: border-box;
  702. border-radius: 44rpx 44rpx 44rpx 44rpx;
  703. border: 2rpx solid #FF5C03;
  704. font-family: PingFang SC, PingFang SC;
  705. font-weight: 400;
  706. font-size: 32rpx;
  707. color: #FF5C03;
  708. @include u-flex(column, center, center);
  709. &::after {
  710. border: none;
  711. }
  712. }
  713. }
  714. .container {
  715. position: relative;
  716. font-family: PingFang SC, PingFang SC;
  717. font-weight: 400;
  718. font-size: 24rpx;
  719. color: #222222;
  720. &-body {
  721. position: relative;
  722. padding-top: calc(var(--status-bar-height) + 88rpx);
  723. padding-bottom: calc(var(--window-bottom) + 50rpx);
  724. }
  725. }
  726. .integral_top_bg {
  727. position: absolute;
  728. top: 0;
  729. left: 0;
  730. width: 100%;
  731. height: auto;
  732. }
  733. .uni-nav-bar {
  734. position: fixed;
  735. top: 0;
  736. left: 0;
  737. width: 100%;
  738. z-index: 999;
  739. overflow: hidden;
  740. font-family: PingFang SC, PingFang SC;
  741. font-weight: 500;
  742. color: #FFFFFF;
  743. .uni-nav-bar_bg {
  744. width: 100%;
  745. position: absolute;
  746. top: 0;
  747. left: 0;
  748. z-index: -1;
  749. }
  750. .uni-nav-barbox {
  751. width: 100%;
  752. height: 88rpx;
  753. @include u-flex(row, center, center);
  754. position: relative;
  755. font-size: 24rpx;
  756. }
  757. .uni-nav-title {
  758. /* #ifdef APP-PLUS */
  759. font-size: 34rpx;
  760. /* #endif */
  761. /* #ifndef APP-PLUS */
  762. font-size: 16px;
  763. /* #endif */
  764. }
  765. .uni-nav-back {
  766. position: absolute;
  767. bottom: 0;
  768. left: 20rpx;
  769. height: 88rpx;
  770. @include u-flex(row, center, flex-start);
  771. image {
  772. height: 58rpx;
  773. width: 58rpx;
  774. }
  775. }
  776. }
  777. .box {
  778. margin-bottom: 20rpx;
  779. // padding: 28rpx 24rpx 40rpx 24rpx;
  780. box-sizing: border-box;
  781. background: #FFFFFF;
  782. border-radius: 16rpx 16rpx 16rpx 16rpx;
  783. }
  784. .box-title {
  785. font-family: PingFang SC, PingFang SC;
  786. font-weight: 500;
  787. font-size: 34rpx;
  788. color: #222222;
  789. }
  790. .more{
  791. font-family: PingFang SC, PingFang SC;
  792. font-weight: 400;
  793. font-size: 24rpx;
  794. color: #999999;
  795. image{
  796. width: 48rpx;
  797. height: 48rpx;
  798. }
  799. }
  800. .pointsbox {
  801. width: 100%;
  802. padding-left: 24rpx;
  803. box-sizing: border-box;
  804. overflow: hidden;
  805. @include u-flex(row, center, space-between);
  806. &-left {
  807. font-weight: 500;
  808. font-size: 28rpx;
  809. color: #FFFFFF;
  810. }
  811. &-num {
  812. font-family: DIN, DIN;
  813. font-weight: bold;
  814. font-size: 80rpx;
  815. line-height: 60rpx;
  816. margin-top: 34rpx;
  817. margin-bottom: 34rpx;
  818. }
  819. &-detail {
  820. font-weight: 400;
  821. font-size: 24rpx;
  822. margin-left: 20rpx;
  823. text-decoration: underline;
  824. }
  825. &-desc {
  826. font-weight: 400;
  827. font-size: 24rpx;
  828. }
  829. &-right {
  830. flex-shrink: 0;
  831. width: 302rpx;
  832. height: 304rpx;
  833. margin-right: -18rpx;
  834. }
  835. }
  836. .signbox {
  837. &-head{
  838. @include u-flex(row, center, space-between);
  839. font-weight: 600;
  840. font-size: 36rpx;
  841. &-r {
  842. font-weight: 400;
  843. font-size: 26rpx;
  844. color: #757575;
  845. text {
  846. color: #FF5C03;
  847. padding: 0 10rpx;
  848. }
  849. }
  850. }
  851. &-con {
  852. margin: 38rpx 0 38rpx 0;
  853. @include u-flex(row, center, space-between);
  854. font-weight: 400;
  855. font-size: 24rpx;
  856. color: #757575;
  857. }
  858. &-item {
  859. text-align: center;
  860. .imgbox {
  861. flex-shrink: 0;
  862. height: 92rpx;
  863. width: 92rpx;
  864. margin-bottom: 4rpx;
  865. @include u-flex(row, center, center);
  866. }
  867. .signdaybox {
  868. position: relative;
  869. image {
  870. width: 24rpx;
  871. height: 24rpx;
  872. position: absolute;
  873. right: 0;
  874. bottom: 0;
  875. }
  876. }
  877. .signday {
  878. flex-shrink: 0;
  879. width: 72rpx;
  880. height: 72rpx;
  881. @include u-flex(row, center, center);
  882. box-sizing: border-box;
  883. background: #FCF0E7;
  884. border-radius: 0rpx 0rpx 0rpx 0rpx;
  885. border: 2rpx dashed rgba(255,92,3,0.5);
  886. border-radius: 50%;
  887. font-weight: 500;
  888. font-size: 22rpx;
  889. color: #FF5C03;
  890. }
  891. .integral-box {
  892. width: 72rpx;
  893. height: 72rpx;
  894. background: linear-gradient( 180deg, #FBE69B 0%, #F2A54E 100%);
  895. border-radius: 50%;
  896. @include u-flex(row, center, center);
  897. &-line {
  898. width: 64rpx;
  899. height: 64rpx;
  900. @include u-flex(row, center, center);
  901. font-weight: 500;
  902. font-size: 22rpx;
  903. color: #FFFFFF;
  904. border-radius: 50%;
  905. position: relative;
  906. background: linear-gradient(180deg, rgba(241, 161, 75, 1), rgba(249, 225, 137, 1));
  907. }
  908. &-con {
  909. width: 60rpx;
  910. height: 60rpx;
  911. border-radius: 50%;
  912. @include u-flex(row, center, center);
  913. background: linear-gradient( 180deg, #FFCD88 0%, #F4B55C 47%, #F49C49 100%);
  914. }
  915. }
  916. }
  917. &-footer {
  918. &-btn {
  919. width: 598rpx;
  920. height: 72rpx;
  921. @include u-flex(row, center, center);
  922. background: linear-gradient( 90deg, #FF5701 0%, #FFB501 100%);
  923. box-shadow: 0rpx 8rpx 8rpx 0rpx rgba(238,124,80,0.2);
  924. border-radius: 36rpx 36rpx 36rpx 36rpx;
  925. font-weight: 500;
  926. font-size: 28rpx;
  927. color: #FFFFFF;
  928. &::after {
  929. border: none;
  930. }
  931. }
  932. }
  933. }
  934. .pay-list {
  935. background-color: #F5F7FA;
  936. padding: 24rpx;
  937. min-height: 400rpx;
  938. .title {
  939. height: 96rpx;
  940. line-height: 96rpx;
  941. padding-bottom: 24rpx;
  942. font-family: PingFang SC, PingFang SC;
  943. font-weight: 500;
  944. font-size: 36rpx;
  945. color: #222222;
  946. .close {
  947. width: 48rpx;
  948. height: 48rpx;
  949. }
  950. }
  951. .pay-box {
  952. padding: 0 32rpx;
  953. background: #FFFFFF;
  954. border-radius: 16rpx 16rpx 16rpx 16rpx;
  955. .item-box {
  956. image {
  957. margin-right: 24rpx;
  958. width: 48rpx;
  959. height: 48rpx;
  960. }
  961. .right {
  962. flex: 1;
  963. padding: 36rpx 0;
  964. border-bottom: 1px solid #ECECEC;
  965. .text {
  966. font-family: PingFang SC, PingFang SC;
  967. font-weight: 400;
  968. font-size: 28rpx;
  969. color: #222222;
  970. }
  971. }
  972. &:last-child {
  973. .right {
  974. border-bottom: none;
  975. }
  976. }
  977. }
  978. }
  979. }
  980. .money{
  981. margin-bottom: 20rpx;
  982. padding:32rpx;
  983. box-sizing: border-box;
  984. background: #FFFFFF;
  985. border-radius: 16rpx 16rpx 16rpx 16rpx;
  986. .box-top{
  987. image{
  988. margin-left: 12rpx;
  989. width:32rpx;
  990. height: 32rpx;
  991. }
  992. padding-bottom: 10rpx;
  993. .price{
  994. font-family: DIN, DIN;
  995. font-weight: 500;
  996. font-size: 72rpx;
  997. color: #222222;
  998. }
  999. .wbtn{
  1000. font-family: PingFang SC, PingFang SC;
  1001. font-weight: 500;
  1002. font-size: 32rpx;
  1003. color: #FFFFFF;
  1004. text-align: center;
  1005. width: 224rpx;
  1006. height: 88rpx;
  1007. line-height: 88rpx;
  1008. background: #FF5C03;
  1009. border-radius: 44rpx 44rpx 44rpx 44rpx;
  1010. }
  1011. }
  1012. .fanghua{
  1013. font-family: PingFang SC, PingFang SC;
  1014. font-weight: 500;
  1015. font-size: 28rpx;
  1016. color: #757575;
  1017. .duihuan{
  1018. color: #FF5C03;
  1019. margin-left: 10rpx;
  1020. }
  1021. padding-bottom: 40rpx
  1022. }
  1023. .box-bottom{
  1024. .num{
  1025. font-family: DIN, DIN;
  1026. font-weight: 500;
  1027. font-size: 40rpx;
  1028. color: #313131;
  1029. line-height: 32rpx;
  1030. text-align: center;
  1031. }
  1032. }
  1033. .title{
  1034. font-family: PingFang SC, PingFang SC;
  1035. font-weight: 400;
  1036. font-size: 24rpx;
  1037. color: #757575;
  1038. line-height: 56rpx;
  1039. }
  1040. }
  1041. .taskloglist{
  1042. width: 100%;
  1043. .item{
  1044. width: 100%;
  1045. margin-top: 24rpx;
  1046. .share{
  1047. flex:1;
  1048. width: 100%;
  1049. padding-bottom: 10rpx;
  1050. .type{
  1051. font-family: PingFang SC, PingFang SC;
  1052. font-weight: 400;
  1053. font-size: 30rpx;
  1054. color: #222222;
  1055. }
  1056. .total{
  1057. font-family: PingFang SC, PingFang SC;
  1058. font-weight: 400;
  1059. font-size: 24rpx;
  1060. color: #FF5C03;
  1061. .num{
  1062. font-family: DIN, DIN;
  1063. font-weight: 500;
  1064. font-size: 32rpx;
  1065. color: #FF5C03;
  1066. }
  1067. }
  1068. }
  1069. .amount{
  1070. flex:1;
  1071. width: 100%;
  1072. font-family: PingFang SC, PingFang SC;
  1073. font-weight: 400;
  1074. font-size: 24rpx;
  1075. color: #757575;
  1076. }
  1077. }
  1078. }
  1079. .benefit {
  1080. height: 176rpx;
  1081. display: flex;
  1082. align-items: center;
  1083. &-box {
  1084. flex:1;
  1085. // margin-top: 38rpx;
  1086. @include u-flex(row, center, space-around);
  1087. }
  1088. &-item {
  1089. flex:1;
  1090. width: 104rpx;
  1091. height: 104rpx;
  1092. text-align: center;
  1093. image {
  1094. width: 64rpx;
  1095. height: 64rpx;
  1096. margin-bottom: 6rpx;
  1097. }
  1098. &:first-child{
  1099. border-right:2rpx solid #ECECEC; ;
  1100. }
  1101. }
  1102. }
  1103. .newusertask-box {
  1104. background: #FAFAFA !important;
  1105. border: none !important;
  1106. .task-list-icon {
  1107. width: 88rpx !important;
  1108. height: 88rpx !important;
  1109. margin-right: 22rpx !important;
  1110. }
  1111. }
  1112. .title-tip {
  1113. min-width: 134rpx;
  1114. height: 38rpx;
  1115. margin-left: 8rpx;
  1116. padding: 8rpx 12rpx;
  1117. box-sizing: border-box;
  1118. background: #FCF0E7;
  1119. border-radius: 24rpx 24rpx 24rpx 24rpx;
  1120. font-family: PingFang SC, PingFang SC;
  1121. font-weight: 400;
  1122. font-size: 22rpx;
  1123. color: #FF5C03;
  1124. }
  1125. .task-footer {
  1126. margin-top: 32rpx;
  1127. margin-left: 80rpx;
  1128. @include u-flex(row, center, flex-start);
  1129. &-btn {
  1130. width: 252rpx;
  1131. height: 80rpx;
  1132. margin: 0;
  1133. @include u-flex(row, center, center);
  1134. background: #F5F7FA;
  1135. border-radius: 40rpx 40rpx 40rpx 40rpx;
  1136. font-family: PingFang SC, PingFang SC;
  1137. font-weight: 500;
  1138. font-size: 26rpx;
  1139. color: #222222;
  1140. position: relative;
  1141. &::after {
  1142. border: none;
  1143. }
  1144. image {
  1145. flex-shrink: 0;
  1146. width: 48rpx;
  1147. height: 48rpx;
  1148. margin-right: 8rpx;
  1149. }
  1150. }
  1151. }
  1152. .task{
  1153. padding: 32rpx;
  1154. &-box {
  1155. padding: 24rpx;
  1156. margin-top: 20rpx;
  1157. background: #fff;
  1158. border-radius: 16rpx 16rpx 16rpx 16rpx;
  1159. border: 2rpx solid #F5F7FA;
  1160. &:first-of-type {
  1161. margin-top: 36rpx;
  1162. }
  1163. .invitation-code {
  1164. margin-left: 100rpx;
  1165. margin-top: 22rpx;
  1166. margin-bottom: 16rpx;
  1167. width: 496rpx;
  1168. height: 80rpx;
  1169. padding: 8rpx 8rpx 8rpx 24rpx;
  1170. box-sizing: border-box;
  1171. background: #ECECEC;
  1172. border-radius: 40rpx 40rpx 40rpx 40rpx;
  1173. @include u-flex(row, center, space-between);
  1174. }
  1175. .input {
  1176. font-family: PingFang SC, PingFang SC;
  1177. font-weight: 400;
  1178. font-size: 26rpx;
  1179. color: #222;
  1180. }
  1181. }
  1182. &-list {
  1183. @include u-flex(row, center, space-between);
  1184. &-icon {
  1185. width: 54rpx;
  1186. height: 54rpx;
  1187. margin-right: 24rpx;
  1188. }
  1189. &-r {
  1190. flex: 1;
  1191. @include u-flex(row, center, space-between);
  1192. font-weight: 400;
  1193. font-size: 24rpx;
  1194. color: #999999;
  1195. }
  1196. }
  1197. &-title {
  1198. margin-bottom: 8rpx;
  1199. font-weight: 500;
  1200. font-size: 32rpx;
  1201. color: #222222;
  1202. line-height: 38rpx;
  1203. }
  1204. &-btn {
  1205. flex-shrink: 0;
  1206. min-width: 132rpx;
  1207. height: 64rpx;
  1208. margin: 0 0 0 12rpx;
  1209. padding:0 14rpx;
  1210. background: #FF5C03 !important;
  1211. border-radius: 32rpx 32rpx 32rpx 32rpx;
  1212. text-align: center;
  1213. @include u-flex(row, center, center);
  1214. font-weight: 500;
  1215. font-size: 28rpx;
  1216. color: #FFFFFF !important;
  1217. &::after {
  1218. border: none;
  1219. }
  1220. &-disable {
  1221. background-color: #FDAB8D !important;
  1222. }
  1223. &-finish {
  1224. background:#FAFAFA !important;
  1225. color:#FF5C03 !important;
  1226. }
  1227. }
  1228. }
  1229. </style>