my.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041
  1. <template>
  2. <view>
  3. <!-- 公共组件-每个页面必须引入 -->
  4. <public-module></public-module>
  5. <!-- 头部信息Start -->
  6. <view class="headers " :style="headerStyle">
  7. <view class="dis a-c j-c">
  8. <text>我的</text>
  9. <view class="headers-right">
  10. <view style="margin-left:15px">
  11. <image @tap="tool" src="/static/image/my/Frame.png" mode=""></image>
  12. <text>设置</text>
  13. </view>
  14. <!-- <view style="margin-left:15px">
  15. <image @tap="logout" src="/static/image/my/tichu.png" mode="">
  16. </image>
  17. <text>退出</text>
  18. </view> -->
  19. </view>
  20. </view>
  21. </view>
  22. <image :src="backImage" mode="" style="width: 100%;height: 738rpx;position: absolute;"></image>
  23. <view class="Personnel">
  24. <view class="Personnel-title" @click="promotionCode">
  25. <image src="/static/icon/code.png" mode="">
  26. </image>
  27. 推广码
  28. </view>
  29. <view class="dis a-c Personnel-info">
  30. <view class="Personnel-img" @click="updateAvatar">
  31. <image :src="avatar" class="avatar" mode=""></image>
  32. <image src="/static/image/my/updateAvatar.png" mode=""></image>
  33. </view>
  34. <view class="full-name">
  35. <text>{{ userInfo.sysUser.userName }}</text>
  36. <!-- <text >司龄 1年</text> -->
  37. </view>
  38. <text style="line-height: 17px;">{{ userInfo.sysUser.deptName }}</text>
  39. <view class=" dis j-s digit">
  40. <view v-if="userInfo.sysUser.weChat" class=" dis" style="padding-left: 20%;">
  41. <image src="/static/icon/weixin.png" mode=""></image>
  42. <text>{{ userInfo.sysUser.weChat }}</text>
  43. </view>
  44. <view class=" dis a-c">
  45. <image src="/static/icon/dianhua.png" mode=""></image>
  46. <text>{{ userInfo.sysUser.mobile }}</text>
  47. </view>
  48. </view>
  49. </view>
  50. <!-- 权益 -->
  51. <view class="benefits mt-3 dis a-c j-s">
  52. <view class="dis a-c ">
  53. <image :src="backLogo" mode=""></image>
  54. <view class="dis f-c title ml-2">
  55. <text>{{gradeText}}权益</text>
  56. <text>多项权益已解锁</text>
  57. </view>
  58. </view>
  59. <view class="tag" @click="benefitsNavigate">查看权益</view>
  60. </view>
  61. <view class="withdrawal-box">
  62. <view class="dis a-c j-c withdrawal-title">
  63. <text>可提现总金额</text>
  64. <text @tap="accountTool('/pages/wallet/bankCard')">银行卡</text>
  65. </view>
  66. <view class="dis a-s j-c withdrawal-sum">
  67. <text>¥</text>
  68. <text>{{ getApplication.cashFee || 0 }} </text>
  69. </view>
  70. <view class="withdrawal-income dis">
  71. <view style="border-right: 1px solid #C5E7FF;">
  72. <text @click="incomeClick">佣金总收入金额
  73. <image style="display: inline-block; width: 9px;height:9px;vertical-align: -1px;"
  74. src="/static/icon/right.png" mode=""></image>
  75. </text>
  76. <text>¥{{ getApplication.extractFee || 0 }} </text>
  77. </view>
  78. <view>
  79. <text>已经提现金额</text>
  80. <text>¥{{ getApplication.historyFee || 0 }}</text>
  81. </view>
  82. </view>
  83. <view class="withdrawal-fun" @click="toWithdraw">提现</view>
  84. </view>
  85. </view>
  86. <view class=" dis a-c j-s" style="margin: 0px 16px;">
  87. <view class="withdrawal-record">
  88. <i></i>
  89. <text>提现记录</text>
  90. </view>
  91. <view class="search" @click="searchPopup">
  92. <text>自定义时间<i></i></text>
  93. </view>
  94. </view>
  95. <view class="withdrawal-flow">
  96. <!-- <view style="border-bottom: 1px solid #EEEEEE;padding: 15px 0;
  97. margin: 0 15px;" v-for="val in withdrawalData" :key="val"> -->
  98. <view class="withdrawal-card" v-for="(val,index) in withdrawalData" :key="index"
  99. @click="viewWithdrawal(val)">
  100. <view class="dis j-s">
  101. <view>
  102. <view style="line-height: 18px;">提现</view>
  103. <text style="font-size: 10px;color: #999999;">{{ val.createTime }}</text>
  104. </view>
  105. <view class="dis a-c">
  106. <view style="text-align: right;">
  107. <view style="line-height: 18px;">-{{ val.cashFee }}</view>
  108. <text class="withdrawal-status" v-if="val.status == '0'"
  109. style="background: #EAF0FF;color: #2D6DFF;">提现中</text>
  110. <text class="withdrawal-status" v-if="val.status == '1'"
  111. style="background: #E3FBE7;color: #18B63B;">已提现</text>
  112. <text class="withdrawal-status" v-if="val.status == '2'"
  113. style="background: #FFECEC ;color: #F74141;">提现失败</text>
  114. </view>
  115. <image src="/static/icon/you.png" mode=""></image>
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. <my-date-picker ref="datePicker" @confirmPickDate="confirmPickDate" />
  121. <!-- <view style="width: 323px;" id="gxxImg">
  122. <canvas canvas-id="myCanvas" style="width: 300px; height: 200px;"></canvas>
  123. <view class="ShowModalCode-style">
  124. <text>推广码</text>
  125. <text @tap="ShowModalCode=false" >×</text>
  126. </view>
  127. <view class="ShowModalCode-con">
  128. <text>请扫码下载掌柜科技APP</text>
  129. <image :src="workImg" mode="widthFix" lazy-load style="width: 150px;"></image>
  130. </view>
  131. </view> -->
  132. <u-popup v-model="ShowModalCode" mode="center" border-radius="15">
  133. <view style="width: 323px;" id="pdfContentsDiv">
  134. <view class="ShowModalCode-style">
  135. <text>推广码</text>
  136. <text @tap="ShowModalCode = false">×</text>
  137. </view>
  138. <view class="ShowModalCode-con">
  139. <text v-if="type==2">请扫码下载掌柜科技APP</text>
  140. <text v-if="type==1">请扫码下载掌柜合伙人APP</text>
  141. <image :src="workImg" mode="widthFix" lazy-load style="width: 150px;"></image>
  142. </view>
  143. <view class="dis" style="justify-content: space-around;padding:0 60px 20px 60px;">
  144. <view class="share-style" @click="sendPayCode">
  145. <image src="/static/image/my/weixin.png" mode="">
  146. <text>微信好友</text>
  147. </view>
  148. <view class="share-style" @tap="saveImage()">
  149. <image src="/static/image/my/baocun.png" mode="">
  150. <text>保存图片</text>
  151. </view>
  152. <view class="share-style" @click="duplicate">
  153. <image src="/static/image/my/fenxiang.png" mode="">
  154. <text>链接分享</text>
  155. </view>
  156. </view>
  157. </view>
  158. </u-popup>
  159. <u-action-sheet :list="Avatarlist" v-model="updateAvatarShow" border-radius="20"></u-action-sheet>
  160. </view>
  161. </template>
  162. <script>
  163. import myDatePicker from '../components/date-picker.vue';
  164. import QR from "@/common/wxqrcode.js"
  165. import html2canvas from 'html2canvas'
  166. import store from '@/store';
  167. import {
  168. mapState,
  169. mapMutations
  170. } from "vuex"
  171. export default {
  172. components: {
  173. myDatePicker
  174. },
  175. data() {
  176. return {
  177. updateAvatarShow: false, //头像工具
  178. Avatarlist: [{
  179. text: '点赞',
  180. color: 'blue',
  181. fontSize: 28,
  182. subText: '感谢您的点赞'
  183. }, {
  184. text: '分享'
  185. }, ],
  186. supportStaffUrl: '',
  187. ShowModalCode: false,
  188. info: ["", ""],
  189. current: 0,
  190. mode: 'default',
  191. headerStyle: {
  192. backgroundColor: '',
  193. backgroundImage: '',
  194. backgroundSize: '',
  195. backgroundPosition: '',
  196. boxShadow: ''
  197. // 其他样式属性...
  198. },
  199. showBackground: false,
  200. prevScrollTop: 0,
  201. avatar: "/static/image/my/wuxingb.png",
  202. getApplication: {},
  203. withdrawalData: [],
  204. backImage: '',
  205. backLogo: '',
  206. workImg: '',
  207. pathUrl: '',
  208. type: uni.getStorageSync('type'),
  209. //页面角色背景图匹配列表
  210. backImageList: [{
  211. grade: 1,
  212. url: "/static/image/my/grade1.png"
  213. },
  214. {
  215. grade: 2,
  216. url: "/static/image/my/grade2.png"
  217. },
  218. {
  219. grade: 3,
  220. url: "/static/image/my/grade3.png"
  221. },
  222. {
  223. grade: 4,
  224. url: "/static/image/my/grade4.png"
  225. }
  226. ],
  227. //角色权益等级匹配列表
  228. backLogoList: [{
  229. grade: 1,
  230. url: "/static/image/my/benefits/active1.png"
  231. },
  232. {
  233. grade: 2,
  234. url: "/static/image/my/benefits/active2.png"
  235. },
  236. {
  237. grade: 3,
  238. url: "/static/image/my/benefits/active3.png"
  239. },
  240. {
  241. grade: 4,
  242. url: "/static/image/my/benefits/active4.png"
  243. }
  244. ],
  245. }
  246. },
  247. computed: {
  248. ...mapState(['userInfo', "userCheckInfo", ]),
  249. gradeText() {
  250. const gradeMap = {
  251. 1: '创始人',
  252. 2: '管理人',
  253. 3: '合伙人',
  254. 4: '工作室'
  255. }
  256. return gradeMap[this.userInfo.sysUser.grade] || ''
  257. }
  258. },
  259. async onShow() {
  260. // level:0 工作室
  261. this.backImage = this.backImageList.find(val => val.grade == this.userInfo.sysUser.grade).url;
  262. this.backLogo = this.backLogoList.find(val => val.grade == this.userInfo.sysUser.grade).url;
  263. let res = await this.$http.get('/APPPartner/getFee');
  264. if (res.code == 200) {
  265. this.getApplication = res.data || [];
  266. }
  267. if (this.userInfo.sysUser.sex == 'F') {
  268. this.avatar = "/static/image/my/nv.png"
  269. }
  270. if (this.userInfo.sysUser.sex == 'M') {
  271. this.avatar = "/static/image/my/nan.png"
  272. }
  273. this.WithdrawalqueryData()
  274. // if (this.userInfo.sysUser.headSculpture) {
  275. // this.avatar = this.$base.baseUrl + this.userInfo.sysUser.headSculpture;
  276. // } else {
  277. // this.avatar = "/static/image/my/avatar1.png"
  278. // }
  279. },
  280. onPageScroll(e) {
  281. this.handleScroll(e);
  282. },
  283. mounted() {
  284. this.getWechatData()
  285. uni.pageScrollTo({
  286. scrollTop: 0,
  287. duration: 0
  288. });
  289. uni.$on('scroll', this.handleScroll);
  290. },
  291. destroyed() {
  292. uni.$off('scroll', this.handleScroll);
  293. },
  294. methods: {
  295. ...mapMutations(['emptyUserInfo']),
  296. // 权益跳转
  297. benefitsNavigate() {
  298. uni.navigateTo({
  299. url: "/pages/my/benefits?grade=" + this.userInfo.sysUser.grade,
  300. })
  301. },
  302. //修改头像
  303. async updateAvatar() {
  304. let [chooseImageErr, chooseImageRes] = await uni.chooseImage({
  305. count: 1,
  306. sizeType: ['compressed']
  307. });
  308. if (chooseImageRes) {
  309. console.log(chooseImageRes);
  310. this.chooseAvatar(chooseImageRes.tempFilePaths[0]);
  311. // uni.uploadFile({
  312. // url: this.$base.baseUrl + '/ins/taskImage/uploadFile',
  313. // filePath: chooseImageRes.tempFilePaths[0],
  314. // name: "multipartFile",
  315. // formData: {
  316. // 'type': 'image',
  317. // },
  318. // header: {
  319. // Authorization: store.state.token,
  320. // },
  321. // success: (imgRes) => {
  322. // let data = JSON.parse(imgRes.data);
  323. // if (data.code == '200') {
  324. // }
  325. // }
  326. // });
  327. } else {}
  328. },
  329. chooseAvatar(src) {
  330. uni.navigateTo({
  331. url: '/pages/my/avatarCropper?src=' + src,
  332. })
  333. },
  334. searchPopup() {
  335. this.$refs.datePicker.open()
  336. },
  337. sendPayCode() {
  338. if (this.pathUrl) {
  339. uni.share({
  340. provider: "weixin",
  341. scene: "WXSceneSession",
  342. type: 2,
  343. imageUrl: this.pathUrl
  344. })
  345. }
  346. },
  347. showLoading() {
  348. uni.showLoading({
  349. title: '正在生成图片'
  350. });
  351. },
  352. hideLoading() {
  353. uni.hideLoading();
  354. this.loading = false;
  355. },
  356. //页面截图转路径
  357. receiveRenderData(val) {
  358. uni.downloadFile({
  359. url: val,
  360. success(res) {
  361. // 这时会产生一个临时路径,在应用本次启动期间可以正常使用。
  362. if (res.statusCode == 200) {
  363. // 需要将图片保存到相册
  364. uni.saveImageToPhotosAlbum({
  365. filePath: res.tempFilePath, // 图片文件路径,可以是临时文件路径也可以是永久文件路径,不支持网络图片路径
  366. success(res) {
  367. uni.showToast({
  368. title: '保存成功',
  369. icon: 'none'
  370. })
  371. // 如果保存成功需要打开查看,请使用以下方法,同时也支持打开文件
  372. uni.openDocument({
  373. filePath: res.savedFilePath,
  374. success(res) {},
  375. fail(err) {
  376. uni.showToast({
  377. title: '手机不支持该文件类型,请安装wps或office应用',
  378. icon: 'none'
  379. })
  380. }
  381. })
  382. },
  383. fail(err) {
  384. uni.showToast({
  385. title: '图片保存失败',
  386. icon: 'none'
  387. })
  388. }
  389. })
  390. } else {
  391. uni.showToast({
  392. title: '下载失败,请稍后再试',
  393. icon: 'none'
  394. })
  395. }
  396. },
  397. fail(err) {
  398. uni.showToast({
  399. title: '下载失败,请稍后再试',
  400. icon: 'none'
  401. })
  402. }
  403. })
  404. },
  405. saveImage() {
  406. setTimeout(() => {
  407. this.$ownerInstance.callMethod('showLoading')
  408. const dom = document.getElementById('pdfContentsDiv') // 需要生成图片内容的 dom 节点
  409. html2canvas(dom, {
  410. width: dom.clientWidth, //dom 原始宽度
  411. height: dom.clientHeight,
  412. scrollY: 0, // html2canvas默认绘制视图内的页面,需要把scrollY,scrollX设置为0
  413. scrollX: 0,
  414. useCORS: true, //支持跨域
  415. // allowTaint: false,
  416. scale: 2, // 设置生成图片的像素比例,默认是1,如果生成的图片模糊的话可以开启该配置项
  417. }).then((canvas) => {
  418. // 生成成功
  419. this.$ownerInstance.callMethod('hideLoading')
  420. this.$ownerInstance.callMethod('receiveRenderData', canvas.toDataURL('image/png'))
  421. console.log()
  422. }).catch(err => {
  423. // 生成失败 弹出提示弹窗
  424. this.$ownerInstance.callMethod('_errAlert', `【生成图片失败,请重试】${err}`)
  425. })
  426. }, 300)
  427. },
  428. // 链接分享
  429. duplicate() {
  430. uni.setClipboardData({
  431. data: this.pathUrl,
  432. success: function() {
  433. console.log('复制成功');
  434. uni.showToast({
  435. title: '链接已复制成功',
  436. icon: 'success',
  437. duration: 2000
  438. });
  439. },
  440. fail: function() {
  441. console.log('复制失败');
  442. // 可以添加错误处理或用户友好的提示
  443. }
  444. });
  445. },
  446. async promotionCode() {
  447. this.ShowModalCode = true
  448. let pageRequest = {
  449. pageNum: 1,
  450. pageSize: 50,
  451. columnFilters: {
  452. apptype: {
  453. name: "apptype",
  454. value: "apk",
  455. },
  456. appid: {
  457. name: "appid",
  458. value: this.type == 2 ? "__UNI__D4FE29A" : '__UNI__3FA05C4',
  459. }
  460. }
  461. }
  462. let res = await this.$http.post('/sysVersion/findPage', pageRequest);
  463. if (res.code == 200) {
  464. this.ShowModalCode = true
  465. this.pathUrl = res.data.content[0].path
  466. this.workImg = QR.createQrCodeImg(res.data.content[0].path, {
  467. size: parseInt(200) //二维码大小
  468. })
  469. }
  470. },
  471. confirmPickDate(dateStr, dateStr1) {
  472. console.log(dateStr, dateStr1);
  473. if (dateStr) {
  474. dateStr += ' 00:00:01'
  475. }
  476. if (dateStr1) {
  477. dateStr1 += ' 23:59:59'
  478. }
  479. this.WithdrawalqueryData(dateStr, dateStr1)
  480. },
  481. viewWithdrawal(item) {
  482. uni.navigateTo({
  483. url: "/pages/my/withdrawalDetail?key=" + encodeURIComponent(JSON.stringify(item))
  484. })
  485. },
  486. async toWithdraw() {
  487. let res = await this.$http.post('/userBank/getUserBankList', {
  488. auditStatus: "1",
  489. delFlag: '0'
  490. });
  491. if (res.data.length) {
  492. this.navigate({
  493. url: `/pages/wallet/withdraw?amount=${this.getApplication.cashFee}`,
  494. }, "navigateTo", true)
  495. } else {
  496. uni.showToast({
  497. title: '暂无审核通过的银行卡,不可提现',
  498. duration: 3000,
  499. icon: "none"
  500. });
  501. }
  502. },
  503. async accountTool(path) {
  504. if (path) {
  505. if (path == '/pages/wallet/bankCard') {
  506. let res = await this.$http.post('/userBank/getUserBankList', {
  507. auditStatus: '',
  508. });
  509. if (!res.data.length) {
  510. this.navigate({
  511. url: '/pages/wallet/bindBank',
  512. complete: () => {
  513. setTimeout(() => {
  514. uni.showToast({
  515. title: '请先绑定银行卡',
  516. duration: 3000,
  517. icon: "none"
  518. });
  519. }, 500);
  520. }
  521. }, "navigateTo", true)
  522. } else {
  523. this.navigate({
  524. url: path,
  525. }, "navigateTo", true)
  526. }
  527. } else {
  528. this.navigate({
  529. url: path,
  530. }, "navigateTo", true)
  531. }
  532. } else {
  533. uni.showToast({
  534. title: '功能待开发...',
  535. icon: "none"
  536. });
  537. }
  538. },
  539. async WithdrawalqueryData(beginTime, endTime) {
  540. let params = {
  541. "endTime": endTime || '',
  542. "beginTime": beginTime || '',
  543. }
  544. let res = await this.$http.post('/sysAgencyFeeApproval/queryOperateInfo', params);
  545. if (res.code == '200') {
  546. this.withdrawalData = res.data
  547. }
  548. },
  549. handleScroll(e) {
  550. const scrollTop = e.scrollTop;
  551. if (scrollTop > this.prevScrollTop) {
  552. // 向下滚动
  553. this.showBackground = true; // 显示背景图
  554. } else if (scrollTop < 50) {
  555. // 在顶部附近,隐藏背景图
  556. this.showBackground = false;
  557. } else {
  558. // 向上滚动
  559. this.showBackground = true; // 显示背景图
  560. }
  561. this.headerStyle.backgroundColor = this.showBackground ? '#fff' : 'transparent';
  562. this.headerStyle.backgroundImage = this.showBackground ? 'url("/static/image/my/beijing.png")' : '';
  563. this.headerStyle.backgroundSize = this.showBackground ? 'cover' : '';
  564. // this.headerStyle.backgroundPosition = this.showBackground ? 'center' : '';
  565. this.prevScrollTop = scrollTop;
  566. },
  567. tool() {
  568. uni.navigateTo({
  569. url: "/pages/set/set"
  570. })
  571. },
  572. logout() {
  573. this.emptyUserInfo();
  574. uni.clearStorage({
  575. success: function() {}
  576. });
  577. setTimeout(() => {
  578. uni.reLaunch({
  579. url: "/pages/login/login"
  580. })
  581. return true;
  582. }, 500);
  583. },
  584. incomeClick() {
  585. uni.navigateTo({
  586. url: "/pages/my/commission"
  587. })
  588. },
  589. // 去账单明细
  590. toBillDetails(type) {
  591. this.navigate({
  592. url: `/pages/wallet/billDetails${type}`,
  593. }, "navigateTo", true)
  594. },
  595. // 去账单明细
  596. toWallet(type) {
  597. this.navigate({
  598. url: "/pages/wallet/wallet"
  599. }, "navigateTo", true)
  600. },
  601. //获取企业微信客服地址,是否展示
  602. getWechatData() {
  603. this.$http.get('/sys/qy/wechat/find/picture').then(res => {
  604. this.supportStaffUrl = res.data.supportStaffUrl
  605. })
  606. },
  607. //点击跳转企业微信客服
  608. weChatService() {
  609. uni.share({
  610. provider: "weixin",
  611. openCustomerServiceChat: true,
  612. customerUrl: this.supportStaffUrl, //企业微信地址
  613. corpid: 'wwfe67d19509d43ec5', //企业id
  614. success: (res) => {},
  615. fail: (err) => {}
  616. });
  617. },
  618. }
  619. }
  620. </script>
  621. <style lang="scss" scoped>
  622. .headers {
  623. position: fixed;
  624. top: 0;
  625. left: 0;
  626. height: auto;
  627. width: 100%;
  628. z-index: 999999;
  629. padding: 16px;
  630. padding-top: 40px;
  631. text {
  632. font-size: 18px;
  633. font-weight: 700;
  634. color: #333333;
  635. }
  636. .headers-right {
  637. // width: 100%;
  638. // height: 100%;
  639. // position: relative;
  640. position: absolute;
  641. right: 15px;
  642. // width: 70px;
  643. display: flex;
  644. justify-content: space-between;
  645. view {
  646. line-height: 8px;
  647. }
  648. text {
  649. font-size: 9px;
  650. color: #666666;
  651. }
  652. image {
  653. // position: absolute;
  654. // right: 0;
  655. width: 16px;
  656. height: 16px;
  657. }
  658. }
  659. }
  660. .Personnel {
  661. height: auto;
  662. width: 100%;
  663. background: transparent;
  664. background-size: 100% 100%;
  665. padding: 90px 30rpx 20rpx 30rpx;
  666. position: relative;
  667. }
  668. .Personnel-title {
  669. position: absolute;
  670. right: 0;
  671. top: 135px;
  672. background: linear-gradient(132deg, #2DD9FF 0%, #2D6DFF 100%);
  673. border-radius: 16px 0px 0px 16px;
  674. color: #fff;
  675. padding: 2px 6px 2px 10px;
  676. image {
  677. display: inline-block;
  678. width: 15px;
  679. height: 15px;
  680. vertical-align: -2px;
  681. margin-right: 3px;
  682. }
  683. }
  684. .Personnel-img {
  685. position: relative;
  686. .avatar {
  687. width: 60px;
  688. height: 60px;
  689. border-radius: 50%;
  690. }
  691. image:last-child {
  692. display: inline-block;
  693. width: 40rpx;
  694. height: 40rpx;
  695. position: absolute;
  696. bottom: 0;
  697. right: 0;
  698. }
  699. }
  700. /* 我的钱包Start */
  701. .my-wallet {
  702. .wallet-body {
  703. width: 100%;
  704. height: auto;
  705. padding: 8px 16px;
  706. background: #FFFFFF;
  707. box-shadow: 0px 4px 10px 0px #DAE3F4;
  708. border-radius: 6px;
  709. margin-top: 10px;
  710. .route {
  711. text {
  712. font-size: 12px;
  713. color: #333;
  714. font-weight: 400;
  715. }
  716. image {
  717. width: 45px;
  718. height: 40px;
  719. }
  720. }
  721. .money {
  722. padding: 8px 0;
  723. background-color: #F9F8FD;
  724. border-radius: 4px;
  725. margin-top: 8px;
  726. text {
  727. font-size: 12px;
  728. color: #333;
  729. font-weight: 400;
  730. }
  731. }
  732. }
  733. }
  734. .Personnel-info {
  735. flex-direction: column;
  736. font-size: 14px;
  737. color: #152F63;
  738. }
  739. .full-name {
  740. margin-top: 8px;
  741. // margin-left: 12%;
  742. color: #152F63;
  743. text:first-child {
  744. font-weight: 700;
  745. font-size: 18px;
  746. line-height: 22px;
  747. }
  748. // text:last-child{
  749. // margin-left: 10px;
  750. // font-weight: 400;
  751. // font-size: 10px;
  752. // line-height: 12px;
  753. // }
  754. }
  755. .digit {
  756. margin-top: 8px;
  757. view {
  758. // width: 110px;
  759. }
  760. image {
  761. width: 20px;
  762. height: 20px;
  763. display: inline-block;
  764. }
  765. }
  766. .withdrawal-box {
  767. margin-top: 13px;
  768. background: #FFFFFF;
  769. border-radius: 5px 5px 5px 5px;
  770. padding: 18px 16px;
  771. .withdrawal-title {
  772. width: 100%;
  773. height: 100%;
  774. position: relative;
  775. text:first-child {
  776. font-weight: 400;
  777. font-size: 12px;
  778. color: #999999;
  779. }
  780. text:last-child {
  781. position: absolute;
  782. right: 0;
  783. font-size: 10px;
  784. color: #2D6DFF;
  785. line-height: 12px;
  786. }
  787. }
  788. .withdrawal-sum {
  789. color: #333333;
  790. font-weight: bold;
  791. line-height: 32px;
  792. text:first-child {
  793. font-size: 17px;
  794. line-height: 38px;
  795. }
  796. text:last-child {
  797. font-size: 26px;
  798. }
  799. }
  800. .withdrawal-income {
  801. margin: 10px 0;
  802. background: rgba(240, 248, 255, 0.5);
  803. border-radius: 2px 2px 2px 2px;
  804. padding: 10px;
  805. view {
  806. width: 50%;
  807. text-align: center;
  808. text:first-child {
  809. font-weight: 400;
  810. font-size: 10px;
  811. color: #666666;
  812. display: block;
  813. }
  814. text:last-child {
  815. margin-top: 3px;
  816. font-weight: 700;
  817. font-size: 17px;
  818. color: #333333;
  819. line-height: 20px;
  820. display: block;
  821. }
  822. }
  823. }
  824. .withdrawal-fun {
  825. background: linear-gradient(132deg, #2DD9FF 0%, #2D6DFF 100%);
  826. border-radius: 5px 5px 5px 5px;
  827. color: #fff;
  828. font-size: 16px;
  829. text-align: center;
  830. line-height: 42px;
  831. }
  832. }
  833. .withdrawal-record {
  834. font-weight: 700;
  835. font-size: 16px;
  836. color: #333333;
  837. i {
  838. display: inline-block;
  839. margin-right: 5px;
  840. width: 2px;
  841. height: 20px;
  842. background: linear-gradient(132deg, #2DD9FF 0%, #2D6DFF 100%);
  843. }
  844. }
  845. .withdrawal-flow {
  846. margin: 8px 16px;
  847. overflow: hidden;
  848. background: #FFFFFF;
  849. border-radius: 5px 5px 5px 5px;
  850. font-size: 16px;
  851. color: #333333;
  852. .withdrawal-card {
  853. border-bottom: 1px solid #EEEEEE;
  854. padding: 15px 0;
  855. margin: 0 15px;
  856. image {
  857. display: inline-block;
  858. width: 11px;
  859. height: 11px;
  860. margin-left: 5px;
  861. }
  862. .withdrawal-status {
  863. padding: 2px 5px;
  864. font-size: 10px;
  865. border-radius: 1px 1px 1px 1px;
  866. }
  867. }
  868. }
  869. .search {
  870. text {
  871. font-size: 14px;
  872. color: #666666;
  873. }
  874. i {
  875. margin-left: 2px;
  876. display: inline-block;
  877. width: 0;
  878. height: 0;
  879. border: 4px solid;
  880. border-color: #666666;
  881. border-bottom: 4px solid transparent;
  882. border-right: 4px solid transparent;
  883. border-left: 4px solid transparent;
  884. }
  885. }
  886. .ShowModalCode-style {
  887. // display: block;
  888. font-weight: 600;
  889. font-size: 16px;
  890. color: #333333;
  891. border-bottom: 1px solid #EEEEEE;
  892. padding: 15px;
  893. text-align: center;
  894. position: relative;
  895. text:last-child {
  896. position: absolute;
  897. right: 20px;
  898. color: #999999;
  899. font-size: 24px;
  900. line-height: 26px;
  901. }
  902. }
  903. .ShowModalCode-con {
  904. padding: 20px;
  905. text-align: center;
  906. font-size: 16px;
  907. color: #333333;
  908. image {
  909. margin: 0 auto;
  910. margin-top: 15px;
  911. }
  912. }
  913. .share-style {
  914. image {
  915. width: 45px;
  916. height: 45px
  917. }
  918. text {
  919. font-size: 12px;
  920. }
  921. }
  922. // 权益
  923. .benefits {
  924. height: 122rpx;
  925. background: #FFFFFF;
  926. border-radius: 10rpx 10rpx 10rpx 10rpx;
  927. background-image: url("/static/image/my/benefits.png");
  928. background-size: 100% 100%;
  929. padding: 20rpx 30rpx;
  930. box-sizing: border-box;
  931. image {
  932. width: 72rpx;
  933. height: 82rpx;
  934. }
  935. .title {
  936. text:first-child {
  937. font-weight: bold;
  938. font-size: 30rpx;
  939. color: #333;
  940. }
  941. text:last-child {
  942. font-size: 24rpx;
  943. color: #999;
  944. }
  945. }
  946. .tag {
  947. padding: 3rpx 17rpx;
  948. box-sizing: border-box;
  949. background: linear-gradient(132deg, #2DD9FF 0%, #2D6DFF 100%);
  950. border-radius: 4rpx 4rpx 4rpx 4rpx;
  951. font-size: 24rpx;
  952. color: #FFFFFF;
  953. }
  954. }
  955. </style>