search.vue 24 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127
  1. <template>
  2. <view class="nav">
  3. <!-- 胶囊 -->
  4. <mvBar :mysNavConfig="mysNavConfig"></mvBar>
  5. <view :style="{marginTop:navH}"></view>
  6. <view class="home">
  7. <view>
  8. <uni-search-bar @confirm="search" :focus="true" v-model="searchValue">
  9. </uni-search-bar>
  10. </view>
  11. <view class="commodity" style="margin-top: 3%;">
  12. <view class="project" v-for="(item,index) in projectList" :key="index" @tap="project(item)">
  13. <view class="projectdiagram" :style="{backgroundImage:`url(${item.coverphoto})`}">
  14. <view class="Mask" v-if="item.ddl">
  15. <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home4.png" mode="">
  16. </image>
  17. </view>
  18. <view style="padding-left: 4%;padding-top: 2%;">
  19. </view>
  20. </view>
  21. <view class="projecttext">
  22. <image :src="item.project_imgper" mode=""></image>
  23. <span>{{item.project_name|ellipsis}}</span>
  24. </view>
  25. <view style="padding-left: 1%;">
  26. <view class="TitleText" v-if="item.isself===1">
  27. <p>自报价</p>
  28. </view>
  29. <view class="TitleText" v-if="item.isfixedfee===1">
  30. <p>固定稿费</p>
  31. </view>
  32. <view class="TitleText" v-if="item.project_form===3">
  33. <p>线下探店</p>
  34. </view>
  35. </view>
  36. <view class="introduction">
  37. <view class="rleft" style="">
  38. <p>商品价值: <span
  39. style="color: red;font-weight: 600;">¥{{item.ProductInfo.ProductPrice}}</span></p>
  40. </view>
  41. <view class="rright" style="display: flex;justify-content:space-between;">
  42. <p>招募人数: <span style="color: balck;font-weight: 600;">{{item.taskNum}}</span></p>
  43. <p>报名人数: <span style="color: balck;font-weight: 600;">{{item.apply_num}}</span>
  44. </p>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. <!-- 普通弹窗 公众号-->
  51. <uni-popup ref="popup4" class="share" background-color="#fff" @change="change">
  52. <view class="popup-content" :class="{ 'popup-height': type === 'left' || type === 'right' }">
  53. <view class="sharepage">
  54. <view class="projecttext1">
  55. <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/project15.png"
  56. style="width: 80rpx; height: 80rpx;" mode=""></image>
  57. <span>YoungGee</span>
  58. </view>
  59. <view class="" style="margin-top: 5%;">
  60. <p style='color: #333333;font-size: 28rpx;text-align: center;'>扫码联系</p>
  61. </view>
  62. <view class="sharemap">
  63. <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/kefu.png"
  64. style="width: 400rpx;height: 400rpx;" mode=""></image>
  65. </view>
  66. </view>
  67. </view>
  68. </uni-popup>
  69. <view class="contact" @click="toggle4('center')">
  70. <view class="contt">
  71. <!-- <image class="img2" src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home2.png" mode=""></image> -->
  72. <image class="img1"
  73. src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/kefu_20211124192542.png" mode="">
  74. </image>
  75. </view>
  76. </view>
  77. </view>
  78. </template>
  79. <script>
  80. import mvBar from "@/components/mys_navBar/mysNavBar";
  81. import request from '@/components/request.js'
  82. import searchVue from "./search.vue";
  83. /* 默认首页路径 */
  84. const homePath = "/pages/pupu/pupudao";
  85. /* 默认首页图标路径 */
  86. const homeIconPath = "/static/img/png4.png";
  87. /* 默认返回图标路径 */
  88. const backIconPath = "/static/img/png2.png";
  89. export default {
  90. props: {
  91. scrollTop: {
  92. type: Number,
  93. default: function() {
  94. return 0;
  95. },
  96. },
  97. },
  98. filters: {
  99. ellipsis(value) {
  100. if (!value) return "";
  101. if (value.length > 20) {
  102. return value.slice(0, 20) + "...";
  103. }
  104. return value;
  105. },
  106. },
  107. components: {
  108. mvBar,
  109. },
  110. data() {
  111. return {
  112. navH: getApp().globalData.navHeight,
  113. searchValue: "",
  114. mysNavConfig: {
  115. /* 开启单页显示首页图标 */
  116. isHome: true,
  117. /* 固定导航 */
  118. navFixed: true,
  119. /* 标题 (屏幕中心居中 两边图标中心居中使用slot center1) */
  120. navTitle: {
  121. text: "任务搜索",
  122. color: "",
  123. fontSize: "32rpx", // px upx rpx
  124. fontWeight: "normal", // 100 - 700
  125. },
  126. btnType: "type2",
  127. onLeftClick: "",
  128. /* type2 按钮 */
  129. type2Config: {
  130. // 左图标
  131. leftPath: "/static/img/png2.png",
  132. // 右图标
  133. rightPath: "/static/img/png4.png",
  134. // 圆角
  135. radius: "40rpx",
  136. },
  137. },
  138. token: '',
  139. per: 0,
  140. type4: 'center',
  141. //轮播图
  142. img: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home1.png',
  143. background: ['color1', 'color2', 'color3'],
  144. indicatorDots: true,
  145. autoplay: true,
  146. interval: 3000,
  147. duration: 1000,
  148. list1: [{
  149. img: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home1.png',
  150. name: '/pages/tasksquare/guide'
  151. },
  152. {
  153. img: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home7.png',
  154. name: '/pages/tasksquare/cooperation'
  155. }
  156. ],
  157. //弹窗
  158. type: 'center',
  159. formData: {
  160. hobby: [],
  161. hobby1: [],
  162. hobby2: [],
  163. },
  164. hobby: [],
  165. hobby1: [{
  166. text: '产品置换',
  167. value: 1
  168. }, {
  169. text: '固定稿费',
  170. value: 2
  171. }, {
  172. text: '自报价',
  173. value: 3
  174. }],
  175. hobby2: [{
  176. text: '实体商品寄拍',
  177. value: 1
  178. }, {
  179. text: '虚拟产品测评',
  180. value: 2
  181. }, {
  182. text: '线下探店打卡',
  183. value: 3
  184. }],
  185. iconW: undefined,
  186. iconH: undefined,
  187. btnWidth: undefined,
  188. btnHeight: undefined,
  189. navBarTop: undefined,
  190. navBarHeight: undefined,
  191. navBarLeft: undefined,
  192. navBarRight: undefined,
  193. inputHeight: undefined,
  194. opacity: 0,
  195. isHome: false,
  196. homeIconPath: homeIconPath,
  197. backIconPath: backIconPath,
  198. img: '../../static/home/home.png',
  199. // 最多显示页数
  200. max_page: '',
  201. tupian: {
  202. wen: '原创图片',
  203. lin: 1,
  204. },
  205. projectList: [],
  206. img456: '../../static/home/home.png',
  207. platformList: [],
  208. filtCondition: '',
  209. };
  210. },
  211. computed: {
  212. isSharePage() {},
  213. },
  214. watch: {
  215. scrollTop(val) {
  216. if (!this.mysNavConfig.isOpacity) {
  217. return;
  218. }
  219. this.setOpacity(val, this.mysNavConfig.opacityTime);
  220. },
  221. },
  222. onShow() {
  223. this.isLogin()
  224. },
  225. onLoad() {
  226. this.getInfoList()
  227. this.per = 0
  228. this.getProjectListAPI()
  229. },
  230. //下拉刷新
  231. onPullDownRefresh() {
  232. this.per = 0
  233. this.getProjectListAPI()
  234. //停止下拉刷新
  235. uni.stopPullDownRefresh()
  236. },
  237. // 下拉懒加载
  238. async onReachBottom() {
  239. ++this.per;
  240. if (this.per >= this.max_page) {
  241. uni.showToast({
  242. title: "已加载全部"
  243. })
  244. } else {
  245. uni.showLoading({
  246. title: '加载中'
  247. })
  248. await this.$http.get('/youngee/c/g/get-project-list' +
  249. "?" +
  250. "idx" +
  251. "=" +
  252. this.per +
  253. "&cnt" +
  254. "=" +
  255. 20 + this.filtCondition
  256. ).then(res => {
  257. console.log(res)
  258. this.max_page = res.data.data.max_page
  259. for (var i = 0; i < res.data.data.ProjectInfos.length; i++) {
  260. // 封面图片
  261. res.data.data.ProjectInfos[i].ProductInfo = JSON.parse(res.data.data.ProjectInfos[i]
  262. .product_snap);
  263. // 封面图片
  264. let ProductPhoto = JSON.parse(res.data.data.ProjectInfos[i].product_photo_snap);
  265. for (let j = 0; j < ProductPhoto.length; ++j) {
  266. if (ProductPhoto[j].Symbol == 1) {
  267. res.data.data.ProjectInfos[i].coverphoto = ProductPhoto[j].PhotoUrl
  268. }
  269. }
  270. // 获取平台图片
  271. for (var j = 0; j < this.platformList.length; j++) {
  272. if (res.data.data.ProjectInfos[i].project_platform === this.platformList[j]
  273. .id) {
  274. res.data.data.ProjectInfos[i].project_imgper = this.platformList[j]
  275. .platform_icon
  276. }
  277. }
  278. // 任务数量&稿费形式
  279. res.data.data.ProjectInfos[i].taskNum = 0
  280. let lengthOfRecruitStrategys = res.data.data.ProjectInfos[i]
  281. .RecruitStrategys != null ? res.data.data.ProjectInfos[i]
  282. .RecruitStrategys
  283. .length : 0
  284. for (var j = 0; j < lengthOfRecruitStrategys; j++) {
  285. res.data.data.ProjectInfos[i].taskNum = Number(res.data.data
  286. .ProjectInfos[i]
  287. .taskNum) + Number(res.data.data.ProjectInfos[i]
  288. .RecruitStrategys[j]
  289. .recruit_number)
  290. res.data.data.ProjectInfos[i].isfixedfee = 0
  291. if (res.data.data.ProjectInfos[i].RecruitStrategys[j].fee_form === 2) {
  292. res.data.data.ProjectInfos[i].isfixedfee = 1
  293. }
  294. res.data.data.ProjectInfos[i].isself = 0
  295. if (res.data.data.ProjectInfos[i].RecruitStrategys[j].fee_form === 3) {
  296. res.data.data.ProjectInfos[i].isself = 1
  297. }
  298. }
  299. //结束时间
  300. var newdate = new Date()
  301. // console.log(newdate)
  302. var endTime = new Date(res.data.data.ProjectInfos[i].recruit_ddl.replace(
  303. /-/g, "/"));
  304. res.data.data.ProjectInfos[i].ddl = endTime - newdate < 0 ? 1 : 0
  305. res.data.data.ProjectInfos[i].recruit_ddl = this.thistime(res.data.data
  306. .ProjectInfos[i]
  307. .recruit_ddl)
  308. }
  309. this.projectList.push.apply(this.projectList, res.data.data.ProjectInfos);
  310. console.log(this.projectList)
  311. })
  312. uni.hideLoading();
  313. }
  314. },
  315. methods: {
  316. async search(res) {
  317. uni.showToast({
  318. title: '搜索:' + res.value,
  319. icon: 'none'
  320. })
  321. this.per = 0;
  322. this.filtCondition = ''
  323. if (res.value != "")
  324. this.filtCondition = "&searchvalue" + "=" + res.value
  325. uni.showLoading({
  326. title: '加载中'
  327. });
  328. await this.getProjectListAPI()
  329. uni.hideLoading();
  330. },
  331. getProjectListAPI() {
  332. return this.$http.get('/youngee/c/g/get-project-list' +
  333. "?" +
  334. "idx" +
  335. "=" +
  336. this.per +
  337. "&cnt" +
  338. "=" +
  339. 20 + this.filtCondition
  340. ).then(res => {
  341. console.log(res)
  342. if (res.data.code === 0) {
  343. for (var i = 0; i < res.data.data.ProjectInfos.length; i++) {
  344. // 封面图片
  345. res.data.data.ProjectInfos[i].ProductInfo = JSON.parse(res.data.data.ProjectInfos[i]
  346. .product_snap);
  347. // 封面图片
  348. let ProductPhoto = JSON.parse(res.data.data.ProjectInfos[i].product_photo_snap);
  349. for (let j = 0; j < ProductPhoto.length; ++j) {
  350. if (ProductPhoto[j].Symbol == 1) {
  351. res.data.data.ProjectInfos[i].coverphoto = ProductPhoto[j].PhotoUrl
  352. }
  353. }
  354. // 获取平台图片
  355. for (var j = 0; j < this.platformList.length; j++) {
  356. if (res.data.data.ProjectInfos[i].project_platform === this.platformList[j]
  357. .id) {
  358. res.data.data.ProjectInfos[i].project_imgper = this.platformList[j]
  359. .platform_icon
  360. }
  361. }
  362. // 任务数量&稿费形式
  363. res.data.data.ProjectInfos[i].taskNum = 0
  364. let lengthOfRecruitStrategys = res.data.data.ProjectInfos[i]
  365. .RecruitStrategys != null ? res.data.data.ProjectInfos[i]
  366. .RecruitStrategys
  367. .length : 0
  368. for (var j = 0; j < lengthOfRecruitStrategys; j++) {
  369. res.data.data.ProjectInfos[i].taskNum = Number(res.data.data
  370. .ProjectInfos[i]
  371. .taskNum) + Number(res.data.data.ProjectInfos[i]
  372. .RecruitStrategys[j]
  373. .recruit_number)
  374. res.data.data.ProjectInfos[i].isfixedfee = 0
  375. if (res.data.data.ProjectInfos[i].RecruitStrategys[j].fee_form === 2) {
  376. res.data.data.ProjectInfos[i].isfixedfee = 1
  377. }
  378. res.data.data.ProjectInfos[i].isself = 0
  379. if (res.data.data.ProjectInfos[i].RecruitStrategys[j].fee_form === 3) {
  380. res.data.data.ProjectInfos[i].isself = 1
  381. }
  382. }
  383. //结束时间
  384. var newdate = new Date()
  385. // console.log(newdate)
  386. var endTime = new Date(res.data.data.ProjectInfos[i].recruit_ddl.replace(
  387. /-/g, "/"));
  388. res.data.data.ProjectInfos[i].ddl = endTime - newdate < 0 || res.data.data
  389. .ProjectInfos[i]
  390. .project_status > 4 ? 1 : 0
  391. res.data.data.ProjectInfos[i].recruit_ddl = this.thistime(res.data.data
  392. .ProjectInfos[i]
  393. .recruit_ddl)
  394. }
  395. this.max_page = res.data.data.max_page
  396. this.projectList = res.data.data.ProjectInfos;
  397. } else if (res.data.code === -4) {
  398. uni.showToast({
  399. title: "暂无任务"
  400. })
  401. this.max_page = 1
  402. this.projectList = []
  403. } else {
  404. uni.showToast({
  405. title: res.data.msg
  406. })
  407. this.max_page = 1
  408. this.projectList = []
  409. }
  410. })
  411. },
  412. // 判断登陆是否过期
  413. isLogin() {
  414. return this.$https.get('/youngee/c/t/g/is-login')
  415. .then(res => {
  416. if (res.data.code === 403) {
  417. // 登陆已失效
  418. this.token = ""
  419. uni.clearStorage();
  420. } else {
  421. this.token = uni.getStorageSync('token')
  422. }
  423. })
  424. },
  425. // 信息表
  426. getInfoList() {
  427. return this.$http.get('/youngee/c/g/get-info-tables')
  428. .then(res => {
  429. this.hobby = []
  430. this.platformList = res.data.data.ThirdPlatform
  431. let l = this.platformList != null ? this.platformList.length : 0;
  432. for (var i = 0; i < l; i++) {
  433. var obj = {}
  434. obj.text = this.platformList[i].platform_name
  435. obj.value = this.platformList[i].id
  436. this.hobby.push(obj)
  437. }
  438. })
  439. },
  440. // 计算结束时间
  441. thistime(val) {
  442. // 转换格式
  443. var beginTime = new Date(val.replace(/-/g, "/"));
  444. // 当前时间
  445. var thisTime = new Date();
  446. // 相减
  447. var dateMiss = beginTime.getTime() - thisTime.getTime();
  448. // 天数
  449. var day = Math.floor(dateMiss / (24 * 3600 * 1000));
  450. // 减去天数剩下的毫秒数
  451. var backOne = dateMiss % (24 * 3600 * 1000);
  452. // 小时数
  453. var hours = Math.floor(backOne / (3600 * 1000));
  454. var deadline_time = '',
  455. deadline_time = day + '天' + hours + '时结束'
  456. return deadline_time
  457. },
  458. //弹出层
  459. change(e) {
  460. console.log('当前模式:' + e.type + ',状态:' + e.show);
  461. },
  462. toggle4(type) {
  463. this.type4 = type
  464. // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
  465. this.$refs.popup4.open(type)
  466. // this.$refs.popup1.close()
  467. },
  468. xieyi() {
  469. console.log('进入联系我们')
  470. },
  471. go(url) {
  472. uni.navigateTo({
  473. url: url,
  474. });
  475. },
  476. // 进入任务详情
  477. project(item) {
  478. // uni.navigateTo({
  479. // url: '/pages/test/test'
  480. // });
  481. console.log(item.project_id)
  482. if (item.project_type === 1) {
  483. uni.navigateTo({
  484. url: '/pages/tasksquare/taskdetail?id=' + item.project_id
  485. });
  486. } else {
  487. uni.navigateTo({
  488. url: '/pages/tasksquare/specialTask/specialTaskDetail?id=' + item.project_id
  489. });
  490. }
  491. // }
  492. },
  493. /**
  494. * @param scrollTop 页面顶部距离
  495. * @param down 滑动显示效果延时
  496. */
  497. setOpacity(scrollTop, down = 60) {
  498. if (scrollTop > 0) {
  499. if (scrollTop < down) {
  500. this.opacity = scrollTop / down;
  501. }
  502. if (scrollTop > down) {
  503. this.opacity = 1;
  504. }
  505. } else {
  506. this.opacity = 0;
  507. }
  508. },
  509. },
  510. created() {},
  511. onReady() {
  512. // setTimeout(() => {
  513. // // 改变手机状态栏颜色
  514. // uni.setNavigationBarColor({
  515. // frontColor: "#000000",
  516. // backgroundColor: "#FF4258",
  517. // });
  518. // }, 10);
  519. },
  520. };
  521. </script>
  522. <style>
  523. /deep/ .share .uni-popup .uni-popup__wrapper {
  524. width: 70% !important;
  525. border-radius: 15rpx !important;
  526. }
  527. </style>
  528. <style lang="scss" scoped>
  529. .option1 {
  530. padding: 5rpx 18rpx;
  531. /deep/.uni-data-checklist .checklist-group .checklist-box .checklist-content {
  532. width: 100rpx;
  533. text-align: center;
  534. }
  535. }
  536. .option2 {
  537. padding: 5rpx 18rpx;
  538. }
  539. .option3 {
  540. padding: 5rpx 18rpx;
  541. }
  542. //弹窗
  543. .sharepage {
  544. width: 90%;
  545. margin: 0 auto;
  546. // position: relative;
  547. }
  548. /deep/ .share.uni-popup .uni-popup__wrapper {
  549. width: 70%;
  550. border-radius: 15rpx;
  551. }
  552. .projecttext1 {
  553. // padding-top: 5%;
  554. padding: 0 0 0 1%;
  555. height: 80rpx;
  556. margin-top: 7%;
  557. text-align: center;
  558. }
  559. .projecttext1 span {
  560. color: #333333;
  561. font-size: 100%;
  562. font-weight: 550;
  563. text-indent: 2em;
  564. }
  565. .projecttext1 image {
  566. vertical-align: middle;
  567. width: 80rpx;
  568. height: 80rpx;
  569. display: inline-block;
  570. padding-right: 14rpx;
  571. }
  572. .sharemap {
  573. margin: 0 auto;
  574. text-align: center;
  575. margin-top: 15%;
  576. margin-bottom: 15%;
  577. }
  578. .sharemap image {
  579. width: 400rpx;
  580. height: 400rpx;
  581. }
  582. .butmin {
  583. height: 48rpx;
  584. background-color: #3397FA;
  585. color: #FFFFFF;
  586. line-height: 48rpx;
  587. }
  588. //弹出层
  589. /deep/ .uni-data-checklist .checklist-group .checklist-box {
  590. background-color: #FFFFFF !important;
  591. border-radius: 20rpx !important;
  592. padding: 8rpx 30rpx !important;
  593. border: 0 !important;
  594. }
  595. /deep/ .uni-data-checklist .checklist-group .checklist-box .checklist-content .checklist-text {
  596. font-size: 24rpx;
  597. color: #333333;
  598. }
  599. /deep/ .mini-btn {
  600. height: 70rpx;
  601. width: 250rpx;
  602. line-height: 70rpx;
  603. margin: 20rpx;
  604. letter-spacing: 4rpx;
  605. background-color: #FCCF41;
  606. }
  607. /deep/ .mini-btn1 {
  608. height: 70rpx;
  609. width: 400rpx;
  610. line-height: 70rpx;
  611. margin: 20rpx;
  612. letter-spacing: 4rpx;
  613. color: white;
  614. ;
  615. }
  616. /deep/ .uni-data-checklist .checklist-group .checklist-box.is--tag.is-checked {
  617. background-color: #FCCF41 !important;
  618. }
  619. .butto {
  620. text-align: center;
  621. }
  622. //其他
  623. .nav {
  624. position: relative;
  625. }
  626. .nv_padding {
  627. height: 88upx;
  628. background-color: transparent;
  629. }
  630. /* 图标默认大小 */
  631. .nv_icon {
  632. width: 16px;
  633. height: 16px;
  634. }
  635. .bg_box {
  636. position: absolute;
  637. width: 750upx;
  638. height: 88upx;
  639. z-index: 10;
  640. top: 0;
  641. background-color: transparent;
  642. /* #ifdef MP */
  643. box-sizing: border-box;
  644. /* #endif */
  645. /* #ifndef APP-PLUS-NVUE */
  646. background-size: cover;
  647. background-repeat: no-repeat;
  648. background-position: center center;
  649. /* #endif */
  650. }
  651. .mys_navBar {
  652. /* #ifndef APP-PLUS-NVUE */
  653. display: flex;
  654. height: 88upx;
  655. /* #endif */
  656. // #ifdef MP
  657. box-sizing: border-box;
  658. // #endif
  659. width: 750upx;
  660. flex-direction: row;
  661. background-color: transparent;
  662. position: absolute;
  663. z-index: 10;
  664. top: 0;
  665. }
  666. .fixed {
  667. position: fixed;
  668. }
  669. /*
  670. left 按钮
  671. */
  672. .btn_type {
  673. /* #ifndef APP-PLUS-NVUE */
  674. display: flex;
  675. /* #endif */
  676. /* #ifdef APP-PLUS-NVUE */
  677. margin-left: 16upx;
  678. /* #endif */
  679. // #ifndef MP
  680. align-items: center;
  681. // #endif
  682. flex: 1;
  683. flex-direction: row;
  684. // background-color: #fff;
  685. }
  686. .btn_box {
  687. /* #ifndef APP-PLUS-NVUE */
  688. display: flex;
  689. margin-left: 16upx;
  690. /* #endif */
  691. flex-direction: row;
  692. // #ifndef MP
  693. align-items: center;
  694. // #endif
  695. }
  696. .btn_back,
  697. .btn_home {
  698. /* #ifndef APP-PLUS-NVUE */
  699. display: flex;
  700. /* #endif */
  701. /* #ifndef APP-PLUS-NVUE */
  702. height: 100%;
  703. /* #endif */
  704. /* #ifdef APP-PLUS-NVUE */
  705. width: 76upx;
  706. height: 62upx;
  707. /* #endif */
  708. flex-direction: row;
  709. align-items: center;
  710. justify-content: center;
  711. flex: 1;
  712. }
  713. /* 按钮类型1 */
  714. .nav_btn_t1 {
  715. /* #ifndef APP-PLUS-NVUE */
  716. display: flex;
  717. /* #endif */
  718. // #ifdef MP
  719. box-sizing: border-box;
  720. // #endif
  721. flex-direction: row;
  722. align-items: center;
  723. border-style: solid;
  724. border-width: 1px;
  725. border-color: #C0C0C0;
  726. // background-color: rgba(0, 0, 0, 0.2);
  727. background-color: #FFFFFF;
  728. width: 130upx;
  729. height: 45upx;
  730. }
  731. .line {
  732. width: 1upx;
  733. height: 60%;
  734. /* #ifdef APP-PLUS-NVUE */
  735. height: 30upx;
  736. /* #endif */
  737. background-color: #C0C0C0;
  738. }
  739. /*
  740. 标题
  741. */
  742. .title_container {
  743. /* #ifndef APP-PLUS-NVUE */
  744. display: flex;
  745. /* #endif */
  746. position: absolute;
  747. left: 375upx;
  748. bottom: 0;
  749. transform: translateX(-50%);
  750. flex-direction: row;
  751. justify-content: center;
  752. align-items: center;
  753. }
  754. .title_text {
  755. // flex: 1;
  756. text-overflow: ellipsis;
  757. /* #ifndef APP-PLUS-NVUE */
  758. white-space: nowrap;
  759. overflow: hidden;
  760. font-weight: 550;
  761. /* #endif */
  762. /* #ifdef APP-PLUS-NVUE */
  763. lines: 1;
  764. /* #endif */
  765. }
  766. /*
  767. 左边自定义
  768. */
  769. .my_left_box {
  770. /* #ifndef APP-PLUS-NVUE */
  771. display: flex;
  772. /* #endif */
  773. flex-direction: row;
  774. align-items: center;
  775. }
  776. .my_left_icon {
  777. /* #ifndef APP-PLUS-NVUE */
  778. display: flex;
  779. /* #endif */
  780. flex-direction: row;
  781. align-items: center;
  782. justify-content: center;
  783. /* #ifndef MP */
  784. margin-left: 18upx;
  785. /* #endif */
  786. }
  787. .my_left_custom {
  788. /* #ifndef APP-PLUS-NVUE */
  789. display: flex;
  790. /* #endif */
  791. flex-direction: row;
  792. align-items: center;
  793. // justify-content: center;
  794. }
  795. /* 文字 */
  796. .leftText {
  797. /* #ifndef APP-PLUS-NVUE */
  798. display: flex;
  799. /* #endif */
  800. flex-direction: row;
  801. align-items: center;
  802. justify-content: center;
  803. padding-left: 4upx;
  804. font-size: 15px;
  805. }
  806. /*
  807. 中间
  808. */
  809. .my_custom_box {
  810. /* #ifndef APP-PLUS-NVUE */
  811. display: flex;
  812. /* #endif */
  813. flex-direction: row;
  814. align-items: center;
  815. justify-content: center;
  816. flex: 1;
  817. }
  818. /*
  819. 搜索框
  820. */
  821. .nv_search_box {
  822. /* #ifndef APP-PLUS-NVUE */
  823. display: flex;
  824. /* #endif */
  825. flex-direction: row;
  826. align-items: center;
  827. flex: 1;
  828. /* #ifndef MP */
  829. height: 60upx;
  830. /* #endif */
  831. background-color: #f8f8f8;
  832. padding-right: 20upx;
  833. padding-left: 20upx;
  834. border-radius: 60upx;
  835. margin-right: 15upx;
  836. margin-left: 15upx;
  837. }
  838. .nv_input {
  839. flex: 1;
  840. padding-left: 16upx;
  841. font-size: 13px;
  842. }
  843. .close {
  844. width: 50upx;
  845. /* #ifndef APP-PLUS-NVUE */
  846. display: flex;
  847. /* #endif */
  848. flex-direction: row;
  849. align-items: center;
  850. justify-content: center;
  851. /* #ifndef MP */
  852. height: 62upx;
  853. /* #endif */
  854. }
  855. /*
  856. 右边 自定义
  857. */
  858. .my_right_icon {
  859. /* #ifndef APP-PLUS-NVUE */
  860. display: flex;
  861. /* #endif */
  862. flex-direction: row;
  863. align-items: center;
  864. justify-content: center;
  865. /* #ifndef MP */
  866. // min-width: 70upx;
  867. /* #endif */
  868. padding-left: 6px;
  869. padding-right: 10px;
  870. }
  871. .imge image {
  872. width: 100%;
  873. height: 260rpx;
  874. }
  875. .commodity {
  876. margin-top: 10rpx;
  877. display: flex;
  878. flex-wrap: wrap;
  879. justify-content: space-between;
  880. }
  881. .share {
  882. text-align: center;
  883. line-height: 10rpx;
  884. margin-top: 10rpx;
  885. }
  886. .share image {
  887. vertical-align: middle;
  888. width: 25rpx;
  889. height: 25rpx;
  890. display: inline-block
  891. }
  892. .share p {
  893. display: inline-block;
  894. font-size: 24rpx;
  895. color: #333333;
  896. }
  897. .project {
  898. width: 49%;
  899. height: 550rpx;
  900. // background-color: #ccc;
  901. border-radius: 20rpx;
  902. // box-shadow: 0rpx 5rpx 5rpx #ccc;
  903. margin-bottom: 0%;
  904. }
  905. .projectdiagram {
  906. width: 100%;
  907. height: 61%;
  908. background-size: 100% 100%;
  909. position: relative;
  910. border-radius: 10rpx;
  911. ;
  912. }
  913. .TitleText1 {
  914. height: 30rpx;
  915. background-color: #FDD442;
  916. border-radius: 10rpx;
  917. display: inline-block;
  918. padding: 0rpx 20rpx 0rpx 20rpx;
  919. line-height: 30rpx;
  920. }
  921. .TitleText2 {
  922. opacity: 0.8;
  923. height: 30rpx;
  924. background-color: #FFFFFF;
  925. border-radius: 20rpx;
  926. display: inline-block;
  927. padding: 0rpx 20rpx 0rpx 20rpx;
  928. line-height: 30rpx;
  929. }
  930. .TitleText2 p {
  931. color: #464100;
  932. font-size: 24rpx;
  933. }
  934. .projecttext {
  935. // padding-top: 5%;
  936. padding: 0 0 0 1%;
  937. // height: 80rpx;
  938. }
  939. .projecttext span {
  940. color: #333333;
  941. font-size: 25rpx;
  942. font-weight: 550;
  943. text-indent: 2em;
  944. }
  945. .TitleText1 p {
  946. color: #333333;
  947. font-size: 18rpx;
  948. }
  949. .projecttext {
  950. // height: 70rpx;
  951. }
  952. .projecttext image {
  953. vertical-align: middle;
  954. width: 30rpx;
  955. height: 30rpx;
  956. display: inline-block;
  957. padding-right: 14rpx;
  958. }
  959. .TitleText {
  960. // height: 30rpx;
  961. background-color: #FDD442;
  962. border-radius: 10rpx;
  963. display: inline-block;
  964. padding: 0rpx 20rpx 0rpx 20rpx;
  965. line-height: 30rpx;
  966. margin-top: 0%;
  967. }
  968. .TitleText p {
  969. color: black;
  970. font-size: 18rpx;
  971. }
  972. .introduction {
  973. width: 100%;
  974. margin: 10rpx auto 0;
  975. }
  976. .rleft p {
  977. font-size: 18rpx;
  978. color: #999999;
  979. }
  980. .rright p {
  981. font-size: 18rpx;
  982. color: #999999;
  983. }
  984. .Mask {
  985. position: absolute;
  986. background-color: #000000;
  987. opacity: 0.6;
  988. width: 100%;
  989. height: 100%;
  990. // z-index: 999;
  991. text-align: center;
  992. border-radius: 20rpx;
  993. }
  994. .Mask image {
  995. width: 50%;
  996. height: 52%;
  997. padding-top: 25%;
  998. }
  999. .contt {
  1000. position: relative;
  1001. }
  1002. .contact {
  1003. position: fixed;
  1004. top: 80%;
  1005. right: 13%;
  1006. }
  1007. .img1 {
  1008. width: 84rpx;
  1009. height: 124rpx;
  1010. position: absolute;
  1011. }
  1012. .img2 {
  1013. width: 114rpx;
  1014. height: 40rpx;
  1015. position: absolute;
  1016. top: 130rpx;
  1017. left: -12rpx;
  1018. }
  1019. .swiper {
  1020. height: 300rpx;
  1021. }
  1022. .swiper-item {
  1023. display: block;
  1024. height: 300rpx;
  1025. line-height: 300rpx;
  1026. text-align: center;
  1027. }
  1028. .swiper-list {
  1029. margin-top: 40rpx;
  1030. margin-bottom: 0;
  1031. }
  1032. </style>