| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111 |
- <template>
- <view class="product">
- <view class="top"></view>
- <view class="head">
- <view class="handle">
- <view class="head_left">
- <span class="cuIcon-back" @click="back"></span>
- </view>
- <span class="center">商品管理</span>
- <view class="head_right">
- <!-- <span class="cuIcon-search" @click="goSearch"></span> -->
- <view class="manage" @click="manage">
- {{ isManage ? '退出管理' : '管理' }}
- </view>
- </view>
- </view>
- <div class="tab-container">
- <div class="tab-item" :class="tabIndex == 1 ? 'active' : ''"
- @click="tabIndex = 1; productName = ''; productStatus = 0; getProductList(); getStatus()">品牌标品</div>
- <div class="tab-item" :class="tabIndex == 0 ? 'active' : ''"
- @click="tabIndex = 0; productName = ''; productStatus = 0; getProductList(); getStatus()">自有商品</div>
- </div>
- <view class="search">
- <span class="cuIcon-search"></span>
- <!-- <input @blur="InputBlur" :adjust-position="false" type="text" placeholder="请输入关键词" confirm-type="search"> -->
- <u-input v-model="productName" />
- <view class="search_btn" @click.stop="getProductList()">
- <span></span>搜索
- </view>
- </view>
- <view class="type">
- <view class="type_item" :class="currentIndex == index ? 'active' : ''" v-for="(item, index) in typeList" :key="index"
- @click="selectType(item, index)">
- {{ item.statusName }}({{ item.number }})
- <span class="line" v-if="currentIndex == index"></span>
- </view>
- </view>
- </view>
- <view class="list">
- <view class="product_item" v-for="(item, index) in productList" :key="index" @click="goDetails(item)">
- <view class="status">
- <span class="round" v-if="item.productStatus == '1'">售卖中</span>
- <span class="round no" v-if="item.productStatus == '0'" style="color:#666666 ;">未上架</span>
- <span class="audit " v-if="item.productStatus == '2'" style="color:#596ABB ;">审核中</span>
- <span class="reject " v-if="item.productStatus == '3'" style="color:#F55D65 ;">未通过</span>
- <span class="line"></span>
- <!-- <span v-if="item.saleStartDate">{{ item.saleStartDate.slice(0, 10) }}-{{ item.saleEndDate.slice(0, 10) }}</span> -->
- <!-- <view class="error insufficient" v-if="item.stockQuantity ==0">
- 库存不足
- </view> -->
- <!-- <view class="error overtime" v-if="item.sellingOvertime && item.stockQuantity > 0">
- 售卖超时
- </view> -->
- <!-- <span>已售:{{item.num}}</span>
- <span>库存:{{item.inventory}}</span> -->
- </view>
- <view class="details">
- <view class="img">
- <image :src="item.productImage ? item.productImage.split(',')[0] : ''" mode=""></image>
- </view>
- <view class="data">
- <span>{{ item.productName }}</span>
- <!-- <span>售卖时间:{{item.time}}</span> -->
- <view class="repertory"><span @click.stop="goUser(item)">销量:{{ item.soldQuantity }}</span></view>
- <!-- <view class="repertory">库存:{{ item.stockQuantity }} <span
- @click.stop="goUser(item)">销量:{{ item.soldQuantity }}</span> </view> -->
- <view class="price">
- <span style="font-size: 22rpx;margin: 0px;">¥</span>{{item.soldPrice}}
- <span v-if="item.categoryId == 1945013773786701826 ">~</span>
- <span style="font-size: 22rpx;font-size: 30rpx;font-weight: 600;"
- v-if="item.categoryId == 1945013773786701826 ">¥{{item.price}}</span>
- <span style="color:#999 ;font-size: 22rpx; text-decoration: line-through;" v-else>¥{{item.price}}</span>
- </view>
- <image src="/static/product/ticket.png" mode="" class="ticket" v-if="item.isRights == 1"></image>
- </view>
- <view class="tag" v-if="isManage" @click.stop="select(item)">
- <!-- <span>组合套餐</span> -->
- <!-- <span class="frame"></span> -->
- <image src="/static/product/select.png" mode="" v-if="item.select"></image>
- <image src="/static/product/round.png" mode="" v-else></image>
- </view>
- </view>
- <view class="btn_box">
- <view class="delist" @click.stop="sell(item)" v-if="item.productStatus == 0">
- 上架
- </view>
- <view class="delist select" @click.stop="goSelect(item)" style="margin-left: 20rpx;"
- v-if="item.categoryId.includes('1909434886438043649')">
- 选择检测站
- </view>
- <view class="delist" @click.stop="delist(item)" v-if="item.productStatus == 1">
- 下架
- </view>
- <!-- 年审代办 商品不能编辑 categoryId==‘1909434886438043649’ -->
- <view class="edit delist" @click.stop="edit(item)" v-if="item.categoryId !== '1909434886438043649'">
- 编辑
- </view>
- </view>
- </view>
- </view>
- <view class="creat">
- <view class="operate" v-if="isManage">
- <view class="all" @click="allSelect">
- <image src="/static/product/select.png" mode="" v-if="isAll"></image>
- <image src="/static/product/round.png" mode="" v-else></image>
- 全选
- </view>
- <view class="delete" @click="remove" v-if="currentIndex == 0 || currentIndex == 3">删除</view>
- <view class="delete delist" @click="deletes(1)" v-if="currentIndex == 0">上架</view>
- <view class="delete delist" @click="deletes(0)" v-else>下架</view>
- </view>
- <view class="btn" @click="creatProduct" v-else-if="tabIndex == 0">
- <image src="/static/product/product.png" mode=""></image>
- 创建自有商品
- </view>
- <view class="btn" @click="creatStandard" v-else-if="tabIndex == 1">
- <image src="/static/product/standard.png" mode=""></image>
- 添加品牌标品
- </view>
- </view>
- <view class="popup" v-if="isDelete">
- <view class="content">
- <view class="title">
- <span>提示</span>
- </view>
- <view class="center">
- <view class="error" v-if="canBeDelete">
- 是否将所选商品删除?<br />
- <span style="font-size: 28rpx;color: #666666;margin-top: 16rpx;">删除后需要重新添加品牌标品</span>
- </view>
- <view class="error" v-else>
- 当前门店还存在有效服务券<br />
- <span style="margin-top: 12rpx;">暂时无法关闭门店</span>
- </view>
- </view>
- <view class="btn">
- <view class="cancel" @click="isDelete = false, productHandleList = []">
- 取消
- </view>
- <view class="button" @click="removeProduct">
- 确定
- </view>
- </view>
- </view>
- </view>
- <!-- 下架弹窗 -->
- <view class="popup" v-if="isDelist">
- <view class="content">
- <view class="title">
- <span>提示</span>
- </view>
- <view class="center">
- <view class="error">
- 是否将所选商品下架?
- </view>
- </view>
- <view class="btn">
- <view class="cancel" @click="isDelist = false, delistList = []">
- 取消
- </view>
- <view class="button" @click="delistProduct">
- 确定
- </view>
- </view>
- </view>
- </view>
- <!-- 上架弹窗 -->
- <view class="popup" v-if="isSell">
- <view class="content">
- <view class="title">
- <span>提示</span>
- </view>
- <view class="center">
- <view class="error">
- 是否将所选商品上架?
- </view>
- </view>
- <view class="btn">
- <view class="cancel" @click="isSell = false, sellProducts = []">
- 取消
- </view>
- <view class="button" @click="sellProduct">
- 确定
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- isManage: false,
- currentIndex: 0,
- productStatus: 0, //商品状态,默认1售卖中,0未上架,2审核中,3未通过
- isAll: false,
- isDelete: false,
- canBeDelete: true,
- productName: '',
- typeList: [{
- type: '待上架',
- productStatus: 0
- },
- {
- type: '售卖中',
- productStatus: 1
- },
- {
- type: '审核中',
- productStatus: 2
- },
- {
- type: '未通过',
- productStatus: 3
- }
- ],
- productList: [],
- merchantId: '',
- productHandleList: [],
- tabIndex: 1,
- isDelist: false, //是否下架
- isSell: false, //是否上架
- sellProducts: [], //上架商品集合
- delistList: [] //下架商品集合
- }
- },
- onLoad(option) {
- this.currentIndex=option.type || 0
- },
- methods: {
- //返回
- back() {
- uni.switchTab({
- url: '/pages/index/index'
- })
- },
- //销量页面
- goUser(item) {
- console.log(item)
- uni.navigateTo({
- url: '/pages/product/salesUser?productName=' + item.productName + '&productImage=' + item.productImage +
- '&productId=' + item.productId
- })
- },
- handleClear() {
- this.getProductList()
- // 这里可以添加其他逻辑
- },
- //切换分类
- selectType(item, index) {
- if (!this.isManage) {
- this.currentIndex = index
- this.productStatus = item.code
- this.getProductList()
- }
- },
- //是否管理商品
- manage() {
- this.isManage = !this.isManage
- this.isAll = true
- this.allSelect()
- },
- // 跳转至搜索页面
- goSearch() {
- uni.navigateTo({
- url: '/pages/product/search'
- })
- },
- //跳转至详情
- goDetails(item) {
- uni.navigateTo({
- url: '/pages/product/details?productId=' + item.productId
- })
- },
- //跳转至创建商品
- creatProduct() {
- uni.navigateTo({
- url: '/pages/product/creatProduct'
- })
- },
- //跳转至品牌标品
- creatStandard() {
- uni.navigateTo({
- url: '/pages/product/creatStandard'
- })
- },
- //编辑
- edit(item) {
- uni.navigateTo({
- url: '/pages/product/creatProduct?productId=' + item.productId + '&tabIndex=' + this.tabIndex
- })
- },
- select(item) {
- item.select = !item.select
- this.productHandleList.push(item.productId)
- },
- //批量上下架status:0下架。1上架
- deletes(status) {
- let that = this
- // this.productStatus == 0 ?this.isSell = true:this.isDelist = true
- if (this.productStatus == 0) {
- this.isSell = true
- this.productList.forEach(item => {
- if (item.select) {
- this.sellProducts.push({
- productId: item.productId,
- productStatus: status
- })
- }
- })
- } else {
- this.isDelist = true
- this.productList.forEach(item => {
- if (item.select) {
- this.delistList.push({
- productId: item.productId,
- productStatus: status
- })
- }
- })
- }
- },
- //批量删除
- remove() {
- this.productList.forEach((item => {
- if (item.select) {
- this.productHandleList.push(item.productId)
- }
- }))
- this.isDelete = true
- // this.getProductList()
- },
- removeProduct() {
- let ids = []
- ids = this.productHandleList.join(',')
- console.log(ids)
- this.$http.get("/app/product/deleteBatch?ids=" + ids,)
- .then(res => {
- if (res.data.code == 200) {
- uni.showToast({
- title: '删除成功',
- duration: 2000,
- icon: 'none'
- });
- this.getProductList()
- this.isDelete = false
- this.productHandleList = []
- this.isManage = false
- this.isAll = false
-
- } else {
- this.isDelete = false
- this.productHandleList = []
- uni.showToast({
- title: res.data.message,
- duration: 2000,
- icon: 'none'
- })
- }
- })
- },
- //全选
- allSelect() {
- if (this.isAll) {
- this.isAll = false
- this.productList.forEach(item => {
- item.select = false
- })
- } else {
- this.isAll = true
- this.productList.forEach(item => {
- item.select = true
- })
- }
- },
- getProductList() {
- this.$http.get("/app/product/list?merchantId=" + this.merchantId + "&productStatus=" + this.productStatus +
- '&productName=' + this.productName + '&isPlatform=' + this.tabIndex,)
- .then(res => {
- if (res.data.code == 200) {
- res.data.result.records.forEach((item) => {
- item.select = false;
- })
- this.productList = res.data.result.records
- }
- })
- },
- // getStandardList() {
- // this.$http.get("/app/product/purveyor/list?merchantId=" + this.merchantId + "&productStatus=" + this.productStatus +
- // '&productName=' + this.productName, )
- // .then(res => {
- // if (res.data.code == 200) {
- // res.data.result.records.forEach((item) => {
- // item.select = false;
- // })
- // this.productList = res.data.result.records
- // }
- // })
- // },
- delist(item) {
- this.delistList.push({
- productId: item.productId,
- productStatus: 0
- })
- this.isDelist = true
- },
- //下架商品
- delistProduct() {
- this.$http.post("/app/product/shelves", this.delistList)
- .then(res => {
- if (res.data.code == 200) {
- this.getProductList()
- this.getStatus()
- uni.showToast({
- title: '下架成功',
- duration: 2000,
- icon: 'none'
- });
- this.isDelist = false
- this.delistList = []
- }
- })
- },
- //上架
- sell(item) {
- console.log(item)
- let noStockCheckCategoryIds = [
- '1889837335015636994',
- '1889837859597238273',
- '1909434886438043649',//送车到站,上门取车
- '1889837859597238273,1922135355425357825',//换胎
- '1889837859597238273,1922135298970025985',//拖车
- '1889837859597238273,1922135248814538754'//搭电
- ];
- // if (item.stockQuantity == 0 && !noStockCheckCategoryIds.includes(item.categoryId)) {
- // uni.showToast({
- // icon: 'none',
- // title: '上架商品,库存不能为0'
- // })
- // } else {
- this.sellProducts.push({
- productId: item.productId,
- // productStatus: 1,
- productStatus: 2
- })
- this.isSell = true
- // }
- },
- sellProduct() {
-
- this.$http.post("/app/product/shelves", this.sellProducts)
- .then(res => {
- if (res.data.code == 200) {
- this.getProductList()
- this.getStatus()
- uni.showToast({
- title: '上架成功',
- duration: 2000,
- icon: 'none'
- });
- this.isSell = false
- this.sellProducts = []
- } else {
- uni.showToast({
- title: res.data.message,
- duration: 2000,
- icon: 'none'
- });
- this.isSell = false
- this.sellProducts = []
- }
- })
- },
- //跳转至选择检测站
- goSelect(item) {
- uni.navigateTo({
- // url: '/pages/product/checkMap'
- url: '/pages/product/checkTdMap'
- })
- },
- getStatus() {
- this.$http.get("/app/product/statusCount?merchantId=" + this.merchantId + '&isPlatform=' + this.tabIndex).then(
- res => {
- if (res.data.code == 200) {
- this.typeList = res.data.result
- }
- })
- }
- },
- mounted() {
- this.getProductList()
- this.getStatus()
- },
- onShow() {
- let that = this
- uni.getStorage({
- key: 'login_user_info',
- success: function (res) {
- that.merchantId = res.data.merchantId
- }
- })
- uni.removeStorage({
- key: 'smdate',
- });
- uni.removeStorage({
- key: 'group',
- });
- }
- }
- </script>
- <style lang="scss" scoped>
- .product {
- width: 100%;
- height: 100vh;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- background: #F7F8FC;
- .top {
- width: 100%;
- height: var(--status-bar-height);
- background: linear-gradient(87deg, #FFFFFF 0%, #A3CDFF 100%), linear-gradient(360deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
- }
- .head {
- width: 100%;
- background: #ffffff;
- .handle {
- height: 112rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0px 24rpx;
- position: relative;
- background: linear-gradient(87deg, #FFFFFF 0%, #A3CDFF 100%), linear-gradient(360deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
- .head_left {
- font-size: 40rpx;
- }
- .center {
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translate(-50%, -50%);
- font-size: 36rpx;
- font-weight: 600;
- }
- .head_right {
- display: flex;
- justify-content: space-between;
- align-items: center;
- span {
- width: 40rpx;
- height: 40rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .manage {
- // width: 150rpx;
- margin-left: 28rpx;
- }
- }
- }
- .search {
- width: 93%;
- height: 56rpx;
- background: #F7F8FC;
- border-radius: 12rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin: 24rpx auto;
- font-size: 26rpx;
- padding: 13rpx 20rpx;
- span {
- margin-right: 15rpx;
- }
- input {
- flex: 1;
- font-size: 26rpx;
- }
- .search_btn {
- width: 72rpx;
- color: #333333;
- display: flex;
- align-items: center;
- justify-content: space-between;
- span {
- display: block;
- width: 1px;
- height: 26rpx;
- background-color: #eeeeee;
- }
- }
- }
- .type {
- display: flex;
- justify-content: space-between;
- background-color: #fff;
- padding: 8px 24rpx 16rpx;
- .type_item {
- height: 54rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: 26rpx;
- color: #888888;
- position: relative;
- padding: 8rpx 12rpx;
- background: #F2F3F5;
- border-radius: 8rpx;
- }
- .active {
- color: #2D88F4;
- background: #ECF5FF;
- }
- }
- }
- .list {
- width: 100%;
- flex: 1;
- // padding: 0px 20rpx;
- overflow-y: auto;
- .product_item {
- width: 100%;
- background-color: #fff;
- border-radius: 20rpx;
- padding: 20rpx 40rpx;
- margin-top: 20rpx;
- .status {
- display: flex;
- align-items: center;
- position: relative;
- .round {
- display: flex;
- align-items: center;
- color: #49A03F;
- }
- .round::before {
- content: "";
- display: inline-block;
- width: 9rpx;
- height: 9rpx;
- background: #49A03F;
- border-radius: 50%;
- margin-right: 8rpx;
- }
- .no {
- color: #666666;
- }
- .no::before {
- content: "";
- display: inline-block;
- width: 9rpx;
- height: 9rpx;
- background: #666666;
- border-radius: 50%;
- margin-right: 8rpx;
- }
- .audit {
- display: flex;
- align-items: center;
- color: #596ABB;
- }
- .audit::before {
- content: "";
- display: inline-block;
- width: 9rpx;
- height: 9rpx;
- background: #596ABB;
- border-radius: 50%;
- margin-right: 8rpx;
- }
- .reject {
- display: flex;
- align-items: center;
- color: #F55D65;
- }
- .reject::before {
- content: "";
- display: inline-block;
- width: 9rpx;
- height: 9rpx;
- background: #F55D65;
- border-radius: 50%;
- margin-right: 8rpx;
- }
- .line {
- display: block;
- width: 1rpx;
- height: 20rpx;
- background: #d9d9d9;
- margin: 0 12rpx;
- }
- .error {
- position: absolute;
- top: 0;
- right: 0;
- width: 140rpx;
- height: 53rpx;
- border-radius: 4rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .overtime {
- background: #FFF2E8;
- color: #FF7918;
- }
- .insufficient {
- background: #FFE8E8;
- color: #FF1818;
- }
- }
- .details {
- width: 100%;
- height: auto;
- min-height: 132rpx;
- height: 132rpx;
- display: flex;
- align-items: center;
- margin-top: 20rpx;
- .img {
- margin-right: 16rpx;
- border-radius: 12rpx;
- overflow: hidden;
- image {
- width: 132rpx;
- height: 132rpx;
- }
- }
- .data {
- flex: 1;
- height: 100%;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- font-weight: 600;
- font-style: 28rpx;
- position: relative;
- .repertory {
- font-size: 24rpx;
- display: flex;
- align-items: center;
- color: #666;
- font-weight: 400;
- span {
- // display: block;
- // width: 1rpx;
- // height: 20rpx;
- // background: #d9d9d9;
- margin-left: 12rpx;
- }
- }
- .price {
- display: flex;
- align-items: center;
- font-size: 30rpx;
- font-weight: 600;
- span {
- font-size: 26rpx;
- margin-left: 20rpx;
- font-weight: 400;
- }
- }
- image {
- position: absolute;
- top: 50%;
- right: 50rpx;
- transform: translateY(-50%);
- width: 50rpx;
- height: 50rpx;
- }
- }
- .tag {
- width: 40rpx;
- height: 40rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- image {
- width: 40rpx;
- height: 40rpx;
- }
- }
- }
- .btn_box {
- width: 100%;
- display: flex;
- justify-content: flex-end;
- align-items: center;
- margin-top: 20rpx;
- .delist {
- width: 100rpx;
- height: 50rpx;
- border-radius: 8rpx;
- border: 1px solid #CCCCCC;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: 26rpx;
- color: #666666;
- }
- .select {
- width: 178rpx;
- height: 50rpx;
- background: rgba(68, 154, 255, 0.05);
- border-radius: 8rpx;
- border: 1px solid #449AFF;
- font-size: 26rpx;
- color: #449AFF;
- text-align: center;
- line-height: 50rpx;
- margin-right: 20rpx;
- }
- .edit {
- margin-left: 20rpx;
- background: rgba(68, 154, 255, 0.05);
- border: 1px solid #449AFF;
- color: #449AFF;
- }
- }
- }
- }
- .creat {
- width: 100%;
- height: 100rpx;
- background-color: #fff;
- display: flex;
- justify-content: center;
- align-items: center;
- .btn {
- width: 672rpx;
- height: 76rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- background: linear-gradient(90deg, #77B6FF 0%, #449AFF 100%);
- border-radius: 75rpx;
- font-size: 28rpx;
- color: #FFFFFF;
- image {
- width: 40rpx;
- height: 40rpx;
- margin-right: 10rpx;
- }
- }
- .operate {
- width: 100%;
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0px 20rpx;
- .delete {
- width: 205rpx;
- height: 76rpx;
- background: linear-gradient(90deg, #77B6FF 0%, #449AFF 100%);
- border-radius: 49rpx;
- font-size: 28rpx;
- color: #FFFFFF;
- display: flex;
- justify-content: center;
- align-items: center;
- margin-right: 24rpx;
- margin-left: 140rpx;
- }
- .delist {
- margin-left: 0rpx;
- background: linear-gradient(90deg, #FFA05B 0%, #FF7918 100%);
- }
- .all {
- width: 25%;
- // height: 60rpx;
- // border: 1px solid #999;
- display: flex;
- justify-content: center;
- align-items: center;
- image {
- width: 40rpx;
- height: 40rpx;
- margin-right: 10rpx;
- }
- }
- }
- }
- .popup {
- width: 100vw;
- height: 100vh;
- position: fixed;
- top: 0;
- left: 0;
- background: rgba(0, 0, 0, 0.4);
- display: flex;
- align-items: center;
- justify-content: center;
- .content {
- width: 570rpx;
- background: #FFFFFF;
- border-radius: 16rpx;
- padding: 0px 24rpx;
- padding-bottom: 16rpx;
- .title {
- width: 100%;
- height: 86rpx;
- font-size: 32rpx;
- color: #333333;
- font-weight: 600;
- border-bottom: 1px solid #EEEEEE;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .center {
- height: 190rpx;
- font-size: 30rpx;
- color: #333333;
- line-height: 35rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding-top: 28rpx;
- border-bottom: 1px solid #EEEEEE;
- padding-bottom: 40rpx;
- margin-bottom: 16rpx;
- .error {
- text-align: center;
- }
- image {
- width: 100rpx;
- height: 100rpx;
- margin-bottom: 10rpx;
- }
- }
- .sub {
- width: 320rpx;
- height: 68rpx;
- border-radius: 66rpx;
- font-size: 28rpx;
- color: #FFFFFF;
- display: flex;
- align-items: center;
- justify-content: center;
- margin: 0rpx auto;
- .button {
- width: 320rpx;
- height: 68rpx;
- background: #449AFF;
- border-radius: 66rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- }
- .btn {
- width: 100%;
- height: 68rpx;
- border-radius: 66rpx;
- font-size: 28rpx;
- color: #FFFFFF;
- display: flex;
- align-items: center;
- justify-content: space-around;
- margin: 0rpx auto;
- .cancel {
- width: 241rpx;
- height: 68rpx;
- border-radius: 54rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- border: 1px solid #cccccc;
- font-size: 28rpx;
- color: #999999;
- }
- .button {
- width: 241rpx;
- height: 68rpx;
- background: #449AFF;
- border-radius: 54rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- }
- .start {
- background: #53CC48;
- }
- .rest {
- background: #FF8024;
- }
- }
- }
- }
- .tab-container {
- display: flex;
- justify-content: space-around;
- .tab-item {
- position: relative;
- padding: 18rpx 0;
- cursor: pointer;
- color: #333;
- font-weight: 400;
- font-size: 28rpx;
- }
- .tab-item.active {
- color: #449AFF;
- font-weight: 600;
- }
- .tab-item.active::after {
- content: '';
- position: absolute;
- bottom: -28px;
- left: 35%;
- width: 38rpx;
- height: 100%;
- background: url(/static/product/tab-act.png) no-repeat;
- background-size: contain;
- }
- }
- </style>
|