selectionsquare.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893
  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. <view :style="{marginTop:navH}"></view>
  48. <view class="home">
  49. <view>
  50. <!-- 多选框弹窗 -->
  51. <uni-popup ref="popup" background-color="#fff" @change="change">
  52. <view class="popup-content" :class="{ 'popup-height': type === 'left' || type === 'right' }">
  53. <view class="option1" style="margin-top: 20%;">
  54. <h3 style="margin-bottom: 10rpx;">社媒平台</h3>
  55. <uni-data-checkbox mode="tag" multiple v-model="formData.hobby" :localdata="hobby">
  56. </uni-data-checkbox>
  57. </view>
  58. <view class="option2">
  59. <h3 style="margin-bottom: 10rpx;">稿费形式</h3>
  60. <uni-data-checkbox mode="tag" multiple v-model="formData.hobby1" :localdata="hobby1">
  61. </uni-data-checkbox>
  62. </view>
  63. <view class="option3">
  64. <h3 style="margin-bottom: 10rpx;">任务形式</h3>
  65. <uni-data-checkbox mode="tag" multiple v-model="formData.hobby2" :localdata="hobby2">
  66. </uni-data-checkbox>
  67. </view>
  68. <view class="butto">
  69. <button class="mini-btn" size="mini" @tap="Reset">重置</button>
  70. <button class="mini-btn" size="mini" @tap="determine">确定</button>
  71. </view>
  72. </view>
  73. </uni-popup>
  74. </view>
  75. <!-- banner -->
  76. <view class="uni-margin-wrap">
  77. <swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay"
  78. :interval="interval" :duration="duration">
  79. <swiper-item v-for="item in list1" @click="pick(item)">
  80. <image :src="item.img" mode="scaleToFill" style="width: 100%;height: 100%;"></image>
  81. </swiper-item>
  82. </swiper>
  83. </view>
  84. <view class="commodity" style="margin-top: 3%;">
  85. <view class="project" @click="toDetail()">
  86. <!-- 主图 -->
  87. <view class="projectdiagram"
  88. style="background-image: url(https://horastar.obs.cn-east-3.myhuaweicloud.com/backstage_upload/a69be940-e294-4dd4-9b09-d80274c75a15.png)">
  89. <view class="Mask" v-if="false">
  90. <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home4.png" mode="">
  91. </image>
  92. </view>
  93. <view style="padding-left: 4%;padding-top: 2%;">
  94. </view>
  95. </view>
  96. <!-- 平台logo、项目名称 -->
  97. <view class="projecttext">
  98. <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/pingtai2.png" mode="">
  99. </image>
  100. <span>PUYU朴郁小树茶冻干茶粉</span>
  101. </view>
  102. <!-- 项目信息1 -->
  103. <view class="projectinfo">
  104. <view class="projectinfotxt">
  105. <p>售价</p>
  106. <p>¥79.9</p>
  107. </view>
  108. <view class="projectinfotxt">
  109. <p>预估赚</p>
  110. <p style="color: #f70606;">¥7.9</p>
  111. </view>
  112. <view class="projectinfotxt">
  113. <p>佣金</p>
  114. <p>10%</p>
  115. </view>
  116. <view class="projectinfotxt">
  117. <p>额外悬赏</p>
  118. <p style="color: #f70606;">¥100.0</p>
  119. </view>
  120. </view>
  121. <!-- 项目信息2 -->
  122. <view class="projectinfo" style="justify-content: space-between;">
  123. <view class="projectinfotxt" style="margin: 0 10rpx;">
  124. <p>余<span style="color: #52b2f0;">123567</span>件</p>
  125. </view>
  126. <view class="projectinfotag">
  127. <view class="TitleText">
  128. <p>免费领</p>
  129. </view>
  130. <view class="TitleText">
  131. <p>垫付后返</p>
  132. </view>
  133. </view>
  134. </view>
  135. </view>
  136. <view class="project">
  137. <!-- 主图 -->
  138. <view class="projectdiagram"
  139. style="background-image: url(https://horastar.obs.cn-east-3.myhuaweicloud.com/backstage_upload/a69be940-e294-4dd4-9b09-d80274c75a15.png)">
  140. <view class="Mask" v-if="false">
  141. <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home4.png" mode="">
  142. </image>
  143. </view>
  144. <view style="padding-left: 4%;padding-top: 2%;">
  145. </view>
  146. </view>
  147. <!-- 平台logo、项目名称 -->
  148. <view class="projecttext">
  149. <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/pingtai2.png" mode="">
  150. </image>
  151. <span>PUYU朴郁小树茶冻干茶粉</span>
  152. </view>
  153. <!-- 项目信息1 -->
  154. <view class="projectinfo">
  155. <view class="projectinfotxt">
  156. <p>售价</p>
  157. <p>¥79.9</p>
  158. </view>
  159. <view class="projectinfotxt">
  160. <p>预估赚</p>
  161. <p style="color: #f70606;">¥7.9</p>
  162. </view>
  163. <view class="projectinfotxt">
  164. <p>佣金</p>
  165. <p>10%</p>
  166. </view>
  167. <view class="projectinfotxt">
  168. <p>额外悬赏</p>
  169. <p style="color: #f70606;">¥100.0</p>
  170. </view>
  171. </view>
  172. <!-- 项目信息2 -->
  173. <view class="projectinfo" style="justify-content: space-between;">
  174. <view class="projectinfotxt" style="margin: 0 10rpx;">
  175. <p>余<span style="color: #52b2f0;">123567</span>件</p>
  176. </view>
  177. <view class="projectinfotag">
  178. <view class="TitleText">
  179. <p>免费领</p>
  180. </view>
  181. <view class="TitleText">
  182. <p>垫付后返</p>
  183. </view>
  184. </view>
  185. </view>
  186. </view>
  187. </view>
  188. </view>
  189. </view>
  190. </view>
  191. </template>
  192. <script>
  193. export default {
  194. props: {
  195. mysNavConfig: {
  196. type: Object,
  197. default () {
  198. return {
  199. /* 固定导航 */
  200. navFixed: true,
  201. /* 开启单页显示首页图标 */
  202. isHome: true,
  203. /* 占位开启 */
  204. navPadding: true,
  205. /* 背景 */
  206. bgColor: "#f8f8f8",
  207. /* 渐变色 */
  208. opacity: 1,
  209. /* 渐变开启 */
  210. isOpacity: false,
  211. /* 渐变延时效果 */
  212. opacityTime: 100,
  213. /* 左侧按钮样式 可选 type1 type2 (type2根据小程序胶囊位置调整) */
  214. btnType: "type1",
  215. /* type1 左侧文字配置 */
  216. leftText: {
  217. text: "",
  218. color: "",
  219. fontSize: "16px", // px upx rpx
  220. fontWeight: "", // blod
  221. },
  222. /* 标题 */
  223. navTitle: {
  224. text: "选品广场",
  225. color: "",
  226. fontSize: "32rpx", // px upx rpx
  227. fontWeight: "normal", // blod
  228. },
  229. /* type2 按钮 */
  230. type2Config: {
  231. // 左图标
  232. leftPath: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/png3.png",
  233. // 右图标
  234. rightPath: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/png1.png",
  235. // 圆角
  236. radius: "40rpx",
  237. },
  238. };
  239. },
  240. },
  241. scrollTop: {
  242. type: Number,
  243. default: function() {
  244. return 0;
  245. },
  246. },
  247. },
  248. filters: {
  249. ellipsis(value) {
  250. if (!value) return "";
  251. if (value.length > 20) {
  252. return value.slice(0, 20) + "...";
  253. }
  254. return value;
  255. },
  256. },
  257. components: {},
  258. data() {
  259. return {
  260. // nav
  261. navH: getApp().globalData.navHeight,
  262. iconW: undefined,
  263. iconH: undefined,
  264. btnWidth: undefined,
  265. btnHeight: undefined,
  266. navBarTop: undefined,
  267. navBarHeight: undefined,
  268. navBarLeft: undefined,
  269. navBarRight: undefined,
  270. inputHeight: undefined,
  271. // banner
  272. indicatorDots: true,
  273. autoplay: true,
  274. interval: 3000,
  275. duration: 1000,
  276. // 多选框
  277. formData: {
  278. hobby: [],
  279. hobby1: [],
  280. hobby2: [],
  281. },
  282. hobby: [{
  283. text: '红book',
  284. value: 1
  285. }, {
  286. text: '抖音',
  287. value: 2
  288. }, {
  289. text: '微博',
  290. value: 3
  291. }, {
  292. text: '快手',
  293. value: 4
  294. }, {
  295. text: 'B站',
  296. value: 5
  297. }, {
  298. text: '大众点评',
  299. value: 6
  300. }, {
  301. text: '知乎',
  302. value: 7
  303. }],
  304. hobby1: [{
  305. text: '产品置换',
  306. value: 1
  307. }, {
  308. text: '固定稿费',
  309. value: 2
  310. }, {
  311. text: '自报价',
  312. value: 3
  313. }],
  314. hobby2: [{
  315. text: '实体商品寄拍',
  316. value: 1
  317. }, {
  318. text: '虚拟产品测评',
  319. value: 2
  320. }, {
  321. text: '线下探店打卡',
  322. value: 3
  323. }],
  324. list1: [{
  325. img: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home1.png',
  326. name: '/pages/tasksquare/guide'
  327. },
  328. {
  329. img: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home7.png',
  330. name: '/pages/tasksquare/cooperation'
  331. // name: 'http://www.baidu.com/'
  332. }
  333. ],
  334. }
  335. },
  336. watch: {
  337. scrollTop(val) {
  338. if (!this.mysNavConfig.isOpacity) {
  339. return;
  340. }
  341. this.setOpacity(val, this.mysNavConfig.opacityTime);
  342. },
  343. },
  344. created() {
  345. this.init();
  346. },
  347. methods: {
  348. toDetail() {
  349. uni.navigateTo({
  350. url: '/pages/selectionsquare/selectiondetail'
  351. });
  352. },
  353. /**
  354. * @param scrollTop 页面顶部距离
  355. * @param down 滑动显示效果延时
  356. */
  357. setOpacity(scrollTop, down = 60) {
  358. if (scrollTop > 0) {
  359. if (scrollTop < down) {
  360. this.opacity = scrollTop / down;
  361. }
  362. if (scrollTop > down) {
  363. this.opacity = 1;
  364. }
  365. } else {
  366. this.opacity = 0;
  367. }
  368. },
  369. /* type2 点击分类 */
  370. onLeftHome(type) {
  371. this.type = type
  372. // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
  373. this.$refs.popup.open(type)
  374. },
  375. init() {
  376. if (this.mysNavConfig.isHome) {
  377. let pages = getCurrentPages().length;
  378. /* 单页显示home图标 */
  379. pages === 1 ? (this.isHome = true) : (this.isHome = false);
  380. }
  381. // 开启渐变 强制fixed
  382. this.navBarTop = uni.getSystemInfoSync().statusBarHeight +
  383. "px";
  384. if (!this.mysNavConfig.opacity) {
  385. this.opacity = 1;
  386. !this.mysNavConfig.isOpacity ? (this.opacity = 1) : ((this
  387. .mysNavConfig.navFixed = true), (this
  388. .opacity = 0));
  389. } else {
  390. this.opacity = this.mysNavConfig.opacity;
  391. !this.mysNavConfig.isOpacity ? "" : ((this.mysNavConfig
  392. .navFixed = true), (this.opacity = 0));
  393. }
  394. // #ifdef MP
  395. this.initMP();
  396. // #endif
  397. // #ifdef APP-PLUS-NVUE
  398. this.navBarHeight = 44 + uni.getSystemInfoSync()
  399. .statusBarHeight + "px";
  400. // #endif
  401. },
  402. /* 小程序初始化位置 */
  403. initMP() {
  404. // getSystemInfoSync用于获取系统信息同步接口
  405. let gS = uni.getSystemInfoSync();
  406. // getMenuButtonBoundingClientRect用于获取胶囊按钮位置布局信息
  407. let rect = uni.getMenuButtonBoundingClientRect();
  408. let rectHeight = rect.height;
  409. this.btnWidth = rect.width + "px";
  410. this.btnHeight = rectHeight + "px";
  411. this.iconW = Math.floor(rect.width / 4 - 5) + "px";
  412. this.iconH = rectHeight / 2 + "px";
  413. this.inputHeight = rectHeight - 3 + "px";
  414. this.navBarTop = rect.top + "px";
  415. this.navBarLeft = gS.screenWidth - rect.right + "px";
  416. this.navBarRight = gS.screenWidth - rect.right + rect.width +
  417. "px";
  418. this.navBarHeight = gS.statusBarHeight + rectHeight + (rect
  419. .top - gS.statusBarHeight) * 2 + "px";
  420. },
  421. }
  422. }
  423. </script>
  424. <style lang="scss" scoped>
  425. //nav
  426. .nav {
  427. position: relative;
  428. }
  429. .nv_padding {
  430. height: 88upx;
  431. background-color: transparent;
  432. }
  433. /* 图标默认大小 */
  434. .nv_icon {
  435. width: 16px;
  436. height: 16px;
  437. }
  438. .bg_box {
  439. position: absolute;
  440. width: 750upx;
  441. height: 88upx;
  442. z-index: 10;
  443. top: 0;
  444. background-color: transparent;
  445. /* #ifdef MP */
  446. box-sizing: border-box;
  447. /* #endif */
  448. /* #ifndef APP-PLUS-NVUE */
  449. background-size: cover;
  450. background-repeat: no-repeat;
  451. background-position: center center;
  452. /* #endif */
  453. }
  454. .mys_navBar {
  455. /* #ifndef APP-PLUS-NVUE */
  456. display: flex;
  457. height: 88upx;
  458. /* #endif */
  459. // #ifdef MP
  460. box-sizing: border-box;
  461. // #endif
  462. width: 750upx;
  463. flex-direction: row;
  464. background-color: transparent;
  465. position: absolute;
  466. z-index: 10;
  467. top: 0;
  468. }
  469. .fixed {
  470. position: fixed;
  471. }
  472. /*
  473. left 按钮
  474. */
  475. .btn_type {
  476. /* #ifndef APP-PLUS-NVUE */
  477. display: flex;
  478. /* #endif */
  479. /* #ifdef APP-PLUS-NVUE */
  480. margin-left: 16upx;
  481. /* #endif */
  482. // #ifndef MP
  483. align-items: center;
  484. // #endif
  485. flex: 1;
  486. flex-direction: row;
  487. // background-color: #fff;
  488. }
  489. .btn_box {
  490. /* #ifndef APP-PLUS-NVUE */
  491. display: flex;
  492. margin-left: 16upx;
  493. /* #endif */
  494. flex-direction: row;
  495. // #ifndef MP
  496. align-items: center;
  497. // #endif
  498. }
  499. .btn_back,
  500. .btn_home {
  501. /* #ifndef APP-PLUS-NVUE */
  502. display: flex;
  503. /* #endif */
  504. /* #ifndef APP-PLUS-NVUE */
  505. height: 100%;
  506. /* #endif */
  507. /* #ifdef APP-PLUS-NVUE */
  508. width: 76upx;
  509. height: 62upx;
  510. /* #endif */
  511. flex-direction: row;
  512. align-items: center;
  513. justify-content: center;
  514. flex: 1;
  515. }
  516. /* 按钮类型1 */
  517. .nav_btn_t1 {
  518. /* #ifndef APP-PLUS-NVUE */
  519. display: flex;
  520. /* #endif */
  521. // #ifdef MP
  522. box-sizing: border-box;
  523. // #endif
  524. flex-direction: row;
  525. align-items: center;
  526. border-style: solid;
  527. border-width: 1px;
  528. border-color: #C0C0C0;
  529. // background-color: rgba(0, 0, 0, 0.2);
  530. background-color: #FFFFFF;
  531. width: 130upx;
  532. height: 45upx;
  533. }
  534. .line {
  535. width: 1upx;
  536. height: 60%;
  537. /* #ifdef APP-PLUS-NVUE */
  538. height: 30upx;
  539. /* #endif */
  540. background-color: #C0C0C0;
  541. }
  542. /*
  543. 标题
  544. */
  545. .title_container {
  546. /* #ifndef APP-PLUS-NVUE */
  547. display: flex;
  548. /* #endif */
  549. position: absolute;
  550. left: 375upx;
  551. bottom: 0;
  552. transform: translateX(-50%);
  553. flex-direction: row;
  554. justify-content: center;
  555. align-items: center;
  556. }
  557. .title_text {
  558. // flex: 1;
  559. text-overflow: ellipsis;
  560. /* #ifndef APP-PLUS-NVUE */
  561. white-space: nowrap;
  562. overflow: hidden;
  563. font-weight: 550;
  564. /* #endif */
  565. /* #ifdef APP-PLUS-NVUE */
  566. lines: 1;
  567. /* #endif */
  568. }
  569. /*
  570. 左边自定义
  571. */
  572. .my_left_box {
  573. /* #ifndef APP-PLUS-NVUE */
  574. display: flex;
  575. /* #endif */
  576. flex-direction: row;
  577. align-items: center;
  578. }
  579. .my_left_icon {
  580. /* #ifndef APP-PLUS-NVUE */
  581. display: flex;
  582. /* #endif */
  583. flex-direction: row;
  584. align-items: center;
  585. justify-content: center;
  586. /* #ifndef MP */
  587. margin-left: 18upx;
  588. /* #endif */
  589. }
  590. .my_left_custom {
  591. /* #ifndef APP-PLUS-NVUE */
  592. display: flex;
  593. /* #endif */
  594. flex-direction: row;
  595. align-items: center;
  596. // justify-content: center;
  597. }
  598. /* 文字 */
  599. .leftText {
  600. /* #ifndef APP-PLUS-NVUE */
  601. display: flex;
  602. /* #endif */
  603. flex-direction: row;
  604. align-items: center;
  605. justify-content: center;
  606. padding-left: 4upx;
  607. font-size: 15px;
  608. }
  609. /*
  610. 中间
  611. */
  612. .my_custom_box {
  613. /* #ifndef APP-PLUS-NVUE */
  614. display: flex;
  615. /* #endif */
  616. flex-direction: row;
  617. align-items: center;
  618. justify-content: center;
  619. flex: 1;
  620. }
  621. /*
  622. 搜索框
  623. */
  624. .nv_search_box {
  625. /* #ifndef APP-PLUS-NVUE */
  626. display: flex;
  627. /* #endif */
  628. flex-direction: row;
  629. align-items: center;
  630. flex: 1;
  631. /* #ifndef MP */
  632. height: 60upx;
  633. /* #endif */
  634. background-color: #f8f8f8;
  635. padding-right: 20upx;
  636. padding-left: 20upx;
  637. border-radius: 60upx;
  638. margin-right: 15upx;
  639. margin-left: 15upx;
  640. }
  641. .nv_input {
  642. flex: 1;
  643. padding-left: 16upx;
  644. font-size: 13px;
  645. }
  646. .close {
  647. width: 50upx;
  648. /* #ifndef APP-PLUS-NVUE */
  649. display: flex;
  650. /* #endif */
  651. flex-direction: row;
  652. align-items: center;
  653. justify-content: center;
  654. /* #ifndef MP */
  655. height: 62upx;
  656. /* #endif */
  657. }
  658. /*
  659. 右边 自定义
  660. */
  661. .my_right_icon {
  662. /* #ifndef APP-PLUS-NVUE */
  663. display: flex;
  664. /* #endif */
  665. flex-direction: row;
  666. align-items: center;
  667. justify-content: center;
  668. /* #ifndef MP */
  669. // min-width: 70upx;
  670. /* #endif */
  671. padding-left: 6px;
  672. padding-right: 10px;
  673. }
  674. .imge image {
  675. width: 100%;
  676. height: 260rpx;
  677. }
  678. </style>
  679. <style lang="scss" scoped>
  680. .option1 {
  681. padding: 5rpx 18rpx;
  682. /deep/.uni-data-checklist .checklist-group .checklist-box .checklist-content {
  683. width: 100rpx;
  684. text-align: center;
  685. }
  686. }
  687. .option2 {
  688. padding: 5rpx 18rpx;
  689. }
  690. .option3 {
  691. padding: 5rpx 18rpx;
  692. }
  693. .butmin {
  694. // height: 48rpx;
  695. width: 250rpx;
  696. background-color: #FCCF41;
  697. line-height: 48rpx;
  698. }
  699. .butmin1 {
  700. // height: 48rpx;
  701. width: 250rpx;
  702. background-color: #fff;
  703. border: #000000 1rpx solid;
  704. line-height: 48rpx;
  705. }
  706. //弹出层
  707. /deep/ .uni-data-checklist .checklist-group .checklist-box {
  708. background-color: #FFFFFF !important;
  709. border-radius: 20rpx !important;
  710. padding: 8rpx 30rpx !important;
  711. border: 0 !important;
  712. }
  713. /deep/ .uni-data-checklist .checklist-group .checklist-box .checklist-content .checklist-text {
  714. font-size: 24rpx;
  715. color: #333333;
  716. }
  717. /deep/ .mini-btn {
  718. height: 70rpx;
  719. width: 250rpx;
  720. line-height: 70rpx;
  721. margin: 20rpx;
  722. letter-spacing: 4rpx;
  723. background-color: #FCCF41;
  724. }
  725. /deep/ .mini-btn1 {
  726. height: 70rpx;
  727. width: 400rpx;
  728. line-height: 70rpx;
  729. margin: 20rpx;
  730. letter-spacing: 4rpx;
  731. color: white;
  732. ;
  733. }
  734. /deep/ .uni-data-checklist .checklist-group .checklist-box.is--tag.is-checked {
  735. background-color: #FCCF41 !important;
  736. }
  737. .butto {
  738. text-align: center;
  739. }
  740. .swiper {
  741. height: 300rpx;
  742. }
  743. .swiper-item {
  744. display: block;
  745. height: 300rpx;
  746. line-height: 300rpx;
  747. text-align: center;
  748. }
  749. .swiper-list {
  750. margin-top: 40rpx;
  751. margin-bottom: 0;
  752. }
  753. </style>
  754. <style lang="scss" scoped>
  755. .commodity {
  756. margin-top: 10rpx;
  757. display: flex;
  758. flex-wrap: wrap;
  759. justify-content: space-between;
  760. }
  761. .project {
  762. width: 49%;
  763. height: 550rpx;
  764. border-radius: 20rpx;
  765. margin-bottom: 0%;
  766. }
  767. .projectdiagram {
  768. width: 100%;
  769. height: 61%;
  770. background-size: 100% 100%;
  771. position: relative;
  772. border-radius: 10rpx;
  773. ;
  774. }
  775. .projecttext {
  776. // padding-top: 5%;
  777. padding: 0 0 0 1%;
  778. // height: 80rpx;
  779. }
  780. .projecttext span {
  781. color: #333333;
  782. font-size: 25rpx;
  783. font-weight: 550;
  784. text-indent: 2em;
  785. }
  786. .projecttext image {
  787. vertical-align: middle;
  788. width: 30rpx;
  789. height: 30rpx;
  790. display: inline-block;
  791. margin-right: 14rpx;
  792. }
  793. .projectinfo {
  794. display: flex;
  795. justify-content: space-around;
  796. }
  797. .projectinfotxt {
  798. display: flex;
  799. flex-direction: column;
  800. align-items: center;
  801. justify-content: center;
  802. }
  803. .projectinfotxt p {
  804. color: #767272;
  805. font-size: 20rpx;
  806. margin: 5rpx 0;
  807. }
  808. .projectinfotag {
  809. display: flex;
  810. justify-content: space-around;
  811. align-items: center;
  812. }
  813. .TitleText {
  814. // height: 30rpx;
  815. width: 100rpx;
  816. background-color: #f70606;
  817. border-radius: 10rpx;
  818. display: inline-block;
  819. text-align: center;
  820. // padding: 0rpx 10rpx 0rpx 10rpx;
  821. margin-right: 6%;
  822. line-height: 30rpx;
  823. margin-top: 0%;
  824. }
  825. .TitleText p {
  826. color: #fff;
  827. font-size: 16rpx;
  828. }
  829. </style>