Browse Source

注册优化

zq-nodeTest
pengda 1 month ago
parent
commit
d974de2b30
  1. 6
      src/components/site/addSiteStep/step2.vue
  2. 2
      src/views/agent/siteBaseSetting.vue
  3. 22
      src/views/agent/siteServiceEdit.vue

6
src/components/site/addSiteStep/step2.vue

@ -415,7 +415,9 @@ export default {
}, },
// //
getPayList() { getPayList() {
this.$http('POST', '/agentnew/ajax_get_pay_list', {},{ this.$http('POST', '/agentnew/ajax_get_pay_list', {
uid: this.siteInfo.uid
},{
headers:{ headers:{
'Auth': this.token 'Auth': this.token
} }
@ -508,10 +510,8 @@ export default {
changeSelectAlipay(item) { changeSelectAlipay(item) {
this.bindAlipayId = item.payid; this.bindAlipayId = item.payid;
this.selectAlipay = item; this.selectAlipay = item;
console.log(this.bindWxpayId, 'bindWxpayId');
this.selectedItem = { ...item }; this.selectedItem = { ...item };
console.log(this.selectedItem, 'this.selectedItem====');
}, },
changeSelectTaobao(item) { changeSelectTaobao(item) {
this.bindTaobaoId = item.payid; this.bindTaobaoId = item.payid;

2
src/views/agent/siteBaseSetting.vue

@ -533,7 +533,7 @@ export default {
// //
getPayList() { getPayList() {
this.$http('POST', '/agentnew/ajax_get_pay_list', { this.$http('POST', '/agentnew/ajax_get_pay_list', {
gid: this.gid, uid: this.$route.query.uid,
},{ },{
headers:{ headers:{
'Auth': this.token 'Auth': this.token

22
src/views/agent/siteServiceEdit.vue

@ -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')

Loading…
Cancel
Save