新增跳转链接
This commit is contained in:
parent
08eeafb6a6
commit
776dbb5c69
@ -6,7 +6,7 @@ VITE_LOGIN_TITLE = '今日固始电子版 管理平台'
|
|||||||
VITE_LOGIN_EN_TITLE = 'GuShi Platform'
|
VITE_LOGIN_EN_TITLE = 'GuShi Platform'
|
||||||
VITE_WEB_BASE_API = '/api'
|
VITE_WEB_BASE_API = '/api'
|
||||||
# 本地Mock地址
|
# 本地Mock地址
|
||||||
VITE_SERVER = 'http://democs.gushitv.com/'
|
VITE_SERVER = 'https://democs.gushitv.com/'
|
||||||
# 路由模式[哈希模式 AND WEB模式 [hash | history, 这两个模式是固定死的,不能乱改值]
|
# 路由模式[哈希模式 AND WEB模式 [hash | history, 这两个模式是固定死的,不能乱改值]
|
||||||
VITE_ROUTER_MODE = hash
|
VITE_ROUTER_MODE = hash
|
||||||
# 是否使用全部去除console和debugger
|
# 是否使用全部去除console和debugger
|
||||||
|
@ -6,7 +6,7 @@ VITE_LOGIN_TITLE = '今日固始电子版 管理平台'
|
|||||||
VITE_LOGIN_EN_TITLE = 'GuShi Platform'
|
VITE_LOGIN_EN_TITLE = 'GuShi Platform'
|
||||||
VITE_WEB_BASE_API = ''
|
VITE_WEB_BASE_API = ''
|
||||||
# 后端接口地址
|
# 后端接口地址
|
||||||
VITE_SERVER = 'http://democs.gushitv.com/'
|
VITE_SERVER = 'https://democs.gushitv.com/'
|
||||||
# 路由模式[哈希模式 AND WEB模式 [hash | history, 这两个模式是固定死的,不能乱改值]
|
# 路由模式[哈希模式 AND WEB模式 [hash | history, 这两个模式是固定死的,不能乱改值]
|
||||||
VITE_ROUTER_MODE = hash
|
VITE_ROUTER_MODE = hash
|
||||||
# 是否使用全部去除console和debugger
|
# 是否使用全部去除console和debugger
|
||||||
|
@ -34,8 +34,11 @@
|
|||||||
<el-input disabled v-model="coordinate" placeholder="请选择新闻坐标" size="large" />
|
<el-input disabled v-model="coordinate" placeholder="请选择新闻坐标" size="large" />
|
||||||
<el-button type="danger" class="mt-2" @click="allowClickTrue()">重新选择</el-button>
|
<el-button type="danger" class="mt-2" @click="allowClickTrue()">重新选择</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="新闻视频">
|
<el-form-item label="媒体链接">
|
||||||
<el-input v-model="form.video" placeholder="请输入新闻视频" size="large"/>
|
<el-input v-model="form.video" placeholder="请输入媒体链接" size="large"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="跳转链接">
|
||||||
|
<el-input v-model="form.jump_link" placeholder="请输入跳转链接" size="large"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="新闻详情" required>
|
<el-form-item label="新闻详情" required>
|
||||||
<el-card shadow="hover">
|
<el-card shadow="hover">
|
||||||
@ -74,6 +77,7 @@ const form = reactive({
|
|||||||
content: '',
|
content: '',
|
||||||
coordinate_show: '',
|
coordinate_show: '',
|
||||||
video: '',
|
video: '',
|
||||||
|
jump_link:'',
|
||||||
});
|
});
|
||||||
/*新闻坐标*/
|
/*新闻坐标*/
|
||||||
const coordinate = ref();
|
const coordinate = ref();
|
||||||
|
@ -33,8 +33,11 @@
|
|||||||
<el-input disabled v-model="coordinate" placeholder="请选择新闻坐标" size="large"/>
|
<el-input disabled v-model="coordinate" placeholder="请选择新闻坐标" size="large"/>
|
||||||
<el-button class="mt-2" @click="allowClickTrue()">重新选择</el-button>
|
<el-button class="mt-2" @click="allowClickTrue()">重新选择</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="新闻视频">
|
<el-form-item label="媒体链接">
|
||||||
<el-input v-model="form.video" placeholder="请输入新闻视频" size="large"/>
|
<el-input v-model="form.video" placeholder="请输入媒体链接" size="large"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="跳转链接">
|
||||||
|
<el-input v-model="form.jump_link" placeholder="请输入跳转链接" size="large"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="新闻详情" required>
|
<el-form-item label="新闻详情" required>
|
||||||
<el-card shadow="hover">
|
<el-card shadow="hover">
|
||||||
@ -73,6 +76,7 @@ const form = reactive({
|
|||||||
reporter: '',
|
reporter: '',
|
||||||
content: '',
|
content: '',
|
||||||
video: '',
|
video: '',
|
||||||
|
jump_link:'',
|
||||||
});
|
});
|
||||||
/*新闻坐标 真实的*/
|
/*新闻坐标 真实的*/
|
||||||
const coordinate = ref();
|
const coordinate = ref();
|
||||||
@ -83,7 +87,6 @@ const bmInfoData = ref({});
|
|||||||
const route = useRoute(); // 创建 route 对象
|
const route = useRoute(); // 创建 route 对象
|
||||||
const id = ref();
|
const id = ref();
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|
||||||
id.value = route.params.id;
|
id.value = route.params.id;
|
||||||
getNewsInfo();
|
getNewsInfo();
|
||||||
})
|
})
|
||||||
@ -100,6 +103,7 @@ const getNewsInfo = async () => {
|
|||||||
form.coordinate = res.data.coordinate;
|
form.coordinate = res.data.coordinate;
|
||||||
form.coordinate_show=res.data.coordinate_show;
|
form.coordinate_show=res.data.coordinate_show;
|
||||||
form.video = res.data.video;
|
form.video = res.data.video;
|
||||||
|
form.jump_link = res.data.jump_link;
|
||||||
coordinate.value = res.data.coordinate;
|
coordinate.value = res.data.coordinate;
|
||||||
coordinateShow.value = res.data.coordinate_show;
|
coordinateShow.value = res.data.coordinate_show;
|
||||||
await getBmInfo(res.data.bm_id);
|
await getBmInfo(res.data.bm_id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user