Commit da36c66b by 前端

修复收款二维码传参问题

1 parent 20ea924b
...@@ -35,11 +35,11 @@ ...@@ -35,11 +35,11 @@
<div v-if="!qrCodeURL" <div v-if="!qrCodeURL"
class="el-icon-loading loadingIcon" /> class="el-icon-loading loadingIcon" />
<!-- </div> --> <!-- </div> -->
<div class="merchantNameDiv">{{ info.yqMerchantName }}</div> <div class="merchantNameDiv">{{ info.merchantName }}</div>
</div> </div>
<el-button style="marginTop:20px" <el-button style="marginTop:20px"
type="primary " type="primary "
@click="takeScreenshot('wxview', `${info.yqMerchantName}微信支付收款码`)">下载</el-button> @click="takeScreenshot('wxview', `${info.merchantName}微信支付收款码`)">下载</el-button>
</div> </div>
<div class="alicon"> <div class="alicon">
<div class="codeDiv" <div class="codeDiv"
...@@ -57,11 +57,11 @@ ...@@ -57,11 +57,11 @@
<div v-if="!aliqrCodeURL" <div v-if="!aliqrCodeURL"
class="el-icon-loading loadingIcon" /> class="el-icon-loading loadingIcon" />
<!-- </div> --> <!-- </div> -->
<div class="merchantNameDiv">{{ info.yqMerchantName }}</div> <div class="merchantNameDiv">{{ info.merchantName }}</div>
</div> </div>
<el-button style="marginTop:20px" <el-button style="marginTop:20px"
type="primary " type="primary "
@click="takeScreenshot('aliview', `${info.yqMerchantName}支付宝支付收款码`)">下载 @click="takeScreenshot('aliview', `${info.merchantName}支付宝支付收款码`)">下载
</el-button> </el-button>
</div> </div>
</div> </div>
...@@ -131,8 +131,8 @@ export default { ...@@ -131,8 +131,8 @@ export default {
}) })
this.createQrcodeImage() this.createQrcodeImage()
this.alipayQrcode() this.alipayQrcode()
// this.takeScreenshot('wxview', `${this.info.yqMerchantName}微信支付收款码`) // this.takeScreenshot('wxview', `${this.info.merchantName}微信支付收款码`)
// this.takeScreenshot('aliview', `${this.info.yqMerchantName}支付宝支付收款码`) // this.takeScreenshot('aliview', `${this.info.merchantName}支付宝支付收款码`)
}, },
initPaymentChannelList() { initPaymentChannelList() {
paymentChannelList().then((res) => { paymentChannelList().then((res) => {
...@@ -175,7 +175,7 @@ export default { ...@@ -175,7 +175,7 @@ export default {
// oParams.appId = this.paymentChannelId == '8881A96B22B84A348263EE4F314A2A23' ? 'wx06d1198e751435d1' : 'wx3d2ee7f8bda398cc' // oParams.appId = this.paymentChannelId == '8881A96B22B84A348263EE4F314A2A23' ? 'wx06d1198e751435d1' : 'wx3d2ee7f8bda398cc'
oParams.qrcodeType = 'QR_WXA_UNLIMIT' oParams.qrcodeType = 'QR_WXA_UNLIMIT'
oParams.path = 'packagesPayment/pages/QRPayment/QRPayment' oParams.path = 'packagesPayment/pages/QRPayment/QRPayment'
oParams.scene = `merchantId=${this.info.merchantId}&merchantName=${this.info.yqMerchantName}&paymentChannelId=${this.paymentChannelId}` oParams.scene = `merchantId=${this.info.merchantId}&merchantName=${this.info.merchantName}&paymentChannelId=${this.paymentChannelId}`
createWeappQrcode(oParams).then(res => { createWeappQrcode(oParams).then(res => {
this.qrCodeURL = res this.qrCodeURL = res
...@@ -232,7 +232,7 @@ export default { ...@@ -232,7 +232,7 @@ export default {
alipayQrcode() { alipayQrcode() {
// const that = this // const that = this
// pay 支付渠道 // pay 支付渠道
const shareUrl = `${baseConfig.alipayPath}?M=${this.info.merchantId}&MN=${this.info.yqMerchantName}&P=${this.paymentChannelId}` const shareUrl = `${baseConfig.alipayPath}?M=${this.info.merchantId}&MN=${this.info.merchantName}&P=${this.paymentChannelId}`
console.log(baseConfig.alipayPath) console.log(baseConfig.alipayPath)
console.log(shareUrl) console.log(shareUrl)
setTimeout(() => { setTimeout(() => {
...@@ -282,9 +282,9 @@ export default { ...@@ -282,9 +282,9 @@ export default {
}, },
handleAddConfirm() { handleAddConfirm() {
this.takeScreenshot('wxview', `${this.info.yqMerchantName}微信支付收款码`) this.takeScreenshot('wxview', `${this.info.merchantName}微信支付收款码`)
setTimeout(() => { setTimeout(() => {
this.takeScreenshot('aliview', `${this.info.yqMerchantName}支付宝支付收款码`) this.takeScreenshot('aliview', `${this.info.merchantName}支付宝支付收款码`)
}, 2000) }, 2000)
// this.takeScreenshot() // this.takeScreenshot()
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!