sandTable.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769
  1. <template>
  2. <page-meta :page-style="'padding-bottom: 0;'+'overflow:'+((showFilter||show||showPoster)?'hidden':'visible')"/>
  3. <view style="background-color: #F6F6F6;">
  4. <!-- 没有权限 -->
  5. <block v-if="noAuthor ==1 && isFinished">
  6. <view class="sandTable-noAuthor">
  7. <block v-if="!applyer.hasApply">
  8. <image :src="globalImgUrls.sandBoxNoAuthor" mode="aspectFit"></image>
  9. <text style="margin-top: 48rpx;">您暂无权限查看沙盘推演</text>
  10. <text style="margin-top: 20rpx;">若想查看可以申请开通</text>
  11. <button @click="toApply">立即申请</button>
  12. </block>
  13. <block v-else>
  14. <image class="img-wait" :src="globalImgUrls.chartWait" mode="widthFix"
  15. style="width: 186rpx;margin-top: 200rpx;width: 186rpx;margin-bottom: 50rpx;"></image>
  16. <text style="margin-bottom:15px">您已提交申请</text>
  17. <text>请等待销售人员与您联系</text>
  18. </block>
  19. </view>
  20. </block>
  21. <block v-if="noAuthor ==2 && isFinished">
  22. <view class="sandTable-noAuthor">
  23. <image :src="globalImgUrls.sandBoxNoAuthor" mode="aspectFit"></image>
  24. <text style="margin-top: 48rpx;">您暂无权限查看沙盘推演</text>
  25. <text style="margin: 20rpx 0 6rpx 0;">若想查看请联系对口销售</text>
  26. <view>
  27. <text>{{salesData.name}}:</text><text class="sales-mobile" @click="callToSales">{{salesData.phone}}</text>
  28. </view>
  29. </view>
  30. </block>
  31. <!-- 有权限 -->
  32. <view v-show="noAuthor ==0 && isFinished" style="padding-top: 156rpx;">
  33. <view style="position: fixed;top: 0;width: 100vw;">
  34. <view style="height: 2rpx;background-color: #F6F6F6;"></view>
  35. <view class="search-wrap">
  36. <van-search
  37. shape="round"
  38. placeholder="沙盘图名称搜索"
  39. clear-trigger="always"
  40. style="flex-grow: 1"
  41. :value="sandTableQuery.keyword"
  42. @change="searchValChange"
  43. @search="onSearch"
  44. @clear="onClearSearch"
  45. placeholderStyle="color: #999999;"
  46. />
  47. <view class="filtration-icon-zone" @click="showFilter=true">
  48. <image
  49. src="../static/sandTable/sandTable_filtration.png"
  50. mode="widthFix"
  51. class="menu-icon"/>
  52. <text>筛选</text>
  53. </view>
  54. </view>
  55. </view>
  56. <!-- 无数据 -->
  57. <view class="sandTable-noData" v-if="!list">
  58. <image :src="globalImgUrls.sandBoxNoAuthor" mode="aspectFit"></image>
  59. <text >暂无数据</text>
  60. </view>
  61. <view class="sandTable-list" v-else>
  62. <view class="sandTable-box" v-for="(item,index) in list" :key="item.sandbox_id">
  63. <view class="sandTable-box-top">
  64. <view class="sandTable-box-topL">
  65. <view class="sandTable-tag">
  66. {{item.chart_permission_name}}
  67. </view>
  68. <rich-text :nodes="item.name" class="sandTable-name"></rich-text>
  69. </view>
  70. <view class="sandTable-box-topR">
  71. <image src="../static/sandTable/fullScreen.png" style="margin-right: 50rpx;" @click="previewImage(index)"></image>
  72. <image src="../static/sandTable/sandTable-share.png" @click="generatePoster('detail',item)"></image>
  73. </view>
  74. </view>
  75. <view class="sandTable-item" @click="previewImage(index)">
  76. <image :src="item.pic_url" mode="aspectFit"></image>
  77. <!-- <view class="sandTable-item-origin">
  78. 来源:弘则研究
  79. </view> -->
  80. </view>
  81. </view>
  82. <view v-if="list.length==total && list.length>0" class="bottom_text">已经到底了</view>
  83. </view>
  84. </view>
  85. </view>
  86. <!-- 筛选弹窗 -->
  87. <van-popup :show="showFilter" round position="bottom" @close="showFilter = false" z-index="99999" :safe-area-inset-bottom="true" >
  88. <view class="filter-container">
  89. <view class="filter-container-header">
  90. <text>全部筛选</text>
  91. <text style="color: #E3B377;" @click="showFilter=false">取消</text>
  92. </view>
  93. <view class="list-box">
  94. <van-collapse accordion @change="selectFisrtClassify" :value="selectedFirstId" :border="false">
  95. <van-collapse-item
  96. :title="item.classify_name"
  97. :name='item.id'
  98. :border="false"
  99. v-for="item in classfyList"
  100. :key="item.id"
  101. >
  102. <van-row gutter="5">
  103. <van-col
  104. :span="_item.chart_permission_name.length>7?16:8"
  105. v-for="_item in item.list"
  106. :key="_item.chart_permission_id"
  107. >
  108. <text
  109. :class="['list-item',_item.chart_permission_id==selectedSecondId&&'list-item-active']"
  110. @click="handleSelectPerItem(_item)"
  111. >{{_item.chart_permission_name}}</text>
  112. </van-col>
  113. </van-row>
  114. </van-collapse-item>
  115. </van-collapse>
  116. </view>
  117. </view>
  118. </van-popup>
  119. <!-- 分享按钮 -->
  120. <image @click="generatePoster('list')" class="share-icon" src="@/static/share-poster-icon.png" mode="aspectFill" v-if="noAuthor==0&&isFinished"/>
  121. <!-- 生成海报弹窗 -->
  122. <div class="share-poster-wrap" @touchmove.prevent>
  123. <div class="poster-mask" v-if="show||showPoster" @click="showPoster=false" @touchmove.prevent></div>
  124. <div class="loading-box" v-if="show">
  125. <img class="load-img" src="../static/loading.png"/>
  126. <div>海报生成中...</div>
  127. </div>
  128. <img v-if="showPoster" class="poster-img" mode="widthFix" :src="posterImg" show-menu-by-longpress />
  129. </div>
  130. </template>
  131. <script>
  132. import {apiSandTableList,apiSandTableDetail} from "../api/sandTable.js"
  133. import {apiReportIndexPageAuthList} from "../api/report.js"
  134. import {apiGetPoster,apiGetSceneToParams} from "../api/common.js"
  135. import {apiApplyPermission} from "../api/user.js"
  136. export default {
  137. data() {
  138. return {
  139. sandTableQuery:{
  140. page_size: 20,
  141. curr_page: 1,
  142. keyword:'' ,
  143. chart_permission_id: 0,
  144. is_high_light:false // 是否高亮
  145. },
  146. total:0,
  147. isRequseting:false,
  148. showFilter:false,
  149. list:[],
  150. classfyList:[],
  151. selectedFirstId:0,
  152. selectedSecondId:0,
  153. // 是否显示过全部加载弹窗
  154. haveShowToast:false,
  155. showPoster:false,
  156. show:false,
  157. // 是否跳转到申请结果页面
  158. haveGoToResult:false,
  159. // 是否请求完成
  160. isFinished:false,
  161. posterImg:'',
  162. // 没有权限 1:立即申请 2:联系销售
  163. noAuthor:0,
  164. // 销售信息
  165. salesData:{
  166. phone:'',
  167. name:''
  168. },
  169. // 申请权限时的用户信息
  170. applyer:{
  171. name:'',
  172. company:'',
  173. // 是否已经申请
  174. hasApply:false,
  175. // 状态
  176. status:''
  177. }
  178. }
  179. },
  180. onLoad(options) {
  181. this.init(options)
  182. },
  183. onShow(options) {
  184. // 预览图片结束时,会触发onShow,切回竖屏
  185. uni.setPageOrientation({orientation : "portrait"})
  186. if(this.haveGoToResult){
  187. //从申请结果页面回来
  188. this.getSandBoxList()
  189. this.haveGoToResult=false
  190. }
  191. },
  192. // 小程序自带分享
  193. onShareAppMessage() {
  194. let {keyword,chart_permission_id,is_high_light} = this.sandTableQuery
  195. return {
  196. title:'沙盘推演',
  197. path:`/pages-sandTable/sandTable?keyword=${keyword}&chart_permission_id=${chart_permission_id}`+
  198. `&is_high_light=${is_high_light}&firstClassifyId=${this.selectedFirstId}`
  199. }
  200. },
  201. onPullDownRefresh() {
  202. this.sandTableQuery.curr_page=1
  203. this.sandTableQuery.chart_permission_id = this.selectedSecondId = this.selectedFirstId=0
  204. this.sandTableQuery.keyword=''
  205. this.is_high_light=false
  206. this.haveShowToast=false
  207. this.getSandBoxList('stopPullDown')
  208. this.getClassifyList()
  209. },
  210. onReachBottom() {
  211. if(this.isRequseting) return
  212. if(this.list.length>=this.total && this.total!=0){
  213. // if(this.haveShowToast) return
  214. // // 只显示一次
  215. // this.haveShowToast = true
  216. // uni.showToast({
  217. // title:"没有了~",
  218. // icon:'none'
  219. // })
  220. return
  221. }
  222. this.sandTableQuery.curr_page++
  223. this.getSandBoxList()
  224. },
  225. methods: {
  226. async init(options){
  227. let obj={}
  228. if(options.scene){
  229. let res = await apiGetSceneToParams({scene_key:options.scene})
  230. if(res.code==200){
  231. obj=JSON.parse(res.data)
  232. }
  233. }
  234. // 有sandbox_id 说明是单个分享进来的
  235. if(obj.sandbox_id){
  236. this.selectedFirstId = obj.firstClassifyId || 0
  237. this.selectedSecondId = obj.chart_permission_id || 0
  238. this.getSandBoxDetail(obj.sandbox_id)
  239. }else{
  240. this.sandTableQuery.keyword = obj.keyword || ""
  241. this.selectedFirstId = obj.firstClassifyId || 0
  242. this.sandTableQuery.chart_permission_id = this.selectedSecondId = obj.chart_permission_id || 0
  243. this.sandTableQuery.is_high_light = obj.is_high_light || false
  244. this.getSandBoxList()
  245. }
  246. this.getClassifyList()
  247. },
  248. // 获取沙盘图数据
  249. getSandBoxList(option){
  250. this.isRequseting=true
  251. apiSandTableList(this.sandTableQuery).then(({data:{list,paging,type,name,mobile,customer_info},code})=>{
  252. if(option == 'stopPullDown'){
  253. uni.stopPullDownRefresh()
  254. }
  255. // 403 没有权限
  256. if(code==403){
  257. this.applyer.name = customer_info.name
  258. this.applyer.company = customer_info.company_name
  259. this.applyer.hasApply = customer_info.has_apply
  260. this.applyer.status = customer_info.status
  261. if(type == 'apply'){
  262. // 申请
  263. this.noAuthor =1
  264. }else{
  265. // 联系销售
  266. this.noAuthor =2
  267. this.salesData.name=name
  268. this.salesData.phone=mobile
  269. }
  270. return
  271. }
  272. if(this.sandTableQuery.curr_page==1){
  273. this.list = list
  274. this.total = paging.totals
  275. }else{
  276. this.list = [...this.list,...list]
  277. }
  278. this.noAuthor=0
  279. })
  280. .finally(res=>{
  281. this.isRequseting=false
  282. this.isFinished=true
  283. this.showFilter=false
  284. })
  285. },
  286. getSandBoxDetail(sandbox_id){
  287. this.isRequseting=true
  288. apiSandTableDetail({sandbox_id}).then(({data,code})=>{
  289. if(code==403){
  290. this.applyer.name = data.customer_info.name
  291. this.applyer.company = data.customer_info.company_name
  292. this.applyer.hasApply = data.customer_info.has_apply
  293. this.applyer.status = data.customer_info.status
  294. if(data.type == 'apply'){
  295. // 申请
  296. this.noAuthor =1
  297. }else{
  298. // 联系销售
  299. this.noAuthor =2
  300. this.salesData.name=data.name
  301. this.salesData.phone=data.mobile
  302. }
  303. return
  304. }
  305. this.list= [data]
  306. this.noAuthor=0
  307. })
  308. .finally(res=>{
  309. this.isRequseting=false
  310. this.isFinished=true
  311. this.showFilter=false
  312. })
  313. },
  314. // 获取分类数据
  315. getClassifyList(){
  316. apiReportIndexPageAuthList().then(({data:{permission_list}})=>{
  317. // 过滤掉'更多报告' 和 没有权限的分类
  318. this.classfyList = permission_list.filter(item => item.sort!=100000)
  319. this.classfyList.forEach(item=>{
  320. item.list=item.list.filter(it=>it.auth_ok)
  321. })
  322. this.classfyList=this.classfyList.filter(item=>item.list.length!=0)
  323. })
  324. },
  325. // 权限申请
  326. toApply(type=''){
  327. if(type=='auto'){
  328. apiApplyPermission({
  329. company_name:this.applyer.company,
  330. real_name:this.applyer.name,
  331. source:7,
  332. from_page:'沙盘推演',
  333. }).then(res=>{
  334. console.log('自动申请成功');
  335. })
  336. }else{
  337. if(this.applyer.status==='流失'){
  338. apiApplyPermission({
  339. company_name:this.applyer.company,
  340. real_name:this.applyer.name,
  341. source:7,
  342. from_page:'沙盘推演',
  343. }).then(res=>{
  344. this.haveGoToResult=true
  345. uni.navigateTo({url:'/pages-applyPermission/applyResult'})
  346. })
  347. }else{
  348. uni.navigateTo({ url: '/pages-applyPermission/applyPermission?source=7&from_page=沙盘推演' })
  349. }
  350. }
  351. },
  352. // 联系销售申请权限
  353. callToSales(){
  354. if(!this.applyer.hasApply){
  355. this.toApply('auto')
  356. }
  357. uni.makePhoneCall({
  358. phoneNumber: this.salesData.phone,
  359. success: (result) => {},
  360. fail: (error) => {}
  361. })
  362. },
  363. // 搜索内容变化
  364. searchValChange(e){
  365. this.sandTableQuery.keyword=e.detail
  366. // this.sandTableQuery.is_high_light = true
  367. // this.getSandBoxList()
  368. },
  369. // 清除搜索内容
  370. onClearSearch(){
  371. this.sandTableQuery={
  372. page_size: 20,
  373. curr_page: 1,
  374. keyword:'' ,
  375. chart_permission_id: 0,
  376. is_high_light:false
  377. }
  378. this.selectedFirstId = this.selectedSecondId = 0
  379. this.haveShowToast=false
  380. this.getSandBoxList()
  381. },
  382. // 确认搜索
  383. onSearch(){
  384. this.sandTableQuery.chart_permission_id= this.selectedFirstId = this.selectedSecondId = 0
  385. this.sandTableQuery.is_high_light = true
  386. this.haveShowToast=false
  387. this.getSandBoxList()
  388. },
  389. // 选中一级分类
  390. selectFisrtClassify(e){
  391. this.selectedFirstId = e.detail
  392. },
  393. handleSelectPerItem(item){
  394. if(this.selectedSecondId==item.chart_permission_id){
  395. this.sandTableQuery.chart_permission_id=this.selectedSecondId=0
  396. }else{
  397. this.sandTableQuery.chart_permission_id=this.selectedSecondId=item.chart_permission_id
  398. }
  399. this.sandTableQuery.curr_page=1
  400. uni.pageScrollTo({
  401. scrollTop:0,
  402. duration:300
  403. })
  404. this.showFilter=false
  405. this.getSandBoxList()
  406. },
  407. // 预览图片
  408. previewImage(index){
  409. // 先切换横屏才预览图片 ,预览图片开启之后 切换不了横屏
  410. uni.setPageOrientation({orientation : "landscape"}).finally(()=>{
  411. // 在回调函数中 用setTimeout将预览图片的任务 再往后排 不然可能会切换失败
  412. setTimeout(()=>{
  413. uni.previewImage({
  414. urls:this.list.map(item=> item.pic_url),
  415. current:index,
  416. showmenu:false
  417. })
  418. },10)
  419. })
  420. },
  421. // 生成海报
  422. generatePoster(type,item=''){
  423. this.handleCreatePoster(type,item)
  424. },
  425. async handleCreatePoster(type,item){
  426. this.show=true
  427. let code_scene_json = {},source='',parsJson={},code_scene=''
  428. if(type == 'detail'){
  429. // 分享单个
  430. let {chart_permission_id} = item
  431. let first_permission_id = 0
  432. // 通过分享的沙盘图的二级分类Id,找到对应的一级Id
  433. U:for (let item of this.classfyList) {
  434. for (let it of item.list) {
  435. if(it.chart_permission_id == chart_permission_id){
  436. first_permission_id = item.id
  437. break U
  438. }
  439. }
  440. }
  441. code_scene_json={
  442. sandbox_id:item.sandbox_id,
  443. chart_permission_id,
  444. firstClassifyId:first_permission_id
  445. }
  446. code_scene=JSON.stringify(code_scene_json)
  447. source = 'sandbox_detail'
  448. parsJson = {title_1:item.name,img_1:item.pic_url}
  449. }else{
  450. // 分享列表
  451. let {keyword,chart_permission_id,is_high_light} = this.sandTableQuery
  452. let firstImageUrl,secondImageUrl;
  453. if(!this.list || !this.list[0]){
  454. // 分享的列表页一条数据也没有 使用两个默认的沙盘图地址
  455. firstImageUrl = this.globalImgUrls.sandBoxShareDefault1
  456. secondImageUrl = this.globalImgUrls.sandBoxShareDefault2
  457. }else if(!this.list[1]){
  458. // 分享的列表页只有一条数据 第二个图片使用默认的沙盘图地址
  459. firstImageUrl = this.list[0].pic_url
  460. secondImageUrl = this.globalImgUrls.sandBoxShareDefault1
  461. }else{
  462. // 列表页有数据
  463. firstImageUrl = this.list[0].pic_url
  464. secondImageUrl = this.list[1].pic_url
  465. }
  466. code_scene_json={
  467. keyword,
  468. chart_permission_id,
  469. is_high_light,
  470. firstClassifyId:this.selectedFirstId
  471. }
  472. code_scene=JSON.stringify(code_scene_json)
  473. source = 'sandbox_list'
  474. parsJson = {title_1:'沙盘推演',img_1:firstImageUrl,img_2:secondImageUrl}
  475. }
  476. const res=await apiGetPoster({
  477. code_page:'pages-sandTable/sandTable',
  478. code_scene,
  479. source,
  480. pars:JSON.stringify(parsJson),
  481. version:'7.0'
  482. })
  483. if(res.code==200){
  484. this.posterImg=res.data
  485. this.show=false
  486. this.showPoster=true
  487. }else{
  488. this.show=false
  489. }
  490. }
  491. }
  492. }
  493. </script>
  494. <style lang="scss" scoped>
  495. page{
  496. padding-bottom: 0;
  497. // 无权限
  498. .sandTable-noAuthor{
  499. display: flex;
  500. flex-direction: column;
  501. align-items: center;
  502. height: 100vh;
  503. image{
  504. margin-top: 180rpx;
  505. }
  506. text{
  507. font-family: 'PingFang SC';
  508. font-style: normal;
  509. font-weight: 400;
  510. font-size: 28rpx;
  511. color: #999999;
  512. }
  513. .sales-mobile{
  514. color: #E3B377;
  515. }
  516. button{
  517. background: #E6B77D;
  518. border-radius: 4px;
  519. width: 634rpx;
  520. height: 80rpx;
  521. margin-top: 108rpx;
  522. font-family: 'PingFang SC';
  523. font-style: normal;
  524. font-weight: 500;
  525. font-size: 32rpx;
  526. color: #FFFFFF;
  527. }
  528. }
  529. // 搜索区域
  530. .search-wrap{
  531. display: flex;
  532. background-color: white;
  533. padding: 20rpx 34rpx 20rpx 10rpx;
  534. height: 156rpx;
  535. align-items: center;
  536. .filtration-icon-zone{
  537. display: flex;
  538. align-items: center;
  539. image{
  540. width: 52rpx;
  541. height: 52rpx;
  542. }
  543. text{
  544. font-family: 'PingFang SC';
  545. font-style: normal;
  546. font-weight: 400;
  547. font-size: 32rpx;
  548. color: #E3B377;
  549. }
  550. }
  551. }
  552. // 列表区域 无数据
  553. .sandTable-noData{
  554. display: flex;
  555. flex-direction: column;
  556. align-items: center;
  557. height: calc(100vh - 158rpx);
  558. image{
  559. margin-top: 180rpx;
  560. }
  561. text{
  562. margin-top: 48rpx;
  563. font-family: 'PingFang SC';
  564. font-style: normal;
  565. font-weight: 400;
  566. font-size: 28rpx;
  567. color: #999999;
  568. }
  569. }
  570. // 列表区域
  571. .sandTable-box{
  572. padding: 24rpx 34rpx 40rpx 34rpx;
  573. background-color: white;
  574. margin-top: 10rpx;
  575. .sandTable-box-top{
  576. display: flex;
  577. justify-content: space-between;
  578. align-items: center;
  579. margin-bottom: 32rpx;
  580. .sandTable-box-topL{
  581. display: flex;
  582. align-items: center;
  583. .sandTable-tag{
  584. margin-right: 20rpx;
  585. padding: 4rpx 22rpx;
  586. background: #333333;
  587. border-radius: 8rpx 8rpx 8rpx 8rpx;
  588. font-size: 24rpx;
  589. font-family: PingFang SC-Medium, PingFang SC;
  590. font-weight: 500;
  591. color: #E4B478;
  592. display: flex;
  593. align-items: center;
  594. justify-content: center;
  595. }
  596. .sandTable-name{
  597. font-size: 32rpx;
  598. font-family: PingFang SC-Medium, PingFang SC;
  599. font-weight: 500;
  600. color: #333333;
  601. max-width: 390rpx;
  602. }
  603. }
  604. .sandTable-box-topR{
  605. display: flex;
  606. align-items: center;
  607. image{
  608. width: 32rpx;
  609. height: 32rpx;
  610. }
  611. }
  612. }
  613. .sandTable-item{
  614. border: 2rpx solid #C4C4C4;
  615. image{
  616. width: 100%;
  617. height: 480rpx;
  618. }
  619. .sandTable-item-origin{
  620. text-align: right;
  621. padding:0 24rpx 20rpx 0 ;
  622. font-size: 20rpx;
  623. font-family: PingFang SC-Regular, PingFang SC;
  624. font-weight: 400;
  625. color: #666666;
  626. }
  627. }
  628. }
  629. .bottom_text{
  630. display: flex;
  631. justify-content: center;
  632. height: 60rpx;
  633. color: gray;
  634. font-size: 32rpx;
  635. }
  636. // 过滤弹窗
  637. .filter-container{
  638. height: 700rpx;
  639. width: 100vw;
  640. position: relative;
  641. .filter-container-header{
  642. padding: 54rpx 34rpx 20rpx 34rpx;
  643. display: flex;
  644. align-items: center;
  645. justify-content: space-between;
  646. text{
  647. font-size: 32rpx;
  648. font-family: PingFang SC-Medium, PingFang SC;
  649. font-weight: 500;
  650. color: #000000;
  651. }
  652. }
  653. .list-box{
  654. min-height: 30vh;
  655. max-height: 60vh;
  656. .list-item{
  657. display: block;
  658. margin: 10rpx;
  659. height: 76rpx;
  660. line-height: 76rpx;
  661. color: #000;
  662. background: #F6F6F6;
  663. border-radius: 4px 4px 4px 4px;
  664. text-align: center;
  665. }
  666. .list-item-active{
  667. background-color: #FAEEDE;
  668. }
  669. }
  670. button{
  671. position: absolute;
  672. bottom: 0;
  673. height: 80rpx;
  674. width: 100vw;
  675. border-radius: 0;
  676. background-color: #E6B77D;
  677. font-size: 32rpx;
  678. font-family: PingFang SC-Medium, PingFang SC;
  679. font-weight: 500;
  680. color: #FFFFFF;
  681. }
  682. }
  683. // 分享海报
  684. .share-poster-wrap{
  685. .poster-mask{
  686. position: fixed;
  687. left: 0;
  688. top: 0;
  689. right: 0;
  690. bottom: 0;
  691. background: rgba(0, 0, 0, 0.4);
  692. z-index: 998;
  693. }
  694. .loading-box{
  695. background-color: #fff;
  696. position: fixed;
  697. left: 50%;
  698. top: 50%;
  699. z-index: 999;
  700. transform: translate(-50%,-50%);
  701. width: 417rpx;
  702. height: 261rpx;
  703. text-align: center;
  704. padding-top: 80rpx;
  705. font-size: 32rpx;
  706. font-weight: bold;
  707. .load-img{
  708. width: 91rpx;
  709. height: 91rpx;
  710. animation: circle 1s linear infinite;
  711. }
  712. @keyframes circle {
  713. 0%{
  714. transform: rotateZ(0);
  715. }
  716. 100%{
  717. transform: rotateZ(360deg);
  718. }
  719. }
  720. }
  721. .poster-img{
  722. width: 90vw;
  723. display: block;
  724. position: fixed;
  725. left: 50%;
  726. top: 50%;
  727. z-index: 999;
  728. transform: translate(-50%,-50%);
  729. border-radius: 16rpx;
  730. }
  731. }
  732. // 分享图标
  733. .share-icon{
  734. position: fixed;
  735. bottom: 100rpx;
  736. right: 34rpx;
  737. z-index: 50;
  738. width: 76rpx;
  739. height: 76rpx;
  740. }
  741. }
  742. </style>
  743. <style scoped>
  744. /deep/ .van-search__content{background-color:#F6F6F6;
  745. border: 2px solid #E5E5E5;box-sizing: border-box;}
  746. </style>
  747. <style lang='scss'>
  748. .filter-container{
  749. .list-box{
  750. .van-cell__title, .van-cell__value{
  751. flex: none !important;
  752. }
  753. .van-cell:after{
  754. border: none !important;
  755. }
  756. .van-cell__title{
  757. font-size: 14px;
  758. }
  759. .van-hairline--top:after{
  760. border-top-width: 0 !important;
  761. }
  762. }
  763. }
  764. </style>