index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718
  1. <template>
  2. <view class="container">
  3. <view class="content" :style="isShiMing ? '' : 'padding-top:30rpx;'">
  4. <!-- 用户信息 -->
  5. <view class="uerInfo mar_t16 flex_r">
  6. <view class="user_img">
  7. <image @click="upheadimg" class="image" :src="userinfo.head_pic" mode=""></image>
  8. <view class="coupon_info flex_r flex_ac" @tap="goToAutonym" v-if="isShiMing">
  9. 完成实名认证,享受更多权益
  10. <image src="/static/my/f_close.png" mode="widthFix" class="close_icon" @tap.stop="closeAuto">
  11. </image>
  12. </view>
  13. </view>
  14. <block v-if="userinfo.nickname">
  15. <view class="user_con flex_c">
  16. <view class="user_name flex_r flex_ae ellipsis">
  17. <view @click="goto('/pages/my/userinfo')">{{
  18. userinfo.nickname
  19. }}</view>
  20. <text v-if="isAuthentication">({{ userinfo.is_authentication == 0 ? "未实名" : "已实名" }})</text>
  21. </view>
  22. <view class="flex_r flex_ac">
  23. <view class="user_level clearfix">
  24. <image class="level_img" src="/static/my/huangguan.png" mode=""></image>
  25. <view class="level_text">{{ userinfo.level_name }}</view>
  26. </view>
  27. </view>
  28. <view class="user_account flex_r flex_ac mar_t10">
  29. <view class="account">账号:{{ userinfo.mobile }}</view>
  30. <view class="copy_account flex_r flex_ac flex_jc" @tap="copyText(userinfo.mobile)">复制</view>
  31. </view>
  32. </view>
  33. <view class="user_option flex_r flex_ac flex_je">
  34. <image class="code_img" src="/static/my/f_img_code.png" @tap="getImgPage" mode=""></image>
  35. <!-- <image class="code_img" src="/static/my/setting.png" @tap="getToSetting"></image> -->
  36. </view>
  37. </block>
  38. <block v-else>
  39. <view class="user_con flex_c flex_jb" @click="login">
  40. <view class="user_name flex_r flex_ae ellipsis">点此处登录</view>
  41. </view>
  42. </block>
  43. </view>
  44. <!-- 用户信息-end -->
  45. <!-- 账户信息 -->
  46. <view class="acc_info">
  47. <view class="acc_head flex_r flex_jb">
  48. <view class="acc_price">
  49. <view class="price_txt">账号余额(元)</view>
  50. <view class="price_num f_dinB">{{ userinfo.user_money }}</view>
  51. </view>
  52. <view class="C flex_r">
  53. <navigator class="recharge flex_r flex_ac flex_jc" url="/pages/account/conversion" hover-class="none">转化</navigator>
  54. <!-- <navigator class="recharge flex_r flex_ac flex_jc" url="/pages/top-up/index" hover-class="none">充值</navigator> -->
  55. <view class="withdraw flex_r flex_ac flex_jc" @tap="getToCash">提现</view>
  56. </view>
  57. </view>
  58. <view class="info_con flex_r flex_jb">
  59. <view class="info_list flex_c flex_jb">
  60. <view class="list_name">昨日收益(元)</view>
  61. <view class="list_text f_dinB">{{ userinfo.yesterdayProfit || 0 }}</view>
  62. </view>
  63. <view class="info_list flex_c flex_jb" @tap="getToAccMoney">
  64. <view class="list_name">茶宝</view>
  65. <view class="list_text f_dinB">{{ userinfo.cha_bao || 0 }}</view>
  66. </view>
  67. <view class="info_list flex_c flex_jb" @tap="getToTeaList">
  68. <view class="list_name">社区(人)</view>
  69. <view class="list_text f_dinB">{{ allChaYou || 0 }}</view>
  70. </view>
  71. </view>
  72. <view class="acc_hint mar_t50" @tap="SetHint">如何快速晋升身份权益?看这里>></view>
  73. </view>
  74. <!-- 账户信息-end -->
  75. </view>
  76. <!-- 功能列表 -->
  77. <view class="fun_container">
  78. <view class="fun mar_t30">
  79. <view class="fun_title">我的账户</view>
  80. <view class="fun_con mar_t50 flex_r flex_ac flex_jb">
  81. <!-- <navigator class="fun_list flex_c flex_ac" url="/pages/top-up/index" hover-class="none">
  82. <image class="fun_img" src="/static/my/recharge.png" mode=""></image>
  83. <view class="fun_text">充值</view>
  84. </navigator> -->
  85. <navigator class="fun_list flex_c flex_ac" url="/pages/account/wealth" hover-class="none">
  86. <image class="fun_img" src="/static/my/wealth.png" mode=""></image>
  87. <view class="fun_text">财富</view>
  88. </navigator>
  89. <navigator class="fun_list flex_c flex_ac" url="/pages/account/consignment" hover-class="none">
  90. <image class="fun_img" src="/static/my/consign.png" mode=""></image>
  91. <view class="fun_text">寄售</view>
  92. </navigator>
  93. <navigator class="fun_list flex_c flex_ac" url="/pages/account/giveAsPresent" hover-class="none">
  94. <image class="fun_img" src="/static/my/give.png" mode=""></image>
  95. <view class="fun_text">赠送</view>
  96. </navigator>
  97. <navigator class="fun_list flex_c flex_ac" url="/pagesB/my/assistant" hover-class="none">
  98. <image class="fun_img" src="/static/my/assistant.png" mode=""></image>
  99. <view class="fun_text">开票助手</view>
  100. </navigator>
  101. <navigator class="fun_list flex_c flex_ac" @click="getImgPage" hover-class="none">
  102. <image class="fun_img" src="/static/my/sharePoster.png" mode=""></image>
  103. <view class="fun_text">分享海报</view>
  104. </navigator>
  105. </view>
  106. </view>
  107. <view class="fun mar_t30">
  108. <view class="fun_title">账户明细</view>
  109. <view class="fun_con mar_t50 flex_r flex_ac flex_jb">
  110. <navigator class="fun_list flex_c flex_ac" url="/pages/accountDetails/running" hover-class="none">
  111. <image class="fun_img" src="/static/my/fund.png" mode=""></image>
  112. <view class="fun_text">流水明细</view>
  113. </navigator>
  114. <navigator class="fun_list flex_c flex_ac" url="/pages/accountDetails/withdraw" hover-class="none">
  115. <image class="fun_img" src="/static/my/withdraw.png" mode=""></image>
  116. <view class="fun_text">提现明细</view>
  117. </navigator>
  118. <!-- <navigator class="fun_list flex_c flex_ac" url="/pages/accountDetails/integral" hover-class="none">
  119. <image class="fun_img" src="/static/my/inte-list.png" mode=""></image>
  120. <view class="fun_text">积分明细</view>
  121. </navigator> -->
  122. <navigator class="fun_list flex_c flex_ac" url="/pagesB/invoice/invoiceList" hover-class="none">
  123. <image class="fun_img" src="/static/my/assistantHistory.png" mode=""></image>
  124. <view class="fun_text">开票历史</view>
  125. </navigator>
  126. </view>
  127. </view>
  128. <view class="fun mar_t30">
  129. <view class="fun_title flex_r flex_ac flex_jb">我的订单
  130. <navigator class="more flexr flex_ac" url="/pages/szw-order-list/index?status=0" hover-class="none">
  131. 全部订单
  132. <image class="more_img" src="/static/my/more.png" mode=""></image>
  133. </navigator>
  134. </view>
  135. <view class="fun_con mar_t50 flex_r flex_ac flex_jb">
  136. <navigator class="fun_list flex_c flex_ac" url="/pages/szw-order-list/index?status=1" hover-class="none">
  137. <image class="fun_img" src="/static/my/payment.png" mode=""></image>
  138. <view class="fun_text">待付款</view>
  139. </navigator>
  140. <navigator class="fun_list flex_c flex_ac" url="/pages/szw-order-list/index?status=5" hover-class="none">
  141. <image class="fun_img" src="/static/my/pickInStore.png" mode=""></image>
  142. <view class="fun_text">待自提</view>
  143. </navigator>
  144. <navigator class="fun_list flex_c flex_ac" url="/pages/szw-order-list/index?status=2" hover-class="none">
  145. <image class="fun_img" src="/static/my/deliver.png" mode=""></image>
  146. <view class="fun_text">待发货</view>
  147. </navigator>
  148. <navigator class="fun_list flex_c flex_ac" url="/pages/szw-order-list/index?status=3" hover-class="none">
  149. <image class="fun_img" src="/static/my/take.png" mode=""></image>
  150. <view class="fun_text">待收货</view>
  151. </navigator>
  152. <navigator class="fun_list flex_c flex_ac" url="/pages/szw-order-list/index?status=4" hover-class="none">
  153. <image class="fun_img" src="/static/my/refund.png" mode=""></image>
  154. <view class="fun_text">已完成</view>
  155. </navigator>
  156. </view>
  157. </view>
  158. <view class="fun mar_t30">
  159. <view class="fun_title">我的服务</view>
  160. <view class="fun_con mar_t50 flex_r flex_ac flex_jb">
  161. <navigator class="fun_list flex_c flex_ac" url="/pages/about/index" hover-class="none">
  162. <image class="fun_img" src="/static/my/about.png" mode=""></image>
  163. <view class="fun_text">关于我们</view>
  164. </navigator>
  165. <navigator class="fun_list flex_c flex_ac" url="/pages/notice/index" hover-class="none">
  166. <image class="fun_img" src="/static/my/feedback.png" mode=""></image>
  167. <view class="fun_text">用户须知</view>
  168. </navigator>
  169. <navigator class="fun_list flex_c flex_ac" url="/pages/course/index" hover-class="none">
  170. <image class="fun_img" src="/static/my/green.png" mode=""></image>
  171. <view class="fun_text">新手教程</view>
  172. </navigator>
  173. <view class="fun_list flex_c flex_ac">
  174. <button open-type="contact" style="background: #fff; border: 0; line-height: 1; padding: 0">
  175. <image class="fun_img" src="/static/my/service.png" mode=""></image>
  176. <view class="fun_text">在线客服</view>
  177. </button>
  178. </view>
  179. </view>
  180. </view>
  181. </view>
  182. <view class="fz_w_text mar_t20 mar_b20">让数字经济赋能美好生活!</view>
  183. <!-- 功能列表-end -->
  184. <!-- 授权 -->
  185. <authorize-module v-if="showAuth" :shopInfo="shopInfo" @authGetTelSuccess="onauthGetTelSuccess" />
  186. <!-- 授权-end -->
  187. </view>
  188. </template>
  189. <script>
  190. let app = getApp();
  191. var appEv = app.$vm.$options;
  192. import uniCopy from "@/utils/copy";
  193. import authorizeModule from "@/components/authorize-module/index";
  194. import { post } from "@/request/api.js";
  195. export default {
  196. components: {
  197. authorizeModule,
  198. // newauthorize
  199. },
  200. data() {
  201. return {
  202. showAuth: false,
  203. shopInfo: {}, // 商铺信息
  204. userInfoAccount: {}, // 账户数据
  205. customerServiceWeiXin: "", // 客服微信
  206. isShiMing: true, //未实名提示弹窗
  207. agentName: "", // 缘起
  208. user_id: undefined,
  209. userinfo: undefined, // 获取用户信息
  210. unid: "",
  211. // isGetUserInfo:false,
  212. invited: "",
  213. allChaYou: "",
  214. isAuthentication: true, //是否开启实名模块
  215. };
  216. },
  217. created() {
  218. this.isAuthentication = uni.getStorageSync("isAuthentication");
  219. },
  220. onLoad(options) {
  221. //推荐人ID
  222. if (options.invite) {
  223. app.globalData.agentId = options.invite;
  224. this.invited = options.invite;
  225. }
  226. this.closeAuto(); //关闭实名功能
  227. this.getchayou(); //获取茶友
  228. },
  229. onShow() {
  230. let token = uni.getStorageSync("token");
  231. this.userinfo = uni.getStorageSync("userinfo");
  232. if (!token) {
  233. this.login();
  234. } else {
  235. this.getuserInfo();
  236. }
  237. },
  238. methods: {
  239. login() {
  240. let that = this;
  241. // #ifdef MP-WEIXIN
  242. wx.login({
  243. success(res) {
  244. if (res.code) {
  245. // wx.request({
  246. // url: `https://api.weixin.qq.com/sns/jscode2session?appid=wx8ebee994ea7c5af3&secret=f80039555c022bf0a805bed83358fa01&js_code=${res.code}&grant_type=authorization_code`,
  247. // success:(res)=>{
  248. // console.log(res);
  249. // }
  250. // })
  251. post("appletLogin", {
  252. code: res.code,
  253. invite: that.invited,
  254. }).then((res) => {
  255. if (res.code === 0) {
  256. if (res.data.token) {
  257. uni.setStorageSync("token", res.data.token);
  258. that.getuserInfo();
  259. } else {
  260. that.unid = res.data.unid;
  261. that.shopInfo = app.globalData.shopInfo;
  262. that.showAuth = true; //调取授权弹窗
  263. }
  264. }
  265. });
  266. }
  267. },
  268. });
  269. // #endif
  270. // #ifdef H5 || APP-PLUS
  271. this.goto("/pages/my/login");
  272. // #endif
  273. },
  274. // 获取手机号
  275. onauthGetTelSuccess(da) {
  276. this.showAuth = false;
  277. post("getMobile", {
  278. unid: this.unid,
  279. ...da.detail,
  280. }).then((res) => {
  281. if (res.code === 0) {
  282. uni.setStorageSync("token", res.data.token);
  283. this.getuserInfo();
  284. }
  285. });
  286. },
  287. // 获取userinfo
  288. getuserInfo() {
  289. post("/user/userinfo").then((res) => {
  290. if (res.code === 0) {
  291. uni.setStorageSync("userinfo", res.data.data);
  292. this.userinfo = res.data.data;
  293. if (this.isAuthentication) this.isShiMing = this.userinfo.is_authentication == 0;
  294. else this.isShiMing = false;
  295. }
  296. });
  297. },
  298. //授权并登录
  299. onAuthSuccess() {
  300. var that = this;
  301. uni.showLoading({
  302. mask: true,
  303. });
  304. appEv.setData((res) => {
  305. uni.hideLoading();
  306. that.showAuth = false;
  307. });
  308. },
  309. // 跳转到实名页面
  310. goToAutonym() {
  311. this.goto("/pages/autonym-submit/index")
  312. },
  313. // 关闭实名信息 提示
  314. closeAuto() {
  315. this.isShiMing = false;
  316. },
  317. // 未开放提示信息
  318. SetHint() {
  319. uni.navigateTo({
  320. url: "/pages/tea-rule/index",
  321. });
  322. },
  323. // 跳转到分享页面
  324. getImgPage() {
  325. if (this.isAuthentication) {
  326. if (this.userinfo.is_authentication == 1) {
  327. this.goto("/pages/invi-img/index")
  328. } else {
  329. appEv.errTips("您还未实名");
  330. this.goToAutonym();
  331. }
  332. } else {
  333. this.goto("/pages/invi-img/index")
  334. }
  335. },
  336. // 跳转到提现页面
  337. getToCash() {
  338. if (this.isAuthentication) {
  339. if (this.userinfo.is_authentication == 1) {
  340. this.goto("/pages/cash/index")
  341. } else {
  342. appEv.errTips("您还未实名");
  343. this.goToAutonym();
  344. }
  345. } else {
  346. this.goto("/pages/cash/index")
  347. }
  348. },
  349. // 复制账号
  350. copyText(e) {
  351. uniCopy({
  352. content: e,
  353. success: (res) => {},
  354. error: (e) => {},
  355. });
  356. },
  357. // 跳转到用户设置页面
  358. getToSetting: function() {
  359. uni.navigateTo({
  360. url: "/pages/setting/index",
  361. });
  362. },
  363. // 跳转到我的茶友页面
  364. getToTeaList: function() {
  365. uni.navigateTo({
  366. url: "/pages/my-tea-list/index",
  367. });
  368. },
  369. // 跳转到拼豆页面
  370. getToBean: function() {
  371. uni.navigateTo({
  372. url: "/pages/bean-info/index",
  373. });
  374. },
  375. // 跳转到拼团金页面
  376. getToAccMoney: function() {
  377. uni.navigateTo({
  378. url: "/pages/my-acc-money/my-acc-money",
  379. });
  380. },
  381. // 更换头像
  382. upheadimg() {
  383. let that = this;
  384. uni.chooseImage({
  385. count: 1, // 最多可以选择的图片张数,默认9
  386. sizeType: ["original"], // original 原图,compressed 压缩图,默认二者都有
  387. sourceType: ["album", "camera"], // album 从相册选图,camera 使用相机,默认二者都有
  388. success: function(res) {
  389. var arr = res.tempFiles;
  390. that.$up(arr[0].path).then((res) => {
  391. post("user/setup", {
  392. head_pic: res,
  393. nickname: that.userinfo.nickname,
  394. }).then((res) => {
  395. that.getuserInfo();
  396. appEv.errTips("更换成功");
  397. });
  398. });
  399. },
  400. });
  401. },
  402. // 获取茶友
  403. getchayou() {
  404. post("my/chayou").then((res) => {
  405. if (res.code === 0) {
  406. this.allChaYou = res.data.data.below + res.data.data.lower_level;
  407. }
  408. });
  409. }
  410. },
  411. };
  412. </script>
  413. <style lang="scss">
  414. // 页面配置
  415. page {
  416. background: #f5f5f5;
  417. }
  418. .container {
  419. padding: 0 0 30rpx;
  420. box-sizing: border-box;
  421. }
  422. .content {
  423. padding: 66rpx 30rpx 0;
  424. box-sizing: border-box;
  425. width: 100%;
  426. overflow: hidden;
  427. background-image: linear-gradient(to bottom, #fff, #f5f5f5);
  428. }
  429. // 页面配置-end
  430. // 用户信息
  431. .close_icon {
  432. margin-left: 24rpx;
  433. width: 26rpx;
  434. }
  435. .coupon_info {
  436. position: absolute;
  437. top: -70rpx;
  438. left: 0;
  439. border-radius: 12rpx;
  440. background-color: rgba(0, 0, 0, 0.8);
  441. color: #fff;
  442. font-size: 28rpx;
  443. font-weight: 500;
  444. padding: 10rpx 24rpx;
  445. transition: all 0.6s ease;
  446. width: 420rpx;
  447. }
  448. .uerInfo {
  449. width: 100%;
  450. }
  451. .code_img:nth-child(1) {
  452. margin-left: 20rpx;
  453. }
  454. .level_img {
  455. width: 42rpx;
  456. height: 35rpx;
  457. z-index: 30;
  458. }
  459. .code_img {
  460. width: 42rpx;
  461. height: 44rpx;
  462. margin-left: 36rpx;
  463. }
  464. .account {
  465. font-size: 26rpx;
  466. color: #121212;
  467. margin-right: 20rpx;
  468. }
  469. .user_img .image {
  470. width: 100%;
  471. height: 100%;
  472. border-radius: 50%;
  473. }
  474. .user_con {
  475. width: calc(100% - 136rpx - 140rpx - 20rpx);
  476. overflow: hidden;
  477. }
  478. .user_img {
  479. width: 136rpx;
  480. height: 136rpx;
  481. margin-right: 20rpx;
  482. border-radius: 50%;
  483. position: relative;
  484. }
  485. .user_name text {
  486. font-size: 26rpx;
  487. font-family: "SourceHanSansSC-Medium";
  488. color: #121212;
  489. font-weight: 500;
  490. }
  491. .copy_account {
  492. width: 60rpx;
  493. height: 32rpx;
  494. background: #f1d3a8;
  495. font-size: 22rpx;
  496. color: #6b2909;
  497. border-radius: 6rpx;
  498. }
  499. .level_text {
  500. color: #6b2909;
  501. // padding: 0 16rpx;
  502. // border-radius: 13rpx;
  503. // font-size: 20rpx;
  504. // margin-left: -14rpx;
  505. // margin-top: 6rpx;
  506. }
  507. .user_name {
  508. width: 100%;
  509. overflow: hidden;
  510. font-size: 44rpx;
  511. color: #121212;
  512. font-family: "SourceHanSansSC-Medium";
  513. font-weight: 500;
  514. line-height: 1;
  515. }
  516. .user_option {
  517. width: 140rpx;
  518. text-align: right;
  519. }
  520. // 用户信息-end
  521. // 账户信息
  522. .acc_head {
  523. width: 100%;
  524. overflow: hidden;
  525. }
  526. .acc_price .price_txt {
  527. font-size: 24rpx;
  528. color: #fff;
  529. }
  530. .acc_price .price_num {
  531. font-size: 50rpx;
  532. color: #fff;
  533. // font-weight: bold;
  534. // font-family: "SourceHanSansSC-Bold";
  535. }
  536. .info_list:nth-child(1) {
  537. padding-left: 0;
  538. }
  539. .list_name {
  540. font-size: 24rpx;
  541. color: #ffffff;
  542. }
  543. .list_text {
  544. font-size: 36rpx;
  545. color: #fff;
  546. // font-family: "SourceHanSansSC-Bold";
  547. // font-weight: bold;
  548. }
  549. .info_list:nth-last-child(1) {
  550. border-right: 0;
  551. }
  552. .info_con {
  553. width: 100%;
  554. overflow: hidden;
  555. margin-top: 40rpx;
  556. }
  557. .acc_hint {
  558. width: 100%;
  559. overflow: hidden;
  560. font-size: 20rpx;
  561. color: #fff;
  562. }
  563. .info_list {
  564. width: calc(100% / 3);
  565. height: 78rpx;
  566. align-items: inherit;
  567. box-sizing: border-box;
  568. padding-left: 30rpx;
  569. }
  570. .withdraw {
  571. width: 100rpx;
  572. height: 54rpx;
  573. background: #fff;
  574. border-radius: 27rpx;
  575. font-size: 26rpx;
  576. color: #11a375;
  577. font-family: "SourceHanSansSC-Medium";
  578. margin-left: 20rpx;
  579. }
  580. .recharge {
  581. width: 100rpx;
  582. height: 54rpx;
  583. box-sizing: border-box;
  584. border: 3rpx solid #fff;
  585. color: #fff;
  586. font-family: "SourceHanSansSC-Medium";
  587. border-radius: 27rpx;
  588. font-size: 26rpx;
  589. }
  590. .acc_info {
  591. width: 100%;
  592. overflow: hidden;
  593. background: url("~@/static/my/myBack.png") no-repeat;
  594. background-size: 100% 100%;
  595. border-radius: 16rpx;
  596. padding: 30rpx;
  597. box-sizing: border-box;
  598. margin-top: 50rpx;
  599. }
  600. // 账户信息-end
  601. // 功能列表
  602. .more {
  603. font-size: 24rpx;
  604. color: #999999;
  605. }
  606. .fun_con {
  607. width: 100%;
  608. overflow: hidden;
  609. }
  610. .fun_text {
  611. font-size: 24rpx;
  612. color: #333333;
  613. }
  614. .fun_list button::after {
  615. border: 0 !important;
  616. }
  617. .more_img {
  618. width: 12rpx;
  619. height: 20rpx;
  620. margin-left: 11rpx;
  621. }
  622. .fun_img {
  623. width: 50rpx;
  624. height: 50rpx;
  625. margin-bottom: 20rpx;
  626. }
  627. .fun_container {
  628. width: 100%;
  629. overflow: hidden;
  630. padding: 0 30rpx;
  631. box-sizing: border-box;
  632. }
  633. .fun_title {
  634. font-size: 32rpx;
  635. color: #232323;
  636. font-family: "SourceHanSansSC-Bold";
  637. font-weight: bold;
  638. }
  639. .fun {
  640. width: 100%;
  641. overflow: hidden;
  642. border-radius: 16rpx;
  643. background: #fff;
  644. padding: 30rpx;
  645. box-sizing: border-box;
  646. }
  647. .user_level {
  648. margin-top: 10rpx;
  649. background: linear-gradient(to right, #ffeabd, #ffc479);
  650. padding: 5rpx 20rpx;
  651. box-sizing: border-box;
  652. border-radius: 6rpx;
  653. overflow: hidden;
  654. .level_img,
  655. .level_text {
  656. // vertical-align: middle;
  657. float: left;
  658. }
  659. .level_text {
  660. font-size: 28rpx;
  661. margin-left: 12rpx;
  662. }
  663. }
  664. // 功能列表-end
  665. </style>