index.vue 25 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165
  1. <template name="apps">
  2. <view>
  3. <view :class="['custom-header', { 'is-back': isBack }, bgColor]">
  4. <view class="back-container" @click="handleBack" v-if="canBack">
  5. <view class="back-text">返回</view>
  6. </view>
  7. <view class="content-container">
  8. <view class="content-text">都企供需</view>
  9. </view>
  10. </view>
  11. <swiper class="swiper" circular :indicator-dots="true" :autoplay="true" :interval="3000" :duration="800">
  12. <swiper-item v-for="(item, index) in picture" :key="index">
  13. <image :src="item" class="swiper-item"></image>
  14. </swiper-item>
  15. </swiper>
  16. <view class="line-box">
  17. <view class="center-box">
  18. <view class="center-left-box">
  19. <view class="btn-box-1 mart-t">
  20. {{pageInfo.enterprisec}}
  21. </view>
  22. <view class="btn-box-2 mart-t" @click="totongxunlu22">
  23. {{pageInfo2.des2||0}}
  24. </view>
  25. <view class="btn-box-3 mart-t" @click="totongxunlu23">
  26. {{pageInfo2.total_count2}}
  27. </view>
  28. <view class="btn-box-4 mart-t">
  29. {{pageInfo.industryc}}
  30. </view>
  31. </view>
  32. <view class="center-left-box">
  33. <view class="btn-box-text mart-t">
  34. 平台企业数
  35. </view>
  36. <view class="btn-box-text mart-t">
  37. 当日活跃数
  38. </view>
  39. <view class="btn-box-text mart-t">
  40. 当月活跃数
  41. </view>
  42. <view class="btn-box-text mart-t">
  43. 细分行业数
  44. </view>
  45. </view>
  46. </view>
  47. <!-- <view >
  48. <view class="btn-box-1-1 mart-t">
  49. 最新产品供需
  50. </view>
  51. </view> -->
  52. <view @click="totongxunlu511" style="display: flex;margin-top: 30rpx;margin-left: 20rpx;padding-left:20rpx ;margin-right:20rpx ;background-color: #FFFF0021;height: 92rpx;align-items: center;">
  53. <image src="/static/img/news.png" style="width: 72rpx;height: 62rpx;"></image>
  54. <swiper class="swiper2" vertical circular :autoplay="true" :interval="3000" :duration="800">
  55. <swiper-item v-for="(item, index) in news" :key="index">
  56. <view style="color: #F9AE3D; font-size: 28rpx;padding-left: 10rpx;display: flex;align-items: center;"> {{item.des2}}({{item.des5}}) </view>
  57. </swiper-item>
  58. </swiper>
  59. </view>
  60. <view class="center-box">
  61. <view class="center-left-box" style="margin-top: 60rpx;">
  62. <view class="btn-Imbox" @click="totongxunlu">
  63. <image class="center-img" src="/static/img/icon1.png"></image>
  64. <p>重点园区</p>
  65. </view>
  66. <view class="btn-Imbox" @click="totongxunlu2">
  67. <image class="center-img" src="/static/img/icon2.png"></image>
  68. <p>产业图谱</p>
  69. </view>
  70. <view class="btn-Imbox" @click="totongxunlu6">
  71. <image class="center-img" src="/static/img/icon4.png"></image>
  72. <p>产品分布</p>
  73. </view>
  74. </view>
  75. <view class="center-left-box">
  76. <view class="btn-Imbox" @click="totongxunlu7">
  77. <image class="center-img" src="/static/img/icon9.png"></image>
  78. <p>双50强企业</p>
  79. </view>
  80. <view class="btn-Imbox" @click="totongxunlu3">
  81. <image class="center-img" src="/static/img/icon3.png"></image>
  82. <p>链主企业</p>
  83. </view>
  84. <view class="btn-Imbox" @click="totongxunlu4">
  85. <image class="center-img" src="/static/img/icon8.png"></image>
  86. <p>产品供需</p>
  87. </view>
  88. <!-- <view class="btn-Imbox" v-if="isLogin!=null" @click="outlogin">
  89. <image class="center-img" src="/static/img/icon7.png"></image>
  90. <p>退出登录</p>
  91. </view>
  92. <view class="btn-Imbox" v-if="isLogin==null" @click="outlogin">
  93. <image class="center-img" src="/static/img/icon6.png"></image>
  94. <p>立即登录</p>
  95. </view> -->
  96. </view>
  97. <view class="center-left-box">
  98. <view class="btn-Imbox" @click="totongxunlu5">
  99. <image class="center-img" src="/static/img/icon5.png"></image>
  100. <p>我的发布</p>
  101. </view>
  102. <!-- <view class="btn-Imbox" @click="totongxunlu3">
  103. <image class="center-img" src="/static/img/icon3.png"></image>
  104. <p>链主企业</p>
  105. </view>
  106. <view class="btn-Imbox" @click="totongxunlu4">
  107. <image class="center-img" src="/static/img/icon8.png"></image>
  108. <p>产品供需</p>
  109. </view> -->
  110. <view class="btn-Imbox" v-if="isLogin!=null" @click="tosetting">
  111. <image class="center-img" src="/static/img/setting_s.png"></image>
  112. <p>个人信息</p>
  113. </view>
  114. <view class="btn-Imbox" v-if="isLogin!=null" @click="outlogin">
  115. <image class="center-img" src="/static/img/icon7.png"></image>
  116. <p>退出登录</p>
  117. </view>
  118. <view class="btn-Imbox" v-if="isLogin==null" @click="tologin">
  119. <image class="center-img" src="/static/img/icon6.png"></image>
  120. <p>立即登录</p>
  121. </view>
  122. </view>
  123. </view>
  124. <!-- <view :style="[{top:CustomBar + 'px'}]">
  125. <view class="search-box">
  126. <view class="search-box1">
  127. <view class="choose-box">
  128. <input type="text" placeholder="输入或选择属地" v-model="searchForm.des1" confirm-type="search" style="padding-left: 28rpx;"
  129. ></input>
  130. <jp-picker class="choose-boxp" v-model="searchForm.des1" rangeKey="label" rangeValue="value"
  131. :range="parkList2" >
  132. </jp-picker>
  133. </view>
  134. <view class="choose-box">
  135. <input type="text" placeholder="输入或选择行业" v-model="searchForm.industry" confirm-type="search" style="padding-left: 28rpx;"
  136. ></input>
  137. <jp-picker class="choose-boxp" v-model="searchForm.industry" rangeKey="label" rangeValue="value"
  138. :range="parkList" >
  139. </jp-picker>
  140. </view>
  141. </view>
  142. <view class="choose-box2" style="margin-top: 20rpx;">
  143. <view class="choose-box3">
  144. <view style="width: 300rpx;display: flex;align-items: center;color: #666666;font-size: 33rpx;">
  145. 产业链环节:
  146. </view>
  147. <DoublePicker
  148. :column1Label="''"
  149. :column2Label="''"
  150. :column1Data="parkList3"
  151. :column2Data="parkList4"
  152. v-model="ddd1"
  153. @update:column2Data="updateCities"
  154. />
  155. </view>
  156. </view>
  157. <view class="choose-box2" style="margin-top: 20rpx;">
  158. <view style="width: 520rpx;">
  159. <input type="text" placeholder="输入关键词产品或企业名称" v-model="searchForm.name" confirm-type="search"
  160. ></input>
  161. </view>
  162. <text style="padding-left: 40rpx;flex: 1;" class="cuIcon-search color-white" @click="doSearch"></text>
  163. </view>
  164. </view>
  165. <mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" :up="upOption" @up="upCallback">
  166. <view class="cu-item" :class="modalName=='move-box-'+ index?'move-cur':''"
  167. v-for="(item, index) in dataList" :key="index" @touchstart="ListTouchStart"
  168. @touchmove="ListTouchMove" @touchend="ListTouchEnd" :data-target="'move-box-' + index">
  169. <view class="item-box" @click="gotoBuildInfo(item.id)">
  170. <view class="item-title">
  171. <view>
  172. {{item.name}}
  173. </view>
  174. </view>
  175. <view class="item-line">
  176. <view v-if="item.bz3!=''&&item.bz3!=undefined" class="item-name">{{item.bz1}}、{{item.bz3}}</view>
  177. <view v-if="item.bz3==''||item.bz3==undefined" class="item-name">{{item.bz1}}</view>
  178. </view>
  179. <view class="item-line">
  180. <view class="item-name2">{{item.industry}}</view>
  181. <view class="item-name3">{{item.des1}}</view>
  182. </view>
  183. </view>
  184. </view>
  185. </mescroll-body>
  186. <uni-fab :pattern=" {
  187. color: '#7A7E83',
  188. backgroundColor: '#fff',
  189. selectedColor: '#007AFF',
  190. buttonColor: '#007AFF'
  191. }" horizontal="right" vertical="bottom" @fabClick="add" v-if="stype == 5"></uni-fab>
  192. </view> -->
  193. <!-- <view @click="outlogin" class="fixed-bottom-right" v-if="isLogin!=null">
  194. <image class="center-img2" src="/static/img/icon_logout.png"></image>
  195. </view> -->
  196. </view>
  197. </view>
  198. </template>
  199. <script>
  200. import loginService from "@/api/auth/loginService";
  201. import uniFab from '@/components/uni-fab/uni-fab.vue';
  202. import DoublePicker from '@/components/DoublePicker/DoublePicker.vue'
  203. import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js";
  204. import MescrollMoreItemMixin from "@/components/mescroll-uni/mixins/mescroll-more-item.js";
  205. import * as $auth from "../../common/auth"
  206. import {mapActions} from 'vuex'
  207. export default {
  208. mixins: [MescrollMixin, MescrollMoreItemMixin], // 使用mixin (在main.js注册全局组件)
  209. name: "apps",
  210. components: {
  211. uniFab,
  212. DoublePicker
  213. },
  214. data() {
  215. return {
  216. isBack: true, // 是否显示返回按钮
  217. backText: '返回', // 返回按钮的文本
  218. bgColor: 'bg-blue', // 背景颜色
  219. isLogin:"",
  220. pageInfo: {},
  221. pageInfo2: {},
  222. news:[],
  223. loginid:"",
  224. stype: "", // 企业 => 3 楼宇 => 2 园区 => 1 zfadmin => 4 admin=> 5
  225. searchForm: {
  226. des1:"",
  227. industry:"",
  228. name:"",
  229. },
  230. picture:["https://ydwqfw.com.cn/yd_qycpfbH5/bg1.jpg",
  231. "https://ydwqfw.com.cn/yd_qycpfbH5/bg2.jpg",
  232. "https://ydwqfw.com.cn/yd_qycpfbH5/bg3.jpg",
  233. "https://ydwqfw.com.cn/yd_qycpfbH5/bg4.jpg"],
  234. curWord: "", //当前搜索关键词
  235. dataList: [], // 数据列表
  236. modalName: null,
  237. tablePage: {
  238. total: 0,
  239. currentPage: 1,
  240. pageSize: 10,
  241. orders: []
  242. },
  243. loading: false,
  244. parkId: '',
  245. parkList: [],
  246. parkList2: [],
  247. parkList3: [],
  248. parkList4: [],
  249. ddd1:"" ,
  250. canBack:false,
  251. };
  252. },
  253. onLoad(query) {
  254. if(query!=undefined&&query!=null&&query!=''){
  255. if(query.loginid!=undefined){
  256. this.loginid=query.loginid
  257. this.autoLogin();
  258. }
  259. }
  260. },
  261. onShow() {
  262. this.isLogin=this.$auth.checkisLogin();
  263. this.canBack = window.history.length > 1;
  264. },
  265. created() {
  266. this.getPageInfo();
  267. this.getParkList()
  268. this.getParkList2()
  269. this.getParkList3()
  270. },
  271. methods: {
  272. ...mapActions(['refreshUserInfo']),
  273. //选择产业链环节
  274. getParkList3() {
  275. loginService.getIndustryChainList({
  276. }).then(({
  277. data
  278. }) => {
  279. // this.parkList3 = data.map((item) => {
  280. // return {
  281. // label: item.bz2,
  282. // value: item.bz2
  283. // }
  284. // });
  285. this.parkList3=[{label: '上游',value: '上游'},{label: '中游',value: '中游'},{label: '下游',value: '下游'}]
  286. this.parkList4 = data
  287. .map((item) => {
  288. const match = item.bz2.match(/\((.*?)\)/); // 匹配括号内的内容
  289. if (match) {
  290. return {
  291. label: match[1], // 括号内的内容
  292. value: match[1] // 括号内的内容
  293. };
  294. }
  295. return null; // 如果没有括号,返回 null
  296. })
  297. .filter((item) => item !== null) // 过滤掉 null 值
  298. .reduce((acc, current) => {
  299. // 使用 Set 去重
  300. const existingItem = acc.find((item) => item.value === current.value);
  301. if (!existingItem) {
  302. acc.push(current);
  303. }
  304. return acc;
  305. }, []);
  306. this.parkList3.unshift({
  307. label: "全部",
  308. value: ""
  309. });
  310. this.parkList4.unshift({
  311. label: "全部",
  312. value: ""
  313. });
  314. }).catch(e => {
  315. console.log(e)
  316. })
  317. },
  318. //选择属地
  319. getParkList2() {
  320. loginService.getAreaList({
  321. }).then(({
  322. data
  323. }) => {
  324. this.parkList2 = data.map((item) => {
  325. return {
  326. label: item.des1,
  327. value: item.des1
  328. }
  329. })
  330. this.parkList2.unshift({
  331. label: "盐都区",
  332. value: ""
  333. });
  334. }).catch(e => {
  335. console.log(e)
  336. })
  337. },
  338. //选择行业
  339. getParkList() {
  340. loginService.getHyList({
  341. }).then(({
  342. data
  343. }) => {
  344. this.parkList = data.map((item) => {
  345. return {
  346. label: item.industry,
  347. value: item.industry
  348. }
  349. })
  350. this.parkList.unshift({
  351. label: "全部",
  352. value: ""
  353. });
  354. }).catch(e => {
  355. console.log(e)
  356. })
  357. },
  358. /*获取数据列表 */
  359. upCallback(page) {
  360. this.loading = true
  361. loginService.comlist({
  362. current: page.num,
  363. size: page.size,
  364. name: this.curWord,
  365. des1: this.parkId,
  366. orders: [{ column: 'a.create_date', asc: false }],
  367. ...this.searchForm
  368. }).then(({
  369. data
  370. }) => {
  371. let curPageData = data.records
  372. this.mescroll.endBySize(curPageData.length, data.total);
  373. //如果是第一页需手动制空列表
  374. if (page.num == 1)
  375. this.dataList = [];
  376. //追加新数据
  377. this.dataList = this.dataList.concat(curPageData);
  378. }).catch(e => {
  379. //联网失败, 结束加载
  380. this.mescroll.endErr();
  381. })
  382. },
  383. gotoBuildInfo(id) {
  384. // uni.navigateTo({
  385. // url: `/pages/comEdit/comEdit?id=${id}&ischeck=1`
  386. // })
  387. window.location.href=`/yd_qycpfbH5/#/pages/comEdit/comEdit?id=${id}&ischeck=1`
  388. },
  389. updateCities(newCities) {
  390. this.cities = newCities;
  391. },
  392. // 搜索
  393. doSearch() {
  394. if(this.ddd1.column2!=''&&this.ddd1!=''){
  395. this.searchForm.bz2=this.ddd1.column1+'('+this.ddd1.column2+')';
  396. }else if(this.ddd1!=''){
  397. this.searchForm.bz2=this.ddd1.column1;
  398. }
  399. this.dataList = []; // 先清空列表,显示加载进度
  400. this.mescroll.resetUpScroll();
  401. },
  402. totongxunlu(){
  403. uni.navigateTo({
  404. url: '/pages/comList/comList'
  405. })
  406. },
  407. totongxunlu2(){
  408. uni.navigateTo({
  409. url: '/pages/buildList/buildList2?w=1'
  410. })
  411. },
  412. totongxunlu3(){
  413. uni.navigateTo({
  414. url: '/pages/buildList/buildList?w=2'
  415. })
  416. },
  417. totongxunlu7(){
  418. uni.navigateTo({
  419. url: '/pages/buildList/buildList?w=4'
  420. })
  421. },
  422. totongxunlu6(){
  423. uni.navigateTo({
  424. url: '/pages/buildList/buildList?w=1'
  425. })
  426. },
  427. totongxunlu4(){
  428. uni.navigateTo({
  429. url: '/pages/product/productList?w=1'
  430. })
  431. },
  432. totongxunlu5(){
  433. if(this.isLogin==null){
  434. uni.showModal({
  435. title: '您还未登录,现在去登录?',
  436. showCancel: true,
  437. success: (res) => {
  438. if (res.confirm) {
  439. uni.showLoading()
  440. uni.reLaunch({
  441. url: '/pages/login/login'
  442. })
  443. }
  444. }
  445. });
  446. }else{
  447. uni.navigateTo({
  448. url: '/pages/product/productList?w=2'
  449. })
  450. }
  451. },
  452. totongxunlu22(){
  453. if(this.isLogin==null){
  454. }else{
  455. let roleIds= $auth.getUserInfo().roleIds;
  456. if(roleIds=='1910175386924417025'||roleIds=='17bac1f980264e3e8193bc965538e2c6'||roleIds=='ade960e8f02544998b07397304c059c1'){
  457. uni.navigateTo({
  458. url: '/pages/buildList/buildList3?w=1'
  459. })
  460. }
  461. }
  462. },
  463. totongxunlu23(){
  464. if(this.isLogin==null){
  465. }else{
  466. let roleIds= $auth.getUserInfo().roleIds;
  467. if(roleIds=='1910175386924417025'||roleIds=='17bac1f980264e3e8193bc965538e2c6'||roleIds=='ade960e8f02544998b07397304c059c1'){
  468. uni.navigateTo({
  469. url: '/pages/buildList/buildList3?w=2'
  470. })
  471. }
  472. }
  473. },
  474. getPageInfo() {
  475. loginService.InfoStatistics({}).then(({ data }) => {
  476. this.pageInfo = data;
  477. //103改为 14/103
  478. //this.pageInfo.industryc="14/"+this.pageInfo.industryc;
  479. });
  480. loginService.getDzfCount().then(({
  481. data
  482. }) => {
  483. this.pageInfo2 = data;
  484. }).catch((e) => {
  485. })
  486. loginService.enterpriseother({
  487. current: 1,
  488. size: 5,
  489. orders: [{ column: 'a.create_date', asc: false }]
  490. }).then(({
  491. data
  492. }) => {
  493. let curPageData = data.records
  494. this.news=curPageData;
  495. }).catch(e => {
  496. //联网失败, 结束加载
  497. this.mescroll.endErr();
  498. })
  499. },
  500. autoLogin(){
  501. console.log("登录id"+this.loginid);
  502. loginService.loginid( this.loginid).then(({data}) => {
  503. this.$store.commit('SET_TOKEN',data.token);
  504. this.refreshUserInfo();
  505. }).catch(e => {
  506. console.error(e)
  507. })
  508. },
  509. getRole() {
  510. let userInfo = uni.getStorageSync('WMS-userinfo')
  511. var officeId = userInfo.officeDTO.id;
  512. var roleIds = userInfo.roleIds;
  513. if (roleIds.indexOf("17bac1f980264e3e8193bc965538e2c6") != -1) {
  514. //// 管理员
  515. this.stype = 5
  516. uni.setStorageSync('stype', this.stype);
  517. } else if (roleIds.indexOf("ade960e8f02544998b07397304c059c1") != -1) {
  518. // 政府管理员
  519. this.stype = 4
  520. uni.setStorageSync('stype', this.stype);
  521. } else {
  522. console.log('==================>这里走了么','================>存一个stape')
  523. loginService
  524. .getOtherIdByOffceid({
  525. officeid: officeId,
  526. })
  527. .then(({
  528. data
  529. }) => {
  530. console.log(data, "====================>getOtherIdByOffceid");
  531. this.stype = data.stype;
  532. uni.setStorageSync('stype', this.stype);
  533. });
  534. }
  535. },
  536. outloginset(){
  537. loginService.logout().then(({
  538. data
  539. }) => {
  540. this.$store.commit('logout');
  541. uni.clearStorage();
  542. })
  543. this.$store.commit('logout');
  544. uni.clearStorage();
  545. this.isLogin=this.$auth.checkisLogin();
  546. uni.hideLoading()
  547. },
  548. outlogin() {
  549. uni.showModal({
  550. title: '您确认退出么?',
  551. showCancel: true,
  552. success: (res) => {
  553. if (res.confirm) {
  554. uni.showLoading()
  555. this.outloginset();
  556. // uni.reLaunch({
  557. // url: '/pages/login/login'
  558. // })
  559. }
  560. }
  561. });
  562. },
  563. tologin(){
  564. uni.reLaunch({
  565. url: '/pages/login/login'
  566. })
  567. },
  568. tosetting() {
  569. uni.navigateTo({
  570. url: '/pages/user/person/person'
  571. })
  572. },
  573. tces() {
  574. uni.navigateTo({
  575. url: '/pages/index/AudioToWord'
  576. })
  577. },
  578. totongxunlu511(){
  579. uni.navigateTo({
  580. url: '/pages/product/productList?w=1'
  581. })
  582. },
  583. // ListTouch触摸开始
  584. ListTouchStart(e) {
  585. this.listTouchStart = e.touches[0].pageX
  586. },
  587. // ListTouch计算方向
  588. ListTouchMove(e) {
  589. this.listTouchDirection = e.touches[0].pageX - this.listTouchStart > -60 ? 'right' : 'left'
  590. },
  591. // ListTouch计算滚动
  592. ListTouchEnd(e) {
  593. if (this.listTouchDirection == 'left') {
  594. this.modalName = e.currentTarget.dataset.target
  595. } else {
  596. this.modalName = null
  597. }
  598. this.listTouchDirection = null
  599. },
  600. handleBack() {
  601. // 返回逻辑,比如跳转至上一页
  602. this.$router.go(-1);
  603. console.log('返回按钮被点击');
  604. }
  605. }
  606. }
  607. </script>
  608. <style>
  609. .page {
  610. height: 100vh;
  611. }
  612. .line-box {
  613. padding-left: 20rpx;
  614. padding-right: 20rpx;
  615. margin-top: 20rpx;
  616. }
  617. .mart-t {
  618. margin-top: 30rpx;
  619. }
  620. .center-box{
  621. margin-top: 20rpx;
  622. width: 100%;
  623. border-radius: 25rpx;
  624. border-radius: 25rpx;
  625. background: #fff;
  626. box-shadow: 0px 8px 16px 2px rgba(101, 101, 101, 0.2);
  627. padding-bottom: 30rpx;
  628. display: flex;
  629. flex-wrap: wrap;
  630. }
  631. .center-left-box {
  632. width: 100%;
  633. padding-bottom: 30rpx;
  634. display: flex;
  635. flex-wrap: wrap;
  636. }
  637. .btn-box-text {
  638. flex:1;
  639. height: 20rpx;
  640. text-align: center;
  641. color: #000000;
  642. font-size: 14px;
  643. font-weight: 700;
  644. }
  645. .btn-box-1 {
  646. flex:1;
  647. height: 30rpx;
  648. text-align: center;
  649. color: #36A7F3;
  650. font-size: x-large;
  651. font-weight: 700;
  652. }
  653. .btn-box-2 {
  654. flex:1;
  655. height: 30rpx;
  656. text-align: center;
  657. color:#F3365A;
  658. font-size: x-large;
  659. font-weight: 700;
  660. }
  661. .btn-box-3 {
  662. flex:1;
  663. height: 30rpx;
  664. text-align: center;
  665. color:#15D578;
  666. font-size: x-large;
  667. font-weight: 700;
  668. }
  669. .btn-box-4 {
  670. flex:1;
  671. height: 30rpx;
  672. text-align: center;
  673. color:#F1A31B;
  674. font-size: x-large;
  675. font-weight: 700;
  676. }
  677. .btn-Imbox {
  678. flex:1;
  679. height: 150rpx;
  680. padding-top: 8rpx;
  681. text-align: center;
  682. display: flex;
  683. flex-direction: column;
  684. justify-content: center; /* 子元素内部内容竖向居中 */
  685. align-items: center; /* 子元素内部内容水平居中 */
  686. text-align: center; /* 文字居中 */
  687. }
  688. .btn-Imbox p {
  689. font-size: 14px; /* 文字大小,可根据需要调整 */
  690. margin: 0; /* 去掉默认的外边距 */
  691. font-weight: 700;
  692. }
  693. .center-img{
  694. width: 90rpx;
  695. height: 90rpx;
  696. margin-bottom: 10rpx;
  697. text-align: center;
  698. }
  699. .center-img2{
  700. width: 70rpx;
  701. height: 70rpx;
  702. margin-top: 10rpx;
  703. margin-bottom: 20rpx;
  704. text-align: center;
  705. }
  706. .kuai-text{
  707. color: #000000;
  708. font-weight: 900;
  709. font-size: 34rpx;
  710. padding-top: 20rpx;
  711. padding-left: 20rpx;
  712. }
  713. .btn-box-5 {
  714. width: 337rpx;
  715. height: 200rpx;
  716. background-image: url('../../static/img/btn3.png');
  717. background-size: 100% 100%;
  718. }
  719. .btn-box-6 {
  720. width: 337rpx;
  721. height: 200rpx;
  722. background-image: url('../../static/img/btn6.png');
  723. background-size: 100% 100%;
  724. }
  725. .h-200 {
  726. height: 200rpx;
  727. }
  728. .swiper {
  729. width: 750rpx;
  730. height: 310rpx;
  731. }
  732. .swiper-item {
  733. width: 750rpx;
  734. height: 310rpx;
  735. background-color: aliceblue;
  736. }
  737. .font-size-35 {
  738. font-size: 35px !important;
  739. }
  740. .img-size {
  741. width: 80rpx;
  742. height: 80rpx;
  743. }
  744. .content-box {
  745. width: 437rpx;
  746. height: 200rpx;
  747. }
  748. .my-app .padding-sm {
  749. padding: 6px;
  750. }
  751. .grid .padding-sm .bg-white {
  752. box-shadow: 0 1px 4px #f9f9f9, 1px 1px 40px rgba(0, 0, 0, .06);
  753. }
  754. .bg-blue {
  755. background: #fff;
  756. color: #0081ff !important;
  757. }
  758. .text-white,
  759. .line-white,
  760. .lines-white {
  761. color: #0081ff !important;
  762. }
  763. .cu-bar .search-form {
  764. background-color: white;
  765. }
  766. .item-box{
  767. width: 710rpx;
  768. background: #FFFFFF;
  769. box-shadow: 0px 1px 3px 0px rgba(9,2,4,0.1);
  770. border-radius: 10px;
  771. padding-top: 20rpx;
  772. padding-left: 38rpx;
  773. padding-right: 10rpx;
  774. margin-top: 20rpx;
  775. }
  776. .item-title{
  777. position: relative;
  778. display: flex;
  779. justify-content: space-between;
  780. font-size: 30rpx;
  781. color: #010101;
  782. font-weight: bold;
  783. align-items: center;
  784. }
  785. .item-line{
  786. display: flex;
  787. height: 48rpx;
  788. margin-top: 20rpx;
  789. }
  790. .item-line2{
  791. height: 48rpx;
  792. margin-top: 20rpx;
  793. }
  794. .subtitle{
  795. color: #E5880E;
  796. }
  797. .item-name{
  798. margin-top: 5rpx;
  799. font-size: 29rpx;
  800. color: #666666;
  801. }
  802. .item-name2{
  803. font-size: 29rpx;
  804. color: #676D99;
  805. }
  806. .item-name3{
  807. display: flex;
  808. width: 100%;
  809. padding-right: 30rpx;
  810. flex: 1;
  811. justify-content: flex-end;
  812. font-size: 29rpx;
  813. color: #676D99;
  814. }
  815. .item-content{
  816. color: #1497EF;
  817. font-size: 30rpx;
  818. }
  819. .btn-box{
  820. display: flex;
  821. }
  822. .line-zs{
  823. width: 2rpx;
  824. height: 30rpx;
  825. background: #36A7F3;
  826. }
  827. .edit-botton{
  828. width: 100rpx;
  829. height: 48rpx;
  830. line-height: 48rpx;
  831. color: #fff;
  832. font-size: 28rpx;
  833. margin-right: 20rpx;
  834. border-radius: 10rpx;
  835. background: #5A9EE9;
  836. text-align: center;
  837. }
  838. .del-botton{
  839. width: 100rpx;
  840. height: 48rpx;
  841. line-height: 48rpx;
  842. color: #fff;
  843. font-size: 28rpx;
  844. margin-right: 20rpx;
  845. border-radius: 10rpx;
  846. background: #F27C85;
  847. text-align: center;
  848. }
  849. .color-white{
  850. color: #808080;
  851. font-size: 40rpx;
  852. line-height: 60rpx;
  853. }
  854. .search-box{
  855. padding-left: 20rpx;
  856. padding-right: 20rpx;
  857. padding-top: 20rpx;
  858. margin-top: 20rpx;
  859. width: 100%;
  860. border-radius: 25rpx;
  861. border-radius: 25rpx;
  862. background: #fff;
  863. box-shadow: 0px 8px 16px 2px rgba(101, 101, 101, 0.2);
  864. padding-bottom: 30rpx;
  865. display: flex;
  866. flex-wrap: wrap;
  867. }
  868. .search-box1{
  869. display: flex;
  870. }
  871. .input-box{
  872. background: #fff;
  873. height: 65rpx;
  874. width: 640rpx;
  875. display: flex;
  876. align-items: center;
  877. border-radius: 30rpx;
  878. padding-left: 30rpx;
  879. margin-right: 20rpx;
  880. }
  881. .input-boxinput{
  882. height: 75rpx;
  883. font-size: 15rpx;
  884. }
  885. .choose-box{
  886. background: #fff;
  887. width: 325rpx;
  888. border-radius: 23rpx;
  889. height: 70rpx;
  890. display: flex;
  891. align-items: center;
  892. justify-content: center;
  893. margin-right: 20rpx;
  894. border: 1rpx solid #808080;
  895. }
  896. .choose-box2{
  897. background: #fff;
  898. width: 100%;
  899. border-radius: 23rpx;
  900. height: 70rpx;
  901. display: flex;
  902. padding-left: 29rpx;
  903. align-items: center;
  904. border: 1rpx solid #808080;
  905. }
  906. .choose-box3{
  907. display: flex;
  908. }
  909. .choose-boxp{
  910. font-size: 32rpx;
  911. width: 80rpx;
  912. }
  913. .fixed-bottom-right {
  914. padding: 20rpx;
  915. position: fixed;
  916. bottom: 20px; /* 距离底部的距离 */
  917. right: 20px; /* 距离右侧的距离 */
  918. }
  919. /* 返回 */
  920. .item-img {
  921. width: 160rpx;
  922. height: 160rpx;
  923. }
  924. .custom-header {
  925. display: flex;
  926. align-items: center;
  927. justify-content: center;
  928. padding: 10px;
  929. width: 100%;
  930. }
  931. .is-back {
  932. position: relative;
  933. }
  934. .back-container {
  935. position: absolute;
  936. left: 10px;
  937. cursor: pointer;
  938. }
  939. .back-text {
  940. color: white; /* 返回按钮文本颜色 */
  941. }
  942. .back-text {
  943. color: white; /* 返回按钮文本颜色 */
  944. }
  945. .content-container {
  946. flex: 1;
  947. text-align: center;
  948. }
  949. .content-text {
  950. color: white; /* 标题文本颜色 */
  951. font-weight: bold;
  952. }
  953. /* 背景颜色 */
  954. .bg-blue {
  955. background-color: #4285f4; /* 假设这是一个蓝色背景 */
  956. }
  957. .btn-box-1-1 {
  958. height: 30rpx;
  959. text-align: left;
  960. color: #269ff8;
  961. font-size:28rpx;
  962. margin-left:30rpx ;
  963. font-weight: 600;
  964. }
  965. .swiper2 {
  966. width: 750rpx;
  967. height: 42rpx;
  968. }
  969. .swiper2-item {
  970. width: 750rpx;
  971. height: 42rpx;
  972. background-color: #F9AE3D;
  973. }
  974. </style>