user.vue 24 KB

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