search.vue 20 KB

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