Explorar o código

feature 投诉建议和保修增加户号户名

xiahan hai 3 meses
pai
achega
5914812c31
Modificáronse 2 ficheiros con 6 adicións e 2 borrados
  1. 3 1
      pages/baoxiudj/baoxiudj.js
  2. 3 1
      pages/tousujianyi/tousujianyi.js

+ 3 - 1
pages/baoxiudj/baoxiudj.js

@@ -435,7 +435,9 @@ Page({
       phone: this.data.phone,
       repairType: this.data.repairTypeValue,
       description: this.data.description,
-      images: this.data.imageList
+      images: this.data.imageList,
+      userName: app.globalData.currentAccountInfo.username,
+      userNum:  app.globalData.currentAccountInfo.usernumber
     };
     // 设置正在提交中 防止重复点击提交按钮
     this.setData({

+ 3 - 1
pages/tousujianyi/tousujianyi.js

@@ -256,7 +256,9 @@ Page({
       contact: this.data.contact,
       phone: this.data.phone,
       description: this.data.description,
-      images: this.data.imageList
+      images: this.data.imageList,
+      userName: app.globalData.currentAccountInfo.username,
+      userNum:  app.globalData.currentAccountInfo.usernumber
     };
 debugger
     // 设置正在提交中 防止重复点击提交按钮