Browse Source

接口请求相关优化

pull/97/head
pengda 3 months ago
parent
commit
4ff7c0de27
  1. 7
      src/components/Page2.vue
  2. 6
      src/components/SliderMenu.vue
  3. 8
      src/components/bindGoods.vue
  4. 21
      src/components/domainAdd.vue
  5. 10
      src/components/domainBind.vue
  6. 20
      src/components/pay/addPay.vue
  7. 13
      src/components/site/addSiteStep/step1.vue
  8. 26
      src/components/site/addSiteStep/step2.vue
  9. 25
      src/components/site/addSiteStep/step3.vue
  10. 7
      src/components/site/serviceSetting/domainSet.vue
  11. 7
      src/components/site/serviceSetting/linkSet.vue
  12. 8
      src/components/site/serviceSetting/menuColorSet.vue
  13. 7
      src/components/site/serviceSetting/paymentSet.vue
  14. 29
      src/components/site/serviceSetting/priceSet.vue
  15. 7
      src/components/site/serviceSetting/reportSeoSet.vue
  16. 2
      src/components/site/serviceSetting/showSet.vue
  17. 7
      src/components/site/serviceSetting/submitSeoSet.vue
  18. 9
      src/components/site/serviceSetting/syncPrice.vue
  19. 13
      src/components/site/serviceSetting/valueAdded.vue
  20. 14
      src/store/index.js
  21. 4
      src/style/franchise.scss
  22. 16
      src/views/agent/Franchise.vue
  23. 30
      src/views/agent/checkOrderList.vue
  24. 26
      src/views/agent/domainList.vue
  25. 51
      src/views/agent/home.vue
  26. 24
      src/views/agent/noticeList.vue
  27. 6
      src/views/agent/ocpcList.vue
  28. 40
      src/views/agent/payCertSetting.vue
  29. 18
      src/views/agent/payInfoSetting.vue
  30. 34
      src/views/agent/payList.vue
  31. 14
      src/views/agent/paySetting.vue
  32. 8
      src/views/agent/siteAdd.vue
  33. 32
      src/views/agent/siteBaseSetting.vue
  34. 18
      src/views/agent/siteList.vue
  35. 34
      src/views/agent/siteMobileSetting.vue
  36. 36
      src/views/agent/sitePersonalization.vue
  37. 30
      src/views/agent/siteSemSetting.vue
  38. 48
      src/views/agent/siteServiceAdd.vue
  39. 10
      src/views/agent/siteServiceEdit.vue
  40. 24
      src/views/agent/siteServiceList.vue
  41. 12
      src/views/agent/siteTemplate.vue
  42. 6
      src/views/agent/supplyList.vue
  43. 6
      src/views/demoPage.vue
  44. 1
      src/views/super/Ranking/Ranking.vue

7
src/components/Page2.vue

@ -75,7 +75,6 @@ export default {
totalRecords: 0,
buttonType: '',
totalPages: 1,
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
}
},
computed: {
@ -152,11 +151,7 @@ export default {
console.log('-----执行了');
this.$emit('changeLoad', true)
try {
this.$http('POST', this.apiUrl, this.buildParams(), {
headers: {
'Auth': this.token
}
}).then(response => {
this.$http('POST', this.apiUrl, this.buildParams()).then(response => {
const data = response.data
this.hasNextPage = data.is_has_next_page
this.minId = data.minid || null

6
src/components/SliderMenu.vue

@ -67,8 +67,6 @@ export default {
},
data() {
return {
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
isCollapse: false,
routerList: [],
currentMenuItem:'',
@ -93,10 +91,6 @@ export default {
getSiteNo() {
const that = this
that.$http('POST', '/agentnew/ajax_get_site_no', {
},{
headers:{
'Auth': this.token
}
}).then(response => {
if(response.status && response.data){
that.$nextTick(() => {

8
src/components/bindGoods.vue

@ -61,10 +61,6 @@ export default {
uid: that.uid,
type: that.type,
bind_list: that.bindData,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
if(response.status){
that.$message.success('绑定成功');
@ -89,10 +85,6 @@ export default {
keywords: that.keywords,
pdd_pati: that.pdd_pati,
pdd_pagecode: that.pdd_pagecode,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
that.loading = true
if(response.status){

21
src/components/domainAdd.vue

@ -65,10 +65,6 @@ export default {
type: Boolean,
default: false
},
authToken: {
type: String,
default: ''
},
},
components: {
GuipButton,
@ -77,8 +73,6 @@ export default {
},
data(){
return {
// AUTH
token: '',
dalogVisibleAddDomain: false,
formData: {
domain: '',
@ -109,9 +103,6 @@ export default {
dialogVisible(newVal) {
this.$emit('update:visible', newVal);
},
authToken(newVal) {
this.token = newVal;
},
},
mounted(){
@ -147,10 +138,6 @@ export default {
const that = this
that.$http('POST', '/agentnew/ajax_check_dns', {
domain: that.formData.domain
}, {
headers: {
'Auth': this.token
}
}).then(response => {
if(response.status){
that.step1 = 2
@ -168,10 +155,6 @@ export default {
const that = this
that.$http('POST', '/agentnew/ajax_check_beian', {
domain: that.formData.domain
},{
headers:{
'Auth': this.token
}
}).then(response => {
if(response.status){
that.addDomain()
@ -188,10 +171,6 @@ export default {
that.$http('POST', '/agentnew/ajax_add_domain', {
domain: that.formData.domain,
beian: that.formData.beian
},{
headers:{
'Auth': this.token
}
}).then(response => {
if(response.status){
this.init();

10
src/components/domainBind.vue

@ -27,7 +27,7 @@
</GuipFormItem>
</el-form>
<domainAdd :visible="isShowAddDomainDialog" :authToken="token" @update:visible="handleAddEvent"></domainAdd>
<domainAdd :visible="isShowAddDomainDialog" @update:visible="handleAddEvent"></domainAdd>
</div>
</template>
<script>
@ -48,8 +48,6 @@ export default {
},
data(){
return {
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
domainOptions:[],
data: {
prefix: '',
@ -71,11 +69,7 @@ export default {
methods:{
getDomainList() {
const that = this
that.$http('POST', '/agentnew/ajax_get_private_domains', {}, {
headers: {
'Auth': this.token
}
}).then(response => {
that.$http('POST', '/agentnew/ajax_get_private_domains', {}).then(response => {
if(response.status){
if(response.data.length>0){
if(!this.data.domain) this.data.domain = '.'+response.data[0]

20
src/components/pay/addPay.vue

@ -144,10 +144,6 @@ export default {
type: Boolean,
default: false
},
authToken: {
type: String,
default: ''
},
// url
taobaoAuthUrl: {
type: String,
@ -191,7 +187,6 @@ export default {
payTypePdd: '拼多多店铺'
},
token: '',
//
addPayType: -1,
@ -289,10 +284,6 @@ export default {
mch_id: this.mch_id,
apiv2: this.apiv2,
appid: this.appid
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -314,10 +305,6 @@ export default {
is_pay_public: this.isPayPublic,
receive_payment_account: this.receive_payment_account,
receive_payment_name: this.receive_payment_name
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -338,10 +325,6 @@ export default {
} else if (this.addPayType == PAY_TYPE_PDD) {
this.$http('POST', '/agentnew/ajax_add_pddpay', {
shop_name: this.pdd_shop_name,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -387,9 +370,6 @@ export default {
this.updateDialogByPayType();
this.resetForm(); //
},
authToken(newVal) {
this.token = newVal;
},
}
}

13
src/components/site/addSiteStep/step1.vue

@ -99,7 +99,6 @@ export default {
},
data(){
return {
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
formData: {
short_name: '',
domain:'',
@ -161,11 +160,7 @@ export default {
getAddInfo() {
const that = this
that.payList = []
this.$http('POST', '/agentnew/ajax_get_site_add_info', {},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_get_site_add_info', {}).then(response => {
if(response.status){
const addInfo = response.data
that.sale_channels = addInfo.sale_channels
@ -233,11 +228,7 @@ export default {
that.$refs.formRef.validate((valid) => {
if (valid) {
const that = this
that.$http('POST', '/agentnew/ajax_add_new_site', that.formData,{
headers:{
'Auth': this.token
}
}).then(response => {
that.$http('POST', '/agentnew/ajax_add_new_site', that.formData).then(response => {
if(response.status && response.data.uid){
that.formData.uid = response.data.uid
that.formData.domain_type = that.domainType

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

@ -270,7 +270,7 @@
</el-form>
</template>
<addPay :payType="addPayType" :visible="isShowAddPay" @update:visible="handleEvent" :authToken="authToken"
<addPay :payType="addPayType" :visible="isShowAddPay" @update:visible="handleEvent"
:taobaoAuthUrl="taobaoAuthUrl" :isExistSelfSupplys="isExistSelfSupplys" :pddAuthUrl="pddAuthUrl" :jdAuthUrl="jdAuthUrl"></addPay>
</div>
</div>
@ -315,8 +315,6 @@ export default {
},
data(){
return {
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
//
payTypeTaoBao: PAY_TYPE_TAOBAO,
payTypeWeixin: PAY_TYPE_WEIXIN,
@ -343,7 +341,6 @@ export default {
addPayType: -1,
isShowAddPay: false,
authToken: '',
addablePays: [],
// url
@ -379,10 +376,6 @@ export default {
getSitePayIndex() {
this.$http('POST', '/agentnew/ajax_get_site_pay_index', {
uid: this.siteInfo.uid
},{
headers:{
'Auth': this.token
}
}).then(response => {
if(Object.keys(response.data).length>0){
console.log(response.data)
@ -417,10 +410,6 @@ export default {
getPayList() {
this.$http('POST', '/agentnew/ajax_get_pay_list', {
uid: this.siteInfo.uid
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (
@ -470,11 +459,7 @@ export default {
},
//
getAddablePays() {
this.$http('POST', '/agentnew/ajax_get_addable_pays', {},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_get_addable_pays', {}).then(response => {
this.$nextTick(() => {
this.addablePays = response.data
if(response.data[PAY_TYPE_TAOBAO]) {
@ -546,7 +531,6 @@ export default {
goBindPay(type) {
this.addPayType = type;
this.isShowAddPay = true;
this.authToken = this.token;
},
handleEvent(data) {
this.isShowAddPay = data
@ -578,11 +562,7 @@ export default {
return false
}
this.$http('POST', '/agentnew/ajax_update_site_pay', data, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_update_site_pay', data).then(response => {
this.$nextTick(() => {
if (response.status) {
this.$emit('handelStep', 3)

25
src/components/site/addSiteStep/step3.vue

@ -174,7 +174,6 @@ export default {
},
data(){
return {
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
addProd: {},
serviceList:[],
tableLoading:false,
@ -221,11 +220,7 @@ export default {
uid: this.siteInfo.uid,
}
this.$http('POST', '/agentnew/ajax_add_new_site_complete', data, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_add_new_site_complete', data).then(response => {
this.$nextTick(() => {
if (response.status) {
this.$emit('handelStep', 4)
@ -244,10 +239,6 @@ export default {
that.serviceList = []
that.$http('POST', '/agentnew/ajax_get_service_list', {
uid: that.siteInfo.uid,
},{
headers:{
'Auth': that.token
}
}).then(response => {
that.tableLoading = false
if(response.status){
@ -286,10 +277,6 @@ export default {
this.$http('POST', '/agentnew/ajax_del_service', {
uid: that.siteInfo.uid,
type: that.delRow.type
},{
headers:{
'Auth': this.token
}
}).then(response => {
if(response.status){
that.$message.success('删除成功');
@ -394,11 +381,7 @@ export default {
},
async saveRequest(url, obj){
const that = this
return await this.$http('POST', url, obj,{
headers:{
'Auth': this.token
}
}).then(response => {
return await this.$http('POST', url, obj).then(response => {
if(response.status){
that.$message.success('保存成功');
return true;
@ -422,10 +405,6 @@ export default {
this.$http('POST', '/agentnew/ajax_get_service_pay_list', {
uid: that.siteInfo.uid,
type: type,
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
that.payList = response.data.paylist

7
src/components/site/serviceSetting/domainSet.vue

@ -47,7 +47,6 @@ export default {
},
data(){
return {
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
info: {},
//
saveBtnStyleObj: {
@ -84,11 +83,7 @@ export default {
}
const that = this
this.$http('POST', '/agentnew/ajax_update_service_domain', obj,{
headers:{
'Auth': this.token
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_update_service_domain', obj).then(response => {
if(response.status){
that.$message.success('保存成功');

7
src/components/site/serviceSetting/linkSet.vue

@ -54,7 +54,6 @@ export default {
},
data(){
return {
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
info: {},
syncHome:false,
syncCheck:false,
@ -87,11 +86,7 @@ export default {
obj.is_sync_check = this.syncCheck ? 1 : 0
const that = this
this.$http('POST', '/agentnew/ajax_update_service_link', obj,{
headers:{
'Auth': this.token
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_update_service_link', obj).then(response => {
if(response.status){
that.$message.success('保存成功');
that.$emit('saveEvent', that.info)

8
src/components/site/serviceSetting/menuColorSet.vue

@ -109,7 +109,6 @@ export default {
options: { styleIsolation: "shared" },
data() {
return {
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
info:{},
//
saveBtnStyleObj: {
@ -175,12 +174,7 @@ export default {
obj.report_logo = this.rep_logo_file
const that = this
this.$http('POST', '/agentnew/ajax_update_service_style', obj,{
headers:{
'Auth': this.token,
'Content-Type':'multipart/form-data'
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_update_service_style', obj).then(response => {
if(response.status){
that.$message.success('保存成功');

7
src/components/site/serviceSetting/paymentSet.vue

@ -35,7 +35,6 @@ export default {
},
data(){
return {
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
info:[],
payList:[],
//
@ -72,11 +71,7 @@ export default {
obj.info = obj.info.substr(1, obj.info.length-1);
const that = this
this.$http('POST', '/agentnew/ajax_payment_switch', obj,{
headers:{
'Auth': this.token
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_payment_switch', obj).then(response => {
if(response.status){
that.$message.success('保存成功');
that.payList = response.data.paylist

29
src/components/site/serviceSetting/priceSet.vue

@ -235,7 +235,6 @@ export default {
},
data(){
return {
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
info:{},
uid: 0,
type: 0,
@ -264,10 +263,6 @@ export default {
that.$http('POST', '/agentnew/ajax_get_service_add_info', {
uid: that.uid,
type: that.type,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
if (response.status) {
that.$nextTick(() => {
@ -289,10 +284,6 @@ export default {
that.$http('POST', '/agentnew/ajax_get_service_bind_goods', {
uid: that.uid,
type: that.type,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
if (response.status && response.data) {
that.$nextTick(() => {
@ -328,10 +319,6 @@ export default {
unit_price: that.info.price,
b_unit_num: that.info.base_unit_num,
b_unit_price: that.info.base_unit_price,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
if (response.status) {
that.$message.success('保存成功');
@ -365,10 +352,6 @@ export default {
unit_piece: that.info.unit_piece,
b_unit_num: that.info.base_unit_num,
b_unit_piece: that.info.base_unit_piece,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
if (response.status) {
that.$message.success('保存成功');
@ -391,10 +374,6 @@ export default {
const that = this
return await that.$http('POST', '/agentnew/ajax_get_pdd_page_code', {
uid: uid,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
return response.data
}).catch(error => {
@ -428,10 +407,6 @@ export default {
numiid: that.delRow.row.num_iid,
skuid: that.delRow.row.sku_id,
paytype: that.delRow.row.pay_type,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
if (response.status) {
that.$message.success('删除成功');
@ -451,10 +426,6 @@ export default {
uid: that.uid,
type: that.type,
id: id,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
if (response.status) {
that.$message.success('设置成功');

7
src/components/site/serviceSetting/reportSeoSet.vue

@ -60,7 +60,6 @@ export default {
},
data(){
return {
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
info: {},
//
saveBtnStyleObj: {
@ -84,11 +83,7 @@ export default {
obj.report_desc = this.info.seo_report_desc
const that = this
this.$http('POST', '/agentnew/ajax_update_service_report_page_seo', obj,{
headers:{
'Auth': this.token
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_update_service_report_page_seo', obj).then(response => {
if(response.status){
that.$message.success('保存成功');
that.$emit('saveEvent', that.info)

2
src/components/site/serviceSetting/showSet.vue

@ -155,7 +155,6 @@ export default {
},
data(){
return {
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
info:{},
saveSuccess: false,
//
@ -195,7 +194,6 @@ export default {
const that = this
this.$http('POST', '/agentnew/ajax_update_service_show', obj,{
headers:{
'Auth': this.token,
'Content-Type':'multipart/form-data'
}
}).then(response => {

7
src/components/site/serviceSetting/submitSeoSet.vue

@ -60,7 +60,6 @@ export default {
},
data(){
return {
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
info: {},
//
saveBtnStyleObj: {
@ -84,11 +83,7 @@ export default {
obj.submit_desc = this.info.seo_form_desc
const that = this
this.$http('POST', '/agentnew/ajax_update_service_submit_page_seo', obj,{
headers:{
'Auth': this.token
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_update_service_submit_page_seo', obj).then(response => {
if(response.status){
that.$message.success('保存成功');
that.$emit('saveEvent', that.info)

9
src/components/site/serviceSetting/syncPrice.vue

@ -47,7 +47,6 @@ export default {
},
data(){
return {
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
dialogSyncPrice: false,
tableLoading: false,
siteList:[] ,
@ -73,10 +72,6 @@ export default {
that.serviceList = []
this.$http('POST', '/agentnew/ajax_get_service_sites', {
type: that.type,
},{
headers:{
'Auth': that.token
}
}).then(response => {
that.tableLoading = false
if(response.status){
@ -119,10 +114,6 @@ export default {
type: that.type,
price_config: price_config,
is_sync: sync
}, {
headers: {
'Auth': this.token
}
}).then(response => {
if (response.status) {
that.$message.success('保存成功');

13
src/components/site/serviceSetting/valueAdded.vue

@ -68,7 +68,6 @@ export default {
},
data(){
return {
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
service_unit: '',
serviceInfo: {},
serviceAddInfo: {},
@ -85,10 +84,6 @@ export default {
that.$http('POST', '/agentnew/ajax_get_service_add_info', {
uid: that.uid,
type: that.type,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
if (response.status) {
that.$nextTick(() => {
@ -111,10 +106,6 @@ export default {
that.$http('POST', '/agentnew/ajax_get_service_info', {
uid: that.uid,
type: that.type,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
that.$nextTick(() => {
//
@ -151,10 +142,6 @@ export default {
unit_price: that.serviceInfo.price,
b_unit_num: that.serviceInfo.base_unit_num,
b_unit_price: that.serviceInfo.base_unit_price,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
if (response.status) {
that.$message.success('保存成功');

14
src/store/index.js

@ -23,6 +23,7 @@ export default new Vuex.Store({
rankMenuData: [
{
name: '总利润',
path: '',
img:'site/sitebase.svg',
imgActive: require('@/assets/site/sitebase_active.svg'),
list: [
@ -38,6 +39,7 @@ export default new Vuex.Store({
},
{
name: '产品',
path: '',
img:'site/sitebase.svg',
imgActive: require('@/assets/site/sitebase_active.svg'),
list: [
@ -61,6 +63,7 @@ export default new Vuex.Store({
},
{
name: '代理商',
path: '',
img:'site/sitebase.svg',
imgActive: require('@/assets/site/sitebase_active.svg'),
list: [
@ -80,6 +83,7 @@ export default new Vuex.Store({
},
{
name: '设置',
path: '',
img:'site/sitebase.svg',
imgActive: require('@/assets/site/sitebase_active.svg'),
list: [
@ -121,11 +125,6 @@ export default new Vuex.Store({
title: 'OCPC订单',
path: '/agent/ocpcList'
},
{
index: '2-4',
title: 'ui页面',
path: '/ui'
}
]
},
{
@ -137,11 +136,6 @@ export default new Vuex.Store({
title: '站点列表',
path: '/agent/siteList'
},
{
index: '3-2',
title: '加盟耶main',
path: '/franchise'
}
]
},
{

4
src/style/franchise.scss

@ -1177,7 +1177,7 @@ input,p {
flex-direction: column;
overflow: hidden;
// background: #f8f9fa
background-image: url(../img/../assets/franchise1/f_right_back.png);
background-image: url(@/assets/franchise1/f_right_back.png);
background-repeat: no-repeat;
background-size: 100% 100%;
}
@ -1221,7 +1221,7 @@ input,p {
width: 603px;
padding: 0 20px;
background: #f3f4fb;
background-image: url(../assets/franchise1/f_left_back.png);
background-image: url(@/assets/franchise1/f_left_back.png);
background-repeat: no-repeat;
background-size: 100% 100%
}

16
src/views/Franchise.vue → src/views/agent/Franchise.vue

@ -1,7 +1,7 @@
<template>
<div class="passport-layout-web-reg web-v3-layout-box">
<div class="web-v3-common-logo main-logo">
<img src="../assets/franchise1/logo.png" class="logo-image" alt="">
<img src="../../assets/franchise1/logo.png" class="logo-image" alt="">
</div>
<div class="is-h5">
<div class="login-com-lang">
@ -16,7 +16,7 @@
</div>
<div class="web-reg-left">
<img class="isv-img" src="../assets/franchise1/left_list.png" alt="">
<img class="isv-img" src="../../assets/franchise1/left_list.png" alt="">
</div>
<div class="web-reg-right">
<div class="web-req-right-top">
@ -33,21 +33,21 @@
<div class="right-form">
<GuipFormItem column="column" addClass="w388">
<div slot="formLeft" class="form-top-icon">
<img src="../assets/franchise1/storeNum.svg" alt="">
<img src="../../assets/franchise1/storeNum.svg" alt="">
<span>订单号</span>
</div>
<GuipInput slot="formDom" ref="GuipInput" v-model="form.tid" prop="tid" placeholder="拍1件金额3000元订单" desc="2000元加盟费+1000元充值账户余额"/>
</GuipFormItem>
<GuipFormItem column="column" addClass="w388">
<div slot="formLeft" class="form-top-icon">
<img src="../assets/franchise1/nicheng.svg" alt="">
<img src="../../assets/franchise1/nicheng.svg" alt="">
<span>平台昵称</span>
</div>
<GuipInput slot="formDom" ref="GuipInput" v-model="form.nick" prop="nick" placeholder="为自己取个平台昵称" desc="仅用于后台内使用、区分子账号"/>
</GuipFormItem>
<GuipFormItem column="column" addClass="w388">
<div slot="formLeft" class="form-top-icon">
<img src="../assets/franchise1/nicheng.svg" alt="">
<img src="../../assets/franchise1/nicheng.svg" alt="">
<span>联系人姓名</span>
</div>
<GuipInput slot="formDom" ref="GuipInput" v-model="form.name" prop="name" placeholder="您的真实姓名"/>
@ -57,7 +57,7 @@
:code-prop="'code'" @send-code="handleSendCode" /> -->
<GuipFormItem column="column" addClass="w388">
<div slot="formLeft" class="form-top-icon">
<img src="../assets/franchise1/storeNum.svg" alt="">
<img src="../../assets/franchise1/storeNum.svg" alt="">
<span>手机号码</span>
</div>
<el-form-item slot="formDom" prop="phone"
@ -78,7 +78,7 @@
<!-- 验证码输入框 -->
<GuipFormItem column="column" addClass="w388">
<div slot="formLeft" class="form-top-icon">
<img src="../assets/franchise1/codeNumber.svg" alt="">
<img src="../../assets/franchise1/codeNumber.svg" alt="">
<span>验证码</span>
</div>
<el-form-item slot="formDom" prop="sms_code">
@ -287,7 +287,7 @@ export default {
}
</script>
<style lang="scss" scoped>
@import '../style/franchise.scss';
@import '../../style/franchise';
::v-deep .el-form-item {
margin-bottom: 0;
}

30
src/views/agent/checkOrderList.vue

@ -279,8 +279,6 @@ export default {
return {
pageTab: 'check',
pageTitle: '查重订单',
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
//
tableLoading: false,
//
@ -430,10 +428,6 @@ export default {
getConfig() {
this.$http('POST', '/agentnew/get_agent_config', {
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -461,11 +455,7 @@ export default {
...params
}
console.log(requestParams, 'requestParams===');
this.$http('POST', '/agentnew/ajax_get_check_order_list', requestParams, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_get_check_order_list', requestParams).then(response => {
this.tableLoading = false
this.$nextTick(() => {
if (this.intervalId && response.data.maxid && this.orderListPrevMaxId && response.data.maxid > this.orderListPrevMaxId) {
@ -519,9 +509,6 @@ export default {
this.$http('GET', '/agentnew/export_order', params, {
returnFullResponse: true,
headers: {
'Auth': this.token,
},
responseType: 'blob'
}).then(response => {
const {
@ -580,10 +567,6 @@ export default {
changeReportNameFormat() {
this.$http('POST', '/agentnew/ajax_set_report_name_format', {
report_name_format: this.reportNameFormat,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -605,10 +588,6 @@ export default {
confirmDelReport() {
this.$http('POST', '/agentnew/ajax_del_report', {
saleid: this.delReportId,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -651,9 +630,6 @@ export default {
uid: this.pddExportUid,
}, {
returnFullResponse: true,
headers: {
'Auth': this.token,
},
responseType: 'blob'
}).then(response => {
const {
@ -681,10 +657,6 @@ export default {
} else if (this.pddSettingActiveName == 2) {
this.$http('POST', '/agentnew/ajax_set_pdd_delivered_delayed_submit_hour', {
hour: this.selectAllowPddDeliveredDelayedSubmit === true ? this.pddDeliveredDelayedSubmitHour : 0,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {

26
src/views/agent/domainList.vue

@ -88,7 +88,7 @@
</el-form>
</GuipDialog>
<domainAdd :visible="isShowAddDomainDialog" :authToken="authToken" @update:visible="handleEvent"></domainAdd>
<domainAdd :visible="isShowAddDomainDialog" @update:visible="handleEvent"></domainAdd>
</div>
</template>
@ -109,8 +109,6 @@ export default {
},
data() {
return {
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
//
domainList: [],
//
@ -131,7 +129,6 @@ export default {
},
isShowAddDomainDialog: false,
authToken: '',
}
},
computed: {
@ -148,10 +145,6 @@ export default {
that.payList = []
this.$http('POST', '/agentnew/ajax_get_private_domain_list', {
gid: this.gid,
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.tableLoading = false
this.$nextTick(() => {
@ -165,10 +158,6 @@ export default {
applyHttpsCert() {
this.$http('POST', '/agentnew/ajax_apply_https_cert', {
domain: this.applyHttpsDomain.domain,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -209,10 +198,6 @@ export default {
getHttpsDnsTxt(getHttpsDnsTxt) {
this.$http('POST', '/agentnew/ajax_get_https_dns_txt', {
keys: getHttpsDnsTxt
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -247,10 +232,6 @@ export default {
verifyHttpsCertDns() {
this.$http('POST', '/agentnew/ajax_verify_https_cert_dns', {
domain: this.applyHttpsDomain.domain
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -277,10 +258,6 @@ export default {
getVerifyHttpsCertDnsResult(keys) {
this.$http('POST', '/agentnew/ajax_get_verify_https_cert_dns_result', {
keys: keys
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -373,7 +350,6 @@ export default {
},
showAddDomainDialog() {
this.isShowAddDomainDialog = true;
this.authToken = this.token;
},
handleEvent(data) {
if(data.domain){

51
src/views/agent/home.vue

@ -170,8 +170,6 @@ export default {
name: 'HomeView',
data() {
return {
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
//
tableLoading: true,
type2name:[],
@ -248,13 +246,7 @@ export default {
this.tableLoading = true
const that = this
that.serviceList = []
this.$http('POST', '/agentnew/ajax_get_supply_services', {
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_get_supply_services', {}).then(response => {
this.tableLoading = false
this.$nextTick(() => {
that.serviceList = response.data.list
@ -270,13 +262,7 @@ export default {
})
},
getSaleStats() {
this.$http('POST', '/agentnew/ajax_get_sale_stats', {
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_get_sale_stats', {}).then(response => {
this.$nextTick(() => {
this.saleStats = response.data
})
@ -285,13 +271,7 @@ export default {
})
},
getExpireServices() {
this.$http('POST', '/agentnew/ajax_get_expire_services', {
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_get_expire_services', {}).then(response => {
this.$nextTick(() => {
this.expireServices = response.data
})
@ -300,13 +280,7 @@ export default {
})
},
getWalletList() {
this.$http('POST', '/agentnew/ajax_get_wallet', {
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_get_wallet', {}).then(response => {
this.$nextTick(() => {
this.walletList = response.data
})
@ -315,13 +289,7 @@ export default {
})
},
getNoticeList(){
this.$http('POST', '/agentnew/ajax_get_notice_list', {
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_get_notice_list', {}).then(response => {
this.$nextTick(() => {
this.noticeList = response.data
})
@ -349,13 +317,7 @@ export default {
},
// ---start
showRecommendedAgentDialog() {
this.$http('POST', '/agentnew/ajax_get_recommended_text', {
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_get_recommended_text', {}).then(response => {
this.tableLoading = false
this.$nextTick(() => {
this.recommendedText = response.data.text
@ -364,7 +326,6 @@ export default {
}).catch(error => {
console.error(error, 'error')
})
},
//
handleCancel() {

24
src/views/agent/noticeList.vue

@ -10,7 +10,7 @@
{{ item.title }}
<!-- <img class="systemIcon" src="@/assets/home/systemIcon.svg" alt=""> -->
</b>
<p v-html="item.content">{{ item.content }}</p>
<p class="html-container" v-html="item.content">{{ item.content }}</p>
</div>
</div>
</div>
@ -29,8 +29,6 @@ export default {
},
data() {
return {
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
noticeList: [],
}
},
@ -44,10 +42,6 @@ export default {
getNoticeList(){
this.$http('POST', '/agentnew/ajax_get_notice_list', {
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
this.noticeList = response.data
@ -60,6 +54,22 @@ export default {
}
</script>
<style lang="scss" scoped>
.html-container{
::v-deep a{
display: inline-block;
color: #8A9099;
text-decoration: none;
background-image: url(@/assets/site/form_link.svg);
background-repeat: no-repeat;
text-indent: 20px;
background-size: 14px;
background-position: 0 50%;
}
::v-deep a:hover{
color: #006AFF;
background-image: url(@/assets/site/form_linkActive.svg);
}
}
.systemNotice-main {
img {
width: 32px;

6
src/views/agent/ocpcList.vue

@ -50,8 +50,6 @@ export default {
},
data() {
return {
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
//
tableLoading: true,
//
@ -79,10 +77,6 @@ export default {
pagesize: this.orderListPageSize,
uid: this.searchUid,
saleid: this.searchSaleid,
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.tableLoading = false
this.$nextTick(() => {

40
src/views/agent/payCertSetting.vue

@ -282,8 +282,6 @@ export default {
},
data() {
return {
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
payid: '',
payinfo: [],
payType: -1,
@ -316,7 +314,6 @@ export default {
uploadParams: {
},
uploadHeaders: {
'Auth': this.token
},
tableLoading: false,
@ -344,10 +341,6 @@ export default {
getPayment() {
this.$http('POST', '/agentnew/ajax_get_payinfo', {
payid: this.$route.query.payid,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
this.payinfo = response.data
@ -368,10 +361,6 @@ export default {
getProfitShareInfo() {
this.$http('POST', '/agentnew/ajax_get_profit_share_info', {
pid: this.$route.query.payid,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
this.profitShareReceiversRelationType = response.data.receivers_relation_type
@ -388,10 +377,6 @@ export default {
this.$http('POST', '/agentnew/ajax_setting_auto_refund', {
payid: this.$route.query.payid,
status: row.is_auto_refund,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -409,10 +394,6 @@ export default {
this.$http('POST', '/agentnew/ajax_update_profit_share_status', {
pid: this.$route.query.payid,
profit_share_status: row.profit_share_status == 1 ? 0 : 1,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -434,10 +415,6 @@ export default {
pid: this.$route.query.payid,
cur_page: this.profitShareListCurrentPage,
page_size: this.profitShareListPageSize
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.tableLoading = false
this.$nextTick(() => {
@ -498,14 +475,7 @@ export default {
// for(let [key,value] of this.formData){
// console.log(key,value,'=====key');
// }
this.$http('POST', '/agentnew/upload_pay_cert',
this.formData
, {
headers: {
'Auth': this.token,
'Content-Type':'multipart/form-data'
}
}).then(response => {
this.$http('POST', '/agentnew/upload_pay_cert', this.formData).then(response => {
this.$nextTick(() => {
if (response.status) {
this.$Message.success(response.info);
@ -522,10 +492,6 @@ export default {
this.$http('POST', '/agentnew/ajax_save_apiv3', {
pid: this.$route.query.payid,
apiv3: row.apiv3
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -547,10 +513,6 @@ export default {
raccount: row.receiver_account,
rtype: row.relation_type,
custom_relation: row.custom_relation
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {

18
src/views/agent/payInfoSetting.vue

@ -206,8 +206,6 @@ export default {
},
data() {
return {
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
payinfo: [],
payType: -1,
//
@ -247,10 +245,6 @@ export default {
getPayment() {
this.$http('POST', '/agentnew/ajax_get_payinfo', {
payid: this.$route.query.payid,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
this.payinfo = response.data
@ -284,10 +278,6 @@ export default {
mch_id: this.payinfo.mch_id,
apiv2: this.payinfo.apiv2,
appid: this.payinfo.appid
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -308,10 +298,6 @@ export default {
is_pay_public: this.payinfo.is_pay_public,
receive_payment_account: this.payinfo.receive_payment_account,
receive_payment_name: this.payinfo.receive_payment_name
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -331,10 +317,6 @@ export default {
} else if (this.payType == PAY_TYPE_PDD) {
this.$http('POST', '/agentnew/ajax_add_pddpay', {
shop_name: this.payinfo.account,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {

34
src/views/agent/payList.vue

@ -433,8 +433,6 @@ export default {
payTypeAlipay: PAY_TYPE_ALIPAY,
payTypeJingdong: PAY_TYPE_JINGDONG,
payTypePdd: PAY_TYPE_PDD,
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
//
addablePays: [],
//
@ -499,10 +497,6 @@ export default {
getAddablePays() {
this.$http('POST', '/agentnew/ajax_get_addable_pays', {
gid: this.gid,
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.tableLoading = false
this.$nextTick(() => {
@ -535,10 +529,6 @@ export default {
that.payList = []
this.$http('POST', '/agentnew/ajax_get_pay_list', {
gid: this.gid,
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.tableLoading = false
this.$nextTick(() => {
@ -552,10 +542,6 @@ export default {
getPayBindSites() {
this.$http('POST', '/agentnew/ajax_get_pay_bind_sites', {
gid: this.gid,
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.tableLoading = false
this.$nextTick(() => {
@ -578,10 +564,6 @@ export default {
this.$http('POST', '/agentnew/ajax_update_pay_status', {
payid: row.payid,
status: row.status,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -603,10 +585,6 @@ export default {
this.$http('POST', '/agentnew/ajax_setting_auto_refund', {
payid: row.payid,
status: row.is_auto_refund,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -641,10 +619,6 @@ export default {
mch_id: this.mch_id,
apiv2: this.apiv2,
appid: this.appid
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -665,10 +639,6 @@ export default {
is_pay_public: this.isPayPublic,
receive_payment_account: this.receive_payment_account,
receive_payment_name: this.receive_payment_name
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -691,10 +661,6 @@ export default {
} else if (this.addPayType == PAY_TYPE_PDD) {
this.$http('POST', '/agentnew/ajax_add_pddpay', {
shop_name: this.pdd_shop_name,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {

14
src/views/agent/paySetting.vue

@ -78,8 +78,6 @@ export default {
},
data() {
return {
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
payinfo: [],
payType: -1,
payStatus: -1,
@ -109,10 +107,6 @@ export default {
getPayment() {
this.$http('POST', '/agentnew/ajax_get_payinfo', {
payid: this.$route.query.payid,
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
this.payinfo = response.data
@ -133,10 +127,6 @@ export default {
this.$http('POST', '/agentnew/ajax_update_pay_status', {
payid: this.$route.query.payid,
status: row.status,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -154,10 +144,6 @@ export default {
deletePay() {
this.$http('POST', '/agentnew/ajax_del_pay', {
payid: this.$route.query.payid,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {

8
src/views/agent/siteAdd.vue

@ -71,8 +71,6 @@ export default {
},
data() {
return {
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
siteInfo:{},
showAlert:true,
activeStep: '1',//
@ -105,11 +103,7 @@ export default {
getNotFinishedSite() {
const that = this
that.payList = []
this.$http('POST', '/agentnew/ajax_get_not_finished_site', {},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_get_not_finished_site', {}).then(response => {
if(response.status){
that.$nextTick(() => {
const unsiteInfo = response.data

32
src/views/agent/siteBaseSetting.vue

@ -290,7 +290,7 @@
</div>
</div>
<addPay :payType="addPayType" :visible="isShowAddPay" @update:visible="handleEvent" :authToken="authToken"
<addPay :payType="addPayType" :visible="isShowAddPay" @update:visible="handleEvent"
:taobaoAuthUrl="taobaoAuthUrl" :isExistSelfSupplys="isExistSelfSupplys" :pddAuthUrl="pddAuthUrl" :jdAuthUrl="jdAuthUrl"></addPay>
</div>
</template>
@ -340,8 +340,6 @@ export default {
payTypeJingdong: PAY_TYPE_JINGDONG,
payTypePdd: PAY_TYPE_PDD,
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
//
siteInfo: {
short_name: '',
@ -369,7 +367,6 @@ export default {
sitePays: [],
addPayType: -1,
isShowAddPay: false,
authToken: '',
addablePays: [],
// url
@ -409,10 +406,6 @@ export default {
getAddablePays() {
this.$http('POST', '/agentnew/ajax_get_addable_pays', {
uid: this.$route.query.uid
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
this.addablePays = response.data
@ -441,10 +434,6 @@ export default {
getPayList() {
this.$http('POST', '/agentnew/ajax_get_pay_list', {
uid: this.$route.query.uid,
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (
@ -495,7 +484,6 @@ export default {
goBindPay(type) {
this.addPayType = type;
this.isShowAddPay = true;
this.authToken = this.token;
},
//
toggleDrop(e){
@ -511,10 +499,6 @@ export default {
that.siteInfo = []
this.$http('POST', '/agentnew/ajax_get_site_info', {
uid: this.$route.query.uid,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
that.siteInfo = response.data
@ -576,10 +560,6 @@ export default {
short_name: this.siteInfo.short_name,
company_name: this.siteInfo.company_name,
company_phone: this.siteInfo.phone_num,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -682,11 +662,7 @@ export default {
},
}
this.$http('POST', '/agentnew/ajax_update_site_pay', data, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_update_site_pay', data).then(response => {
this.$nextTick(() => {
if (response.status) {
this.$Message.success(response.info);
@ -721,10 +697,6 @@ export default {
this.$http('POST', '/agentnew/ajax_update_site_domain', {
uid: this.$route.query.uid,
domain: domain,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {

18
src/views/agent/siteList.vue

@ -130,8 +130,6 @@ export default {
},
data() {
return {
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
//
tableLoading: true,
//
@ -181,10 +179,6 @@ export default {
that.siteList = []
this.$http('POST', '/agentnew/ajax_get_site_list', {
gid: this.gid,
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.tableLoading = false
this.$nextTick(() => {
@ -200,10 +194,6 @@ export default {
that.siteGroups = []
this.$http('POST', '/agentnew/ajax_get_site_groups', {
gid: this.gid,
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
that.siteGroups = response.data
@ -246,10 +236,6 @@ export default {
this.$http('POST', '/agentnew/ajax_add_site_group_index', {
groupid: this.selected_group,
uid: row.uid,
},{
headers:{
'Auth': this.token
}
}).then(response => {
if (response.status) {
//
@ -308,10 +294,6 @@ export default {
this.$http('POST', '/agentnew/ajax_add_site_group', {
name: this.groupname,
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {

34
src/views/agent/siteMobileSetting.vue

@ -286,8 +286,6 @@ export default {
},
data() {
return {
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
siteWxpayInfo: [],
//
siteInfo: [],
@ -329,10 +327,6 @@ export default {
that.siteInfo = []
this.$http('POST', '/agentnew/ajax_get_site_info', {
uid: this.$route.query.uid,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
that.siteInfo = response.data
@ -347,10 +341,6 @@ export default {
that.siteInfo = []
this.$http('POST', '/agentnew/ajax_get_site_wxpay_info', {
uid: this.$route.query.uid,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
that.siteWxpayInfo = response.data
@ -362,10 +352,6 @@ export default {
getXcxList() {
this.$http('POST', '/agentnew/ajax_get_xcx_list', {
// uid: this.$route.query.uid,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
this.xcxList = response.data
@ -377,10 +363,6 @@ export default {
getSiteXcxList() {
this.$http('POST', '/agentnew/ajax_get_site_xcx_list', {
uid: this.$route.query.uid,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
this.siteXcxList = response.data
@ -407,10 +389,6 @@ export default {
this.$http('POST', '/agentnew/ajax_update_site_h5_config', {
uid: this.$route.query.uid,
status: this.siteInfo.is_open_h5
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -438,10 +416,6 @@ export default {
handleConfirm() {
this.$http('POST', '/agentnew/ajax_get_mp_auth_url', {
// uid: this.$route.query.uid,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -494,10 +468,6 @@ export default {
uid: this.$route.query.uid,
type: this.xcxType,
appsecret: this.xcxAppsecret,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -517,10 +487,6 @@ export default {
uid: this.$route.query.uid,
wx_xcx_id: this.bindWxXcxId,
ali_xcx_id: this.bindAliXcxId,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {

36
src/views/agent/sitePersonalization.vue

@ -238,8 +238,6 @@ export default {
},
data() {
return {
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
//
siteInfo: [],
formData:new FormData(),
@ -290,10 +288,6 @@ export default {
that.siteInfo = []
this.$http('POST', '/agentnew/ajax_get_site_info', {
uid: this.$route.query.uid,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
that.siteInfo = response.data
@ -315,10 +309,6 @@ export default {
this.$http('POST', '/agentnew/ajax_update_site_init_checknum', {
uid: this.$route.query.uid,
init_checknum: row.init_checknum
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -356,10 +346,6 @@ export default {
is_display_price: is_display_price,
is_display_submit_page_price: is_display_submit_page_price,
is_display_outchain: is_display_outchain,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -377,10 +363,6 @@ export default {
uid: this.$route.query.uid,
is_allow_repeat_submit: this.siteInfo.is_allow_repeat_submit==1 ? 0 : 1,
repeat_submit_fields: this.repeatSubmitFields.join(',')
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -417,10 +399,6 @@ export default {
uid: this.$route.query.uid,
wx: this.siteInfo.wxkf,
wangwang: this.siteInfo.wangwang,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -437,10 +415,6 @@ export default {
this.$http('POST', '/agentnew/ajax_update_site_type', {
uid: this.$route.query.uid,
site_type: this.siteInfo.site_type,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -459,14 +433,7 @@ export default {
// }
this.formData.set('wangwang', this.siteInfo.wangwang)
this.formData.set('uid', this.$route.query.uid)
this.$http('POST', '/agentnew/ajax_update_site_kefu',
this.formData
, {
headers: {
'Auth': this.token,
'Content-Type':'multipart/form-data'
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_update_site_kefu', this.formData).then(response => {
this.$nextTick(() => {
if (response.status) {
this.$Message.success(response.info);
@ -489,7 +456,6 @@ export default {
this.formData
, {
headers: {
'Auth': this.token,
'Content-Type':'multipart/form-data'
}
}).then(response => {

30
src/views/agent/siteSemSetting.vue

@ -300,8 +300,6 @@ export default {
},
data() {
return {
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
//
siteInfo: {
sitename: '',
@ -356,10 +354,6 @@ export default {
that.siteInfo = []
this.$http('POST', '/agentnew/ajax_get_site_info', {
uid: this.$route.query.uid,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
that.siteInfo = {...response.data}
@ -374,10 +368,6 @@ export default {
title: this.siteInfo.sitename,
desc: this.siteInfo.sitedesc,
keyword: this.siteInfo.sitekeywords
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -394,10 +384,6 @@ export default {
this.$http('POST', '/agentnew/ajax_update_bd_ocpc', {
uid: this.$route.query.uid,
token: this.siteInfo.bd_ocpc_token,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -414,10 +400,6 @@ export default {
this.$http('POST', '/agentnew/ajax_verify_bd_ocpc', {
uid: this.$route.query.uid,
bdurl: this.bdurl,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -435,10 +417,6 @@ export default {
uid: this.$route.query.uid,
appkey: this.siteInfo.ocpc_360_appkey,
appsecret: this.siteInfo.ocpc_360_appsecret
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -459,10 +437,6 @@ export default {
customer_id: this.siteInfo.bing_customer_id,
customer_account_id: this.siteInfo.bing_customer_account_id,
conversion_name: this.siteInfo.bing_conversion_name
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {
@ -479,10 +453,6 @@ export default {
this.$http('POST', '/agentnew/ajax_update_site_access_stat', {
uid: this.$route.query.uid,
access_stats_code: this.siteInfo.access_stats_code,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
if (response.status) {

48
src/views/agent/siteServiceAdd.vue

@ -267,8 +267,6 @@ export default {
},
data() {
return {
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
uid: 0,
type: 0,
prodid: 0,
@ -323,10 +321,6 @@ export default {
that.$http('POST', '/agentnew/ajax_get_service_add_list', {
uid: that.uid,
prodid: that.prodid,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
that.$nextTick(() => {
that.menuList = response.data
@ -343,10 +337,6 @@ export default {
that.$http('POST', '/agentnew/ajax_get_service_add_info', {
uid: that.uid,
type: that.type,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
if (response.status) {
that.$nextTick(() => {
@ -370,10 +360,6 @@ export default {
that.$http('POST', '/agentnew/ajax_get_service_info', {
uid: that.uid,
type: that.type,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
that.$nextTick(() => {
//
@ -395,10 +381,6 @@ export default {
that.$http('POST', '/agentnew/ajax_get_service_bind_goods', {
uid: that.uid,
type: that.type,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
if (response.status && response.data) {
that.$nextTick(() => {
@ -424,10 +406,6 @@ export default {
this.$http('POST', '/agentnew/ajax_del_service', {
uid: that.uid,
type: that.type,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
if (response.status) {
that.$message.success('删除成功');
@ -465,10 +443,6 @@ export default {
unit_price: that.serviceInfo.price,
b_unit_num: that.serviceInfo.base_unit_num,
b_unit_price: that.serviceInfo.base_unit_price,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
if (response.status) {
if (that.service_status === false) {
@ -507,10 +481,6 @@ export default {
unit_piece: that.serviceInfo.unit_piece,
b_unit_num: that.serviceInfo.base_unit_num,
b_unit_piece: that.serviceInfo.base_unit_piece,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
if (response.status) {
if (that.service_status === false) {
@ -554,10 +524,6 @@ export default {
const that = this
return await that.$http('POST', '/agentnew/ajax_get_pdd_page_code', {
uid: uid,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
return response.data
}).catch(error => {
@ -591,10 +557,6 @@ export default {
numiid: that.delRow.row.num_iid,
skuid: that.delRow.row.sku_id,
paytype: that.delRow.row.pay_type,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
if (response.status) {
that.$message.success('删除成功');
@ -614,10 +576,6 @@ export default {
uid: that.uid,
type: that.type,
id: id,
}, {
headers: {
'Auth': this.token
}
}).then(response => {
if (response.status) {
that.$message.success('设置成功');
@ -635,11 +593,7 @@ export default {
//------ end------
jumpStep() {
const that = this
this.$http('POST', '/agentnew/ajax_get_not_finished_site', {},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_get_not_finished_site', {}).then(response => {
if(Object.keys(response.data).length>0){
that.$router.push('/agent/siteAdd')
} else {

10
src/views/agent/siteServiceEdit.vue

@ -35,8 +35,6 @@ export default {
},
data() {
return {
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
siteServiceInfo:{},
tableKey:Date.now(),
}
@ -76,10 +74,6 @@ export default {
this.$http('POST', '/agentnew/ajax_get_service_info', {
uid: that.uid,
type: that.type,
},{
headers:{
'Auth': this.token
}
}).then(response => {
that.$nextTick(() => {
that.siteServiceInfo = response.data.service_info
@ -97,10 +91,6 @@ export default {
this.$http('POST', '/agentnew/ajax_get_service_pay_list', {
uid: that.uid,
type: that.type,
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
that.siteServiceInfo.paylist = response.data.paylist

24
src/views/agent/siteServiceList.vue

@ -167,8 +167,6 @@ export default {
},
data() {
return {
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
//
btnInfostyleObj:{
width: '99px',
@ -249,10 +247,6 @@ export default {
that.serviceList = []
this.$http('POST', '/agentnew/ajax_get_service_list', {
uid: that.uid,
},{
headers:{
'Auth': that.token
}
}).then(response => {
that.tableLoading = false
if(response.status){
@ -300,10 +294,6 @@ export default {
this.$http('POST', '/agentnew/ajax_del_services', {
uid: that.uid,
types: JSON.stringify(delTypes)
},{
headers:{
'Auth': this.token
}
}).then(response => {
if(response.status){
that.$message.success('删除成功');
@ -333,10 +323,6 @@ export default {
this.$http('POST', '/agentnew/ajax_del_service', {
uid: that.uid,
type: that.delRow.type
},{
headers:{
'Auth': this.token
}
}).then(response => {
if(response.status){
that.$message.success('删除成功');
@ -445,11 +431,7 @@ export default {
},
async saveRequest(url, obj){
const that = this
return await this.$http('POST', url, obj,{
headers:{
'Auth': this.token
}
}).then(response => {
return await this.$http('POST', url, obj ).then(response => {
if(response.status){
that.$message.success('保存成功');
return true;
@ -473,10 +455,6 @@ export default {
this.$http('POST', '/agentnew/ajax_get_service_pay_list', {
uid: that.uid,
type: type,
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
that.payList = response.data.paylist

12
src/views/agent/siteTemplate.vue

@ -138,10 +138,6 @@ export default {
get_site_tpl_list() {
this.$http('POST', '/agentnew/ajax_get_site_tpl_list', {
uid: this.$route.query?.uid,
}, {
headers: {
'Auth': this.$token
}
}).then(response => {
this.$nextTick(() => {
if(response.data.length >0){
@ -174,13 +170,7 @@ export default {
this.formData.set('tpl_id', this.tpl_id)
this.formData.set('is_public_tpl', 1)
this.$http('POST', '/agentnew/ajax_update_site_tpl',
this.formData
, {
headers: {
'Auth': this.$token
}
}).then(response => {
this.$http('POST', '/agentnew/ajax_update_site_tpl', this.formData).then(response => {
if(response.status){
this.$Message.success(response.info)
this.$router.go(-1)

6
src/views/agent/supplyList.vue

@ -71,8 +71,6 @@ export default {
},
data() {
return {
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
type2name:[],
classifyId2Name: [],
classifyId2Vers: [],
@ -107,10 +105,6 @@ export default {
getSupplyServiceList() {
this.$http('POST', '/agentnew/ajax_get_supply_services', {
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
this.classifyId2Name = response.data.classifyid2name;

6
src/views/demoPage.vue

@ -14,8 +14,8 @@ import { mapState } from 'vuex';
import GuipSwitch from '@/components/GuipSwitch.vue';
import GuipButton from '@/components/GuipButton.vue';
import HoverButton from '@/components/HoverButton.vue'
import Franchise from '@/views/Franchise.vue'
import Franchise1 from '@/views/Franchise.vue'
import Franchise from '@/views/agent/Franchise.vue'
import Franchise1 from '@/views/agent/Franchise.vue'
import Register from '@/views/Register.vue'
export default {
//
@ -32,8 +32,6 @@ export default {
},
data() {
return {
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k',
payinfo: [
{
type: 'a',

1
src/views/super/Ranking/Ranking.vue

@ -36,7 +36,6 @@ export default {
},
mounted() {
this.path = this.$route.path;
if(this.$route.query.str) localStorage.setItem('token', this.$route.query.str)
},
methods: {}
}

Loading…
Cancel
Save