|
|
@ -1,5 +1,4 @@ |
|
|
// pages/home/customer/index.js
|
|
|
// pages/home/customer/index.js
|
|
|
import { generateCode } from "../../../api/user" |
|
|
|
|
|
import { getCustomerList } from "../../../api/saas" |
|
|
import { getCustomerList } from "../../../api/saas" |
|
|
const util = require('../../../utils/util') |
|
|
const util = require('../../../utils/util') |
|
|
const app = getApp() |
|
|
const app = getApp() |
|
|
@ -95,22 +94,5 @@ Page({ |
|
|
bindCustomer: function(e){ |
|
|
bindCustomer: function(e){ |
|
|
var item = this.data.orderList[e.currentTarget.dataset.page][e.currentTarget.dataset.index] |
|
|
var item = this.data.orderList[e.currentTarget.dataset.page][e.currentTarget.dataset.index] |
|
|
wx.navigateTo({ url: `/pages/client/registe/index?id=${item.id}` }) |
|
|
wx.navigateTo({ url: `/pages/client/registe/index?id=${item.id}` }) |
|
|
|
|
|
|
|
|
// wx.showLoading({ title: '加载中', mask: true })
|
|
|
|
|
|
// const form = { id: 6 }
|
|
|
|
|
|
// form.metaData = {
|
|
|
|
|
|
// factoryId: app.userInfo.factoryId,
|
|
|
|
|
|
// factoryName: app.userInfo.factoryName,
|
|
|
|
|
|
// factoryCustomerId: item.id,
|
|
|
|
|
|
// factoryCustomerName: item.name,
|
|
|
|
|
|
// factoryCustomerMobile: item.mobile
|
|
|
|
|
|
// }
|
|
|
|
|
|
// generateCode(form).then(result => {
|
|
|
|
|
|
// this.setData({ showEmbedded: true, base64: result.data, customerName: item.name })
|
|
|
|
|
|
// wx.hideLoading()
|
|
|
|
|
|
// }).catch(err => {
|
|
|
|
|
|
// wx.hideLoading()
|
|
|
|
|
|
// util.showToast(err)
|
|
|
|
|
|
// })
|
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |