index.vue 31 KB

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