liwei2496 2 年之前
父节点
当前提交
d8adeb7935

+ 2 - 0
.gitignore

@@ -0,0 +1,2 @@
+test.apk
+/unpackage/release/apk/__UNI__FF40C0C__20230327163324.apk

+ 4 - 0
http/baseApi.js

@@ -1,4 +1,8 @@
 const BaseApi = 'http://gpu.ringzle.com:8082/witcarbon-app/app'
+//严工
+//const BaseApi = 'http://192.168.1.11:9013/witcarbon-app/app'
+
+
 
 export {
 	BaseApi

+ 9 - 0
pages.json

@@ -230,6 +230,15 @@
             }
             
         }
+        ,{
+            "path" : "pages/Workorder/pay/pay",
+            "style" :                                                                                    
+            {
+                "navigationBarTitleText": "支付",
+                "enablePullDownRefresh": false
+            }
+            
+        }
     ],
 	"globalStyle": {
 		"navigationBarTextStyle": "black",

+ 18 - 4
pages/Workorder/Workorder.vue

@@ -1,16 +1,16 @@
 <template>
 	<view class="management">
 		<view class="managelind">
-			<view class="managename" @click="Tenantbill">
+			<view class="managename" @click="Tenantbill"  v-if="$has('app:TenantBill')">
 				<view class="managename1">
-					<!-- <img :src='srczuhu' alt=""> -->
+			
 					<u--image  mode="widthFix"  :src="srczuhu" width="48rpx" height="48rpx"></u--image>
 				</view>
 				<view class="managename2">
 					租户账单
 				</view>
 			</view>
-			<view class="managename" @click="Remotecontrol">
+			<view class="managename" @click="Remotecontrol"  v-if="$has('app:RemoteControl')">
 				<view class="managename1">
 					<!-- <img :src='srcyuanc' alt=""> -->
 						<u--image  mode="widthFix"  :src="srcyuanc" width="48rpx" height="48rpx"></u--image>
@@ -20,6 +20,16 @@
 				</view>
 			</view>
 			
+			
+			<view class="managename" @click="pay">
+				<view class="managename1">
+					<!-- <img :src='srcyuanc' alt=""> -->
+						<u--image  mode="widthFix"  :src="srcyuanc" width="48rpx" height="48rpx"></u--image>
+				</view>
+				<view class="managename2">
+					支付功能
+				</view>
+			</view>
 		</view>
 	
 		
@@ -45,7 +55,11 @@
 					url: '/pages/Workorder/Remotecontrol/Remotecontrol'
 				})
 			},
-			
+			pay(){
+				uni.navigateTo({
+					url: '/pages/Workorder/pay/pay'
+				})
+			},
 		}
 	}
 </script>

+ 19 - 0
pages/Workorder/pay/pay.vue

@@ -0,0 +1,19 @@
+<template>
+	<view>
+		
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				
+			};
+		}
+	}
+</script>
+
+<style lang="scss">
+
+</style>

+ 25 - 16
pages/index/index.vue

@@ -3,21 +3,21 @@
 		<view class="Homepage_header">
 			<view class="Homepage_suspension">
 				<view class="Suspension">
-					<view class="online" @click="Onlinewarranty">
+					<view class="online" @click="Onlinewarranty" v-if="$has('app:InspectionRecord')">
 						<view>
 							<!-- <img :src="srcxianshang1" alt="" style="margin-left: 5rpx;"> -->
 							<u--image mode="widthFix" :src="srcxianshang1" width="80rpx" height="80rpx"></u--image>
 						</view>
 						<view style="font-size: 28rpx;color: #697081;">线上报修</view>
 					</view>
-					<view class="online" @click="Inspectionrecord">
+					<view class="online" @click="Inspectionrecord" v-if="$has('app:OnlineReport')">
 						<view>
 							<u--image mode="widthFix" :src="srcxianshang2" width="80rpx" height="80rpx"></u--image>
 
 						</view>
 						<view style="font-size: 28rpx;color: #697081;">巡检记录</view>
 					</view>
-					<view class="online" @click="Withholdingrecord">
+					<view class="online" @click="Withholdingrecord" v-if="$has('app:WithholdingRecord')">
 						<view>
 
 							<u--image mode="widthFix" :src="srcxianshang3" width="80rpx" height="80rpx"></u--image>
@@ -26,10 +26,14 @@
 					</view>
 				</view>
 			</view>
+			
 		</view>
-		<view class="pending">
-			<view class="pending_middle">
-				<view class="all">
+		<!-- <view class="kongbai">
+			
+		</view> -->
+		<view class="pending"  v-if="$has('app:Tobeassigned')&&$has('app:Toberepaired')&&$has('app:hasrepaired')">
+			<view class="pending_middle" >
+				<view class="all"   v-if="$has('app:WorkorderTobeDone')">
 					<view class="work">
 						<span style="font-size: 30rpx;font-weight: bold;">工单待办</span>
 					</view>
@@ -41,25 +45,25 @@
 
 					</view>
 				</view>
-				<view class="wait">
-					<view>
+				<view class="wait" >
+					<view  v-if="$has('app:Tobeassigned')">
 						<view style="font-size: 26rpx;color: #697081;">待指派</view>
 						<view style="text-align: center;font-size: 32rpx;color: #0C1935;padding-top: 15rpx;">{{workList[1]}}</view>
 					</view>
-					<view>
+					<view  v-if="$has('app:Toberepaired')">
 						<view style="font-size: 26rpx;color: #697081;">待维修</view>
 						<view style="text-align: center;font-size: 32rpx;color: #0C1935;padding-top: 15rpx;">{{workList[2]}}</view>
 					</view>
-					<view>
+					<view  v-if="$has('app:hasrepaired')">
 						<view style="font-size: 26rpx;color: #697081;">已维修</view>
 						<view style="text-align: center;font-size: 32rpx;color: #0C1935;padding-top: 15rpx;">{{workList[3]}}</view>
 					</view>
 				</view>
 			</view>
 		</view>
-		<view class="equipment">
+		<view class="equipment" v-if="$has('app:EquipmentException')">
 			<view class="pending_middle">
-				<view class="all">
+				<view class="all" v-if="$has('app:LookatImmediately')">
 					<view class="work">
 						<span style="font-size: 30rpx;font-weight: bold;">设备异常</span>
 					</view>
@@ -91,9 +95,9 @@
 				</view>
 			</view>
 		</view>
-		<view class="arrears">
+		<view class="arrears" v-if="$has('app:ArrearstobeCollected')">
 			<view class="pending_middle">
-				<view class="all">
+				<view class="all"  v-if="$has('app:ImmediateCollection')">
 					<view class="work">
 						<span style="font-size: 30rpx;font-weight: bold;">欠费待收</span>
 					</view>
@@ -151,8 +155,9 @@
 			}
 		},
 		onLoad() {
-
 			this.getalldata();
+			
+		
 		},
 		methods: {
 			getalldata() {
@@ -241,8 +246,12 @@
 		display: flex;
 		align-items: center;
 		justify-content: center;
+		
 	}
-
+.kongbai{
+			height: 100rpx;
+			width: 750rpx;
+		}
 	.Homepage_suspension {
 		width: 690rpx;
 		height: 200rpx;

+ 8 - 9
pages/login/login.vue

@@ -52,8 +52,8 @@
 		data() {
 			return {
 				isShowPassword: false,
-				account: 'admin',
-				password: 'cx868688',
+				account: '',
+				password: '',
 				captcha: '',
 				uuid: '',
 				captchaPath: '',
@@ -121,8 +121,6 @@
 							});
 
 
-
-
 						} else {
 							this.$refs.uToast.show({
 								type: 'error',
@@ -137,11 +135,12 @@
 			getpermissions() {
 				console.log('权限功能', )
 				//获取用户权限功能
-				// 					 this.$api.get('/sys/menu/permissions',{})
-				// 					 .then(res1=>{
-				// 					 	uni.setStorageSync('ButtonPermissions', res1.data.data);//权限列表
-				// 						
-				// 					 })
+									 this.$api.get('/menu/permissions', {})
+									 .then(res1=>{
+										   console.log('111111111111111111',res1)  
+									 	uni.setStorageSync('ButtonPermissions', res1.data.data);//权限列表
+										
+									 })
 			},
 			getDictList() {
 				//获取字典列表, 添加并全局变量保存

文件差异内容过多而无法显示
+ 2 - 2
unpackage/cache/wgt/__UNI__FF40C0C/app-config-service.js


文件差异内容过多而无法显示
+ 4 - 4
unpackage/cache/wgt/__UNI__FF40C0C/app-service.js


文件差异内容过多而无法显示
+ 1 - 1
unpackage/cache/wgt/__UNI__FF40C0C/app-view.js


文件差异内容过多而无法显示
+ 1 - 1
unpackage/cache/wgt/__UNI__FF40C0C/manifest.json


文件差异内容过多而无法显示
+ 2 - 2
unpackage/dist/build/app-plus/app-config-service.js


文件差异内容过多而无法显示
+ 4 - 4
unpackage/dist/build/app-plus/app-service.js


文件差异内容过多而无法显示
+ 1 - 1
unpackage/dist/build/app-plus/app-view.js