Browse Source

no message

feature/v2.2
xpz2018 4 years ago
parent
commit
580c86bb16
2 changed files with 2 additions and 3 deletions
  1. 2
      app.js
  2. 3
      pages/home/qrcode-info/index.js

2
app.js

@ -1,6 +1,6 @@
//app.js
App({
evn: 2, // 0: 开发版本;1:测试版本;2:生产版本
evn: 1, // 0: 开发版本;1:测试版本;2:生产版本
tmplIds: ['AFoM5TOfsgERsfcetNSB0UlmEixnLF1ySXr54Bqno2M', 'lOQ8Gvyy_dTk68bYGpRVnVA0M7DsYYrV81Gd39GUPBA'],
version: '2.4.0',
xAppId: '503258978847953926',

3
pages/home/qrcode-info/index.js

@ -27,11 +27,10 @@ Scene({
if(!util.isEmpty(options.type)){
this.data.type = Number(options.type)
}
this.showQrCode(`${qrUrl}?mark=ztb_saas&type=${this.data.type}&factoryId=${app.userInfo.factoryId}&customerId=${this.data.id}`)
if(this.data.type == 0){
this.showQrCode(`${qrUrl}?mark=ztb_saas&type=${this.data.type}&factoryId=${app.userInfo.factoryId}&customerId=${this.data.id}`)
this.fetchCustomerInfo()
} else if(this.data.type == 1){
this.showQrCode(`${qrUrl}?mark=ztb_saas&type=${this.data.type}&factoryId=${app.userInfo.factoryId}&customerId=${this.data.id}`)
let channel = this.getOpenerEventChannel()
let that = this
channel.once('onParam', function (data) {

Loading…
Cancel
Save