zhengjinyi 5 years ago
parent
commit
ef0fa6f8fe

+ 1 - 1
.gitignore

@@ -1,3 +1,3 @@
 unpackage/
 unpackage/
 .gitignore
 .gitignore
-/common/config/config.js
+common/config/config.js

+ 2 - 2
common/config/config.js

@@ -1,9 +1,9 @@
 let URL_CONFIG = ""
 let URL_CONFIG = ""
 if(process.env.NODE_ENV === 'development'){
 if(process.env.NODE_ENV === 'development'){
     // 开发环境
     // 开发环境
-	URL_CONFIG = 'http://192.168.1.22:8008'	 //裴裴联调地址
+	// URL_CONFIG = 'http://192.168.1.22:8008'	 //裴裴联调地址
 	// URL_CONFIG = 'http://192.168.1.26:8008'	 //超超联调地址
 	// URL_CONFIG = 'http://192.168.1.26:8008'	 //超超联调地址
-    // URL_CONFIG = 'https://spi-b.caimei365.com'//采美测试地址
+    URL_CONFIG = 'https://spi-b.caimei365.com'//采美测试地址
 }else{
 }else{
     // 生产环境
     // 生产环境
     URL_CONFIG = 'https://spi.caimei365.com'
     URL_CONFIG = 'https://spi.caimei365.com'

+ 2 - 6
pages.json

@@ -9,7 +9,8 @@
 		},{
 		},{
 			"path": "pages/authorization/authorization",
 			"path": "pages/authorization/authorization",
 			"style": {
 			"style": {
-				"navigationBarTitleText": "微信授权"
+				"navigationBarTitleText": "微信授权",
+				"navigationStyle":"custom"
 			}
 			}
 		},{
 		},{
 		    "path" : "pages/tabBar/category/category",
 		    "path" : "pages/tabBar/category/category",
@@ -68,11 +69,6 @@
 				"navigationBarTitleText": "商品详情",
 				"navigationBarTitleText": "商品详情",
 				"navigationStyle":"custom"
 				"navigationStyle":"custom"
 			}
 			}
-		},{
-			"path": "pages/goods/product-detail",
-			"style": {
-				"navigationStyle":"custom"
-			}
 		},{
 		},{
 			"path": "pages/service/aftersale",
 			"path": "pages/service/aftersale",
 			"style": {
 			"style": {

+ 20 - 3
pages/authorization/authorization.vue

@@ -1,5 +1,6 @@
 <template>
 <template>
-	<view class="container login">
+	<view class="container login" :style="{paddingTop:CustomBar+'px'}">
+		<cu-custom :navbar-data='nvabarData' @navigateBack="hanldNavigateBack"></cu-custom>
 		<view class="login-main">
 		<view class="login-main">
 			<image class="logo" src="../../static/login-logo@3x.png" mode=""></image>
 			<image class="logo" src="../../static/login-logo@3x.png" mode=""></image>
 			<text class="logo-text">生美/医美采购服务平台</text>
 			<text class="logo-text">生美/医美采购服务平台</text>
@@ -22,11 +23,18 @@
 	export default{
 	export default{
 		data() {
 		data() {
 			return{
 			return{
+				nvabarData: {		//顶部自定义导航
+					showCapsule: 1, // 是否显示左上角图标  1表示显示  0表示不显示,
+					showSearch: 0,
+					title: '微信授权', // 导航栏 中间的标题
+				},
+				CustomBar:this.CustomBar,// 顶部导航栏高度
 				authorizeType:''
 				authorizeType:''
 			}
 			}
 		},
 		},
 		onLoad(e) {
 		onLoad(e) {
 			this.authorizeType = e.type
 			this.authorizeType = e.type
+			console.log(e)
 		},
 		},
 		methods:{
 		methods:{
 			//授权登录 
 			//授权登录 
@@ -38,12 +46,18 @@
 			    }
 			    }
 			 },
 			 },
 			undGetuserinfo(){
 			undGetuserinfo(){
+				this.hanldBackFn()
+			},
+			hanldNavigateBack(){
+				this.hanldBackFn()
+			},
+			hanldBackFn(){
 				switch(this.authorizeType){
 				switch(this.authorizeType){
 					case '0':
 					case '0':
 						this.$api.switchTabTo('/pages/tabBar/home/home')
 						this.$api.switchTabTo('/pages/tabBar/home/home')
 						break;
 						break;
-					default :
-						uni.navigateBack({delta: 1});
+					default:
+						uni.navigateBack({delta: 1})
 				}
 				}
 			},
 			},
 			wxGetUserInfo(){
 			wxGetUserInfo(){
@@ -58,6 +72,9 @@
 					});	
 					});	
 				})
 				})
 			},
 			},
+		},
+		onHide(){
+			this.$api.switchTabTo('/pages/tabBar/home/home')
 		}
 		}
 	}
 	}
 </script>
 </script>

+ 0 - 1
pages/login/register.vue

@@ -302,7 +302,6 @@
 	import authorize from '@/common/config/authorize.js' 
 	import authorize from '@/common/config/authorize.js' 
 	import { organizationRegister , organizationVerifyRegisterFirst ,organizationVerifyRegisterTwo } from "@/api/use.js"
 	import { organizationRegister , organizationVerifyRegisterFirst ,organizationVerifyRegisterTwo } from "@/api/use.js"
 	import { getImageCode, getEmailCode, getMobileCode, uploadFileImage } from "@/api/utils.js"
 	import { getImageCode, getEmailCode, getMobileCode, uploadFileImage } from "@/api/utils.js"
-	var self;
 	export default{
 	export default{
 		components:{
 		components:{
 			mpvueCityPicker
 			mpvueCityPicker

+ 1 - 2
pages/tabBar/home/home.vue

@@ -274,8 +274,7 @@
 			},
 			},
 			navToDetailPage(id) {//跳转商品详情页
 			navToDetailPage(id) {//跳转商品详情页
 				this.modallayer = true;
 				this.modallayer = true;
-				this.$api.navigateTo(`/pages/goods/product-detail?id=${id}`)
-				// this.$api.navigateTo(`/pages/goods/product?id=${id}`)
+				this.$api.navigateTo(`/pages/goods/product?id=${id}`)
 			},
 			},
 			handleContact(e){
 			handleContact(e){
 				console.log(e.detail.path)
 				console.log(e.detail.path)

+ 2 - 2
pages/tabBar/user/user.vue

@@ -152,7 +152,7 @@
 			}
 			}
 		},
 		},
 		onLoad(){
 		onLoad(){
-			
+
 		},
 		},
 		computed: {
 		computed: {
 			...mapState(['hasLogin','userInfo'])
 			...mapState(['hasLogin','userInfo'])
@@ -227,7 +227,7 @@
 						}
 						}
 					})	
 					})	
 				}
 				}
-			}
+			},			
 		}
 		}
 	}
 	}
 </script>
 </script>