店铺大改
This commit is contained in:
		
							parent
							
								
									1aa634071f
								
							
						
					
					
						commit
						2a6fb252f8
					
				|  | @ -75,7 +75,7 @@ | ||||||
| 					</view> | 					</view> | ||||||
| 				</view> | 				</view> | ||||||
| 			</view> | 			</view> | ||||||
| 			<view class="li" @click.stop="sremakes()" v-if="isMch"> | 			<view class="li" @click.stop="sremakes"> | ||||||
| 				<view class="tit"> | 				<view class="tit"> | ||||||
| 					归属店铺 | 					归属店铺 | ||||||
| 				</view> | 				</view> | ||||||
|  | @ -292,13 +292,13 @@ | ||||||
| 			this.id = id | 			this.id = id | ||||||
| 			this.getDevice(id) | 			this.getDevice(id) | ||||||
| 			 | 			 | ||||||
| 			this.gettanc() |  | ||||||
| 		}, | 		}, | ||||||
| 		onShow() { | 		onShow() { | ||||||
| 			this.setMode == null | 			this.setMode == null | ||||||
| 			this.taocan = '' | 			this.taocan = '' | ||||||
| 			this.getQiniuToken() | 			this.getQiniuToken() | ||||||
| 			this.getgroup() | 			this.getgroup() | ||||||
|  | 			this.gettanc() | ||||||
| 			this.getlistobj(this.id) | 			this.getlistobj(this.id) | ||||||
| 			this.getuserinfo() | 			this.getuserinfo() | ||||||
| 			this.getao() | 			this.getao() | ||||||
|  |  | ||||||
|  | @ -23,9 +23,9 @@ | ||||||
| 			<view class="" style="width: 100%;text-align: center;color: red;font-size: 28rpx;margin-top: 20rpx;"> | 			<view class="" style="width: 100%;text-align: center;color: red;font-size: 28rpx;margin-top: 20rpx;"> | ||||||
| 				<!-- 请填写真实信息,感谢您的配合! --> | 				<!-- 请填写真实信息,感谢您的配合! --> | ||||||
| 			</view> | 			</view> | ||||||
| 			<view class="" style="width: 100%;color: red;font-size: 28rpx;margin-top: 20rpx;"> | 			<!-- <view class="" style="width: 100%;color: red;font-size: 28rpx;margin-top: 20rpx;"> | ||||||
| 				审核通过后,即可创建店铺,店铺中的设备可在地图中被发现! | 				审核通过后,即可创建店铺,店铺中的设备可在地图中被发现! | ||||||
| 			</view> | 			</view> --> | ||||||
| 			<view class="tijiao" v-if="tjflag" @click="btnshenq">  | 			<view class="tijiao" v-if="tjflag" @click="btnshenq">  | ||||||
| 				提交申请 | 				提交申请 | ||||||
| 			</view> | 			</view> | ||||||
|  |  | ||||||
|  | @ -77,7 +77,7 @@ | ||||||
| 					</view> | 					</view> | ||||||
| 				</view> | 				</view> | ||||||
| 				<view class="baocun" @click="btncreat"> | 				<view class="baocun" @click="btncreat"> | ||||||
| 					确定修改 | 					提交修改 | ||||||
| 				</view> | 				</view> | ||||||
| 			</view> | 			</view> | ||||||
| 
 | 
 | ||||||
|  | @ -341,7 +341,7 @@ | ||||||
| 							this.btnmsk = false | 							this.btnmsk = false | ||||||
| 						} else { | 						} else { | ||||||
| 							uni.showToast({ | 							uni.showToast({ | ||||||
| 								title: '修改成功', | 								title: '提交修改成功', | ||||||
| 								icon: 'success', | 								icon: 'success', | ||||||
| 								duration: 1000 | 								duration: 1000 | ||||||
| 							}) | 							}) | ||||||
|  |  | ||||||
|  | @ -34,6 +34,9 @@ | ||||||
| 					</view> | 					</view> | ||||||
| 					<view class="gzlist"> | 					<view class="gzlist"> | ||||||
| 						<view class="jfgz"> | 						<view class="jfgz"> | ||||||
|  | 							<text>审核状态:</text> {{item.status == 1 ? '正常' : '审核中'}} | ||||||
|  | 						</view> | ||||||
|  | 						<view class="jfgz" style="margin-top: 16rpx;"> | ||||||
| 							<text>绑定人员:</text>{{item.contactName}} | 							<text>绑定人员:</text>{{item.contactName}} | ||||||
| 						</view> | 						</view> | ||||||
| 						<view class="phone"> | 						<view class="phone"> | ||||||
|  | @ -215,7 +218,7 @@ | ||||||
| 					padding: 12rpx 38rpx; | 					padding: 12rpx 38rpx; | ||||||
| 					box-sizing: border-box; | 					box-sizing: border-box; | ||||||
| 					width: 680rpx; | 					width: 680rpx; | ||||||
| 					height: 430rpx; | 					height: 490rpx; | ||||||
| 					background: #FFFFFF; | 					background: #FFFFFF; | ||||||
| 					border-radius: 38rpx 38rpx 38rpx 38rpx; | 					border-radius: 38rpx 38rpx 38rpx 38rpx; | ||||||
| 					margin: auto; | 					margin: auto; | ||||||
|  |  | ||||||
|  | @ -16,7 +16,7 @@ | ||||||
| 										<view class="card_left_sta"> | 										<view class="card_left_sta"> | ||||||
| 											<image | 											<image | ||||||
| 												src="https://api.ccttiot.com/smartmeter/img/static/uZSiz7XWpxcXEkl6sTwj" | 												src="https://api.ccttiot.com/smartmeter/img/static/uZSiz7XWpxcXEkl6sTwj" | ||||||
| 												mode=""></image> | 												mode="aspectFit"></image> | ||||||
| 											<view class="sta_txt" v-if="item.status==3"> | 											<view class="sta_txt" v-if="item.status==3"> | ||||||
| 												维修中 | 												维修中 | ||||||
| 											</view> | 											</view> | ||||||
|  | @ -169,7 +169,7 @@ | ||||||
| 							display: flex; | 							display: flex; | ||||||
| 							margin-top: 20rpx; | 							margin-top: 20rpx; | ||||||
| 							width: 658rpx; | 							width: 658rpx; | ||||||
| 							height: 282rpx; | 							height: 250rpx; | ||||||
| 							background: #fff; | 							background: #fff; | ||||||
| 							box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(255, 255, 255, 0); | 							box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(255, 255, 255, 0); | ||||||
| 							border-radius: 24rpx 24rpx 24rpx 24rpx; | 							border-radius: 24rpx 24rpx 24rpx 24rpx; | ||||||
|  | @ -224,7 +224,7 @@ | ||||||
| 
 | 
 | ||||||
| 								image { | 								image { | ||||||
| 									width: 180rpx; | 									width: 180rpx; | ||||||
| 									height: 200rpx; | 									height: 180rpx; | ||||||
| 									border-radius: 20rpx; | 									border-radius: 20rpx; | ||||||
| 								} | 								} | ||||||
| 							} | 							} | ||||||
|  |  | ||||||
|  | @ -24,6 +24,14 @@ | ||||||
| 					<text class="qian">创建时间:</text> <text class="shen">{{listobj.createTime}}</text> | 					<text class="qian">创建时间:</text> <text class="shen">{{listobj.createTime}}</text> | ||||||
| 				</view> | 				</view> | ||||||
| 			</view> | 			</view> | ||||||
|  | 			<view class="editxg" @click="btnsh" v-if="listobj.status == 2"> | ||||||
|  | 				<view class=""> | ||||||
|  | 					审核中 | ||||||
|  | 				</view> | ||||||
|  | 				<view class=""> | ||||||
|  | 					<u-icon name="arrow-right" color="#000" size="28"></u-icon> | ||||||
|  | 				</view> | ||||||
|  | 			</view> | ||||||
| 			<view class="icons"> | 			<view class="icons"> | ||||||
| 				<image src="https://api.ccttiot.com/smartmeter/img/static/uDNcSwmkeciv4fHv4JdJ" mode="" | 				<image src="https://api.ccttiot.com/smartmeter/img/static/uDNcSwmkeciv4fHv4JdJ" mode="" | ||||||
| 					@click="show = true"></image> | 					@click="show = true"></image> | ||||||
|  | @ -124,6 +132,11 @@ | ||||||
| 		    }   | 		    }   | ||||||
| 		  }, | 		  }, | ||||||
| 		methods: { | 		methods: { | ||||||
|  | 			btnsh(){ | ||||||
|  | 				uni.navigateTo({ | ||||||
|  | 					url:'/page_fenbao/editshenhe?obj=' + JSON.stringify(this.listobj) | ||||||
|  | 				}) | ||||||
|  | 			}, | ||||||
| 			getdetail() { | 			getdetail() { | ||||||
| 				this.$u.get("/app/store/mch/" + this.storeId).then(res => { | 				this.$u.get("/app/store/mch/" + this.storeId).then(res => { | ||||||
| 					if (res.code == 200) { | 					if (res.code == 200) { | ||||||
|  | @ -138,9 +151,17 @@ | ||||||
| 						url: '/page_fenbao/statulist/myshop/shebeilist/index?storeId=' + this.storeId | 						url: '/page_fenbao/statulist/myshop/shebeilist/index?storeId=' + this.storeId | ||||||
| 					}) | 					}) | ||||||
| 				} else if (num == 2) { | 				} else if (num == 2) { | ||||||
|  | 					if(this.listobj.status == 2){ | ||||||
|  | 						uni.showToast({ | ||||||
|  | 							title: '已有未审核店铺信息', | ||||||
|  | 							icon: 'none', | ||||||
|  | 							duration: 1000 | ||||||
|  | 						}) | ||||||
|  | 					}else{ | ||||||
| 						uni.navigateTo({ | 						uni.navigateTo({ | ||||||
| 							url: '/page_fenbao/statulist/myshop/editshop/index?obj=' + JSON.stringify(this.listobj) | 							url: '/page_fenbao/statulist/myshop/editshop/index?obj=' + JSON.stringify(this.listobj) | ||||||
| 						}) | 						}) | ||||||
|  | 					} | ||||||
| 				} else if (num == 3) { | 				} else if (num == 3) { | ||||||
| 					let vm = this | 					let vm = this | ||||||
| 					uni.showModal({ | 					uni.showModal({ | ||||||
|  | @ -173,7 +194,7 @@ | ||||||
| 								console.log('用户点击了取消'); | 								console.log('用户点击了取消'); | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
| 					}); | 					}) | ||||||
| 				} | 				} | ||||||
| 			}, | 			}, | ||||||
| 
 | 
 | ||||||
|  | @ -449,7 +470,18 @@ | ||||||
| 		position: fixed; | 		position: fixed; | ||||||
| 		top: 0; | 		top: 0; | ||||||
| 		left: 0; | 		left: 0; | ||||||
| 
 |          .editxg{ | ||||||
|  | 			 width: 100%; | ||||||
|  | 			 height: 90rpx; | ||||||
|  | 			 line-height: 90rpx; | ||||||
|  | 			 display: flex; | ||||||
|  | 			 justify-content: space-between; | ||||||
|  | 			 padding: 0 30rpx; | ||||||
|  | 			 box-sizing: border-box; | ||||||
|  | 			 background-color: #fff; | ||||||
|  | 			 border-radius: 20rpx; | ||||||
|  | 			 margin-top: 20rpx; | ||||||
|  | 		 } | ||||||
| 		.box { | 		.box { | ||||||
| 			width: 750rpx; | 			width: 750rpx; | ||||||
| 			height: 1440rpx; | 			height: 1440rpx; | ||||||
|  |  | ||||||
|  | @ -80,7 +80,7 @@ | ||||||
| 					</view> | 					</view> | ||||||
| 				</view> | 				</view> | ||||||
| 				<view class="baocun" @click="btncreat"> | 				<view class="baocun" @click="btncreat"> | ||||||
| 					创建 | 					提交创建 | ||||||
| 				</view> | 				</view> | ||||||
| 			</view> | 			</view> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -31,9 +31,9 @@ | ||||||
| 				@newList="handleNewList" rowHeight='50' @change="change" @confirm="confirm" @onclick="onclick" | 				@newList="handleNewList" rowHeight='50' @change="change" @confirm="confirm" @onclick="onclick" | ||||||
| 				:listBackgroundColor='F7FAFE'></HM-dragSorts> | 				:listBackgroundColor='F7FAFE'></HM-dragSorts> | ||||||
| 
 | 
 | ||||||
| 			<view class="" v-if="list == ''" | 			<view class="" v-if="newobj == ''" | ||||||
| 				style="color: #ccc;font-size: 36rpx;margin-top: 200rpx;text-align: center;"> | 				style="color: #ccc;font-size: 36rpx;margin-top: 200rpx;text-align: center;"> | ||||||
| 				该设备暂无套餐 | 				  暂无可用套餐 | ||||||
| 			</view> | 			</view> | ||||||
| 			<view class="anniu"> | 			<view class="anniu"> | ||||||
| 				<!-- <view class="xinz" @click="btnadd"> | 				<!-- <view class="xinz" @click="btnadd"> | ||||||
|  | @ -166,6 +166,21 @@ | ||||||
| 								this.newobj = this.list | 								this.newobj = this.list | ||||||
| 						}else{ | 						}else{ | ||||||
| 							this.newobj = this.list | 							this.newobj = this.list | ||||||
|  | 							if(this.newobj.length == 0){ | ||||||
|  | 								uni.showModal({ | ||||||
|  | 									title: '提示', | ||||||
|  | 									content: '未存有套餐,是否去新建?', | ||||||
|  | 									success: function(res) { | ||||||
|  | 										if (res.confirm) { | ||||||
|  | 											uni.navigateTo({ | ||||||
|  | 												url:'/page_fenbao/statulist/taocanlist/addtaocan/index' | ||||||
|  | 											}) | ||||||
|  | 										} else if (res.cancel) { | ||||||
|  | 											 | ||||||
|  | 										} | ||||||
|  | 									} | ||||||
|  | 								}) | ||||||
|  | 							} | ||||||
| 							this.tcidlist = [] | 							this.tcidlist = [] | ||||||
| 						} | 						} | ||||||
| 					} | 					} | ||||||
|  |  | ||||||
|  | @ -764,7 +764,7 @@ | ||||||
| 		display: flex; | 		display: flex; | ||||||
| 		flex-direction: column; | 		flex-direction: column; | ||||||
| 		position: relative; | 		position: relative; | ||||||
| 		overflow: hidden; | 		// overflow: hidden;  | ||||||
| 
 | 
 | ||||||
| 		.scroll-view { | 		.scroll-view { | ||||||
| 			box-sizing: border-box; | 			box-sizing: border-box; | ||||||
|  |  | ||||||
|  | @ -506,8 +506,8 @@ | ||||||
| 							let expireDateParts = expireTimeParts[0].split("-"); | 							let expireDateParts = expireTimeParts[0].split("-"); | ||||||
| 							let expireTimePartsTime = expireTimeParts[1].split(":"); | 							let expireTimePartsTime = expireTimeParts[1].split(":"); | ||||||
| 							let expireDate = new Date(expireDateParts[0], expireDateParts[1] - 1, expireDateParts[2],expireTimePartsTime[0], expireTimePartsTime[1], expireTimePartsTime[2]) | 							let expireDate = new Date(expireDateParts[0], expireDateParts[1] - 1, expireDateParts[2],expireTimePartsTime[0], expireTimePartsTime[1], expireTimePartsTime[2]) | ||||||
| 							let now = new Date(); | 							let now = new Date() | ||||||
| 							let differenceInMs = expireDate - now; | 							let differenceInMs = expireDate - now | ||||||
| 							if (differenceInMs <= 0) { | 							if (differenceInMs <= 0) { | ||||||
| 								this.timeday = 0 | 								this.timeday = 0 | ||||||
| 							} else { | 							} else { | ||||||
|  |  | ||||||
							
								
								
									
										10
									
								
								pages.json
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								pages.json
									
									
									
									
									
								
							|  | @ -263,6 +263,16 @@ | ||||||
| 						"navigationBarTextStyle": "#FFFFFF", | 						"navigationBarTextStyle": "#FFFFFF", | ||||||
| 						"navigationStyle": "custom" | 						"navigationStyle": "custom" | ||||||
| 					} | 					} | ||||||
|  | 				}, | ||||||
|  | 				{ | ||||||
|  | 					"path": "editshenhe", | ||||||
|  | 					"style": { | ||||||
|  | 						"navigationBarTitleText": "添加设备", | ||||||
|  | 						"enablePullDownRefresh": false, | ||||||
|  | 						"navigationBarBackgroundColor": "#3996FD", | ||||||
|  | 						"navigationBarTextStyle": "#FFFFFF", | ||||||
|  | 						"navigationStyle": "custom" | ||||||
|  | 					} | ||||||
| 				},{ | 				},{ | ||||||
| 					"path": "webview", | 					"path": "webview", | ||||||
| 					"style": { | 					"style": { | ||||||
|  |  | ||||||
|  | @ -407,19 +407,7 @@ | ||||||
| 
 | 
 | ||||||
| 			// 获取店铺 | 			// 获取店铺 | ||||||
| 			sremakes(item) { | 			sremakes(item) { | ||||||
| 				if(this.isMch == false){ |                 if(this.shoplist.length == 0){ | ||||||
| 					uni.showModal({ |  | ||||||
| 						title: '提示', |  | ||||||
| 						content: '您未申请商家合作,是否申请?', |  | ||||||
| 						success: function(res) { |  | ||||||
| 							if (res.confirm) { |  | ||||||
|                                 uni.navigateTo({ |  | ||||||
|                                 	url:'/page_fenbao/statulist/merchant/index' |  | ||||||
|                                 }) |  | ||||||
| 							}  |  | ||||||
| 						} |  | ||||||
| 					}) |  | ||||||
| 				}else if(this.shoplist.length == 0){ |  | ||||||
|                      uni.showModal({ |                      uni.showModal({ | ||||||
|                      	title: '提示', |                      	title: '提示', | ||||||
|                      	content: '未创建店铺,是否去创建店铺?', |                      	content: '未创建店铺,是否去创建店铺?', | ||||||
|  |  | ||||||
							
								
								
									
										15
									
								
								pages/my.vue
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								pages/my.vue
									
									
									
									
									
								
							|  | @ -56,14 +56,11 @@ | ||||||
| 				</view> | 				</view> | ||||||
| 			</view> | 			</view> | ||||||
| 			<view class="bot_box"> | 			<view class="bot_box"> | ||||||
| 				<view class="botcard" @click="topage(0)" v-if="userinfo.isMch"> | 				<view class="botcard" @click="topage(0)"> | ||||||
| 					<image src="https://api.ccttiot.com/smartmeter/img/static/uATEvHAKIB0tdXk0embn" mode=""></image> | 					<image src="https://api.ccttiot.com/smartmeter/img/static/uATEvHAKIB0tdXk0embn" mode=""></image> | ||||||
| 					<view class="txt">我的店铺</view> | 					<view class="txt">我的店铺</view> | ||||||
| 				</view> | 				</view> | ||||||
| 				<view class="botcard" @click="topage(9)" v-else> | 				 | ||||||
| 					<image src="https://api.ccttiot.com/smartmeter/img/static/uYOquvGtfb1sm5F60NgJ" mode=""></image> |  | ||||||
| 					<view class="txt">商家合作</view> |  | ||||||
| 				</view> |  | ||||||
| 				<view class="botcard" @click="btnguanli"> | 				<view class="botcard" @click="btnguanli"> | ||||||
| 					<image src="https://api.ccttiot.com/smartmeter/img/static/umjPUc8nDKf1JwVqRAeb" mode=""></image> | 					<image src="https://api.ccttiot.com/smartmeter/img/static/umjPUc8nDKf1JwVqRAeb" mode=""></image> | ||||||
| 					<view class="txt">套餐管理</view> | 					<view class="txt">套餐管理</view> | ||||||
|  | @ -76,10 +73,14 @@ | ||||||
| 					<image src="https://api.ccttiot.com/smartmeter/img/static/uKewAY8xvJN04yFpGEjl" mode=""></image> | 					<image src="https://api.ccttiot.com/smartmeter/img/static/uKewAY8xvJN04yFpGEjl" mode=""></image> | ||||||
| 					<view class="txt">设备故障</view> | 					<view class="txt">设备故障</view> | ||||||
| 				</view> | 				</view> | ||||||
| 				<view class="botcard" @click="topage(2)"> | 				<view class="botcard" @click="topage(9)"> | ||||||
|  | 					<image src="https://api.ccttiot.com/smartmeter/img/static/uYOquvGtfb1sm5F60NgJ" mode=""></image> | ||||||
|  | 					<view class="txt">商家合作</view> | ||||||
|  | 				</view>  | ||||||
|  | 				<!-- <view class="botcard" @click="topage(2)"> | ||||||
| 					<image src="https://api.ccttiot.com/smartmeter/img/static/u6qVTFXdkQKEqE1y0J4o" mode=""></image> | 					<image src="https://api.ccttiot.com/smartmeter/img/static/u6qVTFXdkQKEqE1y0J4o" mode=""></image> | ||||||
| 					<view class="txt">常见问题</view> | 					<view class="txt">常见问题</view> | ||||||
| 				</view> | 				</view> --> | ||||||
| 				<view class="botcard" @click="topage(3)"> | 				<view class="botcard" @click="topage(3)"> | ||||||
| 					<image src="https://api.ccttiot.com/smartmeter/img/static/uGlrjkSOTDXMFuuRb03l" mode=""></image> | 					<image src="https://api.ccttiot.com/smartmeter/img/static/uGlrjkSOTDXMFuuRb03l" mode=""></image> | ||||||
| 					<view class="txt">意见反馈</view> | 					<view class="txt">意见反馈</view> | ||||||
|  |  | ||||||
|  | @ -53,11 +53,11 @@ | ||||||
| 							style="width: 96rpx;height:94rpx;"></image> | 							style="width: 96rpx;height:94rpx;"></image> | ||||||
| 						<!-- 附近门店 --> | 						<!-- 附近门店 --> | ||||||
| 					</view> | 					</view> | ||||||
| 					<view class="gr" @click="btnindex(4)" v-if="isMch == false && deviceCount == 0"> | 					<!-- <view class="gr" @click="btnindex(4)" v-if="isMch == false && deviceCount == 0"> | ||||||
| 						<image src="https://api.ccttiot.com/smartmeter/img/static/uBN46m7mPVlbbPth80FC" mode="" | 						<image src="https://api.ccttiot.com/smartmeter/img/static/uBN46m7mPVlbbPth80FC" mode="" | ||||||
| 							style="width: 96rpx;height:94rpx;"></image> | 							style="width: 96rpx;height:94rpx;"></image> | ||||||
| 					</view> | 					</view> --> | ||||||
| 					<view class="gr" @click="btnindex(6)" v-else> | 					<view class="gr" @click="btnindex(6)"> | ||||||
| 						<image src="https://api.ccttiot.com/smartmeter/img/static/u3NDAI21OIGQH0Exdmdd" mode="" | 						<image src="https://api.ccttiot.com/smartmeter/img/static/u3NDAI21OIGQH0Exdmdd" mode="" | ||||||
| 							style="width: 96rpx;height:94rpx;"></image> | 							style="width: 96rpx;height:94rpx;"></image> | ||||||
| 					</view> | 					</view> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user