Browse Source

【修改抖音预览码接口】

master
chenshengle 2 years ago
parent
commit
29d07008a0
2 changed files with 103 additions and 89 deletions
  1. +102
    -88
      src/components/layout/homePage.vue
  2. +1
    -1
      src/utils/config.js

+ 102
- 88
src/components/layout/homePage.vue View File

@@ -82,97 +82,103 @@ export default {
actions: [
{
key: "edit",
val: "配置隐私保护指引",
action: this.setprivacysetting,
show: item => {
return (item.type == 1 || item.type == 2)&&item.privacySettingStatus!=0 ? true : false;
}
},
{
key: "edit",
val: "查询隐私保护指引",
action: this.getPrivacySetting,
show: item => {
return (item.type == 1 || item.type == 2)&&item.privacySettingStatus==0 ? true : false;
}
},
val: "找回授权码",
action: this.getBack,
}
// {
// key: "edit",
// val: "查询最新审核状态",
// action: this.getLatestAuditstatus,
// val: "配置隐私保护指引",
// action: this.setprivacysetting,
// show: item => {
// return (item.type == 1 || item.type == 2)&&item.privacySettingStatus!=0 ? true : false;
// }
// },
{
key: "edit",
val: "基础",
action: this.searchFigure,
show: item => {
return item.type == 1 || item.type == 2 ? true : false;
}
},
{
key: "edit",
val: "扩展(3)",
action: this.conFigure,
show: item => {
return item.type == 1 || item.type == 2 ? true : false;
}
},
{
key: "edit",
val: "类目",
action: this.getCategory,
show: item => {
return item.type == 1 || item.type == 2 ? true : false;
}
},
{
key: "delete",
val: "模板列表",
action: this.templateList,
show: item => {
return item.type == 1 || item.type == 2 ? true : false;
}
},
{
key: "edit",
val: "创建O",
action: this.createPlatform,
show: item => {
return (item.type == 3)&&(!item.openAppid) || (item.type == 4)&&(!item.openAppid) ? true : false;
}
},
{
key: "bind",
val: "绑定O",
action: this.bindPlatform,
show: item => {
return (item.type == 1)&&(!item.openAppid) || (item.type == 2)&&(!item.openAppid) ? true : false;
}
},
{
key: "unbind",
val: "解绑O",
action: this.unbindPlatform,
show: item => {
return item.type == 1 || item.type == 2 ? true : false;
}
},
{
key: "edit",
val: "获取O",
action: this.getPlatform,
show: item => {
return (item.type == 1)&&(!item.openAppid) || (item.type == 2)&&(!item.openAppid) ? true : false;
}
},
{
key: "edit",
val: "重置Quota",
action: this.clearQuota,
show: item => {
return item.type == 3 || item.type == 4 ? true : false;
}
}
// {
// key: "edit",
// val: "查询隐私保护指引",
// action: this.getPrivacySetting,
// show: item => {
// return (item.type == 1 || item.type == 2)&&item.privacySettingStatus==0 ? true : false;
// }
// },
// // {
// // key: "edit",
// // val: "查询最新审核状态",
// // action: this.getLatestAuditstatus,
// // },
// {
// key: "edit",
// val: "基础",
// action: this.searchFigure,
// show: item => {
// return item.type == 1 || item.type == 2 ? true : false;
// }
// },
// {
// key: "edit",
// val: "扩展(3)",
// action: this.conFigure,
// show: item => {
// return item.type == 1 || item.type == 2 ? true : false;
// }
// },
// {
// key: "edit",
// val: "类目",
// action: this.getCategory,
// show: item => {
// return item.type == 1 || item.type == 2 ? true : false;
// }
// },
// {
// key: "delete",
// val: "模板列表",
// action: this.templateList,
// show: item => {
// return item.type == 1 || item.type == 2 ? true : false;
// }
// },
// {
// key: "edit",
// val: "创建O",
// action: this.createPlatform,
// show: item => {
// return (item.type == 3)&&(!item.openAppid) || (item.type == 4)&&(!item.openAppid) ? true : false;
// }
// },
// {
// key: "bind",
// val: "绑定O",
// action: this.bindPlatform,
// show: item => {
// return (item.type == 1)&&(!item.openAppid) || (item.type == 2)&&(!item.openAppid) ? true : false;
// }
// },
// {
// key: "unbind",
// val: "解绑O",
// action: this.unbindPlatform,
// show: item => {
// return item.type == 1 || item.type == 2 ? true : false;
// }
// },
// {
// key: "edit",
// val: "获取O",
// action: this.getPlatform,
// show: item => {
// return (item.type == 1)&&(!item.openAppid) || (item.type == 2)&&(!item.openAppid) ? true : false;
// }
// },
// {
// key: "edit",
// val: "重置Quota",
// action: this.clearQuota,
// show: item => {
// return item.type == 3 || item.type == 4 ? true : false;
// }
// }
],
map: [
{ key: "headImg", val: "小程序图标", etype: "img" },
@@ -254,6 +260,14 @@ export default {
})
},
methods: {
//找回授权码
getBack(item){
this.getFetch(`T/wt_auth/retrieve?appId=${item.authorizerAppid}`).then(res=>{
this.$message.success("找回成功!")
}).catch(err=>{
this.$message.error(err.message?err.message:err.data)
})
},
//
setprivacysetting(item){
console.log(item);


+ 1
- 1
src/utils/config.js View File

@@ -29,7 +29,7 @@ export let configUrl = {
//批量上传code并提交审核
batchCodeCommitAndAudit:"/T/weapp/batchCodeCommitAndAudit",
//获得小程序体验二维码
getQrcode:"/T/weappCode/getQrcode",
getQrcode:"/T/weapp/getQrcode",
//批量发布
batchRelease:"/T/weapp/batchRelease",
//获取授权小程序帐号已设置的类目


Loading…
Cancel
Save