Browse Source

commti 通知消息

zhengjinyi 3 years ago
parent
commit
1bcb1c7f7b
3 changed files with 30 additions and 18 deletions
  1. 27 15
      pages/supplier/user/my-product.vue
  2. 2 2
      services/config.env.js
  3. 1 1
      services/shop.service.js

+ 27 - 15
pages/supplier/user/my-product.vue

@@ -1,19 +1,24 @@
 <template>
 <template>
 	<view class="container product clearfix">
 	<view class="container product clearfix">
-		<view class="superv-header">
-			<view class="superv-header-click" v-if="!isSuperv">
-				<view class="oltext" @click="supervClickFn">管理</view>
-				<view class="ortext" @click="searchClickFn">筛选</view>
-			</view>
-			<view class="superv-header-checked" v-else>
-				<view class="oltext" @click="isCheckedAll">
-					<view class="checkbox iconfont" :class="[isAllChecked ?'icon-yixuanze':'icon-weixuanze']"></view>
-					<view class="text">全选</view>
+		<view class="superv-header" :class="forbid ? 'forbid' : ''">
+			<template v-if="forbid">
+				<text>提示:您的上架费已到期,已禁止商品的所有操作,支付账户上架费后才能继续操作。</text>
+			</template>
+			<template v-else>
+				<view class="superv-header-click" v-if="!isSuperv">
+					<view class="oltext" @click="supervClickFn">管理</view>
+					<view class="ortext" @click="searchClickFn">筛选</view>
 				</view>
 				</view>
-				<view class="ortext" @click="closeSupervFn">完成</view>
-			</view>
+				<view class="superv-header-checked" v-else>
+					<view class="oltext" @click="isCheckedAll">
+						<view class="checkbox iconfont" :class="[isAllChecked ?'icon-yixuanze':'icon-weixuanze']"></view>
+						<view class="text">全选</view>
+					</view>
+					<view class="ortext" @click="closeSupervFn">完成</view>
+				</view>
+			</template>
 		</view>
 		</view>
-		<view class="product-content">
+		<view class="product-content" :style="{ paddingTop :forbid ? '100rpx' : '80rpx' }">
 			<view  :class="{'tui-order-list':scrollTop >= 0}" class="clearfix">
 			<view  :class="{'tui-order-list':scrollTop >= 0}" class="clearfix">
 				<!-- 空白页 -->
 				<!-- 空白页 -->
 				<view class="empty-container" v-if="isEmpty">
 				<view class="empty-container" v-if="isEmpty">
@@ -23,7 +28,7 @@
 				<!-- 列表 -->
 				<!-- 列表 -->
 				<checkbox-group @change="buyChange" class="tui-group">
 				<checkbox-group @change="buyChange" class="tui-group">
 					<view class="tui-cart-cell  tui-mtop" v-for="(item,index) in dataList" :key="index">
 					<view class="tui-cart-cell  tui-mtop" v-for="(item,index) in dataList" :key="index">
-						<tui-swipe-actions :actions="item.actions" @click="handlerButton($event,item)" :params="item">
+						<tui-swipe-actions :actions="item.actions" @click="handlerButton($event,item)" :params="item" :forbid="forbid">
 							<template v-slot:content>
 							<template v-slot:content>
 								<view class="tui-goods-item">
 								<view class="tui-goods-item">
 									<view class="tui-goods-checkBox" v-if="isSuperv">
 									<view class="tui-goods-checkBox" v-if="isSuperv">
@@ -223,6 +228,7 @@
 				isCmcustomClass : 'left',
 				isCmcustomClass : 'left',
 				featuredNum:0,
 				featuredNum:0,
 				productIds:'',//批量下架操作商品ID
 				productIds:'',//批量下架操作商品ID
+				forbid:true
 				
 				
 			}
 			}
 		},
 		},
@@ -706,8 +712,15 @@
 		top: 0;
 		top: 0;
 		left: 0;
 		left: 0;
 		box-sizing: border-box;
 		box-sizing: border-box;
-		padding: 0 24rpx;
 		z-index: 999;
 		z-index: 999;
+		&.forbid{
+			height: 100rpx;
+			padding: 10rpx 24rpx;
+			background-color: #FFF3F3;
+			line-height: 40rpx;
+			font-size: 24rpx; 
+			color:#F94B4B ;
+		}
 		.superv-header-click{
 		.superv-header-click{
 			width: 100%;
 			width: 100%;
 			height: 80rpx;
 			height: 80rpx;
@@ -918,7 +931,6 @@
 		height: auto;
 		height: auto;
 		position: relative;
 		position: relative;
 		padding:0;
 		padding:0;
-		padding-top: 80rpx;
 		box-sizing: border-box;
 		box-sizing: border-box;
 		.header-tabs{
 		.header-tabs{
 			width: 100%;
 			width: 100%;

+ 2 - 2
services/config.env.js

@@ -3,8 +3,8 @@ if(process.env.NODE_ENV === 'development'){
     // 开发环境
     // 开发环境
     // URL_CONFIG = 'http://192.168.2.67:18002'	 //智捷联调地址
     // URL_CONFIG = 'http://192.168.2.67:18002'	 //智捷联调地址
     // URL_CONFIG = 'http://192.168.2.68:18002'	 //涛涛联调地址
     // URL_CONFIG = 'http://192.168.2.68:18002'	 //涛涛联调地址
-    URL_CONFIG = 'http://192.168.2.180:18002'	 //超超联调地址
-    // URL_CONFIG = 'https://core-b.caimei365.com'
+    // URL_CONFIG = 'http://192.168.2.180:18002'	 //超超联调地址
+    URL_CONFIG = 'https://core-b.caimei365.com'
     // URL_CONFIG = 'https://core.caimei365.com'
     // URL_CONFIG = 'https://core.caimei365.com'
 }else{
 }else{
     // 生产环境
     // 生产环境

+ 1 - 1
services/shop.service.js

@@ -33,7 +33,7 @@ export default class ShopService {
         return this.AjaxService.get({ 
         return this.AjaxService.get({ 
             url:'/commodity/shop/product/list', 
             url:'/commodity/shop/product/list', 
             data, 
             data, 
-            isLoading: true ,
+            isLoading: false ,
 			  
 			  
         })
         })
     }
     }