tasksquare.vue 33 KB

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