index.vue 23 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115
  1. <template>
  2. <view class="ucenter-page">
  3. <keep-alive>
  4. <MyTabBar @tab-switch="onTabSwitch" :actived="actived"></MyTabBar>
  5. </keep-alive>
  6. <view class="top">
  7. <view class="profile-info" @tap="goLogin">
  8. <image class="avatar"
  9. :src="userInfo.avatarUrl ? userInfo.avatarUrl : '/static/images/new/icon-user.png'"
  10. mode="aspectFit"></image>
  11. <view class="info">
  12. <view class="user-name-wrapper">
  13. <text class="name">{{ userInfo.nickName }}</text>
  14. <view class="jz-badge" v-if="hasLogin && isMember">J</view>
  15. </view>
  16. <view class="no-login" v-if="!hasLogin ">
  17. <text class="no-login-area">点击登录账号</text>
  18. </view>
  19. <text class="cert">{{ userInfo.mobile }}</text>
  20. <!-- <button v-if="!issign" @tap="wxLogin" class="plus">完善信息</button> -->
  21. </view>
  22. </view>
  23. </view>
  24. <view class="container">
  25. <!-- 我的订单 -->
  26. <view class="order-block">
  27. <view class="order-module">
  28. <view class="tool-item" @tap="goOrderIndex" data-index="1" data-route="/pages/ucenter/order/order">
  29. <image class="tool-img" mode="aspectFit" src="@/static/images/my/awaitPay.png"></image>
  30. <text class="tool-text">待付款</text>
  31. </view>
  32. <view class="tool-item" @tap="goOrderIndex" data-index="2" data-route="/pages/ucenter/order/order">
  33. <image class="tool-img" mode="aspectFit" src="@/static/images/my/service.png"></image>
  34. <text class="tool-text">服务中</text>
  35. </view>
  36. <view class="tool-item" @tap="goAftersaleList">
  37. <image class="tool-img" mode="aspectFit" src="@/static/images/my/refunds.png"></image>
  38. <text class="tool-text">退款售后</text>
  39. </view>
  40. <image class="devide-img" mode="aspectFit"
  41. src="https://jzmall.lifejingzhi.com/file/jzmall/weixin/ui/icon-devide.png"></image>
  42. <view class="tool-item" @tap="goOrderIndex" data-index="0" data-route="/pages/ucenter/order/order">
  43. <image class="tool-img" mode="aspectFit" src="@/static/images/my/allOrder.png"></image>
  44. <text class="tool-text">全部订单</text>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="middle-module-wrapper">
  49. <view class="middle-module">
  50. <view class="tool-item" @tap="goCollect">
  51. <image class="tool-img" mode="aspectFit"
  52. src="https://jzmall.lifejingzhi.com/file/jzmall/weixin/ui/icon-star.png"></image>
  53. <view class="line-right">
  54. <text class="tool-text">收藏商品</text>
  55. <image class="arrow" mode="aspectFit"
  56. src="https://mall.zhaijieshi.cc/file/wx-dy/arrow-grey.png"></image>
  57. </view>
  58. </view>
  59. <view class="tool-item" @tap="goCoupon">
  60. <image class="tool-img" mode="aspectFit"
  61. src="https://jzmall.lifejingzhi.com/file/jzmall/weixin/ui/icon-coupon.png"></image>
  62. <view class="line-right">
  63. <text class="tool-text">优惠券</text>
  64. <image class="arrow" mode="aspectFit"
  65. src="https://mall.zhaijieshi.cc/file/wx-dy/arrow-grey.png"></image>
  66. </view>
  67. </view>
  68. <view class="tool-item" @tap="goAddress">
  69. <image class="tool-img" mode="aspectFit"
  70. src="https://jzmall.lifejingzhi.com/file/jzmall/weixin/ui/icon-address.png"></image>
  71. <view class="line-right">
  72. <text class="tool-text">服务地址</text>
  73. <image class="arrow" mode="aspectFit"
  74. src="https://mall.zhaijieshi.cc/file/wx-dy/arrow-grey.png"></image>
  75. </view>
  76. </view>
  77. <view class="tool-item" @tap="goIm">
  78. <image class="tool-img" mode="aspectFit"
  79. src="https://jzmall.lifejingzhi.com/file/jzmall/weixin/ui/icon-kf.png"></image>
  80. <view class="line-right">
  81. <text class="tool-text">联系客服</text>
  82. <image class="arrow" mode="aspectFit"
  83. src="https://mall.zhaijieshi.cc/file/wx-dy/arrow-grey.png"></image>
  84. </view>
  85. </view>
  86. <view class="tool-item" @tap="goHelp">
  87. <image class="tool-img" mode="aspectFit"
  88. src="https://jzmall.lifejingzhi.com/file/jzmall/weixin/ui/icon-info.png"></image>
  89. <view class="line-right">
  90. <text class="tool-text">常见问题</text>
  91. <image class="arrow" mode="aspectFit"
  92. src="https://mall.zhaijieshi.cc/file/wx-dy/arrow-grey.png"></image>
  93. </view>
  94. </view>
  95. <view class="tool-item" @tap="aboutUs">
  96. <image class="tool-img" mode="aspectFit"
  97. src="https://jzmall.lifejingzhi.com/file/jzmall/weixin/ui/icon-about.png"></image>
  98. <view class="line-right">
  99. <text class="tool-text">关于我们</text>
  100. <image class="arrow" mode="aspectFit"
  101. src="https://mall.zhaijieshi.cc/file/wx-dy/arrow-grey.png"></image>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. <view class="switchaccount" v-if="hasLogin" @tap="exitLogin" data-type="1">切换账号</view>
  107. <view class="logout" v-if="hasLogin" @tap="exitLogin" data-type="2">退出登录</view>
  108. <view class="kouhao">
  109. <!-- <image src="https://mall.zhaijieshi.cc/file/wx-huawang/db.png" mode="aspectFit" /> -->
  110. </view>
  111. </view>
  112. </view>
  113. </template>
  114. <script>
  115. var util = require('../../../../utils/util.js');
  116. var api = require('../../../../config/api.js');
  117. var user = require('../../../../utils/user.js');
  118. var app = getApp();
  119. export default {
  120. data() {
  121. return {
  122. actived: 2,
  123. userInfo: {
  124. nickName: '未登录',
  125. avatarUrl: '/static/images/new/icon-user.png',
  126. isDis: false,
  127. mobile: ''
  128. },
  129. order: {
  130. unpaid: 0,
  131. unship: 0,
  132. unrecv: 0,
  133. uncomment: 0
  134. },
  135. hasLogin: false,
  136. isdis: false,
  137. //是否分销员
  138. issign: true,
  139. //是否注册完成了信息,
  140. //是否是会员
  141. isMember: false,
  142. selected: 0,
  143. collectCount: '',
  144. couponCount: ''
  145. };
  146. },
  147. onLoad: function(options) {
  148. // 页面初始化 options为页面跳转所带来的参数
  149. console.info('pages/tabBar/ucenter/index/index onload');
  150. },
  151. onReady: function() {},
  152. onShow: function() {
  153. //获取用户的登录信息
  154. if (app.globalData.hasLogin) {
  155. let userInfo = uni.getStorageSync('userInfo');
  156. this.setData({
  157. userInfo: userInfo,
  158. hasLogin: true
  159. });
  160. app.globalData.userInfo = userInfo;
  161. let that = this;
  162. util.request(api.UserIndex).then(function(res) {
  163. if (res.errno === 0) {
  164. console.log(res);
  165. that.setData({
  166. collectCount: res.data.collectCount,
  167. couponCount: res.data.couponCount,
  168. order: res.data.order,
  169. isdis: res.data.isdis,
  170. issign: res.data.issign,
  171. isMember: res.data.level == '1' ? true : false
  172. });
  173. app.globalData.isMember = res.data.level == '1' ? true : false;
  174. }
  175. });
  176. }
  177. },
  178. onHide: function() {
  179. // 页面隐藏
  180. },
  181. onUnload: function() {
  182. // 页面关闭
  183. },
  184. methods: {
  185. onTabSwitch(index) {
  186. console.log('Switched to tab index:', index);
  187. // 根据索引进行页面跳转或逻辑处理
  188. if (index == 0) {
  189. uni.reLaunch({
  190. url: "/pages/index/index"
  191. })
  192. } else if (index == 1) {
  193. uni.navigateTo({
  194. url: "/pages/oneToone/1to1"
  195. })
  196. } else {
  197. return
  198. }
  199. },
  200. goReferee() {
  201. if (this.hasLogin) {
  202. uni.navigateTo({
  203. url: '/pages/referee/index'
  204. });
  205. } else {
  206. uni.navigateTo({
  207. url: '/pages/auth/login/login'
  208. });
  209. }
  210. },
  211. goAftersaleList() {
  212. // console.log('来了');
  213. if (this.hasLogin) {
  214. uni.navigateTo({
  215. url: '/pages/ucenter/aftersaleList/aftersaleList'
  216. });
  217. } else {
  218. uni.navigateTo({
  219. url: '/pages/auth/login/login'
  220. });
  221. }
  222. },
  223. goLogin() {
  224. if (!this.hasLogin) {
  225. uni.navigateTo({
  226. url: '/pages/auth/login/login'
  227. });
  228. }
  229. },
  230. goOrder() {
  231. if (this.hasLogin) {
  232. try {
  233. uni.setStorageSync('tab', 0);
  234. } catch (e) {
  235. console.log('CatchClause', e);
  236. console.log('CatchClause', e);
  237. }
  238. uni.navigateTo({
  239. url: '/pages/ucenter/order/order'
  240. });
  241. } else {
  242. uni.navigateTo({
  243. url: '/pages/auth/login/login'
  244. });
  245. }
  246. },
  247. goOrderIndex(e) {
  248. if (this.hasLogin) {
  249. let tab = e.currentTarget.dataset.index;
  250. let route = e.currentTarget.dataset.route;
  251. uni.navigateTo({
  252. url: '/pages/ucenter/order/order?tab=' + tab
  253. });
  254. } else {
  255. uni.navigateTo({
  256. url: '/pages/auth/login/login'
  257. });
  258. }
  259. },
  260. goSign() {
  261. uni.navigateTo({
  262. url: '/pages/ucenter/parter/sign/index'
  263. });
  264. },
  265. goStar() {
  266. if (this.hasLogin) {
  267. if (this.isdis) {
  268. let url = '/pages/ucenter/parter/index';
  269. uni.navigateTo({
  270. url: url
  271. });
  272. } else {
  273. uni.navigateTo({
  274. url: '/pages/ucenter/parter/join/joinapply'
  275. });
  276. }
  277. } else {
  278. uni.navigateTo({
  279. url: '/pages/auth/login/login'
  280. });
  281. }
  282. },
  283. goCoupon() {
  284. if (this.hasLogin) {
  285. uni.navigateTo({
  286. url: '/pages/ucenter/couponList/couponList'
  287. });
  288. } else {
  289. uni.navigateTo({
  290. url: '/pages/auth/login/login'
  291. });
  292. }
  293. },
  294. goGroupon() {
  295. if (this.hasLogin) {
  296. uni.navigateTo({
  297. url: '/pages/groupon/myGroupon/myGroupon'
  298. });
  299. } else {
  300. uni.navigateTo({
  301. url: '/pages/auth/login/login'
  302. });
  303. }
  304. },
  305. goCollect() {
  306. if (this.hasLogin) {
  307. uni.navigateTo({
  308. url: '/pages/ucenter/collect/collect'
  309. });
  310. } else {
  311. uni.navigateTo({
  312. url: '/pages/auth/login/login'
  313. });
  314. }
  315. },
  316. goFeedback(e) {
  317. if (this.hasLogin) {
  318. uni.navigateTo({
  319. url: '/pages/ucenter/feedback/feedback'
  320. });
  321. } else {
  322. uni.navigateTo({
  323. url: '/pages/auth/login/login'
  324. });
  325. }
  326. },
  327. goRegistr() {
  328. if (this.hasLogin) {
  329. uni.navigateTo({
  330. url: '/pages/auth/register/register'
  331. });
  332. } else {
  333. uni.navigateTo({
  334. url: '/pages/auth/login/login'
  335. });
  336. }
  337. },
  338. goFootprint() {
  339. if (this.hasLogin) {
  340. uni.navigateTo({
  341. url: '/pages/ucenter/footprint/footprint'
  342. });
  343. } else {
  344. uni.navigateTo({
  345. url: '/pages/auth/login/login'
  346. });
  347. }
  348. },
  349. goAddress() {
  350. if (this.hasLogin) {
  351. uni.navigateTo({
  352. url: '/pages/ucenter/address/address'
  353. });
  354. } else {
  355. uni.navigateTo({
  356. url: '/pages/auth/login/login'
  357. });
  358. }
  359. },
  360. wxLogin: function() {
  361. let that = this;
  362. console.log();
  363. uni.getUserProfile({
  364. desc: '用于完善会员资料',
  365. // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
  366. success: (res) => {
  367. console.log(res);
  368. let e = res;
  369. if (e.userInfo == null) {
  370. uni.showToast({
  371. title: '未授权,无法完善信息',
  372. icon: 'success',
  373. duration: 3000
  374. });
  375. return;
  376. }
  377. e.userInfo.encryptedData = e.encryptedData;
  378. user.loginByWeixin(e.userInfo)
  379. .then(function(res) {
  380. app.globalData.userInfo = res.data.userInfo;
  381. uni.setStorageSync('userInfo', res.data.userInfo);
  382. that.setData({
  383. issign: true,
  384. userInfo: res.data.userInfo
  385. });
  386. uni.showToast({
  387. title: '信息完善成功',
  388. icon: 'success',
  389. duration: 3000
  390. });
  391. })
  392. .catch((err) => {
  393. console.info(err);
  394. uni.showToast({
  395. title: '请求失败,稍后再试',
  396. icon: 'success',
  397. duration: 3000
  398. });
  399. });
  400. }
  401. });
  402. },
  403. goAfterSale: function() {
  404. if (this.hasLogin) {
  405. uni.navigateTo({
  406. url: '/pages/ucenter/aftersaleList/aftersaleList'
  407. });
  408. } else {
  409. uni.navigateTo({
  410. url: '/pages/auth/login/login'
  411. });
  412. }
  413. },
  414. aboutUs: function() {
  415. uni.navigateTo({
  416. url: '/pages/ucenter/about/about'
  417. });
  418. },
  419. goHelp: function() {
  420. uni.navigateTo({
  421. url: '/pages/ucenter/help/help'
  422. });
  423. },
  424. createQrcode: function() {
  425. //二维码生成
  426. util.request(
  427. api.QrCodeCreate, {
  428. path: '/pages/index/index'
  429. },
  430. 'POST'
  431. ).then(function(res) {
  432. console.log(res);
  433. uni.previewImage({
  434. current: res.data.imgUrl,
  435. // 当前显示图片的http链接
  436. urls: [res.data.imgUrl] // 需要预览的图片http链接列表
  437. });
  438. });
  439. },
  440. exitLogin: function(e) {
  441. let type = e.target.dataset.type;
  442. let msg = type == 1 ? '是否切换账号?' : '退出登录?';
  443. uni.showModal({
  444. title: '',
  445. confirmColor: '#D77958',
  446. content: msg,
  447. success: function(res) {
  448. if (!res.confirm) {
  449. return;
  450. }
  451. util.request(api.AuthLogout, {}, 'POST');
  452. app.globalData = {};
  453. uni.removeStorageSync('token');
  454. uni.removeStorageSync('userInfo');
  455. console.log(type);
  456. if (type == 1) {
  457. //切换账号
  458. uni.navigateTo({
  459. url: '/pages/auth/login/login?type=' + type
  460. });
  461. } else {
  462. uni.reLaunch({
  463. url: '/pages/tabBar/ucenter/index/index'
  464. });
  465. }
  466. }
  467. });
  468. },
  469. goMemberCenter() {
  470. uni.navigateTo({
  471. url: '/pages/member/memberCenter/memberCenter'
  472. });
  473. },
  474. goBuyMember() {
  475. uni.navigateTo({
  476. url: '/pages/member/buyMember/buyMember'
  477. });
  478. },
  479. goIm() {
  480. uni.navigateTo({
  481. url: '/pages/im/im'
  482. });
  483. }
  484. }
  485. };
  486. </script>
  487. <style>
  488. page {
  489. height: 100%;
  490. width: 100%;
  491. background: #f4f4f4;
  492. }
  493. .container {
  494. background: transparent;
  495. height: auto;
  496. width: 100%;
  497. padding: 0 30rpx 40rpx;
  498. }
  499. .tabbar.data-v-56e9c485 {
  500. border: none !important;
  501. }
  502. .top {
  503. height: 274rpx;
  504. background: url('@/static/images/my/rectangle6.png') no-repeat center bottom;
  505. background-size: 750rpx 274rpx;
  506. }
  507. .profile-info {
  508. display: flex;
  509. align-items: center;
  510. padding: 30rpx 0 0 42rpx;
  511. font-size: 28rpx;
  512. }
  513. .profile-info-backimg {
  514. width: 100%;
  515. height: 180rpx;
  516. /* z-index: -1; */
  517. position: absolute;
  518. }
  519. .profile-info .avatar {
  520. height: 108rpx;
  521. width: 108rpx;
  522. border-radius: 50%;
  523. border: 2rpx solid #fff;
  524. }
  525. .profile-info .info {
  526. flex: 1;
  527. height: 108rpx;
  528. padding: 16rpx 0 0 48rpx;
  529. color: #fff;
  530. margin: 0 20rpx 0 0;
  531. }
  532. .user-name-wrapper {
  533. height: 36rpx;
  534. margin: 0 0 20rpx 0;
  535. display: flex;
  536. align-items: center;
  537. color: #000;
  538. }
  539. .profile-info .name {
  540. font-size: 34rpx;
  541. margin-bottom: 5rpx;
  542. max-width: 340rpx;
  543. overflow: hidden;
  544. white-space: nowrap;
  545. text-overflow: ellipsis;
  546. }
  547. .profile-info .cert {
  548. display: flex;
  549. height: 26rpx;
  550. line-height: 26rpx;
  551. font-size: 26rpx;
  552. color: #d77958;
  553. }
  554. .profile-info .plus {
  555. font-size: 21.5rpx;
  556. width: 120rpx;
  557. padding-left: 2rpx;
  558. padding-right: 2rpx;
  559. line-height: 40rpx;
  560. margin: 4rpx;
  561. }
  562. .profile-info-img-star {
  563. width: 10rpx;
  564. height: 10rpx;
  565. }
  566. .profile-info .level {
  567. display: block;
  568. height: 30rpx;
  569. line-height: 30rpx;
  570. margin-bottom: 10rpx;
  571. color: #7f7f7f;
  572. font-size: 30rpx;
  573. }
  574. .profile-info-qr-image {
  575. width: 80rpx;
  576. height: 80rpx;
  577. margin-top: 30rpx;
  578. margin-left: 150rpx;
  579. }
  580. .process {
  581. border-radius: 2rpx;
  582. }
  583. .user_tool {
  584. height: 250rpx;
  585. background: #fff;
  586. border-radius: 10rpx;
  587. margin: 15rpx 0;
  588. }
  589. .user_tool_row {
  590. height: 86rpx;
  591. line-height: 86rpx;
  592. }
  593. .user_tool_row_title {
  594. height: 86rpx;
  595. font-weight: 550;
  596. line-height: 86rpx;
  597. margin-left: 35rpx;
  598. font-size: 32rpx;
  599. color: #000;
  600. }
  601. .user_tool_row_title_left {
  602. float: left;
  603. }
  604. .user_tool_column {
  605. height: 140rpx;
  606. display: flex;
  607. justify-content: center;
  608. align-items: center;
  609. }
  610. .user_tool_column_item {
  611. width: 25%;
  612. height: 100rpx;
  613. background: #fff;
  614. text-align: center;
  615. position: relative;
  616. margin-top: 5rpx;
  617. }
  618. .user_tool_column_item_text {
  619. margin-top: 5rpx;
  620. font-size: 26rpx;
  621. color: #555;
  622. }
  623. .user_tool_column_item_image {
  624. width: 50rpx;
  625. height: 50rpx;
  626. margin-top: 5rpx;
  627. }
  628. .user_area {
  629. width: 100%;
  630. height: 226rpx;
  631. /* margin: 0 auto; */
  632. margin-top: -8rpx;
  633. background: #fff;
  634. }
  635. .user_row {
  636. height: 86rpx;
  637. line-height: 86rpx;
  638. border-bottom: 1px solid #fafafa;
  639. }
  640. .user_row_left {
  641. float: left;
  642. height: 86rpx;
  643. font-weight: 550;
  644. line-height: 86rpx;
  645. margin-left: 35rpx;
  646. font-size: 26rpx;
  647. letter-spacing: 1rpx;
  648. color: #000;
  649. font-size: 32rpx;
  650. }
  651. .user_row_right {
  652. /* border: 1px solid #757575; */
  653. float: right;
  654. height: 40rpx;
  655. width: 40rpx;
  656. font-weight: 550;
  657. line-height: 86rpx;
  658. margin-right: 30rpx;
  659. margin-top: 24rpx;
  660. }
  661. .user_column {
  662. /* border: 1px solid black; */
  663. height: 140rpx;
  664. display: flex;
  665. justify-content: center;
  666. align-items: center;
  667. }
  668. .user_column_item {
  669. width: 30%;
  670. height: 140rpx;
  671. background: #fff;
  672. text-align: center;
  673. position: relative;
  674. }
  675. .user_column_item_badge {
  676. height: 30rpx;
  677. width: 30rpx;
  678. position: absolute;
  679. background: #b4282d;
  680. color: #fff;
  681. border-radius: 50%;
  682. margin-top: 20rpx;
  683. margin-left: 40rpx;
  684. font-size: 20rpx;
  685. }
  686. .user_column_item_image {
  687. width: 50rpx;
  688. height: 50rpx;
  689. margin-top: 30rpx;
  690. }
  691. .user_column_item_text {
  692. /* border: 1px solid black; */
  693. margin-top: 5rpx;
  694. font-size: 24rpx;
  695. color: #555;
  696. /*color: #252a48;*/
  697. }
  698. .separate {
  699. background: #e0e3da;
  700. width: 100%;
  701. height: 6rpx;
  702. }
  703. .user_column_item_phone {
  704. width: 30%;
  705. height: 140rpx;
  706. text-align: center;
  707. display: flex;
  708. justify-content: center;
  709. align-items: center;
  710. flex-wrap: wrap;
  711. float: left;
  712. background: #fff;
  713. border-radius: 0;
  714. }
  715. .user_column_item_phone::after {
  716. border: none;
  717. border-radius: 0;
  718. }
  719. .logout {
  720. margin-top: 28rpx;
  721. height: 84rpx;
  722. width: 100%;
  723. line-height: 84rpx;
  724. text-align: center;
  725. background: #fff;
  726. font-size: 28rpx;
  727. border-radius: 10rpx;
  728. }
  729. .switchaccount {
  730. margin-top: 28rpx;
  731. height: 84rpx;
  732. width: 100%;
  733. line-height: 84rpx;
  734. text-align: center;
  735. background: #fff;
  736. font-size: 28rpx;
  737. color: #d77958;
  738. border-radius: 10rpx;
  739. }
  740. /* 新版页面 */
  741. .main-module {
  742. border-radius: 10rpx;
  743. background: #fff;
  744. height: 106rpx;
  745. margin: 28rpx 0;
  746. padding: 24rpx 40rpx 16rpx;
  747. display: flex;
  748. justify-content: space-around;
  749. align-items: center;
  750. }
  751. .coupon-block,
  752. .favor-good {
  753. display: flex;
  754. flex-direction: column;
  755. height: 66rpx;
  756. justify-content: space-between;
  757. align-items: center;
  758. flex: 1;
  759. line-height: 24rpx;
  760. }
  761. .devide-line {
  762. height: 80rpx;
  763. width: 2rpx;
  764. background: #bbb;
  765. }
  766. .main-module .num {
  767. font-weight: bold;
  768. font-size: 24rpx;
  769. }
  770. .main-module .module-text {
  771. color: #000;
  772. font-size: 24rpx;
  773. }
  774. .order-block {
  775. height: 180rpx;
  776. border-radius: 14rpx;
  777. background: #fff;
  778. margin: -80rpx 0 30rpx;
  779. width: 690rpx;
  780. }
  781. .my-order-title {
  782. height: 28rpx;
  783. font-size: 26rpx;
  784. display: flex;
  785. justify-content: space-between;
  786. align-items: center;
  787. margin: 0 0 40rpx 0;
  788. }
  789. .my-order-title>view:first-child {
  790. font-weight: bold;
  791. }
  792. .whole-order {
  793. color: #85868a;
  794. font-size: 24rpx;
  795. display: flex;
  796. align-items: center;
  797. }
  798. .order-module {
  799. height: 180rpx;
  800. display: flex;
  801. justify-content: space-between;
  802. align-items: center;
  803. padding: 0 40rpx;
  804. }
  805. .order-module .devide-img {
  806. width: 12rpx;
  807. height: 134rpx;
  808. margin: 0 -24rpx 0 -20rpx;
  809. }
  810. .tool-module {
  811. height: 80rpx;
  812. /* padding:24rpx 22rpx; */
  813. display: flex;
  814. justify-content: space-between;
  815. align-items: center;
  816. /* margin:28rpx 0; */
  817. }
  818. .middle-module-wrapper {
  819. padding: 10rpx 30rpx 8rpx 26rpx;
  820. border-radius: 14rpx;
  821. background: #fff;
  822. }
  823. .middle-module .tool-item {
  824. display: flex;
  825. justify-content: space-between;
  826. align-items: center;
  827. flex-direction: row;
  828. width: 644rpx;
  829. height: 84rpx;
  830. }
  831. .middle-module .tool-item:last-child .line-right {
  832. border: none;
  833. }
  834. .line-right {
  835. flex: 1;
  836. display: flex;
  837. justify-content: space-between;
  838. align-items: center;
  839. border-bottom: 1rpx solid #efefef;
  840. height: 84rpx;
  841. }
  842. .middle-module .tool-img {
  843. width: 28rpx;
  844. height: 28rpx;
  845. margin: 0 18rpx 0 0;
  846. }
  847. .line-right .arrow {
  848. width: 28rpx;
  849. height: 20rpx;
  850. opacity: 0.8;
  851. }
  852. .tool-img {
  853. width: 72rpx;
  854. height: 58rpx;
  855. margin-bottom: 20rpx;
  856. }
  857. .tool-item {
  858. display: flex;
  859. justify-content: space-between;
  860. align-items: center;
  861. flex-direction: column;
  862. /* flex:1; */
  863. width: 100rpx;
  864. }
  865. .tool-item .tool-text {
  866. font-size: 28rpx;
  867. line-height: 28rpx;
  868. color: #1e1e1e;
  869. }
  870. .order-block .tool-item .tool-text {
  871. font-size: 24rpx;
  872. line-height: 24rpx;
  873. }
  874. .middle-module .tool-item .tool-text {
  875. color: #343333;
  876. }
  877. .tool-item .middle-module {}
  878. .tool-module.bottom-module {
  879. margin: 40rpx 0 0;
  880. }
  881. .member-crown {
  882. width: 48rpx;
  883. height: 48rpx;
  884. z-index: 999;
  885. }
  886. .jz-badge {
  887. width: 34rpx;
  888. height: 34rpx;
  889. background: linear-gradient(0deg, #f1e3c8 0%, #e6c162 100%);
  890. border-radius: 50%;
  891. margin: 0 0 14rpx 0;
  892. font-size: 32rpx;
  893. color: #5d3a11;
  894. line-height: 32rpx;
  895. text-align: center;
  896. margin: 0 0 0 14rpx;
  897. }
  898. .jz-member-wrappe {
  899. max-width: 210rpx;
  900. }
  901. .not-member {
  902. width: 210rpx;
  903. height: 42rpx;
  904. background: linear-gradient(78deg, #f1e3c8, #e6c162);
  905. border-radius: 22rpx 0 0 22rpx;
  906. display: flex;
  907. align-items: center;
  908. justify-content: flex-end;
  909. font-size: 24rpx;
  910. color: #5d3a11;
  911. }
  912. .is-member {
  913. width: 200rpx;
  914. height: 48rpx;
  915. display: flex;
  916. align-items: center;
  917. font-size: 24rpx;
  918. color: #5d3a11;
  919. }
  920. .is-member .is-member-right {
  921. background: url('https://jzmall.lifejingzhi.com/file/jzmall/weixin/member/member-star1.png') no-repeat center center;
  922. background-size: 100% 100%;
  923. height: 48rpx;
  924. display: flex;
  925. align-items: center;
  926. width: 200rpx;
  927. padding-left: 52rpx;
  928. }
  929. .is-member .is-member-right text {
  930. font-size: 24rpx;
  931. }
  932. .recommend-module {
  933. height: 750rpx;
  934. height: 148rpx;
  935. padding: 0 28rpx;
  936. margin: -28rpx 0 0;
  937. background: #09afff;
  938. }
  939. .recommend-main {
  940. width: 696rpx;
  941. height: 148rpx;
  942. padding: 0 28rpx;
  943. background: url('https://jzmall.lifejingzhi.com/file/jzmall/weixin/member/recommend-bg.png') no-repeat center top;
  944. background-size: 100% 100%;
  945. color: #fff;
  946. }
  947. .recommend-top {
  948. height: 84rpx;
  949. display: flex;
  950. font-size: 30rpx;
  951. font-weight: bold;
  952. align-items: center;
  953. justify-content: space-between;
  954. }
  955. .recommend-top image {
  956. width: 42rpx;
  957. height: 42rpx;
  958. margin: 0 30rpx 0 0;
  959. }
  960. .recommend-top>text {
  961. flex: 1;
  962. }
  963. .recomend-center {
  964. width: 168rpx;
  965. height: 44rpx;
  966. background: #efd671;
  967. border-radius: 22rpx;
  968. display: flex;
  969. align-items: center;
  970. justify-content: center;
  971. font-size: 24rpx;
  972. color: #2a2a2a;
  973. }
  974. .adv-text {
  975. height: 64rpx;
  976. line-height: 64rpx;
  977. font-size: 24rpx;
  978. }
  979. .no-login {
  980. width: 158rpx;
  981. height: 45rpx;
  982. background: #E9C9AF;
  983. border-radius: 23rpx;
  984. opacity: 0.7;
  985. line-height: 45rpx;
  986. padding: 0 15rpx;
  987. }
  988. .no-login-area {
  989. width: 126rpx;
  990. height: 21rpx;
  991. font-family: Alibaba PuHuiTi 2.0;
  992. font-weight: normal;
  993. font-size: 21rpx;
  994. color: #333333;
  995. }
  996. .kouhao {
  997. margin: 30rpx 145rpx 200rpx;
  998. width: 451rpx;
  999. height: 135rpx;
  1000. background-image: url('https://mall.zhaijieshi.cc/file/wx-huawang/db.png');
  1001. background-size: cover;
  1002. background-position: center;
  1003. }
  1004. </style>