sandTable.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762
  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. <block v-show="noAuthor ==0 && isFinished">
  33. <view style="height: 2rpx;background-color: #F6F6F6;"></view>
  34. <van-sticky style="background: #fff;">
  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="showFiltration">
  48. <image
  49. src="../static/sandTable/sandTable_filtration.png"
  50. mode="widthFix"
  51. class="menu-icon"/>
  52. <text>筛选</text>
  53. </view>
  54. </view>
  55. </van-sticky>
  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"></image>
  77. <view class="sandTable-item-origin">
  78. 来源:弘则研究
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. </block>
  84. </view>
  85. <!-- 筛选弹窗 -->
  86. <van-popup :show="showFilter" round position="bottom" @close="showFilter = false" z-index="99999">
  87. <view class="filter-container">
  88. <view class="filter-container-header">
  89. <text>全部筛选</text>
  90. <text style="color: #E3B377;" @click="showFilter=false">取消</text>
  91. </view>
  92. <view class="cunstom_dropdown_menu_container">
  93. <view class="cunstom_dropdown_menu" v-for="item in classfyList" :key="item.id"
  94. :style="item.id==selectedFirstId||'height:38rpx'">
  95. <view class="cunstom_dropdown_menu_firstT" @click="selectFisrtClassify(item)">
  96. <text>{{item.classify_name}}</text>
  97. <image src="../static/arrow-right.png" style="width:14rpx ;height: 22rpx;"
  98. :class="{'selected_first': selectedFirstId==item.id}"></image>
  99. </view>
  100. <view class="cunstom_dropdown_item_box">
  101. <view :class="['cunstom_dropdown_item',{'selected_second': selectedSecondId==it.chart_permission_id}]"
  102. v-for="it in item.list" :key='it.chart_permission_id' @click="selectedSecondId=it.chart_permission_id">
  103. <text>{{it.chart_permission_name}}</text>
  104. </view>
  105. </view>
  106. </view>
  107. </view>
  108. <button type="default" @click="classifyFilter">完成</button>
  109. </view>
  110. </van-popup>
  111. <!-- 分享按钮 -->
  112. <image @click="generatePoster('list')" class="share-icon" src="@/static/share-poster-icon.png" mode="aspectFill" v-if="noAuthor==0&&isFinished"/>
  113. <!-- 生成海报弹窗 -->
  114. <div class="share-poster-wrap" @touchmove.prevent>
  115. <div class="poster-mask" v-if="show||showPoster" @click="showPoster=false" @touchmove.prevent></div>
  116. <div class="loading-box" v-if="show">
  117. <img class="load-img" src="../static/loading.png"/>
  118. <div>海报生成中...</div>
  119. </div>
  120. <img v-if="showPoster" class="poster-img" mode="widthFix" :src="posterImg" show-menu-by-longpress />
  121. </div>
  122. </template>
  123. <script>
  124. import {apiSandTableList,apiSandTableDetail} from "../api/sandTable.js"
  125. import {apiReportIndexPageAuthList} from "../api/report.js"
  126. import {apiGetPoster} from "../api/common.js"
  127. import {apiApplyPermission} from "../api/user.js"
  128. export default {
  129. data() {
  130. return {
  131. sandTableQuery:{
  132. page_size: 20,
  133. curr_page: 1,
  134. keyword:'' ,
  135. chart_permission_id: 0,
  136. is_high_light:false // 是否高亮
  137. },
  138. total:0,
  139. isRequseting:false,
  140. showFilter:false,
  141. list:[],
  142. classfyList:[],
  143. selectedFirstId:0,
  144. selectedSecondId:0,
  145. // 确认选中的分类Id
  146. confirmFirstId:0,
  147. confirmSecondId:0,
  148. // 是否显示过全部加载弹窗
  149. haveShowToast:false,
  150. showPoster:false,
  151. show:false,
  152. // 是否请求完成
  153. isFinished:false,
  154. posterImg:'',
  155. // 没有权限 1:立即申请 2:联系销售
  156. noAuthor:0,
  157. // 销售信息
  158. salesData:{
  159. phone:'',
  160. name:''
  161. },
  162. // 申请权限时的用户信息
  163. applyer:{
  164. name:'',
  165. company:'',
  166. // 是否已经申请
  167. hasApply:false,
  168. // 状态
  169. status:''
  170. }
  171. }
  172. },
  173. onLoad(options) {
  174. // 有sandbox_id 说明是单个分享进来的
  175. if(options.sandbox_id){
  176. this.confirmFirstId = options.firstClassifyId || 0
  177. this.confirmSecondId = options.chart_permission_id || 0
  178. this.getSandBoxDetail(options.sandbox_id)
  179. }else{
  180. this.sandTableQuery.keyword = options.keyword || ""
  181. this.confirmFirstId = options.firstClassifyId || 0
  182. this.sandTableQuery.chart_permission_id = this.confirmSecondId = options.chart_permission_id || 0
  183. this.sandTableQuery.is_high_light = options.is_high_light || false
  184. this.getSandBoxList()
  185. }
  186. this.getClassifyList()
  187. },
  188. onShow() {
  189. // 预览图片结束时,会触发onShow,切回竖屏
  190. uni.setPageOrientation({orientation : "portrait"})
  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.confirmFirstId}`
  199. }
  200. },
  201. onPullDownRefresh() {
  202. this.sandTableQuery.curr_page=1
  203. this.sandTableQuery.chart_permission_id=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. // 获取沙盘图数据
  227. getSandBoxList(option){
  228. this.isRequseting=true
  229. apiSandTableList(this.sandTableQuery).then(({data:{list,paging,type,name,mobile,customer_info},code})=>{
  230. if(option == 'stopPullDown'){
  231. uni.stopPullDownRefresh()
  232. }
  233. // 403 没有权限
  234. if(code==403){
  235. this.applyer.name = customer_info.name
  236. this.applyer.company = customer_info.company_name
  237. this.applyer.hasApply = customer_info.has_apply
  238. this.applyer.status = customer_info.status
  239. if(type == 'apply'){
  240. // 申请
  241. this.noAuthor =1
  242. }else{
  243. // 联系销售
  244. this.noAuthor =2
  245. this.salesData.name=name
  246. this.salesData.phone=mobile
  247. }
  248. return
  249. }
  250. if(this.sandTableQuery.curr_page==1){
  251. this.list = list
  252. this.total = paging.totals
  253. }else{
  254. this.list = [...this.list,...list]
  255. }
  256. this.noAuthor=0
  257. })
  258. .finally(res=>{
  259. this.isRequseting=false
  260. this.isFinished=true
  261. this.showFilter=false
  262. })
  263. },
  264. getSandBoxDetail(sandbox_id){
  265. this.isRequseting=true
  266. apiSandTableDetail({sandbox_id}).then(({data,code})=>{
  267. if(code==403){
  268. this.applyer.name = data.customer_info.name
  269. this.applyer.company = data.customer_info.company_name
  270. this.applyer.hasApply = data.customer_info.has_apply
  271. this.applyer.status = data.customer_info.status
  272. if(data.type == 'apply'){
  273. // 申请
  274. this.noAuthor =1
  275. }else{
  276. // 联系销售
  277. this.noAuthor =2
  278. this.salesData.name=data.name
  279. this.salesData.phone=data.mobile
  280. }
  281. return
  282. }
  283. this.list= [data]
  284. this.noAuthor=0
  285. })
  286. .finally(res=>{
  287. this.isRequseting=false
  288. this.isFinished=true
  289. this.showFilter=false
  290. })
  291. },
  292. // 获取分类数据
  293. getClassifyList(){
  294. apiReportIndexPageAuthList().then(({data:{permission_list}})=>{
  295. // 过滤掉'更多报告' 和 没有权限的分类
  296. this.classfyList = permission_list.filter(item => item.sort!=100000)
  297. this.classfyList.forEach(item=>{
  298. item.list=item.list.filter(it=>it.auth_ok)
  299. })
  300. this.classfyList=this.classfyList.filter(item=>item.list.length!=0)
  301. if(this.classfyList.length==0) return
  302. if(this.confirmSecondId == 0){
  303. // 不是通过分享进来的页面,或者分享过来的参数没有分类Id
  304. this.selectedFirstId = this.confirmFirstId = this.classfyList[0].id
  305. this.selectedSecondId = this.confirmSecondId = this.classfyList[0].list[0].chart_permission_id
  306. }
  307. })
  308. },
  309. // 权限申请
  310. toApply(type=''){
  311. if(type=='auto'){
  312. apiApplyPermission({
  313. company_name:this.applyer.company,
  314. real_name:this.applyer.name,
  315. source:7,
  316. from_page:'沙盘推演',
  317. }).then(res=>{
  318. console.log('自动申请成功');
  319. })
  320. }else{
  321. if(this.applyer.status==='流失'){
  322. apiApplyPermission({
  323. company_name:this.applyer.company,
  324. real_name:this.applyer.name,
  325. source:7,
  326. from_page:'沙盘推演',
  327. }).then(res=>{
  328. uni.navigateTo({url:'/pages-applyPermission/applyResult'})
  329. })
  330. }else{
  331. uni.navigateTo({ url: '/pages-applyPermission/applyPermission?source=7&from_page=沙盘推演' })
  332. }
  333. }
  334. },
  335. // 联系销售申请权限
  336. callToSales(){
  337. if(!this.applyer.hasApply){
  338. this.toApply('auto')
  339. }
  340. uni.makePhoneCall({
  341. phoneNumber: this.salesData.phone,
  342. success: (result) => {},
  343. fail: (error) => {}
  344. })
  345. },
  346. // 搜索内容变化
  347. searchValChange(e){
  348. this.sandTableQuery.keyword=e.detail
  349. // this.sandTableQuery.is_high_light = true
  350. // this.getSandBoxList()
  351. },
  352. // 清除搜索内容
  353. onClearSearch(){
  354. this.sandTableQuery={
  355. page_size: 20,
  356. curr_page: 1,
  357. keyword:'' ,
  358. chart_permission_id: 0,
  359. is_high_light:false
  360. }
  361. this.haveShowToast=false
  362. this.getSandBoxList()
  363. },
  364. // 确认搜索
  365. onSearch(){
  366. this.sandTableQuery.chart_permission_id=0
  367. this.sandTableQuery.is_high_light = true
  368. this.haveShowToast=false
  369. this.getSandBoxList()
  370. },
  371. // 打开筛选
  372. showFiltration(){
  373. // 选中上次确认筛选的选项
  374. this.selectedFirstId = this.confirmFirstId
  375. this.selectedSecondId = this.confirmSecondId
  376. this.showFilter = true
  377. },
  378. // 分类筛选
  379. classifyFilter(){
  380. this.confirmFirstId = this.selectedFirstId
  381. this.confirmSecondId = this.selectedSecondId
  382. this.sandTableQuery.chart_permission_id = this.selectedSecondId
  383. this.sandTableQuery.curr_page=1
  384. uni.pageScrollTo({
  385. scrollTop:0,
  386. duration:300
  387. })
  388. this.haveShowToast=false
  389. this.getSandBoxList()
  390. },
  391. // 选中一级分类
  392. selectFisrtClassify(item){
  393. this.selectedFirstId=(this.selectedFirstId == item.id?0:item.id)
  394. // 选中个第一分类的第一个二级分类
  395. this.selectedSecondId = item.list[0].chart_permission_id
  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.confirmFirstId}}}`
  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. // 过滤弹窗
  609. .filter-container{
  610. height: 700rpx;
  611. width: 100vw;
  612. position: relative;
  613. .filter-container-header{
  614. padding: 54rpx 34rpx 20rpx 34rpx;
  615. display: flex;
  616. align-items: center;
  617. justify-content: space-between;
  618. text{
  619. font-size: 32rpx;
  620. font-family: PingFang SC-Medium, PingFang SC;
  621. font-weight: 500;
  622. color: #000000;
  623. }
  624. }
  625. .cunstom_dropdown_menu_container{
  626. overflow-y: auto;
  627. height: 424rpx;
  628. margin: 40rpx 0;
  629. padding: 0 34rpx;
  630. .cunstom_dropdown_menu{
  631. margin-bottom: 40rpx;
  632. overflow: hidden;
  633. .cunstom_dropdown_menu_firstT{
  634. display: flex;
  635. align-items: center;
  636. text{
  637. margin-right: 14rpx;
  638. font-size: 28rpx;
  639. font-family: PingFang SC-Medium, PingFang SC;
  640. font-weight: 500;
  641. color: #333333;
  642. }
  643. image{
  644. transform: rotate(0);
  645. transition: all linear 0.1s;
  646. }
  647. .selected_first{
  648. transform: rotate(90deg);
  649. }
  650. }
  651. .cunstom_dropdown_item_box{
  652. display: flex;
  653. align-items: center;
  654. justify-content: space-between;
  655. margin-top: 30rpx;
  656. flex-wrap: wrap;
  657. .cunstom_dropdown_item{
  658. min-width: 216rpx;
  659. min-height: 76rpx;
  660. padding: 10rpx;
  661. background: #F6F6F6;
  662. border-radius: 8rpx 8rpx 8rpx 8rpx;
  663. display: flex;
  664. align-items: center;
  665. justify-content: center;
  666. margin-bottom: 18rpx;
  667. text{
  668. font-size: 28rpx;
  669. font-family: PingFang SC-Regular, PingFang SC;
  670. font-weight: 400;
  671. color: #000000;
  672. word-break: break-all;
  673. }
  674. }
  675. .selected_second{
  676. background-color: #FAEEDE;
  677. }
  678. }
  679. }
  680. }
  681. button{
  682. position: absolute;
  683. bottom: 0;
  684. height: 80rpx;
  685. width: 100vw;
  686. border-radius: 0;
  687. background-color: #E6B77D;
  688. font-size: 32rpx;
  689. font-family: PingFang SC-Medium, PingFang SC;
  690. font-weight: 500;
  691. color: #FFFFFF;
  692. }
  693. }
  694. // 分享海报
  695. .share-poster-wrap{
  696. .poster-mask{
  697. position: fixed;
  698. left: 0;
  699. top: 0;
  700. right: 0;
  701. bottom: 0;
  702. background: rgba(0, 0, 0, 0.4);
  703. z-index: 998;
  704. }
  705. .loading-box{
  706. background-color: #fff;
  707. position: fixed;
  708. left: 50%;
  709. top: 50%;
  710. z-index: 999;
  711. transform: translate(-50%,-50%);
  712. width: 417rpx;
  713. height: 261rpx;
  714. text-align: center;
  715. padding-top: 80rpx;
  716. font-size: 32rpx;
  717. font-weight: bold;
  718. .load-img{
  719. width: 91rpx;
  720. height: 91rpx;
  721. animation: circle 1s linear infinite;
  722. }
  723. @keyframes circle {
  724. 0%{
  725. transform: rotateZ(0);
  726. }
  727. 100%{
  728. transform: rotateZ(360deg);
  729. }
  730. }
  731. }
  732. .poster-img{
  733. width: 90vw;
  734. display: block;
  735. position: fixed;
  736. left: 50%;
  737. top: 50%;
  738. z-index: 999;
  739. transform: translate(-50%,-50%);
  740. border-radius: 16rpx;
  741. }
  742. }
  743. // 分享图标
  744. .share-icon{
  745. position: fixed;
  746. bottom: 100rpx;
  747. right: 34rpx;
  748. z-index: 50;
  749. width: 76rpx;
  750. height: 76rpx;
  751. }
  752. }
  753. </style>
  754. <style scoped>
  755. /deep/ .van-search__content{background-color:#F6F6F6;
  756. border: 2px solid #E5E5E5;box-sizing: border-box;}
  757. </style>