浏览代码

commit - 首页改版

zhengjinyi 4 年之前
父节点
当前提交
8fdc75e9cd
共有 3 个文件被更改,包括 14 次插入10 次删除
  1. 10 5
      pages/tabBar/category/index.vue
  2. 2 4
      seller/pages/login/login.vue
  3. 2 1
      services/ajax.env.js

+ 10 - 5
pages/tabBar/category/index.vue

@@ -24,17 +24,22 @@
 							</view>
 						</view>
 						<view v-else class="no-data">
-							<view class="box" @click.stop="navToListPage(first,1)">
+							<view class="box" @click.stop="navToListPage(small,2)">
 								<image src="https://static-b.caimei365.com/app/img/icon/icon-noneproduct.jpg"></image>
 								<view class="text">全部商品</view>
 							</view>
 						</view>
 					</view>
 				</view>
-				<view v-else class="no-data">
-					<view class="box" @click.stop="navToListPage(small,2)">
-						<image src="https://static-b.caimei365.com/app/img/icon/icon-noneproduct.jpg"></image>
-						<view class="text">全部商品</view>
+				<view class="category" v-else v-for="(first,index) in categoryList" :key="index" v-show="index==showCategoryIndex" >
+					<view class="category-box">
+						<view class="title">{{first.name}}</view>
+						<view class="no-data">
+							<view class="box" @click.stop="navToListPage(first,1)">
+								<image src="https://static-b.caimei365.com/app/img/icon/icon-noneproduct.jpg"></image>
+								<view class="text">全部商品</view>
+							</view>
+						</view>
 					</view>
 				</view>
 			</scroll-view>

+ 2 - 4
seller/pages/login/login.vue

@@ -117,16 +117,14 @@
 			},
 			SellerLogin(){
 				this.SellerService.SellerLogin({mobile:this.accountNumber,password:this.password}).then(response =>{
-					if(response.code == '0' ){
 						this.$store.commit('updateStatus',response.data)
 						this.login(response.data);
 						uni.setStorageSync('token',response.data.token)
 						uni.removeStorageSync('sessionid')
 						uni.setStorageSync('sessionid','JSESSIONID='+response.data.sessionId)
 						this.$api.redirectTo('/seller/pages/index/index')
-					}else{
-						this.$util.msg(response.msg,2000);
-					}
+				}).catch(error =>{
+					this.$util.msg(error.msg,2000);
 				})
 			},
 			storeUpdataeStatus(data){

+ 2 - 1
services/ajax.env.js

@@ -8,7 +8,8 @@ if(process.env.NODE_ENV === 'development'){
 	// URL_CONFIG = 'https://spi.caimei365.com'
 }else{
     // 生产环境
+	URL_CONFIG = 'http://192.168.2.68:8008'
 	// URL_CONFIG = 'https://spi-b.caimei365.com'
-    URL_CONFIG = 'https://spi.caimei365.com'
+    // URL_CONFIG = 'https://spi.caimei365.com'
 }
 export default URL_CONFIG