Просмотр исходного кода

水电代码第一次代码合并

zhang 5 лет назад
Родитель
Сommit
d93b729eeb
3 измененных файлов с 42 добавлено и 1 удалено
  1. 12 0
      App.vue
  2. 25 0
      pages.json
  3. 5 1
      pages/index/index.vue

+ 12 - 0
App.vue

@@ -84,4 +84,16 @@
 	.icon-qian:before {
 	  content: "\e7a9";
 	}
+	
+	.icon-5_zhongzhi:before {
+	  content: "\e67a";
+	}
+	
+	.icon-sanjiaoxing:before {
+	  content: "\e6e6";
+	}
+	
+	.icon-jiantou:before {
+	  content: "\e624";
+	}
 </style>

+ 25 - 0
pages.json

@@ -21,6 +21,31 @@
 				"navigationBarTitleText": "钱包充值",
 				"enablePullDownRefresh": false
 			}
+		},{
+			"path": "pages/jiaofei/jiaofei",
+			"style": {
+				"navigationBarTitleText": "缴电费",
+				"enablePullDownRefresh": true
+			}
+		}
+		,
+		{
+		    "path" : "pages/show/show",
+		    "style" :                                                                                    
+		    {
+		        "navigationBarTitleText": "台账管理",
+		        "enablePullDownRefresh": false
+		    }
+		    
+		},
+		{
+		    "path" : "pages/select/select",
+		    "style" :                                                                                    
+		    {
+		        "navigationBarTitleText": "缴电费",
+		        "enablePullDownRefresh": false
+		    }
+		    
 		}
 	],
 	"globalStyle": {

+ 5 - 1
pages/index/index.vue

@@ -10,7 +10,8 @@
 					<image src="../../static/images/shower2x.png" mode=""></image>
 					<text>洗 浴</text>
 				</navigator>
-				<navigator url="" open-type="redirect" class="menu_item">
+				<navigator :url="'/pages/jiaofei/jiaofei?item=' + encodeURIComponent(JSON.stringify(this.userinfo))"
+					open-type="redirect" class="menu_item">
 					<image src="../../static/images/recharge2x.png" mode=""></image>
 					<text>电费充值</text>
 				</navigator>
@@ -165,6 +166,7 @@
 				} else {
 					this.access_token = res.data.access_token;
 					this.refresh_token = res.data.refresh_token;
+					
 
 					// 通过access_token换取用户信息
 					this.get_user_info();
@@ -197,6 +199,8 @@
 						this.userinfo.appid = this.appid_pass
 						this.userinfo.app_secret = this.app_secret_pass
 						this.userinfo.ocode = this.ocode_pass
+						this.userinfo.access_token = this.access_token
+						// console.log(this.access_token)
 						// 存储用户信息
 						uni.setStorageSync('userinfo_storage_key', this.userinfo)
 						// 提示授权成功