user.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862
  1. <template>
  2. <view class="container">
  3. <!-- #ifdef APP-PLUS -->
  4. <view class="app-status"></view>
  5. <!-- #endif -->
  6. <view class="content-box">
  7. <view class="user-section">
  8. <view class="bg"><image class="bg-img" src="https://mmz.liuniu946.com/statics/img/img15.png"></image></view>
  9. <view class="user-info-box ">
  10. <view class="detail flex" @click="navTo('/pages/userinfo/userinfo')">
  11. <view class="portrait-box"><image class="portrait" :src="userInfo.avatar || '/static/error/missing-face.png'"></image></view>
  12. <view class="info-box">
  13. <view class="flex_item">
  14. <view class="username">{{ userInfo.nickname || '游客' }}</view>
  15. <view
  16. class="flex_item"
  17. :class="userInfo.level_info && userInfo.level_info.level_id == null ? 'level1' : 'level'"
  18. v-if="userInfo.level_info && userInfo.super_partner == 0"
  19. >
  20. <!-- <view class="level_img"><image :src="userInfo.vip_icon"></image></view> -->
  21. <text class="level_text">{{ userInfo.level_info.name }}</text>
  22. </view>
  23. <view
  24. class="flex_item"
  25. :class="userInfo.level_info && userInfo.level_info.level_id == null ? 'level1' : 'level'"
  26. v-if="userInfo.level_info && userInfo.super_partner == 1"
  27. >
  28. <!-- <view class="level_img"><image :src="userInfo.vip_icon"></image></view> -->
  29. <text class="level_text">超级合伙人</text>
  30. </view>
  31. </view>
  32. <!-- <view class="font-size-sm">邀请人:代勇明</view> -->
  33. <view class="font-size-sm" v-if="userInfo.spread_nickname">邀请人:{{ userInfo.spread_nickname }}</view>
  34. <!-- <view class="font-size-sm" v-if="userInfo.uid" >会员ID:{{userInfo.uid}}</view> -->
  35. </view>
  36. </view>
  37. <view class="config iconfont">
  38. <image src="https://mmz.liuniu946.com/statics/img/img19.png" @click="navTo('/pages/set/set')"></image>
  39. <!-- <image src="../../static/img/img20.png" ></image> -->
  40. </view>
  41. </view>
  42. </view>
  43. <view class="cover-container">
  44. <view class="flex thighday">
  45. <view class="thighday-background-img flex">
  46. <view class="row-2">
  47. <view class="row-2-1 flex1">
  48. <view class="flex1">
  49. <image class="row-img2" src="../../static/img/img17.png"></image>
  50. <text class="row-word2">升级享更多优惠权益</text>
  51. </view>
  52. <view class="row-button flex1" @click="navTo('/pages/partner/partner')">
  53. <text class="button-word">立即升级</text>
  54. <view class="button-img"></view>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. <!-- 订单 -->
  61. <view class="item-box">
  62. <view class="box-title flex borde-b">
  63. <view class="title"><text>我的订单</text></view>
  64. <view class="link" @click="navTo('/pages/order/order?state=0')" hover-class="common-hover">
  65. <text>全部订单</text>
  66. <text class="iconfont iconenter"></text>
  67. </view>
  68. </view>
  69. <view class="order-section" style="justify-content: space-around;">
  70. <view class="order-item" @click="navTo('/pages/order/order?state=0')" hover-class="common-hover" :hover-stay-time="50">
  71. <view class=" icon position-relative">
  72. <image class="icon-img" src="/static/img/img21.png" mode="aspectFit"></image>
  73. <view class="corner" v-if="orderInfo.unpaid_count > 0">
  74. <text>{{ orderInfo.unpaid_count }}</text>
  75. </view>
  76. </view>
  77. <text>待付款</text>
  78. </view>
  79. <view class="order-item" @click="navTo('/pages/order/order?state=1')" hover-class="common-hover" :hover-stay-time="50">
  80. <view class=" icon position-relative">
  81. <image class="icon-img" src="/static/img/img22.png" mode="aspectFit"></image>
  82. <view class="corner" v-if="orderInfo.unshipped_count > 0">
  83. <text>{{ orderInfo.unshipped_count }}</text>
  84. </view>
  85. </view>
  86. <text>待发货</text>
  87. </view>
  88. <view class="order-item" @click="navTo('/pages/order/order?state=2')" hover-class="common-hover" :hover-stay-time="50">
  89. <view class="icon position-relative">
  90. <image class="icon-img" src="/static/img/img23.png" mode="aspectFit"></image>
  91. <view class="corner" v-if="orderInfo.received_count > 0">
  92. <text>{{ orderInfo.received_count }}</text>
  93. </view>
  94. </view>
  95. <text>待收货</text>
  96. </view>
  97. <view class="order-item" @click="navTo('/pages/order/order?state=3')" hover-class="common-hover" :hover-stay-time="50">
  98. <view class="icon position-relative">
  99. <image class="icon-img" src="/static/img/img24.png" mode="aspectFit"></image>
  100. <view class="corner" v-if="orderInfo.evaluated_count > 0">
  101. <text>{{ orderInfo.evaluated_count }}</text>
  102. </view>
  103. </view>
  104. <text>待评价</text>
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. <view class="buttom-box flex">
  110. <view class="buttom" @click="navTo('/pages/wallet/wallet')">
  111. <view class="money">¥{{ userInfo.now_money || 0 }}</view>
  112. <text class="text">余额</text>
  113. </view>
  114. <view class="interval"></view>
  115. <view class="buttom" @click="navTo('/pages/wallet/wallets')">
  116. <view class="money">¥{{ userInfo.brokerage_price || 0 }}</view>
  117. <text class="text">推广收益</text>
  118. </view>
  119. </view>
  120. <view class="item-box margin" style="width: 94%;">
  121. <!-- <view class="order-section1">
  122. <view class="order-item" @click="navTo('/pages/wallet/accounts')" hover-class="common-hover" :hover-stay-time="50">
  123. <view class="item-1">
  124. <image class="icon-img" src="https://mmz.liuniu946.com/statics/img/img25.png" mode="aspectFit"></image>
  125. <text class="word-1">账号管理</text>
  126. </view>
  127. <view class="item-1">
  128. <image class="img" src="../../static/img/img13.png"></image>
  129. </view>
  130. </view>
  131. </view> -->
  132. <view class="order-section1">
  133. <view class="order-item" @click="navTo('/pages/address/address')" hover-class="common-hover" :hover-stay-time="50">
  134. <view class="item-1">
  135. <image class="icon-img" src="https://mmz.liuniu946.com/statics/img/img26.png" mode="aspectFit"></image>
  136. <text class="word-1">收货地址</text>
  137. </view>
  138. <view class="item-1"><image class="img" src="../../static/img/img13.png"></image></view>
  139. </view>
  140. </view>
  141. <view class="order-section1">
  142. <view class="order-item" @click="navTo('/pages/activity/bargain/index')" hover-class="common-hover" :hover-stay-time="50">
  143. <view class="item-1">
  144. <image class="icon-img" src="https://mmz.liuniu946.com/statics/img/img30.png" mode="aspectFit"></image>
  145. <text class="word-1">砍价记录</text>
  146. </view>
  147. <view class="item-1"><image class="img" src="../../static/img/img13.png"></image></view>
  148. </view>
  149. </view>
  150. <view class="order-section1">
  151. <view class="order-item" @click="navTo('/pages/user/spread')" hover-class="common-hover" :hover-stay-time="50">
  152. <view class="item-1">
  153. <image class="icon-img" src="https://mmz.liuniu946.com/statics/img/img27.png" mode="aspectFit"></image>
  154. <text class="word-1">我的推广</text>
  155. </view>
  156. <view class="item-1">
  157. <!-- {{userInfo.now_money||''}} -->
  158. <image class="img" src="../../static/img/img13.png"></image>
  159. </view>
  160. </view>
  161. </view>
  162. <view class="order-section1">
  163. <view class="order-item" @click="navTo('/pages/favorites/favorites')" hover-class="common-hover" :hover-stay-time="50">
  164. <view class="item-1">
  165. <image class="icon-img" src="https://mmz.liuniu946.com/statics/img/img28.png" mode="aspectFit"></image>
  166. <text class="word-1">我的收藏</text>
  167. </view>
  168. <view class="item-1"><image class="img" src="../../static/img/img13.png"></image></view>
  169. </view>
  170. </view>
  171. <!-- #ifdef MP -->
  172. <button class="contact" open-type="contact" style=" border-style :none;">
  173. <view class="item-1">
  174. <image class="icon-img" src="https://mmz.liuniu946.com/statics/img/img29.png" mode="aspectFit"></image>
  175. <text class="word-1">联系客服</text>
  176. </view>
  177. <view class="item-1"><image class="img" src="../../static/img/img13.png"></image></view>
  178. </button>
  179. <!-- #endif -->
  180. <!-- #ifdef MP -->
  181. <view class="order-section1" style=" border-top: 1px solid #F2F2F2;">
  182. <view class="order-item" @click="navTo('/pages/contact/merchants')" hover-class="common-hover" :hover-stay-time="50">
  183. <view class="item-1">
  184. <image class="icon-img" src="https://mmz.liuniu946.com/statics/img/img28.png" mode="aspectFit"></image>
  185. <text class="word-1">联系商家</text>
  186. </view>
  187. <view class="item-1"><image class="img" src="../../static/img/img13.png"></image></view>
  188. </view>
  189. </view>
  190. <!-- #endif -->
  191. <!-- #ifndef MP -->
  192. <view class="order-section1">
  193. <view class="order-item" hover-class="common-hover" :hover-stay-time="50" @click="shareMp">
  194. <view class="item-1">
  195. <image class="icon-img" src="https://mmz.liuniu946.com/statics/img/img29.png" mode="aspectFit"></image>
  196. <text class="word-1">联系客服</text>
  197. </view>
  198. <view class="item-1"><image class="img" src="../../static/img/img13.png"></image></view>
  199. </view>
  200. </view>
  201. <!-- #endif -->
  202. <!-- #ifdef APP-PLUS -->
  203. <view class="order-section1">
  204. <view class="order-item" @click="navTo('/pages/contact/merchants')" hover-class="common-hover" :hover-stay-time="50">
  205. <view class="item-1">
  206. <image class="icon-img" src="https://mmz.liuniu946.com/statics/img/img28.png" mode="aspectFit"></image>
  207. <text class="word-1">联系商家</text>
  208. </view>
  209. <view class="item-1"><image class="img" src="../../static/img/img13.png"></image></view>
  210. </view>
  211. </view>
  212. <!-- #endif -->
  213. </view>
  214. </view>
  215. </view>
  216. </template>
  217. <script>
  218. import { mapState, mapMutations } from 'vuex';
  219. import uniList from '@/components/uni-list/uni-list.vue';
  220. import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
  221. import { orderData, userinfo, commission } from '@/api/user.js';
  222. import { getAddressList } from '@/api/address.js';
  223. import { saveUrl, interceptor } from '@/utils/loginUtils.js';
  224. // #ifdef H5
  225. import { weixindata } from '@/utils/wxAuthorized';
  226. // #endif
  227. let startY = 0,
  228. moveY = 0,
  229. pageAtTop = true;
  230. export default {
  231. components: {
  232. uniList,
  233. uniListItem
  234. },
  235. data() {
  236. return {
  237. brokerage_price: 0, //现有佣金
  238. coverTransform: 'translateY(0px)',
  239. coverTransition: '0s',
  240. list: '',
  241. moving: false,
  242. userDowm: 0, //卡片升级专属高度
  243. userMaxDowm: 0, //卡片最高高度
  244. addressinfo: '',
  245. orderInfo: {
  246. complete_count: 0,
  247. received_count: 0,
  248. unshipped_count: 0,
  249. order_count: 0
  250. }
  251. };
  252. },
  253. onLoad(option) {
  254. if (option.spread) {
  255. // alert(option.spread);
  256. // 存储邀请人
  257. uni.setStorage({
  258. key: 'spread',
  259. data: option.spread
  260. });
  261. }
  262. if (option.spread_uid) {
  263. // alert(option.spread_uid);
  264. // 存储邀请人
  265. uni.setStorage({
  266. key: 'spread_uid',
  267. data: option.spread_uid
  268. });
  269. }
  270. },
  271. onShow() {
  272. console.log(this);
  273. // 判断是否已经登录
  274. if (this.hasLogin) {
  275. this.loadBaseData();
  276. }
  277. // 保存当前页面
  278. // #ifndef APP-PLUS
  279. saveUrl();
  280. // #endif
  281. },
  282. computed: {
  283. ...mapState(['hasLogin', 'userInfo'])
  284. },
  285. methods: {
  286. ...mapMutations(['setUserInfo']),
  287. // 加载初始数据
  288. loadBaseData() {
  289. userinfo({}).then(({ data }) => {
  290. console.log(data, 666);
  291. this.setUserInfo(data);
  292. // this.userInfo = data
  293. this.brokerage_price = data.brokerage_price;
  294. });
  295. orderData({})
  296. .then(({ data }) => {
  297. this.orderInfo = data;
  298. })
  299. .catch(e => {
  300. this.orderinfo = {};
  301. });
  302. // commission({})
  303. // .then(({ data }) => {
  304. // // console.log(data, 4);
  305. // this.list = data;
  306. // })
  307. // .catch(e => {});
  308. getAddressList({})
  309. .then(({ data }) => {
  310. this.addressinfo = data;
  311. })
  312. .catch(e => {});
  313. // #ifdef H5
  314. weixindata();
  315. // #endif
  316. },
  317. shareMp() {
  318. uni.navigateTo({
  319. url: '/pages/customer_list/index'
  320. });
  321. },
  322. /**
  323. * 统一跳转接口,拦截未登录路由
  324. * navigator标签现在默认没有转场动画,所以用view
  325. */
  326. navTo(url) {
  327. if (!this.hasLogin) {
  328. uni.showModal({
  329. title: '登录',
  330. content: '您未登录,是否马上登陆?',
  331. success: e => {
  332. if (e.confirm) {
  333. interceptor();
  334. }
  335. },
  336. fail: e => {
  337. console.log(e);
  338. }
  339. });
  340. return;
  341. }
  342. uni.navigateTo({
  343. url
  344. });
  345. },
  346. navTos() {
  347. let money = this.brokerage_price;
  348. if (!this.hasLogin) {
  349. uni.showModal({
  350. title: '登录',
  351. content: '您未登录,是否马上登陆?',
  352. success: e => {
  353. if (e.confirm) {
  354. interceptor();
  355. }
  356. },
  357. fail: e => {
  358. console.log(e);
  359. }
  360. });
  361. return;
  362. }
  363. uni.navigateTo({
  364. url: '/pages/wallet/wallets?money=' + money
  365. });
  366. }
  367. /**
  368. * 会员卡下拉和回弹
  369. * 1.关闭bounce避免ios端下拉冲突
  370. * 2.由于touchmove事件的缺陷(以前做小程序就遇到,比如20跳到40,h5反而好很多),下拉的时候会有掉帧的感觉
  371. * transition设置0.1秒延迟,让css来过渡这段空窗期
  372. * 3.回弹效果可修改曲线值来调整效果,推荐一个好用的bezier生成工具 http://cubic-bezier.com/
  373. */
  374. // coverTouchstart(e) {
  375. // // console.log(e);
  376. // if (pageAtTop === false) {
  377. // return;
  378. // }
  379. // this.coverTransition = 'transform .1s linear';
  380. // startY = e.touches[0].clientY;
  381. // },
  382. // coverTouchmove(e) {
  383. // // console.log(e);
  384. // moveY = e.touches[0].clientY;
  385. // let moveDistance = moveY - startY;
  386. // let maxDowm = this.userMaxDowm;
  387. // let Dowm = this.userDowm;
  388. // if (moveDistance < 0) {
  389. // this.moving = false;
  390. // return;
  391. // }
  392. // this.moving = true;
  393. // if (moveDistance >= Dowm && moveDistance < maxDowm) {
  394. // moveDistance = Dowm;
  395. // }
  396. // if (moveDistance > 0 && moveDistance <= Dowm) {
  397. // this.coverTransform = `translateY(${moveDistance}px)`;
  398. // }
  399. // },
  400. // coverTouchend() {
  401. // if (this.moving === false) {
  402. // return;
  403. // }
  404. // this.moving = false;
  405. // this.coverTransition = 'transform 0.3s cubic-bezier(.21,1.93,.53,.64)';
  406. // this.coverTransform = 'translateY(0px)';
  407. // }
  408. }
  409. };
  410. </script>
  411. <style lang="scss">
  412. page {
  413. height: 100%;
  414. // line-height: 1;
  415. }
  416. %flex-center {
  417. display: flex;
  418. flex-direction: column;
  419. justify-content: center;
  420. align-items: center;
  421. }
  422. %section {
  423. display: flex;
  424. justify-content: space-around;
  425. align-content: center;
  426. background: #fff;
  427. border-radius: 10rpx;
  428. }
  429. .container {
  430. margin-top: -1rpx;
  431. background-color: $page-color-base;
  432. .content-box {
  433. height: 100%;
  434. }
  435. /* #ifdef APP-PLUS */
  436. .app-status {
  437. height: var(--status-bar-height);
  438. background-color: $base-color;
  439. }
  440. /* #endif */
  441. }
  442. .buttom-box {
  443. background-color: #ffffff;
  444. text-align: center;
  445. margin: 30rpx;
  446. padding: 20rpx 0;
  447. border-radius: $border-radius-sm;
  448. .buttom {
  449. font-size: 42rpx;
  450. font-weight: 500;
  451. color: #222222;
  452. flex-grow: 1;
  453. .text {
  454. font-size: 24rpx;
  455. font-weight: 400;
  456. color: #666666;
  457. }
  458. }
  459. .interval {
  460. width: 1px;
  461. height: 125rpx;
  462. background-color: #eeeeee;
  463. }
  464. .icon {
  465. height: 50rpx;
  466. width: 48rpx;
  467. margin: 0 auto;
  468. .icon-img {
  469. width: 100%;
  470. height: 100%;
  471. }
  472. }
  473. }
  474. .m-t20 {
  475. margin-top: 20rpx;
  476. }
  477. .user-section {
  478. height: 400rpx;
  479. padding: 15rpx 30rpx 0;
  480. position: relative;
  481. .bg {
  482. position: absolute;
  483. left: 0;
  484. top: 0;
  485. width: 100%;
  486. height: 100%;
  487. overflow: hidden;
  488. .bg-img {
  489. width: 100%;
  490. height: 100%;
  491. }
  492. }
  493. }
  494. .user-info-box {
  495. height: 240rpx;
  496. color: white;
  497. display: flex;
  498. align-items: center;
  499. justify-content: space-between;
  500. position: relative;
  501. z-index: 1;
  502. .detail {
  503. height: 130rpx;
  504. .portrait-box {
  505. height: 100%;
  506. .portrait {
  507. width: 130rpx;
  508. height: 100%;
  509. border: 5rpx solid #fff;
  510. border-radius: 50%;
  511. }
  512. }
  513. .info-box {
  514. margin-left: 20rpx;
  515. line-height: 1.5;
  516. .username {
  517. font-size: $font-lg + 6rpx;
  518. height: 100%;
  519. max-width: 300rpx;
  520. white-space: nowrap;
  521. overflow: hidden;
  522. text-overflow: ellipsis;
  523. }
  524. .level {
  525. background: linear-gradient(90deg, #f8ecc6 0%, #d5b861 100%);
  526. border-radius: 50rpx;
  527. font-size: 20rpx;
  528. font-weight: 500;
  529. color: #93794b;
  530. margin-left: 20rpx;
  531. padding: 0rpx 20rpx 0rpx 20rpx;
  532. }
  533. .level_img {
  534. image {
  535. width: 25rpx;
  536. height: 29rpx;
  537. position: absolute;
  538. margin-top: -14rpx;
  539. margin-left: -28rpx;
  540. }
  541. }
  542. .level_text {
  543. }
  544. .level1 {
  545. border-radius: 50rpx;
  546. font-size: 20rpx;
  547. font-weight: 500;
  548. color: #ffffff;
  549. margin-left: 20rpx;
  550. padding: 0rpx 20rpx 0rpx 20rpx;
  551. border: 1px solid #ffffff;
  552. }
  553. }
  554. }
  555. .config {
  556. image {
  557. width: 45rpx;
  558. height: 45rpx;
  559. margin-left: 20rpx;
  560. }
  561. }
  562. }
  563. .cover-container {
  564. z-index: 99;
  565. position: relative;
  566. margin-top: -130rpx !important;
  567. width: 94%;
  568. margin: 0rpx auto;
  569. .thighday {
  570. .thighday-background-img {
  571. margin: 0 auto;
  572. width: 650rpx;
  573. height: 88rpx;
  574. background-image: url(https://mmz.liuniu946.com/statics/img/img16.png);
  575. background-repeat: no-repeat;
  576. background-size: 100% auto;
  577. overflow: hidden;
  578. .row-1 {
  579. padding-left: 19rpx;
  580. line-height: 40rpx;
  581. .row-img {
  582. width: 24rpx;
  583. height: 21rpx;
  584. margin-right: 8rpx;
  585. }
  586. .row-word {
  587. font-size: 20rpx;
  588. font-weight: 500;
  589. color: #84592f;
  590. line-height: 31rpx;
  591. }
  592. }
  593. .row-2 {
  594. padding: 0px 40rpx;
  595. width: 100%;
  596. .row-2-1 {
  597. width: 100%;
  598. display: flex;
  599. align-items: center;
  600. .row-img1 {
  601. width: 25rpx;
  602. height: 20rpx;
  603. margin-right: 10rpx;
  604. }
  605. .row-img2 {
  606. width: 29rpx;
  607. height: 25rpx;
  608. margin-right: 20rpx;
  609. }
  610. .row-word1 {
  611. font-size: 20rpx;
  612. font-weight: 500;
  613. color: #84592f;
  614. line-height: 36rpx;
  615. }
  616. .row-word2 {
  617. font-size: 24rpx;
  618. font-weight: 500;
  619. color: #f3d184;
  620. line-height: 36rpx;
  621. }
  622. }
  623. .row-button {
  624. display: flex;
  625. align-items: center;
  626. justify-content: center;
  627. border-radius: 22rpx;
  628. height: 36rpx;
  629. .button-word {
  630. font-size: 24rpx;
  631. font-weight: 500;
  632. color: #ffcc66;
  633. margin-right: 10rpx;
  634. }
  635. .button-img {
  636. width: 16rpx;
  637. height: 16rpx;
  638. background: url(https://mmz.liuniu946.com/statics/img/img18.png);
  639. background-size: 16rpx 16rpx;
  640. }
  641. }
  642. }
  643. }
  644. }
  645. }
  646. .button-group {
  647. width: 94%;
  648. margin: 0px auto;
  649. margin-top: 50rpx;
  650. .group-1 {
  651. line-height: 1;
  652. padding: 25rpx 30rpx;
  653. background: #ffffff;
  654. box-shadow: 0rpx 2rpx 10rpx 0rpx rgba(180, 183, 187, 0.8);
  655. border-radius: 36rpx;
  656. font-size: 30rpx;
  657. font-weight: 500;
  658. color: #fa2740;
  659. }
  660. .m-r50 {
  661. margin-right: 50rpx;
  662. }
  663. }
  664. .tj-sction {
  665. @extend %section;
  666. padding: 25rpx 0rpx;
  667. margin-top: 21rpx;
  668. box-shadow: 0px 0px 20px 0px rgba(50, 50, 52, 0.06);
  669. .tj-item {
  670. @extend %flex-center;
  671. flex-direction: column;
  672. height: 100%;
  673. font-size: $font-sm;
  674. color: #75787d;
  675. .tj-img {
  676. width: 100%;
  677. height: 50rpx;
  678. text-align: center;
  679. image {
  680. width: 48rpx;
  681. height: 48rpx;
  682. }
  683. }
  684. .tj-img1 {
  685. image {
  686. width: 40rpx;
  687. height: 48rpx;
  688. }
  689. }
  690. .tj-text {
  691. padding: 15rpx 0rpx;
  692. font-size: 30rpx;
  693. font-weight: 500;
  694. color: rgba(51, 51, 51, 1);
  695. }
  696. .num {
  697. color: #999999;
  698. margin-bottom: 8rpx;
  699. }
  700. }
  701. }
  702. .margin {
  703. margin: 0 3% 50rpx 3%;
  704. }
  705. .item-box {
  706. border-radius: 10rpx;
  707. background-color: white;
  708. margin-bottom: 20rpx;
  709. box-shadow: 0px 0px 20px 0px rgba(50, 50, 52, 0.06);
  710. &:nth-of-type(1) {
  711. margin-bottom: 0rpx;
  712. }
  713. .box-title {
  714. line-height: 1;
  715. padding: 30rpx 30rpx 20rpx 30rpx;
  716. .title {
  717. font-size: 30rpx;
  718. font-weight: bold;
  719. color: #1d2023;
  720. }
  721. .link {
  722. font-size: $font-base - 2rpx;
  723. color: #3f454b;
  724. }
  725. }
  726. .gongju {
  727. flex-wrap: wrap;
  728. .gongju-item {
  729. margin-bottom: 25rpx;
  730. }
  731. }
  732. .order-section {
  733. // @extend %section;
  734. display: flex;
  735. align-items: center;
  736. padding: 25rpx 0;
  737. &.gongju {
  738. padding: 25rpx 0 0 0;
  739. }
  740. .order-item {
  741. @extend %flex-center;
  742. width: 25%;
  743. height: 120rpx;
  744. font-size: $font-sm;
  745. color: #3f454b;
  746. }
  747. .icon {
  748. height: 48rpx;
  749. width: 48rpx;
  750. margin-bottom: 18rpx;
  751. background-size: 100%;
  752. background-repeat: no-repeat;
  753. background-position: center;
  754. .icon-img {
  755. width: 100%;
  756. height: 100%;
  757. }
  758. }
  759. }
  760. .order-section1 {
  761. width: 100%;
  762. height: 100%;
  763. border-bottom: 1px solid #f2f2f2;
  764. .order-item {
  765. display: flex;
  766. justify-content: space-between;
  767. padding: 30rpx;
  768. .item-1 {
  769. display: flex;
  770. align-items: center;
  771. font-size: $font-sm;
  772. color: $font-color-light;
  773. .icon-img {
  774. height: 44rpx;
  775. width: 44rpx;
  776. margin-right: 20rpx;
  777. }
  778. .word-1 {
  779. font-size: $font-lg - 2rpx;
  780. color: #3f454b;
  781. }
  782. .word-2 {
  783. font-size: $font-base - 2rpx;
  784. color: #888888;
  785. margin-right: 10rpx;
  786. }
  787. .img {
  788. width: 13rpx;
  789. height: 24rpx;
  790. }
  791. }
  792. }
  793. .line {
  794. padding: 0px 15rpx;
  795. .line-1 {
  796. width: 100%;
  797. height: 1px;
  798. background: #f2f2f2;
  799. }
  800. }
  801. &:nth-last-child(1) {
  802. margin-bottom: 120rpx;
  803. }
  804. }
  805. /* #ifdef MP */
  806. .contact:after {
  807. border: none !important;
  808. outline: none;
  809. // background-color: pink;
  810. padding: 30rpx 0;
  811. }
  812. /* #endif */
  813. .contact {
  814. background-color: #fff;
  815. border: none !important;
  816. display: flex;
  817. // display: block;
  818. height: 104rpx;
  819. justify-content: space-between;
  820. padding-left: 30rpx;
  821. padding-top: 10rpx;
  822. padding-bottom: 10rpx;
  823. .item-1 {
  824. display: flex;
  825. align-items: center;
  826. font-size: $font-sm;
  827. color: $font-color-light;
  828. .icon-img {
  829. height: 44rpx;
  830. width: 44rpx;
  831. margin-right: 20rpx;
  832. }
  833. .word-1 {
  834. font-size: $font-lg - 2rpx;
  835. color: #3f454b;
  836. }
  837. .word-2 {
  838. font-size: $font-base - 2rpx;
  839. color: #888888;
  840. margin-right: 10rpx;
  841. }
  842. .img {
  843. width: 13rpx;
  844. height: 24rpx;
  845. float: right;
  846. }
  847. }
  848. }
  849. }
  850. </style>