whx 11 månader sedan
förälder
incheckning
bf05f19ea0
33 ändrade filer med 52 tillägg och 106 borttagningar
  1. BIN
      virgo.wzfrontend/src/main/resources/.DS_Store
  2. 7 3
      virgo.wzfrontend/wx/main.js
  3. 1 2
      virgo.wzfrontend/wx/pages.json
  4. 2 6
      virgo.wzfrontend/wx/pages/index/index.vue
  5. 2 3
      virgo.wzfrontend/wx/pages/login/login.vue
  6. 1 30
      virgo.wzfrontend/wx/request/api/project.js
  7. 4 1
      virgo.wzfrontend/wx/request/request.js
  8. 1 1
      virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
  9. 1 1
      virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
  10. 1 1
      virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/components/house/houseList.js.map
  11. 1 1
      virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/components/login/model.js.map
  12. 1 1
      virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/components/previewVideo/previewVideo.js.map
  13. 1 1
      virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/house/house.js.map
  14. 1 1
      virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/houseDetail/houseDetail.js.map
  15. 1 1
      virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map
  16. 1 1
      virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/login/login.js.map
  17. 1 1
      virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/message/message.js.map
  18. 1 1
      virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/messageDetail/messageDetail.js.map
  19. 1 1
      virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/messageList/messageList.js.map
  20. 1 1
      virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/my/my.js.map
  21. 1 1
      virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/order/order.js.map
  22. 1 1
      virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/projectList/projectList.js.map
  23. 1 1
      virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/kevy-empty/components/kevy-empty/kevy-empty.js.map
  24. 1 1
      virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-badge/components/uni-badge/uni-badge.js.map
  25. 1 1
      virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.js.map
  26. 1 1
      virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.js.map
  27. 1 1
      virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js.map
  28. 1 1
      virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-tag/components/uni-tag/uni-tag.js.map
  29. 7 1
      virgo.wzfrontend/wx/unpackage/dist/dev/mp-weixin/common/main.js
  30. 5 32
      virgo.wzfrontend/wx/unpackage/dist/dev/mp-weixin/common/vendor.js
  31. 1 6
      virgo.wzfrontend/wx/unpackage/dist/dev/mp-weixin/pages/index/index.js
  32. 1 0
      virgo.wzfrontend/wx/unpackage/dist/dev/mp-weixin/pages/login/login.js
  33. 0 1
      virgo.wzfrontend/wx/unpackage/dist/dev/mp-weixin/pages/order/order.json

BIN
virgo.wzfrontend/src/main/resources/.DS_Store


+ 7 - 3
virgo.wzfrontend/wx/main.js

@@ -14,7 +14,13 @@ Vue.prototype.$toast = msg => {
 	})
 };
 Vue.prototype.$navigateTo = (url) => {
-	console.log(uni.getStorageSync('token'));
+	if (!uni.getStorageSync('token')) {
+		uni.showToast({
+			title: '您暂未登录,请先登录~',
+			icon: "none"
+		});
+		url = '/pages/login/login'
+	}
 	uni.navigateTo({
 		url: url
 	})
@@ -26,8 +32,6 @@ Vue.prototype.$field = field;
 
 Vue.config.productionTip = false;
 
-
-
 App.mpType = 'app';
 
 const app = new Vue({

+ 1 - 2
virgo.wzfrontend/wx/pages.json

@@ -13,8 +13,7 @@
 		{
 			"path": "pages/order/order",
 			"style": {
-				"navigationBarTitleText": "工单",
-				"canvas": "2d"
+				"navigationBarTitleText": "工单"
 			}
 		},
 		{

+ 2 - 6
virgo.wzfrontend/wx/pages/index/index.vue

@@ -73,12 +73,8 @@
 			this.getHouseList();
 		},
 		methods: {
-			getAllProjectList() {
-				getProjectList().then(res => {
-					if (res.code == 200) {
-					}
-					console.log(res);
-				})
+			getAllProjectList() {
+				
 			},
 			getHouseList() {
 				getHouseListByPage({

+ 2 - 3
virgo.wzfrontend/wx/pages/login/login.vue

@@ -123,6 +123,7 @@
 				this.isDisabled = codeNumber == 0 ? false : true;
 			},
 			wxPhoneLogin(e) { //微信手机号一键登录
+				if (!e.detail.code) return;
 				this.login({
 					pCode: e.detail.code
 				})
@@ -140,7 +141,7 @@
 					provider: 'weixin',
 					success: loginRes => {
 						if (postData.phone != '18888888888') postData['code'] = loginRes.code;
-						login(postData).then(this.successFunc)
+						login(postData).then(this.successFunc);
 					}
 				})
 				// #endif
@@ -165,11 +166,9 @@
 							uni.hideLoading();
 						}
 					})
-
 				} else {
 					uni.hideLoading();
 				}
-
 			}
 		}
 	}

+ 1 - 30
virgo.wzfrontend/wx/request/api/project.js

@@ -7,33 +7,4 @@ import {
  * 
  * 
  */
-export function getProjectList() {
-	let promise = new Promise((result, rej) => {
-		request({
-			url: `/manager/userContext/allProject`,
-			method: 'get'
-		}).then(res => {
-			if (res.code === 200) {
-				if (res.data.length === 0) return result({
-					code: 200,
-					data: null,
-					message: null
-				})
-				request({
-					url: `/api/project/getIds`,
-					method: 'post',
-					data: res.data
-				}).then(node => {
-					result(node)
-				})
-			} else {
-				result({
-					code: 200,
-					data: null,
-					message: null
-				})
-			}
-		})
-	})
-	return promise
-}
+export function getProjectList() {}

+ 4 - 1
virgo.wzfrontend/wx/request/request.js

@@ -11,12 +11,14 @@ export function request(options) {
 			data: options.data || {}, // 请求参数
 			header: header, // 设置请求的 header
 			success: (res) => {
-				// 请求成功
+				// 请求成功
+				console.log(res);
 				if (res.statusCode === 200) {
 					resolve(res.data);
 				} else {
 					// 可以根据项目要求修改错误处理
 					reject(res.data);
+					uni.hideLoading();
 				}
 			},
 			fail: (err) => {
@@ -26,6 +28,7 @@ export function request(options) {
 					icon: 'none'
 				})
 				reject(err);
+				uni.hideLoading();
 			},
 		});
 	});

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/components/house/houseList.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/components/login/model.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/components/previewVideo/previewVideo.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/house/house.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/houseDetail/houseDetail.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/login/login.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/message/message.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/messageDetail/messageDetail.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/messageList/messageList.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/my/my.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/order/order.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/pages/projectList/projectList.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/kevy-empty/components/kevy-empty/kevy-empty.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-badge/components/uni-badge/uni-badge.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-tag/components/uni-tag/uni-tag.js.map


+ 7 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/mp-weixin/common/main.js

@@ -31,7 +31,13 @@ _vue.default.prototype.$toast = function (msg) {
   });
 };
 _vue.default.prototype.$navigateTo = function (url) {
-  console.log(uni.getStorageSync('token'));
+  if (!uni.getStorageSync('token')) {
+    uni.showToast({
+      title: '您暂未登录,请先登录~',
+      icon: "none"
+    });
+    url = '/pages/login/login';
+  }
   uni.navigateTo({
     url: url
   });

+ 5 - 32
virgo.wzfrontend/wx/unpackage/dist/dev/mp-weixin/common/vendor.js

@@ -9572,11 +9572,13 @@ function request(options) {
       // 设置请求的 header
       success: function success(res) {
         // 请求成功
+        console.log(res);
         if (res.statusCode === 200) {
           resolve(res.data);
         } else {
           // 可以根据项目要求修改错误处理
           reject(res.data);
+          uni.hideLoading();
         }
       },
       fail: function fail(err) {
@@ -9586,6 +9588,7 @@ function request(options) {
           icon: 'none'
         });
         reject(err);
+        uni.hideLoading();
       }
     });
   });
@@ -11670,36 +11673,7 @@ var _request = __webpack_require__(/*! @/request/request.js */ 31);
  * 
  * 
  */
-function getProjectList() {
-  var promise = new Promise(function (result, rej) {
-    (0, _request.request)({
-      url: "/manager/userContext/allProject",
-      method: 'get'
-    }).then(function (res) {
-      if (res.code === 200) {
-        if (res.data.length === 0) return result({
-          code: 200,
-          data: null,
-          message: null
-        });
-        (0, _request.request)({
-          url: "/api/project/getIds",
-          method: 'post',
-          data: res.data
-        }).then(function (node) {
-          result(node);
-        });
-      } else {
-        result({
-          code: 200,
-          data: null,
-          message: null
-        });
-      }
-    });
-  });
-  return promise;
-}
+function getProjectList() {}
 
 /***/ }),
 /* 50 */,
@@ -21476,8 +21450,7 @@ var _default = {
   }, {
     "path": "pages/order/order",
     "style": {
-      "navigationBarTitleText": "工单",
-      "canvas": "2d"
+      "navigationBarTitleText": "工单"
     }
   }, {
     "path": "pages/my/my",

+ 1 - 6
virgo.wzfrontend/wx/unpackage/dist/dev/mp-weixin/pages/index/index.js

@@ -187,12 +187,7 @@ var _default = {
     this.getHouseList();
   },
   methods: {
-    getAllProjectList: function getAllProjectList() {
-      (0, _project.getProjectList)().then(function (res) {
-        if (res.code == 200) {}
-        console.log(res);
-      });
-    },
+    getAllProjectList: function getAllProjectList() {},
     getHouseList: function getHouseList() {
       var _this = this;
       (0, _house.getHouseListByPage)({

+ 1 - 0
virgo.wzfrontend/wx/unpackage/dist/dev/mp-weixin/pages/login/login.js

@@ -296,6 +296,7 @@ var _default = {
     },
     wxPhoneLogin: function wxPhoneLogin(e) {
       //微信手机号一键登录
+      if (!e.detail.code) return;
       this.login({
         pCode: e.detail.code
       });

+ 0 - 1
virgo.wzfrontend/wx/unpackage/dist/dev/mp-weixin/pages/order/order.json

@@ -1,5 +1,4 @@
 {
   "navigationBarTitleText": "工单",
-  "canvas": "2d",
   "usingComponents": {}
 }