tasksquare.vue 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453
  1. <template>
  2. <view class="nav">
  3. <view class="bg_box" style="background-color: #FFFFFF;" :style="{
  4. backgroundImage: mysNavConfig.bgImage,
  5. paddingTop: navBarTop,
  6. height: navBarHeight,
  7. opacity: opacity,
  8. }" :class="{ fixed: mysNavConfig.navFixed }"></view>
  9. <view class="mys_navBar" :style="{
  10. paddingTop: navBarTop,
  11. height: navBarHeight,
  12. paddingRight: navBarRight,
  13. }" :class="{ fixed: mysNavConfig.navFixed }">
  14. <!-- 左slot -->
  15. <view class="my_left_custom" :style="{ height: btnHeight }">
  16. <slot name="left"></slot>
  17. </view>
  18. <view class="btn_type" :style="{ height: btnHeight }">
  19. <view class="btn_box nav_btn_t1" :style="{
  20. width: btnWidth,
  21. height: btnHeight,
  22. marginLeft: navBarLeft,
  23. borderRadius: mysNavConfig.type2Config.radius,
  24. }">
  25. <view class="btn_back" @tap="onLeftClick()">
  26. <image class="nv_icon" :src="mysNavConfig.type2Config.leftPath"
  27. :style="{ height: btnHeight, width: iconW }" mode="aspectFit" />
  28. </view>
  29. <view class="line"></view>
  30. <view class="btn_home" @tap="onLeftHome('top')">
  31. <image class="nv_icon" :src="mysNavConfig.type2Config.rightPath"
  32. :style="{ height: btnHeight, width: iconW }" mode="aspectFit" />
  33. </view>
  34. </view>
  35. <!-- 标题 -->
  36. <view class="title_container" v-if="!mysNavConfig.searchConfig"
  37. :style="{ top: navBarTop, height: btnHeight }">
  38. <text class="title_text" v-if="!!mysNavConfig.navTitle" :style="{
  39. color: mysNavConfig.navTitle.color,
  40. fontSize: mysNavConfig.navTitle.fontSize,
  41. fontWeight: mysNavConfig.navTitle.fontWeight,
  42. }">{{ mysNavConfig.navTitle.text }}</text>
  43. <slot name="center2"></slot>
  44. </view>
  45. </view>
  46. </view>
  47. <aTip text="点击添加到我的小程序 \n下次访问更方便哦!" isCustom="true" />
  48. <view :style="{marginTop:navH}"></view>
  49. <view class="home">
  50. <view>
  51. <!-- 普通弹窗 -->
  52. <uni-popup ref="popup" background-color="#fff" @change="change">
  53. <view class="popup-content" :class="{ 'popup-height': type === 'left' || type === 'right' }">
  54. <view class="option1" style="margin-top: 20%;">
  55. <h3 style="margin-bottom: 10rpx;">社媒平台</h3>
  56. <uni-data-checkbox mode="tag" multiple v-model="formData.hobby" :localdata="hobby">
  57. </uni-data-checkbox>
  58. </view>
  59. <view class="option2">
  60. <h3 style="margin-bottom: 10rpx;">稿费形式</h3>
  61. <uni-data-checkbox mode="tag" multiple v-model="formData.hobby1" :localdata="hobby1">
  62. </uni-data-checkbox>
  63. </view>
  64. <view class="option3">
  65. <h3 style="margin-bottom: 10rpx;">任务形式</h3>
  66. <uni-data-checkbox mode="tag" multiple v-model="formData.hobby2" :localdata="hobby2">
  67. </uni-data-checkbox>
  68. </view>
  69. <view class="butto">
  70. <button class="mini-btn" size="mini" @tap="Reset">重置</button>
  71. <button class="mini-btn" size="mini" @tap="determine">确定</button>
  72. </view>
  73. </view>
  74. </uni-popup>
  75. </view>
  76. <!-- <view class="imge">
  77. <image src="../../static/home/home1.png" mode=""></image>
  78. </view> -->
  79. <view class="uni-margin-wrap">
  80. <swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay"
  81. :interval="interval" :duration="duration">
  82. <swiper-item v-for="item in list1" @click="pick(item)">
  83. <image :src="item.img" mode="scaleToFill" style="width: 100%;height: 100%;"></image>
  84. </swiper-item>
  85. </swiper>
  86. </view>
  87. <view class="commodity" style="margin-top: 3%;">
  88. <view class="project" v-for="(item,index) in projectList" :key="index" @tap="project(item)">
  89. <view class="projectdiagram" :style="{backgroundImage:`url(${item.coverphoto})`}">
  90. <view class="Mask" v-if="item.ddl">
  91. <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home4.png" mode="">
  92. </image>
  93. </view>
  94. <view style="padding-left: 4%;padding-top: 2%;">
  95. </view>
  96. </view>
  97. <view class="projecttext">
  98. <image :src="item.project_imgper" mode=""></image>
  99. <span>{{item.project_name|ellipsis}}</span>
  100. </view>
  101. <view style="padding-left: 1%;">
  102. <view class="TitleText" v-if="item.isself===1">
  103. <p>自报价</p>
  104. </view>
  105. <view class="TitleText" v-if="item.isfixedfee===1">
  106. <p>固定稿费</p>
  107. </view>
  108. <view class="TitleText" v-if="item.project_form===3">
  109. <p>线下探店</p>
  110. </view>
  111. </view>
  112. <view class="introduction">
  113. <view class="rleft" style="">
  114. <p>商品价值: <span
  115. style="color: red;font-weight: 600;">¥{{item.ProductInfo.ProductPrice}}</span></p>
  116. </view>
  117. <view class="rright" style="display: flex;justify-content:space-between;">
  118. <p>招募人数: <span style="color: balck;font-weight: 600;">{{item.taskNum}}</span></p>
  119. <p>报名人数: <span style="color: balck;font-weight: 600;">{{item.apply_num}}</span>
  120. </p>
  121. </view>
  122. </view>
  123. </view>
  124. </view>
  125. </view>
  126. <!-- 普通弹窗 公众号-->
  127. <uni-popup ref="popup4" class="share" background-color="#fff" @change="change" :maskClick="false">
  128. <view class="popup-content" :class="{ 'popup-height': type === 'left' || type === 'right' }">
  129. <view class="sharepage">
  130. <view class="projecttext1">
  131. <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/younggee_logo.png"
  132. style="width: 250rpx; height: 80rpx;" mode=""></image>
  133. <!-- <span>YoungGee</span> -->
  134. </view>
  135. <view class="sharemap">
  136. <image :src="kefuUrl" style="width: 400rpx;height: 400rpx;" mode=""></image>
  137. </view>
  138. <view style="margin: 30rpx 0;">
  139. <button class="butmin1" size="mini" @tap="saveImage">保存二维码</button>
  140. </view>
  141. <view class="sharetxt">
  142. <text>
  143. 使用样叽的过程中,有任何疑问,\n
  144. 请添加上方微信。\n
  145. 我们保证及时全力为您解决!
  146. </text>
  147. </view>
  148. <view style="margin: 30rpx 0;">
  149. <button class="butmin" size="mini" @tap="closepop">知道了</button>
  150. </view>
  151. </view>
  152. </view>
  153. </uni-popup>
  154. <view class="contact" @click="toggle4('center')">
  155. <view class="contt">
  156. <!-- <image class="img2" src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home2.png" mode=""></image> -->
  157. <image class="img1"
  158. src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/kefu_20211124192542.png" mode="">
  159. </image>
  160. </view>
  161. </view>
  162. </view>
  163. </template>
  164. <script>
  165. import aTip from "@/components/mys-tip_1.0.01/a_tip/aTip";
  166. import request from '@/components/request.js';
  167. import {
  168. saveImageToPhotosAlbum,
  169. showToast,
  170. downloadFile
  171. } from '@/uni_modules/sakura-canvas/js_sdk/util'
  172. /* 默认首页路径 */
  173. const homePath = "/pages/pupu/pupudao";
  174. /* 默认首页图标路径 */
  175. const homeIconPath = "/static/img/png4.png";
  176. /* 默认返回图标路径 */
  177. const backIconPath = "/static/img/png2.png";
  178. export default {
  179. props: {
  180. mysNavConfig: {
  181. type: Object,
  182. default () {
  183. return {
  184. /* 固定导航 */
  185. navFixed: true,
  186. /* 开启单页显示首页图标 */
  187. isHome: true,
  188. /* 占位开启 */
  189. navPadding: true,
  190. /* 背景 */
  191. bgColor: "#f8f8f8",
  192. /* 渐变色 */
  193. opacity: 1,
  194. /* 渐变开启 */
  195. isOpacity: false,
  196. /* 渐变延时效果 */
  197. opacityTime: 100,
  198. /* 左侧按钮样式 可选 type1 type2 (type2根据小程序胶囊位置调整) */
  199. btnType: "type1",
  200. /* type1 左侧文字配置 */
  201. leftText: {
  202. text: "",
  203. color: "",
  204. fontSize: "16px", // px upx rpx
  205. fontWeight: "", // blod
  206. },
  207. /* 标题 */
  208. navTitle: {
  209. text: "首页",
  210. color: "",
  211. fontSize: "32rpx", // px upx rpx
  212. fontWeight: "normal", // blod
  213. },
  214. /* type2 按钮 */
  215. type2Config: {
  216. // 左图标
  217. leftPath: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/png3.png",
  218. // 右图标
  219. rightPath: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/png1.png",
  220. // 圆角
  221. radius: "40rpx",
  222. },
  223. };
  224. },
  225. },
  226. scrollTop: {
  227. type: Number,
  228. default: function() {
  229. return 0;
  230. },
  231. },
  232. },
  233. filters: {
  234. ellipsis(value) {
  235. if (!value) return "";
  236. if (value.length > 20) {
  237. return value.slice(0, 20) + "...";
  238. }
  239. return value;
  240. },
  241. },
  242. components: {
  243. aTip
  244. },
  245. data() {
  246. return {
  247. kefuUrl: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/kefu.jpeg",
  248. navH: getApp().globalData.navHeight,
  249. token: '',
  250. per: 0,
  251. type4: 'center',
  252. //轮播图
  253. img: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home1.png',
  254. background: ['color1', 'color2', 'color3'],
  255. indicatorDots: true,
  256. autoplay: true,
  257. interval: 3000,
  258. duration: 1000,
  259. list1: [{
  260. img: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home1.png',
  261. name: '/pages/tasksquare/guide'
  262. },
  263. {
  264. img: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home7.png',
  265. name: '/pages/tasksquare/cooperation'
  266. // name: 'http://www.baidu.com/'
  267. }
  268. // {
  269. // img: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent_upload/guanwang.png',
  270. // name: '/pages/tasksquare/guanwang'
  271. // // name: 'http://www.baidu.com/'
  272. // }
  273. ],
  274. //弹窗
  275. type: 'center',
  276. formData: {
  277. hobby: [],
  278. hobby1: [],
  279. hobby2: [],
  280. },
  281. hobby: [{
  282. text: '小红书',
  283. value: 1
  284. }, {
  285. text: '抖音',
  286. value: 2
  287. }, {
  288. text: '微博',
  289. value: 3
  290. }, {
  291. text: '快手',
  292. value: 4
  293. }, {
  294. text: 'B站',
  295. value: 5
  296. }, {
  297. text: '大众点评',
  298. value: 6
  299. }, {
  300. text: '知乎',
  301. value: 7
  302. }],
  303. hobby1: [{
  304. text: '产品置换',
  305. value: 1
  306. }, {
  307. text: '固定稿费',
  308. value: 2
  309. }, {
  310. text: '自报价',
  311. value: 3
  312. }],
  313. hobby2: [{
  314. text: '实体商品寄拍',
  315. value: 1
  316. }, {
  317. text: '虚拟产品测评',
  318. value: 2
  319. }, {
  320. text: '线下探店打卡',
  321. value: 3
  322. }],
  323. iconW: undefined,
  324. iconH: undefined,
  325. btnWidth: undefined,
  326. btnHeight: undefined,
  327. navBarTop: undefined,
  328. navBarHeight: undefined,
  329. navBarLeft: undefined,
  330. navBarRight: undefined,
  331. inputHeight: undefined,
  332. opacity: 0,
  333. isHome: false,
  334. homeIconPath: homeIconPath,
  335. backIconPath: backIconPath,
  336. img: '../../static/home/home.png',
  337. // 最多显示页数
  338. max_page: '',
  339. tupian: {
  340. wen: '原创图片',
  341. lin: 1,
  342. },
  343. projectList: [],
  344. img456: '../../static/home/home.png',
  345. platformList: [],
  346. filtCondition: '',
  347. };
  348. },
  349. computed: {
  350. isSharePage() {},
  351. },
  352. watch: {
  353. scrollTop(val) {
  354. if (!this.mysNavConfig.isOpacity) {
  355. return;
  356. }
  357. this.setOpacity(val, this.mysNavConfig.opacityTime);
  358. },
  359. },
  360. onShow() {
  361. this.isLogin()
  362. },
  363. onLoad() {
  364. this.getInfoList()
  365. this.per = 0
  366. this.getProjectListAPI()
  367. },
  368. //下拉刷新
  369. onPullDownRefresh() {
  370. this.per = 0
  371. this.getProjectListAPI()
  372. //停止下拉刷新
  373. uni.stopPullDownRefresh()
  374. },
  375. // 下拉懒加载
  376. async onReachBottom() {
  377. ++this.per;
  378. if (this.per >= this.max_page) {
  379. uni.showToast({
  380. title: "已加载全部"
  381. })
  382. } else {
  383. uni.showLoading({
  384. title: '加载中'
  385. })
  386. await this.$http.get('/youngee/c/g/get-project-list' +
  387. "?" +
  388. "idx" +
  389. "=" +
  390. this.per +
  391. "&cnt" +
  392. "=" +
  393. 20 + this.filtCondition
  394. ).then(res => {
  395. console.log(res)
  396. this.max_page = res.data.data.max_page
  397. for (var i = 0; i < res.data.data.ProjectInfos.length; i++) {
  398. // 封面图片
  399. res.data.data.ProjectInfos[i].ProductInfo = JSON.parse(res.data.data.ProjectInfos[i]
  400. .product_snap);
  401. // 封面图片
  402. let ProductPhoto = JSON.parse(res.data.data.ProjectInfos[i].product_photo_snap);
  403. for (let j = 0; j < ProductPhoto.length; ++j) {
  404. if (ProductPhoto[j].Symbol == 1) {
  405. res.data.data.ProjectInfos[i].coverphoto = ProductPhoto[j].PhotoUrl
  406. }
  407. }
  408. // res.data.data.ProjectInfos[i].coverphoto = res.data.data.ProjectInfos[i]
  409. // .ProductInfo
  410. // .ProductCovers.photo_url
  411. // 获取平台图片
  412. for (var j = 0; j < this.platformList.length; j++) {
  413. if (res.data.data.ProjectInfos[i].project_platform === this.platformList[j]
  414. .id) {
  415. res.data.data.ProjectInfos[i].project_imgper = this.platformList[j]
  416. .platform_icon
  417. }
  418. }
  419. // 任务数量&稿费形式
  420. res.data.data.ProjectInfos[i].taskNum = 0
  421. res.data.data.ProjectInfos[i].isfixedfee = 0
  422. res.data.data.ProjectInfos[i].isself = 0
  423. let lengthOfRecruitStrategys = res.data.data.ProjectInfos[i]
  424. .RecruitStrategys != null ? res.data.data.ProjectInfos[i]
  425. .RecruitStrategys
  426. .length : 0
  427. for (var j = 0; j < lengthOfRecruitStrategys; j++) {
  428. res.data.data.ProjectInfos[i].taskNum = Number(res.data.data
  429. .ProjectInfos[i]
  430. .taskNum) + Number(res.data.data.ProjectInfos[i]
  431. .RecruitStrategys[j]
  432. .recruit_number)
  433. if (res.data.data.ProjectInfos[i].RecruitStrategys[j].fee_form === 2) {
  434. res.data.data.ProjectInfos[i].isfixedfee = 1
  435. }
  436. if (res.data.data.ProjectInfos[i].RecruitStrategys[j].fee_form === 3) {
  437. res.data.data.ProjectInfos[i].isself = 1
  438. }
  439. }
  440. //结束时间
  441. var newdate = new Date()
  442. // console.log(newdate)
  443. var endTime = new Date(res.data.data.ProjectInfos[i].recruit_ddl.replace(
  444. /-/g, "/"));
  445. res.data.data.ProjectInfos[i].ddl = endTime - newdate < 0 || res.data.data
  446. .ProjectInfos[i]
  447. .project_status > 4 ? 1 : 0
  448. res.data.data.ProjectInfos[i].recruit_ddl = this.thistime(res.data.data
  449. .ProjectInfos[i]
  450. .recruit_ddl)
  451. }
  452. this.projectList.push.apply(this.projectList, res.data.data.ProjectInfos);
  453. console.log(this.projectList)
  454. })
  455. uni.hideLoading();
  456. }
  457. },
  458. methods: {
  459. getProjectListAPI() {
  460. return this.$http.get('/youngee/c/g/get-project-list' +
  461. "?" +
  462. "idx" +
  463. "=" +
  464. this.per +
  465. "&cnt" +
  466. "=" +
  467. 20 + this.filtCondition
  468. ).then(res => {
  469. console.log(res)
  470. if (res.data.code === 0) {
  471. for (var i = 0; i < res.data.data.ProjectInfos.length; i++) {
  472. res.data.data.ProjectInfos[i].ProductInfo = JSON.parse(res.data.data.ProjectInfos[i]
  473. .product_snap);
  474. // 封面图片
  475. let ProductPhoto = JSON.parse(res.data.data.ProjectInfos[i].product_photo_snap);
  476. for (let j = 0; j < ProductPhoto.length; ++j) {
  477. if (ProductPhoto[j].Symbol == 1) {
  478. res.data.data.ProjectInfos[i].coverphoto = ProductPhoto[j].PhotoUrl
  479. }
  480. }
  481. // res.data.data.ProjectInfos[i].coverphoto = res.data.data.ProjectInfos[i]
  482. // .ProductInfo
  483. // .ProductCovers.photo_url
  484. // 获取平台图片
  485. for (var j = 0; j < this.platformList.length; j++) {
  486. if (res.data.data.ProjectInfos[i].project_platform === this.platformList[j]
  487. .id) {
  488. res.data.data.ProjectInfos[i].project_imgper = this.platformList[j]
  489. .platform_icon
  490. }
  491. }
  492. // 任务数量&稿费形式
  493. res.data.data.ProjectInfos[i].taskNum = 0
  494. res.data.data.ProjectInfos[i].isfixedfee = 0
  495. res.data.data.ProjectInfos[i].isself = 0
  496. let lengthOfRecruitStrategys = res.data.data.ProjectInfos[i]
  497. .RecruitStrategys != null ? res.data.data.ProjectInfos[i]
  498. .RecruitStrategys
  499. .length : 0
  500. for (var j = 0; j < lengthOfRecruitStrategys; j++) {
  501. res.data.data.ProjectInfos[i].taskNum = Number(res.data.data
  502. .ProjectInfos[i]
  503. .taskNum) + Number(res.data.data.ProjectInfos[i]
  504. .RecruitStrategys[j]
  505. .recruit_number)
  506. if (res.data.data.ProjectInfos[i].RecruitStrategys[j].fee_form === 2) {
  507. res.data.data.ProjectInfos[i].isfixedfee = 1
  508. }
  509. if (res.data.data.ProjectInfos[i].RecruitStrategys[j].fee_form === 3) {
  510. res.data.data.ProjectInfos[i].isself = 1
  511. }
  512. }
  513. //结束时间
  514. var newdate = new Date()
  515. // console.log(newdate)
  516. var endTime = new Date(res.data.data.ProjectInfos[i].recruit_ddl.replace(
  517. /-/g, "/"));
  518. res.data.data.ProjectInfos[i].ddl = endTime - newdate < 0 || res.data.data
  519. .ProjectInfos[i]
  520. .project_status > 4 ? 1 : 0
  521. res.data.data.ProjectInfos[i].recruit_ddl = this.thistime(res.data.data
  522. .ProjectInfos[i]
  523. .recruit_ddl)
  524. }
  525. this.max_page = res.data.data.max_page
  526. this.projectList = res.data.data.ProjectInfos;
  527. } else if (res.data.code === -4) {
  528. uni.showToast({
  529. title: "暂无任务"
  530. })
  531. this.max_page = 1
  532. this.projectList = []
  533. } else {
  534. uni.showToast({
  535. title: res.data.msg
  536. })
  537. this.max_page = 1
  538. this.projectList = []
  539. }
  540. })
  541. },
  542. // 判断登陆是否过期
  543. isLogin() {
  544. return this.$https.get('/youngee/c/t/g/is-login')
  545. .then(res => {
  546. if (res.data.code === 403) {
  547. // 登陆已失效
  548. this.token = ""
  549. uni.clearStorage();
  550. } else {
  551. this.token = uni.getStorageSync('token')
  552. }
  553. })
  554. },
  555. // 信息表
  556. getInfoList() {
  557. return this.$http.get('/youngee/c/g/get-info-tables')
  558. .then(res => {
  559. this.hobby = []
  560. this.platformList = res.data.data.ThirdPlatform
  561. let l = this.platformList != null ? this.platformList.length : 0;
  562. for (var i = 0; i < l; i++) {
  563. var obj = {}
  564. obj.text = this.platformList[i].platform_name
  565. obj.value = this.platformList[i].id
  566. this.hobby.push(obj)
  567. }
  568. })
  569. },
  570. guid() {
  571. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
  572. var r = Math.random() * 16 | 0,
  573. v = c === 'x' ? r : (r & 0x3 | 0x8);
  574. return v.toString(16);
  575. });
  576. },
  577. // 计算结束时间
  578. thistime(val) {
  579. // 转换格式
  580. var beginTime = new Date(val.replace(/-/g, "/"));
  581. // 当前时间
  582. var thisTime = new Date();
  583. // 相减
  584. var dateMiss = beginTime.getTime() - thisTime.getTime();
  585. // 天数
  586. var day = Math.floor(dateMiss / (24 * 3600 * 1000));
  587. // 减去天数剩下的毫秒数
  588. var backOne = dateMiss % (24 * 3600 * 1000);
  589. // 小时数
  590. var hours = Math.floor(backOne / (3600 * 1000));
  591. var deadline_time = '',
  592. deadline_time = day + '天' + hours + '时结束'
  593. return deadline_time
  594. },
  595. // 登录页面
  596. deng() {
  597. uni.navigateTo({
  598. url: '../index/login'
  599. });
  600. },
  601. pick(item) {
  602. console.log(item)
  603. uni.navigateTo({
  604. url: item.name
  605. });
  606. },
  607. //弹出层
  608. change(e) {
  609. console.log('当前模式:' + e.type + ',状态:' + e.show);
  610. },
  611. async determine() {
  612. this.per = 0;
  613. this.$refs.popup.close()
  614. var filtCondition = ''
  615. for (var i = 0; i < this.formData.hobby.length; i++) {
  616. filtCondition += "&platform[]" + "=" + this.formData.hobby[i]
  617. }
  618. for (var j = 0; j < this.formData.hobby1.length; j++) {
  619. filtCondition += "&feeform[]" + "=" + this.formData.hobby1[j]
  620. }
  621. for (var j = 0; j < this.formData.hobby2.length; j++) {
  622. filtCondition += "&projectform[]" + "=" + this.formData.hobby2[j]
  623. }
  624. this.filtCondition = filtCondition
  625. uni.showLoading({
  626. title: '加载中'
  627. });
  628. await this.getProjectListAPI()
  629. uni.hideLoading();
  630. },
  631. async Reset() {
  632. this.per = 0;
  633. this.$refs.popup.close()
  634. this.formData.hobby = [];
  635. this.formData.hobby1 = [];
  636. this.formData.hobby2 = [];
  637. this.filtCondition = '';
  638. uni.showLoading({
  639. title: '加载中'
  640. });
  641. await this.getProjectListAPI()
  642. uni.hideLoading();
  643. },
  644. toggle4(type) {
  645. this.type4 = type
  646. // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
  647. this.$refs.popup4.open(type)
  648. // this.$refs.popup1.close()
  649. },
  650. // 保存图片
  651. async saveImage() {
  652. // showToast('保存成功')
  653. wx.downloadFile({
  654. url: this.kefuUrl,
  655. success: function(res) {
  656. wx.saveImageToPhotosAlbum({
  657. filePath: res.tempFilePath,
  658. success: function(data) {
  659. wx.showToast({
  660. title: "保存成功",
  661. icon: "success",
  662. duration: 2000
  663. })
  664. },
  665. fail: function(err) {
  666. console.log(err);
  667. },
  668. complete(res) {
  669. console.log(res);
  670. }
  671. })
  672. }
  673. })
  674. },
  675. closepop() {
  676. this.$refs.popup4.close()
  677. },
  678. xieyi() {
  679. console.log('进入联系我们')
  680. },
  681. go(url) {
  682. uni.navigateTo({
  683. url: url,
  684. });
  685. },
  686. init() {
  687. if (this.mysNavConfig.isHome) {
  688. let pages = getCurrentPages().length;
  689. /* 单页显示home图标 */
  690. pages === 1 ? (this.isHome = true) : (this.isHome = false);
  691. }
  692. // 开启渐变 强制fixed
  693. this.navBarTop = uni.getSystemInfoSync().statusBarHeight +
  694. "px";
  695. if (!this.mysNavConfig.opacity) {
  696. this.opacity = 1;
  697. !this.mysNavConfig.isOpacity ? (this.opacity = 1) : ((this
  698. .mysNavConfig.navFixed = true), (this
  699. .opacity = 0));
  700. } else {
  701. this.opacity = this.mysNavConfig.opacity;
  702. !this.mysNavConfig.isOpacity ? "" : ((this.mysNavConfig
  703. .navFixed = true), (this.opacity = 0));
  704. }
  705. // #ifdef MP
  706. this.initMP();
  707. // #endif
  708. // #ifdef APP-PLUS-NVUE
  709. this.navBarHeight = 44 + uni.getSystemInfoSync()
  710. .statusBarHeight + "px";
  711. // #endif
  712. },
  713. /* 小程序初始化位置 */
  714. initMP() {
  715. // getSystemInfoSync用于获取系统信息同步接口
  716. let gS = uni.getSystemInfoSync();
  717. // getMenuButtonBoundingClientRect用于获取胶囊按钮位置布局信息
  718. let rect = uni.getMenuButtonBoundingClientRect();
  719. let rectHeight = rect.height;
  720. this.btnWidth = rect.width + "px";
  721. this.btnHeight = rectHeight + "px";
  722. this.iconW = Math.floor(rect.width / 4 - 5) + "px";
  723. this.iconH = rectHeight / 2 + "px";
  724. this.inputHeight = rectHeight - 3 + "px";
  725. this.navBarTop = rect.top + "px";
  726. this.navBarLeft = gS.screenWidth - rect.right + "px";
  727. this.navBarRight = gS.screenWidth - rect.right + rect.width +
  728. "px";
  729. this.navBarHeight = gS.statusBarHeight + rectHeight + (rect
  730. .top - gS.statusBarHeight) * 2 + "px";
  731. },
  732. /* 点击左侧 */
  733. onLeftClick() {
  734. uni.navigateTo({
  735. url: '/pages/tasksquare/search'
  736. });
  737. },
  738. // 进入任务详情
  739. project(item) {
  740. // uni.navigateTo({
  741. // url: '/pages/test/test'
  742. // });
  743. console.log(item.project_id)
  744. if (item.project_type === 1) {
  745. uni.navigateTo({
  746. url: '/pages/tasksquare/taskdetail?id=' + item
  747. .project_id
  748. });
  749. } else {
  750. uni.navigateTo({
  751. url: '/pages/tasksquare/specialTask/specialTaskDetail?id=' +
  752. item.project_id
  753. });
  754. }
  755. // }
  756. },
  757. /* type2 点击分类 */
  758. onLeftHome(type) {
  759. this.type = type
  760. // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
  761. this.$refs.popup.open(type)
  762. },
  763. /* 点击右侧 */
  764. onRightClick() {
  765. console.log("onRightClick");
  766. uni.showToast({
  767. title: "onRightClick",
  768. duration: 1000,
  769. });
  770. this.$emit("onRightClick");
  771. },
  772. /**
  773. * @param scrollTop 页面顶部距离
  774. * @param down 滑动显示效果延时
  775. */
  776. setOpacity(scrollTop, down = 60) {
  777. if (scrollTop > 0) {
  778. if (scrollTop < down) {
  779. this.opacity = scrollTop / down;
  780. }
  781. if (scrollTop > down) {
  782. this.opacity = 1;
  783. }
  784. } else {
  785. this.opacity = 0;
  786. }
  787. },
  788. /* 搜索框改变值 */
  789. changeInput(e) {
  790. this.$emit("changeInput", e);
  791. },
  792. /* 搜索框提交 */
  793. submitInput(e) {
  794. this.$emit("submitInput", e);
  795. },
  796. /* 清空搜索 */
  797. clearInput() {
  798. this.$emit("clearInput");
  799. },
  800. /* 禁用状态下点击搜索框 */
  801. clickInput() {
  802. this.$emit("clickInput");
  803. },
  804. },
  805. created() {
  806. this.init();
  807. },
  808. onReady() {
  809. // setTimeout(() => {
  810. // // 改变手机状态栏颜色
  811. // uni.setNavigationBarColor({
  812. // frontColor: "#000000",
  813. // backgroundColor: "#FF4258",
  814. // });
  815. // }, 10);
  816. },
  817. };
  818. </script>
  819. <style>
  820. /deep/ .share .uni-popup .uni-popup__wrapper {
  821. width: 80% !important;
  822. border-radius: 15rpx !important;
  823. }
  824. </style>
  825. <style lang="scss" scoped>
  826. .option1 {
  827. padding: 5rpx 18rpx;
  828. /deep/.uni-data-checklist .checklist-group .checklist-box .checklist-content {
  829. width: 100rpx;
  830. text-align: center;
  831. }
  832. }
  833. .option2 {
  834. padding: 5rpx 18rpx;
  835. }
  836. .option3 {
  837. padding: 5rpx 18rpx;
  838. }
  839. //弹窗
  840. .sharepage {
  841. // width: 90%;
  842. margin: 0 auto;
  843. // position: relative;
  844. }
  845. /deep/ .share.uni-popup .uni-popup__wrapper {
  846. width: 70%;
  847. border-radius: 15rpx;
  848. }
  849. .projecttext1 {
  850. // padding-top: 5%;
  851. padding: 0 0 0 1%;
  852. height: 80rpx;
  853. margin: 5% 0;
  854. text-align: center;
  855. }
  856. .projecttext1 image {
  857. vertical-align: middle;
  858. width: 80rpx;
  859. height: 80rpx;
  860. display: inline-block;
  861. padding-right: 14rpx;
  862. }
  863. .sharemap {
  864. margin: 0 auto;
  865. text-align: center;
  866. // margin-top: 15%;
  867. // margin-bottom: 15%;
  868. }
  869. .sharemap image {
  870. width: 400rpx;
  871. height: 400rpx;
  872. }
  873. .sharetxt {
  874. height: 100rpx;
  875. display: flex;
  876. flex-direction: column;
  877. align-items: center;
  878. justify-content: center;
  879. }
  880. .sharetxt text {
  881. font-size: 24rpx;
  882. text-align: left;
  883. line-height: 20rpx
  884. }
  885. .butmin {
  886. // height: 48rpx;
  887. width: 250rpx;
  888. background-color: #FCCF41;
  889. line-height: 48rpx;
  890. }
  891. .butmin1 {
  892. // height: 48rpx;
  893. width: 250rpx;
  894. background-color: #fff;
  895. border: #000000 1rpx solid;
  896. line-height: 48rpx;
  897. }
  898. //弹出层
  899. /deep/ .uni-data-checklist .checklist-group .checklist-box {
  900. background-color: #FFFFFF !important;
  901. border-radius: 20rpx !important;
  902. padding: 8rpx 30rpx !important;
  903. border: 0 !important;
  904. }
  905. /deep/ .uni-data-checklist .checklist-group .checklist-box .checklist-content .checklist-text {
  906. font-size: 24rpx;
  907. color: #333333;
  908. }
  909. /deep/ .mini-btn {
  910. height: 70rpx;
  911. width: 250rpx;
  912. line-height: 70rpx;
  913. margin: 20rpx;
  914. letter-spacing: 4rpx;
  915. background-color: #FCCF41;
  916. }
  917. /deep/ .mini-btn1 {
  918. height: 70rpx;
  919. width: 400rpx;
  920. line-height: 70rpx;
  921. margin: 20rpx;
  922. letter-spacing: 4rpx;
  923. color: white;
  924. ;
  925. }
  926. /deep/ .uni-data-checklist .checklist-group .checklist-box.is--tag.is-checked {
  927. background-color: #FCCF41 !important;
  928. }
  929. .butto {
  930. text-align: center;
  931. }
  932. //其他
  933. .nav {
  934. position: relative;
  935. }
  936. .nv_padding {
  937. height: 88upx;
  938. background-color: transparent;
  939. }
  940. /* 图标默认大小 */
  941. .nv_icon {
  942. width: 16px;
  943. height: 16px;
  944. }
  945. .bg_box {
  946. position: absolute;
  947. width: 750upx;
  948. height: 88upx;
  949. z-index: 10;
  950. top: 0;
  951. background-color: transparent;
  952. /* #ifdef MP */
  953. box-sizing: border-box;
  954. /* #endif */
  955. /* #ifndef APP-PLUS-NVUE */
  956. background-size: cover;
  957. background-repeat: no-repeat;
  958. background-position: center center;
  959. /* #endif */
  960. }
  961. .mys_navBar {
  962. /* #ifndef APP-PLUS-NVUE */
  963. display: flex;
  964. height: 88upx;
  965. /* #endif */
  966. // #ifdef MP
  967. box-sizing: border-box;
  968. // #endif
  969. width: 750upx;
  970. flex-direction: row;
  971. background-color: transparent;
  972. position: absolute;
  973. z-index: 10;
  974. top: 0;
  975. }
  976. .fixed {
  977. position: fixed;
  978. }
  979. /*
  980. left 按钮
  981. */
  982. .btn_type {
  983. /* #ifndef APP-PLUS-NVUE */
  984. display: flex;
  985. /* #endif */
  986. /* #ifdef APP-PLUS-NVUE */
  987. margin-left: 16upx;
  988. /* #endif */
  989. // #ifndef MP
  990. align-items: center;
  991. // #endif
  992. flex: 1;
  993. flex-direction: row;
  994. // background-color: #fff;
  995. }
  996. .btn_box {
  997. /* #ifndef APP-PLUS-NVUE */
  998. display: flex;
  999. margin-left: 16upx;
  1000. /* #endif */
  1001. flex-direction: row;
  1002. // #ifndef MP
  1003. align-items: center;
  1004. // #endif
  1005. }
  1006. .btn_back,
  1007. .btn_home {
  1008. /* #ifndef APP-PLUS-NVUE */
  1009. display: flex;
  1010. /* #endif */
  1011. /* #ifndef APP-PLUS-NVUE */
  1012. height: 100%;
  1013. /* #endif */
  1014. /* #ifdef APP-PLUS-NVUE */
  1015. width: 76upx;
  1016. height: 62upx;
  1017. /* #endif */
  1018. flex-direction: row;
  1019. align-items: center;
  1020. justify-content: center;
  1021. flex: 1;
  1022. }
  1023. /* 按钮类型1 */
  1024. .nav_btn_t1 {
  1025. /* #ifndef APP-PLUS-NVUE */
  1026. display: flex;
  1027. /* #endif */
  1028. // #ifdef MP
  1029. box-sizing: border-box;
  1030. // #endif
  1031. flex-direction: row;
  1032. align-items: center;
  1033. border-style: solid;
  1034. border-width: 1px;
  1035. border-color: #C0C0C0;
  1036. // background-color: rgba(0, 0, 0, 0.2);
  1037. background-color: #FFFFFF;
  1038. width: 130upx;
  1039. height: 45upx;
  1040. }
  1041. .line {
  1042. width: 1upx;
  1043. height: 60%;
  1044. /* #ifdef APP-PLUS-NVUE */
  1045. height: 30upx;
  1046. /* #endif */
  1047. background-color: #C0C0C0;
  1048. }
  1049. /*
  1050. 标题
  1051. */
  1052. .title_container {
  1053. /* #ifndef APP-PLUS-NVUE */
  1054. display: flex;
  1055. /* #endif */
  1056. position: absolute;
  1057. left: 375upx;
  1058. bottom: 0;
  1059. transform: translateX(-50%);
  1060. flex-direction: row;
  1061. justify-content: center;
  1062. align-items: center;
  1063. }
  1064. .title_text {
  1065. // flex: 1;
  1066. text-overflow: ellipsis;
  1067. /* #ifndef APP-PLUS-NVUE */
  1068. white-space: nowrap;
  1069. overflow: hidden;
  1070. font-weight: 550;
  1071. /* #endif */
  1072. /* #ifdef APP-PLUS-NVUE */
  1073. lines: 1;
  1074. /* #endif */
  1075. }
  1076. /*
  1077. 左边自定义
  1078. */
  1079. .my_left_box {
  1080. /* #ifndef APP-PLUS-NVUE */
  1081. display: flex;
  1082. /* #endif */
  1083. flex-direction: row;
  1084. align-items: center;
  1085. }
  1086. .my_left_icon {
  1087. /* #ifndef APP-PLUS-NVUE */
  1088. display: flex;
  1089. /* #endif */
  1090. flex-direction: row;
  1091. align-items: center;
  1092. justify-content: center;
  1093. /* #ifndef MP */
  1094. margin-left: 18upx;
  1095. /* #endif */
  1096. }
  1097. .my_left_custom {
  1098. /* #ifndef APP-PLUS-NVUE */
  1099. display: flex;
  1100. /* #endif */
  1101. flex-direction: row;
  1102. align-items: center;
  1103. // justify-content: center;
  1104. }
  1105. /* 文字 */
  1106. .leftText {
  1107. /* #ifndef APP-PLUS-NVUE */
  1108. display: flex;
  1109. /* #endif */
  1110. flex-direction: row;
  1111. align-items: center;
  1112. justify-content: center;
  1113. padding-left: 4upx;
  1114. font-size: 15px;
  1115. }
  1116. /*
  1117. 中间
  1118. */
  1119. .my_custom_box {
  1120. /* #ifndef APP-PLUS-NVUE */
  1121. display: flex;
  1122. /* #endif */
  1123. flex-direction: row;
  1124. align-items: center;
  1125. justify-content: center;
  1126. flex: 1;
  1127. }
  1128. /*
  1129. 搜索框
  1130. */
  1131. .nv_search_box {
  1132. /* #ifndef APP-PLUS-NVUE */
  1133. display: flex;
  1134. /* #endif */
  1135. flex-direction: row;
  1136. align-items: center;
  1137. flex: 1;
  1138. /* #ifndef MP */
  1139. height: 60upx;
  1140. /* #endif */
  1141. background-color: #f8f8f8;
  1142. padding-right: 20upx;
  1143. padding-left: 20upx;
  1144. border-radius: 60upx;
  1145. margin-right: 15upx;
  1146. margin-left: 15upx;
  1147. }
  1148. .nv_input {
  1149. flex: 1;
  1150. padding-left: 16upx;
  1151. font-size: 13px;
  1152. }
  1153. .close {
  1154. width: 50upx;
  1155. /* #ifndef APP-PLUS-NVUE */
  1156. display: flex;
  1157. /* #endif */
  1158. flex-direction: row;
  1159. align-items: center;
  1160. justify-content: center;
  1161. /* #ifndef MP */
  1162. height: 62upx;
  1163. /* #endif */
  1164. }
  1165. /*
  1166. 右边 自定义
  1167. */
  1168. .my_right_icon {
  1169. /* #ifndef APP-PLUS-NVUE */
  1170. display: flex;
  1171. /* #endif */
  1172. flex-direction: row;
  1173. align-items: center;
  1174. justify-content: center;
  1175. /* #ifndef MP */
  1176. // min-width: 70upx;
  1177. /* #endif */
  1178. padding-left: 6px;
  1179. padding-right: 10px;
  1180. }
  1181. .imge image {
  1182. width: 100%;
  1183. height: 260rpx;
  1184. }
  1185. .commodity {
  1186. margin-top: 10rpx;
  1187. display: flex;
  1188. flex-wrap: wrap;
  1189. justify-content: space-between;
  1190. }
  1191. .share {
  1192. text-align: center;
  1193. line-height: 10rpx;
  1194. margin-top: 10rpx;
  1195. }
  1196. .share image {
  1197. vertical-align: middle;
  1198. width: 25rpx;
  1199. height: 25rpx;
  1200. display: inline-block
  1201. }
  1202. .share p {
  1203. // display: inline-block;
  1204. font-size: 24rpx;
  1205. // color: #333333;
  1206. }
  1207. .project {
  1208. width: 49%;
  1209. height: 550rpx;
  1210. // background-color: #ccc;
  1211. border-radius: 20rpx;
  1212. // box-shadow: 0rpx 5rpx 5rpx #ccc;
  1213. margin-bottom: 0%;
  1214. }
  1215. .projectdiagram {
  1216. width: 100%;
  1217. height: 61%;
  1218. background-size: 100% 100%;
  1219. position: relative;
  1220. border-radius: 10rpx;
  1221. ;
  1222. }
  1223. .TitleText1 {
  1224. height: 30rpx;
  1225. background-color: #FDD442;
  1226. border-radius: 10rpx;
  1227. display: inline-block;
  1228. padding: 0rpx 20rpx 0rpx 20rpx;
  1229. line-height: 30rpx;
  1230. }
  1231. .TitleText2 {
  1232. opacity: 0.8;
  1233. height: 30rpx;
  1234. background-color: #FFFFFF;
  1235. border-radius: 20rpx;
  1236. display: inline-block;
  1237. padding: 0rpx 20rpx 0rpx 20rpx;
  1238. line-height: 30rpx;
  1239. }
  1240. .TitleText2 p {
  1241. color: #464100;
  1242. font-size: 24rpx;
  1243. }
  1244. .projecttext {
  1245. // padding-top: 5%;
  1246. padding: 0 0 0 1%;
  1247. // height: 80rpx;
  1248. }
  1249. .projecttext span {
  1250. color: #333333;
  1251. font-size: 25rpx;
  1252. font-weight: 550;
  1253. text-indent: 2em;
  1254. }
  1255. .TitleText1 p {
  1256. color: #333333;
  1257. font-size: 18rpx;
  1258. }
  1259. .projecttext {
  1260. // height: 70rpx;
  1261. }
  1262. .projecttext image {
  1263. vertical-align: middle;
  1264. width: 30rpx;
  1265. height: 30rpx;
  1266. display: inline-block;
  1267. padding-right: 14rpx;
  1268. }
  1269. .TitleText {
  1270. // height: 30rpx;
  1271. width: 25%;
  1272. background-color: #FDD442;
  1273. border-radius: 10rpx;
  1274. display: inline-block;
  1275. text-align: center;
  1276. // padding: 0rpx 10rpx 0rpx 10rpx;
  1277. margin-right: 6%;
  1278. line-height: 30rpx;
  1279. margin-top: 0%;
  1280. }
  1281. .TitleText p {
  1282. color: black;
  1283. font-size: 16rpx;
  1284. }
  1285. .introduction {
  1286. width: 100%;
  1287. margin: 10rpx auto 0;
  1288. }
  1289. .rleft p {
  1290. font-size: 18rpx;
  1291. color: #999999;
  1292. }
  1293. .rright p {
  1294. font-size: 18rpx;
  1295. color: #999999;
  1296. }
  1297. .Mask {
  1298. position: absolute;
  1299. background-color: #000000;
  1300. opacity: 0.6;
  1301. width: 100%;
  1302. height: 100%;
  1303. // z-index: 999;
  1304. text-align: center;
  1305. border-radius: 20rpx;
  1306. }
  1307. .Mask image {
  1308. width: 50%;
  1309. height: 52%;
  1310. padding-top: 25%;
  1311. }
  1312. .contt {
  1313. position: relative;
  1314. }
  1315. .contact {
  1316. position: fixed;
  1317. top: 80%;
  1318. right: 13%;
  1319. }
  1320. .img1 {
  1321. width: 84rpx;
  1322. height: 124rpx;
  1323. position: absolute;
  1324. }
  1325. .img2 {
  1326. width: 114rpx;
  1327. height: 40rpx;
  1328. position: absolute;
  1329. top: 130rpx;
  1330. left: -12rpx;
  1331. }
  1332. .swiper {
  1333. height: 300rpx;
  1334. }
  1335. .swiper-item {
  1336. display: block;
  1337. height: 300rpx;
  1338. line-height: 300rpx;
  1339. text-align: center;
  1340. }
  1341. .swiper-list {
  1342. margin-top: 40rpx;
  1343. margin-bottom: 0;
  1344. }
  1345. </style>