|
@ -39,16 +39,6 @@ export default { |
|
|
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k', |
|
|
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k', |
|
|
siteServiceInfo:{}, |
|
|
siteServiceInfo:{}, |
|
|
tableKey:Date.now(), |
|
|
tableKey:Date.now(), |
|
|
payinfo: [ |
|
|
|
|
|
{ |
|
|
|
|
|
type: 'a', |
|
|
|
|
|
name: '传递的参数' |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
payType: -1, |
|
|
|
|
|
payStatus: -1, |
|
|
|
|
|
paySvg: '', |
|
|
|
|
|
confirmText: '保存', |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
@ -65,13 +55,18 @@ export default { |
|
|
store.commit('SET_CUSTOMIZE', true); |
|
|
store.commit('SET_CUSTOMIZE', true); |
|
|
store.commit('SET_SLIDER_MENU', 'siteServiceSettingData'); |
|
|
store.commit('SET_SLIDER_MENU', 'siteServiceSettingData'); |
|
|
|
|
|
|
|
|
|
|
|
this.loadPddSDK() |
|
|
this.getSiteServiceInfo() |
|
|
this.getSiteServiceInfo() |
|
|
this.getPayList() |
|
|
|
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
store.commit('SET_PAGETITLE', '服务设置'); |
|
|
store.commit('SET_PAGETITLE', '服务设置'); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
loadPddSDK() { |
|
|
|
|
|
const script = document.createElement('script'); |
|
|
|
|
|
script.src = 'https://pfile.pddpic.com/galerie-go/open_sdk/pc.202102201613.js'; |
|
|
|
|
|
document.head.appendChild(script); |
|
|
|
|
|
}, |
|
|
handleSaveEvent(payload) { |
|
|
handleSaveEvent(payload) { |
|
|
this.siteServiceInfo = payload |
|
|
this.siteServiceInfo = payload |
|
|
}, |
|
|
}, |
|
@ -88,10 +83,9 @@ export default { |
|
|
}).then(response => { |
|
|
}).then(response => { |
|
|
that.$nextTick(() => { |
|
|
that.$nextTick(() => { |
|
|
that.siteServiceInfo = response.data.service_info |
|
|
that.siteServiceInfo = response.data.service_info |
|
|
that.siteServiceInfo.paylist = [] |
|
|
|
|
|
this.tableKey = Date.now(); |
|
|
|
|
|
|
|
|
|
|
|
store.commit('SET_BREADRIGHTTEXT', response.data.site_short_name); |
|
|
store.commit('SET_BREADRIGHTTEXT', response.data.site_short_name); |
|
|
|
|
|
|
|
|
|
|
|
that.getPayList() |
|
|
}) |
|
|
}) |
|
|
}).catch(error => { |
|
|
}).catch(error => { |
|
|
console.error(error, 'error') |
|
|
console.error(error, 'error') |
|
|