user.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857
  1. <template>
  2. <view class="container">
  3. <!-- #ifdef APP-PLUS -->
  4. <view class="bar-height"></view>
  5. <!-- #endif -->
  6. <!-- <scroll-view class="content-box" scroll-y="true"> -->
  7. <view class="user-section">
  8. <view class="bg"><image src="../../static/user/ground.png" mode=""></image></view>
  9. <!-- top -->
  10. <view class="user-info-box ">
  11. <view class="detail flex" @click="navTo('/pages/userinfo/userinfo')">
  12. <view class="portrait-box"><image class="portrait" :src="userInfo.avatar || '/static/error/missing-face.png'"></image></view>
  13. <view class="info-box">
  14. <view class="username">{{ userInfo.nickname || '游客' }}</view>
  15. <view class="font-size-sm" v-if="userInfo.uid">{{ userInfo.uid }}</view>
  16. </view>
  17. </view>
  18. <view class="config">
  19. <text class="setting " @click="navTo('/pages/userinfo/userinfo')"><image src="../../static/user/set.png" mode=""></image></text>
  20. 设置
  21. </view>
  22. </view>
  23. <!-- 会员卡功能 -->
  24. </view>
  25. <view class="item-box">
  26. <image class="arc" src="/static/img/arc.png"></image>
  27. <view class="mendian">
  28. <view class="mendian-lift" v-if="userInfo.level != 0">
  29. <view class="img"><image src="../../static/img/mendian01.png" mode=""></image></view>
  30. <text class="null-mendian">{{ userInfo.store_name}}</text>
  31. </view>
  32. <view class="mendian-lift" v-else>
  33. <view class="img"><image src="../../static/img/mendian02.png" mode=""></image></view>
  34. <text class="null-mendian">无绑定门店</text>
  35. </view>
  36. <view class="mendian-lift" v-if="userInfo.level != 0">
  37. <text class="duihuan">{{userInfo.vip}}</text>
  38. </view>
  39. <view class="mendian-right" @click="go()" v-else>
  40. <text class="duihuan">兑换会员卡</text>
  41. <text class="iconfont iconenter"></text>
  42. </view>
  43. </view>
  44. <view class="my-order">
  45. <view class="box-title flex borde-b">
  46. <view class="title" @click="go"><text>我的订单</text></view>
  47. <view class="link" @click="navTo('/pages/order/order?state=5')" hover-class="common-hover"><text class="iconfont iconenter"></text></view>
  48. </view>
  49. <view class="order-section">
  50. <view class="order-item" @click="navTo('/pages/order/order?state=1')" hover-class="common-hover" :hover-stay-time="50">
  51. <view class=" icon1 position-relative">
  52. <image class="icon-img" src="/static/icon/i2.png" mode="aspectFit"></image>
  53. <view class="corner" v-if="orderInfo.unshipped_count > 0">
  54. <text>{{ orderInfo.unshipped_count }}</text>
  55. </view>
  56. </view>
  57. <text>待发货</text>
  58. </view>
  59. <view class="order-item" @click="navTo('/pages/order/order?state=2')" hover-class="common-hover" :hover-stay-time="50">
  60. <view class="icon1 position-relative">
  61. <image class="icon-img" src="/static/icon/i3.png" mode="aspectFit"></image>
  62. <view class="corner" v-if="orderInfo.received_count > 0">
  63. <text>{{ orderInfo.received_count }}</text>
  64. </view>
  65. </view>
  66. <text>待收货</text>
  67. </view>
  68. <view class="order-item" @click="navTo('/pages/order/order?state=3')" hover-class="common-hover" :hover-stay-time="50">
  69. <view class="icon1 position-relative">
  70. <image class="icon-img" src="/static/icon/i4.png" mode="aspectFit"></image>
  71. <view class="corner" v-if="orderInfo.evaluated_count > 0">
  72. <text>{{ orderInfo.evaluated_count }}</text>
  73. </view>
  74. </view>
  75. <text>待评价</text>
  76. </view>
  77. <view class="order-item" @click="navTo('/pages/order/refundOrder?state=0')" hover-class="common-hover" :hover-stay-time="50">
  78. <view class=" icon1 position-relative"><image class="icon-img" src="/static/icon/i1.png" mode="aspectFit"></image></view>
  79. <text>退款</text>
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. <!-- <view class="cover-container"> -->
  85. <view class="vip" @click="navTo('/pages/wallet/openMember')" v-if="userInfo.level < 3"><image src="../../static/user/upgrade.png" mode=""></image></view>
  86. <!-- 订单 -->
  87. <view class="item-box " v-if="isShowIllegality">
  88. <view class="order-section order">
  89. <view class="order-item" @click="navTo('/pages/wallet/wallet')" hover-class="common-hover" :hover-stay-time="50">
  90. <view class=" icon position-relative"><image class="icon-img" src="../../static/user/balance.png" mode="aspectFit"></image></view>
  91. <text>我的余额</text>
  92. </view>
  93. <view class="order-item" @click="navTo('/pages/award/award')" hover-class="common-hover" :hover-stay-time="50">
  94. <view class=" icon position-relative"><image class="icon-img" src="../../static/user/commission.png" mode="aspectFit"></image></view>
  95. <text>我的佣金</text>
  96. </view>
  97. <view class="order-item" @click="navTo('/pages/coupon/consumer')" hover-class="common-hover" :hover-stay-time="50">
  98. <view class=" icon position-relative"><image class="icon-img" src="../../static/user/coupon.png" mode="aspectFit"></image></view>
  99. <text>我的消费券</text>
  100. </view>
  101. </view>
  102. <!-- 浏览历史 -->
  103. <view class="history-section ">
  104. <uni-list>
  105. <uni-list-item v-if="isShowIllegality" title="我的推广" @click="navTo('/pages/myteam/myteam')" thumb="/static/user/tuiguang.png"></uni-list-item>
  106. <uni-list-item title="邀请海报" @click="navTo('/pages/shareQrCode/index')" thumb="/static/user/haibao.png"></uni-list-item>
  107. <uni-list-item title="我的收藏" @click="navTo('/pages/favorites/favorites')" thumb="/static/user/collect.png"></uni-list-item>
  108. <uni-list-item title="收货地址" @click="navTo('/pages/address/address')" thumb="/static/user/address.png"></uni-list-item>
  109. <uni-list-item title="商家入口" @click="navTo('/pages/merchant/merchant')" thumb="/static/user/shopping.png" v-if="userInfo.service == 1"></uni-list-item>
  110. </uni-list>
  111. </view>
  112. </view>
  113. <!-- </scroll-view> -->
  114. <uni-popup ref="popup" type="center">
  115. <view class="popup-box">
  116. <view class="img">
  117. <view class="img-font">兑换充值卡</view>
  118. <view class="img-bg"><image src="../../static/img/img009.png" mode=""></image></view>
  119. </view>
  120. <view class="mian">
  121. <view class="main-item">
  122. <view class="font">卡号</view>
  123. <input type="text" v-model="card" class="input" placeholder="请输入卡号" placeholder-class="input-font" />
  124. </view>
  125. <view class="main-item" style="margin-top: 40rpx;">
  126. <view class="font">密码</view>
  127. <input type="password" v-model="pwd" placeholder="请输入密码" class="input" placeholder-class="input-font" />
  128. </view>
  129. <view class="main-item" style="margin-top: 40rpx;">
  130. <view class="font">选择门店</view>
  131. <view class="input" @click="chooseStore">{{ storeInfo.name || '请选择门店' }}</view>
  132. </view>
  133. <view class="comfirm-box">
  134. <view class="cancel" @click="cancel">取消</view>
  135. <view class="comfirm" @click="comfirm()">确认兑换</view>
  136. </view>
  137. </view>
  138. </view>
  139. </uni-popup>
  140. </view>
  141. </template>
  142. <script>
  143. import uniPopup from '@/components/uni-popup/uni-popup.vue';
  144. import { verification } from '@/api/merchant.js';
  145. import { mapState, mapMutations } from 'vuex';
  146. import uniList from '@/components/uni-list/uni-list.vue';
  147. import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
  148. import { orderData, orderVerific } from '@/api/user.js';
  149. import { getUserInfo } from '@/api/login.js';
  150. let startY = 0,
  151. moveY = 0,
  152. pageAtTop = true;
  153. export default {
  154. components: {
  155. uniList,
  156. uniListItem,
  157. uniPopup
  158. },
  159. data() {
  160. return {
  161. coverTransform: 'translateY(0px)',
  162. coverTransition: '0s',
  163. moving: false,
  164. userDowm: 0, //卡片升级专属高度
  165. userMaxDowm: 0, //卡片最高高度
  166. orderinfo: {
  167. complete_count: 0,
  168. received_count: 0,
  169. unshipped_count: 0,
  170. order_count: 0
  171. },
  172. // 判断是否已经点击过一次取消关注公众号
  173. watchful: true,
  174. card: '',
  175. pwd: '',
  176. storeInfo: {
  177. name: ''
  178. }
  179. };
  180. },
  181. onShow() {
  182. // 判断是否已经登录
  183. if (this.hasLogin) {
  184. this.loadBaseData();
  185. }
  186. },
  187. onReady() {
  188. // 初始化获取页面宽度
  189. uni.createSelectorQuery()
  190. .select('.container')
  191. .fields(
  192. {
  193. size: true
  194. },
  195. data => {
  196. // 计算最多下拉的高度
  197. this.userDowm = Math.floor((data.width / 750) * 200);
  198. // 计算最大触发修改高度事件
  199. this.userMaxDowm = Math.floor((data.width / 750) * 250);
  200. }
  201. )
  202. .exec();
  203. },
  204. computed: {
  205. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin']),
  206. // #ifdef H5
  207. ...mapState(['weichatObj']),
  208. // #endif
  209. ...mapState(['isShowIllegality'])
  210. },
  211. methods: {
  212. ...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
  213. // 加载初始数据
  214. loadBaseData() {
  215. let obj = this;
  216. getUserInfo({})
  217. .then(({ data }) => {
  218. orderData({})
  219. .then(({ data }) => {
  220. obj.setOrderInfo(data);
  221. })
  222. .catch(e => {
  223. obj.setOrderInfo({
  224. complete_count: 0, //完成
  225. received_count: 0, //待收货
  226. unshipped_count: 0, //待发货
  227. order_count: 0, //订单总数
  228. unpaid_count: 0 //待付款
  229. });
  230. });
  231. obj.setUserInfo(data);
  232. // 判断是否已经关注公众号
  233. if (data.subscribe == 0 && obj.watchful) {
  234. uni.showModal({
  235. title: '温馨提醒',
  236. content: '为提供更好的服务,请关注公众号。',
  237. success: res => {
  238. obj.watchful = false;
  239. // 判断是否点击了确认
  240. if (res.confirm) {
  241. uni.navigateTo({
  242. url: '/pages/shareQrCode/wechatQr'
  243. });
  244. }
  245. }
  246. });
  247. }
  248. })
  249. .catch(e => {
  250. console.log(e);
  251. });
  252. },
  253. /**
  254. * 统一跳转接口,拦截未登录路由
  255. * navigator标签现在默认没有转场动画,所以用view
  256. */
  257. navTo(url) {
  258. if (!this.hasLogin) {
  259. url = '/pages/public/login';
  260. // #ifdef H5
  261. let weichatBrowser = uni.getStorageSync('weichatBrowser');
  262. // 判断是否为微信浏览器
  263. if (weichatBrowser) {
  264. url = '/pages/public/wxLogin';
  265. }
  266. // #endif
  267. // #ifdef MP-WEIXIN
  268. url = '/pages/public/wxLogin';
  269. // #endif
  270. }
  271. uni.navigateTo({
  272. url
  273. });
  274. },
  275. /**
  276. * 会员卡下拉和回弹
  277. * 1.关闭bounce避免ios端下拉冲突
  278. * 2.由于touchmove事件的缺陷(以前做小程序就遇到,比如20跳到40,h5反而好很多),下拉的时候会有掉帧的感觉
  279. * transition设置0.1秒延迟,让css来过渡这段空窗期
  280. * 3.回弹效果可修改曲线值来调整效果,推荐一个好用的bezier生成工具 http://cubic-bezier.com/
  281. */
  282. coverTouchstart(e) {
  283. // console.log(e);
  284. if (pageAtTop === false) {
  285. return;
  286. }
  287. this.coverTransition = 'transform .1s linear';
  288. startY = e.touches[0].clientY;
  289. },
  290. coverTouchmove(e) {
  291. // console.log(e);
  292. moveY = e.touches[0].clientY;
  293. let moveDistance = moveY - startY;
  294. let maxDowm = this.userMaxDowm;
  295. let Dowm = this.userDowm;
  296. if (moveDistance < 0) {
  297. this.moving = false;
  298. return;
  299. }
  300. this.moving = true;
  301. if (moveDistance >= Dowm && moveDistance < maxDowm) {
  302. moveDistance = Dowm;
  303. }
  304. if (moveDistance > 0 && moveDistance <= Dowm) {
  305. this.coverTransform = `translateY(${moveDistance}px)`;
  306. }
  307. },
  308. coverTouchend() {
  309. if (this.moving === false) {
  310. return;
  311. }
  312. this.moving = false;
  313. this.coverTransition = 'transform 0.3s cubic-bezier(.21,1.93,.53,.64)';
  314. this.coverTransform = 'translateY(0px)';
  315. },
  316. // 核销
  317. openQr() {
  318. let obj = this;
  319. // #ifndef H5
  320. uni.scanCode({
  321. success(e) {
  322. obj.orderVerific(e.result);
  323. }
  324. });
  325. // #endif
  326. // #ifdef H5
  327. this.weichatObj.scanQRCode({
  328. needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
  329. scanType: ['qrCode', 'barCode'], // 可以指定扫二维码还是一维码,默认二者都有
  330. success: function(res) {
  331. obj.orderVerific(res.resultStr); // 当needResult 为 1 时,扫码返回的结果
  332. }
  333. });
  334. // #endif
  335. },
  336. // 核销请求
  337. orderVerific(data) {
  338. orderVerific({
  339. verify_code: data
  340. })
  341. .then(e => {
  342. uni.showModal({
  343. title: '核销',
  344. content: '已核销成功',
  345. showCancel: false
  346. });
  347. })
  348. .catch(e => {
  349. uni.showModal({
  350. title: '错误',
  351. content: JSON.stringify(e),
  352. showCancel: false
  353. });
  354. console.log(e);
  355. });
  356. },
  357. // 选择门店
  358. chooseStore() {
  359. uni.navigateTo({
  360. url: '/pages/shoping/list?type=3'
  361. });
  362. },
  363. go() {
  364. this.$refs.popup.open();
  365. },
  366. cancel() {
  367. this.$refs.popup.close();
  368. this.card = '';
  369. this.pwd = '';
  370. this.storeInfo = { name: '' };
  371. },
  372. comfirm() {
  373. verification({
  374. card_number: this.card,
  375. card_password: this.pwd,
  376. type: 0,
  377. is_confirm: 1,
  378. reg_store_id: this.storeInfo.id
  379. })
  380. .then(e => {
  381. console.log(e);
  382. this.card = '';
  383. this.pwd = '';
  384. this.storeInfo = { name: '' };
  385. })
  386. .catch(e => {
  387. console.log(e);
  388. this.card = '';
  389. this.pwd = '';
  390. this.storeInfo = { name: '' };
  391. });
  392. this.$refs.popup.close();
  393. }
  394. }
  395. };
  396. </script>
  397. <style lang="scss">
  398. %flex-center {
  399. display: flex;
  400. flex-direction: column;
  401. justify-content: center;
  402. align-items: center;
  403. }
  404. %section {
  405. display: flex;
  406. justify-content: space-around;
  407. align-content: center;
  408. background: #fff;
  409. border-radius: 10rpx;
  410. }
  411. .container {
  412. height: 100%;
  413. background-color: #ffffff;
  414. /* #ifdef APP-PLUS */
  415. .bar-height {
  416. height: var(--status-bar-height);
  417. background-color: $base-color;
  418. }
  419. /* #endif */
  420. }
  421. .content-box {
  422. height: 100%;
  423. }
  424. .user-section {
  425. height: 435rpx;
  426. padding: 60rpx 0 0 0;
  427. position: relative;
  428. .bg {
  429. position: absolute;
  430. height: 480rpx;
  431. width: 100%;
  432. left: 0;
  433. top: 0;
  434. image {
  435. width: 100%;
  436. height: 100%;
  437. }
  438. // background-color: $base-color;
  439. }
  440. }
  441. .user-info-box {
  442. width: 90%;
  443. padding-left: 20rpx;
  444. margin: 0 auto;
  445. display: flex;
  446. height: 280rpx;
  447. align-items: stretch;
  448. background-color: #e9f8f1;
  449. border-radius: 20rpx;
  450. color: white;
  451. display: flex;
  452. justify-content: space-between;
  453. position: relative;
  454. z-index: 0;
  455. .detail {
  456. margin: 20rpx 0 0 0;
  457. height: 130rpx;
  458. .portrait-box {
  459. height: 100%;
  460. .portrait {
  461. width: 130rpx;
  462. height: 100%;
  463. border: 5rpx solid #fff;
  464. border-radius: 50%;
  465. }
  466. }
  467. .info-box {
  468. margin-left: 20rpx;
  469. line-height: 1.5;
  470. color: black;
  471. .username {
  472. font-size: $font-lg + 6rpx;
  473. height: 100%;
  474. }
  475. }
  476. }
  477. .config {
  478. margin-top: 60rpx;
  479. font-size: 28rpx;
  480. font-family: PingFang SC;
  481. font-weight: 500;
  482. color: #52c696;
  483. display: flex;
  484. justify-content: center;
  485. align-items: center;
  486. width: 165rpx;
  487. height: 64rpx;
  488. background: #ffffff;
  489. border-radius: 32px 0px 0px 32px;
  490. .setting {
  491. width: 32rpx;
  492. height: 32rpx;
  493. image {
  494. width: 100%;
  495. height: 100%;
  496. }
  497. // margin-right: 51rpx;
  498. }
  499. }
  500. }
  501. .vip-card-box {
  502. display: flex;
  503. flex-direction: column;
  504. color: #f7d680;
  505. height: 240rpx;
  506. background: linear-gradient(left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
  507. border-radius: 16rpx 16rpx 0 0;
  508. overflow: hidden;
  509. position: relative;
  510. padding: 20rpx 24rpx;
  511. .card-bg {
  512. position: absolute;
  513. top: 20rpx;
  514. right: 0;
  515. width: 380rpx;
  516. height: 260rpx;
  517. }
  518. .b-btn {
  519. position: absolute;
  520. right: 20rpx;
  521. top: 16rpx;
  522. width: 132rpx;
  523. height: 40rpx;
  524. text-align: center;
  525. line-height: 40rpx;
  526. font-size: 22rpx;
  527. color: #36343c;
  528. border-radius: 20px;
  529. background: linear-gradient(left, #f9e6af, #ffd465);
  530. z-index: 1;
  531. }
  532. .tit {
  533. font-size: $font-base + 2rpx;
  534. color: #f7d680;
  535. margin-bottom: 28rpx;
  536. .iconfont {
  537. color: #f6e5a3;
  538. margin-right: 16rpx;
  539. font-size: 30rpx;
  540. }
  541. }
  542. .e-b {
  543. font-size: $font-sm;
  544. color: #d8cba9;
  545. margin-top: 10rpx;
  546. }
  547. }
  548. .vip {
  549. margin-top: -110rpx;
  550. margin-bottom: 110rpx;
  551. padding: 0 30rpx;
  552. height: 170rpx;
  553. image {
  554. height: 100%;
  555. width: 100%;
  556. }
  557. }
  558. .cover-container {
  559. display: flex;
  560. flex-direction: column;
  561. background: $page-color-base;
  562. padding: 0 30rpx;
  563. position: relative;
  564. background: #f5f5f5;
  565. padding-bottom: 20rpx;
  566. margin-top: -110rpx;
  567. .arc {
  568. position: absolute;
  569. left: 0;
  570. top: -34rpx;
  571. width: 100%;
  572. height: 36rpx;
  573. }
  574. }
  575. .tj-sction {
  576. @extend %section;
  577. .tj-item {
  578. @extend %flex-center;
  579. flex-direction: column;
  580. height: 140rpx;
  581. font-size: $font-sm;
  582. color: #75787d;
  583. }
  584. .num {
  585. font-size: $font-lg;
  586. color: $font-color-dark;
  587. margin-bottom: 8rpx;
  588. }
  589. }
  590. .item-box {
  591. position: relative;
  592. background-color: white;
  593. top: -150rpx;
  594. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  595. .arc {
  596. position: absolute;
  597. left: 0;
  598. top: -34rpx;
  599. width: 100%;
  600. height: 36rpx;
  601. }
  602. .mendian {
  603. padding: 0 40rpx;
  604. height: 60rpx;
  605. background-color: #ffffff;
  606. display: flex;
  607. justify-content: space-between;
  608. align-items: center;
  609. .mendian-lift {
  610. display: flex;
  611. .null-mendian {
  612. font-size: 28rpx;
  613. font-weight: bold;
  614. }
  615. .img {
  616. margin: 0 10rpx 0;
  617. width: 36rpx;
  618. height: 36rpx;
  619. image {
  620. width: 100%;
  621. height: 100%;
  622. }
  623. }
  624. }
  625. .mendian-right {
  626. display: flex;
  627. align-items: center;
  628. .duihuan {
  629. font-size: 24rpx;
  630. }
  631. }
  632. }
  633. .my-order {
  634. padding: 0 20rpx;
  635. border-radius: 20rpx;
  636. }
  637. .box-title {
  638. line-height: 1;
  639. padding: 30rpx;
  640. .title {
  641. font-size: $font-lg;
  642. font-weight: bold;
  643. }
  644. .link {
  645. font-size: $font-base - 2rpx;
  646. color: $font-color-light;
  647. }
  648. }
  649. // .order{
  650. // margin-top: 70rpx;
  651. // }
  652. .order-section {
  653. @extend %section;
  654. padding: 28rpx 0;
  655. .order-item {
  656. @extend %flex-center;
  657. // width: 120rpx;
  658. width: 25%;
  659. height: 120rpx;
  660. border-radius: 10rpx;
  661. font-size: $font-sm;
  662. color: $font-color-dark;
  663. }
  664. .iconfont {
  665. font-size: 48rpx;
  666. margin-bottom: 18rpx;
  667. color: #fa436a;
  668. }
  669. .icon-shouhoutuikuan {
  670. font-size: 44rpx;
  671. }
  672. .icon {
  673. height: 88rpx;
  674. width: 90rpx;
  675. margin-bottom: 18rpx;
  676. background-size: 100%;
  677. background-repeat: no-repeat;
  678. background-position: center;
  679. .icon-img {
  680. width: 100%;
  681. height: 100%;
  682. }
  683. }
  684. .icon1 {
  685. height: 50rpx;
  686. width: 48rpx;
  687. margin-bottom: 18rpx;
  688. background-size: 100%;
  689. background-repeat: no-repeat;
  690. background-position: center;
  691. .icon-img {
  692. width: 100%;
  693. height: 100%;
  694. }
  695. }
  696. }
  697. }
  698. .history-section {
  699. // padding: 30rpx 0 0;
  700. margin-top: 20rpx;
  701. background: #fff;
  702. border-radius: 10rpx;
  703. .sec-header {
  704. display: flex;
  705. align-items: center;
  706. font-size: $font-base;
  707. color: $font-color-dark;
  708. line-height: 40rpx;
  709. margin-left: 30rpx;
  710. padding-top: 30rpx;
  711. .iconfont {
  712. font-size: 44rpx;
  713. color: $color-red;
  714. margin-right: 16rpx;
  715. line-height: 40rpx;
  716. }
  717. }
  718. .h-list {
  719. white-space: nowrap;
  720. padding: 30rpx 30rpx 0;
  721. image {
  722. display: inline-block;
  723. width: 160rpx;
  724. height: 160rpx;
  725. margin-right: 20rpx;
  726. border-radius: 10rpx;
  727. }
  728. }
  729. }
  730. .popup-box {
  731. width: 650rpx;
  732. padding-bottom: 30rpx;
  733. background-color: #ffffff;
  734. border-radius: 20rpx;
  735. position: relative;
  736. .img {
  737. position: relative;
  738. top: -56rpx;
  739. left: 0;
  740. width: 650rpx;
  741. height: 132rpx;
  742. z-index: 100;
  743. text-align: center;
  744. line-height: 132rpx;
  745. .img-bg {
  746. position: absolute;
  747. left: 50%;
  748. top: 0;
  749. margin-left: -250rpx;
  750. border-radius: 20rpx 20rpx 0 0;
  751. width: 500rpx;
  752. height: 132rpx;
  753. image {
  754. width: 100%;
  755. height: 100%;
  756. }
  757. }
  758. .img-font {
  759. line-height: 120rpx;
  760. position: relative;
  761. z-index: 10;
  762. text-align: center;
  763. font-size: 32rpx;
  764. font-weight: bold;
  765. color: #54300f;
  766. }
  767. }
  768. .mian {
  769. margin-top: -10rpx;
  770. display: flex;
  771. flex-direction: column;
  772. align-items: center;
  773. // padding: 32rpx 32rpx;
  774. background-color: #ffffff;
  775. border-radius: 0 0 20rpx 20rpx;
  776. text-align: center;
  777. padding: 20rpx;
  778. width: 100%;
  779. .main-item {
  780. display: flex;
  781. width: 580rpx;
  782. align-items: center;
  783. padding: 20rpx 40rpx;
  784. border-radius: 10rpx;
  785. background: #f5f2e5;
  786. height: 100rpx;
  787. .font {
  788. color: #623324;
  789. font-size: 30rpx;
  790. }
  791. .input {
  792. margin-left: 20rpx;
  793. text-align: left;
  794. color: #cdc0b3;
  795. font-size: 28rpx;
  796. }
  797. .input-font {
  798. color: #cdc0b3;
  799. font-size: 28rpx;
  800. }
  801. }
  802. .comfirm-box {
  803. margin-top: 80rpx;
  804. display: flex;
  805. // margin-bottom: 32rpx;
  806. // justify-content: space-around;
  807. .cancel {
  808. display: flex;
  809. align-items: center;
  810. justify-content: center;
  811. width: 260rpx;
  812. height: 100rpx;
  813. border: 1px solid #dcc786;
  814. border-radius: 10px;
  815. font-size: 32rpx;
  816. color: #605128;
  817. }
  818. .comfirm {
  819. margin-left: 60rpx;
  820. display: flex;
  821. align-items: center;
  822. justify-content: center;
  823. width: 260rpx;
  824. height: 100rpx;
  825. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  826. border-radius: 10px;
  827. font-size: 32rpx;
  828. color: #605128;
  829. }
  830. }
  831. }
  832. }
  833. </style>