Commit 7ce75464 authored by lijin's avatar lijin

modified

parent 6f5abc1c
......@@ -56,7 +56,7 @@ export function putinUpdateAdvertiseConversion(params) {
// 创建投放任务
export function putinCreatePutinTask(data) {
return request({
url: process.env.PUTIN_API + "/putin/create/putin-task",
url: process.env.PUTIN_API + "/putin/task/createPutinTask",
method: "post",
data
});
......@@ -107,7 +107,7 @@ export function getPictureSizeLsit(params) {
});
}
//获取行动号召列表
//获取行动号召列表
export function getCallActionList(params) {
return request({
url: process.env.PUTIN_API + "/putin/action/texts",
......@@ -192,7 +192,7 @@ export function handleAdvertiserOcmp(params, means) {
/**
* 通用接口通过sqlid来区分获取不同的数据
* @param {Object} params
* @param {Object} params
*/
export function v2TableMappingAPI(params) {
return request({
......@@ -414,4 +414,4 @@ export function backhaul(params) {
}
// ----------------------------------------
\ No newline at end of file
// ----------------------------------------
......@@ -567,6 +567,20 @@
</div>
</div>
<div class="drawer-item border-bottom">
<div class="drawer-item-title" style="font-weight: 700">
广告组
</div>
<div class="drawer-item-title">广告组名称</div>
<div class="drawer-item-con">
<el-input
class="apk-input"
v-model="putinTask.adGroupName"
/>
</div>
</div>
<!-- 制作创意 -->
<div class="drawer-item border-bottom">
<div class="drawer-item-title">制作创意</div>
......@@ -807,6 +821,7 @@ export default {
putinAccounts: [],
campaignName: '',
campaignType: 1,
zhuanhuamubiao: 1,
dailyBudget: 0.0,
targetCpa: 0.0,
appInfo: "",
......@@ -1241,45 +1256,8 @@ export default {
// 创建投放任务
putinCreatePutinTask: function () {
this.makeCreative.creativeTags = this.arrays.creativeTags.join();
this.orientation.allowAge = this.arrays.allowAge.join();
this.orientation.allowNetwork = this.arrays.allowNetwork.join();
this.orientation.allowCarrier = this.arrays.allowCarrier.join();
this.makeCreative.textGroup = JSON.stringify(this.putinTask.headlines);
this.makeCreative.productSellingPoints = JSON.stringify(
this.arrays.productSellingPoints
);
if (this.makeCreative.putinInventory instanceof Array) {
this.makeCreative.putinInventory = this.makeCreative.putinInventory.join();
}
if (
this.makeCreative.actionText === "" ||
this.makeCreative.actionText == null ||
this.makeCreative.actionText == undefined
) {
this.$message.error("请选择行动号召参数!");
return;
}
//点击选择试玩素材列表,如果不启用或者不是穿山甲激励视频,就将其置为空,否侧就多选拼串
if (this.tryItOut !== 1) {
this.makeCreative.openPlay = "no";
} else {
this.makeCreative.openPlay = "yes";
}
//提交按钮禁用
this.submitBtnState = true;
/* 接口请求 */
putinCreatePutinTask({
putinBaseInfo: this.putinBaseInfo,
orientation: this.orientation,
makeCreative: this.makeCreative,
})
putinCreatePutinTask(this.putinTask)
.then((res) => {
if (res.status === 200) {
this.putinFetchPutinTasks(); // 获取投放任务列表
......@@ -1969,11 +1947,15 @@ export default {
handleChangeApp(item){
this.putinFetchAccount()
if(this.putinTask.taskName == ''){
this.putinTask.taskName = `${item.label}-${moment().format("YYYY-mm-dd HH:mm:ss")}`
this.putinTask.taskName = `${item.label}-${moment().format("YYYY-MM-DD HH:mm:ss")}`
}
if(this.putinTask.campaignName == ''){
this.putinTask.campaignName = `${item.label}-${moment().format("YYYY-mm-dd HH:mm:ss")}`
this.putinTask.campaignName = `${item.label}-${moment().format("YYYY-MM-DD HH:mm:ss")}`
}
if(this.putinTask.adGroupName == ''){
this.putinTask.adGroupName = `adGroup -${moment().format("YYYY-MM-DD HH:mm:ss")}`
}
},
......
......@@ -241,8 +241,8 @@ export default {
methods: {
APIgetSelectApps() {
const params = {
platformId: 4,
menuCode: "putin.apps",
platformId: 5,
menuCode: "game.Overview,android",
};
getSelectApps(params).then((res) => {
console.log("创意素材组下的下拉列表", res);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment