search.vue 20 KB

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