Browse Source

未申请入驻的跳转申请入驻页面

htc 8 months ago
parent
commit
2ebb0aa36b
5 changed files with 95 additions and 2 deletions
  1. 1 1
      manifest.json
  2. 7 0
      pages.json
  3. 82 0
      pages/login/apply.vue
  4. 5 1
      pages/login/index.vue
  5. BIN
      static/apply.png

+ 1 - 1
manifest.json

@@ -1,6 +1,6 @@
 {
     "name" : "嵊泗商户端",
-    "appid" : "__UNI__3A1C8AF",
+    "appid" : "__UNI__40A92BD",
     "description" : "",
     "versionName" : "1.0.0",
     "versionCode" : "100",

+ 7 - 0
pages.json

@@ -8,6 +8,13 @@
 				"navigationStyle": "custom"
 			}
 		},
+		{
+			"path": "pages/login/apply",
+			"style": {
+				"navigationBarTitleText": "选择门店",
+				"navigationStyle": "custom"
+			}
+		},
 		{
 			"path": "pages/home/index",
 			"style": {

+ 82 - 0
pages/login/apply.vue

@@ -0,0 +1,82 @@
+<template>
+	<view class="page" :style="{'height':h+'px','padding-top':mt+'px'}">
+		<c-nav-bar title="选择门店" backUrl="/pages/login/index" :showHome="false"></c-nav-bar>
+		<view class="info">
+			<image src="@/static/apply.png"></image>
+			<view class="text">您暂未入驻,还没有门店信息 请去“游嵊泗”小程序用户端 提交资料申请入驻~</view>
+		</view>
+		<view class="apply" @tap="apply">申请入驻</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		methods: {
+			apply(){
+				uni.navigateToMiniProgram({
+					appId:"wx3ff22b7cc3ede307",
+					path: "pages/my/index",    
+					success(res) {
+						
+					},
+					fail(err) {
+						this.$showToast('跳转“游嵊泗”小程序失败')
+					}
+				})
+			}
+		}
+	}
+</script>
+
+<style scoped lang="less">
+	.page {
+		background: #F5F8FA;
+		display: flex;
+		flex-direction: column;
+		align-items: center;
+		width: 100%;
+		padding: 0 88rpx;
+		box-sizing: border-box;
+		
+		.info{
+			width: 100%;
+			padding: 0 68rpx;
+			box-sizing: border-box;
+			display: flex;
+			flex-direction: column;
+			align-items: center;
+			margin-top: 220rpx;
+			image{
+				width: 438rpx;
+				height: 310rpx;
+			}
+			.text{
+				width: 100%;
+				padding: 0 11rpx;
+				box-sizing: border-box;
+				margin-top: 37rpx;
+				font-family: PingFangSC, PingFang SC;
+				font-weight: 400;
+				font-size: 32rpx;
+				color: #333333;
+				line-height: 45rpx;
+				text-align: center;
+			}
+		}
+		
+		.apply{
+			margin-top: 288rpx;
+			width: 100%;
+			height: 90rpx;
+			background: #1372FF;
+			border-radius: 47rpx;
+			line-height: 90rpx;
+			text-align: center;
+			font-family: PingFang-SC, PingFang-SC;
+			font-weight: bold;
+			font-size: 32rpx;
+			color: #FFFFFF;
+			letter-spacing: 2rpx;
+		}
+	}
+</style>

+ 5 - 1
pages/login/index.vue

@@ -62,7 +62,11 @@
 										}, 1500)
 									} else that.$showToast(resu.data.msg)
 								})
-							} else that.$showToast(result.data.msg)
+							} else{
+								if(result.data.msg.indexOf('请先申请成为商家')>-1){
+									uni.navigateTo({ url: '/pages/login/apply' })
+								}else that.$showToast(result.data.msg)
+							} 
 						})
 					}
 				})

BIN
static/apply.png