tasksquare.vue 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447
  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/tasksquare/tasksquare";
  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. navH: getApp().globalData.navHeight,
  248. kefuUrl: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/kefu.jpeg",
  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. console.log(item.project_id)
  741. if (item.project_type === 1) {
  742. uni.navigateTo({
  743. url: '/pages/tasksquare/taskdetail?id=' + item
  744. .project_id
  745. });
  746. } else {
  747. uni.navigateTo({
  748. url: '/pages/tasksquare/specialTask/specialTaskDetail?id=' +
  749. item.project_id
  750. });
  751. }
  752. },
  753. /* type2 点击分类 */
  754. onLeftHome(type) {
  755. this.type = type
  756. // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
  757. this.$refs.popup.open(type)
  758. },
  759. /* 点击右侧 */
  760. onRightClick() {
  761. console.log("onRightClick");
  762. uni.showToast({
  763. title: "onRightClick",
  764. duration: 1000,
  765. });
  766. this.$emit("onRightClick");
  767. },
  768. /**
  769. * @param scrollTop 页面顶部距离
  770. * @param down 滑动显示效果延时
  771. */
  772. setOpacity(scrollTop, down = 60) {
  773. if (scrollTop > 0) {
  774. if (scrollTop < down) {
  775. this.opacity = scrollTop / down;
  776. }
  777. if (scrollTop > down) {
  778. this.opacity = 1;
  779. }
  780. } else {
  781. this.opacity = 0;
  782. }
  783. },
  784. /* 搜索框改变值 */
  785. changeInput(e) {
  786. this.$emit("changeInput", e);
  787. },
  788. /* 搜索框提交 */
  789. submitInput(e) {
  790. this.$emit("submitInput", e);
  791. },
  792. /* 清空搜索 */
  793. clearInput() {
  794. this.$emit("clearInput");
  795. },
  796. /* 禁用状态下点击搜索框 */
  797. clickInput() {
  798. this.$emit("clickInput");
  799. },
  800. },
  801. created() {
  802. this.init();
  803. },
  804. onReady() {
  805. // setTimeout(() => {
  806. // // 改变手机状态栏颜色
  807. // uni.setNavigationBarColor({
  808. // frontColor: "#000000",
  809. // backgroundColor: "#FF4258",
  810. // });
  811. // }, 10);
  812. },
  813. };
  814. </script>
  815. <style>
  816. /deep/ .share .uni-popup .uni-popup__wrapper {
  817. width: 80% !important;
  818. border-radius: 15rpx !important;
  819. }
  820. </style>
  821. <style lang="scss" scoped>
  822. .option1 {
  823. padding: 5rpx 18rpx;
  824. /deep/.uni-data-checklist .checklist-group .checklist-box .checklist-content {
  825. width: 100rpx;
  826. text-align: center;
  827. }
  828. }
  829. .option2 {
  830. padding: 5rpx 18rpx;
  831. }
  832. .option3 {
  833. padding: 5rpx 18rpx;
  834. }
  835. //弹窗
  836. .sharepage {
  837. // width: 90%;
  838. margin: 0 auto;
  839. // position: relative;
  840. }
  841. /deep/ .share.uni-popup .uni-popup__wrapper {
  842. width: 70%;
  843. border-radius: 15rpx;
  844. }
  845. .projecttext1 {
  846. // padding-top: 5%;
  847. padding: 0 0 0 1%;
  848. height: 80rpx;
  849. margin: 5% 0;
  850. text-align: center;
  851. }
  852. .projecttext1 image {
  853. vertical-align: middle;
  854. width: 80rpx;
  855. height: 80rpx;
  856. display: inline-block;
  857. padding-right: 14rpx;
  858. }
  859. .sharemap {
  860. margin: 0 auto;
  861. text-align: center;
  862. // margin-top: 15%;
  863. // margin-bottom: 15%;
  864. }
  865. .sharemap image {
  866. width: 400rpx;
  867. height: 400rpx;
  868. }
  869. .sharetxt {
  870. height: 100rpx;
  871. display: flex;
  872. flex-direction: column;
  873. align-items: center;
  874. justify-content: center;
  875. }
  876. .sharetxt text {
  877. font-size: 24rpx;
  878. text-align: left;
  879. line-height: 20rpx
  880. }
  881. .butmin {
  882. // height: 48rpx;
  883. width: 250rpx;
  884. background-color: #FCCF41;
  885. line-height: 48rpx;
  886. }
  887. .butmin1 {
  888. // height: 48rpx;
  889. width: 250rpx;
  890. background-color: #fff;
  891. border: #000000 1rpx solid;
  892. line-height: 48rpx;
  893. }
  894. //弹出层
  895. /deep/ .uni-data-checklist .checklist-group .checklist-box {
  896. background-color: #FFFFFF !important;
  897. border-radius: 20rpx !important;
  898. padding: 8rpx 30rpx !important;
  899. border: 0 !important;
  900. }
  901. /deep/ .uni-data-checklist .checklist-group .checklist-box .checklist-content .checklist-text {
  902. font-size: 24rpx;
  903. color: #333333;
  904. }
  905. /deep/ .mini-btn {
  906. height: 70rpx;
  907. width: 250rpx;
  908. line-height: 70rpx;
  909. margin: 20rpx;
  910. letter-spacing: 4rpx;
  911. background-color: #FCCF41;
  912. }
  913. /deep/ .mini-btn1 {
  914. height: 70rpx;
  915. width: 400rpx;
  916. line-height: 70rpx;
  917. margin: 20rpx;
  918. letter-spacing: 4rpx;
  919. color: white;
  920. ;
  921. }
  922. /deep/ .uni-data-checklist .checklist-group .checklist-box.is--tag.is-checked {
  923. background-color: #FCCF41 !important;
  924. }
  925. .butto {
  926. text-align: center;
  927. }
  928. //其他
  929. .nav {
  930. position: relative;
  931. }
  932. .nv_padding {
  933. height: 88upx;
  934. background-color: transparent;
  935. }
  936. /* 图标默认大小 */
  937. .nv_icon {
  938. width: 16px;
  939. height: 16px;
  940. }
  941. .bg_box {
  942. position: absolute;
  943. width: 750upx;
  944. height: 88upx;
  945. z-index: 10;
  946. top: 0;
  947. background-color: transparent;
  948. /* #ifdef MP */
  949. box-sizing: border-box;
  950. /* #endif */
  951. /* #ifndef APP-PLUS-NVUE */
  952. background-size: cover;
  953. background-repeat: no-repeat;
  954. background-position: center center;
  955. /* #endif */
  956. }
  957. .mys_navBar {
  958. /* #ifndef APP-PLUS-NVUE */
  959. display: flex;
  960. height: 88upx;
  961. /* #endif */
  962. // #ifdef MP
  963. box-sizing: border-box;
  964. // #endif
  965. width: 750upx;
  966. flex-direction: row;
  967. background-color: transparent;
  968. position: absolute;
  969. z-index: 10;
  970. top: 0;
  971. }
  972. .fixed {
  973. position: fixed;
  974. }
  975. /*
  976. left 按钮
  977. */
  978. .btn_type {
  979. /* #ifndef APP-PLUS-NVUE */
  980. display: flex;
  981. /* #endif */
  982. /* #ifdef APP-PLUS-NVUE */
  983. margin-left: 16upx;
  984. /* #endif */
  985. // #ifndef MP
  986. align-items: center;
  987. // #endif
  988. flex: 1;
  989. flex-direction: row;
  990. // background-color: #fff;
  991. }
  992. .btn_box {
  993. /* #ifndef APP-PLUS-NVUE */
  994. display: flex;
  995. margin-left: 16upx;
  996. /* #endif */
  997. flex-direction: row;
  998. // #ifndef MP
  999. align-items: center;
  1000. // #endif
  1001. }
  1002. .btn_back,
  1003. .btn_home {
  1004. /* #ifndef APP-PLUS-NVUE */
  1005. display: flex;
  1006. /* #endif */
  1007. /* #ifndef APP-PLUS-NVUE */
  1008. height: 100%;
  1009. /* #endif */
  1010. /* #ifdef APP-PLUS-NVUE */
  1011. width: 76upx;
  1012. height: 62upx;
  1013. /* #endif */
  1014. flex-direction: row;
  1015. align-items: center;
  1016. justify-content: center;
  1017. flex: 1;
  1018. }
  1019. /* 按钮类型1 */
  1020. .nav_btn_t1 {
  1021. /* #ifndef APP-PLUS-NVUE */
  1022. display: flex;
  1023. /* #endif */
  1024. // #ifdef MP
  1025. box-sizing: border-box;
  1026. // #endif
  1027. flex-direction: row;
  1028. align-items: center;
  1029. border-style: solid;
  1030. border-width: 1px;
  1031. border-color: #C0C0C0;
  1032. // background-color: rgba(0, 0, 0, 0.2);
  1033. background-color: #FFFFFF;
  1034. width: 130upx;
  1035. height: 45upx;
  1036. }
  1037. .line {
  1038. width: 1upx;
  1039. height: 60%;
  1040. /* #ifdef APP-PLUS-NVUE */
  1041. height: 30upx;
  1042. /* #endif */
  1043. background-color: #C0C0C0;
  1044. }
  1045. /*
  1046. 标题
  1047. */
  1048. .title_container {
  1049. /* #ifndef APP-PLUS-NVUE */
  1050. display: flex;
  1051. /* #endif */
  1052. position: absolute;
  1053. left: 375upx;
  1054. bottom: 0;
  1055. transform: translateX(-50%);
  1056. flex-direction: row;
  1057. justify-content: center;
  1058. align-items: center;
  1059. }
  1060. .title_text {
  1061. // flex: 1;
  1062. text-overflow: ellipsis;
  1063. /* #ifndef APP-PLUS-NVUE */
  1064. white-space: nowrap;
  1065. overflow: hidden;
  1066. font-weight: 550;
  1067. /* #endif */
  1068. /* #ifdef APP-PLUS-NVUE */
  1069. lines: 1;
  1070. /* #endif */
  1071. }
  1072. /*
  1073. 左边自定义
  1074. */
  1075. .my_left_box {
  1076. /* #ifndef APP-PLUS-NVUE */
  1077. display: flex;
  1078. /* #endif */
  1079. flex-direction: row;
  1080. align-items: center;
  1081. }
  1082. .my_left_icon {
  1083. /* #ifndef APP-PLUS-NVUE */
  1084. display: flex;
  1085. /* #endif */
  1086. flex-direction: row;
  1087. align-items: center;
  1088. justify-content: center;
  1089. /* #ifndef MP */
  1090. margin-left: 18upx;
  1091. /* #endif */
  1092. }
  1093. .my_left_custom {
  1094. /* #ifndef APP-PLUS-NVUE */
  1095. display: flex;
  1096. /* #endif */
  1097. flex-direction: row;
  1098. align-items: center;
  1099. // justify-content: center;
  1100. }
  1101. /* 文字 */
  1102. .leftText {
  1103. /* #ifndef APP-PLUS-NVUE */
  1104. display: flex;
  1105. /* #endif */
  1106. flex-direction: row;
  1107. align-items: center;
  1108. justify-content: center;
  1109. padding-left: 4upx;
  1110. font-size: 15px;
  1111. }
  1112. /*
  1113. 中间
  1114. */
  1115. .my_custom_box {
  1116. /* #ifndef APP-PLUS-NVUE */
  1117. display: flex;
  1118. /* #endif */
  1119. flex-direction: row;
  1120. align-items: center;
  1121. justify-content: center;
  1122. flex: 1;
  1123. }
  1124. /*
  1125. 搜索框
  1126. */
  1127. .nv_search_box {
  1128. /* #ifndef APP-PLUS-NVUE */
  1129. display: flex;
  1130. /* #endif */
  1131. flex-direction: row;
  1132. align-items: center;
  1133. flex: 1;
  1134. /* #ifndef MP */
  1135. height: 60upx;
  1136. /* #endif */
  1137. background-color: #f8f8f8;
  1138. padding-right: 20upx;
  1139. padding-left: 20upx;
  1140. border-radius: 60upx;
  1141. margin-right: 15upx;
  1142. margin-left: 15upx;
  1143. }
  1144. .nv_input {
  1145. flex: 1;
  1146. padding-left: 16upx;
  1147. font-size: 13px;
  1148. }
  1149. .close {
  1150. width: 50upx;
  1151. /* #ifndef APP-PLUS-NVUE */
  1152. display: flex;
  1153. /* #endif */
  1154. flex-direction: row;
  1155. align-items: center;
  1156. justify-content: center;
  1157. /* #ifndef MP */
  1158. height: 62upx;
  1159. /* #endif */
  1160. }
  1161. /*
  1162. 右边 自定义
  1163. */
  1164. .my_right_icon {
  1165. /* #ifndef APP-PLUS-NVUE */
  1166. display: flex;
  1167. /* #endif */
  1168. flex-direction: row;
  1169. align-items: center;
  1170. justify-content: center;
  1171. /* #ifndef MP */
  1172. // min-width: 70upx;
  1173. /* #endif */
  1174. padding-left: 6px;
  1175. padding-right: 10px;
  1176. }
  1177. .imge image {
  1178. width: 100%;
  1179. height: 260rpx;
  1180. }
  1181. .commodity {
  1182. margin-top: 10rpx;
  1183. display: flex;
  1184. flex-wrap: wrap;
  1185. justify-content: space-between;
  1186. }
  1187. .share {
  1188. text-align: center;
  1189. line-height: 10rpx;
  1190. margin-top: 10rpx;
  1191. }
  1192. .share image {
  1193. vertical-align: middle;
  1194. width: 25rpx;
  1195. height: 25rpx;
  1196. display: inline-block
  1197. }
  1198. .share p {
  1199. // display: inline-block;
  1200. font-size: 24rpx;
  1201. // color: #333333;
  1202. }
  1203. .project {
  1204. width: 49%;
  1205. height: 550rpx;
  1206. // background-color: #ccc;
  1207. border-radius: 20rpx;
  1208. // box-shadow: 0rpx 5rpx 5rpx #ccc;
  1209. margin-bottom: 0%;
  1210. }
  1211. .projectdiagram {
  1212. width: 100%;
  1213. height: 61%;
  1214. background-size: 100% 100%;
  1215. position: relative;
  1216. border-radius: 10rpx;
  1217. ;
  1218. }
  1219. .TitleText1 {
  1220. height: 30rpx;
  1221. background-color: #FDD442;
  1222. border-radius: 10rpx;
  1223. display: inline-block;
  1224. padding: 0rpx 20rpx 0rpx 20rpx;
  1225. line-height: 30rpx;
  1226. }
  1227. .TitleText2 {
  1228. opacity: 0.8;
  1229. height: 30rpx;
  1230. background-color: #FFFFFF;
  1231. border-radius: 20rpx;
  1232. display: inline-block;
  1233. padding: 0rpx 20rpx 0rpx 20rpx;
  1234. line-height: 30rpx;
  1235. }
  1236. .TitleText2 p {
  1237. color: #464100;
  1238. font-size: 24rpx;
  1239. }
  1240. .projecttext {
  1241. // padding-top: 5%;
  1242. padding: 0 0 0 1%;
  1243. // height: 80rpx;
  1244. }
  1245. .projecttext span {
  1246. color: #333333;
  1247. font-size: 25rpx;
  1248. font-weight: 550;
  1249. text-indent: 2em;
  1250. }
  1251. .TitleText1 p {
  1252. color: #333333;
  1253. font-size: 18rpx;
  1254. }
  1255. .projecttext {
  1256. // height: 70rpx;
  1257. }
  1258. .projecttext image {
  1259. vertical-align: middle;
  1260. width: 30rpx;
  1261. height: 30rpx;
  1262. display: inline-block;
  1263. padding-right: 14rpx;
  1264. }
  1265. .TitleText {
  1266. // height: 30rpx;
  1267. width: 25%;
  1268. background-color: #FDD442;
  1269. border-radius: 10rpx;
  1270. display: inline-block;
  1271. text-align: center;
  1272. // padding: 0rpx 10rpx 0rpx 10rpx;
  1273. margin-right: 6%;
  1274. line-height: 30rpx;
  1275. margin-top: 0%;
  1276. }
  1277. .TitleText p {
  1278. color: black;
  1279. font-size: 16rpx;
  1280. }
  1281. .introduction {
  1282. width: 100%;
  1283. margin: 10rpx auto 0;
  1284. }
  1285. .rleft p {
  1286. font-size: 18rpx;
  1287. color: #999999;
  1288. }
  1289. .rright p {
  1290. font-size: 18rpx;
  1291. color: #999999;
  1292. }
  1293. .Mask {
  1294. position: absolute;
  1295. background-color: #000000;
  1296. opacity: 0.6;
  1297. width: 100%;
  1298. height: 100%;
  1299. // z-index: 999;
  1300. text-align: center;
  1301. border-radius: 20rpx;
  1302. }
  1303. .Mask image {
  1304. width: 50%;
  1305. height: 52%;
  1306. padding-top: 25%;
  1307. }
  1308. .contt {
  1309. position: relative;
  1310. }
  1311. .contact {
  1312. position: fixed;
  1313. top: 80%;
  1314. right: 13%;
  1315. }
  1316. .img1 {
  1317. width: 84rpx;
  1318. height: 124rpx;
  1319. position: absolute;
  1320. }
  1321. .img2 {
  1322. width: 114rpx;
  1323. height: 40rpx;
  1324. position: absolute;
  1325. top: 130rpx;
  1326. left: -12rpx;
  1327. }
  1328. .swiper {
  1329. height: 300rpx;
  1330. }
  1331. .swiper-item {
  1332. display: block;
  1333. height: 300rpx;
  1334. line-height: 300rpx;
  1335. text-align: center;
  1336. }
  1337. .swiper-list {
  1338. margin-top: 40rpx;
  1339. margin-bottom: 0;
  1340. }
  1341. </style>