|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="page">
|
|
<view class="page">
|
|
|
<u-sticky :h5-nav-height="0" z-index="9099" :offset-top='0'>
|
|
<u-sticky :h5-nav-height="0" z-index="9099" :offset-top='0'>
|
|
|
- <uni-NavBar headerTitle="全屏广告创建" background="#fff" :isSlot="false"></uni-NavBar>
|
|
|
|
|
|
|
+ <uni-NavBar :headerTitle="`${headerTitle}创建`" background="#fff" :isSlot="false"></uni-NavBar>
|
|
|
</u-sticky>
|
|
</u-sticky>
|
|
|
<u-form :model="adForm" :rules="adrules" ref="uForm" :label-width="200"
|
|
<u-form :model="adForm" :rules="adrules" ref="uForm" :label-width="200"
|
|
|
style="padding: 20rpx 24rpx 135rpx;box-sizing: border-box;">
|
|
style="padding: 20rpx 24rpx 135rpx;box-sizing: border-box;">
|
|
@@ -209,7 +209,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 省市区 -->
|
|
<!-- 省市区 -->
|
|
|
<u-select v-model="queryTreeShow" mode="mutil-column-auto" label-name="areaCname" value-name="areaCode"
|
|
<u-select v-model="queryTreeShow" mode="mutil-column-auto" label-name="areaCname" value-name="areaCode"
|
|
|
- child-name="child" :list="queryTreeList" @confirm="queryTreeConfirm"></u-select>
|
|
|
|
|
|
|
+ child-name="children" :list="queryTreeList" @confirm="queryTreeConfirm"></u-select>
|
|
|
<!-- 广告位 -->
|
|
<!-- 广告位 -->
|
|
|
<u-select v-model="adSlotShow" mode="single-column" label-name="positionName" value-name="id" :list="adSlotList"
|
|
<u-select v-model="adSlotShow" mode="single-column" label-name="positionName" value-name="id" :list="adSlotList"
|
|
|
@confirm="adSlotConfirm"></u-select>
|
|
@confirm="adSlotConfirm"></u-select>
|
|
@@ -380,13 +380,21 @@
|
|
|
imgFileList: [], //图片数组
|
|
imgFileList: [], //图片数组
|
|
|
action: configService.apiUrl + '/sys/common/upload', //图片上传地址
|
|
action: configService.apiUrl + '/sys/common/upload', //图片上传地址
|
|
|
token: "",
|
|
token: "",
|
|
|
- userInfo: {}
|
|
|
|
|
|
|
+ userInfo: {},
|
|
|
|
|
+ headerTitle: "", //页面标题
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onShow() {},
|
|
onShow() {},
|
|
|
async onLoad(options) {
|
|
async onLoad(options) {
|
|
|
- if (options.type) {
|
|
|
|
|
|
|
+ if (options.adType) {
|
|
|
this.adForm.type = options.adType;
|
|
this.adForm.type = options.adType;
|
|
|
|
|
+ const map = {
|
|
|
|
|
+ '0': '全屏广告',
|
|
|
|
|
+ '1': '弹窗广告',
|
|
|
|
|
+ '2': '轮播广告',
|
|
|
|
|
+ '3': '页面嵌入广告',
|
|
|
|
|
+ }
|
|
|
|
|
+ this.headerTitle = map[this.adForm.type] || ''
|
|
|
}
|
|
}
|
|
|
if (options.id) {
|
|
if (options.id) {
|
|
|
this.$http.get('advert/localAdvertTask/queryById?id=' + options.id).then(res => {
|
|
this.$http.get('advert/localAdvertTask/queryById?id=' + options.id).then(res => {
|