Browse Source

no message

feature/v1.1
xpz2018 5 years ago
parent
commit
523bff7a96
4 changed files with 5 additions and 39 deletions
  1. 2
      app.js
  2. 19
      pages/home/customer-info/index.js
  3. 18
      pages/home/customer-list/index.js
  4. 5
      pages/process/payment/index.wxml

2
app.js

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

19
pages/home/customer-info/index.js

@ -1,8 +1,6 @@
// pages/home/customer-info/index.js
import { generateCode } from "../../../api/user"
import { getCustomerInfo } from "../../../api/saas"
const util = require('../../../utils/util')
const app = getApp()
Page({
/**
@ -33,21 +31,6 @@ Page({
this.setData({ showEmbedded: false })
},
registCustomer: function(){
wx.showLoading({ title: '加载中', mask: true })
const params = { id: 6 }
params.metaData = {
factoryId: app.userInfo.factoryId,
factoryName: app.userInfo.factoryName,
factoryCustomerId: this.data.form.id,
factoryCustomerName: this.data.form.name,
factoryCustomerMobile: this.data.form.mobile
}
generateCode(params).then(result => {
this.setData({ showEmbedded: true, base64: result.data, customerName: this.data.form.name })
wx.hideLoading()
}).catch(err => {
wx.hideLoading()
util.showToast(err)
})
wx.navigateTo({ url: `/pages/client/registe/index?id=${this.data.form.id}` })
}
})

18
pages/home/customer-list/index.js

@ -1,5 +1,4 @@
// pages/home/customer/index.js
import { generateCode } from "../../../api/user"
import { getCustomerList } from "../../../api/saas"
const util = require('../../../utils/util')
const app = getApp()
@ -95,22 +94,5 @@ Page({
bindCustomer: function(e){
var item = this.data.orderList[e.currentTarget.dataset.page][e.currentTarget.dataset.index]
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)
// })
}
})

5
pages/process/payment/index.wxml

@ -61,8 +61,9 @@
<view class="text-sm text-gray">{{item.bangTime}}</view>
</view>
<view class="text-sm text-gray" style="line-height:54rpx">
<text>废纸品类:{{item.productName}}</text>
<text style="margin-left:32rpx">金额:{{formate.formateAmount(item.settlePrice)}}元</text>
<text>品类:{{item.productName}}</text>
<text style="margin-left:16rpx">重量:{{item.settleWeight}}公斤</text>
<text style="margin-left:16rpx">金额:{{formate.formateAmount(item.settlePrice)}}元</text>
</view>
</view>
</view>

Loading…
Cancel
Save