From 06172f5e1be1a5890275a9378638dd18e895c8a1 Mon Sep 17 00:00:00 2001
From: xpz2018 <107107461@qq.com>
Date: Fri, 20 Aug 2021 16:56:58 +0800
Subject: [PATCH] no message
---
pages/home/qrcode-info/index.js | 7 ++++---
pages/home/qrcode-info/index.json | 1 +
pages/home/qrcode-info/index.wxml | 4 ++++
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/pages/home/qrcode-info/index.js b/pages/home/qrcode-info/index.js
index 94d4d0e..54a3d5a 100644
--- a/pages/home/qrcode-info/index.js
+++ b/pages/home/qrcode-info/index.js
@@ -15,7 +15,8 @@ Scene({
type: 0,
id: null,
userId: null,
- form: null
+ form: null,
+ factoryName: null,
},
/**
* 生命周期函数--监听页面加载
@@ -34,7 +35,7 @@ Scene({
let channel = this.getOpenerEventChannel()
let that = this
channel.once('onParam', function (data) {
- that.setData({ form: data, type: that.data.type })
+ that.setData({ form: data, type: that.data.type, factoryName: app.userInfo.factoryName })
})
}
}
@@ -54,7 +55,7 @@ Scene({
fetchCustomerInfo: function(){
wx.showLoading({ title: '正在获取', mask: true })
getCustomerInfo(this.data.id).then(result => {
- this.setData({ form: result.data, type: this.data.type })
+ this.setData({ form: result.data, type: this.data.type, factoryName: app.userInfo.factoryName })
wx.hideLoading()
}).catch(err => {
wx.hideLoading()
diff --git a/pages/home/qrcode-info/index.json b/pages/home/qrcode-info/index.json
index 9a06919..3a8753a 100644
--- a/pages/home/qrcode-info/index.json
+++ b/pages/home/qrcode-info/index.json
@@ -3,6 +3,7 @@
"van-button": "/components/button/index",
"van-cell": "/components/cell/index",
"van-image": "/components/image/index",
+ "van-divider": "/components/divider/index",
"notification": "/pages/message/notification/index"
}
}
\ No newline at end of file
diff --git a/pages/home/qrcode-info/index.wxml b/pages/home/qrcode-info/index.wxml
index f4b485b..cdc84a4 100644
--- a/pages/home/qrcode-info/index.wxml
+++ b/pages/home/qrcode-info/index.wxml
@@ -19,4 +19,8 @@
+
+ {{factoryName}}
+
+
\ No newline at end of file