index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785
  1. <template>
  2. <view class="my-page">
  3. <view class="headtop">
  4. <view class="icon-box">
  5. <image class="icon" src="/static/images/my/wallet-icon.png" mode=""></image>
  6. <view class="text" @click="goNav('/my/wallet/mymoneydetail')">钱包明细</view>
  7. </view>
  8. <view class="u-flex">
  9. <view class="u-m-r-10">
  10. <image :src="avatar" style="width: 100rpx;height: 100rpx;border-radius: 100rpx;"
  11. @click="goNav('/pages/my/userinfo')"></image>
  12. </view>
  13. <view class="u-flex-1 u-m-l-10 " v-if="!isLogin">
  14. <view class="margin-left-xs">
  15. <view style="font-weight: bold;font-size: 32rpx;color: #222222;">{{userName}}</view>
  16. <view class="flex margin-top-sm" v-if="XCXIsSelect != '否'"
  17. style="font-size: 24rpx;color: #222222;">
  18. <view v-if="renzheng == 0" @click.stop="goNav('/my/renzheng/rzType')">
  19. 暂未实名认证
  20. </view>
  21. <view v-if="renzheng == 1" @click.stop="goNav('/my/renzheng/index')">
  22. 审核中
  23. </view>
  24. <view v-if="renzheng == 2" @click.stop="goNav('/my/renzheng/index')">
  25. 已实名认证
  26. </view>
  27. <view v-if="renzheng == 3" @click.stop="goNav('/my/renzheng/index')">
  28. 已拒绝
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. <view v-else class="text-xl u-p-l-20 text-bold" @click="goLogin('/pages/public/login')">
  34. 登录
  35. </view>
  36. </view>
  37. <view class="moneybox" v-if="XCXIsSelect != '否'">
  38. <view class="flex box-content">
  39. <view class="money-item">
  40. <view class="label">账户余额(元)</view>
  41. <view class="money_text">{{money?money:'0'}}</view>
  42. <view class="desc-btn" @click="goQian()">立即提现
  43. </view>
  44. </view>
  45. <view class="money-item" @click="goNav('/my/wallet/mymoneydetail')">
  46. <view class="label">今日收益</view>
  47. <view class="money_text">{{dayMoney?dayMoney:'0'}}</view>
  48. </view>
  49. <view class="money-item">
  50. <view class="label">本月提现</view>
  51. <view class="money_text">{{cashMoney?cashMoney:'0'}}</view>
  52. <view class="desc-btn" @click="goQian()">立即提现
  53. </view>
  54. </view>
  55. <view class="money-item" @click="goNav('/my/wallet/mymoneydetail')">
  56. <view class="label">本月收益</view>
  57. <view class="money_text">{{monthMoney?monthMoney:'0'}}</view>
  58. </view>
  59. </view>
  60. <view class="number-box">
  61. <view class="number-item">
  62. <view class="number">{{ordersScore}}</view>
  63. <view class="label">综合评分</view>
  64. </view>
  65. <view class="number-item">
  66. <view class="number">{{succeedRate | formatPrice}}%</view>
  67. <view class="label">成交率</view>
  68. </view>
  69. <view class="number-item">
  70. <view class="number">{{sumCount}}</view>
  71. <view class="label">服务次数</view>
  72. </view>
  73. <view class="number-item"@click="goNav('/my/wallet/xinyongfendetail')">
  74. <view class="number">{{creditScore}}</view>
  75. <view class="label">信用分</view>
  76. </view>
  77. </view>
  78. </view>
  79. <view class="list-content">
  80. <view class="sub-title">
  81. 常用工具
  82. </view>
  83. <view class="box-list">
  84. <view class="box" v-if="renzheng == 0 && XCXIsSelect != '否'" @click="goNav('/my/renzheng/rzType')">
  85. <image src="../../static/images/my/renzheng.png"></image>
  86. <view class="box_text">实名认证</view>
  87. </view>
  88. <!-- <view class="box" v-if="renzheng > 0 && XCXIsSelect != '否'" @click="goNav('/my/renzheng/index')">
  89. <image src="../../static/images/my/renzheng.png"></image>
  90. <view class="box_text">实名认证</view>
  91. </view> -->
  92. <view class="box" @click="goNav('/pages/my/jingjiren')" v-if="renzheng > 0 && XCXIsSelect != '否'">
  93. <image src="../../static/images/my/shops.png"></image>
  94. <view class="box_text">邀请师傅</view>
  95. </view>
  96. <view class="box" @click="goNav('/my/publish/money')" v-if="bzjCheck != '否' && XCXIsSelect != '否'">
  97. <image src="../../static/images/my/baozhengjin.png"></image>
  98. <view class="box_text">保证金</view>
  99. </view>
  100. <view class="box" @click="goNav('/my/wallet/index')" v-if="XCXIsSelect != '否'">
  101. <image src="../../static/images/my/fbgl.png"></image>
  102. <view class="box_text">我的钱包</view>
  103. </view>
  104. <view class="box" @click="goChat()">
  105. <image src="../../static/images/my/kefu.png"></image>
  106. <view class="box_text">联系客服</view>
  107. </view>
  108. <view class="box" @click="goNav('/my/help/feedbackIndex')">
  109. <image src="../../static/images/my/help.png"></image>
  110. <view class="box_text">帮助中心</view>
  111. </view>
  112. <view class="box" @click="goNav('/my/team/team')" v-if="renzheng > 0 && XCXIsSelect != '否'">
  113. <image src="../../static/images/my/team.png"></image>
  114. <view class="box_text">我的团队</view>
  115. </view>
  116. <view class="box" @click="goNav(`/my/publish/index?id=${classifyId}`)">
  117. <image src="../../static/images/my/yjian.png"></image>
  118. <view class="box_text">我的项目</view>
  119. </view>
  120. <view class="box" @click="goNav('/my/setting/index')">
  121. <image src="../../static/images/my/me.png"></image>
  122. <view class="box_text">设置中心</view>
  123. </view>
  124. <view class="box" @click="goNav('/package/pages/zysc/index/index')" v-if="shopSel != '否'">
  125. <image src="../../static/images/my/shop.png"></image>
  126. <view class="box_text">采购商城</view>
  127. </view>
  128. </view>
  129. </view>
  130. </view>
  131. <view v-if="XCXIsSelect != '否'">
  132. <view class="task-box" v-if="!phone || !openId || renzheng != 2">
  133. <image class="icon" src="/static/images/my/task-title.png" mode=""></image>
  134. <image class="logo" src="/static/images/my/task-logo.png" mode=""></image>
  135. <view class="task-list">
  136. <view class="flex align-center justify-between margin-top-sm" style="padding-bottom: 22rpx;border-bottom: 1rpx solid #F0F0F0;">
  137. <view>
  138. <view class="flex align-center">
  139. <view class="xinshou">新手任务</view>
  140. <view class="title">手机号授权</view>
  141. </view>
  142. <view class="margin-top-xs" style="font-size: 24rpx;color: #AAAAAA;margin-top: 22rpx;">
  143. 以免客户无法联系到您,从而错失客户</view>
  144. </view>
  145. <view class="btn1" v-if="phone">已完成</view>
  146. <view class="btn" v-if="!phone">去完成</view>
  147. </view>
  148. <view class="flex align-center justify-between margin-top-sm" style="padding-bottom: 22rpx;border-bottom: 1rpx solid #F0F0F0;">
  149. <view>
  150. <view class="flex align-center">
  151. <view class="xinshou">新手任务</view>
  152. <view class="title">关注公众号</view>
  153. </view>
  154. <view class="text-26 margin-top-xs"
  155. style="font-size: 24rpx;color: #AAAAAA;margin-top: 22rpx;">
  156. 方便接收新订单/状态消息提醒</view>
  157. </view>
  158. <view class="btn1" v-if="openId">已完成</view>
  159. <view class="btn" v-if="!openId" @click="gowxImage()">去完成</view>
  160. </view>
  161. <view class="flex align-center justify-between margin-top-sm">
  162. <view>
  163. <view class="flex align-center">
  164. <view class="xinshou">新手任务</view>
  165. <view class="title">认证信息</view>
  166. </view>
  167. <view class="text-26 margin-top-xs"
  168. style="font-size: 24rpx;color: #AAAAAA;margin-top: 22rpx;">
  169. 实名认证/头像/资质</view>
  170. </view>
  171. <view class="btn1" v-if="renzheng == 2" @click.stop="goNav('/my/renzheng/index')">已完成</view>
  172. <view class="btn" v-if="renzheng == 0" @click.stop="goNav('/my/renzheng/rzType')">去完成</view>
  173. <view class="btn" v-if="renzheng != 0 && renzheng != 2"
  174. @click.stop="goNav('/my/renzheng/index')">去完成</view>
  175. </view>
  176. </view>
  177. </view>
  178. </view>
  179. </view>
  180. </template>
  181. <script>
  182. export default {
  183. data() {
  184. return {
  185. ordersScore: 0,
  186. creditScore: 0,
  187. phone: '',
  188. openId: '',
  189. avatar: '../../static/logo.png',
  190. isLogin: true,
  191. userName: '匿名',
  192. money: 0, //累计余额
  193. dayMoney: 0, //今日收益
  194. monthMoney: 0, //本月预估收益
  195. cashMoney: 0, // 本月预估提现
  196. userId: '',
  197. isVip: false,
  198. invitationCode: '', //邀请码
  199. succeedRate: 0,
  200. sumCount: 0,
  201. renzheng: 0,
  202. bzjCheck: '否',
  203. XCXIsSelect: '否',
  204. shopSel:'否',
  205. isCashDeposit: '',
  206. classifyId:'',
  207. }
  208. },
  209. onLoad() {
  210. this.XCXIsSelect = this.$queue.getData("XCXIsSelect");
  211. this.shopSel = this.$queue.getData('shopSel');
  212. },
  213. onShow() {
  214. this.bzjCheck = this.$queue.getData("bzjCheck");
  215. this.userId = uni.getStorageSync('userId')
  216. if (this.userId) {
  217. this.isLogin = false
  218. this.getUserInfo()
  219. this.getCount();
  220. this.getAmount()
  221. this.getIsVip()
  222. this.getArtificer()
  223. } else {
  224. this.ordersScore = 0;
  225. this.creditScore = 0;
  226. this.succeedRate = 0;
  227. this.sumCount = 0;
  228. this.isLogin = true
  229. this.userName = '匿名'
  230. this.money = 0
  231. this.dayMoney = 0
  232. this.monthMoney = 0
  233. this.cashMoney = 0
  234. this.avatar = '../../static/logo.png'
  235. }
  236. },
  237. filters: {
  238. formatPrice(data) {
  239. if (typeof(data) === "number") {
  240. return parseFloat(parseFloat(data) * 100).toFixed();
  241. }
  242. return 0.00;
  243. }
  244. },
  245. methods: {
  246. goChat() {
  247. let kefu = this.$queue.getData('kefu'); // 用户端联系方式 1 手机号 2企业微信
  248. let kefuPhone = this.$queue.getData('kefuPhone');
  249. if (this.userId) {
  250. if (kefu == 1) {
  251. uni.makePhoneCall({
  252. phoneNumber: kefuPhone //仅为示例
  253. });
  254. } else {
  255. // #ifdef MP-WEIXIN
  256. let that = this
  257. try {
  258. wx.openCustomerServiceChat({
  259. extInfo: {
  260. url: that.$queue.getData('kefuUrl')
  261. },
  262. corpId: that.$queue.getData('kefuAppId'),
  263. success(res) {},
  264. fail(res) {
  265. console.error(res)
  266. }
  267. })
  268. } catch (error) {
  269. console.error("catchcatch" + error)
  270. uni.showToast({
  271. title: '请更新至微信最新版本'
  272. });
  273. }
  274. // #endif
  275. // #ifndef MP-WEIXIN
  276. let url = this.$queue.getData('kefuUrl');
  277. if (url.indexOf('/pages/') !== -1 || url.indexOf('/my/') !== -1) {
  278. uni.navigateTo({
  279. url
  280. });
  281. } else {
  282. //#ifndef H5
  283. uni.navigateTo({
  284. url: '/pages/index/webView?url=' + url
  285. });
  286. //#endif
  287. //#ifdef H5
  288. window.location.href = url;
  289. //#endif
  290. }
  291. // #endif
  292. }
  293. } else {
  294. uni.showModal({
  295. title: '提示',
  296. content: '您还未登录,请先登录',
  297. success: function(res) {
  298. if (res.confirm) {
  299. console.log('用户点击确定');
  300. uni.navigateTo({
  301. url: '/pages/public/login'
  302. })
  303. } else if (res.cancel) {
  304. console.log('用户点击取消');
  305. }
  306. }
  307. })
  308. }
  309. },
  310. //跳转打开微信公众号
  311. gowxImage() {
  312. this.$Request.get('/app/common/type/2').then(res => {
  313. if (res.code == 0) {
  314. var imgPaths = [];
  315. imgPaths.push(res.data.value)
  316. uni.previewImage({
  317. current: 0,
  318. urls: imgPaths, //图片路径是个数组,数组里面放图片的全路径
  319. longPressActions: { //长按保存图片到相册
  320. itemList: ['保存图片'],
  321. success: (data) => {
  322. uni.saveImageToPhotosAlbum({ //保存图片到相册
  323. filePath: res.data.value,
  324. success: function() {
  325. uni.showToast({
  326. icon: 'success',
  327. title: '保存成功'
  328. })
  329. },
  330. fail: (err) => {
  331. uni.showToast({
  332. icon: 'none',
  333. title: '保存失败,请重新尝试'
  334. })
  335. }
  336. });
  337. },
  338. fail: (err) => {
  339. console.log(err.errMsg);
  340. }
  341. }
  342. })
  343. }
  344. });
  345. },
  346. //跳转用户端
  347. gouser() {
  348. wx.navigateToMiniProgram({
  349. appId: 'wx36626f7398972421',
  350. path: '/pages/index/index',
  351. envVersion: 'release', // 打开正式版
  352. success(res) {
  353. // 打开成功
  354. },
  355. fail: function(err) {
  356. console.log(err);
  357. }
  358. })
  359. },
  360. getCount() {
  361. this.$Request.get("/app/artificer/selectArtificerIndex").then(res => {
  362. if (res.code == 0) {
  363. this.succeedRate = res.data.succeedRate;
  364. console.log(this.succeedRate)
  365. this.sumCount = res.data.sumCount;
  366. }
  367. })
  368. },
  369. goQian() {
  370. uni.navigateTo({
  371. url: '/my/wallet/index'
  372. })
  373. },
  374. bindFb() {
  375. let renzheng = uni.getStorageSync('renzheng')
  376. console.log(this.userId, renzheng)
  377. if (this.userId) {
  378. uni.navigateTo({
  379. url: '/my/publish/editor'
  380. })
  381. } else {
  382. uni.showModal({
  383. title: '提示',
  384. content: '您还未实名认证,请先认证',
  385. success: function(res) {
  386. if (res.confirm) {
  387. console.log('用户点击确定');
  388. uni.navigateTo({
  389. url: '/my/renzheng/index'
  390. })
  391. } else if (res.cancel) {
  392. console.log('用户点击取消');
  393. }
  394. }
  395. })
  396. }
  397. },
  398. goNav(e, name) {
  399. console.log(e)
  400. if (this.userId) {
  401. uni.navigateTo({
  402. url: e
  403. })
  404. } else {
  405. uni.showModal({
  406. title: '提示',
  407. content: '您还未登录,请先登录',
  408. success: function(res) {
  409. if (res.confirm) {
  410. console.log('用户点击确定');
  411. uni.navigateTo({
  412. url: '/pages/public/login'
  413. })
  414. } else if (res.cancel) {
  415. console.log('用户点击取消');
  416. }
  417. }
  418. })
  419. }
  420. },
  421. goLogin(e) {
  422. uni.navigateTo({
  423. url: e
  424. })
  425. },
  426. //我的收益
  427. getAmount() {
  428. this.$Request.get("/app/artificer/selectArtificerMoney").then(res => {
  429. if (res.code == 0) {
  430. this.money = res.data.money //累计余额
  431. this.dayMoney = res.data.dayMoney //今日收益
  432. this.monthMoney = res.data.monthMoney //本月预估收益
  433. this.cashMoney = res.data.cashMoney //本月预估提现
  434. }
  435. });
  436. },
  437. getUserInfo() {
  438. this.$Request.get("/app/user/selectUserById").then(res => {
  439. if (res.code == 0) {
  440. if(!res.data.wxOpenId){//授权微信
  441. let url = window.location.origin + '/my/wallet/test'
  442. return window.location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxbcba29ef4f698074&redirect_uri=${url}&response_type=code&scope=snsapi_userinfo&state=STATE&connect_redirect=1#wechat_redirect`
  443. }
  444. this.userName = res.data.userName
  445. this.invitationCode = res.data.invitationCode
  446. this.avatar = res.data.avatar ? res.data.avatar : '../../static/logo.png'
  447. // this.isAuthentication = res.data.isAuthentication
  448. this.classifyId = res.data.classifyId
  449. this.phone = res.data.phone;
  450. this.openId = res.data.openId;
  451. //保证金
  452. if (res.data.isCashDeposit == 1 || res.data.isCashDeposit == null) {
  453. this.isCashDeposit = 1
  454. uni.setStorageSync("isCashDeposit", this.isCashDeposit)
  455. } else if (res.data.isCashDeposit == 2) {
  456. this.isCashDeposit = 2
  457. uni.setStorageSync("isCashDeposit", this.isCashDeposit)
  458. } else if (res.data.isCashDeposit == 3) {
  459. this.isCashDeposit = 3
  460. uni.setStorageSync("isCashDeposit", this.isCashDeposit)
  461. }
  462. uni.setStorageSync('avatar', res.data.avatar)
  463. uni.setStorageSync('invitationCode', res.data.invitationCode)
  464. //实名认证
  465. if (res.data.isAuthentication == 0 || res.data.isAuthentication == null) {
  466. this.renzheng = 0
  467. uni.setStorageSync("renzheng", this.renzheng)
  468. } else if (res.data.isAuthentication == 1) {
  469. this.renzheng = 1
  470. uni.setStorageSync("renzheng", this.renzheng)
  471. } else if (res.data.isAuthentication == 2) {
  472. this.renzheng = 2
  473. uni.setStorageSync("renzheng", this.renzheng)
  474. } else if (res.data.isAuthentication == 3) {
  475. this.renzheng = 3
  476. uni.setStorageSync("renzheng", this.renzheng)
  477. }
  478. }
  479. });
  480. },
  481. //获取技师的信息
  482. getArtificer() {
  483. this.$Request.getT("/app/artificer/selectArtificer").then(res => {
  484. if (res.code == 0) {
  485. this.creditScore = res.data.creditScore ? res.data.creditScore : 0;
  486. this.ordersScore = res.data.ordersScore ? res.data.ordersScore : 0;
  487. // uni.setStorageSync("status", res.data.status)
  488. uni.setStorageSync('artificerId', res.data.artificerId)
  489. }
  490. });
  491. },
  492. //会员
  493. getIsVip() {
  494. this.$Request.get("/app/UserVip/isUserVip").then(res => {
  495. if (res.code == 0) {
  496. this.isVip = res.data
  497. uni.setStorageSync('isVIP', res.data)
  498. }
  499. });
  500. },
  501. //退出登录
  502. TuiLogin() {
  503. let that = this
  504. if (that.userId) {
  505. uni.showModal({
  506. title: '提示',
  507. content: '确定退出登录吗?',
  508. success: function(res) {
  509. if (res.confirm) {
  510. console.log('用户点击确定');
  511. uni.removeStorageSync('userName')
  512. uni.removeStorageSync('avatar')
  513. uni.removeStorageSync('userId')
  514. uni.removeStorageSync('token')
  515. uni.removeStorageSync('phone')
  516. uni.removeStorageSync('zhiFuBaoName')
  517. uni.removeStorageSync('zhiFuBao')
  518. uni.removeStorageSync('invitationCode')
  519. uni.removeStorageSync('unionId')
  520. uni.removeStorageSync('openId')
  521. uni.removeStorageSync('isVIP')
  522. uni.showToast({
  523. title: '退出成功!',
  524. icon: 'none'
  525. })
  526. that.isLogin = true
  527. that.userName = '匿名'
  528. that.money = 0
  529. that.dayMoney = 0
  530. that.monthMoney = 0
  531. that.cashMoney = 0
  532. that.avatar = '../../static/logo.png'
  533. that.userId = uni.getStorageSync('userId')
  534. } else if (res.cancel) {
  535. console.log('用户点击取消');
  536. }
  537. }
  538. })
  539. } else {
  540. uni.showModal({
  541. title: '提示',
  542. content: '您还未登录,请先登录',
  543. success: function(res) {
  544. if (res.confirm) {
  545. console.log('用户点击确定');
  546. uni.navigateTo({
  547. url: '/pages/public/login'
  548. })
  549. } else if (res.cancel) {
  550. console.log('用户点击取消');
  551. }
  552. }
  553. })
  554. }
  555. },
  556. }
  557. }
  558. </script>
  559. <style lang="scss" scoped>
  560. .my-page {
  561. background: linear-gradient( 180deg, #C2F0EE 0%, #FAF7E6 63%, #F5F5F5 2006rpx);
  562. padding: 20rpx 32rpx;
  563. min-height: calc(100vh - 50rpx) ;
  564. .headtop{
  565. position: relative;
  566. .icon-box{
  567. position: absolute;
  568. right: -32rpx;
  569. top: 40rpx;
  570. display: flex;
  571. justify-content: flex-end;
  572. width: 208rpx;
  573. height: 64rpx;
  574. line-height: 64rpx;
  575. background: #FFFFFF;
  576. box-sizing: border-box;
  577. text-align: right;
  578. padding-right: 20rpx;
  579. border-radius: 32rpx 0rpx 0rpx 32rpx;
  580. .icon{
  581. width: 72rpx;
  582. height: 72rpx;
  583. position: absolute;
  584. left: -16rpx;
  585. bottom: 0;
  586. }
  587. .text{
  588. font-size: 28rpx;
  589. color: #25BCDE;
  590. }
  591. }
  592. }
  593. .moneybox {
  594. width: 686rpx;
  595. // height: 288rpx;
  596. background: linear-gradient( 180deg, #71EFAB 0%, #58E79A 49%, #3FDE88 100%);
  597. border-radius: 32rpx;
  598. box-sizing: border-box;
  599. padding-top: 28rpx;
  600. margin-top: 28rpx;
  601. .box-content{
  602. padding: 0 28rpx;
  603. }
  604. .money-item{
  605. flex: 1;
  606. text-align: center;
  607. .label{
  608. font-size: 24rpx;
  609. color: rgba(255,255,255,0.9);
  610. }
  611. .money_text {
  612. font-weight: 800;
  613. font-size: 40rpx;
  614. color: #FFFFFF;
  615. margin-top: 12rpx;
  616. }
  617. .desc-btn{
  618. font-size: 22rpx;
  619. color: #007449;
  620. margin-top: 6rpx;
  621. }
  622. }
  623. }
  624. .number-box{
  625. display: flex;
  626. width: 686rpx;
  627. height: 158rpx;
  628. background: linear-gradient( 180deg, #71EFAB 0%, #58E79A 49%, #FFF 100%);
  629. box-shadow: inset 0rpx 6rpx 8rpx 2rpx rgba(255,255,255,0.16);
  630. border-radius: 32rpx 32rpx 32rpx 32rpx;
  631. box-sizing: border-box;
  632. padding: 30rpx 0;
  633. margin-top: 30rpx;
  634. .number-item{
  635. flex: 1;
  636. text-align: center;
  637. .number{
  638. font-weight: bold;
  639. font-size: 36rpx;
  640. color: #222222;
  641. }
  642. .label{
  643. font-size: 24rpx;
  644. color: #222222;
  645. margin-top: 16rpx;
  646. }
  647. }
  648. }
  649. .task-box{
  650. background: linear-gradient( 180deg, #BAFFD9 0%, #FFFFFF 29%, #FFFFFF 100%);
  651. border-radius: 32rpx 32rpx 32rpx 32rpx;
  652. padding: 28rpx;
  653. position: relative;
  654. margin-top: 20rpx;
  655. .icon{
  656. width: 142rpx;
  657. height: 32rpx;
  658. }
  659. .logo{
  660. width: 376rpx;
  661. height: 64rpx;
  662. position: absolute;
  663. right: 0;
  664. top: 0;
  665. }
  666. .task-list{
  667. .btn {
  668. width: 156rpx;
  669. height: 60rpx;
  670. line-height: 60rpx;
  671. text-align: center;
  672. background: #1EDA94;
  673. border-radius: 60rpx 60rpx 60rpx 60rpx;
  674. font-weight: bold;
  675. font-size: 28rpx;
  676. color: #FFFFFF;
  677. }
  678. .btn1 {
  679. width: 156rpx;
  680. height: 60rpx;
  681. line-height: 60rpx;
  682. text-align: center;
  683. background: rgba(30,218,148,0.3);
  684. border-radius: 60rpx 60rpx 60rpx 60rpx;
  685. font-weight: bold;
  686. font-size: 28rpx;
  687. color: #FFFFFF;
  688. }
  689. .xinshou {
  690. width: 128rpx;
  691. height: 40rpx;
  692. line-height: 40rpx;
  693. text-align: center;
  694. background: #FFC934;
  695. border-radius: 8rpx 8rpx 8rpx 8rpx;
  696. font-size: 24rpx;
  697. color: #FFFFFF;
  698. }
  699. .title {
  700. font-weight: bold;
  701. font-size: 28rpx;
  702. color: #222222;
  703. margin-left: 16rpx;
  704. }
  705. }
  706. }
  707. }
  708. .list-content{
  709. background: #FFFFFF;
  710. border-radius: 32rpx 32rpx 32rpx 32rpx;
  711. padding: 28rpx 0;
  712. margin-top: 20rpx;
  713. .sub-title{
  714. margin-left: 28rpx;
  715. font-weight: bold;
  716. font-size: 32rpx;
  717. color: #222222;
  718. margin-bottom: 28rpx;
  719. }
  720. .box-list{
  721. display: flex;
  722. flex-wrap: wrap;
  723. .box {
  724. width: 25%;
  725. text-align: center;
  726. margin-bottom: 28rpx;
  727. .box_text {
  728. font-size: 24rpx;
  729. font-family: PingFang SC;
  730. font-weight: 500;
  731. color: #090909;
  732. margin-top: 20rpx;
  733. }
  734. image {
  735. width: 48rpx;
  736. height: 48rpx;
  737. }
  738. }
  739. }
  740. }
  741. </style>