微信和支付宝扫码支付
微信收款码后端直接返 支付宝用iframe接收
<div class="code-section">
<div v-loading="loading">
<img :src="qrcode_url" class="code-img" alt="" @click="$router.push('/pay-success')" v-if="payType == 'wx'" />
<iframe :srcdoc="qrcodeHtml"
frameborder="no"
border="0"
marginwidth="0"
marginheight="0"
scrolling="no"
width="220"
height="220"
style="margin-left: 20px;"
v-if="payType == 'alipay'">
</iframe>
</div>
<div class="tips-text">
<img src="@/imgs/scan.png" class="scan-img" />
<span class="text">打开手机 微信扫一扫继续付款</span>
</div>
</div>
接口返的支付宝收款码数据
如果不需要跳转让后端吧 target属性去掉