zyw 1 year ago
parent
commit
50979d6826
2 changed files with 17 additions and 8 deletions
  1. 1 1
      manifest.json
  2. 16 7
      pages/index/index.vue

+ 1 - 1
manifest.json

@@ -1,6 +1,6 @@
 {
     "name" : "zlty",
-    "appid" : "",
+    "appid" : "__UNI__FAC93E0",
     "description" : "",
     "versionName" : "1.0.0",
     "versionCode" : "100",

+ 16 - 7
pages/index/index.vue

@@ -131,13 +131,22 @@
 								method: 'POST',
 								data: that.param,
 								success: (res) => {
-									uni.showToast({
-										title: '提交成功',
-										mask: true,
-										icon: 'success',
-										duration: 2000
-									})  
-									console.log(res)
+									if(res.data.code!=200){
+										uni.showToast({
+											title: res.data.msg,
+											mask: true,
+											icon: 'error',
+											duration: 2000
+										})
+									}
+									else{
+										uni.showToast({
+											title: '提交成功',
+											mask: true,
+											icon: 'success',
+											duration: 2000
+										})
+									}
 								}
 							})
 							uni.hideLoading()