提交 ddf8e0e9 authored 作者: huaxinzhu's avatar huaxinzhu

1、swiper降级使用文档版本5.45;2、官网移动端适配;3、bug修复

上级 af68b883
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
"path-to-regexp": "2.4.0", "path-to-regexp": "2.4.0",
"screenfull": "4.2.0", "screenfull": "4.2.0",
"sortablejs": "1.8.4", "sortablejs": "1.8.4",
"swiper": "^5.4.5",
"vue": "2.6.10", "vue": "2.6.10",
"vue-awesome-swiper": "^4.1.1", "vue-awesome-swiper": "^4.1.1",
"vue-count-to": "1.0.13", "vue-count-to": "1.0.13",
...@@ -104,7 +105,6 @@ ...@@ -104,7 +105,6 @@
"serve-static": "^1.13.2", "serve-static": "^1.13.2",
"svg-sprite-loader": "4.1.3", "svg-sprite-loader": "4.1.3",
"svgo": "1.2.0", "svgo": "1.2.0",
"swiper": "^6.8.0",
"vue-template-compiler": "2.6.10" "vue-template-compiler": "2.6.10"
}, },
"engines": { "engines": {
......
...@@ -23,9 +23,8 @@ import { deepClone } from "@/utils/index"; ...@@ -23,9 +23,8 @@ import { deepClone } from "@/utils/index";
import Pagination from "@/components/Pagination"; import Pagination from "@/components/Pagination";
import VueAwesomeSwiper from 'vue-awesome-swiper' // 引入swiper import VueAwesomeSwiper from 'vue-awesome-swiper' // 引入swiper
import 'swiper/css/swiper.min.css' // 引入swiper样式/
Vue.use(VueAwesomeSwiper) // 注册swiper Vue.use(VueAwesomeSwiper) // 注册swiper
// import 'swiper/css/swiper.css' // 引入swiper样式/
import 'swiper/swiper-bundle.css'
// 全局方法挂载 // 全局方法挂载
Vue.prototype.getDicts = getDicts Vue.prototype.getDicts = getDicts
Vue.prototype.getConfigKey = getConfigKey Vue.prototype.getConfigKey = getConfigKey
......
...@@ -511,10 +511,11 @@ ...@@ -511,10 +511,11 @@
beforeClose: (action, instance, done) => { beforeClose: (action, instance, done) => {
if (action === 'confirm') { if (action === 'confirm') {
cancelOnsale(id).then(res => { cancelOnsale(id).then(res => {
console.log(510,res);
if (res.code == 1) { if (res.code == 1) {
done() done()
this.getList() this.getList()
}else {
this.$message({type: 'error', message: res.message ? res.message : '操作失败'});
} }
}) })
} else { } else {
...@@ -527,14 +528,10 @@ ...@@ -527,14 +528,10 @@
message: '操作成功!' message: '操作成功!'
}); });
}); });
//cancelOnsale().then();
}, },
editgoods(row) {//商品编辑 editgoods(row) {//商品编辑
// this.editisOpen = true // this.editisOpen = true
let goodsId = Number(row.goods_id); let goodsId = Number(row.goods_id);
// let goodsParam = { // let goodsParam = {
// goods_id: Number(row.goods_id) // goods_id: Number(row.goods_id)
// }; // };
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论