customer.vue 24 KB

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