1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045 |
- <template>
- <view class="nav">
- <view class="bg_box" style="background-color: #FFFFFF;" :style="{
- backgroundImage: mysNavConfig.bgImage,
- paddingTop: navBarTop,
- height: navBarHeight,
- opacity: opacity,
- }" :class="{ fixed: mysNavConfig.navFixed }"></view>
- <view class="mys_navBar" :style="{
- paddingTop: navBarTop,
- height: navBarHeight,
- paddingRight: navBarRight,
- }" :class="{ fixed: mysNavConfig.navFixed }">
- <!-- 左slot -->
- <view class="my_left_custom" :style="{ height: btnHeight }">
- <slot name="left"></slot>
- </view>
- <view class="btn_type" :style="{ height: btnHeight }">
- <view class="btn_box nav_btn_t1" :style="{
- width: btnWidth,
- height: btnHeight,
- marginLeft: navBarLeft,
- borderRadius: mysNavConfig.type2Config.radius,
- }">
- <view class="btn_back" @tap="onLeftClick()">
- <image class="nv_icon" :src="mysNavConfig.type2Config.leftPath"
- :style="{ height: btnHeight, width: iconW }" mode="aspectFit" />
- </view>
- <view class="line"></view>
- <view class="btn_home" @tap="onLeftHome('top')">
- <image class="nv_icon" :src="mysNavConfig.type2Config.rightPath"
- :style="{ height: btnHeight, width: iconW }" mode="aspectFit" />
- </view>
- </view>
- <!-- 标题 -->
- <view class="title_container" v-if="!mysNavConfig.searchConfig"
- :style="{ top: navBarTop, height: btnHeight }">
- <text class="title_text" v-if="!!mysNavConfig.navTitle" :style="{
- color: mysNavConfig.navTitle.color,
- fontSize: mysNavConfig.navTitle.fontSize,
- fontWeight: mysNavConfig.navTitle.fontWeight,
- }">{{ mysNavConfig.navTitle.text }}</text>
- <slot name="center2"></slot>
- </view>
- </view>
- </view>
- <view :style="{marginTop:navH}"></view>
- <view class="home">
- <view>
- <!-- 多选框弹窗 -->
- <uni-popup ref="popup" background-color="#fff">
- <view class="popup-content" :class="{ 'popup-height': type === 'left' || type === 'right' }">
- <view class="option1" style="margin-top: 20%;">
- <h3 style="margin-bottom: 10rpx;">社媒平台</h3>
- <uni-data-checkbox mode="tag" multiple v-model="formData.hobby" :localdata="hobby">
- </uni-data-checkbox>
- </view>
- <view class="option2">
- <h3 style="margin-bottom: 10rpx;">样品形式</h3>
- <uni-data-checkbox mode="tag" multiple v-model="formData.hobby1" :localdata="hobby1">
- </uni-data-checkbox>
- </view>
- <view class="option3">
- <h3 style="margin-bottom: 10rpx;">任务形式</h3>
- <uni-data-checkbox mode="tag" multiple v-model="formData.hobby2" :localdata="hobby2">
- </uni-data-checkbox>
- </view>
- <view class="butto">
- <button class="mini-btn" size="mini" @tap="reset">重置</button>
- <button class="mini-btn" size="mini" @tap="submitSearch">确定</button>
- </view>
- </view>
- </uni-popup>
- </view>
- <!-- banner -->
- <view class="uni-margin-wrap">
- <swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay"
- :interval="interval" :duration="duration">
- <swiper-item v-for="item in list1" @click="pick(item)">
- <image :src="item.img" mode="scaleToFill" style="width: 100%;height: 100%;"></image>
- </swiper-item>
- </swiper>
- </view>
- <view class="commodity" style="margin-top: 3%;">
- <view class="project" v-for="(item,index) in selectionList" :key="index" @tap="toDetail(item)">
- <!-- 主图 -->
- <view class="projectdiagram" :style="{backgroundImage:`url(${item.coverphoto})`}">
- <view class="Mask" v-if="item.isFinished">
- <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home4.png" mode="">
- </image>
- </view>
- <view v-else>
- <view class="Mask" v-if="item.isLacked">
- <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent_upload/lack.png"
- mode="">
- </image>
- </view>
- </view>
- <view style="padding-left: 4%;padding-top: 2%;">
- </view>
- </view>
- <!-- 平台logo、项目名称 -->
- <view class="projecttext">
- <image :src="item.platform_icon">
- </image>
- <span>{{item.selection_name|ellipsis}}</span>
- </view>
- <!-- 项目信息1 -->
- <view class="projectinfo">
- <view class="projectinfotxt">
- <p>售价</p>
- <p>¥{{item.show_price}}</p>
- </view>
- <view class="projectinfotxt">
- <p>预估赚</p>
- <p style="color: #f70606;">¥{{item.show_commission}}</p>
- </view>
- <view class="projectinfotxt">
- <p>佣金</p>
- <p>{{item.commission_rate}}%</p>
- </view>
- <view class="projectinfotxt" v-if="item.task_mode == 1">
- <p>额外悬赏</p>
- <p style="color: #f70606;">¥{{item.show_task_reward}}</p>
- </view>
- </view>
- <!-- 项目信息2 -->
- <view class="projectinfo" style="justify-content: space-between;">
- <view class="projectinfotxt" style="margin: 0 10rpx;">
- <p>余<span style="color: #52b2f0;">{{item.remain_num}}</span>件</p>
- </view>
- <view class="projectinfotag">
- <view class="TitleText" v-if="item.sample_mode == 1">
- <p>免费领</p>
- </view>
- <view class="TitleText" v-if="item.sample_mode == 2">
- <p>垫付后返</p>
- </view>
- <view class="TitleText" v-if="item.task_mode == 1">
- <p>悬赏</p>
- </view>
- <view class="TitleText" v-else>
- <p>纯佣</p>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {
- getQueryString,
- fansview,
- money,
- getDaysBetweenDates
- } from '@/components/utils.js';
- export default {
- props: {
- mysNavConfig: {
- type: Object,
- default () {
- return {
- /* 固定导航 */
- navFixed: true,
- /* 开启单页显示首页图标 */
- isHome: true,
- /* 占位开启 */
- navPadding: true,
- /* 背景 */
- bgColor: "#f8f8f8",
- /* 渐变色 */
- opacity: 1,
- /* 渐变开启 */
- isOpacity: false,
- /* 渐变延时效果 */
- opacityTime: 100,
- /* 左侧按钮样式 可选 type1 type2 (type2根据小程序胶囊位置调整) */
- btnType: "type1",
- /* type1 左侧文字配置 */
- leftText: {
- text: "",
- color: "",
- fontSize: "16px", // px upx rpx
- fontWeight: "", // blod
- },
- /* 标题 */
- navTitle: {
- text: "带货",
- color: "",
- fontSize: "32rpx", // px upx rpx
- fontWeight: "normal", // blod
- },
- /* type2 按钮 */
- type2Config: {
- // 左图标
- leftPath: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/png3.png",
- // 右图标
- rightPath: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/png1.png",
- // 圆角
- radius: "40rpx",
- },
- };
- },
- },
- scrollTop: {
- type: Number,
- default: function() {
- return 0;
- },
- },
- },
- filters: {
- ellipsis(value) {
- if (!value) return "";
- if (value.length > 20) {
- return value.slice(0, 20) + "...";
- }
- return value;
- },
- },
- components: {},
- data() {
- return {
- // nav
- navH: getApp().globalData.navHeight,
- iconW: undefined,
- iconH: undefined,
- btnWidth: undefined,
- btnHeight: undefined,
- navBarTop: undefined,
- navBarHeight: undefined,
- navBarLeft: undefined,
- navBarRight: undefined,
- inputHeight: undefined,
- // banner
- indicatorDots: true,
- autoplay: true,
- interval: 3000,
- duration: 1000,
- // 多选框
- formData: {
- hobby: [],
- hobby1: [],
- hobby2: [],
- },
- hobby: [{
- text: '红book',
- value: 1
- }, {
- text: '抖音',
- value: 2
- }, {
- text: '微博',
- value: 3
- }, {
- text: '快手',
- value: 4
- }, {
- text: 'B站',
- value: 5
- }, {
- text: '大众点评',
- value: 6
- }, {
- text: '知乎',
- value: 7
- }],
- hobby1: [{
- text: '免费领样',
- value: 1
- }, {
- text: '垫付后返',
- value: 2
- }, {
- text: '不提供样品',
- value: 3
- }],
- hobby2: [{
- text: '悬赏任务',
- value: 1
- }, {
- text: '纯佣带货',
- value: 2
- }],
- list1: [{
- img: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home1.png',
- name: '/pages/tasksquare/guide'
- },
- {
- img: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home7.png',
- name: '/pages/tasksquare/cooperation'
- }
- ],
- per: 0,
- max_page: 0,
- filtCondition: '',
- selectionList: [],
- }
- },
- watch: {
- scrollTop(val) {
- if (!this.mysNavConfig.isOpacity) {
- return;
- }
- this.setOpacity(val, this.mysNavConfig.opacityTime);
- },
- },
- created() {
- this.init();
- },
- async onShow() {
- this.isLoginApi()
- await this.getInfoListApi()
- this.per = 0
- this.selectionList = []
- this.getSelectionListApi()
- },
- async onLoad() {},
- //下拉刷新
- onPullDownRefresh() {
- this.per = 0
- this.selectionList = []
- this.getSelectionListApi()
- //停止下拉刷新
- uni.stopPullDownRefresh()
- },
- // 下拉懒加载
- async onReachBottom() {
- ++this.per;
- if (this.per >= this.max_page) {
- uni.showToast({
- title: "已加载全部"
- })
- } else {
- uni.showLoading({
- title: '加载中'
- })
- await this.getSelectionListApi()
- uni.hideLoading();
- }
- },
- methods: {
- /**
- * @param scrollTop 页面顶部距离
- * @param down 滑动显示效果延时
- */
- setOpacity(scrollTop, down = 60) {
- if (scrollTop > 0) {
- if (scrollTop < down) {
- this.opacity = scrollTop / down;
- }
- if (scrollTop > down) {
- this.opacity = 1;
- }
- } else {
- this.opacity = 0;
- }
- },
- /* type2 点击分类 */
- onLeftHome(type) {
- this.type = type
- // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
- this.$refs.popup.open(type)
- },
- init() {
- if (this.mysNavConfig.isHome) {
- let pages = getCurrentPages().length;
- /* 单页显示home图标 */
- pages === 1 ? (this.isHome = true) : (this.isHome = false);
- }
- // 开启渐变 强制fixed
- this.navBarTop = uni.getSystemInfoSync().statusBarHeight +
- "px";
- if (!this.mysNavConfig.opacity) {
- this.opacity = 1;
- !this.mysNavConfig.isOpacity ? (this.opacity = 1) : ((this
- .mysNavConfig.navFixed = true), (this
- .opacity = 0));
- } else {
- this.opacity = this.mysNavConfig.opacity;
- !this.mysNavConfig.isOpacity ? "" : ((this.mysNavConfig
- .navFixed = true), (this.opacity = 0));
- }
- // #ifdef MP
- this.initMP();
- // #endif
- // #ifdef APP-PLUS-NVUE
- this.navBarHeight = 44 + uni.getSystemInfoSync()
- .statusBarHeight + "px";
- // #endif
- },
- /* 小程序初始化位置 */
- initMP() {
- // getSystemInfoSync用于获取系统信息同步接口
- let gS = uni.getSystemInfoSync();
- // getMenuButtonBoundingClientRect用于获取胶囊按钮位置布局信息
- let rect = uni.getMenuButtonBoundingClientRect();
- let rectHeight = rect.height;
- this.btnWidth = rect.width + "px";
- this.btnHeight = rectHeight + "px";
- this.iconW = Math.floor(rect.width / 4 - 5) + "px";
- this.iconH = rectHeight / 2 + "px";
- this.inputHeight = rectHeight - 3 + "px";
- this.navBarTop = rect.top + "px";
- this.navBarLeft = gS.screenWidth - rect.right + "px";
- this.navBarRight = gS.screenWidth - rect.right + rect.width +
- "px";
- this.navBarHeight = gS.statusBarHeight + rectHeight + (rect
- .top - gS.statusBarHeight) * 2 + "px";
- },
- toDetail(item) {
- uni.navigateTo({
- url: '/page_selectionsquare/selectiondetail/selectiondetail?id=' + item.selection_id
- });
- },
- async submitSearch() {
- this.per = 0;
- this.$refs.popup.close()
- var filtCondition = ''
- for (var i = 0; i < this.formData.hobby.length; i++) {
- filtCondition += "&platform[]" + "=" + this.formData.hobby[i]
- }
- for (var j = 0; j < this.formData.hobby1.length; j++) {
- filtCondition += "&secform[]" + "=" + this.formData.hobby1[j]
- }
- for (var j = 0; j < this.formData.hobby2.length; j++) {
- filtCondition += "&taskform[]" + "=" + this.formData.hobby2[j]
- }
- this.filtCondition = filtCondition
- uni.showLoading({
- title: '加载中'
- });
- this.selectionList = []
- await this.getSelectionListApi()
- uni.hideLoading();
- },
- async reset() {
- this.per = 0;
- this.$refs.popup.close()
- this.formData.hobby = [];
- this.formData.hobby1 = [];
- this.formData.hobby2 = [];
- this.filtCondition = '';
- uni.showLoading({
- title: '加载中'
- });
- this.selectionList = []
- await this.getSelectionListApi()
- uni.hideLoading();
- },
- /* 点击左侧 */
- onLeftClick() {
- uni.navigateTo({
- url: '/page_selectionsquare/search'
- });
- },
- isLoginApi() {
- return this.$https.get('/youngee/c/t/g/is-login')
- .then(res => {
- if (res.data.code === 403) {
- // 登陆已失效
- this.token = ""
- uni.clearStorage();
- } else {
- this.token = uni.getStorageSync('token')
- }
- })
- },
- getInfoListApi() {
- return this.$http.get('/youngee/c/g/get-info-tables')
- .then(res => {
- this.hobby = []
- this.platformList = res.data.data.ThirdPlatform
- let l = this.platformList != null ? this.platformList.length : 0;
- for (var i = 0; i < l; i++) {
- var obj = {}
- obj.text = this.platformList[i].platform_name
- obj.value = this.platformList[i].id
- this.hobby.push(obj)
- }
- })
- },
- getSelectionListApi() {
- return this.$http.get('/youngee/c/g/get-selection-list' +
- "?" +
- "idx" +
- "=" +
- this.per +
- "&cnt" +
- "=" +
- 20 + this.filtCondition
- ).then(res => {
- if (res.data.code === 0) {
- console.log("res: ", res.data.data)
- // 获取res返回数据
- this.max_page = res.data.data.max_page
- let selectionList = res.data.data.SeletionInfos
- const count = res.data.data.count
- // 数据处理
- if (selectionList === null) {
- return
- }
- for (var i = 0; i < selectionList.length; i++) {
- // 封面图片
- selectionList[i].ProductInfo = JSON.parse(selectionList[i].product_snap);
- // if (selectionList[i] !== undefined && 'product_snap' in selectionList[i]) {
- // }
- // 封面图片
- let ProductPhoto = JSON.parse(selectionList[i].product_photo_snap);
- for (let j = 0; j < ProductPhoto.length; ++j) {
- if (ProductPhoto[j].Symbol == 1) {
- selectionList[i].coverphoto = ProductPhoto[j].PhotoUrl
- }
- }
- // if (selectionList[i] !== undefined && 'product_photo_snap' in selectionList[i]) {
- // }
- for (var j = 0; j < this.platformList.length; j++) {
- if (selectionList[i].platform === this.platformList[j].id) {
- selectionList[i].platform_icon = this.platformList[j].platform_icon
- }
- }
- // 佣金计算
- selectionList[i].price = selectionList[i].ProductInfo.ProductPrice
- console.table(selectionList[i].ProductInfo)
- selectionList[i].commission = selectionList[i].price * selectionList[i]
- .commission_rate * 0.01
- selectionList[i].show_commission = money(selectionList[i].commission) // 佣金比例
- selectionList[i].show_price = money(selectionList[i].price) // 售价
- selectionList[i].show_task_reward = money(selectionList[i].task_reward) // 任务悬赏
- // 判断是否到期
- selectionList[i].isFinished = this.isFinish(selectionList[i])
- // 判断是否有库存
- selectionList[i].isLacked = selectionList[i].remain_num == 0 ? true : false
- }
- this.selectionList.push(...selectionList);
- }
- });
- },
- isFinish(selection) {
- var timeNow = new Date();
- var ddl = new Date(selection.task_ddl.replace(/-/g, "/"));
- let remain_days = getDaysBetweenDates(timeNow, ddl);
- if (remain_days < 0) return true;
- else return false;
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- //nav
- .nav {
- position: relative;
- }
- .nv_padding {
- height: 88upx;
- background-color: transparent;
- }
- /* 图标默认大小 */
- .nv_icon {
- width: 16px;
- height: 16px;
- }
- .bg_box {
- position: absolute;
- width: 750upx;
- height: 88upx;
- z-index: 10;
- top: 0;
- background-color: transparent;
- /* #ifdef MP */
- box-sizing: border-box;
- /* #endif */
- /* #ifndef APP-PLUS-NVUE */
- background-size: cover;
- background-repeat: no-repeat;
- background-position: center center;
- /* #endif */
- }
- .mys_navBar {
- /* #ifndef APP-PLUS-NVUE */
- display: flex;
- height: 88upx;
- /* #endif */
- // #ifdef MP
- box-sizing: border-box;
- // #endif
- width: 750upx;
- flex-direction: row;
- background-color: transparent;
- position: absolute;
- z-index: 10;
- top: 0;
- }
- .fixed {
- position: fixed;
- }
- /*
- left 按钮
- */
- .btn_type {
- /* #ifndef APP-PLUS-NVUE */
- display: flex;
- /* #endif */
- /* #ifdef APP-PLUS-NVUE */
- margin-left: 16upx;
- /* #endif */
- // #ifndef MP
- align-items: center;
- // #endif
- flex: 1;
- flex-direction: row;
- // background-color: #fff;
- }
- .btn_box {
- /* #ifndef APP-PLUS-NVUE */
- display: flex;
- margin-left: 16upx;
- /* #endif */
- flex-direction: row;
- // #ifndef MP
- align-items: center;
- // #endif
- }
- .btn_back,
- .btn_home {
- /* #ifndef APP-PLUS-NVUE */
- display: flex;
- /* #endif */
- /* #ifndef APP-PLUS-NVUE */
- height: 100%;
- /* #endif */
- /* #ifdef APP-PLUS-NVUE */
- width: 76upx;
- height: 62upx;
- /* #endif */
- flex-direction: row;
- align-items: center;
- justify-content: center;
- flex: 1;
- }
- /* 按钮类型1 */
- .nav_btn_t1 {
- /* #ifndef APP-PLUS-NVUE */
- display: flex;
- /* #endif */
- // #ifdef MP
- box-sizing: border-box;
- // #endif
- flex-direction: row;
- align-items: center;
- border-style: solid;
- border-width: 1px;
- border-color: #C0C0C0;
- // background-color: rgba(0, 0, 0, 0.2);
- background-color: #FFFFFF;
- width: 130upx;
- height: 45upx;
- }
- .line {
- width: 1upx;
- height: 60%;
- /* #ifdef APP-PLUS-NVUE */
- height: 30upx;
- /* #endif */
- background-color: #C0C0C0;
- }
- /*
- 标题
- */
- .title_container {
- /* #ifndef APP-PLUS-NVUE */
- display: flex;
- /* #endif */
- position: absolute;
- left: 375upx;
- bottom: 0;
- transform: translateX(-50%);
- flex-direction: row;
- justify-content: center;
- align-items: center;
- }
- .title_text {
- // flex: 1;
- text-overflow: ellipsis;
- /* #ifndef APP-PLUS-NVUE */
- white-space: nowrap;
- overflow: hidden;
- font-weight: 550;
- /* #endif */
- /* #ifdef APP-PLUS-NVUE */
- lines: 1;
- /* #endif */
- }
- /*
- 左边自定义
- */
- .my_left_box {
- /* #ifndef APP-PLUS-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- }
- .my_left_icon {
- /* #ifndef APP-PLUS-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- justify-content: center;
- /* #ifndef MP */
- margin-left: 18upx;
- /* #endif */
- }
- .my_left_custom {
- /* #ifndef APP-PLUS-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- // justify-content: center;
- }
- /* 文字 */
- .leftText {
- /* #ifndef APP-PLUS-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- justify-content: center;
- padding-left: 4upx;
- font-size: 15px;
- }
- /*
- 中间
- */
- .my_custom_box {
- /* #ifndef APP-PLUS-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- justify-content: center;
- flex: 1;
- }
- /*
- 搜索框
- */
- .nv_search_box {
- /* #ifndef APP-PLUS-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- flex: 1;
- /* #ifndef MP */
- height: 60upx;
- /* #endif */
- background-color: #f8f8f8;
- padding-right: 20upx;
- padding-left: 20upx;
- border-radius: 60upx;
- margin-right: 15upx;
- margin-left: 15upx;
- }
- .nv_input {
- flex: 1;
- padding-left: 16upx;
- font-size: 13px;
- }
- .close {
- width: 50upx;
- /* #ifndef APP-PLUS-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- justify-content: center;
- /* #ifndef MP */
- height: 62upx;
- /* #endif */
- }
- /*
- 右边 自定义
- */
- .my_right_icon {
- /* #ifndef APP-PLUS-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- justify-content: center;
- /* #ifndef MP */
- // min-width: 70upx;
- /* #endif */
- padding-left: 6px;
- padding-right: 10px;
- }
- .imge image {
- width: 100%;
- height: 260rpx;
- }
- </style>
- <style lang="scss" scoped>
- .option1 {
- padding: 5rpx 18rpx;
- /deep/.uni-data-checklist .checklist-group .checklist-box .checklist-content {
- width: 100rpx;
- text-align: center;
- }
- }
- .option2 {
- padding: 5rpx 18rpx;
- }
- .option3 {
- padding: 5rpx 18rpx;
- }
- .butmin {
- // height: 48rpx;
- width: 250rpx;
- background-color: #FCCF41;
- line-height: 48rpx;
- }
- .butmin1 {
- // height: 48rpx;
- width: 250rpx;
- background-color: #fff;
- border: #000000 1rpx solid;
- line-height: 48rpx;
- }
- //弹出层
- /deep/ .uni-data-checklist .checklist-group .checklist-box {
- background-color: #FFFFFF !important;
- border-radius: 20rpx !important;
- padding: 8rpx 30rpx !important;
- border: 0 !important;
- }
- /deep/ .uni-data-checklist .checklist-group .checklist-box .checklist-content .checklist-text {
- font-size: 24rpx;
- color: #333333;
- }
- /deep/ .mini-btn {
- height: 70rpx;
- width: 250rpx;
- line-height: 70rpx;
- margin: 20rpx;
- letter-spacing: 4rpx;
- background-color: #FCCF41;
- }
- /deep/ .mini-btn1 {
- height: 70rpx;
- width: 400rpx;
- line-height: 70rpx;
- margin: 20rpx;
- letter-spacing: 4rpx;
- color: white;
- ;
- }
- /deep/ .uni-data-checklist .checklist-group .checklist-box.is--tag.is-checked {
- background-color: #FCCF41 !important;
- }
- .butto {
- text-align: center;
- }
- .swiper {
- height: 300rpx;
- }
- .swiper-item {
- display: block;
- height: 300rpx;
- line-height: 300rpx;
- text-align: center;
- }
- .swiper-list {
- margin-top: 40rpx;
- margin-bottom: 0;
- }
- </style>
- <style lang="scss" scoped>
- .commodity {
- margin-top: 10rpx;
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- }
- .project {
- width: 49%;
- height: 550rpx;
- border-radius: 20rpx;
- margin-bottom: 0%;
- }
- .projectdiagram {
- width: 100%;
- height: 61%;
- background-size: 100% 100%;
- position: relative;
- border-radius: 10rpx;
- ;
- }
- .projecttext {
- // padding-top: 5%;
- padding: 0 0 0 1%;
- // height: 80rpx;
- }
- .projecttext span {
- color: #333333;
- font-size: 25rpx;
- font-weight: 550;
- text-indent: 2em;
- }
- .projecttext image {
- vertical-align: middle;
- width: 30rpx;
- height: 30rpx;
- display: inline-block;
- margin-right: 14rpx;
- }
- .projectinfo {
- display: flex;
- justify-content: space-around;
- }
- .projectinfotxt {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- }
- .projectinfotxt p {
- color: #767272;
- font-size: 20rpx;
- margin: 5rpx 0;
- }
- .projectinfotag {
- display: flex;
- justify-content: space-around;
- align-items: center;
- }
- .TitleText {
- // height: 30rpx;
- width: 100rpx;
- background-color: #f70606;
- border-radius: 10rpx;
- display: inline-block;
- text-align: center;
- // padding: 0rpx 10rpx 0rpx 10rpx;
- margin-right: 6%;
- line-height: 30rpx;
- margin-top: 0%;
- }
- .TitleText p {
- color: #fff;
- font-size: 16rpx;
- }
- .Mask {
- position: absolute;
- background-color: #000000;
- opacity: 0.6;
- width: 100%;
- height: 100%;
- // z-index: 999;
- text-align: center;
- border-radius: 20rpx;
- }
- .Mask image {
- width: 50%;
- height: 52%;
- padding-top: 25%;
- }
- </style>
|