user.vue 23 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118
  1. <template>
  2. <view class="container">
  3. <view class="vheigh"></view>
  4. <view class="user-top">
  5. <view class="userinfo">
  6. <view class="user-info" @click="navTo('/pages/set/set')">
  7. <view class="avatar">
  8. <image class="avatarimg" :src="userInfo.avatar || '/static/error/missing-face.png'" mode=""></image>
  9. <image v-if="sm != 0" class="real" src="../../static/img/real.png" mode=""></image>
  10. </view>
  11. <view class="name">{{ userInfo.nickname || '游客' }}</view>
  12. <!-- <view class="phone flex" v-if="userInfo.uid">
  13. <view class="phone-font">ID号:{{ userInfo.uid }}</view>
  14. </view> -->
  15. <view class="vip" v-if="userInfo.level_name">
  16. <image class="vip-bg" src="../../static/img/vip.png" mode=""></image>
  17. <view class="vip-title">{{ userInfo.level_name }}</view>
  18. </view>
  19. </view>
  20. <view class="sy-box flex">
  21. <view class="sy-item" @click="navTo('/pages/user/mygs')">
  22. <view class="sy-item-val">{{ userInfo.brokeage_price > 0 ? userInfo.brokeage_price : '0' }}</view>
  23. <view class="sy-item-name">我的奖金</view>
  24. </view>
  25. <view class="jg"></view>
  26. <view class="sy-item" @click="navTo('/pages/money/qudou')">
  27. <view class="sy-item-val">{{ userInfo.integral || '0.00' }}</view>
  28. <view class="sy-item-name">我的积分</view>
  29. </view>
  30. <view class="jg"></view>
  31. <view class="sy-item">
  32. <view class="sy-item-val">{{ userInfo.sum_pay || '0.00' }}</view>
  33. <view class="sy-item-name">消费总额</view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. <!-- <view class="qd-box flex">
  39. <image src="../../static/icon/uqd.png" mode=""></image>
  40. <view class="qd-info">
  41. <view class="" style="font-weight: bold;color: #0C1732;">签到领取积分</view>
  42. <view class="">已连续签到{{ actionDay }}天</view>
  43. <view class="">累计签到奖励{{ sum_integral }}趣豆</view>
  44. </view>
  45. <view class="qd-btn" :class="{ qded: qded }" @click="qded ? '' : goQd()">{{ qded ? '已签到' : '立即签到' }}</view>
  46. </view> -->
  47. <!-- <view class="tool-box flex">
  48. <view class="tool-item flex" v-for="itemt in toolList" :key="itemt.id" @click="useTool(itemt)"
  49. v-if="itemt.id != 't7' || userInfo.staff">
  50. <view class="tool-item-img">
  51. <image :src="itemt.img" mode="widthFix" :style="{ width: itemt.width, height: itemt.height }"
  52. class="tool-logo"></image>
  53. </view>
  54. <view class="tool-item-name">{{ itemt.name }}</view>
  55. </view>
  56. </view> -->
  57. <uni-list class="tool-list margin-t-30">
  58. <uni-list-item class="item" title="邀请好友" @click="navTo('/pages/user/shareQrCode')"
  59. thumb="/static/icon/user_pick.png"></uni-list-item>
  60. <uni-list-item class="item" title="我的粉丝" @click="navTo('/pages/user/myfans')"
  61. thumb="/static/icon/user_name.png"></uni-list-item>
  62. <uni-list-item class="item" title="收款信息" @click="navTo('/pages/collection/collection')"
  63. thumb="/static/icon/user_page.png"></uni-list-item>
  64. <uni-list-item class="item" title="客服" @click="openKf()" thumb="/static/icon/user_serve.png"></uni-list-item>
  65. <uni-list-item class="item" title="设置" @click="navTo('/pages/set/set')" thumb="/static/icon/user_set.png"></uni-list-item>
  66. </uni-list>
  67. <!-- <view class="page-btm" style="padding-top: 20rpx;">©2022 杭州尚视拍卖有限公司 版权所有</view>
  68. <view class="page-btm" style="padding-bottom: 10rpx;">浙ICP备2022017146号-2</view> -->
  69. <uni-popup ref="popupkf" type="center">
  70. <view class="popup-box">
  71. <view class="img">
  72. <image src="../../static/img/img009.png" mode=""></image>
  73. </view>
  74. <view class="mian">
  75. <view class="delivery">
  76. <view class="title">已经为您定制专属客服</view>
  77. <image src="../../static/img/img010.png" mode=""></image>
  78. </view>
  79. <view class="nocancel">客服VX:{{ text }}</view>
  80. <view class="comfirm-box">
  81. <view class="cancel" @click="cancel">取消</view>
  82. <view class="comfirm" @click="comfirm(text)">复制微信</view>
  83. </view>
  84. </view>
  85. </view>
  86. </uni-popup>
  87. <!-- <uni-popup ref="popupqd" type="center">
  88. <view class="popup">
  89. <view class="popup-dox">
  90. <image class="popup-logo" src="../../static/img/sign-popup.png"></image>
  91. </view>
  92. <view class="popup-title">
  93. 获得
  94. <text>{{ today_integral }}</text>
  95. 趣豆
  96. </view>
  97. <view class="popup-btn" @click="closeQd">知道了</view>
  98. </view>
  99. </uni-popup> -->
  100. <u-tabbar activeColor="#333333" inactive-color='#999999' :list="tabbar"></u-tabbar>
  101. </view>
  102. </template>
  103. <script>
  104. import {
  105. tabbar1
  106. } from '@/utils/tabbar.js';
  107. import {
  108. mapState,
  109. mapMutations
  110. } from 'vuex';
  111. import uniList from '@/components/uni-list/uni-list.vue';
  112. import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
  113. import uniCopy from '@/components/js_sdk/xb-copy/uni-copy.js';
  114. import {
  115. orderData,
  116. getUserInfo,
  117. rate,
  118. apply_status
  119. } from '@/api/user.js';
  120. import {
  121. signList,
  122. integral,
  123. signUser
  124. } from '@/api/functionalUnit.js';
  125. import {
  126. saveUrl,
  127. interceptor
  128. } from '@/utils/loginUtils.js';
  129. let startY = 0,
  130. moveY = 0,
  131. pageAtTop = true;
  132. export default {
  133. components: {
  134. uniList,
  135. uniListItem
  136. },
  137. data() {
  138. return {
  139. sm: 0, //是否已实名认证
  140. money: '', //保存当前月份
  141. year: '', //保存当前年份
  142. day: '', //保存当前日期
  143. tabbar: tabbar1,
  144. qded: false, //是否已签到
  145. text: '', //客服微信
  146. actionDay: 0, //连续签到天数
  147. sum_integral: 0, //累计获得积分
  148. today_integral: '', //签到获得的数值
  149. tom_integral: '', //明天签到获得的数值
  150. tom_type: '', //签到获得的数值单位
  151. userDowm: 0, //卡片升级专属高度
  152. userMaxDowm: 0, //卡片最高高度
  153. toolList: [
  154. // {
  155. // id: 't1',
  156. // name: '新人通道',
  157. // width: '56rpx',
  158. // heigt: '54rpx',
  159. // img: '../../static/icon/tool-1.png',
  160. // path: '/pages/user/xrtd'
  161. // },
  162. {
  163. id: 't2',
  164. name: '邀请好友',
  165. width: '56rpx',
  166. heigt: '57rpx',
  167. img: '../../static/icon/tool-2.png',
  168. path: '/pages/user/shareQrCode'
  169. },
  170. {
  171. id: 't3',
  172. name: '我的粉丝',
  173. width: '68rpx',
  174. heigt: '53rpx',
  175. img: '../../static/icon/tool-3.png',
  176. path: '/pages/user/myfans'
  177. },
  178. {
  179. id: 't4',
  180. name: '我的订单',
  181. width: '55rpx',
  182. heigt: '54rpx',
  183. img: '../../static/icon/tool-4.png',
  184. path: '/pages/order/index'
  185. },
  186. {
  187. id: 't5',
  188. name: '我的商品',
  189. width: '50rpx',
  190. heigt: '58rpx',
  191. img: '../../static/icon/tool-5.png',
  192. path: '/pages/user/myproduct'
  193. },
  194. {
  195. id: 't6',
  196. name: '馆长申请',
  197. width: '59rpx',
  198. heigt: '56rpx',
  199. img: '../../static/icon/tool-6.png',
  200. path: '/pages/user/gzsq'
  201. },
  202. {
  203. id: 't7',
  204. name: '我的金豆',
  205. width: '59rpx',
  206. heigt: '56rpx',
  207. img: '../../static/icon/jindou.png',
  208. path: '/pages/user/myyue'
  209. }
  210. ]
  211. };
  212. },
  213. onShow() {
  214. // 判断是否已经登录
  215. if (this.hasLogin) {
  216. this.loadBaseData();
  217. // this.signUser();
  218. // this.loadList();
  219. // this.getData();
  220. // this.isSm();
  221. }
  222. },
  223. onReady() {
  224. // 初始化获取页面宽度
  225. uni.createSelectorQuery()
  226. .select('.container')
  227. .fields({
  228. size: true
  229. },
  230. data => {
  231. // 计算最多下拉的高度
  232. this.userDowm = Math.floor((data.width / 750) * 185);
  233. // 计算最大触发修改高度事件
  234. this.userMaxDowm = Math.floor((data.width / 750) * 250);
  235. }
  236. )
  237. .exec();
  238. },
  239. computed: {
  240. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
  241. },
  242. methods: {
  243. ...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
  244. getData(current) {
  245. const date = current ? new Date(current) : new Date();
  246. this.year = date.getFullYear(); //保存当前年份
  247. this.month = date.getMonth() + 1; //保存当前月份
  248. this.day = date.getDate(); //保存当前日期
  249. },
  250. isSm() {
  251. rate({}).then(e => {
  252. if (e.data.is_auth == 2) {
  253. this.sm = 1;
  254. }
  255. });
  256. },
  257. comfirm(text) {
  258. let obj = this;
  259. let content = text; //需要复制的内容
  260. console.log('复制的内容:', content);
  261. // content = typeof content === 'string' ? content : content.toString(); // 复制内容,必须字符串,数字需要转换为字符串
  262. const result = uniCopy(content);
  263. if (result === false) {
  264. uni.showToast({
  265. title: '不支持'
  266. });
  267. } else {
  268. uni.showToast({
  269. title: '复制成功',
  270. icon: 'none'
  271. });
  272. }
  273. },
  274. // 获取签到列表
  275. loadList() {
  276. let obj = this;
  277. let present = this.day; //保存当前天数用于后续计算
  278. let actionDay = 0; //用于计算活跃天数
  279. let arr = []; //保存返回数组;
  280. signList({
  281. page: 1,
  282. limit: 31
  283. }).then(e => {
  284. arr = e.data.map((e, ind) => {
  285. let time = e.add_time.split('-');
  286. let day = parseInt(time[2].replace(/^0/i, ''));
  287. let year = time[0];
  288. let month = +time[1];
  289. if (obj.year == year && obj.month == month) {
  290. return day;
  291. }
  292. });
  293. // 判断今天是否已经签到
  294. if (arr[0] == this.day) {
  295. this.qded = true;
  296. }
  297. });
  298. },
  299. //获取签到用户信息
  300. signUser() {
  301. signUser({
  302. all: 1
  303. }).then(({
  304. data
  305. }) => {
  306. this.actionDay = data.sign_num; //连续签到天数
  307. this.sum_integral = data.sum_integral; //累计总积分
  308. });
  309. },
  310. // 加载初始数据
  311. loadBaseData() {
  312. getUserInfo({})
  313. .then(({
  314. data
  315. }) => {
  316. this.setUserInfo(data);
  317. // 获取用户数据完毕后在获取订单数据防止多次跳转到登录页
  318. orderData({})
  319. .then(({
  320. data
  321. }) => {
  322. this.setOrderInfo(data);
  323. })
  324. .catch(e => {
  325. this.setOrderInfo({
  326. complete_count: 0, //完成
  327. received_count: 0, //待收货
  328. unshipped_count: 0, //待发货
  329. order_count: 0, //订单总数
  330. unpaid_count: 0 //待付款
  331. });
  332. });
  333. })
  334. .catch(e => {
  335. console.log(e);
  336. });
  337. },
  338. /**
  339. * 统一跳转接口,拦截未登录路由
  340. * navigator标签现在默认没有转场动画,所以用view
  341. */
  342. navTo(url) {
  343. const obj = this;
  344. if (!this.hasLogin) {
  345. // 保存地址
  346. saveUrl();
  347. // 登录拦截
  348. interceptor();
  349. } else {
  350. if (url == '/pages/user/approve') {
  351. rate({})
  352. .then(e => {
  353. console.log(e);
  354. if (e.data.is_auth == null) {
  355. uni.navigateTo({
  356. url
  357. });
  358. }
  359. if (e.data.is_auth == 0) {
  360. uni.navigateTo({
  361. url
  362. });
  363. }
  364. if (e.data.is_auth == 1) {
  365. this.$api.msg('正在审核中请耐心等待');
  366. }
  367. if (e.data.is_auth == 2) {
  368. this.$api.msg('已通过实名认证,无需再实名认证');
  369. }
  370. if (e.data.is_auth == 3) {
  371. uni.showModal({
  372. title: '提示',
  373. content: '申请失败,原因' + e.data.off + '是否重新申请',
  374. success: function(res) {
  375. if (res.confirm) {
  376. uni.navigateTo({
  377. url
  378. });
  379. } else if (res.cancel) {
  380. console.log('用户点击取消');
  381. }
  382. }
  383. });
  384. }
  385. })
  386. .catch(e => {
  387. return;
  388. });
  389. } else if (url == '/pages/user/gzsq') {
  390. apply_status({})
  391. .then(e => {
  392. if (e.data.status != 0) {
  393. if (e.data.status == 3) {
  394. uni.showModal({
  395. title: '提示',
  396. content: '申请失败是否重新申请',
  397. success: function(res) {
  398. if (res.confirm) {
  399. uni.navigateTo({
  400. url
  401. });
  402. } else if (res.cancel) {
  403. console.log('用户点击取消');
  404. }
  405. }
  406. });
  407. } else {
  408. obj.$api.msg(e.data.str);
  409. }
  410. } else {
  411. uni.navigateTo({
  412. url
  413. });
  414. }
  415. })
  416. .catch(e => {});
  417. } else {
  418. uni.navigateTo({
  419. url,
  420. fail() {
  421. uni.switchTab({
  422. url
  423. });
  424. }
  425. });
  426. }
  427. }
  428. },
  429. useTool(e) {
  430. this.navTo(e.path);
  431. },
  432. // 签到弹窗
  433. // goQd() {
  434. // integral({})
  435. // .then(e => {
  436. // this.integral = console.log(e);
  437. // // 改为已签到
  438. // this.qded = true;
  439. // this.today_integral = e.data.integral;
  440. // this.actionDay++;
  441. // this.sum_integral = +this.sum_integral + +e.data.integral;
  442. // this.$refs.popupqd.open();
  443. // })
  444. // .catch(e => {
  445. // console.log(e);
  446. // });
  447. // },
  448. // 关闭签到弹窗
  449. // closeQd() {
  450. // this.$refs.popupqd.close();
  451. // },
  452. // 打开客服
  453. openKf() {
  454. this.$refs.popupkf.open();
  455. },
  456. // 关闭客服
  457. cancel() {
  458. this.$refs.popupkf.close();
  459. }
  460. }
  461. };
  462. </script>
  463. <style lang="scss">
  464. %flex-center {
  465. display: flex;
  466. flex-direction: column;
  467. justify-content: center;
  468. align-items: center;
  469. }
  470. %section {
  471. display: flex;
  472. justify-content: space-around;
  473. align-content: center;
  474. background: #fff;
  475. border-radius: 10rpx;
  476. }
  477. .container,
  478. page {
  479. min-height: 100%;
  480. height: auto;
  481. background-color: $page-color-base;
  482. }
  483. .vheigh {
  484. height: var(--status-bar-height);
  485. background-color: $base-color;
  486. }
  487. .user-section {
  488. height: 435rpx;
  489. padding: 15rpx 30rpx 0;
  490. position: relative;
  491. .bg {
  492. position: absolute;
  493. left: 0;
  494. top: 0;
  495. width: 100%;
  496. height: 100%;
  497. background-color: $base-color;
  498. }
  499. }
  500. .user-info-box {
  501. height: 180rpx;
  502. color: white;
  503. display: flex;
  504. align-items: center;
  505. justify-content: space-between;
  506. position: relative;
  507. z-index: 1;
  508. .detail {
  509. height: 130rpx;
  510. .portrait-box {
  511. height: 100%;
  512. .portrait {
  513. width: 130rpx;
  514. height: 100%;
  515. border: 5rpx solid #fff;
  516. border-radius: 50%;
  517. }
  518. }
  519. .info-box {
  520. margin-left: 20rpx;
  521. line-height: 1.5;
  522. .username {
  523. font-size: $font-lg + 6rpx;
  524. height: 100%;
  525. }
  526. }
  527. }
  528. .config {
  529. font-size: 48rpx;
  530. height: 130rpx;
  531. .setting {
  532. margin-right: 51rpx;
  533. }
  534. }
  535. }
  536. .vip-card-box {
  537. display: flex;
  538. flex-direction: column;
  539. color: #f7d680;
  540. height: 240rpx;
  541. background: linear-gradient(left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
  542. border-radius: 16rpx 16rpx 0 0;
  543. overflow: hidden;
  544. position: relative;
  545. padding: 20rpx 24rpx;
  546. .card-bg {
  547. position: absolute;
  548. top: 20rpx;
  549. right: 0;
  550. width: 380rpx;
  551. height: 260rpx;
  552. }
  553. .b-btn {
  554. position: absolute;
  555. right: 20rpx;
  556. top: 16rpx;
  557. width: 132rpx;
  558. height: 40rpx;
  559. text-align: center;
  560. line-height: 40rpx;
  561. font-size: 22rpx;
  562. color: #36343c;
  563. border-radius: 20px;
  564. background: linear-gradient(left, #f9e6af, #ffd465);
  565. z-index: 1;
  566. }
  567. .tit {
  568. font-size: $font-base + 2rpx;
  569. color: #f7d680;
  570. margin-bottom: 28rpx;
  571. .iconfont {
  572. color: #f6e5a3;
  573. margin-right: 16rpx;
  574. }
  575. }
  576. .e-b {
  577. font-size: $font-sm;
  578. color: #d8cba9;
  579. margin-top: 10rpx;
  580. }
  581. }
  582. .cover-container {
  583. background: $page-color-base;
  584. margin-top: -150rpx;
  585. padding: 0 30rpx;
  586. position: relative;
  587. background: #f5f5f5;
  588. padding-bottom: 20rpx;
  589. .arc {
  590. position: absolute;
  591. left: 0;
  592. top: -34rpx;
  593. width: 100%;
  594. height: 36rpx;
  595. }
  596. }
  597. .tj-sction {
  598. @extend %section;
  599. .tj-item {
  600. @extend %flex-center;
  601. flex-direction: column;
  602. height: 140rpx;
  603. font-size: $font-sm;
  604. color: #75787d;
  605. }
  606. .num {
  607. font-size: $font-lg;
  608. color: $font-color-dark;
  609. margin-bottom: 8rpx;
  610. }
  611. }
  612. .item-box {
  613. border-radius: 10rpx;
  614. background-color: white;
  615. margin-top: 20rpx;
  616. .box-title {
  617. line-height: 1;
  618. padding: 30rpx;
  619. .title {
  620. font-size: $font-lg;
  621. font-weight: bold;
  622. }
  623. .link {
  624. font-size: $font-base - 2rpx;
  625. color: $font-color-light;
  626. }
  627. }
  628. .order-section {
  629. @extend %section;
  630. padding: 28rpx 0;
  631. .order-item {
  632. @extend %flex-center;
  633. width: 120rpx;
  634. height: 120rpx;
  635. border-radius: 10rpx;
  636. font-size: $font-sm;
  637. color: $font-color-dark;
  638. }
  639. .iconfont {
  640. font-size: 48rpx;
  641. margin-bottom: 18rpx;
  642. color: #fa436a;
  643. }
  644. .icon-shouhoutuikuan {
  645. font-size: 44rpx;
  646. }
  647. .icon {
  648. height: 50rpx;
  649. width: 48rpx;
  650. margin-bottom: 18rpx;
  651. background-size: 100%;
  652. background-repeat: no-repeat;
  653. background-position: center;
  654. .icon-img {
  655. width: 100%;
  656. height: 100%;
  657. }
  658. }
  659. }
  660. }
  661. .history-section {
  662. // padding: 30rpx 0 0;
  663. margin-top: 20rpx;
  664. background: #fff;
  665. border-radius: 10rpx;
  666. .sec-header {
  667. display: flex;
  668. align-items: center;
  669. font-size: $font-base;
  670. color: $font-color-dark;
  671. line-height: 40rpx;
  672. margin-left: 30rpx;
  673. padding-top: 30rpx;
  674. .iconfont {
  675. font-size: 44rpx;
  676. color: $color-red;
  677. margin-right: 16rpx;
  678. line-height: 40rpx;
  679. }
  680. }
  681. .h-list {
  682. white-space: nowrap;
  683. padding: 30rpx 30rpx 0;
  684. .h-list-image {
  685. display: inline-block;
  686. width: 160rpx;
  687. height: 160rpx;
  688. margin-right: 20rpx;
  689. border-radius: 10rpx;
  690. }
  691. }
  692. }
  693. .user-top {
  694. background-image: url("../../static/img/use-bg.png");
  695. background-size:750rpx auto;
  696. background-repeat: no-repeat;
  697. padding: 60rpx 30rpx 0rpx 30rpx;
  698. .userinfo{
  699. background-color: #FFFFFF;
  700. border-radius: 20rpx;
  701. }
  702. .user-info {
  703. display: flex;
  704. flex-direction: column;
  705. justify-content: center;
  706. align-items: center;
  707. padding: 30rpx;
  708. .avatar {
  709. width: 134rpx;
  710. height: 134rpx;
  711. border-radius: 50%;
  712. overflow: hidden;
  713. .avatarimg {
  714. width: 134rpx;
  715. height: 134rpx;
  716. }
  717. .real {
  718. bottom: 0;
  719. width: 120rpx;
  720. height: 34rpx;
  721. }
  722. }
  723. .name {
  724. margin-top: 20rpx;
  725. font-size: 32rpx;
  726. }
  727. .phone {
  728. justify-content: start;
  729. margin-top: 13rpx;
  730. font-size: 30rpx;
  731. font-family: PingFang SC;
  732. font-weight: 500;
  733. color: #ffffff;
  734. .green {
  735. margin-left: 12rpx;
  736. position: relative;
  737. width: 100rpx;
  738. height: 40rpx;
  739. .green-bg {
  740. position: absolute;
  741. top: 0;
  742. left: 0;
  743. right: 0;
  744. width: 100%;
  745. height: 100%;
  746. }
  747. .green-title {
  748. line-height: 30rpx;
  749. text-align: center;
  750. position: relative;
  751. z-index: 10;
  752. font-size: 20rpx;
  753. font-family: PingFang SC;
  754. font-weight: 500;
  755. // color: #93794b;
  756. color: #fff;
  757. }
  758. }
  759. }
  760. .vip {
  761. margin-top: 20rpx;
  762. position: relative;
  763. width: 120rpx;
  764. height: 40rpx;
  765. .vip-bg {
  766. position: absolute;
  767. top: 0;
  768. left: 0;
  769. right: 0;
  770. width: 100%;
  771. height: 100%;
  772. }
  773. .vip-title {
  774. width: 120rpx;
  775. line-height: 40rpx;
  776. text-align: center;
  777. position: relative;
  778. z-index: 10;
  779. font-size: 20rpx;
  780. font-family: PingFang SC;
  781. font-weight: 500;
  782. color: #93794b;
  783. }
  784. }
  785. }
  786. .sy-box {
  787. bottom: 105rpx;
  788. height: 148rpx;
  789. .sy-item {
  790. flex-grow: 1;
  791. text-align: center;
  792. font-size: 28rpx;
  793. font-weight: 500;
  794. }
  795. .jg {
  796. width: 2rpx;
  797. height: 68rpx;
  798. }
  799. }
  800. }
  801. .qd-box {
  802. width: 690rpx;
  803. height: 210rpx;
  804. background: #ffffff;
  805. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  806. border-radius: 20rpx;
  807. margin: -105rpx auto 30rpx;
  808. position: relative;
  809. padding: 0 40rpx;
  810. font-size: 26rpx;
  811. font-family: PingFang SC;
  812. font-weight: 500;
  813. color: #666666;
  814. image {
  815. flex-shrink: 0;
  816. width: 65rpx;
  817. height: 68rpx;
  818. }
  819. .qd-info {
  820. flex-grow: 1;
  821. padding-left: 24rpx;
  822. line-height: 46rpx;
  823. }
  824. .qd-btn {
  825. width: 190rpx;
  826. height: 80rpx;
  827. line-height: 80rpx;
  828. border-radius: 20px;
  829. background: #dc262b;
  830. border-radius: 20rpx;
  831. text-align: center;
  832. font-size: 32rpx;
  833. font-family: PingFang SC;
  834. font-weight: 500;
  835. color: #ffffff;
  836. }
  837. .qded {
  838. background: #e8e8e8;
  839. color: #999999;
  840. }
  841. }
  842. .tool-box {
  843. padding-top: 30rpx;
  844. padding-bottom: 46rpx;
  845. width: 690rpx;
  846. background: #ffffff;
  847. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  848. border-radius: 20rpx;
  849. margin: 30rpx auto;
  850. flex-wrap: wrap;
  851. justify-content: flex-start;
  852. align-content: space-around;
  853. margin-top: -100rpx;
  854. z-index: 10;
  855. position: relative;
  856. .tool-item {
  857. width: 20%;
  858. height: 120rpx;
  859. flex-shrink: 0;
  860. flex-direction: column;
  861. align-content: space-between;
  862. justify-content: center;
  863. font-size: 28rpx;
  864. font-family: PingFang SC;
  865. font-weight: 500;
  866. color: #0c1732;
  867. .tool-item-img {
  868. width: 68rpx;
  869. height: 90rpx;
  870. position: relative;
  871. flex-shrink: 0;
  872. .tool-logo {
  873. position: absolute;
  874. width: 56rpx;
  875. height: 56rpx;
  876. top: 0;
  877. left: 0;
  878. bottom: 0;
  879. right: 0;
  880. margin: auto;
  881. }
  882. }
  883. .tool-item-name {
  884. display: inline-block;
  885. font-size: 26rpx;
  886. }
  887. }
  888. }
  889. .tool-list {
  890. width: 690rpx;
  891. margin: auto;
  892. background: transparent;
  893. .item{
  894. background: #ffffff;
  895. border-radius: 20rpx;
  896. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  897. margin-bottom: 10rpx;
  898. }
  899. }
  900. .popup-box {
  901. width: 522rpx;
  902. height: 605rpx;
  903. background-color: #ffffff;
  904. border-radius: 20rpx;
  905. position: relative;
  906. .img {
  907. position: relative;
  908. top: -56rpx;
  909. left: 0;
  910. width: 522rpx;
  911. height: 132rpx;
  912. display: flex;
  913. justify-content: center;
  914. image {
  915. border-radius: 20rpx 20rpx 0 0;
  916. width: 450rpx;
  917. height: 132rpx;
  918. }
  919. }
  920. .mian {
  921. margin-top: -44rpx;
  922. display: flex;
  923. flex-direction: column;
  924. align-items: center;
  925. // padding: 32rpx 32rpx;
  926. background-color: #ffffff;
  927. border-radius: 0 0 20rpx 20rpx;
  928. text-align: center;
  929. .delivery {
  930. font-size: 40rpx;
  931. color: #333333;
  932. display: flex;
  933. align-items: center;
  934. flex-direction: column;
  935. .title {}
  936. image {
  937. margin-top: 48rpx;
  938. width: 172rpx;
  939. height: 160rpx;
  940. }
  941. }
  942. .nocancel {
  943. font-size: 32rpx;
  944. color: #333333;
  945. margin-top: 14rpx;
  946. }
  947. .comfirm-box {
  948. margin-top: 52rpx;
  949. display: flex;
  950. // margin-bottom: 32rpx;
  951. // justify-content: space-around;
  952. .cancel {
  953. display: flex;
  954. align-items: center;
  955. justify-content: center;
  956. width: 197rpx;
  957. height: 74rpx;
  958. border: 1px solid #dcc786;
  959. border-radius: 38rpx;
  960. font-size: 32rpx;
  961. color: #605128;
  962. }
  963. .comfirm {
  964. margin-left: 32rpx;
  965. display: flex;
  966. align-items: center;
  967. justify-content: center;
  968. width: 197rpx;
  969. height: 74rpx;
  970. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  971. border-radius: 38px;
  972. font-size: 32rpx;
  973. color: #605128;
  974. }
  975. }
  976. }
  977. }
  978. .popup {
  979. width: 560rpx;
  980. padding-bottom: 45rpx;
  981. background-color: #ffffff;
  982. border-radius: 15rpx;
  983. text-align: center;
  984. line-height: 1;
  985. .popup-dox {
  986. position: relative;
  987. .popup-logo {
  988. margin: -160rpx auto 0;
  989. width: 400rpx;
  990. height: 200rpx;
  991. }
  992. }
  993. .popup-title {
  994. margin-top: 85rpx;
  995. font-size: 40rpx;
  996. font-family: PingFang SC;
  997. font-weight: bold;
  998. color: #2a2a2a;
  999. text {
  1000. font-size: 56rpx;
  1001. color: #e83f30;
  1002. }
  1003. }
  1004. .popup-tip {
  1005. margin-top: 20rpx;
  1006. font-size: 28rpx;
  1007. font-family: PingFang SC;
  1008. font-weight: 500;
  1009. color: #8c8c8c;
  1010. text {
  1011. color: #e83f30;
  1012. }
  1013. }
  1014. .popup-btn {
  1015. margin: 58rpx auto 0;
  1016. width: 270rpx;
  1017. height: 66rpx;
  1018. background: #f0c838;
  1019. border-radius: 34rpx;
  1020. text-align: center;
  1021. line-height: 66rpx;
  1022. font-size: 36rpx;
  1023. font-family: Source Han Sans CN;
  1024. font-weight: 500;
  1025. color: #ffffff;
  1026. }
  1027. }
  1028. .page-btm {
  1029. background-color: #f5f5f5;
  1030. font-size: 20rpx;
  1031. text-align: center;
  1032. color: #d6d6d8;
  1033. }
  1034. </style>