index.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887
  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 > 0?'#18bb88' : ''}">{{ userinfo.nickname }}</view>
  19. <image v-for="i in localInfo.is_consume" :key="i" 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. uni.setTabBarStyle({
  311. color: '#999',
  312. selectedColor: '#3EAEF0',
  313. })
  314. //推荐人邀请码|受邀码
  315. this.invited = uni.getStorageSync("inviteCode") || ""
  316. this.closeAuto(); //关闭实名功能
  317. },
  318. onShow() {
  319. uni.setTabBarStyle({
  320. color: '#999',
  321. selectedColor: '#3EAEF0',
  322. })
  323. let token = uni.getStorageSync("token");
  324. if (!token) this.login()
  325. else {
  326. this.getuserInfo();
  327. }
  328. },
  329. methods: {
  330. login() {
  331. let that = this;
  332. // #ifdef MP-WEIXIN
  333. wx.login({
  334. success(res) {
  335. if (res.code) {
  336. post("v1/appletLogin", {
  337. code: res.code,
  338. invite: that.invited,
  339. }).then((res) => {
  340. if (res.code === 0) {
  341. if (res.data.token) {
  342. uni.setStorageSync("token", res.data.token);
  343. that.getuserInfo();
  344. } else {
  345. that.unid = res.data.unid;
  346. uni.setStorageSync("unid", res.data.unid);
  347. that.shopInfo = app.globalData.shopInfo;
  348. // that.SoHAuth(); //调取授权弹窗
  349. }
  350. }
  351. });
  352. }
  353. },
  354. });
  355. // #endif
  356. },
  357. toLogin(){
  358. // #ifdef MP-WEIXIN
  359. this.goto("/pages/my/wxLogin");
  360. // #endif
  361. // #ifdef H5 || APP-PLUS
  362. this.goto("/pages/my/login");
  363. // #endif
  364. },
  365. // 获取手机号
  366. // onauthGetTelSuccess(da) {
  367. // this.SoHAuth();
  368. // post("v1/getMobile", {
  369. // unid: this.unid,
  370. // ...da.detail,
  371. // }).then((res) => {
  372. // if (res.code === 0) {
  373. // uni.setStorageSync("token", res.data.token);
  374. // this.getuserInfo();
  375. // }
  376. // });
  377. // },
  378. // SoHAuth() {
  379. // this.$refs.autho.onSoHAuth();
  380. // },
  381. // 获取userinfo
  382. async getuserInfo() {
  383. let res = await uni.userfun();
  384. if (res.user_id) {
  385. if (this.isAuthentication) this.isShiMing = res.is_authentication == 0;
  386. else this.isShiMing = false;
  387. this.userinfo = res;
  388. } else this.login();
  389. this.localInfo = await uni.Luserfun()
  390. this.merchantSet();
  391. this.getConvertCny()
  392. },
  393. // 跳转到实名页面
  394. goToAutonym() {
  395. this.goto("/pages/autonym-submit/index")
  396. },
  397. // 关闭实名信息提示
  398. closeAuto() {
  399. this.isShiMing = false;
  400. },
  401. // 跳转到分享页面
  402. getImgPage() {
  403. if (this.isAuthentication) {
  404. if (this.userinfo.is_authentication == 1) {
  405. this.goto("/pages/invi-img/index")
  406. } else {
  407. this.$toast("您还未实名");
  408. this.goToAutonym();
  409. }
  410. } else {
  411. this.goto("/pages/invi-img/index")
  412. }
  413. },
  414. // 复制账号
  415. copyText(e) {
  416. uniCopy({
  417. content: e,
  418. success: (res) => {},
  419. error: (e) => {},
  420. });
  421. },
  422. copy(){
  423. // this.$toast("敬请期待")
  424. uniCopy({
  425. content: "https://app.chafubao.cn",
  426. success: (res) => {
  427. uni.showToast({
  428. title: "APP下载链接已复制,请转到浏览器下载",
  429. icon: "none",
  430. duration: 1000,
  431. });
  432. },
  433. error: (e) => {},
  434. });
  435. },
  436. // 点击头像
  437. upheadimg() {
  438. let that = this;
  439. uni.previewImage({
  440. urls: [that.userinfo.head_pic],
  441. current: 0,
  442. });
  443. },
  444. activation() {
  445. this.$refs.activation.open()
  446. },
  447. typeto(va) {
  448. switch (va) {
  449. // case 1: return "消费商";
  450. // case 2: return "链接大使";
  451. // case 3: return "合伙人";
  452. // case 4: return "联合创始人";
  453. // case 5: return "联合发起人";
  454. case 1: return "💎";
  455. case 2: return "💎💎";
  456. case 3: return "💎💎💎";
  457. case 4: return "💎💎💎💎";
  458. case 5: return "💎💎💎💎💎";
  459. default:
  460. return ""
  461. }
  462. },
  463. // teaC价值
  464. getConvertCny(){
  465. post("v1/getConvertCny").then((res) => {
  466. if (res.code === 0) {
  467. this.teacCountCny = Math.floor(Number(res.data.data.teac) * Number(this.userinfo.teac))
  468. this.equityCountCny = Math.floor(Number(res.data.data.equity) * Number(this.localInfo.original_equity))
  469. }
  470. });
  471. },
  472. // 商家中心权限
  473. merchantSet(){
  474. post("v1/merchant/settled").then((res) => {
  475. if (res.code === 0) {
  476. this.merchantSetlet = res.data
  477. for (const i in res.data) {
  478. if(res.data[i]) {
  479. this.isBusinessCenter = true
  480. return
  481. }
  482. }
  483. }
  484. });
  485. },
  486. loginOut(){
  487. post("v1/logout").then((res) => {
  488. });
  489. uni.clearStorageSync();
  490. uni.reLaunch({
  491. url:'/pages/my/login'
  492. })
  493. }
  494. },
  495. };
  496. </script>
  497. <style lang="scss">
  498. // 页面配置
  499. page {
  500. background: #f5f5f5;
  501. }
  502. .container {
  503. box-sizing: border-box;
  504. }
  505. .content {
  506. padding: 66rpx 30rpx 0;
  507. box-sizing: border-box;
  508. width: 100%;
  509. overflow: hidden;
  510. background-image: linear-gradient(to bottom, #fff, #f5f5f5);
  511. }
  512. // 页面配置-end
  513. // 用户信息
  514. .close_icon {
  515. margin-left: 24rpx;
  516. width: 26rpx;
  517. }
  518. .coupon_info {
  519. position: absolute;
  520. top: -70rpx;
  521. left: 0;
  522. border-radius: 12rpx;
  523. background-color: rgba(0, 0, 0, 0.8);
  524. color: #fff;
  525. font-size: 28rpx;
  526. font-weight: 500;
  527. padding: 10rpx 24rpx;
  528. transition: all 0.6s ease;
  529. width: 420rpx;
  530. }
  531. .uerInfo {
  532. width: 100%;
  533. }
  534. .code_img:nth-child(1) {
  535. margin-left: 20rpx;
  536. }
  537. .code_img {
  538. width: 42rpx;
  539. height: 44rpx;
  540. margin-left: 36rpx;
  541. }
  542. .account {
  543. font-size: 26rpx;
  544. color: #121212;
  545. margin-right: 20rpx;
  546. }
  547. .user_img .image {
  548. width: 100%;
  549. height: 100%;
  550. border-radius: 50%;
  551. }
  552. .user_con {
  553. width: calc(100% - 136rpx - 140rpx - 20rpx);
  554. overflow: hidden;
  555. }
  556. .user_img {
  557. width: 136rpx;
  558. height: 136rpx;
  559. margin-right: 20rpx;
  560. border-radius: 50%;
  561. position: relative;
  562. }
  563. .user_name text {
  564. font-size: 26rpx;
  565. font-family: "SourceHanSansSC-Medium";
  566. color: #121212;
  567. font-weight: 500;
  568. }
  569. .user_name .consume{
  570. width: 30rpx;
  571. height: 30rpx;
  572. margin-left: 8rpx;
  573. }
  574. .copy_account {
  575. width: 60rpx;
  576. height: 32rpx;
  577. background: #f1d3a8;
  578. font-size: 22rpx;
  579. color: #6b2909;
  580. border-radius: 6rpx;
  581. }
  582. .user_name {
  583. width: 100%;
  584. overflow: hidden;
  585. font-size: 40rpx;
  586. color: #121212;
  587. font-weight: 500;
  588. line-height: 1;
  589. }
  590. .user_option {
  591. width: 140rpx;
  592. text-align: right;
  593. padding-right: 24rpx;
  594. .fun_img {
  595. width: 84rpx;
  596. height: 84rpx;
  597. margin-bottom: 10rpx;
  598. }
  599. .fun_text {
  600. font-size: 22rpx;
  601. }
  602. }
  603. .live_name {
  604. background-color: #f1d3a8;
  605. padding: 2rpx 8rpx;
  606. margin-top: 10rpx;
  607. border-radius: 8rpx;
  608. .live_ico {
  609. width: 26rpx;
  610. height: 26rpx;
  611. margin-right: 6rpx;
  612. }
  613. span {
  614. font-size: 22rpx;
  615. }
  616. }
  617. // 用户信息-end
  618. .regional {
  619. padding: 0 10rpx;
  620. margin-top: 16rpx;
  621. .ico {
  622. width: 32rpx;
  623. height: 32rpx;
  624. margin-right: 12rpx;
  625. }
  626. .txtinfo {
  627. color: #000;
  628. font-size: 25rpx;
  629. white-space: nowrap;
  630. }
  631. .ico,
  632. .txtinfo {
  633. vertical-align: middle;
  634. }
  635. &.top10{
  636. margin-top: -2rpx;
  637. }
  638. }
  639. // 账户信息
  640. .acc_info {
  641. width: 100%;
  642. overflow: hidden;
  643. background: url("http://teaclub.oss-cn-chengdu.aliyuncs.com/img/31.png");
  644. background-size: 100% 100%;
  645. border-radius: 16rpx;
  646. padding: 36rpx 0;
  647. box-sizing: border-box;
  648. margin-top: 38rpx;
  649. .i_num {
  650. text-align: center;
  651. font-size: 32rpx;
  652. width: 50%;
  653. p {
  654. color: #BE7329;
  655. }
  656. .ico {
  657. width: 42rpx;
  658. height: 42rpx;
  659. margin-right: 12rpx;
  660. }
  661. .dinB {
  662. margin-top: 14rpx;
  663. font-size: 40rpx;
  664. }
  665. .tc {
  666. text-align: center;
  667. }
  668. }
  669. }
  670. .acc_box{
  671. padding: 36rpx;
  672. }
  673. .acc_info_next{
  674. &_item{
  675. width: 49%;
  676. color: #276727;
  677. font-weight: 550;
  678. box-sizing: border-box;
  679. padding: 20rpx;
  680. background: url("http://teaclub.oss-cn-chengdu.aliyuncs.com/img/11.png");
  681. background-size: 100% 100%;
  682. .ico {
  683. width: 42rpx;
  684. height: 42rpx;
  685. // margin-right: 12rpx;
  686. }
  687. &_bottom{
  688. font-size: 30rpx;
  689. font-weight: 600;
  690. }
  691. }
  692. &_item:last-child{
  693. color: #0B414D;
  694. background: url("http://teaclub.oss-cn-chengdu.aliyuncs.com/img/12.png");
  695. background-size: 100% 100%;
  696. // .acc_info_next_item_bottom{
  697. // font-size: 30rpx;
  698. // font-weight: 600;
  699. // }
  700. }
  701. }
  702. // 账户信息-end
  703. // 功能列表
  704. .more {
  705. font-size: 24rpx;
  706. color: #999999;
  707. }
  708. .fun_con {
  709. width: 100%;
  710. overflow: hidden;
  711. }
  712. .fun_text {
  713. font-size: 24rpx;
  714. color: #333333;
  715. }
  716. .fun_list {
  717. width: 25%;
  718. }
  719. .fun_list button::after {
  720. border: 0 !important;
  721. }
  722. .more_img {
  723. width: 12rpx;
  724. height: 20rpx;
  725. margin-left: 11rpx;
  726. }
  727. .fun_img {
  728. width: 50rpx;
  729. height: 50rpx;
  730. margin-bottom: 10rpx;
  731. }
  732. .fun_container {
  733. width: 100%;
  734. overflow: hidden;
  735. padding: 0 30rpx;
  736. box-sizing: border-box;
  737. }
  738. .fun_title {
  739. padding: 0 30rpx;
  740. font-size: 32rpx;
  741. color: #333;
  742. font-weight: bold;
  743. }
  744. .fun_tit {
  745. font-size: 28rpx;
  746. color: #666;
  747. font-weight: bold;
  748. padding-left: 36rpx;
  749. padding-right: 30rpx;
  750. }
  751. .fun {
  752. width: 100%;
  753. overflow: hidden;
  754. border-radius: 16rpx;
  755. background: #fff;
  756. padding: 30rpx 0;
  757. box-sizing: border-box;
  758. }
  759. .user_level {
  760. margin-top: 10rpx;
  761. background: linear-gradient(to right, #ffeabd, #ffc479);
  762. padding: 6rpx 20rpx;
  763. border-radius: 6rpx;
  764. overflow: hidden;
  765. .level_img {
  766. width: 38rpx;
  767. height: 30rpx;
  768. z-index: 30;
  769. }
  770. .level_text {
  771. color: #6b2909;
  772. font-size: 28rpx;
  773. margin-left: 12rpx;
  774. display: inline-block;
  775. height: 30rpx;
  776. line-height: 30rpx;
  777. }
  778. .level_img,
  779. .level_text {
  780. float: left;
  781. }
  782. }
  783. .moarbtn {
  784. font-size: 22rpx;
  785. color: #999;
  786. .iconfont {
  787. text-decoration-skip: 20rpx;
  788. margin-left: 6rpx;
  789. color: #999;
  790. }
  791. text {
  792. vertical-align: middle;
  793. }
  794. }
  795. // 功能列表-end
  796. .notice_swiper {
  797. height: 40rpx;
  798. // padding-left: 20rpx;
  799. font-size: 28rpx;
  800. float: left;
  801. box-sizing: border-box;
  802. min-width: 430rpx;
  803. .not_list {
  804. min-width: 430rpx;
  805. }
  806. .not_ico {
  807. width: 30rpx;
  808. font-size: 28rpx;
  809. color: #999;
  810. }
  811. .not_list,
  812. .not_ico {
  813. display: inline-block;
  814. vertical-align: middle;
  815. height: 40rpx;
  816. line-height: 40rpx;
  817. }
  818. }
  819. .confim {
  820. width: 90%;
  821. height: 80rpx;
  822. border-radius: 40rpx;
  823. background: #2db389;
  824. color: #fff;
  825. font-size: 26rpx;
  826. margin: 44rpx auto 0;
  827. }
  828. </style>