sandTable.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761
  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) return
  213. this.sandTableQuery.curr_page++
  214. this.getSandBoxList()
  215. },
  216. methods: {
  217. async init(options){
  218. let obj={}
  219. if(options.scene){
  220. let res = await apiGetSceneToParams({scene_key:options.scene})
  221. if(res.code==200){
  222. obj=JSON.parse(res.data)
  223. }
  224. }
  225. // 有sandbox_id 说明是单个分享进来的
  226. if(obj.sandbox_id){
  227. this.selectedFirstId = obj.firstClassifyId || 0
  228. this.selectedSecondId = obj.chart_permission_id || 0
  229. this.getSandBoxDetail(obj.sandbox_id)
  230. }else{
  231. this.sandTableQuery.keyword = obj.keyword || ""
  232. this.selectedFirstId = obj.firstClassifyId || 0
  233. this.sandTableQuery.chart_permission_id = this.selectedSecondId = obj.chart_permission_id || 0
  234. this.sandTableQuery.is_high_light = obj.is_high_light || false
  235. this.getSandBoxList()
  236. }
  237. this.getClassifyList()
  238. },
  239. // 获取沙盘图数据
  240. getSandBoxList(option){
  241. this.isRequseting=true
  242. apiSandTableList(this.sandTableQuery).then(({data:{list,paging,type,name,mobile,customer_info},code})=>{
  243. if(option == 'stopPullDown'){
  244. uni.stopPullDownRefresh()
  245. }
  246. // 403 没有权限
  247. if(code==403){
  248. this.applyer.name = customer_info.name
  249. this.applyer.company = customer_info.company_name
  250. this.applyer.hasApply = customer_info.has_apply
  251. this.applyer.status = customer_info.status
  252. if(type == 'apply'){
  253. // 申请
  254. this.noAuthor =1
  255. }else{
  256. // 联系销售
  257. this.noAuthor =2
  258. this.salesData.name=name
  259. this.salesData.phone=mobile
  260. }
  261. return
  262. }
  263. if(this.sandTableQuery.curr_page==1){
  264. this.list = list
  265. this.total = paging.totals
  266. }else{
  267. this.list = [...this.list,...list]
  268. }
  269. this.noAuthor=0
  270. })
  271. .finally(res=>{
  272. this.isRequseting=false
  273. this.isFinished=true
  274. this.showFilter=false
  275. })
  276. },
  277. getSandBoxDetail(sandbox_id){
  278. this.isRequseting=true
  279. apiSandTableDetail({sandbox_id}).then(({data,code})=>{
  280. if(code==403){
  281. this.applyer.name = data.customer_info.name
  282. this.applyer.company = data.customer_info.company_name
  283. this.applyer.hasApply = data.customer_info.has_apply
  284. this.applyer.status = data.customer_info.status
  285. if(data.type == 'apply'){
  286. // 申请
  287. this.noAuthor =1
  288. }else{
  289. // 联系销售
  290. this.noAuthor =2
  291. this.salesData.name=data.name
  292. this.salesData.phone=data.mobile
  293. }
  294. return
  295. }
  296. this.list= [data]
  297. this.noAuthor=0
  298. })
  299. .finally(res=>{
  300. this.isRequseting=false
  301. this.isFinished=true
  302. this.showFilter=false
  303. })
  304. },
  305. // 获取分类数据
  306. getClassifyList(){
  307. apiReportIndexPageAuthList().then(({data:{permission_list}})=>{
  308. // 过滤掉'更多报告' 和 没有权限的分类
  309. this.classfyList = permission_list.filter(item => item.sort!=100000)
  310. this.classfyList.forEach(item=>{
  311. item.list=item.list.filter(it=>it.auth_ok)
  312. })
  313. this.classfyList=this.classfyList.filter(item=>item.list.length!=0)
  314. })
  315. },
  316. // 权限申请
  317. toApply(type=''){
  318. if(type=='auto'){
  319. apiApplyPermission({
  320. company_name:this.applyer.company,
  321. real_name:this.applyer.name,
  322. source:7,
  323. from_page:'沙盘推演',
  324. }).then(res=>{
  325. console.log('自动申请成功');
  326. })
  327. }else{
  328. if(this.applyer.status==='流失'){
  329. apiApplyPermission({
  330. company_name:this.applyer.company,
  331. real_name:this.applyer.name,
  332. source:7,
  333. from_page:'沙盘推演',
  334. }).then(res=>{
  335. this.haveGoToResult=true
  336. uni.navigateTo({url:'/pages-applyPermission/applyResult'})
  337. })
  338. }else{
  339. this.haveGoToResult=true
  340. uni.navigateTo({ url: '/pages-applyPermission/applyPermission?source=7&from_page=沙盘推演' })
  341. }
  342. }
  343. },
  344. // 联系销售申请权限
  345. callToSales(){
  346. if(!this.applyer.hasApply){
  347. this.toApply('auto')
  348. }
  349. uni.makePhoneCall({
  350. phoneNumber: this.salesData.phone,
  351. success: (result) => {},
  352. fail: (error) => {}
  353. })
  354. },
  355. // 搜索内容变化
  356. searchValChange(e){
  357. this.sandTableQuery.keyword=e.detail
  358. // this.sandTableQuery.is_high_light = true
  359. // this.getSandBoxList()
  360. },
  361. // 清除搜索内容
  362. onClearSearch(){
  363. this.sandTableQuery={
  364. page_size: 20,
  365. curr_page: 1,
  366. keyword:'' ,
  367. chart_permission_id: 0,
  368. is_high_light:false
  369. }
  370. this.selectedFirstId = this.selectedSecondId = 0
  371. this.haveShowToast=false
  372. this.getSandBoxList()
  373. },
  374. // 确认搜索
  375. onSearch(){
  376. this.sandTableQuery.chart_permission_id= this.selectedFirstId = this.selectedSecondId = 0
  377. this.sandTableQuery.is_high_light = true
  378. this.haveShowToast=false
  379. this.getSandBoxList()
  380. },
  381. // 选中一级分类
  382. selectFisrtClassify(e){
  383. this.selectedFirstId = e.detail
  384. },
  385. handleSelectPerItem(item){
  386. if(this.selectedSecondId==item.chart_permission_id){
  387. this.sandTableQuery.chart_permission_id=this.selectedSecondId=0
  388. }else{
  389. this.sandTableQuery.chart_permission_id=this.selectedSecondId=item.chart_permission_id
  390. }
  391. this.sandTableQuery.curr_page=1
  392. uni.pageScrollTo({
  393. scrollTop:0,
  394. duration:300
  395. })
  396. this.showFilter=false
  397. this.getSandBoxList()
  398. },
  399. // 预览图片
  400. previewImage(index){
  401. // 先切换横屏才预览图片 ,预览图片开启之后 切换不了横屏
  402. uni.setPageOrientation({orientation : "landscape"}).finally(()=>{
  403. // 在回调函数中 用setTimeout将预览图片的任务 再往后排 不然可能会切换失败
  404. setTimeout(()=>{
  405. uni.previewImage({
  406. urls:this.list.map(item=> item.pic_url),
  407. current:index,
  408. showmenu:false
  409. })
  410. },20)
  411. })
  412. },
  413. // 生成海报
  414. generatePoster(type,item=''){
  415. this.handleCreatePoster(type,item)
  416. },
  417. async handleCreatePoster(type,item){
  418. this.show=true
  419. let code_scene_json = {},source='',parsJson={},code_scene=''
  420. if(type == 'detail'){
  421. // 分享单个
  422. let {chart_permission_id} = item
  423. let first_permission_id = 0
  424. // 通过分享的沙盘图的二级分类Id,找到对应的一级Id
  425. U:for (let item of this.classfyList) {
  426. for (let it of item.list) {
  427. if(it.chart_permission_id == chart_permission_id){
  428. first_permission_id = item.id
  429. break U
  430. }
  431. }
  432. }
  433. code_scene_json={
  434. sandbox_id:item.sandbox_id,
  435. chart_permission_id,
  436. firstClassifyId:first_permission_id
  437. }
  438. code_scene=JSON.stringify(code_scene_json)
  439. source = 'sandbox_detail'
  440. parsJson = {title_1:item.name,img_1:item.pic_url}
  441. }else{
  442. // 分享列表
  443. let {keyword,chart_permission_id,is_high_light} = this.sandTableQuery
  444. let firstImageUrl,secondImageUrl;
  445. if(!this.list || !this.list[0]){
  446. // 分享的列表页一条数据也没有 使用两个默认的沙盘图地址
  447. firstImageUrl = this.globalImgUrls.sandBoxShareDefault1
  448. secondImageUrl = this.globalImgUrls.sandBoxShareDefault2
  449. }else if(!this.list[1]){
  450. // 分享的列表页只有一条数据 第二个图片使用默认的沙盘图地址
  451. firstImageUrl = this.list[0].pic_url
  452. secondImageUrl = this.globalImgUrls.sandBoxShareDefault1
  453. }else{
  454. // 列表页有数据
  455. firstImageUrl = this.list[0].pic_url
  456. secondImageUrl = this.list[1].pic_url
  457. }
  458. code_scene_json={
  459. keyword,
  460. chart_permission_id,
  461. is_high_light,
  462. firstClassifyId:this.selectedFirstId
  463. }
  464. code_scene=JSON.stringify(code_scene_json)
  465. source = 'sandbox_list'
  466. parsJson = {title_1:'沙盘推演',img_1:firstImageUrl,img_2:secondImageUrl}
  467. }
  468. const res=await apiGetPoster({
  469. code_page:'pages-sandTable/sandTable',
  470. code_scene,
  471. source,
  472. pars:JSON.stringify(parsJson),
  473. version:'7.0'
  474. })
  475. if(res.code==200){
  476. this.posterImg=res.data
  477. this.show=false
  478. this.showPoster=true
  479. }else{
  480. this.show=false
  481. }
  482. }
  483. }
  484. }
  485. </script>
  486. <style lang="scss" scoped>
  487. page{
  488. padding-bottom: 0;
  489. // 无权限
  490. .sandTable-noAuthor{
  491. display: flex;
  492. flex-direction: column;
  493. align-items: center;
  494. height: 100vh;
  495. image{
  496. margin-top: 180rpx;
  497. }
  498. text{
  499. font-family: 'PingFang SC';
  500. font-style: normal;
  501. font-weight: 400;
  502. font-size: 28rpx;
  503. color: #999999;
  504. }
  505. .sales-mobile{
  506. color: #E3B377;
  507. }
  508. button{
  509. background: #E6B77D;
  510. border-radius: 4px;
  511. width: 634rpx;
  512. height: 80rpx;
  513. margin-top: 108rpx;
  514. font-family: 'PingFang SC';
  515. font-style: normal;
  516. font-weight: 500;
  517. font-size: 32rpx;
  518. color: #FFFFFF;
  519. }
  520. }
  521. // 搜索区域
  522. .search-wrap{
  523. display: flex;
  524. background-color: white;
  525. padding: 20rpx 34rpx 20rpx 10rpx;
  526. height: 156rpx;
  527. align-items: center;
  528. .filtration-icon-zone{
  529. display: flex;
  530. align-items: center;
  531. image{
  532. width: 52rpx;
  533. height: 52rpx;
  534. }
  535. text{
  536. font-family: 'PingFang SC';
  537. font-style: normal;
  538. font-weight: 400;
  539. font-size: 32rpx;
  540. color: #E3B377;
  541. }
  542. }
  543. }
  544. // 列表区域 无数据
  545. .sandTable-noData{
  546. display: flex;
  547. flex-direction: column;
  548. align-items: center;
  549. height: calc(100vh - 158rpx);
  550. image{
  551. margin-top: 180rpx;
  552. }
  553. text{
  554. margin-top: 48rpx;
  555. font-family: 'PingFang SC';
  556. font-style: normal;
  557. font-weight: 400;
  558. font-size: 28rpx;
  559. color: #999999;
  560. }
  561. }
  562. // 列表区域
  563. .sandTable-box{
  564. padding: 24rpx 34rpx 40rpx 34rpx;
  565. background-color: white;
  566. margin-top: 10rpx;
  567. .sandTable-box-top{
  568. display: flex;
  569. justify-content: space-between;
  570. align-items: center;
  571. margin-bottom: 32rpx;
  572. .sandTable-box-topL{
  573. display: flex;
  574. align-items: center;
  575. .sandTable-tag{
  576. margin-right: 20rpx;
  577. padding: 4rpx 22rpx;
  578. background: #333333;
  579. border-radius: 8rpx 8rpx 8rpx 8rpx;
  580. font-size: 24rpx;
  581. font-family: PingFang SC-Medium, PingFang SC;
  582. font-weight: 500;
  583. color: #E4B478;
  584. display: flex;
  585. align-items: center;
  586. justify-content: center;
  587. }
  588. .sandTable-name{
  589. font-size: 32rpx;
  590. font-family: PingFang SC-Medium, PingFang SC;
  591. font-weight: 500;
  592. color: #333333;
  593. max-width: 390rpx;
  594. }
  595. }
  596. .sandTable-box-topR{
  597. display: flex;
  598. align-items: center;
  599. image{
  600. width: 32rpx;
  601. height: 32rpx;
  602. }
  603. }
  604. }
  605. .sandTable-item{
  606. border: 2rpx solid #C4C4C4;
  607. image{
  608. width: 100%;
  609. height: 480rpx;
  610. }
  611. .sandTable-item-origin{
  612. text-align: right;
  613. padding:0 24rpx 20rpx 0 ;
  614. font-size: 20rpx;
  615. font-family: PingFang SC-Regular, PingFang SC;
  616. font-weight: 400;
  617. color: #666666;
  618. }
  619. }
  620. }
  621. .bottom_text{
  622. display: flex;
  623. justify-content: center;
  624. height: 60rpx;
  625. color: gray;
  626. font-size: 32rpx;
  627. }
  628. // 过滤弹窗
  629. .filter-container{
  630. height: 700rpx;
  631. width: 100vw;
  632. position: relative;
  633. .filter-container-header{
  634. padding: 54rpx 34rpx 20rpx 34rpx;
  635. display: flex;
  636. align-items: center;
  637. justify-content: space-between;
  638. text{
  639. font-size: 32rpx;
  640. font-family: PingFang SC-Medium, PingFang SC;
  641. font-weight: 500;
  642. color: #000000;
  643. }
  644. }
  645. .list-box{
  646. min-height: 30vh;
  647. max-height: 60vh;
  648. .list-item{
  649. display: block;
  650. margin: 10rpx;
  651. height: 76rpx;
  652. line-height: 76rpx;
  653. color: #000;
  654. background: #F6F6F6;
  655. border-radius: 4px 4px 4px 4px;
  656. text-align: center;
  657. }
  658. .list-item-active{
  659. background-color: #FAEEDE;
  660. }
  661. }
  662. button{
  663. position: absolute;
  664. bottom: 0;
  665. height: 80rpx;
  666. width: 100vw;
  667. border-radius: 0;
  668. background-color: #E6B77D;
  669. font-size: 32rpx;
  670. font-family: PingFang SC-Medium, PingFang SC;
  671. font-weight: 500;
  672. color: #FFFFFF;
  673. }
  674. }
  675. // 分享海报
  676. .share-poster-wrap{
  677. .poster-mask{
  678. position: fixed;
  679. left: 0;
  680. top: 0;
  681. right: 0;
  682. bottom: 0;
  683. background: rgba(0, 0, 0, 0.4);
  684. z-index: 998;
  685. }
  686. .loading-box{
  687. background-color: #fff;
  688. position: fixed;
  689. left: 50%;
  690. top: 50%;
  691. z-index: 999;
  692. transform: translate(-50%,-50%);
  693. width: 417rpx;
  694. height: 261rpx;
  695. text-align: center;
  696. padding-top: 80rpx;
  697. font-size: 32rpx;
  698. font-weight: bold;
  699. .load-img{
  700. width: 91rpx;
  701. height: 91rpx;
  702. animation: circle 1s linear infinite;
  703. }
  704. @keyframes circle {
  705. 0%{
  706. transform: rotateZ(0);
  707. }
  708. 100%{
  709. transform: rotateZ(360deg);
  710. }
  711. }
  712. }
  713. .poster-img{
  714. width: 90vw;
  715. display: block;
  716. position: fixed;
  717. left: 50%;
  718. top: 50%;
  719. z-index: 999;
  720. transform: translate(-50%,-50%);
  721. border-radius: 16rpx;
  722. }
  723. }
  724. // 分享图标
  725. .share-icon{
  726. position: fixed;
  727. bottom: 100rpx;
  728. right: 34rpx;
  729. z-index: 50;
  730. width: 76rpx;
  731. height: 76rpx;
  732. }
  733. }
  734. </style>
  735. <style scoped>
  736. /deep/ .van-search__content{background-color:#F6F6F6;
  737. border: 2px solid #E5E5E5;box-sizing: border-box;}
  738. </style>
  739. <style lang='scss'>
  740. .filter-container{
  741. .list-box{
  742. .van-cell__title, .van-cell__value{
  743. flex: none !important;
  744. }
  745. .van-cell:after{
  746. border: none !important;
  747. }
  748. .van-cell__title{
  749. font-size: 14px;
  750. }
  751. .van-hairline--top:after{
  752. border-top-width: 0 !important;
  753. }
  754. }
  755. }
  756. </style>