user.vue 25 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148
  1. <template>
  2. <view class="container">
  3. <!-- <view class="vheigh"></view> -->
  4. <view class="" style="height: 100rpx;"></view>
  5. <view class="user-box">
  6. <!-- <view class="u-level" v-if="userInfo && userInfo.zero_level_name && userInfo.zero_level > 0">
  7. {{userInfo.zero_level_name}}
  8. </view> -->
  9. <view class="user-info flex">
  10. <image class="avatar" :src="userInfo.avatar" mode="" v-if="userInfo.avatar"
  11. @click="navTo('/pages/set/userinfo')"></image>
  12. <image class="avatar" src="../../static/error/missing-face.png" mode="" v-else
  13. @click="navTo('/pages/set/userinfo')"></image>
  14. <!-- {{userInfo.level?showLevel(userInfo.level):""}} -->
  15. <view class="user-name clamp2">{{ userInfo.nickname || '游客'}}</view>
  16. <view class="user-name" v-if="userInfo && userInfo.uid" >
  17. <image v-if="userInfo && userInfo.level > 0" :src="showLevel(userInfo.level)" mode="heightFix" style="height: 35rpx;display: inline-block;margin:5rpx;"></image>
  18. <image v-if="userInfo && userInfo.zero_level > 0" :src="showLevel(userInfo.zero_level)" mode="heightFix" style="height:35rpx;display: inline-block;margin:5rpx;"></image>
  19. </view>
  20. <view class="user-id" v-if="userInfo && userInfo.uid" style="padding-top: 5rpx;">
  21. UID:{{userInfo.uid}}
  22. </view>
  23. </view>
  24. </image>
  25. </view>
  26. <view class="main-box">
  27. <view class="main flex">
  28. <view class="oitem oitem1" @click="navTo('/pages/user/award')">
  29. <view class="val">
  30. {{userInfo.brokerage_price || '0'}}
  31. </view>
  32. <view class="oitem-font">我的奖金</view>
  33. </view>
  34. <view class="oitem oitem1" @click="navTo('/pages/user/yue')">
  35. <view class="val">
  36. {{userInfo.now_money || '0'}}
  37. </view>
  38. <view class="oitem-font">我的余额</view>
  39. </view>
  40. <view class="oitem oitem1" @click="navTo('/pages/user/team')">
  41. <view class="val">
  42. {{userInfo.spread_count || '0'}}
  43. </view>
  44. <view class="oitem-font">我的推广</view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="main-box">
  49. <view class="title flex" @click="navTo('/pages/order/order?state=0')">
  50. <view class="title-left">
  51. <view class="title-font">我的订单</view>
  52. </view>
  53. <image class="title-right" src="../../static/icon/back.png" mode=""></image>
  54. </view>
  55. <view class="main flex">
  56. <view class="oitem" @click="navTo('/pages/order/order?state=0')">
  57. <image class="oitem-image" src="../../static/user/o1.png" mode=""></image>
  58. <view class="oitem-font">待付款</view>
  59. </view>
  60. <view class="oitem" @click="navTo('/pages/order/order?state=1')">
  61. <image class="oitem-image" src="../../static/user/o2.png" mode=""></image>
  62. <view class="oitem-font">待发货</view>
  63. </view>
  64. <view class="oitem" @click="navTo('/pages/order/order?state=2')">
  65. <image class="oitem-image" src="../../static/user/o3.png" mode=""></image>
  66. <view class="oitem-font">待收货</view>
  67. </view>
  68. <view class="oitem" @click="navTo('/pages/order/order?state=3')">
  69. <image class="oitem-image" src="../../static/user/o4.png" mode=""></image>
  70. <view class="oitem-font">已完成</view>
  71. </view>
  72. </view>
  73. </view>
  74. <!-- <view class="main-box">
  75. <view class="title flex" @click="navTo('/pages/order/order?state=0')">
  76. <view class="title-left">
  77. <view class="title-font">推广收益</view>
  78. </view>
  79. </view>
  80. <view class="main flex">
  81. <view class="oitem oitem1" @click="navTo('/pages/user/sz?type=6')">
  82. <view class="oitem-font oitem-font1">
  83. <image src="../../static/user/t1.png" mode=""></image> 分红点数
  84. </view>
  85. <view class="val">
  86. {{userInfo.dividend_points*1 || '0'}}
  87. </view>
  88. </view>
  89. <view class="oitem oitem1 oitem-font1" @click="navTo('/pages/user/sz?type=7')">
  90. <view class="oitem-font oitem-font1">
  91. <image src="../../static/user/t2.png" mode=""></image> 分红额度
  92. </view>
  93. <view class="val">
  94. {{userInfo.dividend_amount*1 || '0'}}
  95. </view>
  96. </view>
  97. <view class="oitem oitem1" @click="navTo('/pages/order/order?state=2')">
  98. <view class="oitem-font oitem-font1">
  99. <image src="../../static/user/t3.png" mode=""></image> 已分红
  100. </view>
  101. <view class="val">
  102. {{userInfo.use_cooperation_amount}}
  103. </view>
  104. </view>
  105. </view>
  106. </view> -->
  107. <view class="main-box">
  108. <view class="title flex" @click="navTo('/pages/order/order?state=0')">
  109. <view class="title-left">
  110. <view class="title-font">更多功能</view>
  111. </view>
  112. <image class="title-right" src="../../static/icon/back.png" mode=""></image>
  113. </view>
  114. <view class="main flex">
  115. <!-- #ifdef APP-PLUS -->
  116. <!-- <view class="oitem" @click="gorz" v-if="!isSh && userInfo && userInfo.uid && userInfo.is_real != 2">
  117. <image class="oitem-image" src="../../static/user/m9.png" mode=""></image>
  118. <view class="oitem-font">实名认证</view>
  119. </view> -->
  120. <!-- #endif -->
  121. <!-- #ifdef H5 -->
  122. <!-- <view class="oitem" @click="gorz" v-if="userInfo && userInfo.uid && userInfo.is_real != 2">
  123. <image class="oitem-image" src="../../static/user/m9.png" mode=""></image>
  124. <view class="oitem-font">实名认证</view>
  125. </view> -->
  126. <!-- #endif -->
  127. <!-- <view class="oitem" @click="navTo('/pages/order/dfOrder?state=0')">
  128. <image class="oitem-image" src="../../static/user/m1.png" mode=""></image>
  129. <view class="oitem-font">代付订单</view>
  130. </view> -->
  131. <!-- <view class="oitem" @click="smsh"> -->
  132. <view class="oitem" v-if="userInfo && userInfo.uid && userInfo.adminid" @click="smsh">
  133. <image class="oitem-image" src="../../static/user/m2.png" mode=""></image>
  134. <view class="oitem-font">扫码核销</view>
  135. </view>
  136. <view class="oitem" @click="navTo('/pages/user/team')">
  137. <image class="oitem-image" src="../../static/user/m3.png" mode=""></image>
  138. <view class="oitem-font">我的邀请</view>
  139. </view>
  140. <view class="oitem" @click="navTo('/pages/user/shareQrCode')">
  141. <image class="oitem-image" src="../../static/user/m4.png" mode=""></image>
  142. <view class="oitem-font">邀请好友</view>
  143. </view>
  144. <view class="oitem" @click="navTo('/pages/set/address')">
  145. <image class="oitem-image" src="../../static/user/m5.png" mode=""></image>
  146. <view class="oitem-font">收货地址</view>
  147. </view>
  148. <!-- <button open-type="contact" class="basebtn ">
  149. <view class="oitems">
  150. <image class="oitem-image" src="../../static/user/m6.png" mode="" ></image>
  151. <view class="oitem-font">联系客服</view>
  152. </view>
  153. </button> -->
  154. <!-- <view class="oitem" @click="openPp('popupkf')">
  155. </view> -->
  156. <view class="oitem" @click="navTo('/pages/set/userinfo')">
  157. <image class="oitem-image" src="../../static/user/m7.png" mode=""></image>
  158. <view class="oitem-font">设置</view>
  159. </view>
  160. <!-- <view class="oitem" @click="navTo('/pages/user/quanyi')">
  161. <image class="oitem-image" src="../../static/user/m8.png" mode=""></image>
  162. <view class="oitem-font">我的权益</view>
  163. </view> -->
  164. </view>
  165. </view>
  166. <!-- <view class="user-list flex" @click="smsh" v-if="userInfo && userInfo.uid && userInfo.adminid">
  167. <image src="../../static/icon/scend.png" mode="" class="left-img"></image>
  168. <view class="">
  169. 扫码核销
  170. </view>
  171. <image src="../../static/icon/back.png" mode="" class="right-img"></image>
  172. </view> -->
  173. <view class="" style="height: 20rpx;">
  174. </view>
  175. <uni-popup ref="popupkf" type="center">
  176. <view class="popup-box">
  177. <view class="img">
  178. <image src="../../static/img/img009.png" mode=""></image>
  179. </view>
  180. <view class="mian">
  181. <view class="delivery">
  182. <view class="title">已经为您定制专属客服</view>
  183. <image src="../../static/img/img010.png" mode=""></image>
  184. </view>
  185. <view class="nocancel">客服VX:{{ text }}</view>
  186. <view class="comfirm-box">
  187. <view class="cancel" @click="closePp('popupkf')">取消</view>
  188. <view class="comfirm" @click="comfirm(text)">复制微信</view>
  189. </view>
  190. </view>
  191. </view>
  192. </uni-popup>
  193. <!-- 核销弹窗 -->
  194. <!-- <uni-popup ref="popuphx" class="agree-wrapper">
  195. <view class="hx-wrapper">
  196. <view class="hx-img">
  197. <image src="../../static/img/hxbg1.png" mode=""></image>
  198. </view>
  199. <view class="hx-body">
  200. <view class="hx-title">
  201. 扫码核销
  202. </view>
  203. <input type="text" v-model="hxcode" placeholder="请输入核销码" placeholder-class="hx-placeholder" />
  204. <view class="hx-btn" @click="qhx">
  205. 立即核销
  206. </view>
  207. </view>
  208. <view class="hx-close" @click="close">
  209. <image src="../../static/icon/close.png" mode=""></image>
  210. </view>
  211. </view>
  212. </uni-popup> -->
  213. <!-- <uni-popup ref="popupdf" class="agree-wrapper">
  214. <view class="df-wrap">
  215. <view class="tit">
  216. 请输入代付码
  217. </view>
  218. <input type="text" v-model="dfcode" placeholder="请输入代付码" />
  219. <view class="btn" @click="goDf">
  220. 确认
  221. </view>
  222. <image src="../../static/user/close.png" mode="" class="close" @click="closePp('popupdf')"></image>
  223. </view>
  224. </uni-popup> -->
  225. <!-- #ifdef APP -->
  226. <yk-authpup ref="CAMERA" type="top" @changeAuth="changeAuth" permissionID="CAMERA"></yk-authpup>
  227. <!-- #endif -->
  228. </view>
  229. </template>
  230. <script>
  231. import ykAuthpup from "@/components/yk-authpup/yk-authpup";
  232. import {
  233. orderVerific
  234. } from '@/api/index.js'
  235. import {
  236. toScanCode
  237. } from '@/components/scan.js'
  238. // #ifdef H5
  239. import weixinObj from "@/plugin/jweixin-module/index.js";
  240. // #endif
  241. import {
  242. mapState,
  243. mapMutations
  244. } from 'vuex';
  245. import uniList from '@/components/uni-list/uni-list.vue';
  246. import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
  247. import {
  248. orderData,
  249. getUserInfo,
  250. check,
  251. getLevelList
  252. } from '@/api/user.js';
  253. import {
  254. saveUrl,
  255. interceptor
  256. } from '@/utils/loginUtils.js';
  257. import {
  258. createPaying,
  259. payingPay
  260. } from '@/api/order.js'
  261. let startY = 0,
  262. moveY = 0,
  263. pageAtTop = true;
  264. export default {
  265. components: {
  266. uniList,
  267. uniListItem,
  268. ykAuthpup
  269. },
  270. data() {
  271. return {
  272. isSh: true,
  273. listList: [], //等级列表
  274. current: 2,
  275. id: '', //是否已签到
  276. store_name: '',
  277. achievement: '',
  278. code: '',
  279. levelList: [],
  280. text: '', //客服微信
  281. hxcode: '', //核销码
  282. hxLoading: false,
  283. dfcode: '' //代付码
  284. };
  285. },
  286. onShow() {
  287. // 判断是否已经登录
  288. // if (this.hasLogin) {
  289. // this.loadBaseData();
  290. // }
  291. this.loadBaseData();
  292. // #ifdef APP-PLUS
  293. this.getSh()
  294. // #endif
  295. },
  296. filters: {
  297. phone(e) {
  298. var subStr1 = e.substr(0, 3);
  299. var subStr2 = e.substr(e.length - 4, 4);
  300. var subStr = subStr1 + '...' + subStr2;
  301. e = subStr;
  302. return e;
  303. }
  304. },
  305. onReady() {
  306. // 初始化获取页面宽度
  307. uni.createSelectorQuery()
  308. .select('.container')
  309. .fields({
  310. size: true
  311. },
  312. data => {
  313. // 计算最多下拉的高度
  314. this.userDowm = Math.floor((data.width / 750) * 185);
  315. // 计算最大触发修改高度事件
  316. this.userMaxDowm = Math.floor((data.width / 750) * 250);
  317. }
  318. )
  319. .exec();
  320. },
  321. computed: {
  322. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
  323. },
  324. methods: {
  325. ...mapMutations('user', ['setUserInfo']),
  326. getSh() {
  327. let that = this
  328. const getUpAppUrl = this.$store.state.baseURL + '/api/version'
  329. function compareVersions(version1, version2) {
  330. const v1 = version1.split('.');
  331. const v2 = version2.split('.');
  332. for (let i = 0; i < Math.max(v1.length, v2.length); i++) {
  333. const num1 = parseInt(v1[i] || 0);
  334. const num2 = parseInt(v2[i] || 0);
  335. if (num1 < num2) {
  336. return -1;
  337. } else if (num1 > num2) {
  338. return 1;
  339. }
  340. }
  341. return 0;
  342. }
  343. uni.request({
  344. url: getUpAppUrl,
  345. method: 'GET',
  346. data: {},
  347. success: res => {
  348. let r = res.data.data;
  349. plus.runtime.getProperty(plus.runtime.appid, function(wgtinfo) {
  350. // 保存线上版本号
  351. //{"app_down":"www.baidu.com","app_version":"1.0.1"} , app
  352. let version = r.app_down;
  353. // 获取线上版本
  354. const arr = r.app_version.split('.');
  355. console.log(arr, 'app_version');
  356. // 获取当前系统
  357. const arr1 = wgtinfo.version.split('.');
  358. console.log();
  359. if (compareVersions(wgtinfo.version, r.app_version) <= 0) {
  360. console.log('zhe ');
  361. that.isSh = false
  362. } else {
  363. console.log('审核');
  364. that.isSh = true
  365. }
  366. });
  367. },
  368. });
  369. },
  370. openAuth() {
  371. this.$refs['CAMERA'].open()
  372. },
  373. changeAuth() {
  374. this.smsh()
  375. },
  376. gorz() {
  377. if (!this.hasLogin) {
  378. saveUrl();
  379. interceptor();
  380. } else {
  381. // uni.navigateTo({
  382. // url
  383. // });
  384. if (this.userInfo.is_real == 0) {
  385. this.navTo('/pages/user/smrz')
  386. } else if (this.userInfo.is_real == 1) {
  387. uni.showModal({
  388. title: "提示",
  389. content: '您提交的资料正在审核中,请耐心等待审核'
  390. })
  391. }
  392. }
  393. },
  394. getLevelList() {
  395. getLevelList({
  396. type: 1
  397. }).then(res => {
  398. console.log(res);
  399. this.listList = res.data.list
  400. getLevelList().then(res => {
  401. this.listList =this.listList.concat(res.data.list)
  402. })
  403. })
  404. },
  405. showLevel(val) {
  406. let data = this.listList.find(item => item.grade == val)
  407. console.log(data);
  408. if (data) {
  409. return data.icon
  410. // return data.name
  411. } else {
  412. return ''
  413. }
  414. },
  415. close() {
  416. this.hxcode = ''
  417. this.$refs.popuphx.close()
  418. },
  419. qhx() {
  420. let that = this
  421. if (that.hxLoading) {
  422. return
  423. }
  424. if (that.hxcode == '') {
  425. return that.$api.msg('请输入核销码')
  426. }
  427. that.hxLoading = true
  428. orderVerific({
  429. verify_code: that.hxcode,
  430. is_confirm: 1
  431. }).then(res => {
  432. uni.showToast({
  433. title: '核销成功',
  434. mask: true,
  435. duration: 1500
  436. });
  437. that.close()
  438. that.hxLoading = false
  439. }).catch(err => [
  440. that.hxLoading = false
  441. ])
  442. },
  443. smsh() {
  444. let that = this
  445. // #ifdef H5
  446. toScanCode({
  447. onlyFromCamera: true // 只允许通过相机扫码
  448. }).then(res => {
  449. that.hxcode = res
  450. that.$refs.popuphx.open()
  451. }).catch(err => {
  452. console.log(err, 'err');
  453. that.$refs.popuphx.open()
  454. })
  455. // #endif
  456. // #ifndef H5
  457. uni.scanCode({
  458. success: (res) => {
  459. that.hxcode = res.result
  460. that.$refs.popuphx.open()
  461. }
  462. })
  463. // #endif
  464. },
  465. sao() {
  466. let obj = this;
  467. // #ifndef H5
  468. uni.scanCode({
  469. success(e) {
  470. obj.code = e.result;
  471. obj.$refs.popuphx.open();
  472. }
  473. });
  474. // #endif
  475. },
  476. comfirm(text) {
  477. console.log(text);
  478. const result = this.uniCopy(text);
  479. if (result === false) {
  480. uni.showToast({
  481. title: '不支持'
  482. });
  483. } else {
  484. uni.showToast({
  485. title: '复制成功',
  486. icon: 'none'
  487. });
  488. }
  489. this.$refs.popupkf.close();
  490. },
  491. uniCopy(content) {
  492. /**
  493. * 小程序端 和 app端的复制逻辑
  494. */
  495. //#ifndef H5
  496. uni.setClipboardData({
  497. data: content,
  498. success: function() {
  499. console.log('success');
  500. return true;
  501. }
  502. });
  503. //#endif
  504. /**
  505. * H5端的复制逻辑
  506. */
  507. // #ifdef H5
  508. if (!document.queryCommandSupported('copy')) {
  509. //为了兼容有些浏览器 queryCommandSupported 的判断
  510. // 不支持
  511. return false;
  512. }
  513. let textarea = document.createElement('textarea');
  514. textarea.value = content;
  515. textarea.readOnly = 'readOnly';
  516. document.body.appendChild(textarea);
  517. textarea.select(); // 选择对象
  518. textarea.setSelectionRange(0, content.length); //核心
  519. let result = document.execCommand('copy'); // 执行浏览器复制命令
  520. textarea.remove();
  521. return result;
  522. // #endif
  523. },
  524. // 加载初始数据
  525. loadBaseData() {
  526. const obj = this
  527. getUserInfo({})
  528. .then(({
  529. data
  530. }) => {
  531. obj.setUserInfo(data);
  532. obj.getLevelList()
  533. })
  534. .catch(e => {
  535. console.log(e);
  536. });
  537. },
  538. /**
  539. * 统一跳转接口,拦截未登录路由
  540. * navigator标签现在默认没有转场动画,所以用view
  541. */
  542. navTo(url) {
  543. console.log(url);
  544. if (!this.hasLogin) {
  545. // 保存地址
  546. saveUrl();
  547. // 登录拦截
  548. interceptor();
  549. } else {
  550. uni.navigateTo({
  551. url
  552. });
  553. }
  554. },
  555. openPp(name) {
  556. this.$refs[name].open();
  557. },
  558. closePp(name) {
  559. this.$refs[name].close();
  560. },
  561. goDf() {
  562. let that = this
  563. if (that.dfcode == '') {
  564. return that.$api.msg('请输入代付码')
  565. }
  566. createPaying({
  567. uni: that.dfcode
  568. }).then(res => {
  569. console.log(res);
  570. uni.navigateTo({
  571. url: '/pages/money/payt?uni=' + that.dfcode
  572. })
  573. })
  574. },
  575. }
  576. };
  577. </script>
  578. <style lang="scss" lang="scss">
  579. .basebtn {
  580. background: #fff;
  581. padding: 0;
  582. // margin: 0;
  583. &::after {
  584. border: none;
  585. }
  586. }
  587. %flex-center {
  588. display: flex;
  589. flex-direction: column;
  590. justify-content: center;
  591. align-items: center;
  592. }
  593. %section {
  594. display: flex;
  595. justify-content: space-around;
  596. align-content: center;
  597. background: #fff;
  598. border-radius: 10rpx;
  599. }
  600. .container,
  601. page {
  602. min-height: 100%;
  603. height: auto;
  604. background-color: $page-color-base;
  605. }
  606. .container {
  607. background-image: url('https://xmyl.qiniu1314.com/static/image/u-bg.png');
  608. background-size: 750rpx 695rpx;
  609. background-repeat: no-repeat;
  610. }
  611. .vheigh {
  612. height: var(--status-bar-height);
  613. background-color: $base-color;
  614. }
  615. .top-image {
  616. position: absolute;
  617. top: 0;
  618. left: 0;
  619. right: 0;
  620. height: 228rpx;
  621. image {
  622. width: 100%;
  623. height: 100%;
  624. }
  625. }
  626. .popup-box {
  627. width: 522rpx;
  628. height: 605rpx;
  629. background-color: #ffffff;
  630. border-radius: 20rpx;
  631. position: relative;
  632. .img {
  633. position: relative;
  634. top: -56rpx;
  635. left: 0;
  636. width: 522rpx;
  637. height: 132rpx;
  638. display: flex;
  639. justify-content: center;
  640. image {
  641. border-radius: 20rpx 20rpx 0 0;
  642. width: 450rpx;
  643. height: 132rpx;
  644. }
  645. }
  646. .mian {
  647. margin-top: -44rpx;
  648. display: flex;
  649. flex-direction: column;
  650. align-items: center;
  651. // padding: 32rpx 32rpx;
  652. background-color: #ffffff;
  653. border-radius: 0 0 20rpx 20rpx;
  654. text-align: center;
  655. .delivery {
  656. font-size: 40rpx;
  657. color: #333333;
  658. display: flex;
  659. align-items: center;
  660. flex-direction: column;
  661. image {
  662. margin-top: 48rpx;
  663. width: 172rpx;
  664. height: 160rpx;
  665. }
  666. }
  667. .nocancel {
  668. font-size: 32rpx;
  669. color: #333333;
  670. margin-top: 14rpx;
  671. }
  672. .comfirm-box {
  673. margin-top: 52rpx;
  674. display: flex;
  675. // margin-bottom: 32rpx;
  676. // justify-content: space-around;
  677. .cancel {
  678. display: flex;
  679. align-items: center;
  680. justify-content: center;
  681. width: 197rpx;
  682. height: 74rpx;
  683. border: 1px solid #dcc786;
  684. border-radius: 38rpx;
  685. font-size: 32rpx;
  686. color: #605128;
  687. }
  688. .comfirm {
  689. margin-left: 32rpx;
  690. display: flex;
  691. align-items: center;
  692. justify-content: center;
  693. width: 197rpx;
  694. height: 74rpx;
  695. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  696. border-radius: 38px;
  697. font-size: 32rpx;
  698. color: #605128;
  699. }
  700. }
  701. }
  702. }
  703. .user-box {
  704. position: relative;
  705. z-index: 2;
  706. width: 690rpx;
  707. margin: 0 auto;
  708. /* #ifdef MP-WEIXIN */
  709. margin: -100rpx auto 0;
  710. /* #endif */
  711. // background: #ffffff;
  712. // box-shadow: 0px 4rpx 13rpx 0px rgba(229, 229, 229, 0.46);
  713. border-radius: 20rpx;
  714. display: flex;
  715. flex-direction: column;
  716. align-items: center;
  717. padding: 54rpx 0 30rpx;
  718. line-height: 1;
  719. position: relative;
  720. .u-set {
  721. position: absolute;
  722. top: 85rpx;
  723. right: 40rpx;
  724. width: 44rpx;
  725. height: 44rpx;
  726. }
  727. .user-info {
  728. flex-direction: column;
  729. justify-content: flex-start;
  730. width: 100%;
  731. // padding-left: 40rpx;
  732. color: #fff;
  733. .avatar {
  734. border-radius: 50%;
  735. width: 132rpx;
  736. height: 132rpx;
  737. background-color: #eee;
  738. }
  739. }
  740. .user-name {
  741. text-align: center;
  742. width: 300rpx;
  743. margin-top: 14rpx;
  744. // font-size: 30rpx;
  745. font-size: $ltl-size-big;
  746. font-weight: bold;
  747. color: #fff;
  748. }
  749. .user-id {
  750. text-align: center;
  751. font-size: 28rpx;
  752. // padding: 10rpx 0;
  753. width: 300rpx;
  754. height: 32rpx;
  755. margin: auto;
  756. }
  757. .user-shop-icon {
  758. display: block;
  759. margin: auto;
  760. width: 128rpx;
  761. height: 32rpx;
  762. }
  763. }
  764. .main-box {
  765. margin: 20rpx auto 0;
  766. width: 710rpx;
  767. background: #ffffff;
  768. box-shadow: 0px 4rpx 14rpx 0px rgba(229, 229, 229, 0.46);
  769. border-radius: 20rpx;
  770. .title {
  771. display: flex;
  772. justify-content: space-between;
  773. align-items: center;
  774. padding: 24rpx;
  775. border-bottom: 1px solid #eeeeee;
  776. .title-left {
  777. display: flex;
  778. align-items: center;
  779. .title-icon {
  780. width: 32rpx;
  781. height: 32rpx;
  782. }
  783. .title-font {
  784. margin-left: 20rpx;
  785. font-size: 30rpx;
  786. font-family: PingFang SC;
  787. font-weight: bold;
  788. color: #333333;
  789. }
  790. }
  791. .title-right {
  792. width: 14rpx;
  793. height: 24rpx;
  794. }
  795. }
  796. .main {
  797. padding: 20rpx 0;
  798. flex-wrap: wrap;
  799. justify-content: flex-start;
  800. .oitem1 {
  801. border-right: 1px solid #eee;
  802. flex-grow: 1;
  803. .oitem-font {
  804. image {
  805. width: 28rpx;
  806. height: 28rpx;
  807. vertical-align: top;
  808. margin-right: 10rpx;
  809. }
  810. }
  811. .oitem-font1 {
  812. padding-bottom: 20rpx;
  813. }
  814. &:last-of-type {
  815. border-right: none;
  816. }
  817. }
  818. .oitem {
  819. width: 25%;
  820. display: flex;
  821. flex-direction: column;
  822. align-items: center;
  823. margin: 30rpx 0 20rpx;
  824. .oitem-image {
  825. height: 40rpx;
  826. width: 42rpx;
  827. }
  828. .zc {
  829. width: 90rpx;
  830. height: 88rpx;
  831. }
  832. .val {
  833. font-weight: bold;
  834. font-size: 36rpx;
  835. color: #333333;
  836. }
  837. .zc-t {
  838. margin-top: 0 !important;
  839. }
  840. .oitem-font {
  841. margin-top: 20rpx;
  842. font-size: 24rpx;
  843. font-weight: 500;
  844. color: #333333;
  845. }
  846. }
  847. }
  848. }
  849. .tool-list {
  850. width: 690rpx;
  851. margin: 20rpx auto 0;
  852. background: #ffffff;
  853. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  854. border-radius: 20rpx;
  855. }
  856. .psw-wrapper {
  857. width: 548rpx;
  858. padding: 20rpx 0;
  859. background-color: #ffffff;
  860. border-radius: 15rpx 15rpx;
  861. .psw-title {
  862. width: 100%;
  863. font-size: 35rpx;
  864. padding: 0 0 40rpx;
  865. text-align: center;
  866. font-weight: 800;
  867. }
  868. .psw-content {
  869. width: 100%;
  870. font-size: 32rpx;
  871. text-align: center;
  872. }
  873. .psw-price {
  874. font-weight: bold;
  875. font-size: 68rpx;
  876. text-align: center;
  877. padding-top: 10rpx;
  878. }
  879. .psw-jg {
  880. height: 1px;
  881. width: 500rpx;
  882. background-color: #eee;
  883. margin: auto;
  884. }
  885. .psw-paytype {
  886. justify-content: space-between;
  887. padding: 10rpx 25rpx 30rpx;
  888. font-size: 26rpx;
  889. }
  890. .psw-ipt {
  891. display: block;
  892. background-color: #dce3ed;
  893. height: 90rpx;
  894. width: 464rpx;
  895. padding-left: 30rpx;
  896. margin: 0 auto;
  897. font-size: 80rpx;
  898. }
  899. .psw-btn text {
  900. display: inline-block;
  901. text-align: center;
  902. width: 50%;
  903. padding-top: 29rpx;
  904. font-size: 35rpx;
  905. }
  906. .psw-qd {
  907. color: #ff4c4c;
  908. }
  909. }
  910. .hx-wrapper {
  911. width: 536rpx;
  912. height: 630rpx;
  913. position: relative;
  914. // background-color: #fff;
  915. .hx-img {
  916. width: 536rpx;
  917. height: 281rpx;
  918. image {
  919. width: 536rpx;
  920. height: 281rpx;
  921. }
  922. }
  923. .hx-close {
  924. position: absolute;
  925. left: 243rpx;
  926. bottom: -80rpx;
  927. width: 52rpx;
  928. height: 52rpx;
  929. image {
  930. width: 52rpx;
  931. height: 52rpx;
  932. }
  933. }
  934. .hx-body {
  935. width: 536rpx;
  936. height: 349rpx;
  937. background-color: #fff;
  938. border-radius: 0 0 10rpx 10rpx;
  939. .hx-title {
  940. width: 536rpx;
  941. font-size: 36rpx;
  942. font-weight: 500;
  943. color: #333333;
  944. line-height: 1;
  945. padding-top: 42rpx;
  946. text-align: center;
  947. }
  948. input {
  949. width: 439rpx;
  950. height: 68rpx;
  951. background: #eee;
  952. border-radius: 10rpx;
  953. margin: 39rpx auto 0;
  954. padding-left: 26rpx;
  955. .hx-placeholder {
  956. font-size: 26rpx;
  957. font-weight: 500;
  958. color: $base-color;
  959. }
  960. }
  961. .hx-btn {
  962. margin: 44rpx auto 0;
  963. width: 353rpx;
  964. height: 71rpx;
  965. background: $base-color;
  966. border-radius: 34rpx;
  967. font-size: 36rpx;
  968. font-weight: 500;
  969. color: #f8f9f9;
  970. line-height: 71rpx;
  971. text-align: center;
  972. }
  973. }
  974. }
  975. .sqdl {
  976. display: block;
  977. width: 689rpx;
  978. margin: 20rpx auto 20rpx;
  979. }
  980. .df-wrap {
  981. width: 750rpx;
  982. height: 469rpx;
  983. background: #FFFFFF;
  984. border-radius: 16rpx;
  985. text-align: center;
  986. padding-top: 43rpx;
  987. position: relative;
  988. .tit {
  989. font-weight: bold;
  990. font-size: 36rpx;
  991. color: #262626;
  992. }
  993. input {
  994. height: 80rpx;
  995. font-weight: bold;
  996. font-size: 36rpx;
  997. color: #262626;
  998. width: 531rpx;
  999. border-bottom: 1px solid #EBEBED;
  1000. margin: 80rpx auto 64rpx;
  1001. }
  1002. .btn {
  1003. width: 640rpx;
  1004. line-height: 96rpx;
  1005. background: #FF6F0F;
  1006. border-radius: 48rpx;
  1007. font-size: 38rpx;
  1008. color: #FFFFFF;
  1009. margin: auto;
  1010. }
  1011. .close {
  1012. position: absolute;
  1013. right: 52rpx;
  1014. top: 46rpx;
  1015. width: 28rpx;
  1016. height: 28rpx;
  1017. }
  1018. }
  1019. .oitem2 {
  1020. flex-grow: 1;
  1021. }
  1022. .u-level {
  1023. position: absolute;
  1024. top: 0;
  1025. right: -30rpx;
  1026. // width: 175rpx;
  1027. height: 55rpx;
  1028. font-weight: bold;
  1029. // background-image: url('../../static/user/level.png');
  1030. // background-size: 100% 100%;
  1031. font-size: 30rpx;
  1032. color: #FFFFFF;
  1033. text-align: right;
  1034. padding: 20rpx 5rpx 0 0;
  1035. // background: linear-gradient(0deg, red 0%, #ffc049 100%);
  1036. // -webkit-background-clip: text;
  1037. // -webkit-text-fill-color: transparent;
  1038. color: #fff;
  1039. }
  1040. .oitems {
  1041. display: flex;
  1042. flex-direction: column;
  1043. justify-content: center;
  1044. .oitem-image {
  1045. height: 40rpx;
  1046. width: 42rpx;
  1047. }
  1048. .oitem-font {
  1049. margin-top: 20rpx;
  1050. font-size: 24rpx;
  1051. font-weight: 500;
  1052. color: #333333;
  1053. }
  1054. }
  1055. </style>