factoryBuildingsList.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992
  1. <template >
  2. <view>
  3. <view :class="['custom-header', { 'is-back': isBack }, bgColor]">
  4. <view class="back-container" @click="handleBack">
  5. <view class="back-text">返回</view>
  6. </view>
  7. <view class="content-container">
  8. <view class="content-text">{{title}}</view>
  9. </view>
  10. </view>
  11. <view class="line-box">
  12. <view :style="[{top:CustomBar + 'px'}]">
  13. <!-- <view class="search-box1">
  14. <view class="choose-box">
  15. <jp-picker2 class="choose-boxp" v-model="searchForm.park" empty="选择所在板块" rangeKey="label" rangeValue="value"
  16. :range="parkList2" @change="picker2change" >
  17. </jp-picker2>
  18. </view>
  19. <view class="choose-box22">
  20. <jp-picker2 class="choose-boxp" v-model="searchForm.idleArea" empty="选择面积" rangeKey="label" rangeValue="value"
  21. :range="parkList" @change="picker2change">
  22. </jp-picker2>
  23. </view>
  24. </view> -->
  25. <view class="search-box1">
  26. <!-- 所在板块 -->
  27. <view class="choose-box">
  28. <jp-picker2
  29. v-model="searchForm.park"
  30. empty="选择所在板块"
  31. rangeKey="label"
  32. rangeValue="value"
  33. :range="parkList2"
  34. @change="picker2change">
  35. </jp-picker2>
  36. </view>
  37. <!-- 新增:适用产业 -->
  38. <view class="choose-box22 one-line-picker">
  39. <jp-picker2
  40. v-model="searchForm.des1"
  41. empty="选择适用产业"
  42. rangeKey="label"
  43. rangeValue="value"
  44. :range="parkList3"
  45. @change="picker2change">
  46. </jp-picker2>
  47. </view>
  48. <!-- 面积 -->
  49. <view class="choose-box22">
  50. <jp-picker2
  51. v-model="searchForm.idleArea"
  52. empty="选择面积"
  53. rangeKey="label"
  54. rangeValue="value"
  55. :range="parkList"
  56. @change="picker2change">
  57. </jp-picker2>
  58. </view>
  59. </view>
  60. <view class="search-box1" style="margin-top: 15rpx;">
  61. <!-- 厂房装修 -->
  62. <view class="choose-box">
  63. <jp-picker2
  64. v-model="searchForm.des3"
  65. empty="选择厂房装修"
  66. rangeKey="label"
  67. rangeValue="value"
  68. :range="parkList4"
  69. @change="picker2change">
  70. </jp-picker2>
  71. </view>
  72. <!-- 行车 -->
  73. <view class="choose-box22 one-line-picker">
  74. <jp-picker2
  75. v-model="searchForm.drivingCount"
  76. empty="是否有行车"
  77. rangeKey="label"
  78. rangeValue="value"
  79. :range="parkList5"
  80. @change="picker2change">
  81. </jp-picker2>
  82. </view>
  83. <!-- 洁净车间 -->
  84. <view class="choose-box22">
  85. <jp-picker2
  86. v-model="searchForm.cleanRoom"
  87. empty="是否洁净车间"
  88. rangeKey="label"
  89. rangeValue="value"
  90. :range="parkList6"
  91. @change="picker2change">
  92. </jp-picker2>
  93. </view>
  94. </view>
  95. <view class="search-box" >
  96. <view class="choose-box2" style="margin-top: 10rpx;">
  97. <view style="width: 520rpx;">
  98. <input type="text" placeholder="输入厂房名称或企业名称" v-model="searchForm.name" confirm-type="search"
  99. ></input>
  100. </view>
  101. <text style="padding-left: 40rpx;flex: 1;" class="cuIcon-search color-white" @click="doSearch"></text>
  102. </view>
  103. </view>
  104. <mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" :up="upOption" @up="upCallback">
  105. <view class="cu-item" :class="modalName=='move-box-'+ index?'move-cur':''"
  106. v-for="(item, index) in dataList" :key="index" @touchstart="ListTouchStart"
  107. @touchmove="ListTouchMove" @touchend="ListTouchEnd" :data-target="'move-box-' + index">
  108. <view class="item-box" @click="gotoBuildInfo(item.id)">
  109. <view class="item-code">
  110. <view>
  111. {{item.des6}}
  112. </view>
  113. </view>
  114. <view class="item-title">
  115. <view>
  116. {{item.name}}
  117. </view>
  118. </view>
  119. <view class="item-line">
  120. <view class="item-name">{{item.des8}}-{{item.address}}</view>
  121. </view>
  122. <view class="item-line">
  123. <view class="item-name31" v-if="item.ownership=='1'">国有</view>
  124. <view class="item-name31" v-if="item.ownership=='2'">集体</view>
  125. <view class="item-name31" v-if="item.ownership=='3'">民营</view>
  126. <view class="item-name31" v-if="item.singleLayer=='1'">单层</view>
  127. <view class="item-name31" v-if="item.singleLayer=='2'">多层</view>
  128. </view>
  129. <view class="item-line">
  130. <text class="item-name2">面积:{{item.idleArea}}㎡</text>
  131. <view class="item-name3"></view>
  132. </view>
  133. </view>
  134. </view>
  135. </mescroll-body>
  136. <uni-fab v-if="canAdd" :pattern=" {
  137. color: '#7A7E83',
  138. backgroundColor: '#fff',
  139. selectedColor: '#007AFF',
  140. buttonColor: '#007AFF'
  141. }" horizontal="right" vertical="bottom" @fabClick="add" >
  142. </uni-fab>
  143. </view>
  144. </view>
  145. </view>
  146. </template>
  147. <script>
  148. import loginService from "@/api/auth/loginService";
  149. import uniFab from '@/components/uni-fab/uni-fab.vue';
  150. import DoublePicker from '@/components/DoublePicker/DoublePicker.vue'
  151. import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js";
  152. import MescrollMoreItemMixin from "@/components/mescroll-uni/mixins/mescroll-more-item.js";
  153. import {mapActions} from 'vuex'
  154. export default {
  155. mixins: [MescrollMixin, MescrollMoreItemMixin], // 使用mixin (在main.js注册全局组件)
  156. name: "apps",
  157. components: {
  158. uniFab,
  159. DoublePicker
  160. },
  161. data() {
  162. return {
  163. isLogin:"",
  164. pageInfo: {},
  165. canAdd:false,
  166. loginid:"",
  167. title:"厂房资源",
  168. isBack: true, // 是否显示返回按钮
  169. bgColor: 'bg-blue', // 背景颜色
  170. stype: "", // 企业 => 3 楼宇 => 2 园区 => 1 zfadmin => 4 admin=> 5
  171. md:"1",
  172. searchForm: {
  173. idleArea:"",
  174. park:'',
  175. name:"",
  176. des1:'',
  177. des3:'',
  178. drivingCount:'',
  179. cleanRoom:'',
  180. des7:'',//四个平台公司
  181. ispark:'',
  182. },
  183. dataList: [], // 数据列表
  184. modalName: null,
  185. loading: false,
  186. parkList: [{label: '全部',value: ''},{label: '5000㎡以下',value: '1'},{label: '5000-10000㎡',value: '2'},
  187. {label: '10000㎡以上',value: '3'}],
  188. parkList2: [{label: '全部',value: ''},{label: '高新区',value: '12'},{label: '盐渎',value: '9'},{label: '潘黄',value: '8'},
  189. {label: '龙冈',value: '13'},{label: '张庄',value: '6'},{label: '大冈',value: '2'},{label: '郭猛',value: '11'},
  190. {label: '大纵湖',value: '3'},{label: '秦南',value: '10'},{label: '学富',value: '4'},{label: '楼王',value: '7'},
  191. {label: '尚庄',value: '5'},{label: '台创园',value: '1'},{label: '大纵湖度假区',value: '14'}],
  192. parkList3: [],
  193. parkList4: [{label: '全部',value: ''},{label: '毛坯',value: '1'},{label: '精装',value: '2'}],
  194. parkList5: [{label: '全部',value: ''},{label: '有行车',value: '1'},{label: '无行车',value: '2'}],
  195. parkList6: [{label: '全部',value: ''},{label: '洁净车间',value: '1'},{label: '不是洁净车间',value: '2'}],
  196. };
  197. },
  198. onLoad(query) {
  199. if (query.parkid) {
  200. // 1. 先清空,避免残留
  201. this.searchForm.park = '';
  202. // 2. 等组件渲染完再赋值,触发 v-model 回显
  203. this.$nextTick(() => {
  204. if (query.parkid === '台创园') {
  205. this.searchForm.park = '1';
  206. this.searchForm.ispark = '1';
  207. } else if (query.parkid === '大冈镇'|| query.parkid === '大冈') {
  208. this.searchForm.park = '2';
  209. this.searchForm.ispark = '1';
  210. } else if (query.parkid === '大纵湖镇' || query.parkid === '大纵湖') {
  211. this.searchForm.park = '3';
  212. this.searchForm.ispark = '1';
  213. } else if (query.parkid === '学富镇'|| query.parkid === '学富') {
  214. this.searchForm.park = '4';
  215. this.searchForm.ispark = '1';
  216. } else if (query.parkid === '尚庄镇'|| query.parkid === '尚庄') {
  217. this.searchForm.park = '5';
  218. this.searchForm.ispark = '1';
  219. } else if (query.parkid === '张庄街道'|| query.parkid === '张庄') {
  220. this.searchForm.park = '6';
  221. this.searchForm.ispark = '1';
  222. } else if (query.parkid === '楼王镇'|| query.parkid === '楼王') {
  223. this.searchForm.park = '7';
  224. this.searchForm.ispark = '1';
  225. } else if (query.parkid === '潘黄街道'|| query.parkid === '潘黄') {
  226. this.searchForm.park = '8';
  227. this.searchForm.ispark = '1';
  228. } else if (query.parkid === '盐渎街道'|| query.parkid === '盐渎') {
  229. this.searchForm.park = '9';
  230. this.searchForm.ispark = '1';
  231. } else if (query.parkid === '秦南镇'|| query.parkid === '秦南') {
  232. this.searchForm.park = '10';
  233. this.searchForm.ispark = '1';
  234. } else if (query.parkid === '郭猛镇'|| query.parkid === '郭猛') {
  235. this.searchForm.park = '11';
  236. this.searchForm.ispark = '1';
  237. } else if (query.parkid === '盐龙街道'|| query.parkid === '高新区') {
  238. this.searchForm.park = '12';
  239. this.searchForm.ispark = '1';
  240. } else if (query.parkid === '龙冈镇'|| query.parkid === '龙冈') {
  241. this.searchForm.park = '13';
  242. this.searchForm.ispark = '1';
  243. } else if (query.parkid === '大纵湖度假区') {
  244. this.searchForm.park = '14';
  245. this.searchForm.ispark = '1';
  246. }
  247. else if (query.parkid === '盐高新产控集团') {
  248. this.searchForm.des7 = '4';
  249. } else if (query.parkid === '城镇化集团') {
  250. this.searchForm.des7 = '3';
  251. } else if (query.parkid === '国控集团') {
  252. this.searchForm.des7 = '1';
  253. } else if (query.parkid === '盛州集团') {
  254. this.searchForm.des7 = '2';
  255. }
  256. });
  257. }
  258. if (query.des1) {
  259. this.searchForm.des1 = query.des1 + '';
  260. this.searchForm.ispark = '1';
  261. }
  262. //四个平台公司
  263. if (query.des7) {
  264. this.searchForm.des7 = query.des7 + '';
  265. }
  266. // 1. 先清空,避免残留
  267. loginService.getDictListBytype('sys_industry_show').then(({data}) => {
  268. this.parkList3 = data; // 先让下拉列表有数据
  269. this.$nextTick(() => { // 再让 jp-picker2 渲染
  270. if (query.des1) {
  271. this.searchForm.des1 = query.des1 + '';
  272. }
  273. });
  274. }).catch(e => {
  275. })
  276. },
  277. onShow() {
  278. this.isLogin=this.$auth.checkisLogin();
  279. //判断是否能新增
  280. if(this.isLogin!=null){
  281. this.getRole();
  282. }else{
  283. this.canAdd = true;
  284. }
  285. },
  286. created() {
  287. },
  288. methods: {
  289. ...mapActions(['refreshUserInfo']),
  290. /*获取数据列表 */
  291. upCallback(page) {
  292. this.loading = true
  293. loginService.factoryBuildingsList({
  294. current: page.num,
  295. size: page.size,
  296. orders: [{ column: 'a.create_date', asc: false }],
  297. ...this.searchForm
  298. }).then(({
  299. data
  300. }) => {
  301. let curPageData = data.records
  302. this.mescroll.endBySize(curPageData.length, data.total);
  303. //如果是第一页需手动制空列表
  304. if (page.num == 1)
  305. this.dataList = [];
  306. //追加新数据
  307. this.dataList = this.dataList.concat(curPageData);
  308. }).catch(e => {
  309. //联网失败, 结束加载
  310. this.mescroll.endErr();
  311. })
  312. },
  313. gotoBuildInfo(id) {
  314. uni.navigateTo({
  315. url: `/pages/factoryBuildings/factoryBuildingsInfo?id=${id}&ischeck=1`
  316. })
  317. },
  318. updateCities(newCities) {
  319. this.cities = newCities;
  320. },
  321. // 搜索
  322. doSearch() {
  323. this.dataList = []; // 先清空列表,显示加载进度
  324. this.mescroll.resetUpScroll();
  325. },
  326. picker2change(e) {
  327. this.doSearch() ;
  328. },
  329. totongxunlu(){
  330. uni.navigateTo({
  331. url: '/pages/comList/comList'
  332. })
  333. },
  334. totongxunlu2(){
  335. uni.showModal({
  336. title: '功能暂未开放,请至后台导入!',
  337. showCancel: true,
  338. success: (res) => {
  339. }
  340. });
  341. },
  342. getPageInfo() {
  343. loginService.InfoStatistics({}).then(({ data }) => {
  344. this.pageInfo = data;
  345. });
  346. },
  347. autoLogin(){
  348. console.log("登录id"+this.loginid);
  349. loginService.loginid( this.loginid).then(({data}) => {
  350. this.$store.commit('SET_TOKEN',data.token);
  351. this.refreshUserInfo();
  352. }).catch(e => {
  353. console.error(e)
  354. })
  355. },
  356. getRole() {
  357. let userInfo = uni.getStorageSync('WMS-userinfo')
  358. var officeId = userInfo.officeDTO.id;
  359. var roleIds = userInfo.roleIds;
  360. //区“企业大走访”办公室、政府管理员、厂房板块维护人员
  361. if (roleIds.indexOf("1910175386924417025") != -1||roleIds.indexOf("ade960e8f02544998b07397304c059c1") != -1||roleIds.indexOf("1996038972899717121") != -1) {
  362. this.canAdd = true;
  363. }
  364. },
  365. outloginset(){
  366. loginService.logout().then(({
  367. data
  368. }) => {
  369. this.$store.commit('logout');
  370. uni.clearStorage();
  371. })
  372. this.$store.commit('logout');
  373. uni.clearStorage();
  374. this.isLogin=this.$auth.checkisLogin();
  375. uni.hideLoading()
  376. },
  377. outlogin() {
  378. uni.showModal({
  379. title: '您确认退出么?',
  380. showCancel: true,
  381. success: (res) => {
  382. if (res.confirm) {
  383. uni.showLoading()
  384. this.outloginset();
  385. }
  386. }
  387. });
  388. },
  389. tces() {
  390. uni.navigateTo({
  391. url: '/pages/index/AudioToWord'
  392. })
  393. },
  394. // ListTouch触摸开始
  395. ListTouchStart(e) {
  396. this.listTouchStart = e.touches[0].pageX
  397. },
  398. // ListTouch计算方向
  399. ListTouchMove(e) {
  400. this.listTouchDirection = e.touches[0].pageX - this.listTouchStart > -60 ? 'right' : 'left'
  401. },
  402. // ListTouch计算滚动
  403. ListTouchEnd(e) {
  404. if (this.listTouchDirection == 'left') {
  405. this.modalName = e.currentTarget.dataset.target
  406. } else {
  407. this.modalName = null
  408. }
  409. this.listTouchDirection = null
  410. },
  411. handleBack() {
  412. // 返回逻辑,比如跳转至上一页
  413. this.$router.go(-1);
  414. },
  415. add(){
  416. if(this.isLogin==null){
  417. uni.showModal({
  418. title: '您还未登录,现在去登录?',
  419. showCancel: true,
  420. success: (res) => {
  421. if (res.confirm) {
  422. uni.showLoading()
  423. uni.reLaunch({
  424. url: '/pages/login/factorylogin'
  425. })
  426. }
  427. }
  428. });
  429. }else{
  430. uni.navigateTo({
  431. url: '/pages/factoryBuildings/factoryBuildingsInfo'
  432. })
  433. }
  434. }
  435. }
  436. }
  437. </script>
  438. <style>
  439. .page {
  440. height: 100vh;
  441. }
  442. .line-box {
  443. padding-left: 20rpx;
  444. padding-right: 20rpx;
  445. margin-top: 20rpx;
  446. }
  447. .mart-t {
  448. margin-top: 30rpx;
  449. }
  450. .center-box{
  451. margin-top: 20rpx;
  452. width: 100%;
  453. border-radius: 25rpx;
  454. border-radius: 25rpx;
  455. background: #fff;
  456. box-shadow: 0px 8px 16px 2px rgba(101, 101, 101, 0.2);
  457. padding-bottom: 30rpx;
  458. display: flex;
  459. flex-wrap: wrap;
  460. }
  461. .center-left-box {
  462. width: 100%;
  463. padding-bottom: 30rpx;
  464. display: flex;
  465. flex-wrap: wrap;
  466. }
  467. .btn-box-text {
  468. flex:1;
  469. height: 20rpx;
  470. text-align: center;
  471. color: #000000;
  472. font-size: 14px;
  473. font-weight: 700;
  474. }
  475. .btn-box-1 {
  476. flex:1;
  477. height: 30rpx;
  478. text-align: center;
  479. color: #36A7F3;
  480. font-size: x-large;
  481. font-weight: 700;
  482. }
  483. .btn-box-2 {
  484. flex:1;
  485. height: 30rpx;
  486. text-align: center;
  487. color:#F3365A;
  488. font-size: x-large;
  489. font-weight: 700;
  490. }
  491. .btn-box-3 {
  492. flex:1;
  493. height: 30rpx;
  494. text-align: center;
  495. color:#15D578;
  496. font-size: x-large;
  497. font-weight: 700;
  498. }
  499. .btn-box-4 {
  500. flex:1;
  501. height: 30rpx;
  502. text-align: center;
  503. color:#F1A31B;
  504. font-size: x-large;
  505. font-weight: 700;
  506. }
  507. .btn-Imbox {
  508. flex:1;
  509. height: 150rpx;
  510. padding-top: 8rpx;
  511. text-align: center;
  512. display: flex;
  513. flex-direction: column;
  514. justify-content: center; /* 子元素内部内容竖向居中 */
  515. align-items: center; /* 子元素内部内容水平居中 */
  516. text-align: center; /* 文字居中 */
  517. }
  518. .btn-Imbox p {
  519. font-size: 14px; /* 文字大小,可根据需要调整 */
  520. margin: 0; /* 去掉默认的外边距 */
  521. font-weight: 700;
  522. }
  523. .center-img{
  524. width: 90rpx;
  525. height: 90rpx;
  526. margin-bottom: 10rpx;
  527. text-align: center;
  528. }
  529. .center-img2{
  530. width: 70rpx;
  531. height: 70rpx;
  532. margin-top: 10rpx;
  533. margin-bottom: 20rpx;
  534. text-align: center;
  535. }
  536. .kuai-text{
  537. color: #000000;
  538. font-weight: 900;
  539. font-size: 34rpx;
  540. padding-top: 20rpx;
  541. padding-left: 20rpx;
  542. }
  543. .btn-box-5 {
  544. width: 337rpx;
  545. height: 200rpx;
  546. background-image: url('../../static/img/btn3.png');
  547. background-size: 100% 100%;
  548. }
  549. .btn-box-6 {
  550. width: 337rpx;
  551. height: 200rpx;
  552. background-image: url('../../static/img/btn6.png');
  553. background-size: 100% 100%;
  554. }
  555. .h-200 {
  556. height: 200rpx;
  557. }
  558. .swiper {
  559. width: 750rpx;
  560. height: 310rpx;
  561. }
  562. .swiper-item {
  563. width: 750rpx;
  564. height: 310rpx;
  565. background-color: aliceblue;
  566. }
  567. .font-size-35 {
  568. font-size: 35px !important;
  569. }
  570. .img-size {
  571. width: 80rpx;
  572. height: 80rpx;
  573. }
  574. .content-box {
  575. width: 437rpx;
  576. height: 200rpx;
  577. }
  578. .my-app .padding-sm {
  579. padding: 6px;
  580. }
  581. .grid .padding-sm .bg-white {
  582. box-shadow: 0 1px 4px #f9f9f9, 1px 1px 40px rgba(0, 0, 0, .06);
  583. }
  584. .bg-blue {
  585. background: #fff;
  586. color: #0081ff !important;
  587. }
  588. .text-white,
  589. .line-white,
  590. .lines-white {
  591. color: #0081ff !important;
  592. }
  593. .cu-bar .search-form {
  594. background-color: white;
  595. }
  596. .item-box{
  597. width: 710rpx;
  598. background: #FFFFFF;
  599. box-shadow: 0px 1px 3px 0px rgba(9,2,4,0.1);
  600. border-radius: 10px;
  601. padding-top: 20rpx;
  602. padding-left: 38rpx;
  603. padding-right: 10rpx;
  604. margin-top: 20rpx;
  605. }
  606. .item-code{
  607. position: relative;
  608. display: flex;
  609. justify-content: space-between;
  610. font-size: 30rpx;
  611. padding-bottom: 12rpx;
  612. color: #55aaff;
  613. font-weight: bold;
  614. align-items: center;
  615. }
  616. .item-title{
  617. position: relative;
  618. display: flex;
  619. justify-content: space-between;
  620. font-size: 30rpx;
  621. color: #010101;
  622. font-weight: bold;
  623. align-items: center;
  624. }
  625. .item-line{
  626. display: flex;
  627. height: 48rpx;
  628. margin-top: 20rpx;
  629. }
  630. .item-line2{
  631. height: 48rpx;
  632. margin-top: 20rpx;
  633. }
  634. .subtitle{
  635. color: #E5880E;
  636. }
  637. .item-name{
  638. margin-top: 5rpx;
  639. font-size: 29rpx;
  640. color: #666666;
  641. white-space: nowrap; /* 不换行 */
  642. overflow: hidden; /* 超出隐藏 */
  643. text-overflow: ellipsis; /* 用 … 代替 */
  644. }
  645. .item-name2{
  646. font-size: 29rpx;
  647. color: #676D99;
  648. height: 40rpx; /* 这里假设两行的高度是80rpx */
  649. overflow: hidden; /* 超出部分隐藏 */
  650. text-overflow: ellipsis; /* 超出部分显示省略号 */
  651. display: -webkit-box; /* 使用Webkit的行盒模型 */
  652. -webkit-line-clamp: 1; /* 限制最多显示2行 */
  653. -webkit-box-orient: vertical; /* 垂直排列 */
  654. }
  655. .item-name3{
  656. display: flex;
  657. width: 100%;
  658. padding-right: 30rpx;
  659. flex: 1;
  660. justify-content: flex-end;
  661. font-size: 29rpx;
  662. color: #FF4500;
  663. }
  664. .item-name31{
  665. padding-right: 30rpx;
  666. font-size: 29rpx;
  667. /* color: #2E8B57; */
  668. color: #676D99;
  669. }
  670. .item-content{
  671. color: #1497EF;
  672. font-size: 30rpx;
  673. }
  674. .btn-box{
  675. display: flex;
  676. }
  677. .line-zs{
  678. width: 2rpx;
  679. height: 30rpx;
  680. background: #36A7F3;
  681. }
  682. .edit-botton{
  683. width: 100rpx;
  684. height: 48rpx;
  685. line-height: 48rpx;
  686. color: #fff;
  687. font-size: 28rpx;
  688. margin-right: 20rpx;
  689. border-radius: 10rpx;
  690. background: #5A9EE9;
  691. text-align: center;
  692. }
  693. .del-botton{
  694. width: 100rpx;
  695. height: 48rpx;
  696. line-height: 48rpx;
  697. color: #fff;
  698. font-size: 28rpx;
  699. margin-right: 20rpx;
  700. border-radius: 10rpx;
  701. background: #F27C85;
  702. text-align: center;
  703. }
  704. .color-white{
  705. color: #808080;
  706. font-size: 40rpx;
  707. line-height: 60rpx;
  708. }
  709. .search-box{
  710. padding-left: 20rpx;
  711. padding-right: 20rpx;
  712. padding-top: 20rpx;
  713. margin-top: 20rpx;
  714. width: 100%;
  715. border-radius: 25rpx;
  716. border-radius: 25rpx;
  717. background: #fff;
  718. box-shadow: 0px 8px 16px 2px rgba(101, 101, 101, 0.2);
  719. padding-bottom: 30rpx;
  720. display: flex;
  721. flex-wrap: wrap;
  722. }
  723. .choose-box,
  724. .choose-box22 {
  725. flex: 1;
  726. margin-right: 10rpx;
  727. }
  728. .choose-box:last-child,
  729. .choose-box22:last-child {
  730. margin-right: 0;
  731. }
  732. .search-box1{
  733. display: flex;
  734. }
  735. .input-box{
  736. background: #fff;
  737. height: 65rpx;
  738. width: 640rpx;
  739. display: flex;
  740. align-items: center;
  741. border-radius: 30rpx;
  742. padding-left: 30rpx;
  743. margin-right: 20rpx;
  744. }
  745. .input-boxinput{
  746. height: 75rpx;
  747. font-size: 15rpx;
  748. }
  749. .choose-box{
  750. background: #fff;
  751. width: 100%;
  752. border-radius: 23rpx;
  753. height: 70rpx;
  754. display: flex;
  755. align-items: center;
  756. justify-content: center;
  757. margin-right: 10rpx;
  758. border: 1rpx solid #808080;
  759. }
  760. .choose-box22{
  761. background: #fff;
  762. width: 100%;
  763. border-radius: 23rpx;
  764. margin-left: 10rpx;
  765. height: 70rpx;
  766. display: flex;
  767. align-items: center;
  768. justify-content: center;
  769. border: 1rpx solid #808080;
  770. }
  771. .choose-box2{
  772. background: #fff;
  773. width: 100%;
  774. border-radius: 23rpx;
  775. height: 70rpx;
  776. display: flex;
  777. padding-left: 29rpx;
  778. align-items: center;
  779. border: 1rpx solid #808080;
  780. }
  781. .choose-box3{
  782. display: flex;
  783. }
  784. .choose-boxp{
  785. font-size: 32rpx;
  786. width: 80%;
  787. text-align: right;
  788. }
  789. .fixed-bottom-right {
  790. padding: 20rpx;
  791. position: fixed;
  792. bottom: 20px; /* 距离底部的距离 */
  793. right: 20px; /* 距离右侧的距离 */
  794. }
  795. .custom-header {
  796. display: flex;
  797. align-items: center;
  798. justify-content: center;
  799. padding: 10px;
  800. width: 100%;
  801. }
  802. .is-back {
  803. position: relative;
  804. }
  805. .back-container {
  806. position: absolute;
  807. left: 10px;
  808. cursor: pointer;
  809. }
  810. .back-text {
  811. color: white; /* 返回按钮文本颜色 */
  812. }
  813. /* 背景颜色 */
  814. .bg-blue {
  815. background-color: #4285f4; /* 假设这是一个蓝色背景 */
  816. }
  817. .content-container {
  818. flex: 1;
  819. text-align: center;
  820. }
  821. .content-text {
  822. color: white; /* 标题文本颜色 */
  823. font-weight: bold;
  824. }
  825. /* 不换行 + 省略号 */
  826. .one-line-picker {
  827. overflow: hidden; /* 超出隐藏 */
  828. white-space: nowrap; /* 不换行 */
  829. text-overflow: ellipsis; /* 省略号 */
  830. }
  831. </style>