caojunjie 4 年之前
父节点
当前提交
e1e569f5a1
共有 2 个文件被更改,包括 14 次插入4 次删除
  1. 2 2
      pages/home/Scan-code-in/index.vue
  2. 12 2
      pages/home/index.vue

+ 2 - 2
pages/home/Scan-code-in/index.vue

@@ -115,7 +115,7 @@
 			this.getDatalist()
 		},
 		methods: {
-			
+			...mapMutations(["inStore"]),
 			confirm() {
 				this.$u.route({
 					type:'redirectTo',
@@ -134,7 +134,7 @@
 							materialList: this.datalist
 						}
 					}).then(res => {
-						console.log(res)
+						console.log(res.data.code)
 						if(res.data.code == 0){
 							this.dalist = res.data.data
 							for (let i = 0; i < this.dalist.length; i++) {

+ 12 - 2
pages/home/index.vue

@@ -75,7 +75,6 @@
 			}
 		},
 		onLoad() {
-			console.log("@@@")
 			uni.$on('login', (data) => {
 				this.loginStatus = data.msg
 			})
@@ -106,7 +105,18 @@
 						uni.hideLoading();
 					})
 			}
-			this.onLaunch_s()
+			uni.getSystemInfo({
+			    success: function (res) {
+			        console.log(res.platform);
+					if(res.platform == android){
+						this.onLaunch_s()
+						console.log("5896558596589658626565656615615512651561651561651")
+					}else if(res.platform == ios){
+						console.log("暂无数据")
+						console.log("626515616561658158461586515686586641565847444598660351651965145985987456")
+					}
+			    }
+			});
 		},
 		computed: {
 			...mapState(['hasLogin'])