index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784
  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')">
  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. }
  207. },
  208. onLoad() {
  209. this.XCXIsSelect = this.$queue.getData("XCXIsSelect");
  210. this.shopSel = this.$queue.getData('shopSel');
  211. },
  212. onShow() {
  213. this.bzjCheck = this.$queue.getData("bzjCheck");
  214. this.userId = uni.getStorageSync('userId')
  215. if (this.userId) {
  216. this.isLogin = false
  217. this.getUserInfo()
  218. this.getCount();
  219. this.getAmount()
  220. this.getIsVip()
  221. this.getArtificer()
  222. } else {
  223. this.ordersScore = 0;
  224. this.creditScore = 0;
  225. this.succeedRate = 0;
  226. this.sumCount = 0;
  227. this.isLogin = true
  228. this.userName = '匿名'
  229. this.money = 0
  230. this.dayMoney = 0
  231. this.monthMoney = 0
  232. this.cashMoney = 0
  233. this.avatar = '../../static/logo.png'
  234. }
  235. },
  236. filters: {
  237. formatPrice(data) {
  238. if (typeof(data) === "number") {
  239. return parseFloat(parseFloat(data) * 100).toFixed();
  240. }
  241. return 0.00;
  242. }
  243. },
  244. methods: {
  245. goChat() {
  246. let kefu = this.$queue.getData('kefu'); // 用户端联系方式 1 手机号 2企业微信
  247. let kefuPhone = this.$queue.getData('kefuPhone');
  248. if (this.userId) {
  249. if (kefu == 1) {
  250. uni.makePhoneCall({
  251. phoneNumber: kefuPhone //仅为示例
  252. });
  253. } else {
  254. // #ifdef MP-WEIXIN
  255. let that = this
  256. try {
  257. wx.openCustomerServiceChat({
  258. extInfo: {
  259. url: that.$queue.getData('kefuUrl')
  260. },
  261. corpId: that.$queue.getData('kefuAppId'),
  262. success(res) {},
  263. fail(res) {
  264. console.error(res)
  265. }
  266. })
  267. } catch (error) {
  268. console.error("catchcatch" + error)
  269. uni.showToast({
  270. title: '请更新至微信最新版本'
  271. });
  272. }
  273. // #endif
  274. // #ifndef MP-WEIXIN
  275. let url = this.$queue.getData('kefuUrl');
  276. if (url.indexOf('/pages/') !== -1 || url.indexOf('/my/') !== -1) {
  277. uni.navigateTo({
  278. url
  279. });
  280. } else {
  281. //#ifndef H5
  282. uni.navigateTo({
  283. url: '/pages/index/webView?url=' + url
  284. });
  285. //#endif
  286. //#ifdef H5
  287. window.location.href = url;
  288. //#endif
  289. }
  290. // #endif
  291. }
  292. } else {
  293. uni.showModal({
  294. title: '提示',
  295. content: '您还未登录,请先登录',
  296. success: function(res) {
  297. if (res.confirm) {
  298. console.log('用户点击确定');
  299. uni.navigateTo({
  300. url: '/pages/public/login'
  301. })
  302. } else if (res.cancel) {
  303. console.log('用户点击取消');
  304. }
  305. }
  306. })
  307. }
  308. },
  309. //跳转打开微信公众号
  310. gowxImage() {
  311. this.$Request.get('/app/common/type/2').then(res => {
  312. if (res.code == 0) {
  313. var imgPaths = [];
  314. imgPaths.push(res.data.value)
  315. uni.previewImage({
  316. current: 0,
  317. urls: imgPaths, //图片路径是个数组,数组里面放图片的全路径
  318. longPressActions: { //长按保存图片到相册
  319. itemList: ['保存图片'],
  320. success: (data) => {
  321. uni.saveImageToPhotosAlbum({ //保存图片到相册
  322. filePath: res.data.value,
  323. success: function() {
  324. uni.showToast({
  325. icon: 'success',
  326. title: '保存成功'
  327. })
  328. },
  329. fail: (err) => {
  330. uni.showToast({
  331. icon: 'none',
  332. title: '保存失败,请重新尝试'
  333. })
  334. }
  335. });
  336. },
  337. fail: (err) => {
  338. console.log(err.errMsg);
  339. }
  340. }
  341. })
  342. }
  343. });
  344. },
  345. //跳转用户端
  346. gouser() {
  347. wx.navigateToMiniProgram({
  348. appId: 'wx36626f7398972421',
  349. path: '/pages/index/index',
  350. envVersion: 'release', // 打开正式版
  351. success(res) {
  352. // 打开成功
  353. },
  354. fail: function(err) {
  355. console.log(err);
  356. }
  357. })
  358. },
  359. getCount() {
  360. this.$Request.get("/app/artificer/selectArtificerIndex").then(res => {
  361. if (res.code == 0) {
  362. this.succeedRate = res.data.succeedRate;
  363. console.log(this.succeedRate)
  364. this.sumCount = res.data.sumCount;
  365. }
  366. })
  367. },
  368. goQian() {
  369. uni.navigateTo({
  370. url: '/my/wallet/index'
  371. })
  372. },
  373. bindFb() {
  374. let renzheng = uni.getStorageSync('renzheng')
  375. console.log(this.userId, renzheng)
  376. if (this.userId) {
  377. uni.navigateTo({
  378. url: '/my/publish/editor'
  379. })
  380. } else {
  381. uni.showModal({
  382. title: '提示',
  383. content: '您还未实名认证,请先认证',
  384. success: function(res) {
  385. if (res.confirm) {
  386. console.log('用户点击确定');
  387. uni.navigateTo({
  388. url: '/my/renzheng/index'
  389. })
  390. } else if (res.cancel) {
  391. console.log('用户点击取消');
  392. }
  393. }
  394. })
  395. }
  396. },
  397. goNav(e, name) {
  398. console.log(e)
  399. if (this.userId) {
  400. uni.navigateTo({
  401. url: e
  402. })
  403. } else {
  404. uni.showModal({
  405. title: '提示',
  406. content: '您还未登录,请先登录',
  407. success: function(res) {
  408. if (res.confirm) {
  409. console.log('用户点击确定');
  410. uni.navigateTo({
  411. url: '/pages/public/login'
  412. })
  413. } else if (res.cancel) {
  414. console.log('用户点击取消');
  415. }
  416. }
  417. })
  418. }
  419. },
  420. goLogin(e) {
  421. uni.navigateTo({
  422. url: e
  423. })
  424. },
  425. //我的收益
  426. getAmount() {
  427. this.$Request.get("/app/artificer/selectArtificerMoney").then(res => {
  428. if (res.code == 0) {
  429. this.money = res.data.money //累计余额
  430. this.dayMoney = res.data.dayMoney //今日收益
  431. this.monthMoney = res.data.monthMoney //本月预估收益
  432. this.cashMoney = res.data.cashMoney //本月预估提现
  433. }
  434. });
  435. },
  436. getUserInfo() {
  437. this.$Request.get("/app/user/selectUserById").then(res => {
  438. if (res.code == 0) {
  439. if(!res.data.wxOpenId){//授权微信
  440. let url = window.location.origin + '/my/wallet/test'
  441. 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`
  442. }
  443. this.userName = res.data.userName
  444. this.invitationCode = res.data.invitationCode
  445. this.avatar = res.data.avatar ? res.data.avatar : '../../static/logo.png'
  446. // this.isAuthentication = res.data.isAuthentication
  447. this.phone = res.data.phone;
  448. this.openId = res.data.openId;
  449. //保证金
  450. if (res.data.isCashDeposit == 1 || res.data.isCashDeposit == null) {
  451. this.isCashDeposit = 1
  452. uni.setStorageSync("isCashDeposit", this.isCashDeposit)
  453. } else if (res.data.isCashDeposit == 2) {
  454. this.isCashDeposit = 2
  455. uni.setStorageSync("isCashDeposit", this.isCashDeposit)
  456. } else if (res.data.isCashDeposit == 3) {
  457. this.isCashDeposit = 3
  458. uni.setStorageSync("isCashDeposit", this.isCashDeposit)
  459. }
  460. uni.setStorageSync('avatar', res.data.avatar)
  461. uni.setStorageSync('invitationCode', res.data.invitationCode)
  462. //实名认证
  463. if (res.data.isAuthentication == 0 || res.data.isAuthentication == null) {
  464. this.renzheng = 0
  465. uni.setStorageSync("renzheng", this.renzheng)
  466. } else if (res.data.isAuthentication == 1) {
  467. this.renzheng = 1
  468. uni.setStorageSync("renzheng", this.renzheng)
  469. } else if (res.data.isAuthentication == 2) {
  470. this.renzheng = 2
  471. uni.setStorageSync("renzheng", this.renzheng)
  472. } else if (res.data.isAuthentication == 3) {
  473. this.renzheng = 3
  474. uni.setStorageSync("renzheng", this.renzheng)
  475. }
  476. }
  477. });
  478. },
  479. //获取技师的信息
  480. getArtificer() {
  481. this.$Request.getT("/app/artificer/selectArtificer").then(res => {
  482. if (res.code == 0) {
  483. this.creditScore = res.data.creditScore ? res.data.creditScore : 0;
  484. this.ordersScore = res.data.ordersScore ? res.data.ordersScore : 0;
  485. // uni.setStorageSync("status", res.data.status)
  486. uni.setStorageSync('artificerId', res.data.artificerId)
  487. }
  488. });
  489. },
  490. //会员
  491. getIsVip() {
  492. this.$Request.get("/app/UserVip/isUserVip").then(res => {
  493. if (res.code == 0) {
  494. this.isVip = res.data
  495. uni.setStorageSync('isVIP', res.data)
  496. }
  497. });
  498. },
  499. //退出登录
  500. TuiLogin() {
  501. let that = this
  502. if (that.userId) {
  503. uni.showModal({
  504. title: '提示',
  505. content: '确定退出登录吗?',
  506. success: function(res) {
  507. if (res.confirm) {
  508. console.log('用户点击确定');
  509. uni.removeStorageSync('userName')
  510. uni.removeStorageSync('avatar')
  511. uni.removeStorageSync('userId')
  512. uni.removeStorageSync('token')
  513. uni.removeStorageSync('phone')
  514. uni.removeStorageSync('zhiFuBaoName')
  515. uni.removeStorageSync('zhiFuBao')
  516. uni.removeStorageSync('invitationCode')
  517. uni.removeStorageSync('unionId')
  518. uni.removeStorageSync('openId')
  519. uni.removeStorageSync('isVIP')
  520. uni.showToast({
  521. title: '退出成功!',
  522. icon: 'none'
  523. })
  524. that.isLogin = true
  525. that.userName = '匿名'
  526. that.money = 0
  527. that.dayMoney = 0
  528. that.monthMoney = 0
  529. that.cashMoney = 0
  530. that.avatar = '../../static/logo.png'
  531. that.userId = uni.getStorageSync('userId')
  532. } else if (res.cancel) {
  533. console.log('用户点击取消');
  534. }
  535. }
  536. })
  537. } else {
  538. uni.showModal({
  539. title: '提示',
  540. content: '您还未登录,请先登录',
  541. success: function(res) {
  542. if (res.confirm) {
  543. console.log('用户点击确定');
  544. uni.navigateTo({
  545. url: '/pages/public/login'
  546. })
  547. } else if (res.cancel) {
  548. console.log('用户点击取消');
  549. }
  550. }
  551. })
  552. }
  553. },
  554. }
  555. }
  556. </script>
  557. <style lang="scss" scoped>
  558. .my-page {
  559. background: linear-gradient( 180deg, #C2F0EE 0%, #FAF7E6 63%, #F5F5F5 2006rpx);
  560. padding: 20rpx 32rpx;
  561. min-height: calc(100vh - 50rpx) ;
  562. .headtop{
  563. position: relative;
  564. .icon-box{
  565. position: absolute;
  566. right: -32rpx;
  567. top: 40rpx;
  568. display: flex;
  569. justify-content: flex-end;
  570. width: 208rpx;
  571. height: 64rpx;
  572. line-height: 64rpx;
  573. background: #FFFFFF;
  574. box-sizing: border-box;
  575. text-align: right;
  576. padding-right: 20rpx;
  577. border-radius: 32rpx 0rpx 0rpx 32rpx;
  578. .icon{
  579. width: 72rpx;
  580. height: 72rpx;
  581. position: absolute;
  582. left: -16rpx;
  583. bottom: 0;
  584. }
  585. .text{
  586. font-size: 28rpx;
  587. color: #25BCDE;
  588. }
  589. }
  590. }
  591. .moneybox {
  592. width: 686rpx;
  593. // height: 288rpx;
  594. background: linear-gradient( 180deg, #71EFAB 0%, #58E79A 49%, #3FDE88 100%);
  595. border-radius: 32rpx;
  596. box-sizing: border-box;
  597. padding-top: 28rpx;
  598. margin-top: 28rpx;
  599. .box-content{
  600. padding: 0 28rpx;
  601. }
  602. .money-item{
  603. flex: 1;
  604. text-align: center;
  605. .label{
  606. font-size: 24rpx;
  607. color: rgba(255,255,255,0.9);
  608. }
  609. .money_text {
  610. font-weight: 800;
  611. font-size: 40rpx;
  612. color: #FFFFFF;
  613. margin-top: 12rpx;
  614. }
  615. .desc-btn{
  616. font-size: 22rpx;
  617. color: #007449;
  618. margin-top: 6rpx;
  619. }
  620. }
  621. }
  622. .number-box{
  623. display: flex;
  624. width: 686rpx;
  625. height: 158rpx;
  626. background: linear-gradient( 180deg, #71EFAB 0%, #58E79A 49%, #FFF 100%);
  627. box-shadow: inset 0rpx 6rpx 8rpx 2rpx rgba(255,255,255,0.16);
  628. border-radius: 32rpx 32rpx 32rpx 32rpx;
  629. box-sizing: border-box;
  630. padding: 30rpx 0;
  631. margin-top: 30rpx;
  632. .number-item{
  633. flex: 1;
  634. text-align: center;
  635. .number{
  636. font-weight: bold;
  637. font-size: 36rpx;
  638. color: #222222;
  639. }
  640. .label{
  641. font-size: 24rpx;
  642. color: #222222;
  643. margin-top: 16rpx;
  644. }
  645. }
  646. }
  647. .task-box{
  648. background: linear-gradient( 180deg, #BAFFD9 0%, #FFFFFF 29%, #FFFFFF 100%);
  649. border-radius: 32rpx 32rpx 32rpx 32rpx;
  650. padding: 28rpx;
  651. position: relative;
  652. margin-top: 20rpx;
  653. .icon{
  654. width: 142rpx;
  655. height: 32rpx;
  656. }
  657. .logo{
  658. width: 376rpx;
  659. height: 64rpx;
  660. position: absolute;
  661. right: 0;
  662. top: 0;
  663. }
  664. .task-list{
  665. .btn {
  666. width: 156rpx;
  667. height: 60rpx;
  668. line-height: 60rpx;
  669. text-align: center;
  670. background: #1EDA94;
  671. border-radius: 60rpx 60rpx 60rpx 60rpx;
  672. font-weight: bold;
  673. font-size: 28rpx;
  674. color: #FFFFFF;
  675. }
  676. .btn1 {
  677. width: 156rpx;
  678. height: 60rpx;
  679. line-height: 60rpx;
  680. text-align: center;
  681. background: rgba(30,218,148,0.3);
  682. border-radius: 60rpx 60rpx 60rpx 60rpx;
  683. font-weight: bold;
  684. font-size: 28rpx;
  685. color: #FFFFFF;
  686. }
  687. .xinshou {
  688. width: 128rpx;
  689. height: 40rpx;
  690. line-height: 40rpx;
  691. text-align: center;
  692. background: #FFC934;
  693. border-radius: 8rpx 8rpx 8rpx 8rpx;
  694. font-size: 24rpx;
  695. color: #FFFFFF;
  696. }
  697. .title {
  698. font-weight: bold;
  699. font-size: 28rpx;
  700. color: #222222;
  701. margin-left: 16rpx;
  702. }
  703. }
  704. }
  705. }
  706. .list-content{
  707. background: #FFFFFF;
  708. border-radius: 32rpx 32rpx 32rpx 32rpx;
  709. padding: 28rpx 0;
  710. margin-top: 20rpx;
  711. .sub-title{
  712. margin-left: 28rpx;
  713. font-weight: bold;
  714. font-size: 32rpx;
  715. color: #222222;
  716. margin-bottom: 28rpx;
  717. }
  718. .box-list{
  719. display: flex;
  720. flex-wrap: wrap;
  721. .box {
  722. width: 25%;
  723. text-align: center;
  724. margin-bottom: 28rpx;
  725. .box_text {
  726. font-size: 24rpx;
  727. font-family: PingFang SC;
  728. font-weight: 500;
  729. color: #090909;
  730. margin-top: 20rpx;
  731. }
  732. image {
  733. width: 48rpx;
  734. height: 48rpx;
  735. }
  736. }
  737. }
  738. }
  739. </style>