Merge remote-tracking branch 'origin/dev' into dev
| | |
| | | { |
| | | "name": "lilishop", |
| | | "name": "lvmankuang", |
| | | "version": "1.0.0", |
| | | "private": true, |
| | | "scripts": { |
| | |
| | | |
| | | const Cookie = require('js-cookie') |
| | | module.exports = { |
| | | title:Cookie.get('siteName') || 'lilishop', //配置显示在浏览器标签的title、底部信息、部分信息展示的值 |
| | | title:Cookie.get('siteName') || '绿满筐', //配置显示在浏览器标签的title、底部信息、部分信息展示的值 |
| | | icpCard: "", // icp证 |
| | | company: { |
| | | href: "https://pickmall.cn", |
| | |
| | | navList: [], // 首页快捷导航 |
| | | cartNum: storage.getItem('cartNum') || 0, |
| | | logoImg: storage.getItem('logoImg') || require('@/assets/images/logo2.png'), |
| | | siteName:storage.getItem('siteName')|| 'lilishop', |
| | | siteName:storage.getItem('siteName')|| '绿满筐', |
| | | hotWordsList: storage.getItem('hotWordsList'), |
| | | category: JSON.parse(localStorage.getItem('category')) |
| | | }, |
| | |
| | | { |
| | | "name": "lilishop", |
| | | "name": "lvmankuang", |
| | | "version": "1.0.0", |
| | | "private": true, |
| | | "description": "lilishop-ui", |
| | | "description": "绿满筐", |
| | | "author": "lili-platform", |
| | | "scripts": { |
| | | "serve": "vue-cli-service serve", |
| | |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // 重新构建es索引 |
| | | export const recreateIndex = () => { |
| | | return service({ |
| | | url: "/lmk/video/recreate/es/index", |
| | | method: "POST" |
| | | }) |
| | | } |
| | |
| | | module.exports = { |
| | | title: "lilishop", //配置显示在浏览器标签的title |
| | | title: "绿满筐", //配置显示在浏览器标签的title |
| | | /** |
| | | * 高德地图申请链接 |
| | | * https://lbs.amap.com/api/javascript-api/guide/abc/prepare |
| | |
| | | controls |
| | | class="player" |
| | | :src="goods.goodsVideo" |
| | | width="200" |
| | | height="180" |
| | | /> |
| | | </FormItem> |
| | | <FormItem label="商品规格"> |
| | |
| | | this.detail = {} |
| | | this.auditingShow = false |
| | | }, |
| | | calculateVideoFit(width, height) { |
| | | const videoRatio = width / height; |
| | | // 规则2:竖屏视频(如9:16) |
| | | if (videoRatio < 0.8) return 'cover'; |
| | | return 'contain'; |
| | | }, |
| | | // 打开审核弹窗 |
| | | openAuditing(row) { |
| | | this.auditingShow = true |
| | |
| | | }, |
| | | getVideoDuration(e){ |
| | | const duration = this.$refs.healthVideoInfo.duration; |
| | | const videoWidth = this.$refs.healthVideoInfo.videoWidth; |
| | | const videoHeight = this.$refs.healthVideoInfo.videoHeight; |
| | | // 根据宽高比选择视频填充模式 |
| | | const fitType = this.calculateVideoFit(videoWidth, videoHeight) |
| | | this.uploadVideoForm.videoFit = fitType |
| | | console.log('------视频信息3------------>', videoWidth,videoHeight,fitType) |
| | | |
| | | this.uploadVideoForm.videoDuration = Math.floor(duration); |
| | | }, |
| | | // 打开编辑弹窗 |
| | |
| | | @on-selection-change="showSelect" |
| | | > |
| | | <template slot-scope="{ row, index }" slot="typeList"> |
| | | <div v-for="(tag, index) in row.typeList" :key="'tag' + index" style="margin-top: 5px"> |
| | | <Tag color="red">{{ tag.typeName }}</Tag> |
| | | <div style="display: flex;flex-wrap: wrap"> |
| | | <div v-for="(tag, index) in row.typeList" :key="'tag' + index" style="margin-top: 5px"> |
| | | <Tag color="red">{{ tag.typeName }}</Tag> |
| | | </div> |
| | | </div> |
| | | |
| | | </template> |
| | | <template slot-scope="{ row, index }" slot="videoFileKey"> |
| | | <div class="play-text" @click="playVideo(row.videoFileKey, row.title)">点击播放</div> |
| | |
| | | checkKitchenType: [ |
| | | { |
| | | required: true, |
| | | message: '请选择厨神标签', |
| | | message: '请选择厨神标签且不能超过5个', |
| | | trigger: 'blur', |
| | | validator: (rule, value, callback) => { |
| | | console.log('验证值:-------------->', value, '类型:', typeof value); |
| | |
| | | { |
| | | title: "视频分类", |
| | | key: "typeList", |
| | | width: 180, |
| | | width: 310, |
| | | slot: "typeList", |
| | | }, |
| | | { |
| | |
| | | slot: "action", |
| | | align: "center", |
| | | width: 200, |
| | | fixed: "right", |
| | | }, |
| | | ], |
| | | data: [], // 表单数据 |
| | |
| | | this.$set(this.uploadVideoForm, 'showCoverUrl', ''); |
| | | this.$set(this.uploadVideoForm, 'temp', new Date().getTime()); |
| | | }, |
| | | calculateVideoFit(width, height) { |
| | | const videoRatio = width / height; |
| | | // 规则2:竖屏视频(如9:16) |
| | | if (videoRatio < 0.8) return 'cover'; |
| | | return 'contain'; |
| | | }, |
| | | //重新上传视频 |
| | | clearVideo() { |
| | | this.clearCoverImage(); |
| | |
| | | }, |
| | | getVideoDuration(e){ |
| | | const duration = this.$refs.healthVideoInfo.duration; |
| | | const videoWidth = this.$refs.healthVideoInfo.videoWidth; |
| | | const videoHeight = this.$refs.healthVideoInfo.videoHeight; |
| | | // 根据宽高比选择视频填充模式 |
| | | const fitType = this.calculateVideoFit(videoWidth, videoHeight) |
| | | this.uploadVideoForm.videoFit = fitType |
| | | console.log('------视频信息3------------>', videoWidth,videoHeight,fitType) |
| | | this.uploadVideoForm.videoDuration = Math.floor(duration); |
| | | }, |
| | | // 视频上架 |
| | |
| | | > |
| | | </Form> |
| | | |
| | | <Row class="operation padding-row"> |
| | | <Button @click="recreateEsIndex" type="primary">重新构建es索引</Button> |
| | | </Row> |
| | | |
| | | <Modal |
| | | v-model="playVideoShow" |
| | | :title="playVideoTitle" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import {getVideos, recommendSet, getVideoById, auditingVideo, up, down} from "@/api/video"; |
| | | import {getVideos, recommendSet, getVideoById, auditingVideo, up, down, recreateIndex} from "@/api/video"; |
| | | import {getVideoTagList} from "@/api/videoTag"; |
| | | import {getFilePreview} from "@/api/file"; |
| | | import Editor from '@/components/editor/index.vue' |
| | |
| | | this.getTags('') |
| | | }, |
| | | methods: { |
| | | recreateEsIndex() { |
| | | recreateIndex().then(res => { |
| | | this.$Message.success(res.msg) |
| | | }) |
| | | }, |
| | | // 秒转x分x秒 |
| | | formatSeconds(seconds) { |
| | | if (isNaN(seconds) || seconds < 0) return '0秒'; |
| | |
| | | { |
| | | "name": "lilishop", |
| | | "name": "lvmankuang", |
| | | "version": "1.0.0", |
| | | "private": true, |
| | | "description": "lilishop-ui", |
| | | "description": "绿满筐", |
| | | "author": "lili-platform", |
| | | "scripts": { |
| | | "serve": "vue-cli-service serve", |
| | |
| | | |
| | | module.exports = { |
| | | title: "lilishop", //配置显示在浏览器标签的title |
| | | title: "绿满筐", //配置显示在浏览器标签的title |
| | | /** |
| | | * 高德地图申请链接 |
| | | * https://lbs.amap.com/api/javascript-api/guide/abc/prepare |
| | |
| | | <div class="goods-video"> |
| | | <div v-if="baseInfoForm.goodsVideo"> |
| | | <div> |
| | | <video :src="baseInfoForm.showGoodsVideo" class="video" controls style="max-width: 300px;"/> |
| | | <video :src="baseInfoForm.showGoodsVideo" class="video" controls style="max-width: 300px;max-height: 400px"/> |
| | | </div> |
| | | </div> |
| | | <Upload ref="upload" action="-" :format="['avi', 'wmv', 'mpeg', 'mp4', 'mov']" |