index.vue 25 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114
  1. <template>
  2. <view class="app-page">
  3. <view class="top-bar-view">
  4. <view class="top-bg" :style="{background: bgImg ? null : 'linear-gradient(138deg, #ffecaf 0%, #fbf5e3 59%, #f5f6f8 100%)',
  5. opacity: '0.8'}">
  6. <image v-if="bgImg" style="width: 100%;display: block;" mode="widthFix" :src="bgImg"></image>
  7. </view>
  8. <view class="top-box">
  9. <view class="top-bar" :style="
  10. 'height:' +
  11. topData.height +
  12. 'px;' +
  13. 'padding-top:' +
  14. topData.top +
  15. 'px;padding-bottom:20rpx'
  16. ">
  17. <u--text customStyle="font-weight: 800;" color="#282B39" align="center" size="34rpx" text="个人中心" />
  18. </view>
  19. <view class="login-box" @click="checkShowUserRegister()">
  20. <view class="avatar-wrap">
  21. <u--image width="126rpx" height="126rpx" radius="100%" shape="circle" bgColor="#d3c6b5"
  22. customStyle="border-radius:100%;" :src="
  23. avatarUrl != defaultAvatarUrl
  24. ? avatarUrl
  25. : `/static/defaultAvatar.png`
  26. " :fade="true" duration="450"></u--image>
  27. <view class="vip-tag"
  28. :style="{background: `url(${user_grade_bg}) no-repeat center left`, backgroundSize: '154rpx 40rpx',}">
  29. <!-- <u--image width="38rpx" height="38rpx" radius="100%" shape="circle"
  30. customStyle="border-radius:100%;margin-right: -12rpx;" src="/static/vip_tag.png"
  31. :fade="true" duration="450"></u--image> -->
  32. <view class="vip-text">{{userInfo.vip_name}}</view>
  33. </view>
  34. </view>
  35. <view class="user-info-wrap">
  36. <view class="userName-wrap">
  37. <text class="userName">{{
  38. userName ? userName : "登录/注册"
  39. }}</text>
  40. <u--image width="30rpx" height="30rpx" customStyle="margin-left: 12rpx;"
  41. src="/static/ic-editor-org.png" :fade="true" duration="450"></u--image>
  42. </view>
  43. <view class="info-list">
  44. <text class="info-list-item">{{userInfo.phone}}</text>
  45. <text class="info-list-item">余额: {{userInfo.rebate_total - userInfo.rebate_used}}</text>
  46. </view>
  47. <view class="info-list">积分:{{userInfo.integral_total - userInfo.integral_used}}</view>
  48. <view class="info-list" style="color: #999"
  49. v-if="userInfo.pid &&userInfo.agent && userInfo.agent.username ">
  50. 推荐人:{{userInfo.agent.username}}
  51. </view>
  52. </view>
  53. </view>
  54. <view class="jion-vip-wrap" @click="checkShowUserRegister()"
  55. :style="{backgroundImage: `url(${jion_vip_bg})`}">
  56. <!-- <view class="left"> -->
  57. <!-- <view class="title">加入VIP会员</view> -->
  58. <!-- <view class="docs">获取更多福利内容</view> -->
  59. <!-- </view> -->
  60. <!-- <view class="right-btn">立即加入</view> -->
  61. </view>
  62. <view class="orders-info-card">
  63. <view class="orders-card">
  64. <view class="card-title">
  65. <text>我的订单</text>
  66. <view class="right" @click="toOrderList(0)">查看全部<u-icon name="arrow-right" size="13"
  67. color="#858585"></u-icon>
  68. </view>
  69. </view>
  70. <u-line color="#F4F4F4"></u-line>
  71. <view class="menu-box">
  72. <view class="menu-item" @click="toOrderList(item.index)" v-for="(item, index) in shopList">
  73. <view style="position: relative;">
  74. <image :src="item.url" mode="heightFix"></image>
  75. <u-badge :absolute="true" :offset="[-5,-10]" :value="orderNumber[item.numKey]">
  76. </u-badge>
  77. </view>
  78. <text>{{ item.name }}</text>
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. <view class="member-info-card">
  84. <view class="member-card">
  85. <text class="card-title">分销商</text>
  86. <u-line color="#F4F4F4"></u-line>
  87. <view class="menu-box">
  88. <view class="menu-item" @click="goToPath(item)" v-for="(item, index) in menuList">
  89. <image :src="item.url" mode="heightFix"></image>
  90. <text>{{ item.name }}</text>
  91. </view>
  92. </view>
  93. </view>
  94. </view>
  95. <view class="member-other-card">
  96. <text class="card-title">其他功能</text>
  97. <u-line color="#F4F4F4"></u-line>
  98. <view class="menu-other-box">
  99. <view class="menu-other-item" v-for="(item, index) in otherList" :key="index"
  100. @click="goToPath(item)">
  101. <image :src="item.url" mode="heightFix"></image>
  102. <text>{{ item.name }}</text>
  103. <button style="position: absolute;width: 100%;height: 100%;z-index: 999;opacity: 0;"
  104. v-if="item.value == 'concat'" open-type="contact" @contact="contact"></button>
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. <u-popup :show="showUserRegister" @close="showUserRegister = false" round="18rpx">
  111. <form v-if="!isUserRegister" @submit="saveUserData">
  112. <view class="m-content-view">
  113. <text class="top-view"> {{shopName}} </text>
  114. <text class="tips">请您授权头像昵称信息,您授权的信息将受到严格保护,请放心使用。</text>
  115. <button class="avatar-wrapper" open-type="chooseAvatar" @chooseavatar="onChooseAvatar"
  116. style="border: 0">
  117. <u--image v-if="avatarUrl !== defaultAvatarUrl" width="149rpx" height="149rpx" radius="100%"
  118. shape="circle" :src="avatarUrl" :fade="true" duration="450" mode="heightFix"></u--image>
  119. <view class="v1" v-else>
  120. <u--image width="80rpx" height="80rpx" radius="100%" shape="circle" :src="avatarUrl"
  121. :fade="true" duration="450" mode="heightFix"></u--image>
  122. <text v-if="avatarUrl === defaultAvatarUrl">获取头像</text>
  123. </view>
  124. </button>
  125. <input name="nickname" v-model="userName" type="nickname" class="m-input" placeholder="请输入昵称" />
  126. <button class="red-btn" form-type="submit">确认授权</button>
  127. </view>
  128. </form>
  129. </u-popup>
  130. <tabbarCom current="4"></tabbarCom>
  131. </view>
  132. </template>
  133. <script>
  134. import tabbarCom from "@/components/tabbar/tabbar.vue"
  135. import {
  136. uploadBase64File,
  137. getNewRemindCnt,
  138. addAddress,
  139. } from "@/common/api/common.js";
  140. import {
  141. getOrderList
  142. } from "@/common/api/order.js";
  143. import {
  144. updateUserInfo,
  145. getUserInfo,
  146. userBindNickname
  147. } from "@/common/api/user.js";
  148. const defaultAvatarUrl =
  149. "https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0";
  150. import $C from "@/common/utils/config.js";
  151. export default {
  152. components: {
  153. tabbarCom
  154. },
  155. data() {
  156. return {
  157. topData: {
  158. top: 0,
  159. height: 0,
  160. },
  161. shopName: "六感熟眠商城",
  162. bgImg: null,
  163. jion_vip_bg: 'https://work.hkmop.com/static/imgs/jion_vip_bg.png',
  164. user_grade_bg: '', //#f4c530
  165. tips: "登录/注册",
  166. defaultAvatarUrl,
  167. avatarUrl: defaultAvatarUrl,
  168. isUserRegister: false,
  169. showUserRegister: false,
  170. userName: "",
  171. userInfo: undefined,
  172. badgeValue: 0,
  173. userData: {},
  174. newRemindCnt: 0,
  175. orderNumber: {},
  176. menuList: [{
  177. name: "推广海报",
  178. url: require("@/static/ic-menu-a.png"),
  179. path: "/subPages/poster/poster",
  180. isVip: true
  181. },
  182. {
  183. name: "我的团队",
  184. url: require("@/static/ic-menu-b.png"),
  185. path: "/subPages/myTeam/myTeam",
  186. isVip: true
  187. },
  188. {
  189. name: "分销订单",
  190. url: require("@/static/ic-menu-c.png"),
  191. path: "/subPages/distribution/distribution",
  192. isVip: true
  193. },
  194. {
  195. name: "提现记录",
  196. url: require("@/static/ic-menu-d.png"),
  197. path: "/subPages/withdrawalManagement/withdrawalManagement",
  198. isVip: true
  199. },
  200. {
  201. name: "提现",
  202. url: require("@/static/ic-menu-e.png"),
  203. path: "/subPages/applyWithdrawal/applyWithdrawal",
  204. isVip: true
  205. },
  206. ],
  207. shopList: [{
  208. name: "待付款",
  209. url: require("@/static/ic-shop-a.png"),
  210. value: '1,2',
  211. index: 1,
  212. numKey: 'toPay'
  213. },
  214. {
  215. name: "待发货",
  216. url: require("@/static/ic-shop-b.png"),
  217. value: '3',
  218. index: 2,
  219. numKey: 'toSend'
  220. },
  221. {
  222. name: "待收货",
  223. url: require("@/static/ic-shop-c.png"),
  224. value: '4',
  225. index: 3,
  226. numKey: 'toConfirm'
  227. },
  228. {
  229. name: "已完成",
  230. url: require("@/static/ic-shop-d.png"),
  231. value: '6,9',
  232. index: 4,
  233. numKey: 'complate'
  234. },
  235. {
  236. name: "退款/售后",
  237. url: require("@/static/ic-shop-e.png"),
  238. index: 5,
  239. numKey: 'afterSales'
  240. },
  241. ],
  242. otherList: [{
  243. name: "优惠券",
  244. url: require("@/static/ic-other-a.png"),
  245. path: "/subPages/coupon/coupon",
  246. isVip: true
  247. },
  248. {
  249. name: "地址管理",
  250. url: require("@/static/ic-other-b.png"),
  251. path: "/subPages/addressMg/addressMg",
  252. isVip: true
  253. },
  254. {
  255. name: "我的收藏",
  256. url: require("@/static/ic-other-cooprule.png"),
  257. path: "/subPages/collectList/collectList",
  258. isVip: true
  259. },
  260. {
  261. name: "帮助中心",
  262. url: require("@/static/ic-other-c.png"),
  263. path: "/subPages/helpCenter/helpCenter",
  264. },
  265. {
  266. name: "关于我们",
  267. url: require("@/static/ic-other-d.png"),
  268. path: "/pages/singlePage/index?name=3",
  269. },
  270. {
  271. name: "在线客服",
  272. url: require("@/static/ic-other-e.png"),
  273. value: 'concat'
  274. },
  275. ],
  276. };
  277. },
  278. computed: {
  279. displayBalance() {
  280. const {
  281. balance_total,
  282. balance_used
  283. } = this.userInfo || {};
  284. return balance_total - balance_used;
  285. },
  286. },
  287. created() {
  288. const configs = uni.getStorageSync("configs");
  289. if (configs) {
  290. this.shopName = configs.shop_name
  291. this.bgImg = configs.ucenter_bg
  292. this.jion_vip_bg = configs.user_in_bg
  293. this.user_grade_bg = configs.user_grade_bg
  294. }
  295. },
  296. mounted() {},
  297. //发送给朋友
  298. onShareAppMessage(res) {
  299. let configs = uni.getStorageSync('configs') || {}
  300. return {
  301. title: configs.shop_share_title,
  302. imageUrl: configs.shop_share_img,
  303. path: `/pages/home/dashboard/index?id=${
  304. JSON.parse(uni.getStorageSync("userInfo")).id
  305. }`,
  306. };
  307. },
  308. // 分享到朋友圈
  309. onShareTimeline() {
  310. let configs = uni.getStorageSync('configs') || {}
  311. return {
  312. title: configs.shop_share_title,
  313. imageUrl: configs.shop_share_img,
  314. path: `/pages/home/dashboard/index?id=${
  315. JSON.parse(uni.getStorageSync("userInfo")).id
  316. }`
  317. };
  318. },
  319. onShow() {
  320. const topData = uni.getMenuButtonBoundingClientRect();
  321. this.topData.top = topData.top;
  322. this.topData.height = topData.height;
  323. this.reUserInfo();
  324. this.getUserInfo();
  325. // this.getOrderListCount()
  326. },
  327. methods: {
  328. contact(res) {
  329. console.log(345555, res)
  330. },
  331. getOrderStatics() {
  332. this.$api.getOrderStatics().then(res => {
  333. const {
  334. t1 = 0, t2 = 0, t3 = 0, t4 = 0, t6 = 0, t9 = 0
  335. } = res.data
  336. this.orderNumber = {
  337. toPay: t1 + t2,
  338. toSend: t3,
  339. toConfirm: t4,
  340. complate: t6 + t9,
  341. afterSales: res.data.t - 1 + res.data.t - 2,
  342. }
  343. })
  344. },
  345. checkShowUserRegister() {
  346. if (!this.isUserRegister) {
  347. this.showUserRegister = true;
  348. return true;
  349. } else {
  350. // if (this.userInfo.vip_code && this.userInfo.vip_code != "0") {
  351. // this.toSubPages("personalDataManagement");
  352. // } else {
  353. // this.toSubPages("register");
  354. // }
  355. this.toSubPages("personalDataManagement");
  356. return false;
  357. }
  358. },
  359. reUserInfo() {
  360. const userInfo = uni.getStorageSync("userInfo");
  361. if (
  362. userInfo &&
  363. JSON.parse(userInfo).nickname != "" &&
  364. JSON.parse(userInfo).headimg != ""
  365. ) {
  366. this.userInfo = JSON.parse(userInfo);
  367. const {
  368. headimg,
  369. nickname,
  370. base_sex,
  371. realname,
  372. region_area,
  373. region_city,
  374. region_province,
  375. phone
  376. } =
  377. this.userInfo
  378. this.avatarUrl = this.userInfo.headimg;
  379. this.userName = this.userInfo.nickname;
  380. this.isUserRegister = true;
  381. this.getOrderStatics()
  382. } else {
  383. this.isUserRegister = false;
  384. }
  385. console.log("reUserInfo==>", this.userInfo);
  386. },
  387. toOrderList(str = 0) {
  388. if (!this.isUserRegister) {
  389. this.showUserRegister = true;
  390. return true;
  391. }
  392. uni.setStorageSync("orderIndex", str);
  393. uni.navigateTo({
  394. url: "/subPages/myOrder/myOrder",
  395. });
  396. },
  397. goToPath(item) {
  398. if (item.isVip) {
  399. if (!this.isUserRegister) {
  400. this.showUserRegister = true;
  401. return true;
  402. }
  403. }
  404. if (!item.path) {
  405. return;
  406. }
  407. uni.navigateTo({
  408. url: item.path,
  409. });
  410. },
  411. toSubPages(index) {
  412. uni.navigateTo({
  413. url: `/subPages/${index}/index`,
  414. });
  415. },
  416. // 获取未支付数量
  417. getOrderListCount() {
  418. uni.showLoading();
  419. const data = {
  420. status: 2,
  421. page: this.page,
  422. limit: this.limit,
  423. };
  424. getOrderList(data)
  425. .then((res) => {
  426. uni.hideLoading();
  427. console.log("getOrderList==>", res.data.list);
  428. if (res.data) {
  429. this.badgeValue = res.data.page.total;
  430. }
  431. })
  432. .catch(() => {
  433. uni.hideLoading();
  434. });
  435. },
  436. bindNickname(url) {
  437. this.isUserRegister = true;
  438. this.showUserRegister = false;
  439. const data = {
  440. nickname: this.userName,
  441. username: this.userName,
  442. headimg: url,
  443. };
  444. userBindNickname(data).then((res) => {
  445. console.log("绑定昵称等==>", res.data);
  446. if (res.data) {
  447. uni.setStorageSync("token", res.data.token.token);
  448. if (!res.data.headimg) {
  449. res.data.headimg = url;
  450. }
  451. uni.setStorageSync("userInfo", JSON.stringify(res.data));
  452. this.isUserRegister = true;
  453. this.showUserRegister = false;
  454. this.toSubPages("register");
  455. }
  456. });
  457. },
  458. addAddress(addressData) {
  459. this.isUserRegister = true;
  460. this.showUserRegister = false;
  461. const data = {
  462. type: 1,
  463. name: addressData.userName,
  464. phone: addressData.telNumber,
  465. province: addressData.provinceName,
  466. city: addressData.cityName,
  467. area: addressData.countyName,
  468. address: addressData.detailInfo,
  469. };
  470. addAddress(data).then((res) => {
  471. console.log("addAddress==>", res.data);
  472. if (res.data) {
  473. uni.showToast({
  474. title: "添加成功",
  475. success: (res) => {},
  476. });
  477. }
  478. });
  479. },
  480. async getUserInfo() {
  481. const data = {};
  482. await getUserInfo(data)
  483. .then((res) => {
  484. if (res.data) {
  485. // uni.clearStorageSync()
  486. uni.setStorageSync("token", res.data.token.token);
  487. uni.setStorageSync("userInfo", JSON.stringify(res.data));
  488. this.userInfo = res.data;
  489. console.log("getUserInfo==>", this.userInfo);
  490. }
  491. })
  492. .catch(() => {
  493. uni.hideLoading();
  494. });
  495. await this.reUserInfo();
  496. },
  497. getNewRemindCnt() {
  498. const data = {};
  499. getNewRemindCnt(data)
  500. .then((res) => {
  501. console.log("getNewRemindCnt==>", res.data);
  502. // if (res.data) {
  503. this.newRemindCnt = res.data || 0;
  504. // }
  505. })
  506. .catch(() => {
  507. uni.hideLoading();
  508. });
  509. },
  510. onChooseAvatar(e) {
  511. const {
  512. avatarUrl
  513. } = e.detail;
  514. console.log("成功授权", avatarUrl);
  515. this.avatarUrl = avatarUrl;
  516. },
  517. saveUserData(e) {
  518. console.log(e.detail.value.nickname);
  519. if (
  520. this.avatarUrl === this.defaultAvatarUrl ||
  521. !e.detail.value.nickname
  522. ) {
  523. uni.showToast({
  524. icon: "none",
  525. title: "请先授权完善信息",
  526. });
  527. return;
  528. }
  529. this.userName = e.detail.value.nickname;
  530. this.showUserRegister = false;
  531. this.getImageInfo();
  532. },
  533. getImageInfo() {
  534. // 获取当前图片信息
  535. uni.getImageInfo({
  536. src: this.avatarUrl,
  537. success: (image) => {
  538. // 做png/jpeg的类型判断————对不同类型的图像添加不同的转换头信息
  539. if (image.type == "png" || image.type == "jpeg") {
  540. // 对符合类型的图片转换为base64类型
  541. uni.getFileSystemManager().readFile({
  542. // 【重点来啦】人家自提供的转码API
  543. filePath: image.path, // 所需转码图像路径
  544. encoding: "base64", // 转码类型
  545. success: (res) => {
  546. // 生成base64
  547. let imageBase64 =
  548. "data:image/" + image.type + ";base64," + res.data;
  549. console.log("转base64后:", imageBase64);
  550. this.uploadBase64File(imageBase64);
  551. },
  552. });
  553. } else {
  554. // 友好一点,不是以上类型做出提醒
  555. uni.showToast({
  556. title: "当前只支持png/jpeg格式",
  557. duration: 2500,
  558. icon: "none",
  559. });
  560. }
  561. },
  562. });
  563. },
  564. uploadBase64File(imageBase64) {
  565. uploadBase64File({
  566. base64: imageBase64,
  567. }, {
  568. "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
  569. })
  570. .then((res) => {
  571. console.log("uploadFile==>", res.data.url);
  572. this.avatarUrl = res.data.url;
  573. this.bindNickname(res.data.url);
  574. })
  575. .catch(() => {
  576. uni.hideLoading();
  577. });
  578. },
  579. },
  580. };
  581. </script>
  582. <style lang="scss" scoped>
  583. .app-page {
  584. width: 100%;
  585. display: flex;
  586. flex-direction: column;
  587. }
  588. .top-bg {
  589. width: 750rpx;
  590. height: 634rpx;
  591. overflow: hidden;
  592. }
  593. .not-regis-box,
  594. .regis-box {
  595. margin-left: 20rpx;
  596. margin-top: 7rpx;
  597. height: 36rpx;
  598. line-height: 36rpx;
  599. padding: 0 10rpx;
  600. font-size: 22rpx;
  601. font-weight: bold;
  602. color: #9a9a9a;
  603. background: #e3e3e3;
  604. border-radius: 7rpx;
  605. display: inline-flex;
  606. align-items: center;
  607. .user-name-text {
  608. margin-left: 6rpx;
  609. }
  610. }
  611. .regis-box {
  612. background: rgba(231, 224, 255, 0.85);
  613. color: #815bff;
  614. }
  615. .top-bar-view {
  616. width: 100%;
  617. position: relative;
  618. display: flex;
  619. align-items: center;
  620. flex-direction: column;
  621. }
  622. .top-box {
  623. position: absolute;
  624. left: 0;
  625. top: 0;
  626. right: 0;
  627. display: flex;
  628. flex-direction: column;
  629. }
  630. .top-bar {
  631. width: 100%;
  632. display: flex;
  633. justify-content: center;
  634. align-items: center;
  635. flex-direction: row;
  636. }
  637. .m-content-view {
  638. width: 100%;
  639. display: flex;
  640. align-items: center;
  641. flex-direction: column;
  642. background-color: #f7f7f7;
  643. border-radius: 24rpx 24rpx 0 0;
  644. }
  645. .top-view {
  646. font-size: 32rpx;
  647. font-family: PingFangSC-Medium, PingFang SC;
  648. font-weight: 500;
  649. color: #1d161f;
  650. line-height: 34rpx;
  651. text-align: left;
  652. margin: 55rpx 49rpx 0;
  653. width: calc(100% - 98rpx);
  654. }
  655. .tips {
  656. font-size: 26rpx;
  657. font-weight: 400;
  658. color: #858585;
  659. line-height: 34rpx;
  660. margin: 21rpx 49rpx 0;
  661. }
  662. .red-btn {
  663. color: white;
  664. background: #f39800;
  665. width: calc(100% - 98rpx);
  666. margin-top: 52rpx;
  667. margin-bottom: 52rpx;
  668. font-size: 32rpx;
  669. line-height: 84rpx;
  670. border-radius: 40rpx;
  671. text-align: center;
  672. }
  673. .red-btn:active {
  674. opacity: 0.7;
  675. }
  676. .v1 {
  677. height: 149rpx;
  678. width: 149rpx;
  679. display: flex;
  680. flex-direction: column;
  681. background: rgba(244, 244, 246, 1);
  682. border-radius: 100%;
  683. align-items: center;
  684. justify-content: center;
  685. }
  686. .avatar-wrapper {
  687. margin-top: 26rpx;
  688. }
  689. .avatar-wrapper button::before {
  690. padding: 0;
  691. border-radius: 20rpx;
  692. border: 0;
  693. }
  694. .avatar {
  695. height: 100rpx;
  696. width: 100rpx;
  697. }
  698. .v1 text {
  699. font-size: 22rpx;
  700. margin-top: -16rpx;
  701. }
  702. // 去掉烦人的边框
  703. button::after {
  704. border: 0; // 或者 border: none;
  705. }
  706. .m-input {
  707. width: calc(100% - 138rpx);
  708. line-height: 117rpx;
  709. padding: 0 20rpx;
  710. margin-top: 44rpx;
  711. background: #ffffff;
  712. border-radius: 15rpx;
  713. height: 117rpx;
  714. }
  715. .mine-box {
  716. width: 100%;
  717. display: flex;
  718. flex-direction: column;
  719. position: relative;
  720. }
  721. .mine-bg {
  722. width: 100%;
  723. display: block;
  724. height: 1334rpx;
  725. }
  726. .mine-view {
  727. left: 0;
  728. top: 0;
  729. right: 0;
  730. width: 100%;
  731. display: flex;
  732. flex-direction: column;
  733. position: absolute;
  734. }
  735. .top-title-view {
  736. display: flex;
  737. width: 100%;
  738. flex-direction: row;
  739. align-items: center;
  740. }
  741. .login-box {
  742. display: flex;
  743. flex-direction: row;
  744. align-items: center;
  745. padding: 10px 30rpx 0;
  746. }
  747. .avatar-wrap {
  748. position: relative;
  749. .vip-tag {
  750. position: absolute;
  751. bottom: -22rpx;
  752. left: -10rpx;
  753. display: flex;
  754. align-items: center;
  755. .vip-text {
  756. font-size: 20rpx;
  757. font-weight: 500;
  758. margin-left: 34rpx;
  759. color: #632400;
  760. width: 122rpx;
  761. line-height: 38rpx;
  762. text-align: center;
  763. border-radius: 0rpx 20rpx 20rpx 0rpx;
  764. }
  765. }
  766. }
  767. .user-info-wrap {
  768. flex: 1;
  769. margin-left: 28rpx;
  770. .userName-wrap {
  771. display: flex;
  772. align-items: center;
  773. }
  774. .info-list {
  775. margin-top: 10rpx;
  776. height: 34rpx;
  777. font-size: 24rpx;
  778. font-weight: 400;
  779. color: #1d161f;
  780. line-height: 34rpx;
  781. .info-list-item {
  782. &:nth-child(n + 2) {
  783. &::before {
  784. content: "|";
  785. color: #b6b6b6;
  786. margin: 0 12rpx;
  787. }
  788. }
  789. }
  790. }
  791. }
  792. .userName-box {
  793. display: flex;
  794. flex-direction: row;
  795. align-items: center;
  796. justify-content: flex-start;
  797. }
  798. .userName {
  799. font-size: 32rpx;
  800. // margin-left: 26rpx;
  801. font-family: PingFang;
  802. font-weight: 600;
  803. color: #000000;
  804. }
  805. .right-box {
  806. padding-right: 56rpx;
  807. position: relative;
  808. }
  809. .jion-vip-wrap {
  810. background-size: 100% 100%;
  811. display: flex;
  812. justify-content: space-between;
  813. align-items: center;
  814. height: 128rpx;
  815. margin: 60rpx 20rpx 25rpx;
  816. padding: 0 45rpx 0 42rpx;
  817. .title {
  818. font-size: 36rpx;
  819. font-family: YouSheBiaoTiHei;
  820. font-weight: 500;
  821. color: #ffffff;
  822. line-height: 38rpx;
  823. }
  824. .docs {
  825. margin-top: 8px;
  826. font-size: 24rpx;
  827. font-weight: 400;
  828. color: #ffffff;
  829. line-height: 34rpx;
  830. }
  831. .right-btn {
  832. width: 141rpx;
  833. height: 54rpx;
  834. background: #ffffff;
  835. border-radius: 27rpx;
  836. font-size: 24rpx;
  837. font-weight: 500;
  838. color: #632400;
  839. line-height: 54rpx;
  840. text-align: center;
  841. }
  842. }
  843. .kthy {
  844. flex: 1;
  845. font-size: 26rpx;
  846. font-family: PingFang;
  847. font-weight: 400;
  848. color: #000000;
  849. }
  850. .kthy-btn {
  851. width: 106rpx;
  852. height: 40rpx;
  853. border: 1rpx solid #000000;
  854. border-radius: 4rpx;
  855. font-size: 22rpx;
  856. font-family: PingFang;
  857. font-weight: 400;
  858. color: #010101;
  859. text-align: center;
  860. margin-right: 20rpx;
  861. line-height: 40rpx;
  862. }
  863. .card-box {
  864. width: 690rpx;
  865. margin: 20rpx auto 0 auto;
  866. background: #ffffff;
  867. border-radius: 21rpx;
  868. display: flex;
  869. flex-direction: column;
  870. }
  871. .bottom-item {
  872. width: 100%;
  873. display: flex;
  874. flex-direction: column;
  875. position: relative;
  876. .bottom-item-h {
  877. width: 100%;
  878. display: flex;
  879. flex-direction: row;
  880. text {
  881. flex: 1;
  882. font-size: 26rpx;
  883. margin: 30rpx 40rpx;
  884. font-family: PingFang;
  885. font-weight: 400;
  886. color: #333333;
  887. line-height: 28rpx;
  888. }
  889. }
  890. }
  891. .orders-info-card {
  892. width: 710rpx;
  893. margin: 25rpx auto 0;
  894. background: linear-gradient(45deg, #cfcff5 0%, #efebff 61%, #cac9ec 100%);
  895. border-radius: 18rpx;
  896. overflow: hidden;
  897. display: flex;
  898. flex-direction: column;
  899. .orders-card {
  900. width: 710rpx;
  901. height: 273rpx;
  902. background: #ffffff;
  903. display: flex;
  904. flex-direction: column;
  905. border-radius: 18rpx 18rpx 18rpx 18rpx;
  906. .card-title {
  907. display: flex;
  908. align-items: center;
  909. justify-content: space-between;
  910. padding-right: 34rpx;
  911. .right {
  912. display: flex;
  913. align-items: center;
  914. font-size: 24rpx;
  915. font-weight: 400;
  916. color: #858585;
  917. line-height: 1;
  918. }
  919. }
  920. .menu-box {
  921. flex: 1;
  922. width: 100%;
  923. display: flex;
  924. flex-direction: row;
  925. align-items: center;
  926. .menu-item {
  927. flex: 1;
  928. height: 100%;
  929. display: flex;
  930. flex-direction: column;
  931. align-items: center;
  932. justify-content: center;
  933. position: relative;
  934. image {
  935. width: 46rpx;
  936. margin-bottom: 14rpx;
  937. height: 46rpx;
  938. }
  939. text {
  940. font-size: 26rpx;
  941. font-family: PingFang SC-Medium, PingFang SC;
  942. font-weight: 500;
  943. color: #1d161f;
  944. }
  945. }
  946. }
  947. }
  948. }
  949. .member-info-card {
  950. width: 710rpx;
  951. margin: 20rpx auto;
  952. // height: 349rpx;
  953. background: linear-gradient(45deg, #cfcff5 0%, #efebff 61%, #cac9ec 100%);
  954. border-radius: 18rpx 18rpx 18rpx 18rpx;
  955. overflow: hidden;
  956. display: flex;
  957. flex-direction: column;
  958. .member-card {
  959. width: 710rpx;
  960. height: 273rpx;
  961. background: #ffffff;
  962. display: flex;
  963. flex-direction: column;
  964. border-radius: 18rpx 18rpx 18rpx 18rpx;
  965. .menu-box {
  966. flex: 1;
  967. width: 100%;
  968. display: flex;
  969. flex-direction: row;
  970. align-items: center;
  971. .menu-item {
  972. flex: 1;
  973. height: 100%;
  974. display: flex;
  975. flex-direction: column;
  976. align-items: center;
  977. justify-content: center;
  978. position: relative;
  979. image {
  980. width: 46rpx;
  981. margin-bottom: 14rpx;
  982. height: 46rpx;
  983. }
  984. text {
  985. font-size: 26rpx;
  986. font-family: PingFang SC-Medium, PingFang SC;
  987. font-weight: 500;
  988. color: #1d161f;
  989. }
  990. }
  991. }
  992. }
  993. }
  994. .card-title {
  995. font-size: 28rpx;
  996. font-family: PingFang SC-Bold, PingFang SC;
  997. font-weight: bold;
  998. color: #1d161f;
  999. padding-left: 34rpx;
  1000. line-height: 91rpx;
  1001. }
  1002. .member-other-card {
  1003. width: 710rpx;
  1004. // height: 273rpx;
  1005. margin: 0 auto 20rpx auto;
  1006. background: #ffffff;
  1007. display: flex;
  1008. flex-direction: column;
  1009. border-radius: 18rpx 18rpx 18rpx 18rpx;
  1010. .menu-other-box {
  1011. width: 100%;
  1012. display: flex;
  1013. flex-direction: row;
  1014. align-items: center;
  1015. flex-wrap: wrap;
  1016. padding: 50rpx 0 0;
  1017. .menu-other-item {
  1018. // flex: auto;
  1019. position: relative;
  1020. display: flex;
  1021. flex-direction: column;
  1022. align-items: center;
  1023. justify-content: center;
  1024. width: 25%;
  1025. flex-shrink: 0;
  1026. margin-bottom: 40rpx;
  1027. image {
  1028. width: 46rpx;
  1029. margin-bottom: 14rpx;
  1030. height: 46rpx;
  1031. }
  1032. text {
  1033. font-size: 26rpx;
  1034. font-family: PingFang SC-Medium, PingFang SC;
  1035. font-weight: 500;
  1036. color: #1d161f;
  1037. }
  1038. }
  1039. }
  1040. }
  1041. </style>