sandTable.vue 24 KB

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