index.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879
  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 v-if="!userinfo.head_pic" class="image" src="@/static/my/head.png" @click="toLogin"></image>
  8. <image v-else @click="upheadimg" class="image" :src="userinfo.head_pic"></image>
  9. <view class="coupon_info flex_r flex_ac" @tap="goToAutonym" v-if="isShiMing">
  10. 完成实名认证,享受更多权益
  11. <image src="/static/my/f_close.png" mode="widthFix" class="close_icon" @tap.stop="closeAuto" />
  12. </view>
  13. </view>
  14. <block v-if="userinfo.mobile">
  15. <view class="user_con flex_c flex_as flex_jc">
  16. <view class="user_name flex_r flex_ae ellipsis">
  17. <view class="flex_r flex_ac">
  18. <view @click="goto('/pages/my/userinfo')" :style="{'color':localInfo.is_consume==1?'#18bb88' : ''}">{{ userinfo.nickname }}</view>
  19. <image v-if="localInfo.is_consume == 1" class="consume" src="/static/my/consume.png" />
  20. <image v-if="localInfo.bounty_hunter == 1" class="consume" src="https://teaclub.oss-cn-chengdu.aliyuncs.com/CloudShop/logo/202402/hunter.png" />
  21. </view>
  22. <text v-if="isAuthentication">({{ userinfo.is_authentication == 0 ? "未实名" : "已实名" }})</text>
  23. </view>
  24. <view class="live_name flex_r flex_ac flex_jc">
  25. <!-- <image src="/static/my/huangguan.png" class="live_ico" /> -->
  26. <span>{{ typeto(localInfo.level_id) }}</span>
  27. </view>
  28. <view class="user_account flex_r flex_ac mar_t16">
  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. <navigator class="flex_c flex_ac" @tap="getImgPage" hover-class="none">
  35. <image class="fun_img" src="/static/my/f_img_code.png"></image>
  36. <view class="fun_text">分享海报</view>
  37. </navigator>
  38. </view>
  39. </block>
  40. <block v-else>
  41. <view class="user_con flex_c flex_as flex_jc" @click="toLogin">
  42. <view class="user_name flex_r flex_ae ellipsis">点此处登录</view>
  43. </view>
  44. </block>
  45. </view>
  46. <!-- 用户信息-end -->
  47. <!-- 节点 -->
  48. <!-- <view class="regional flex_r" v-if="localInfo.regional.length > 0">
  49. <image src="@/static/my/regional.png" alt="" srcset="" class="ico" />
  50. <view class="flex_r flex_ac">
  51. <span class="txtinfo">区域服务节点:</span>
  52. <swiper class="notice_swiper" vertical autoplay circular :interval="2000" :duration="1000">
  53. <swiper-item v-for="(iitem, iindex) in localInfo.regional" :key="iindex" @click="toDetail(item.article_id)">
  54. <span class="not_list">{{ iitem }}</span>
  55. </swiper-item>
  56. </swiper>
  57. </view>
  58. </view>
  59. <view class="regional flex_r flex_ac" v-if="localInfo.operate.length > 0">
  60. <image src="@/static/my/regional.png" alt="" srcset="" class="ico" />
  61. <view class="flex_r flex_ac">
  62. <span class="txtinfo">区域运营节点:</span>
  63. <swiper class="notice_swiper" vertical autoplay circular :interval="2000" :duration="1000">
  64. <swiper-item v-for="(iitem, iindex) in localInfo.operate" :key="iindex" @click="toDetail(item.article_id)">
  65. <span class="not_list">{{ iitem }}</span>
  66. </swiper-item>
  67. </swiper>
  68. </view>
  69. </view> -->
  70. <!-- 节点-end -->
  71. <!-- 账户信息 -->
  72. <view class="acc_info flex_r flex_jb acc_box">
  73. <!-- <div class="flex_r flex_jb"> -->
  74. <div class="i_num flex_c flex_ac">
  75. <!-- <div class="i_num flex_c flex_ac" @click="goto('/pagesB/my/shuZhiWallet')"> -->
  76. <p class="flex_r flex_ac flex_jc">
  77. <image src="/static/wallet/4.png" class="ico" /><span>我的余额</span></p>
  78. <p class="dinB tc">{{localInfo.property||0}}</p>
  79. </div>
  80. <div class="i_num flex_c flex_ac" @click="goto('/pagesB/accountDetails/ConsumptionCharge')">
  81. <p class="flex_r flex_ac flex_jc">
  82. <image src="/static/wallet/3.png" class="ico" /><span>消费金</span></p>
  83. <p class="dinB tc">{{localInfo.integral||0}}</p>
  84. </div>
  85. <!-- <div class="i_num flex_c flex_ac" @click="goto('/pages/accountDetails/teaBaby')">
  86. <p class="flex_r flex_ac flex_jc">
  87. <image src="/static/wallet/6.png" class="ico" /><span>茶宝</span></p>
  88. <p class="dinB tc">{{userinfo.cha_bao||0}}</p>
  89. </div> -->
  90. <!-- </div> -->
  91. <!-- <div class="flex_c flex_jse">
  92. <div class="i_num flex_c flex_ae" @click="goto('/pagesC/settledMerchant/balanceLog',{s:0})">
  93. <p class="flex_r flex_ac flex_jc">
  94. <image src="/static/wallet/11.png" class="ico" /><span>商户余额</span></p>
  95. <p class="dinB">{{localInfo.merchant_money || 0}}</p>
  96. </div>
  97. <div class="i_num flex_c flex_ae mar_t30" @click="goto('/pages/accountDetails/teaBaby')">
  98. <p class="flex_r flex_ac flex_jc">
  99. <image src="/static/wallet/6.png" class="ico" /><span>茶宝</span></p>
  100. <p class="dinB">{{userinfo.cha_bao||0}}</p>
  101. </div>
  102. </div> -->
  103. </view>
  104. <!-- <view class="acc_info_next flex_r flex_jb mar_t16">
  105. <div class="acc_info_next_item flex_r flex_jb" @click="goto('/pagesB/accountDetails/TeaC')">
  106. <div class="flex_c flex_ac">
  107. <image src="@/static/wallet/9.png" class="ico" />
  108. <span>TeaC</span>
  109. </div>
  110. <div class="acc_info_next_item_bottom dinB flex_c flex_ae flex_jb">
  111. <span>{{userinfo.teac}}</span>
  112. <span>≈{{teacCountCny||0}}CNY</span>
  113. </div>
  114. </div>
  115. <div class="acc_info_next_item flex_r flex_jb" @click="goto('/pagesB/accountDetails/OriginalShares')">
  116. <div class="flex_c flex_ac">
  117. <image src="@/static/wallet/12.png" class="ico" />
  118. <span>OE</span>
  119. </div>
  120. <div class="acc_info_next_item_bottom dinB flex_c flex_ae flex_jb">
  121. <span>{{localInfo.original_equity || 0}}</span>
  122. <span>≈{{equityCountCny||0}}CNY</span>
  123. </div>
  124. </div>
  125. </view> -->
  126. <!-- 账户信息-end -->
  127. </view>
  128. <!-- 功能列表 -->
  129. <view class="fun_container">
  130. <!-- <view class="fun mar_t30">
  131. <view class="fun_title">数智生活</view>
  132. <view class="fun_con mar_t50 flex_r flex_ac">
  133. <navigator class="fun_list flex_c flex_ac" @click="activation" hover-class="none">
  134. <image class="fun_img" src="/static/my/11.png"></image>
  135. <view class="fun_text">激活升级</view>
  136. </navigator>
  137. <navigator class="fun_list flex_c flex_ac" url="/pagesB/orderingfood/friend" hover-class="none">
  138. <image class="fun_img" src="/static/my/12.png"></image>
  139. <view class="fun_text">社区</view>
  140. </navigator>
  141. <navigator class="fun_list flex_c flex_ac" url="/pages/account/giveAsPresent" hover-class="none">
  142. <image class="fun_img" src="/static/my/13.png"></image>
  143. <view class="fun_text">赠送</view>
  144. </navigator>
  145. </view>
  146. </view> -->
  147. <!-- <view class="fun mar_t30">
  148. <view class="fun_title flex_r flex_ac flex_jb">
  149. <view>云店订单</view>
  150. <view class="moarbtn" @click="goto('/pages/szw-order-list/index')">
  151. <text>查看全部</text>
  152. <text class="iconfont">&#xe62e;</text>
  153. </view>
  154. </view>
  155. <view class="fun_con mar_t50 flex_r flex_ac flex_jb">
  156. <navigator class="fun_list flex_c flex_ac" url="/pages/szw-order-list/index?status=1" hover-class="none">
  157. <image class="fun_img" src="/static/my/payment.png"></image>
  158. <view class="fun_text">待付款</view>
  159. </navigator>
  160. <navigator class="fun_list flex_c flex_ac" url="/pages/szw-order-list/index?status=5" hover-class="none">
  161. <image class="fun_img" src="/static/my/pickInStore.png"></image>
  162. <view class="fun_text">待自提</view>
  163. </navigator>
  164. <navigator class="fun_list flex_c flex_ac" url="/pages/szw-order-list/index?status=2" hover-class="none">
  165. <image class="fun_img" src="/static/my/deliver.png"></image>
  166. <view class="fun_text">待发货</view>
  167. </navigator>
  168. <navigator class="fun_list flex_c flex_ac" url="/pages/szw-order-list/index?status=3" hover-class="none">
  169. <image class="fun_img" src="/static/my/take.png"></image>
  170. <view class="fun_text">待收货</view>
  171. </navigator>
  172. <navigator class="fun_list flex_c flex_ac" url="/pages/szw-order-list/index?status=4" hover-class="none">
  173. <image class="fun_img" src="/static/my/refund.png"></image>
  174. <view class="fun_text">已完成</view>
  175. </navigator>
  176. </view>
  177. </view> -->
  178. <view class="fun mar_t30" v-if="isBusinessCenter">
  179. <view class="fun_title">商家中心</view>
  180. <view class="fun_con mar_t50 flex_r flex_ac">
  181. <navigator v-if="merchantSetlet.shop" class="fun_list flex_c flex_ac" url="/pagesC/settledMerchant/myShop" hover-class="none">
  182. <image class="fun_img" src="/static/my/store.png"></image>
  183. <view class="fun_text">我的店铺</view>
  184. </navigator>
  185. <navigator v-if="merchantSetlet.settled" class="fun_list flex_c flex_ac" url="/pagesC/settledMerchant/addShop" hover-class="none">
  186. <image class="fun_img" src="/static/my/merchant.png"></image>
  187. <view class="fun_text">商家入驻</view>
  188. </navigator>
  189. <navigator v-if="merchantSetlet.settled" class="fun_list flex_c flex_ac" url="/pagesC/settledMerchant/myBusiness" hover-class="none">
  190. <image class="fun_img" src="/static/my/merchant2.png"></image>
  191. <view class="fun_text">我的商家</view>
  192. </navigator>
  193. <navigator v-if="merchantSetlet.region" class="fun_list flex_c flex_ac" url="/pagesC/settledMerchant/business" hover-class="none">
  194. <image class="fun_img" src="/static/my/merchant3.png"></image>
  195. <view class="fun_text">区域商家</view>
  196. </navigator>
  197. <navigator v-if="false" class="fun_list flex_c flex_ac" hover-class="none">
  198. <image class="fun_img" src="/static/my/operator.png"></image>
  199. <view class="fun_text">申请运营商</view>
  200. </navigator>
  201. </view>
  202. </view>
  203. <view class="fun mar_t30">
  204. <view class="fun_title">我的服务</view>
  205. <view class="fun_con mar_t50 flex_r flex_ac">
  206. <navigator class="fun_list flex_c flex_ac" url="/pagesB/my/myWallet" hover-class="none">
  207. <image class="fun_img" src="/static/my/9.png"></image>
  208. <view class="fun_text">我的积分</view>
  209. </navigator>
  210. <navigator class="fun_list flex_c flex_ac" url="/pagesB/orderingfood/orderlist" hover-class="none">
  211. <image class="fun_img" src="/static/my/10.png"></image>
  212. <view class="fun_text">本地订单</view>
  213. </navigator>
  214. <navigator class="fun_list flex_c flex_ac" url="/pages/szw-order-list/index" hover-class="none">
  215. <image class="fun_img" src="/static/my/15.png"></image>
  216. <view class="fun_text">电商订单</view>
  217. </navigator>
  218. <navigator class="fun_list flex_c flex_ac" @click="copy" hover-class="none">
  219. <image class="fun_img" src="/static/my/14.png"></image>
  220. <view class="fun_text">APP下载</view>
  221. </navigator>
  222. </view>
  223. <view class="fun_con mar_t50 flex_r flex_ac">
  224. <navigator class="fun_list flex_c flex_ac" url="/pagesB/address/list" hover-class="none">
  225. <image class="fun_img" src="/static/my/dizhi.png"></image>
  226. <view class="fun_text">地址管理</view>
  227. </navigator>
  228. <navigator class="fun_list flex_c flex_ac" url="/pagesB/my/assistant" hover-class="none">
  229. <image class="fun_img" src="/static/my/assistant.png"></image>
  230. <view class="fun_text">开票助手</view>
  231. </navigator>
  232. <navigator class="fun_list flex_c flex_ac" url="/pagesB/invoice/invoiceList" hover-class="none">
  233. <image class="fun_img" src="/static/my/assistantHistory.png"></image>
  234. <view class="fun_text">开票历史</view>
  235. </navigator>
  236. <navigator class="fun_list flex_c flex_ac" @click="goto('/pages/agreement/index',{tit:'新手教程',type:1})" hover-class="none">
  237. <image class="fun_img" src="/static/my/green.png"></image>
  238. <view class="fun_text">新手教程</view>
  239. </navigator>
  240. </view>
  241. <view class="fun_con mar_t50 flex_r flex_ac">
  242. <navigator class="fun_list flex_c flex_ac" @click="goto('/pages/agreement/index',{tit:'关于我们',type:7})" hover-class="none">
  243. <image class="fun_img" src="/static/my/about.png"></image>
  244. <view class="fun_text">关于我们</view>
  245. </navigator>
  246. <navigator class="fun_list flex_c flex_ac" @click="goto('/pages/agreement/index',{tit:'用户须知',type:8})" hover-class="none">
  247. <image class="fun_img" src="/static/my/feedback.png"></image>
  248. <view class="fun_text">用户须知</view>
  249. </navigator>
  250. <navigator class="fun_list flex_c flex_ac" @click="goto('/pages/my/userinfo')" hover-class="none">
  251. <image class="fun_img" src="/static/my/h_n.png"></image>
  252. <view class="fun_text">头像昵称</view>
  253. </navigator>
  254. <view class="fun_list flex_c flex_ac">
  255. <button open-type="contact" style="background: #fff; border: 0; line-height: 1; padding: 0">
  256. <image class="fun_img" src="/static/my/service.png"></image>
  257. <view class="fun_text">在线客服</view>
  258. </button>
  259. </view>
  260. </view>
  261. </view>
  262. </view>
  263. <!-- #ifdef APP-PLUS || H5 -->
  264. <view class="confim flex_r flex_ac flex_jc" @tap="loginOut">退出登录</view>
  265. <!-- #endif -->
  266. <view class="fz_w_text">
  267. <view>让数字经济赋能美好生活!</view>
  268. <!-- #ifdef MP-WEIXIN -->
  269. <view v-if="app.globalData.version">{{ app.globalData.version }}</view>
  270. <!-- #endif -->
  271. </view>
  272. <!-- 授权 -->
  273. <!-- <authorize-module ref="autho" :shopInfo="shopInfo" @authGetTelSuccess="onauthGetTelSuccess" /> -->
  274. <!-- 激活升级 -->
  275. <activation ref="activation" tit="激活" />
  276. </view>
  277. </template>
  278. <script>
  279. // #ifdef MP-WEIXIN
  280. let app = getApp();
  281. // #endif
  282. import uniCopy from "@/utils/copy";
  283. import authorizeModule from "@/components/authorize-module/index";
  284. import activation from "@/components/activation/activation.vue"
  285. import { post } from "@/request/api.js";
  286. export default {
  287. components: {
  288. authorizeModule,
  289. activation
  290. },
  291. data() {
  292. return {
  293. shopInfo: {}, // 商铺信息
  294. isShiMing: true, //未实名提示弹窗
  295. userinfo: {}, // 获取用户信息
  296. unid: "",
  297. invited: "",
  298. isAuthentication: uni.getStorageSync("isAuthentication"), //是否开启实名模块
  299. localInfo: {
  300. regional:[],
  301. operate:[]
  302. }, //数智生活信息
  303. merchantSetlet: {},
  304. isBusinessCenter: false,
  305. teacCountCny: 0,
  306. equityCountCny: 0
  307. };
  308. },
  309. onLoad(options) {
  310. //推荐人邀请码|受邀码
  311. this.invited = uni.getStorageSync("inviteCode") || ""
  312. this.closeAuto(); //关闭实名功能
  313. },
  314. onShow() {
  315. let token = uni.getStorageSync("token");
  316. if (!token) this.login()
  317. else {
  318. this.getuserInfo();
  319. }
  320. },
  321. methods: {
  322. login() {
  323. let that = this;
  324. // #ifdef MP-WEIXIN
  325. wx.login({
  326. success(res) {
  327. if (res.code) {
  328. post("v1/appletLogin", {
  329. code: res.code,
  330. invite: that.invited,
  331. }).then((res) => {
  332. if (res.code === 0) {
  333. if (res.data.token) {
  334. uni.setStorageSync("token", res.data.token);
  335. that.getuserInfo();
  336. } else {
  337. that.unid = res.data.unid;
  338. uni.setStorageSync("unid", res.data.unid);
  339. that.shopInfo = app.globalData.shopInfo;
  340. // that.SoHAuth(); //调取授权弹窗
  341. }
  342. }
  343. });
  344. }
  345. },
  346. });
  347. // #endif
  348. },
  349. toLogin(){
  350. // #ifdef MP-WEIXIN
  351. this.goto("/pages/my/wxLogin");
  352. // #endif
  353. // #ifdef H5 || APP-PLUS
  354. this.goto("/pages/my/login");
  355. // #endif
  356. },
  357. // 获取手机号
  358. // onauthGetTelSuccess(da) {
  359. // this.SoHAuth();
  360. // post("v1/getMobile", {
  361. // unid: this.unid,
  362. // ...da.detail,
  363. // }).then((res) => {
  364. // if (res.code === 0) {
  365. // uni.setStorageSync("token", res.data.token);
  366. // this.getuserInfo();
  367. // }
  368. // });
  369. // },
  370. // SoHAuth() {
  371. // this.$refs.autho.onSoHAuth();
  372. // },
  373. // 获取userinfo
  374. async getuserInfo() {
  375. let res = await uni.userfun();
  376. if (res.user_id) {
  377. if (this.isAuthentication) this.isShiMing = res.is_authentication == 0;
  378. else this.isShiMing = false;
  379. this.userinfo = res;
  380. } else this.login();
  381. this.localInfo = await uni.Luserfun()
  382. this.merchantSet();
  383. this.getConvertCny()
  384. },
  385. // 跳转到实名页面
  386. goToAutonym() {
  387. this.goto("/pages/autonym-submit/index")
  388. },
  389. // 关闭实名信息提示
  390. closeAuto() {
  391. this.isShiMing = false;
  392. },
  393. // 跳转到分享页面
  394. getImgPage() {
  395. if (this.isAuthentication) {
  396. if (this.userinfo.is_authentication == 1) {
  397. this.goto("/pages/invi-img/index")
  398. } else {
  399. this.$toast("您还未实名");
  400. this.goToAutonym();
  401. }
  402. } else {
  403. this.goto("/pages/invi-img/index")
  404. }
  405. },
  406. // 复制账号
  407. copyText(e) {
  408. uniCopy({
  409. content: e,
  410. success: (res) => {},
  411. error: (e) => {},
  412. });
  413. },
  414. copy(){
  415. this.$toast("敬请期待")
  416. // uniCopy({
  417. // content: "https://a.app.qq.com/o/simple.jsp?pkgname=com.chafubao.mm",
  418. // success: (res) => {
  419. // uni.showToast({
  420. // title: "APP下载链接已复制成功,请转到浏览器下载",
  421. // icon: "none",
  422. // duration: 1000,
  423. // });
  424. // },
  425. // error: (e) => {},
  426. // });
  427. },
  428. // 点击头像
  429. upheadimg() {
  430. let that = this;
  431. uni.previewImage({
  432. urls: [that.userinfo.head_pic],
  433. current: 0,
  434. });
  435. },
  436. activation() {
  437. this.$refs.activation.open()
  438. },
  439. typeto(va) {
  440. switch (va) {
  441. // case 1: return "消费商";
  442. // case 2: return "链接大使";
  443. // case 3: return "合伙人";
  444. // case 4: return "联合创始人";
  445. // case 5: return "联合发起人";
  446. case 1: return "💎";
  447. case 2: return "💎💎";
  448. case 3: return "💎💎💎";
  449. case 4: return "💎💎💎💎";
  450. case 5: return "💎💎💎💎💎";
  451. default:
  452. return ""
  453. }
  454. },
  455. // teaC价值
  456. getConvertCny(){
  457. post("v1/getConvertCny").then((res) => {
  458. if (res.code === 0) {
  459. this.teacCountCny = Math.floor(Number(res.data.data.teac) * Number(this.userinfo.teac))
  460. this.equityCountCny = Math.floor(Number(res.data.data.equity) * Number(this.localInfo.original_equity))
  461. }
  462. });
  463. },
  464. // 商家中心权限
  465. merchantSet(){
  466. post("v1/merchant/settled").then((res) => {
  467. if (res.code === 0) {
  468. this.merchantSetlet = res.data
  469. for (const i in res.data) {
  470. if(res.data[i]) {
  471. this.isBusinessCenter = true
  472. return
  473. }
  474. }
  475. }
  476. });
  477. },
  478. loginOut(){
  479. post("v1/logout").then((res) => {
  480. });
  481. uni.clearStorageSync();
  482. uni.reLaunch({
  483. url:'/pages/my/login'
  484. })
  485. }
  486. },
  487. };
  488. </script>
  489. <style lang="scss">
  490. // 页面配置
  491. page {
  492. background: #f5f5f5;
  493. }
  494. .container {
  495. box-sizing: border-box;
  496. }
  497. .content {
  498. padding: 66rpx 30rpx 0;
  499. box-sizing: border-box;
  500. width: 100%;
  501. overflow: hidden;
  502. background-image: linear-gradient(to bottom, #fff, #f5f5f5);
  503. }
  504. // 页面配置-end
  505. // 用户信息
  506. .close_icon {
  507. margin-left: 24rpx;
  508. width: 26rpx;
  509. }
  510. .coupon_info {
  511. position: absolute;
  512. top: -70rpx;
  513. left: 0;
  514. border-radius: 12rpx;
  515. background-color: rgba(0, 0, 0, 0.8);
  516. color: #fff;
  517. font-size: 28rpx;
  518. font-weight: 500;
  519. padding: 10rpx 24rpx;
  520. transition: all 0.6s ease;
  521. width: 420rpx;
  522. }
  523. .uerInfo {
  524. width: 100%;
  525. }
  526. .code_img:nth-child(1) {
  527. margin-left: 20rpx;
  528. }
  529. .code_img {
  530. width: 42rpx;
  531. height: 44rpx;
  532. margin-left: 36rpx;
  533. }
  534. .account {
  535. font-size: 26rpx;
  536. color: #121212;
  537. margin-right: 20rpx;
  538. }
  539. .user_img .image {
  540. width: 100%;
  541. height: 100%;
  542. border-radius: 50%;
  543. }
  544. .user_con {
  545. width: calc(100% - 136rpx - 140rpx - 20rpx);
  546. overflow: hidden;
  547. }
  548. .user_img {
  549. width: 136rpx;
  550. height: 136rpx;
  551. margin-right: 20rpx;
  552. border-radius: 50%;
  553. position: relative;
  554. }
  555. .user_name text {
  556. font-size: 26rpx;
  557. font-family: "SourceHanSansSC-Medium";
  558. color: #121212;
  559. font-weight: 500;
  560. }
  561. .user_name .consume{
  562. width: 30rpx;
  563. height: 30rpx;
  564. margin-left: 8rpx;
  565. }
  566. .copy_account {
  567. width: 60rpx;
  568. height: 32rpx;
  569. background: #f1d3a8;
  570. font-size: 22rpx;
  571. color: #6b2909;
  572. border-radius: 6rpx;
  573. }
  574. .user_name {
  575. width: 100%;
  576. overflow: hidden;
  577. font-size: 40rpx;
  578. color: #121212;
  579. font-weight: 500;
  580. line-height: 1;
  581. }
  582. .user_option {
  583. width: 140rpx;
  584. text-align: right;
  585. padding-right: 24rpx;
  586. .fun_img {
  587. width: 84rpx;
  588. height: 84rpx;
  589. margin-bottom: 10rpx;
  590. }
  591. .fun_text {
  592. font-size: 22rpx;
  593. }
  594. }
  595. .live_name {
  596. background-color: #f1d3a8;
  597. padding: 2rpx 8rpx;
  598. margin-top: 10rpx;
  599. border-radius: 8rpx;
  600. .live_ico {
  601. width: 26rpx;
  602. height: 26rpx;
  603. margin-right: 6rpx;
  604. }
  605. span {
  606. font-size: 22rpx;
  607. }
  608. }
  609. // 用户信息-end
  610. .regional {
  611. padding: 0 10rpx;
  612. margin-top: 16rpx;
  613. .ico {
  614. width: 32rpx;
  615. height: 32rpx;
  616. margin-right: 12rpx;
  617. }
  618. .txtinfo {
  619. color: #000;
  620. font-size: 25rpx;
  621. white-space: nowrap;
  622. }
  623. .ico,
  624. .txtinfo {
  625. vertical-align: middle;
  626. }
  627. &.top10{
  628. margin-top: -2rpx;
  629. }
  630. }
  631. // 账户信息
  632. .acc_info {
  633. width: 100%;
  634. overflow: hidden;
  635. background: url("http://teaclub.oss-cn-chengdu.aliyuncs.com/img/31.png");
  636. background-size: 100% 100%;
  637. border-radius: 16rpx;
  638. padding: 36rpx 0;
  639. box-sizing: border-box;
  640. margin-top: 38rpx;
  641. .i_num {
  642. text-align: center;
  643. font-size: 32rpx;
  644. width: 50%;
  645. p {
  646. color: #BE7329;
  647. }
  648. .ico {
  649. width: 42rpx;
  650. height: 42rpx;
  651. margin-right: 12rpx;
  652. }
  653. .dinB {
  654. margin-top: 14rpx;
  655. font-size: 40rpx;
  656. }
  657. .tc {
  658. text-align: center;
  659. }
  660. }
  661. }
  662. .acc_box{
  663. padding: 36rpx;
  664. }
  665. .acc_info_next{
  666. &_item{
  667. width: 49%;
  668. color: #276727;
  669. font-weight: 550;
  670. box-sizing: border-box;
  671. padding: 20rpx;
  672. background: url("http://teaclub.oss-cn-chengdu.aliyuncs.com/img/11.png");
  673. background-size: 100% 100%;
  674. .ico {
  675. width: 42rpx;
  676. height: 42rpx;
  677. // margin-right: 12rpx;
  678. }
  679. &_bottom{
  680. font-size: 30rpx;
  681. font-weight: 600;
  682. }
  683. }
  684. &_item:last-child{
  685. color: #0B414D;
  686. background: url("http://teaclub.oss-cn-chengdu.aliyuncs.com/img/12.png");
  687. background-size: 100% 100%;
  688. // .acc_info_next_item_bottom{
  689. // font-size: 30rpx;
  690. // font-weight: 600;
  691. // }
  692. }
  693. }
  694. // 账户信息-end
  695. // 功能列表
  696. .more {
  697. font-size: 24rpx;
  698. color: #999999;
  699. }
  700. .fun_con {
  701. width: 100%;
  702. overflow: hidden;
  703. }
  704. .fun_text {
  705. font-size: 24rpx;
  706. color: #333333;
  707. }
  708. .fun_list {
  709. width: 25%;
  710. }
  711. .fun_list button::after {
  712. border: 0 !important;
  713. }
  714. .more_img {
  715. width: 12rpx;
  716. height: 20rpx;
  717. margin-left: 11rpx;
  718. }
  719. .fun_img {
  720. width: 50rpx;
  721. height: 50rpx;
  722. margin-bottom: 10rpx;
  723. }
  724. .fun_container {
  725. width: 100%;
  726. overflow: hidden;
  727. padding: 0 30rpx;
  728. box-sizing: border-box;
  729. }
  730. .fun_title {
  731. padding: 0 30rpx;
  732. font-size: 32rpx;
  733. color: #333;
  734. font-weight: bold;
  735. }
  736. .fun_tit {
  737. font-size: 28rpx;
  738. color: #666;
  739. font-weight: bold;
  740. padding-left: 36rpx;
  741. padding-right: 30rpx;
  742. }
  743. .fun {
  744. width: 100%;
  745. overflow: hidden;
  746. border-radius: 16rpx;
  747. background: #fff;
  748. padding: 30rpx 0;
  749. box-sizing: border-box;
  750. }
  751. .user_level {
  752. margin-top: 10rpx;
  753. background: linear-gradient(to right, #ffeabd, #ffc479);
  754. padding: 6rpx 20rpx;
  755. border-radius: 6rpx;
  756. overflow: hidden;
  757. .level_img {
  758. width: 38rpx;
  759. height: 30rpx;
  760. z-index: 30;
  761. }
  762. .level_text {
  763. color: #6b2909;
  764. font-size: 28rpx;
  765. margin-left: 12rpx;
  766. display: inline-block;
  767. height: 30rpx;
  768. line-height: 30rpx;
  769. }
  770. .level_img,
  771. .level_text {
  772. float: left;
  773. }
  774. }
  775. .moarbtn {
  776. font-size: 22rpx;
  777. color: #999;
  778. .iconfont {
  779. text-decoration-skip: 20rpx;
  780. margin-left: 6rpx;
  781. color: #999;
  782. }
  783. text {
  784. vertical-align: middle;
  785. }
  786. }
  787. // 功能列表-end
  788. .notice_swiper {
  789. height: 40rpx;
  790. // padding-left: 20rpx;
  791. font-size: 28rpx;
  792. float: left;
  793. box-sizing: border-box;
  794. min-width: 430rpx;
  795. .not_list {
  796. min-width: 430rpx;
  797. }
  798. .not_ico {
  799. width: 30rpx;
  800. font-size: 28rpx;
  801. color: #999;
  802. }
  803. .not_list,
  804. .not_ico {
  805. display: inline-block;
  806. vertical-align: middle;
  807. height: 40rpx;
  808. line-height: 40rpx;
  809. }
  810. }
  811. .confim {
  812. width: 90%;
  813. height: 80rpx;
  814. border-radius: 40rpx;
  815. background: #2db389;
  816. color: #fff;
  817. font-size: 26rpx;
  818. margin: 44rpx auto 0;
  819. }
  820. </style>