customer.vue 24 KB

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