indexOld.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848
  1. <template>
  2. <!-- 代理商页面 -->
  3. <view v-if="!isFirstload" class="container" :style="appThemeStyle">
  4. <!-- 页面头部 -->
  5. <view class="main-header">
  6. <image class="bg-image bg-dls" src="/static/background/zjx-bg.jpeg" mode="scaleToFill"></image>
  7. <!-- 用户信息 -->
  8. <view v-if="isLogin" class="user-info">
  9. <view class="user-avatar" @click="handlePersonal()">
  10. <image class="shalou-image" style="width: 50rpx; height: 50rpx" src="/static/background/woshou.png" mode="scaleToFill"></image>
  11. </view>
  12. <view class="user-content">
  13. <!-- 会员昵称 -->
  14. <view class="nick-name oneline-hide" @click="handlePersonal()">{{ userInfo.nick_name }}</view>
  15. <!-- 会员等级 -->
  16. <view v-if="$checkModule('user-grade') && userInfo.grade_id > 0 && userInfo.grade" class="user-grade">
  17. <view class="user-grade_icon">
  18. <image
  19. class="image"
  20. src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAA0lBMVEUAAAD/tjL/tzH/uDP/uC7/tjH/tzH/tzL/tTH+tTL+tjP/tDD/tTD+tzD/tjL/szD/uDH/tjL/tjL+tjD/tjT/szb/tzL/tTL+uTH+tjL/tjL/tjL/tTT/tjL/tjL+tjH/uTL/vDD/tjL/tjH/tzL9uS//tTL/nBr/sS7/tjH/ujL/szD/uTv+rzf/tzL+tzH+vDP+uzL+tjP+ry7+tDL9ki/7szf/sEX/tTL/tjL+tjL/tTH/tTT/tzH/tzL/tjP/sTX/uTP/wzX+rTn/vDX9vC8m8ckhAAAAOXRSTlMAlnAMB/vjxKWGMh0S6drMiVxPRkEY9PLy0ru0sKagmo5+dGtgVCMgBP716eXWyMGxqJGRe2o5KSmFNjaYAAABP0lEQVQ4y8XS13KDMBAF0AWDDe4t7r3ETu9lVxJgJ/n/X8rKAzHG5TE+Twz3zki7I/g/KXdghIbGJewrU4yzn08Ebgl6TuZzzuOC6W5es3HX6qsSz3NFShRU0MpucytDmOSpu3yULx3CA9RD1HjVedc0jSjqm6ZzhUjDsFDQhSp/OKj5GQvg0+ZCOixsbtDLAeTTOm/yGi8GyIphIVsgH737FEDV44LJa88IRKK/SetrwT9G/GUIr6vXjoy4GXn7+RboVXnghuSjaoGecwQxL2su3CwAKlO+QFoqxI4FMctHQhQd2OhxTu184jWUlI+rMTBTn1/IQcJHQ6GQdZ7pWiDaNdhTt330efISeiqYwQEzQpTlsURJLhzkEmpCPsERfeIUVyXr6MNuIyp5uziW6xURtt7hhGwzmMNJExfO4Bd9X0ZPqAxdNwAAAABJRU5ErkJggg=="
  21. >
  22. </image>
  23. </view>
  24. <view class="user-grade_name">
  25. <text>{{ userInfo.grade.name }}</text>
  26. </view>
  27. </view>
  28. <!-- 会员无等级时显示手机号 -->
  29. <view v-else class="mobile">{{ userInfo.mobile }}</view>
  30. </view>
  31. </view>
  32. <!-- 未登录 -->
  33. <view v-else class="user-info">
  34. <view class="user-avatar">
  35. <image class="user-img" style="width: 80rpx; height: 80rpx" src="/static/background/qiye.png" mode="scaleToFill"></image>
  36. </view>
  37. <view class="user-content">
  38. <view class="nick-name">{{ dlsInfoData.agentsname + ',' + '您好!' }}</view>
  39. <view class="login-tips">{{ dlsInfoData.agentscustomerid }}</view>
  40. <!-- <view class="login-tips">点击登录账号-</view> -->
  41. </view>
  42. </view>
  43. </view>
  44. <!-- 绑定手机号 -->
  45. <!-- <view v-show="!userInfoData.agentstaxnumber" class="my-mobile" @click="handleBindMobile()">
  46. <view class="info">点击绑定手机号;及实名证件信息 </view>
  47. <view class="btn-bind">去绑定</view>
  48. </view> -->
  49. <!-- 我的钱包 -->
  50. <view v-if="false" class="my-asset">
  51. <view class="asset-left flex-box dis-flex flex-x-around">
  52. <view v-if="$checkModule('market-recharge')" class="asset-left-item" style="max-width: 200rpx" @click="onTargetWallet">
  53. <view class="item-value dis-flex flex-x-center">
  54. <text class="oneline-hide">{{ isLogin ? assets.balance : '--' }}</text>
  55. </view>
  56. <view class="item-name dis-flex flex-x-center">
  57. <text>账户余额</text>
  58. </view>
  59. </view>
  60. <view v-if="$checkModule('market-points')" class="asset-left-item" @click="onTargetPoints">
  61. <view class="item-value dis-flex flex-x-center">
  62. <text class="oneline-hide">{{ isLogin ? assets.points : '--' }}</text>
  63. </view>
  64. <view class="item-name dis-flex flex-x-center">
  65. <text>{{ setting[SettingKeyEnum.POINTS.value].points_name }}</text>
  66. </view>
  67. </view>
  68. <view v-if="$checkModule('market-coupon')" class="asset-left-item" @click="onTargetMyCoupon">
  69. <view class="item-value dis-flex flex-x-center">
  70. <text class="oneline-hide">{{ isLogin ? assets.coupon : '--' }}</text>
  71. </view>
  72. <view class="item-name dis-flex flex-x-center">
  73. <text>优惠券</text>
  74. </view>
  75. </view>
  76. </view>
  77. <view v-if="$checkModule('market-recharge')" class="asset-right">
  78. <view class="asset-right-item" @click="onTargetWallet">
  79. <view class="item-icon dis-flex flex-x-center">
  80. <text class="iconfont icon-qianbao"></text>
  81. </view>
  82. <view class="item-name dis-flex flex-x-center">
  83. <text>我的钱包</text>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <!-- 绑定营业执照 -->
  89. <view v-if="!dlsInfoData.agentstaxnumber" class="my-mobile2" @click="handleLogin">
  90. <view class="info">还没有认证企业信息</view>
  91. <view class="btn-bind">点击完善</view>
  92. </view>
  93. <view v-else class="my-mobile-true">
  94. <i-shield-add theme="outline" style="margin-right: 10rpx" size="20" fill="#fff" :strokeWidth="3" strokeLinejoin="bevel" strokeLinecap="square" />
  95. <view class="info">企业已认证</view>
  96. </view>
  97. <!-- 我的服务 fff0 -->
  98. <view class="my-service" v-if="dlsInfoData.agentstaxnumber">
  99. <view class="service-title" @click="getCreateOpenid">
  100. <text>您的企业识别码</text>
  101. <text style="font-weight: 900">{{ dlsInfoData.agentsqym }}</text>
  102. </view>
  103. <view class="service-content uqrCodeBox">
  104. <view class="uqrCodeText" style="border: none"> 扫一扫下面的二维码图案 </view>
  105. <uqrcode
  106. ref="uqrcode"
  107. class="uqrcode"
  108. canvas-id="qrcode"
  109. :value="distribution"
  110. :options="{margin: 10, areaColor: '', foregroundColor: '', foregroundColor: '#0081ff'}"
  111. ></uqrcode>
  112. <view class="uqrCodeText" style="border: none" @click="getCreateOpenid"> 刷新 </view>
  113. <!-- <view class="uqrCodeText" @click="fuzhi(distribution)">
  114. <view class="textmsg">{{ distribution }}</view>
  115. <view class="texButton">复制链接</view>
  116. </view> -->
  117. </view>
  118. </view>
  119. <view class="r_flex_center fenxiao_order" @click="onTargetOrder()" v-if="dlsInfoData.agentstaxnumber">
  120. <view class="item-name">查看我的分销订单</view>
  121. </view>
  122. <!-- 退出登录 -->
  123. <view v-if="isLogin" class="my-logout">
  124. <view class="logout-btn" @click="handleLogout()">
  125. <text>退出登录</text>
  126. </view>
  127. </view>
  128. </view>
  129. </template>
  130. <script>
  131. import store from '@/store'
  132. import {inArray} from '@/utils/util'
  133. import AvatarImage from '@/components/avatar-image'
  134. import CustomerBtn from '@/components/customer-btn'
  135. import {setCartTabBadge} from '@/core/app'
  136. import SettingKeyEnum from '@/common/enum/setting/Key'
  137. import SettingModel from '@/common/model/Setting' // 网址设置接口
  138. import * as UserApi from '@/api/user'
  139. import * as OrderApi from '@/api/order'
  140. import {checkLogin, filterModules} from '@/core/app'
  141. import storage from '@/utils/storage'
  142. import * as AppApi from '@/api/app'
  143. import StoreModel from '@/common/model/Store'
  144. // 订单操作
  145. const orderNavbar = [
  146. {
  147. id: 'all',
  148. name: '分销订单',
  149. icon: 'qpdingdan'
  150. }
  151. // {
  152. // id: 'payment',
  153. // name: '待支付',
  154. // icon: 'daifukuan',
  155. // count: 0
  156. // },
  157. // {
  158. // id: 'delivery',
  159. // name: '待发货',
  160. // icon: 'daifahuo',
  161. // count: 0
  162. // },
  163. // {
  164. // id: 'comment',
  165. // name: '已经完成',
  166. // icon: 'daishouhuo',
  167. // count: 0
  168. // }
  169. ]
  170. /**
  171. * 我的服务
  172. * id: 标识; name: 标题名称; icon: 图标; type 类型(link和button); url: 跳转的链接
  173. */
  174. const service = [
  175. {
  176. id: 'address',
  177. name: '人脸核实',
  178. icon: 'shouhuodizhi',
  179. type: 'link',
  180. url: 'pages/address/index'
  181. },
  182. {
  183. id: 'coupon',
  184. name: '销户',
  185. icon: 'lingquan',
  186. type: 'link',
  187. url: 'pages/coupon/index',
  188. moduleKey: 'market-coupon'
  189. },
  190. {
  191. id: 'myCoupon',
  192. name: '变更套餐',
  193. icon: 'youhuiquan',
  194. type: 'link',
  195. url: 'pages/my-coupon/index',
  196. moduleKey: 'market-coupon'
  197. },
  198. {
  199. id: 'refund',
  200. name: '退换/售后',
  201. icon: 'shouhou',
  202. type: 'link',
  203. url: 'pages/refund/index',
  204. count: 0
  205. },
  206. {
  207. id: 'contact',
  208. name: '在线客服',
  209. icon: 'kefu',
  210. type: 'contact'
  211. },
  212. {
  213. id: 'points',
  214. name: '成为代理商',
  215. icon: 'jifen',
  216. type: 'link',
  217. url: 'pages/login/index',
  218. moduleKey: 'market-points'
  219. },
  220. {
  221. id: 'orderCenter',
  222. name: '订单中心',
  223. icon: 'order-c',
  224. type: 'link',
  225. url: 'pages/order/center'
  226. },
  227. {
  228. id: 'help',
  229. name: '我的帮助',
  230. icon: 'bangzhu',
  231. type: 'link',
  232. url: 'pages/help/index',
  233. moduleKey: 'content-help'
  234. }
  235. ]
  236. export default {
  237. components: {
  238. AvatarImage,
  239. CustomerBtn
  240. },
  241. // 计算属性
  242. computed: {
  243. // 计算属性的
  244. userInfoComputd: () => {
  245. return storage.get('wx_userinfo')
  246. }
  247. },
  248. data() {
  249. return {
  250. inArray,
  251. // 枚举类
  252. SettingKeyEnum,
  253. // 正在加载
  254. isLoading: true,
  255. // 首次加载
  256. isFirstload: true,
  257. // 是否已登录
  258. isLogin: false,
  259. // 系统设置
  260. setting: {},
  261. // 当前用户信息
  262. userInfo: {},
  263. // 账户资产
  264. assets: {
  265. balance: '--',
  266. points: '--',
  267. coupon: '--'
  268. },
  269. // 我的服务
  270. service,
  271. // 订单操作
  272. orderNavbar,
  273. // 当前用户待处理的订单数量
  274. todoCounts: {
  275. payment: 0,
  276. deliver: 0,
  277. received: 0
  278. },
  279. wx_qyid: storage.get('wx_qyid'),
  280. userInfoData: {},
  281. distribution: 'https://hnapi.kdboss.cn/pages/index/index'
  282. }
  283. },
  284. /**
  285. * 生命周期函数--监听页面显示
  286. */
  287. onLoad(options) {
  288. uni.stopPullDownRefresh()
  289. this.onRefreshPage()
  290. this.userInfoData = storage.get('wx_userinfo')
  291. if (!storage.get('wx_dlsinfo')) {
  292. this.getPageData()
  293. } else {
  294. this.dlsInfoData = storage.get('wx_dlsinfo') || {agentsname: '加载中', agentscustomerid: '加载中'}
  295. }
  296. },
  297. /**
  298. * 生命周期函数--监听页面显示
  299. */
  300. onShow(options) {
  301. // 获取图形验证码
  302. // this.getCaptcha()
  303. },
  304. methods: {
  305. // 刷新页面
  306. onRefreshPage() {
  307. // 更新购物车角标
  308. // setCartTabBadge()
  309. // 判断是否已登录
  310. // this.isLogin = checkLogin()
  311. // 获取页面数据
  312. this.getPageData()
  313. },
  314. chsCode() {
  315. this.distribution = ''
  316. this.distribution = 'https://hnapi.kdboss.cn/pages/index/index'
  317. },
  318. // 二维码链接
  319. async getCreateOpenid() {
  320. this.distribution = ''
  321. const resAgents = await AppApi.createOpenid({openid: storage.get('wx_openid')})
  322. this.distribution = resAgents.Data
  323. console.log('二维码连接', this.distribution)
  324. },
  325. // 复制文本
  326. fuzhi(value) {
  327. const oInput = document.createElement('input')
  328. oInput.value = value
  329. document.body.appendChild(oInput)
  330. oInput.select()
  331. document.execCommand('Copy')
  332. uni.showToast({
  333. title: '复制成功',
  334. icon: 'success',
  335. duration: 2000
  336. })
  337. },
  338. // 获取页面数据
  339. async getPageData(callback) {
  340. console.log('下拉刷新user')
  341. const app = this
  342. // 更新user信息
  343. await StoreModel.getCustomerData()
  344. // 更新二维码
  345. await this.getCreateOpenid()
  346. app.isFirstload = false
  347. uni.stopPullDownRefresh()
  348. },
  349. // 初始化我的服务数据
  350. async initService() {},
  351. // 初始化订单操作数据
  352. initOrderTabbar() {},
  353. // 获取商城设置
  354. getSetting() {
  355. return new Promise(async (resolve, reject) => {
  356. this.dlsInfoData = {agentsname: '加载中', agentscustomerid: '加载中'}
  357. const resAgents = await AppApi.getAgents({'agentsid.value': storage.get('wx_qyid')})
  358. console.log('更新代理商信息', resAgents)
  359. if (resAgents.Data) {
  360. storage.set('wx_dlsinfo', resAgents.Data.Data[0])
  361. this.dlsInfoData = storage.get('wx_dlsinfo')
  362. this.userInfoData = storage.get('wx_userinfo')
  363. // 如果不是代理商,跳转到注册页面
  364. if (this.userInfoData.customertype != '代理商') {
  365. this.$navTo('pages/firm/index')
  366. }
  367. resolve(true)
  368. } else {
  369. resolve(false)
  370. }
  371. })
  372. },
  373. // 获取当前用户信息
  374. getUserInfo() {
  375. const app = this
  376. return new Promise((resolve, reject) => {
  377. resolve(true)
  378. })
  379. },
  380. // 获取账户资产
  381. getUserAssets() {
  382. const app = this
  383. return new Promise((resolve, reject) => {
  384. resolve(true)
  385. })
  386. },
  387. // 获取当前用户待处理的订单数量
  388. getTodoCounts() {
  389. const app = this
  390. return new Promise((resolve, reject) => {
  391. resolve(true)
  392. })
  393. },
  394. // 跳转到登录页
  395. handleLogin() {
  396. this.$navTo('pages/firm/authentication/index')
  397. },
  398. // 跳转到绑定手机号页面
  399. handleBindMobile() {
  400. // this.$navTo('pages/user/bind/index')
  401. this.$navTo('pages/user/certificate/index')
  402. },
  403. // 跳转到修改个人信息页
  404. handlePersonal() {
  405. this.$navTo('pages/user/personal/index')
  406. },
  407. // 退出登录
  408. handleLogout() {
  409. const app = this
  410. uni.showModal({
  411. title: '友情提示',
  412. content: '您确定要退出登录吗?',
  413. success(res) {
  414. if (res.confirm) {
  415. store.dispatch('Logout', {}).then((result) => app.onRefreshPage())
  416. }
  417. }
  418. })
  419. },
  420. // 跳转到钱包页面
  421. onTargetWallet() {
  422. this.$toast('开发中,敬请期待')
  423. return
  424. this.$navTo('pages/wallet/index')
  425. },
  426. // 跳转到订单页
  427. onTargetOrder(item) {
  428. this.$navTo('pages/order/index', {
  429. dataType: 'all'
  430. })
  431. },
  432. // 跳转到我的积分页面
  433. onTargetPoints() {
  434. this.$toast('开发中,敬请期待')
  435. return
  436. this.$navTo('pages/points/log')
  437. },
  438. // 跳转到我的优惠券页
  439. onTargetMyCoupon() {
  440. this.$toast('开发中,敬请期待')
  441. return
  442. this.$navTo('pages/my-coupon/index')
  443. },
  444. // 跳转到服务页面
  445. handleService({url}) {
  446. console.log(url, 'url')
  447. this.$navTo(url)
  448. }
  449. },
  450. /**
  451. * 下拉刷新
  452. */
  453. onPullDownRefresh() {
  454. // 获取首页数据
  455. this.getPageData(() => {
  456. uni.stopPullDownRefresh()
  457. })
  458. }
  459. }
  460. </script>
  461. <style lang="scss" scoped>
  462. .user-img {
  463. border: 2px solid #0081ff;
  464. padding: 10rpx;
  465. border-radius: 100%;
  466. background: #a7e0fb;
  467. }
  468. .container {
  469. padding-bottom: 60rpx;
  470. height: 100vh;
  471. background: #fff;
  472. }
  473. // 页面头部
  474. .main-header {
  475. // background-color: #FBF7EF;
  476. position: relative;
  477. width: 100%;
  478. height: 280rpx;
  479. background-size: 100% 100%;
  480. overflow: hidden;
  481. display: flex;
  482. align-items: center;
  483. padding-left: 30rpx;
  484. .bg-image {
  485. position: absolute;
  486. top: 0;
  487. left: 0;
  488. width: 100%;
  489. height: 100%;
  490. z-index: 0;
  491. }
  492. .bg-dls {
  493. height: 1200rpx;
  494. }
  495. .user-info {
  496. display: flex;
  497. align-items: center;
  498. z-index: 1;
  499. width: 100%;
  500. .user-content {
  501. display: flex;
  502. flex-direction: column;
  503. justify-content: center;
  504. margin-left: 30rpx;
  505. color: #0081ff;
  506. width: 100%;
  507. .nick-name {
  508. font-size: 34rpx;
  509. font-weight: bold;
  510. width: 100%;
  511. width: 600rpx;
  512. overflow: hidden; //超出的文本隐藏
  513. text-overflow: ellipsis; //溢出用省略号显示
  514. white-space: nowrap; //溢出不换行
  515. margin-right: 20rpx;
  516. }
  517. .mobile {
  518. margin-top: 15rpx;
  519. font-size: 28rpx;
  520. }
  521. .user-grade {
  522. align-self: baseline;
  523. display: flex;
  524. align-items: center;
  525. background: #3c3c3c;
  526. margin-top: 12rpx;
  527. border-radius: 10rpx;
  528. padding: 4rpx 12rpx;
  529. .user-grade_icon .image {
  530. display: block;
  531. width: 32rpx;
  532. height: 32rpx;
  533. }
  534. .user-grade_name {
  535. margin-left: 5rpx;
  536. font-size: 26rpx;
  537. color: #eee0c3;
  538. }
  539. }
  540. .login-tips {
  541. margin-top: 12rpx;
  542. font-size: 30rpx;
  543. }
  544. }
  545. }
  546. }
  547. // 角标组件
  548. .item-badge {
  549. position: absolute;
  550. top: 0;
  551. right: 55rpx;
  552. // background: $main-bg;
  553. background: #fa2209;
  554. color: #fff;
  555. border-radius: 100%;
  556. min-width: 38rpx;
  557. height: 38rpx;
  558. display: flex;
  559. justify-content: center;
  560. align-items: center;
  561. padding: 1rpx;
  562. font-size: 24rpx;
  563. }
  564. // 我的钱包
  565. .my-asset {
  566. display: flex;
  567. background: #fff;
  568. padding: 40rpx 0;
  569. .asset-right {
  570. width: 200rpx;
  571. border-left: 1rpx solid #eee;
  572. }
  573. .asset-right-item {
  574. text-align: center;
  575. color: #545454;
  576. .item-icon {
  577. font-size: 44rpx;
  578. }
  579. .item-name {
  580. margin-top: 14rpx;
  581. font-size: 28rpx;
  582. }
  583. }
  584. .asset-left-item {
  585. max-width: 183rpx;
  586. text-align: center;
  587. color: #666;
  588. padding: 0 16rpx;
  589. .item-value {
  590. font-size: 34rpx;
  591. color: $main-bg;
  592. }
  593. .item-name {
  594. margin-top: 14rpx;
  595. font-size: 28rpx;
  596. }
  597. }
  598. }
  599. // 订单操作
  600. .order-navbar {
  601. display: flex;
  602. margin: 20rpx auto 20rpx auto;
  603. padding: 20rpx 0 26rpx 0;
  604. width: 94%;
  605. box-shadow: 0 1rpx 5rpx 0px rgba(0, 0, 0, 0.05);
  606. font-size: 30rpx;
  607. border-radius: 5rpx;
  608. background: #fff;
  609. &-item {
  610. position: relative;
  611. width: 25%;
  612. .item-icon {
  613. text-align: center;
  614. margin: 0 auto;
  615. padding: 10rpx 0;
  616. color: #545454;
  617. font-size: 44rpx;
  618. }
  619. .item-name {
  620. font-size: 28rpx;
  621. color: #545454;
  622. text-align: center;
  623. margin-right: 10rpx;
  624. }
  625. }
  626. }
  627. .fenxiao_order {
  628. padding: 30rpx;
  629. color: #0081ff;
  630. .item-name {
  631. border-bottom: 1px solid #0081ff;
  632. }
  633. }
  634. // 我的服务
  635. .my-service {
  636. margin: 22rpx auto 22rpx auto;
  637. padding: 22rpx 0;
  638. width: 94%;
  639. box-shadow: 0 1rpx 5rpx 0px rgba(0, 0, 0, 0.05);
  640. border-radius: 5rpx;
  641. background: #ffffff00;
  642. color: #0081ff;
  643. background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
  644. background-image: linear-gradient(120deg, #a1c4fd70 0%, #c2e9fb6c 100%);
  645. .uqrCodeBox {
  646. padding: 20rpx 0rpx;
  647. display: flex;
  648. justify-content: center;
  649. align-items: center;
  650. flex-direction: column;
  651. .uqrcode {
  652. overflow: hidden;
  653. }
  654. .uqrCodeText {
  655. display: flex;
  656. justify-content: center;
  657. border: 1px solid #0081ff;
  658. border-radius: 15rpx;
  659. padding: 10rpx 20rpx;
  660. font-size: 26rpx;
  661. .textmsg {
  662. width: 400rpx;
  663. overflow: hidden; //超出的文本隐藏
  664. text-overflow: ellipsis; //溢出用省略号显示
  665. white-space: nowrap; //溢出不换行
  666. margin-right: 20rpx;
  667. }
  668. }
  669. }
  670. .service-title {
  671. display: flex;
  672. justify-content: space-between;
  673. padding: 0rpx 24rpx;
  674. font-size: 30rpx;
  675. }
  676. .service-content {
  677. margin-bottom: -20rpx;
  678. .service-item {
  679. position: relative;
  680. width: 25%;
  681. float: left;
  682. margin-bottom: 30rpx;
  683. .item-icon {
  684. text-align: center;
  685. margin: 0 auto;
  686. padding: 14rpx 0;
  687. color: $main-bg;
  688. font-size: 44rpx;
  689. }
  690. .item-name {
  691. font-size: 28rpx;
  692. color: #545454;
  693. text-align: center;
  694. }
  695. }
  696. }
  697. }
  698. // 退出登录
  699. .my-logout {
  700. display: flex;
  701. justify-content: center;
  702. margin-top: 50rpx;
  703. .logout-btn {
  704. width: 60%;
  705. margin: 0 auto;
  706. font-size: 28rpx;
  707. color: #616161;
  708. border-radius: 20rpx;
  709. border: 1px solid #dcdcdc;
  710. padding: 16rpx 0;
  711. text-align: center;
  712. }
  713. }
  714. // 绑定手机号 样式1
  715. .my-mobile {
  716. display: flex;
  717. justify-content: space-between;
  718. align-items: center;
  719. padding: 16rpx 40rpx;
  720. background: #fcebd1;
  721. .info {
  722. color: #cd8c0c;
  723. font-size: 28rpx;
  724. }
  725. .btn-bind {
  726. padding: 8rpx 24rpx;
  727. background-color: #eab766;
  728. color: #fff;
  729. border-radius: 30rpx;
  730. font-size: 26rpx;
  731. text-align: center;
  732. }
  733. }
  734. .my-mobile-true {
  735. display: flex;
  736. align-items: center;
  737. padding: 12rpx 40rpx;
  738. width: 100%;
  739. box-shadow: 0 1rpx 5rpx 0px rgba(0, 0, 0, 0.05);
  740. font-size: 26rpx;
  741. color: #fff;
  742. background: #60d08a;
  743. }
  744. // 绑定手机号 样式2
  745. .my-mobile2 {
  746. display: flex;
  747. justify-content: space-between;
  748. align-items: center;
  749. margin: 20rpx auto 20rpx auto;
  750. padding: 12rpx 40rpx;
  751. width: 94%;
  752. box-shadow: 0 1rpx 5rpx 0px rgba(0, 0, 0, 0.05);
  753. font-size: 30rpx;
  754. border-radius: 5rpx;
  755. color: red;
  756. background: #ffe7e7;
  757. border: 1px solid red;
  758. .info {
  759. // color: #cd8c0c;
  760. font-size: 26rpx;
  761. }
  762. .btn-bind {
  763. padding: 8rpx 24rpx;
  764. background-color: #fa3534;
  765. color: #fff;
  766. border-radius: 30rpx;
  767. font-size: 26rpx;
  768. text-align: center;
  769. }
  770. }
  771. </style>