customer.vue 24 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051
  1. <template>
  2. <view>
  3. <view class="header">
  4. <view style='background:#fff;display:flex;' class="cu-bar search">
  5. <view style='flex:6;' class="search-form round Medium">
  6. <text style='color: #ccc;text-indent:6px;' class="cuIcon-search"></text>
  7. <input @input='searchinput' type="text" maxlength="20" :focus="true" v-model="searchKeyWord"
  8. @confirm="doSearch()" placeholder=" 输入客户姓名、客户手机号或供应商姓名" confirm-type="search"></input>
  9. </view>
  10. <view @click='doSearch()' class="Regular" style="width:4%;flex:1;">搜索</view>
  11. <u-icon @click='emptysearch' class="cuIcon" v-if='searchKeyWord.length>0' size="34"
  12. name="close-circle-fill" color="#D6D9E0"></u-icon>
  13. <!-- <text @click='emptysearch' v-if='searchKeyWord.length>0' class='tip_text cuIcon-roundclosefill'></text> -->
  14. </view>
  15. </view>
  16. <view class="content">
  17. <view style='padding-left:20px;color:#AFB3BF;font-size:14px;' v-if='show==false'>近期客户</view>
  18. <view v-for='item in gridList'>
  19. <view v-if='searchKeyWord.length>0&&show==true' class='searchwrap' @click='checkcustomer(item)'>
  20. <view v-if="item.supplier"> {{item.customerName}}({{item.customerPhone}})-{{item.supplier}} </view>
  21. <view v-else> {{item.customerName}}({{item.customerPhone}}) </view>
  22. </view>
  23. </view>
  24. <view v-for='item in recentCustomers' style='display:inline-block;'>
  25. <view @click='recentcustomer(item)' class='wrap' v-if='show==false'>
  26. {{item.customerName}}({{item.customerPhone}})
  27. </view>
  28. </view>
  29. </view>
  30. <view class="content content1">
  31. <view style='padding-left:20px;color:#AFB3BF;font-size:14px;' v-if='show==false'>登记客户</view>
  32. <!-- <view v-for='item in registeredCustomer'> -->
  33. <view class="dj-customer" v-for="(item,index) in registeredCustomer" @click="registeredCustomerClick(item,item1)">
  34. <view class="left">{{item.carNo}}</view>
  35. <view class="right">
  36. <view class="span1">{{item.shipperName}}(货)</view>
  37. <view class="">{{item.supplier}}(商)</view>
  38. </view>
  39. </view>
  40. <!-- </view> -->
  41. </view>
  42. <view v-show="isContent">
  43. <uni-load-more :status="loadStatus"></uni-load-more>
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. import dragButton from "@/components/drag-button/drag-button.vue";
  49. import {
  50. mapState
  51. } from 'vuex';
  52. let startY = 0,
  53. moveY = 0,
  54. pageAtTop = true;
  55. export default {
  56. components: {
  57. dragButton
  58. },
  59. data() {
  60. return {
  61. inputShow: false,
  62. modalName: '',
  63. mycarStyle: '',
  64. feild: undefined,
  65. params: {},
  66. selector: [],
  67. isContent: false,
  68. loadStatus: 'noMore',
  69. inputContent: '',
  70. coverTransform: 'translateY(0px)',
  71. coverTransition: '0s',
  72. moving: false,
  73. footprintList: [],
  74. searchKeyWord: '',
  75. isVip: false,
  76. userInfoTmp: [],
  77. inputStatus: 'none',
  78. carInfo: [],
  79. gridCol: 4,
  80. show: false,
  81. pageSize: 10,
  82. currentPage: 1,
  83. gridBorder: false,
  84. headUrl: "../../static/img/myimg/YongHu@3x.png",
  85. userphone: "",
  86. username: "请更改昵称",
  87. gridList: [],
  88. managementType: '',
  89. warehouseName: '',
  90. showTran: true,
  91. companyId: 1,
  92. current: 4,
  93. customerList: [],
  94. purchasePriceList: [],
  95. warehouseCount: '',
  96. commonWarehouseNo: '',
  97. cangid: '',
  98. recentCustomers: [],
  99. registeredCustomer: []
  100. }
  101. },
  102. computed: {
  103. ...mapState(['hasLogin', 'userInfo']),
  104. // 手机号中间4位加*
  105. starUserphone() {
  106. let reg = /^(\d{3})\d{4}(\d{4})$/;
  107. if (this.userphone) {
  108. return this.userphone.replace(reg, "$1****$2");
  109. }
  110. }
  111. },
  112. onLoad(options) {
  113. this.cangid = options.cangid
  114. this.warehouseName = options.warehouseName
  115. this.goodsName = options.goodsName
  116. this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
  117. warehouseId: this.cangid
  118. }).then(res => {
  119. if (res.data.data) {
  120. uni.setStorageSync('purchasePriceList', res.data.data)
  121. this.purchasePriceList = uni.getStorageSync('purchasePriceList')
  122. }
  123. })
  124. },
  125. onShow() {
  126. this.purchasePriceList = uni.getStorageSync('purchasePriceList')
  127. let _data = uni.getStorageSync('recentCustomers')
  128. if (_data) {
  129. this.recentCustomers =_data
  130. for(let i=0;i<_data.length;i++){
  131. if(_data[i].shipperName){
  132. this.recentCustomers[i].customerName = _data[i].shipperName
  133. this.recentCustomers[i].customerPhone = _data[i].shipperPhone
  134. }
  135. }
  136. } else {
  137. this.recentCustomers = []
  138. }
  139. this.$api.doRequest('get', '/shippingInformation/selectShippingInformation', {
  140. warehouseName: this.warehouseName,
  141. compId: uni.getStorageSync('pcUserInfo').compId,
  142. }).then(res => {
  143. if (res.data.data) {
  144. let _endTime = Date.parse(new Date());
  145. let _startTime = ""
  146. for (let i = 0; i < res.data.data.length; i++) {
  147. _startTime = new Date((res.data.data[i].validityDate + ' 00:00:00')).getTime();
  148. if (_endTime - _startTime <= 0) {
  149. this.registeredCustomer.push(res.data.data[i])
  150. }
  151. // let _carList = res.data.data[i].shippingInformationList
  152. // for (let k = 0; k < _carList.length; k++) {
  153. // //判断是记录是否失效
  154. // _startTime = new Date((res.data.data[i].validityDate + ' 00:00:00')).getTime();
  155. // if (_endTime - _startTime <= 0) {
  156. // let _ecarList = _carList[k].carNo.split(',')
  157. // _carList[k].carList = _ecarList
  158. // this.registeredCustomer.push(_carList[k])
  159. // }
  160. // }
  161. }
  162. console.log(this.registeredCustomer)
  163. }
  164. })
  165. // this.$api.doRequest('get', '/searchRecordsInfo/selectSearchRecordsInfo', {
  166. // pageSize: this.pageSize,
  167. // currentPage: this.currentPage,
  168. // functionType: "3",
  169. // commonId: this.userInfo.id
  170. // }).then(res => {
  171. // if (res.data.data) {
  172. // this.gridList = res.data.data.records
  173. // console.log(this.gridList)
  174. // }
  175. // })
  176. // this.$api.doRequest('get', '/identityAuthenticationInfo/identityAuthenticationInfoCustomer', {
  177. // compId: uni.getStorageSync('pcUserInfo').compId,
  178. // authenticationStatusKey: 7,
  179. // searchKeyWord:''
  180. // }).then(res => {
  181. // if (res.data.data) {
  182. // this.customerList = res.data.data
  183. // }
  184. // })
  185. },
  186. methods: {
  187. searchinput(e) {
  188. if (this.searchKeyWord.length == 0) {
  189. this.show = false
  190. this.getList()
  191. }
  192. },
  193. registeredCustomerClick(item,item1){
  194. uni.setStorageSync('carNo', item1)
  195. uni.setStorageSync('checkcustomer', item)
  196. if (this.recentCustomers.length == 0) {
  197. this.recentCustomers.push(item)
  198. uni.setStorageSync('recentCustomers', this.recentCustomers)
  199. }else{
  200. let _copyList = this.$u.deepClone(this.recentCustomers);
  201. for (let i = 0; i < this.recentCustomers.length; i++) {
  202. if (this.recentCustomers[i].customerPhone != item.shipperPhone) {
  203. _copyList.push(item)
  204. uni.setStorageSync('recentCustomers', _copyList)
  205. }
  206. }
  207. }
  208. uni.navigateBack()
  209. },
  210. checkcustomer(item) {
  211. var that = this
  212. var count = ''
  213. if (item.authenticationStatus == '已认证') {
  214. // uni.showLoading({
  215. // title: '加载中'
  216. // })
  217. uni.setStorageSync('checkcustomer', item)
  218. if (this.recentCustomers.length == 0) {
  219. this.recentCustomers.push(item)
  220. uni.setStorageSync('recentCustomers', this.recentCustomers)
  221. }else{
  222. let _isDel = false
  223. for (let i = 0; i < this.recentCustomers.length; i++) {
  224. if (this.recentCustomers[i].customerPhone == item.customerPhone) {
  225. _isDel = true
  226. }
  227. }
  228. if(!_isDel){
  229. let _data = uni.getStorageSync('recentCustomers')
  230. _data.push(item)
  231. uni.setStorageSync('recentCustomers', _data)
  232. }
  233. }
  234. // uni.hideLoading()
  235. uni.navigateBack()
  236. // that.$api.doRequest('post', '/searchRecordsInfo/api/addInfo', {
  237. // commonId: that.userInfo.id,
  238. // searchContent: item.customerName + '(' + item.customerPhone + ')',
  239. // functionType: 3
  240. // }).then(res => {
  241. // uni.setStorageSync('checkcustomer', item)
  242. // that.$api.doRequest('get', '/qualityInspectionManagement/api/settledCount', {
  243. // compId: '',
  244. // customerName: item.customerName,
  245. // goodsName: uni.getStorageSync('goodsName'),
  246. // }).then(res => {
  247. // if (res.data.code == 200) {
  248. // count = res.data.data
  249. // that.$api.doRequest('get', '/paymentManagement/cumulant', {
  250. // compId: '',
  251. // customerName: item.customerName,
  252. // goodsName: uni.getStorageSync('goodsName'),
  253. // }).then(res => {
  254. // for (let i = 0; i < that.purchasePriceList.length; i++) {
  255. // var data = res.data.data / 1000
  256. // if (that.purchasePriceList[i].goodsName == uni
  257. // .getStorageSync('goodsName')) {
  258. // if (that.purchasePriceList[i].saleLimit - data < 50 ||
  259. // count > 0) {
  260. // that.$api.msg(
  261. // `当前客户已累计销售我司${uni.getStorageSync('goodsName')}${data.toFixed(2)}吨,最高可售${that.purchasePriceList[i].saleLimit}吨。`
  262. // )
  263. // }
  264. // }
  265. // }
  266. // that.show = false
  267. // uni.hideLoading()
  268. // uni.navigateBack()
  269. // })
  270. // }
  271. // })
  272. // })
  273. // .catch(res => {
  274. // uni.showToast({
  275. // title: '系统异常,请联系管理员',
  276. // icon: 'none',
  277. // duration: 2000
  278. // })
  279. // uni.hideLoading()
  280. // })
  281. } else {
  282. this.$api.msg('客户身份不可用')
  283. }
  284. },
  285. recentcustomer(item) {
  286. uni.setStorageSync('checkcustomer', item)
  287. uni.navigateBack()
  288. // var count = ''
  289. // var that = this
  290. // var name = item.searchContent.split('(')[0]
  291. // var phone = item.searchContent.split('(')[1]
  292. // phone = phone.substring(0, phone.length - 1)
  293. // for (var i = 0; i < this.customerList.length; i++) {
  294. // // console.log(name,this.customerList[i].customerName,name==this.customerList[i].customerName)
  295. // if (this.customerList[i].customerPhone == phone) {
  296. // var tmpName = this.customerList[i].customerName
  297. // uni.setStorageSync('checkcustomer', this.customerList[i])
  298. // uni.showLoading({
  299. // title: '加载中'
  300. // })
  301. // that.$api.doRequest('post', '/searchRecordsInfo/api/addInfo', {
  302. // commonId: that.userInfo.id,
  303. // searchContent: this.customerList[i].customerName + '(' + this.customerList[i]
  304. // .customerPhone + ')',
  305. // functionType: 3
  306. // }).then(res => {
  307. // that.$api.doRequest('get', '/qualityInspectionManagement/api/settledCount', {
  308. // compId: '',
  309. // customerName: tmpName,
  310. // goodsName: uni.getStorageSync('goodsName'),
  311. // }).then(res => {
  312. // if (res.data.code == 200) {
  313. // count = res.data.data
  314. // that.$api.doRequest('get', '/paymentManagement/cumulant', {
  315. // compId: '',
  316. // customerName: tmpName,
  317. // goodsName: uni.getStorageSync('goodsName'),
  318. // }).then(res => {
  319. // for (let i = 0; i < that.purchasePriceList.length; i++) {
  320. // if (that.purchasePriceList[i].goodsName == uni
  321. // .getStorageSync('goodsName')) {
  322. // var data = res.data.data / 1000
  323. // if (that.purchasePriceList[i].saleLimit - data <
  324. // 50 || count > 0) {
  325. // that.$api.msg(
  326. // `当前客户已累计销售我司${uni.getStorageSync('goodsName')}${data.toFixed(2)}吨,最高可售${that.purchasePriceList[i].saleLimit}吨。`
  327. // )
  328. // }
  329. // }
  330. // }
  331. // that.show = false
  332. // uni.hideLoading()
  333. // uni.navigateBack()
  334. // })
  335. // }
  336. // })
  337. // })
  338. // .catch(res => {
  339. // uni.showToast({
  340. // title: '系统异常,请联系管理员',
  341. // icon: 'none',
  342. // duration: 2000
  343. // })
  344. // uni.hideLoading()
  345. // })
  346. // }
  347. // }
  348. },
  349. emptysearch() {
  350. this.show = false
  351. this.searchKeyWord = ''
  352. this.gridList = []
  353. this.currentPage = 1
  354. this.getList()
  355. },
  356. doSearch() {
  357. this.show = true
  358. this.gridList = []
  359. this.currentPage = 1
  360. uni.showLoading({
  361. title: '正在加载',
  362. mask:true
  363. })
  364. this.getList()
  365. },
  366. getList() {
  367. var that = this
  368. var url = ''
  369. var data = {}
  370. if (this.searchKeyWord.length > 0) {
  371. url = '/identityAuthenticationInfo/identityAuthenticationInfoCustomer'
  372. data = {
  373. warehouseId: that.cangid,
  374. goodsName: that.goodsName,
  375. searchKeyWord: this.searchKeyWord
  376. }
  377. } else {
  378. url = '/searchRecordsInfo/selectSearchRecordsInfo'
  379. data = {
  380. pageSize: this.pageSize,
  381. currentPage: this.currentPage,
  382. functionType: "3",
  383. commonId: this.userInfo.id
  384. }
  385. }
  386. this.$api.doRequest('get', url, data).then(res => {
  387. if (res.data.data) {
  388. uni.hideLoading()
  389. let data = res.data.data.records ? res.data.data.records : res.data.data
  390. //采购信息
  391. if (data.length > 0) {
  392. that.gridList = data
  393. } else {
  394. if (this.currentPage == 1) {
  395. that.gridList = []
  396. }
  397. this.isContent = true
  398. }
  399. }
  400. })
  401. },
  402. edit(item) {
  403. uni.navigateTo({
  404. url: '/pages/erpbusiness/edit_quality_testing?id=' + item.id + '&managementType=' + this
  405. .managementType + '&cangid=' + this.cangid
  406. })
  407. },
  408. add() {
  409. uni.navigateTo({
  410. url: '/pages/erpbusiness/add_quality_testing?managementType=' + this.managementType +
  411. '&cangid=' + this.cangid + '&warehouseCount=' + this.warehouseCount +
  412. '&commonWarehouseNo=' + this.commonWarehouseNo + '&warehouseName=' + this.warehouseName
  413. })
  414. },
  415. del(item) {
  416. this.$api.doRequest('post', '/qualityInspectionManagement/api/deleteQualityInspection', {
  417. id: item.id
  418. }).then(res => {
  419. if (res.data.code == 200) {
  420. this.$api.msg('删除成功')
  421. this.gridList = []
  422. this.getList()
  423. } else {
  424. this.$api.msg('系统异常,请联系管理员')
  425. }
  426. })
  427. },
  428. fankui() {
  429. uni.navigateTo({
  430. url: `/pages/user/fankui`
  431. })
  432. },
  433. zhibo() {
  434. uni.navigateTo({
  435. url: `/pageB/video/broadcast`
  436. })
  437. },
  438. look() {
  439. uni.navigateTo({
  440. url: `/pageB/video/look`
  441. })
  442. },
  443. contactUs() {
  444. const that = this
  445. uni.makePhoneCall({
  446. // 手机号
  447. phoneNumber: '18241771147',
  448. // 成功回调
  449. success: (res) => {},
  450. // 失败回调
  451. fail: (res) => {}
  452. });
  453. },
  454. loadData() {
  455. // const that = this
  456. // if(uni.getStorageSync("PageCur")){
  457. // that.PageCur = uni.getStorageSync("PageCur");
  458. // }
  459. // that.userInfoTmp = uni.getStorageSync("userInfo")
  460. // uni.showLoading({
  461. // title: '正在加载',
  462. // mask:true
  463. // })
  464. // that.$api.request('integral', 'getIndexData', failres => {
  465. // that.$api.msg(failres.errmsg)
  466. // uni.hideLoading()
  467. // }).then(res => {
  468. // let data = res.data
  469. // uni.setStorageSync("message", data.message);
  470. // uni.setStorageSync("task", data.task);
  471. // uni.setStorageSync("contract", data.contract);
  472. // uni.setStorageSync('showTran', data.showTran);
  473. // that.showTran = data.showTran
  474. // that.gridList[4].tips = data.task
  475. // that.gridList[2].tips = data.contract
  476. // that.companyId = data.companyId
  477. // uni.hideLoading()
  478. // })
  479. },
  480. confirm() {
  481. const that = this
  482. if (!that.inputContent) {
  483. that.$api.msg('输入不能为空')
  484. return
  485. }
  486. let obj = {}
  487. obj[that.feild] = that.inputContent
  488. that.$api.request('user', 'syncUserInfo', obj).then(res => {
  489. that.userInfo.nickname = that.inputContent
  490. that.inputContent = ''
  491. that.$store.commit('login', that.userInfo)
  492. })
  493. },
  494. cancel() {
  495. this.inputShow = false
  496. this.inputStatus = 'none'
  497. this.genderShow = false
  498. },
  499. myAccount() {
  500. uni.navigateTo({
  501. url: `/pageA/pages/contract`
  502. })
  503. },
  504. /**
  505. * 统一跳转接口,拦截未登录路由
  506. * navigator标签现在默认没有转场动画,所以用view
  507. */
  508. navTo(url) {
  509. if (!this.hasLogin) {
  510. url = '/pages/public/login';
  511. }
  512. uni.navigateTo({
  513. url
  514. })
  515. },
  516. mycarClick(carNo) {
  517. this.modalName = null
  518. uni.navigateTo({
  519. url: `/pageB/car/mycar_detail?carNo=${carNo}`
  520. })
  521. },
  522. scanCode() {
  523. uni.scanCode({
  524. success: function(res) {
  525. uni.navigateTo({
  526. url: res.result
  527. })
  528. }
  529. })
  530. },
  531. hideModal(e) {
  532. this.modalName = null
  533. },
  534. }
  535. }
  536. </script>
  537. <style lang='scss' scoped>
  538. page {
  539. background: #F5F6FA;
  540. }
  541. .container {
  542. padding-top: 85px;
  543. padding-top: 35px;
  544. background-color: #F5F6FA;
  545. position: relative;
  546. width: 100vw;
  547. height: 100vh;
  548. overflow: hidden;
  549. background: url('~@/static/img/login/bg_slices/bg@3x.png');
  550. background-size: 100% 100%;
  551. margin: 0 auto;
  552. }
  553. .cu-tag.badge {
  554. right: 26rpx;
  555. }
  556. .path {
  557. color: #007aff;
  558. display: inline-block;
  559. text-align: center;
  560. }
  561. .icon {
  562. margin-right: 10rpx;
  563. }
  564. .portrait-box {
  565. margin-top: 20rpx;
  566. }
  567. .qr-wrap {
  568. margin-top: 20upx;
  569. color: #fff;
  570. font-size: 32rpx;
  571. }
  572. @keyframes move_wave {
  573. 0% {
  574. transform: translateX(0) translateZ(0) scaleY(1)
  575. }
  576. 50% {
  577. transform: translateX(-25%) translateZ(0) scaleY(0.55)
  578. }
  579. 100% {
  580. transform: translateX(-50%) translateZ(0) scaleY(1)
  581. }
  582. }
  583. .bg {
  584. position: relative;
  585. height: 300rpx;
  586. /* background: linear-gradient(to bottom, #56ccf2, #2f80ed); */
  587. /*background: linear-gradient(to bottom, #0be9fe, #4bb0fe); */
  588. background: linear-gradient(to bottom, #d5f8ff, #56ccf2);
  589. }
  590. .bg_ware {
  591. position: absolute;
  592. left: 0;
  593. bottom: -2rpx;
  594. width: 100%;
  595. mix-blend-mode: screen;
  596. height: 224rpx;
  597. }
  598. %flex-center {
  599. display: flex;
  600. flex-direction: column;
  601. justify-content: center;
  602. align-items: center;
  603. }
  604. %section {
  605. display: flex;
  606. justify-content: space-around;
  607. align-content: center;
  608. background: #fff;
  609. border-radius: 10upx;
  610. }
  611. .cuIcon {
  612. position: absolute;
  613. right: 80px;
  614. }
  615. .grid-item-box {
  616. flex: 1;
  617. /* position: relative;
  618. */
  619. /* #ifndef APP-NVUE */
  620. display: flex;
  621. /* #endif */
  622. flex-direction: column;
  623. align-items: center;
  624. justify-content: center;
  625. padding: 15px 0;
  626. }
  627. .image {
  628. width: 80rpx;
  629. height: 80rpx;
  630. }
  631. .text {
  632. font-size: 26rpx;
  633. margin-top: 10rpx;
  634. }
  635. .user-section {
  636. height: 520upx;
  637. padding: 100upx 30upx 0;
  638. position: relative;
  639. .bg {
  640. position: absolute;
  641. left: 0;
  642. top: 0;
  643. width: 100%;
  644. height: 100%;
  645. filter: blur(1px);
  646. box-shadow: 0px 1px 8px #ccc;
  647. /* background:linear-gradient(#0eb0c9,#126bae); */
  648. /* opacity: .7; */
  649. }
  650. }
  651. .cover-container {
  652. padding: 1px 10px;
  653. padding-bottom: 200upx;
  654. /* background-color: #F5F6FA; */
  655. /* border-radius: 20px; */
  656. margin-top: 60upx;
  657. .arc {
  658. position: absolute;
  659. left: 0;
  660. top: -34upx;
  661. width: 100%;
  662. height: 36upx;
  663. }
  664. }
  665. .tj-sction {
  666. @extend %section;
  667. .tj-item {
  668. @extend %flex-center;
  669. flex-direction: column;
  670. height: 140upx;
  671. font-size: $font-sm;
  672. color: #75787d;
  673. }
  674. .num {
  675. font-size: $font-lg;
  676. color: $font-color-dark;
  677. margin-bottom: 8upx;
  678. }
  679. }
  680. .order-section {
  681. @extend %section;
  682. padding: 28upx 0;
  683. margin-top: 20upx;
  684. .order-item {
  685. @extend %flex-center;
  686. width: 120upx;
  687. height: 120upx;
  688. border-radius: 10upx;
  689. font-size: $font-sm;
  690. color: $font-color-dark;
  691. }
  692. .yticon {
  693. font-size: 48upx;
  694. margin-bottom: 18upx;
  695. color: #fa436a;
  696. }
  697. .icon-shouhoutuikuan {
  698. font-size: 44upx;
  699. }
  700. }
  701. .history-section {
  702. padding: 30upx 0 0;
  703. margin-top: 20upx;
  704. background: #fff;
  705. border-radius: 10upx;
  706. .sec-header {
  707. display: flex;
  708. align-items: center;
  709. font-size: $font-base;
  710. color: $font-color-dark;
  711. line-height: 40upx;
  712. margin-left: 30upx;
  713. .yticon {
  714. font-size: 44upx;
  715. color: #5eba8f;
  716. margin-right: 16upx;
  717. line-height: 40upx;
  718. }
  719. }
  720. .h-list {
  721. white-space: nowrap;
  722. padding: 30upx 30upx 0;
  723. image {
  724. display: inline-block;
  725. width: 160upx;
  726. height: 160upx;
  727. margin-right: 20upx;
  728. border-radius: 10upx;
  729. }
  730. }
  731. }
  732. .search-form {
  733. background: #F5F6F9;
  734. }
  735. .search-box {
  736. width: 100%;
  737. background-color: rgb(242, 242, 242);
  738. padding: 15upx 2.5%;
  739. display: flex;
  740. justify-content: space-between;
  741. }
  742. .search-box .mSearch-input-box {
  743. width: 100%;
  744. }
  745. .search-box .input-box {
  746. width: 85%;
  747. flex-shrink: 1;
  748. display: flex;
  749. justify-content: center;
  750. align-items: center;
  751. }
  752. .search-box .search-btn {
  753. width: 15%;
  754. margin: 0 0 0 2%;
  755. display: flex;
  756. justify-content: center;
  757. align-items: center;
  758. flex-shrink: 0;
  759. font-size: 28upx;
  760. color: #fff;
  761. background: linear-gradient(to right, #ff9801, #ff570a);
  762. border-radius: 60upx;
  763. }
  764. .search-box .input-box>input {
  765. width: 100%;
  766. height: 60upx;
  767. font-size: 32upx;
  768. border: 0;
  769. border-radius: 60upx;
  770. -webkit-appearance: none;
  771. -moz-appearance: none;
  772. appearance: none;
  773. padding: 0 3%;
  774. margin: 0;
  775. background-color: #ffffff;
  776. }
  777. .placeholder-class {
  778. color: #9e9e9e;
  779. }
  780. .search-keyword {
  781. width: 100%;
  782. background-color: rgb(242, 242, 242);
  783. }
  784. .grid {
  785. display: flex;
  786. align-items: center;
  787. flex-wrap: wrap;
  788. /* border-top: 2upx solid rgba(172,172,172,.2); */
  789. .grid-item-3 {
  790. box-sizing: border-box;
  791. width: calc(100% / 3);
  792. border-bottom: 2upx solid rgba(172, 172, 172, .2);
  793. border-right: 2upx solid rgba(172, 172, 172, .2);
  794. text-align: center;
  795. padding: 40upx 0;
  796. position: relative;
  797. /* view{
  798. font-size: $font-sm;
  799. margin-top: 16upx;
  800. color: $font-color-dark;
  801. } */
  802. .grid_icon {
  803. font-size: 48upx;
  804. margin-bottom: 18upx;
  805. color: #fa436a;
  806. }
  807. .tip_text {
  808. display: block;
  809. padding: 4upx 8upx;
  810. text-align: center;
  811. border-radius: 36upx;
  812. font-size: 24upx;
  813. background-color: #fa436a;
  814. color: rgba(255, 255, 255, 1);
  815. position: absolute;
  816. right: 6upx;
  817. top: 6upx;
  818. }
  819. }
  820. .grid-item-3:nth-child(3n + 3),
  821. .grid-item-4:nth-child(4n + 4) {
  822. border-right: none;
  823. }
  824. }
  825. .headPortrait {
  826. width: 75px;
  827. height: 75px;
  828. border-radius: 40px;
  829. border: 2px solid #ffffff;
  830. }
  831. .information {
  832. font-size: 15px;
  833. font-weight: 600;
  834. height: 36px;
  835. }
  836. .cu-list>.cu-item:after {
  837. border: none;
  838. }
  839. .sign {
  840. width: 40px;
  841. height: 40px;
  842. top: 4px;
  843. margin-right: 6px;
  844. }
  845. .indexUp {
  846. padding: 0 20px;
  847. align-items: center;
  848. }
  849. .wrap {
  850. background: #F5F6F9;
  851. margin: 5px 10px;
  852. border-radius: 20px;
  853. width: 92%;
  854. display: inline-block;
  855. padding: 10px;
  856. }
  857. .searchwrap {
  858. border-top: 1px solid #eee;
  859. padding: 10px 20px;
  860. }
  861. .searchwrap:last-child {
  862. border-bottom: 1px solid #eee;
  863. }
  864. .qualityNo {
  865. font-size: 16px;
  866. }
  867. .type {
  868. font-size: 12px;
  869. color: #fff;
  870. padding: 3px 5px;
  871. border-radius: 50%;
  872. line-height: 16px;
  873. }
  874. .type-zhi {
  875. background: #22C572;
  876. }
  877. .type-mao {
  878. background: #3296FA;
  879. }
  880. .type-pi {
  881. background: #FD714F;
  882. }
  883. .time {
  884. font-size: 12px;
  885. color: #878C9C;
  886. }
  887. .qualityInspector {
  888. font-size: 14px;
  889. }
  890. .customerinformation {
  891. background: #F9F9FA;
  892. padding: 7px;
  893. margin: 20px 0;
  894. border-radius: 10px;
  895. color: #9698A2;
  896. }
  897. .buttons {
  898. flex-direction: row-reverse;
  899. }
  900. .button {
  901. padding: 13rpx 30rpx;
  902. border: 1px solid #CDCDCD;
  903. border-radius: 15px;
  904. margin: 0 10px;
  905. }
  906. .changewarehouse {
  907. padding: 10px 20px;
  908. }
  909. .header {
  910. background: #fff;
  911. border-radius: 0px 0px 16px 16px;
  912. }
  913. .content {
  914. background: #fff;
  915. /* height: 85.5vh; */
  916. }
  917. .footer {
  918. background: #fff;
  919. position: fixed;
  920. bottom: 0;
  921. width: 100%;
  922. padding: 20px 10px;
  923. z-index: 10;
  924. .button {
  925. background: #22C572;
  926. width: 90%;
  927. margin: 0 auto;
  928. padding: 10px;
  929. color: #fff;
  930. text-align: center;
  931. border-radius: 30px;
  932. }
  933. }
  934. .content1 {
  935. margin-top: 20rpx;
  936. padding: 20rpx 0;
  937. .row {
  938. display: flex;
  939. padding: 20rpx 30rpx;
  940. .row-item {
  941. margin-right: 20rpx;
  942. }
  943. }
  944. }
  945. .dj-customer {
  946. background: #F5F6F9;
  947. display: flex;
  948. width: 75%;
  949. justify-content: space-between;
  950. align-items: center;
  951. margin: 20rpx;
  952. border-radius: 30rpx;
  953. padding: 10rpx 20rpx;
  954. .right {
  955. display: flex;
  956. .span1{
  957. margin-right: 20rpx;
  958. }
  959. }
  960. ;
  961. }
  962. </style>