Commit 3663bf31 by 杨北旺 Committed by chenwq

权益购买添加商户号

1 parent 3b72dc5c
...@@ -197,6 +197,9 @@ Page({ ...@@ -197,6 +197,9 @@ Page({
if (!orderCode) { if (!orderCode) {
return return
} }
const {
merchantId
} = wx.p.storage.get('merchant_info')
const { selectedItem, rechageNum,isGameUse,coupons } = this.data const { selectedItem, rechageNum,isGameUse,coupons } = this.data
let para = { let para = {
orderCode, orderCode,
...@@ -204,7 +207,8 @@ Page({ ...@@ -204,7 +207,8 @@ Page({
rechargeNumber: rechageNum, rechargeNumber: rechageNum,
goodsQuality: 1, goodsQuality: 1,
// payMannerId: 19, // payMannerId: 19,
paySource: 3 paySource: 3,
merchantId
} }
if(isGameUse&&coupons){ if(isGameUse&&coupons){
para.usedCouponIds = [coupons.id] para.usedCouponIds = [coupons.id]
......
...@@ -250,7 +250,7 @@ Page({ ...@@ -250,7 +250,7 @@ Page({
// 获取订单号 // 获取订单号
toGetCode() { toGetCode() {
let para = { let para = {
supplier: this.data.query.supplier supplier: this.data.query.supplier,
} }
wx.p.api.equityApi.getOrderCode(para).then(res => { wx.p.api.equityApi.getOrderCode(para).then(res => {
this.getPayParam(res) this.getPayParam(res)
...@@ -262,12 +262,17 @@ Page({ ...@@ -262,12 +262,17 @@ Page({
return return
} }
const { curentGoodsItem,coupons,isGameUse } = this.data const { curentGoodsItem,coupons,isGameUse } = this.data
const {
merchantId
} = wx.p.storage.get('merchant_info')
let para = { let para = {
orderCode, orderCode,
goodsId: curentGoodsItem.id, goodsId: curentGoodsItem.id,
goodsQuality: 1, goodsQuality: 1,
// payMannerId: 19, // payMannerId: 19,
paySource: 3, paySource: 3,
merchantId
} }
if(isGameUse&&coupons){ if(isGameUse&&coupons){
para.usedCouponIds = [coupons.id] para.usedCouponIds = [coupons.id]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!