user.vue 25 KB

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