sandTable.vue 21 KB

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