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