TM
2020-12-15 ee998d76985146af4f78d5eabe4e31500cb35980
pages/shskPage/orderInfo/orderInfo.js
@@ -29,12 +29,19 @@
    } else if (code == 2) {
      obj.goodsName = value
    }
    console.log(obj)
    this.setData({
      info: { ...this.data.info,...obj }
    })
    if(code == 1&&this.data.info.payAmt){
      this.getTaril()
    }
    if(code == 1&&!this.data.info.payAmt){
      this.setData({
        amtList:[
            { name: '商家到账', number: 0 },
            { name: '用户支付金额', number: 0 }
        ]
      })
    }
  },
  getTaril(){
@@ -60,6 +67,16 @@
    this.setData({
      'info.payType': 2
    })
    for (let key in this.data.info) {
      if (!this.data.info[key]) {
        my.showToast({
          type: 'none',
          content: '请完整输入信息',
          duration: 2000,
        });
        return
      }
    }
    my.scan({
      scanType: ['qrCode', 'barCode'],
      success: (res) => {