YY 3 vuotta sitten
vanhempi
commit
f4799e53f5
2 muutettua tiedostoa jossa 5 lisäystä ja 7 poistoa
  1. 3 1
      pages/information/index.js
  2. 2 6
      pages/score/index.js

+ 3 - 1
pages/information/index.js

@@ -9,7 +9,9 @@ Page({
         // 主体高度
         infoHeight: '',
         frameStyle: { useTop: true, name: '个人信息', leftArrow: true, useBar: false },
-        form: {},
+        form: {
+            gender: ''
+        },
         fileList: [],
         genderList: [{ id: '0', name: '男' }, { id: 1, name: '女' },],
         index: 0,

+ 2 - 6
pages/score/index.js

@@ -32,15 +32,11 @@ Page({
   },
   //显示对话框
   clickme: function () {
-    this.setData({
-      showModal: true
-    })
+    this.setData({showModal: true})
   },
   //关闭弹窗
   go: function () {
-    this.setData({
-      showModal: false
-    })
+    this.setData({showModal: false})
   },
   //上传图片
   imgUpload: function (e) {