茶室
This commit is contained in:
		
							parent
							
								
									c9d371fbc0
								
							
						
					
					
						commit
						5181a2a464
					
				| 
						 | 
					@ -20,8 +20,8 @@ const install = (Vue, vm) => {
 | 
				
			||||||
	// 	},
 | 
						// 	},
 | 
				
			||||||
	// https://yxd.ccttiot.com/prod-api}); 
 | 
						// https://yxd.ccttiot.com/prod-api}); 
 | 
				
			||||||
	Vue.prototype.$u.http.setConfig({
 | 
						Vue.prototype.$u.http.setConfig({
 | 
				
			||||||
			baseUrl: 'http://192.168.2.79:8089',  
 | 
								// baseUrl: 'http://192.168.2.79:8089',  
 | 
				
			||||||
			// baseUrl: 'https://testcha.chuangtewl.com/prod-api',
 | 
								baseUrl: 'https://testcha.chuangtewl.com/prod-api',
 | 
				
			||||||
			loadingText: '努力加载中~',
 | 
								loadingText: '努力加载中~',
 | 
				
			||||||
			loadingTime: 800,
 | 
								loadingTime: 800,
 | 
				
			||||||
			// 设置自定义头部content-type
 | 
								// 设置自定义头部content-type
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -20,7 +20,8 @@
 | 
				
			||||||
       	    </view>
 | 
					       	    </view>
 | 
				
			||||||
       </view>
 | 
					       </view>
 | 
				
			||||||
	   <scroll-view class="list" scroll-y style="height: 81vh;" @scrolltolower="onScrollToLower">
 | 
						   <scroll-view class="list" scroll-y style="height: 81vh;" @scrolltolower="onScrollToLower">
 | 
				
			||||||
	   	<view class="list_item" v-for="(item,index) in listka" :key="index">
 | 
							   <!-- listka -->
 | 
				
			||||||
 | 
						   	<view class="list_item" v-for="(item,index) in 0" :key="index">
 | 
				
			||||||
				<image src="https://api.ccttiot.com/smartmeter/img/static/u9yhfTszqRFL3zhHWyR7" mode=""></image>
 | 
									<image src="https://api.ccttiot.com/smartmeter/img/static/u9yhfTszqRFL3zhHWyR7" mode=""></image>
 | 
				
			||||||
				<view class="top">
 | 
									<view class="top">
 | 
				
			||||||
					<view class="lt">
 | 
										<view class="lt">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1075,7 +1075,8 @@
 | 
				
			||||||
		font-weight: 600;
 | 
							font-weight: 600;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	.hour-item.is-reserved {
 | 
						.hour-item.is-reserved {
 | 
				
			||||||
		background-color: #48893B !important;
 | 
							background-color: #226914 !important;
 | 
				
			||||||
 | 
							height: 10rpx !important;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	#active {
 | 
						#active {
 | 
				
			||||||
| 
						 | 
					@ -1563,7 +1564,7 @@
 | 
				
			||||||
						width: 100%;
 | 
											width: 100%;
 | 
				
			||||||
						display: flex;
 | 
											display: flex;
 | 
				
			||||||
						justify-content: center;
 | 
											justify-content: center;
 | 
				
			||||||
 | 
					                        align-items: center;
 | 
				
			||||||
						view {
 | 
											view {
 | 
				
			||||||
							width: 26rpx;
 | 
												width: 26rpx;
 | 
				
			||||||
							height: 6rpx;
 | 
												height: 6rpx;
 | 
				
			||||||
| 
						 | 
					@ -1668,7 +1669,8 @@
 | 
				
			||||||
							margin-top: 28rpx;
 | 
												margin-top: 28rpx;
 | 
				
			||||||
                            flex-wrap: wrap;
 | 
					                            flex-wrap: wrap;
 | 
				
			||||||
							view {
 | 
												view {
 | 
				
			||||||
								max-width: 104rpx;
 | 
													text-align: center;
 | 
				
			||||||
 | 
													width: 84rpx;
 | 
				
			||||||
								height: 46rpx;
 | 
													height: 46rpx;
 | 
				
			||||||
								font-size: 26rpx;
 | 
													font-size: 26rpx;
 | 
				
			||||||
								color: #48893B;
 | 
													color: #48893B;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -203,6 +203,7 @@
 | 
				
			||||||
										let data = {
 | 
															let data = {
 | 
				
			||||||
											jsCode:  e.detail.code,
 | 
																jsCode:  e.detail.code,
 | 
				
			||||||
											mobileCode: res.code,
 | 
																mobileCode: res.code,
 | 
				
			||||||
 | 
																appid:4
 | 
				
			||||||
										}
 | 
															}
 | 
				
			||||||
										resolve(data);
 | 
															resolve(data);
 | 
				
			||||||
									} else {
 | 
														} else {
 | 
				
			||||||
| 
						 | 
					@ -216,7 +217,7 @@
 | 
				
			||||||
						})
 | 
											})
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
					wxLoginAsync().then(async (data) => {
 | 
										wxLoginAsync().then(async (data) => {
 | 
				
			||||||
						this.$u.post(`/wxlogin?mobileCode=${this.jsCode}&jsCode=${this.mobileCode}`, data).then((res) => {
 | 
											this.$u.post(`/wxlogin?mobileCode=${this.jsCode}&jsCode=${this.mobileCode}&appid=4`, data).then((res) => {
 | 
				
			||||||
							if (res.code == 200) {
 | 
												if (res.code == 200) {
 | 
				
			||||||
								wx.setStorageSync('token', res.token)
 | 
													wx.setStorageSync('token', res.token)
 | 
				
			||||||
								uni.reLaunch({
 | 
													uni.reLaunch({
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -201,6 +201,7 @@
 | 
				
			||||||
										let data = {
 | 
															let data = {
 | 
				
			||||||
											jsCode:  e.detail.code,
 | 
																jsCode:  e.detail.code,
 | 
				
			||||||
											mobileCode: res.code,
 | 
																mobileCode: res.code,
 | 
				
			||||||
 | 
																appid:4
 | 
				
			||||||
										}
 | 
															}
 | 
				
			||||||
										resolve(data);
 | 
															resolve(data);
 | 
				
			||||||
									} else {
 | 
														} else {
 | 
				
			||||||
| 
						 | 
					@ -214,7 +215,7 @@
 | 
				
			||||||
						})
 | 
											})
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
					wxLoginAsync().then(async (data) => {
 | 
										wxLoginAsync().then(async (data) => {
 | 
				
			||||||
						this.$u.post(`/wxlogin?mobileCode=${this.jsCode}&jsCode=${this.mobileCode}`, data).then((res) => {
 | 
											this.$u.post(`/wxlogin?mobileCode=${this.jsCode}&jsCode=${this.mobileCode}&appid=4`, data).then((res) => {
 | 
				
			||||||
							if (res.code == 200) {
 | 
												if (res.code == 200) {
 | 
				
			||||||
								wx.setStorageSync('token', res.token)
 | 
													wx.setStorageSync('token', res.token)
 | 
				
			||||||
								uni.reLaunch({
 | 
													uni.reLaunch({
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										14
									
								
								pages/my.vue
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								pages/my.vue
									
									
									
									
									
								
							| 
						 | 
					@ -203,6 +203,20 @@
 | 
				
			||||||
				this.$u.get(`/getAppInfo`).then(res => {
 | 
									this.$u.get(`/getAppInfo`).then(res => {
 | 
				
			||||||
					if (res.code == 200) {
 | 
										if (res.code == 200) {
 | 
				
			||||||
						this.user = res.user
 | 
											this.user = res.user
 | 
				
			||||||
 | 
										}else if(res.code == 401){
 | 
				
			||||||
 | 
											uni.showModal({
 | 
				
			||||||
 | 
												    title: '温馨提示',  
 | 
				
			||||||
 | 
												    content: '您该操作需登录,是否前去登录?',  
 | 
				
			||||||
 | 
												    success: function (res) {  
 | 
				
			||||||
 | 
												        if (res.confirm) {
 | 
				
			||||||
 | 
															uni.navigateTo({
 | 
				
			||||||
 | 
																url:'/pages/login/index'
 | 
				
			||||||
 | 
															})
 | 
				
			||||||
 | 
												        } else if (res.cancel) {
 | 
				
			||||||
 | 
												        
 | 
				
			||||||
 | 
												    }  
 | 
				
			||||||
 | 
												}  
 | 
				
			||||||
 | 
											})
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
				})
 | 
									})
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -964,19 +964,19 @@
 | 
				
			||||||
									that.getinfo()
 | 
														that.getinfo()
 | 
				
			||||||
									wx.setStorageSync('token', res.token)
 | 
														wx.setStorageSync('token', res.token)
 | 
				
			||||||
								}else{
 | 
													}else{
 | 
				
			||||||
									uni.showModal({
 | 
														// uni.showModal({
 | 
				
			||||||
										    title: '温馨提示',  
 | 
														// 	    title: '温馨提示',  
 | 
				
			||||||
										    content: '您还未登录,是否前去登录?',  
 | 
														// 	    content: '您还未登录,是否前去登录?',  
 | 
				
			||||||
										    success: function (res) {  
 | 
														// 	    success: function (res) {  
 | 
				
			||||||
										        if (res.confirm) {
 | 
														// 	        if (res.confirm) {
 | 
				
			||||||
													uni.reLaunch({
 | 
														// 				uni.reLaunch({
 | 
				
			||||||
														url:'/pages/login/index'
 | 
														// 					url:'/pages/login/index'
 | 
				
			||||||
													})
 | 
														// 				})
 | 
				
			||||||
										        } else if (res.cancel) {
 | 
														// 	        } else if (res.cancel) {
 | 
				
			||||||
										         
 | 
															         
 | 
				
			||||||
										    }  
 | 
														// 	    }  
 | 
				
			||||||
										}  
 | 
														// 	}  
 | 
				
			||||||
									})
 | 
														// })
 | 
				
			||||||
								}
 | 
													}
 | 
				
			||||||
							})
 | 
												})
 | 
				
			||||||
						}
 | 
											}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user