factoryBuildingsList.vue 19 KB

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