Commit f3738f7c by 李伟康

小程序码

1 parent 7f509a2b
...@@ -223,11 +223,25 @@ export default { ...@@ -223,11 +223,25 @@ export default {
this.$router.push({ name: 'gift.detail', query: { id } }) this.$router.push({ name: 'gift.detail', query: { id } })
}, },
createQr (e) { createQr (e) {
let { merchantId, sapCode } = this.getLocalStorage('dj_scrm_userInfo')
const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV)
const { shopmall_appid } = window.$fetchConfig
let scene = `id=${e.id}&merchantId=${merchantId}`
if (sapCode) query = `${query}&storeCode=${sapCode}`
this.showLoading('生成中...')
giftApi.createQr({
appId: shopmall_appid,
path: 'packageEquity/pages/directional/directional',
envVersion: IS_PROD ? 'release' : 'trial',
scene
}).then(res => {
this.hideLoading()
this.showQr = true this.showQr = true
this.qr.name = e.name this.qr = {
// giftApi.createQr({ id: e.id }).then(res => { name: e.name,
// console.log(res) img: res
// }) }
})
}, },
create () { create () {
this.$router.push({ name: 'gift.create' }) this.$router.push({ name: 'gift.create' })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!