This commit is contained in:
pikachu
2021-08-06 19:19:01 +08:00
56 changed files with 611 additions and 1427 deletions

View File

@@ -16,16 +16,9 @@ let commonUrl = (process.env.NODE_ENV === 'development' ? config.api_dev.common
// 文件上传接口
export const uploadFile = commonUrl+ "/common/upload/file";
// 验证码渲染图片接口
export const drawCodeImage = commonUrl + "/common/captcha/draw/";
// 获取菜单
export const getMenuList = managerUrl + "/permission/getMenuList";
// Websocket
export const ws = managerUrl + "/ws";
export const getMessageSendData = "";
//获取所有city
export const getAllCity = (params) => {
return getRequest(commonUrl + '/common/region/allCity', params)

View File

@@ -21,10 +21,10 @@ export default {
buyer: "https://buyer-api.pickmall.cn",
seller: "https://store-api.pickmall.cn",
manager: "https://admin-api.pickmall.cn"
// common: 'http://192.168.0.101:8890',
// buyer: 'http://192.168.0.101:8888',
// seller: 'http://192.168.0.101:8889',
// manager: 'http://192.168.0.101:8887'
// common: 'http://192.168.0.100:8890',
// buyer: 'http://192.168.0.100:8888',
// seller: 'http://192.168.0.100:8889',
// manager: 'http://192.168.0.100:8887'
},
api_prod: {
common: "https://common-api.pickmall.cn",

View File

@@ -22,11 +22,13 @@ import liliDialog from '@/views/lili-dialog'
import {md5} from '@/utils/md5.js';
Vue.config.devtools = true;
Vue.config.productionTip = false
Vue.prototype.linkTo = function (goodsId, skuId, link='https://pc-b2b2c.pickmall.cn') { // 跳转买家端商品
window.open(`${link}/goodsDetail?skuId=${skuId}&goodsId=${goodsId}`, '_blank')
const buyerUrlPC = 'https://pc-b2b2c.pickmall.cn' // 跳转买家端地址 pc端
const buyerUrlWap = 'https://m-b2b2c.pickmall.cn' // 跳转买家端地址 wap端
Vue.prototype.linkTo = function (goodsId, skuId) { // 跳转买家端商品
window.open(`${buyerUrlPC}/goodsDetail?skuId=${skuId}&goodsId=${goodsId}`, '_blank')
};
Vue.prototype.wapLinkTo = function (goodsId, skuId) { // app端二维码
return `https://m-b2b2c.pickmall.cn/pages/product/goods?id=${skuId}&goodsId=${goodsId}`
return `${buyerUrlWap}/pages/product/goods?id=${skuId}&goodsId=${goodsId}`
};
Vue.use(VueLazyload, {
error: require('./assets/img-error.png'),

View File

@@ -240,12 +240,6 @@ export const otherRouter = {
name: "seckill-goods",
component: () => import("@/views/promotion/seckill/seckillGoods.vue")
},
{
path: "promotion/seckill/manager-seckill-add",
title: "添加限时抢购",
name: "manager-seckill-add",
component: () => import("@/views/promotion/seckill/addSeckill.vue")
},
{
path: "/floorList/renovation",
title: "编辑模板",

View File

@@ -70,892 +70,6 @@ export default {
API_floor.getHomeData(id).then((res) => {
if (res.success) {
let pageData = res.result.pageData;
// let pageData = {
// "list": [{
// "type": "topAdvert",
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/9fc491bd51484690a405ce0fab1bb118.jpeg",
// "url": "/merchant?id=1376369067769724928",
// "bgColor": "#377CFA",
// "size": "1200*80"
// }, {
// "type": "navBar",
// "list": [{
// "name": "秒杀",
// "url": "/seckill"
// }, {
// "name": "优惠券",
// "url": "/coupon"
// }, {
// "name": "商家中心",
// "url": "https://store-b2b2c.pickmall.cn"
// }]
// }, {
// "type": "carousel",
// "name": "图片轮播",
// "icon": "md-image",
// "showName": "",
// "size": "790*340",
// "options": {
// "list": [{
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/fda3ca6646a6401b9c4cc664af3a8bb6.png",
// "url": "/goodsList?cateId=1348576427264204943"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/885ba98892d048049c158296bc4c6759.png",
// "url": "/goodsList?cateId=1348576427268399379"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/8e33ab68ef734558bdc158d6b1b1451f.png",
// "url": "/goodsList?cateId=1348576427264204982"
// }]
// },
// "key": "1612497034000_84734",
// "model": "carousel_1612497034000_84734"
// }, {
// "type": "seckill",
// "name": "促销活动",
// "icon": "md-image",
// "showName": "",
// "options": {
// "list": [{
// "time": 6,
// "goodsList": [{
// "img": "/img/1.389c5949.jpg",
// "price": 20,
// "originalPrice": 30,
// "name": "阿迪达斯三叶草asdasdafads123213a",
// "url": ""
// }, {
// "img": "/img/2.8b41a762.jpg",
// "price": 20,
// "originalPrice": 30,
// "name": "阿迪达斯三叶草asdasdafadsa",
// "url": ""
// }, {
// "img": "/img/3.0448ed98.jpg",
// "price": 20,
// "originalPrice": 30,
// "name": "阿迪达斯三叶草asdasdafadsa",
// "url": ""
// }, {
// "img": "/img/4.b7944e24.jpg",
// "price": 20,
// "originalPrice": 30,
// "name": "阿迪达斯三叶草asdasdafadsa",
// "url": ""
// }, {
// "img": "/img/5.a172e11a.jpg",
// "price": 20,
// "originalPrice": 30,
// "name": "阿迪达斯三叶草asdasdafadsa",
// "url": ""
// }, {
// "img": "/img/1.389c5949.jpg",
// "price": 20,
// "originalPrice": 30,
// "name": "阿迪达斯三叶草asdasdafadsa",
// "url": ""
// }, {
// "img": "/img/2.8b41a762.jpg",
// "price": 20,
// "originalPrice": 30,
// "name": "阿迪达斯三叶草asdasdafadsa",
// "url": ""
// }, {
// "img": "/img/3.0448ed98.jpg",
// "price": 20,
// "originalPrice": 30,
// "name": "阿迪达斯三叶草asdasdafadsa",
// "url": ""
// }, {
// "img": "/img/4.b7944e24.jpg",
// "price": 20,
// "originalPrice": 30,
// "name": "阿迪达斯三叶草asdasdafadsa",
// "url": ""
// }, {
// "img": "/img/5.a172e11a.jpg",
// "price": 20,
// "originalPrice": 30,
// "name": "阿迪达斯三叶草asdasdafadsa",
// "url": ""
// }]
// }, {
// "time": 8,
// "goodsList": [{
// "img": "/img/1.389c5949.jpg",
// "url": ""
// }, {
// "img": "/img/2.8b41a762.jpg",
// "url": ""
// }, {
// "img": "/img/3.0448ed98.jpg",
// "url": ""
// }, {
// "img": "/img/4.b7944e24.jpg",
// "url": ""
// }, {
// "img": "/img/5.a172e11a.jpg",
// "url": ""
// }]
// }, {
// "time": 10,
// "goodsList": [{
// "img": "/img/1.389c5949.jpg",
// "url": ""
// }, {
// "img": "/img/2.8b41a762.jpg",
// "url": ""
// }, {
// "img": "/img/3.0448ed98.jpg",
// "url": ""
// }, {
// "img": "/img/4.b7944e24.jpg",
// "url": ""
// }, {
// "img": "/img/5.a172e11a.jpg",
// "url": ""
// }]
// }, {
// "time": 12,
// "goodsList": [{
// "img": "/img/1.389c5949.jpg",
// "url": ""
// }, {
// "img": "/img/2.8b41a762.jpg",
// "url": ""
// }, {
// "img": "/img/3.0448ed98.jpg",
// "url": ""
// }, {
// "img": "/img/4.b7944e24.jpg",
// "url": ""
// }, {
// "img": "/img/5.a172e11a.jpg",
// "url": ""
// }]
// }, {
// "time": 14,
// "goodsList": []
// }, {
// "time": 16,
// "goodsList": []
// }, {
// "time": 18,
// "goodsList": []
// }]
// },
// "key": "1628048373000_83760",
// "model": "seckill_1628048373000_83760"
// }, {
// "type": "discountAdvert",
// "name": "折扣广告",
// "icon": "md-image",
// "options": {
// "bgImg": "",
// "classification": [{
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/1dd9c20ffad245e89e6dc516d6603719.jpg",
// "url": "/goodsDetail?id=1354319273359335424",
// "size": "190*210"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/d64d48fa56b340f59bd3064aa8d4bdca.png",
// "url": "/goodsDetail?skuId=1376845635973545984&goodsId=1376845635923214336",
// "size": "190*210"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/51fc954e0f0f4feda97611a2fecc0ad1.png",
// "url": "/goodsDetail?skuId=1376544591066431488&goodsId=1376544590403731456",
// "size": "190*210"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/fde5349e6b4c438d884ee36ae8c97096.png",
// "url": "/goodsDetail?skuId=1376554436532371456&goodsId=1376554435945168896",
// "size": "190*210"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/d64d48fa56b340f59bd3064aa8d4bdca.png",
// "url": "/goodsDetail?skuId=1376556775628603392&goodsId=1376556775007846400",
// "size": "190*210"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/5259dbfb17fd482894021b86140d2871.png",
// "url": "/goodsDetail?skuId=1381792993853308928&goodsId=1377083477941288960",
// "size": "190*210"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/a9593607de404546953055f279fd5d54.png",
// "url": "/goodsDetail?skuId=1381793060458856448&goodsId=1377085464581767168",
// "size": "190*210"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/d53cbd59ce3a4efd8c3c8f476c91f3e9.png",
// "url": "/goodsDetail?skuId=1381791842919514112&goodsId=1376443041593688064",
// "size": "190*210"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/b95573e65d2b4ffa8e7ed96d94da37c9.png",
// "url": "/goodsDetail?skuId=1381792775162298368&goodsId=1377077664103268352",
// "size": "190*210"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/6a5182bc98a347a5926e3be24e55719f.png",
// "url": "/goodsDetail?skuId=1381793449228894208&goodsId=1377098934119301120",
// "size": "190*210"
// }],
// "brandList": [{
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/905c55d7dc7044328314c94adfbe6051.png",
// "url": "",
// "size": "240*105"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/de02941684f6423db05fe84ade7bbf35.png",
// "url": "",
// "size": "240*105"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/9f6ad605ba4047db90109d45ab9265ca.png",
// "url": "",
// "size": "240*105"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/0dd24fb3bc554158973a3deda5edfda5.png",
// "url": "",
// "size": "240*105"
// }]
// },
// "key": "1612497041000_99064",
// "model": "discountAdvert_1612497041000_99064"
// }, {
// "type": "recommend",
// "name": "好货推荐",
// "icon": "md-image",
// "options": {
// "contentLeft": {
// "title": "发现好货",
// "secondTitle": "查看更多",
// "bgColor": "#449dae",
// "url": "/goodsDetail?id=1346742995118743552",
// "list": [{
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/b20243bc89a149a398b6d7ef9a097938.jpg?x-oss-process=style/400X400",
// "name": "小米 (MI)Redmi K40 Pro 白色",
// "describe": "也许是每一款经典系列都应该有一个独特的故事吧",
// "url": "/goodsDetail?skuId=1376544591276146688&goodsId=1376544590403731456",
// "size": "160*160",
// "price": 3999
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/a4c2b5073fd84d60bfe38d6a6c0044c9.jpeg?x-oss-process=style/400X400",
// "name": "一加 OnePlus 9 紫色",
// "describe": " 8GB+128GB 5G手机",
// "url": "/goodsDetail?skuId=1376373278989352960&goodsId=1376373278360207360",
// "size": "80*80",
// "price": 3799
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/df6377650f94456087316c1c9a381952.jpeg?x-oss-process=style/400X400",
// "name": "一加 OnePlus 9 黑色",
// "describe": " 8GB+128GB 5G手机",
// "url": "/goodsDetail?skuId=1376373279131959296&goodsId=1376373278360207360",
// "size": "80*80",
// "price": 3899
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/30b3030b9bb44e758146d8eca63a1242.jpeg?x-oss-process=style/400X400",
// "name": "vivo iQOO 7 黑色",
// "describe": "UFS 3.1 双模5G全网通手机",
// "url": "/goodsDetail?skuId=1376521744352804864&goodsId=1376521743522332672",
// "size": "80*80",
// "price": 4198
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/d86a06718d88422baf7422cb0d8b71db.jpeg?x-oss-process=style/400X400",
// "name": "vivo iQOO 7 白色",
// "describe": "UFS 3.1 双模5G全网通手机",
// "url": "/goodsDetail?skuId=1376521744608657408&goodsId=1376521743522332672",
// "size": "80*80",
// "price": 4298
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/b3dccb22364f42c9bec193d64f140abb.jpg?x-oss-process=style/400X400",
// "name": "Apple iPhone 12 黑色",
// "describe": " 移动联通电信5G全网通手机",
// "url": "/goodsDetail?skuId=1376529926336806912&goodsId=1376529925690884096",
// "size": "80*80",
// "price": 4200
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/af4e8d5341b1433c8d23d44dbf9bf37f.jpg?x-oss-process=style/400X400",
// "name": "Apple iPhone 12 白色",
// "describe": " 移动联通电信5G全网通手机",
// "url": "/goodsDetail?skuId=1376529926533939200&goodsId=1376529925690884096",
// "size": "80*80",
// "price": 4100
// }]
// },
// "contentRight": {
// "title": "特色推荐",
// "secondTitle": "查看更多",
// "bgColor": "#a25684",
// "url": "/goodsDetail?skuId=1376541893952798720&goodsId=1376541893319458816",
// "list": [{
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/0544e5c117a348998d80061f7a900400.jpg?x-oss-process=style/400X400",
// "name": "佳能 EOS 200D II ",
// "describe": "佳能(Canon) 2代数码单反相机",
// "url": "/goodsDetail?skuId=1376541893755666432&goodsId=1376541893319458816",
// "size": "220*110",
// "price": 4449
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/e58eae43b3784a1bb1bdf13937442e2d.jpg?x-oss-process=style/400X400",
// "name": "荣耀Play4T Pro 黑色",
// "describe": "骁龙865丨30W快充",
// "url": "/goodsDetail?skuId=1376547794663243776&goodsId=1376547793954406400",
// "size": "220*110",
// "price": 2999
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/745f6ef25634428a8b1972ce23c9c7b3.jpg?x-oss-process=style/400X400",
// "name": "小米Redmi K30 ",
// "describe": "小米MI至尊纪念版",
// "url": "/goodsDetail?skuId=1376554436532371456&goodsId=1376554435945168896",
// "size": "220*110",
// "price": 3000
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/5fc6e64e189c4c378e72757af663ff3a.png?x-oss-process=style/400X400",
// "name": "魅族12 白色",
// "describe": "2K四曲微弧屏丨4400W前摄光学防抖",
// "url": "/goodsDetail?skuId=1376559979762286592&goodsId=1376559979007311872",
// "size": "220*110",
// "price": 4999
// }]
// }
// },
// "key": "1612497146000_38763",
// "model": "recommend_1612497146000_38763"
// }, {
// "type": "newGoodsSort",
// "name": "新品排行",
// "icon": "md-image",
// "options": {
// "left": {
// "title": "特卖",
// "secondTitle": "更333",
// "bgColor": "#c43d7e",
// "url": "/goodsDetail?id=1346742995596894208",
// "list": [{
// "name": "小米MIRedmi K30 至尊纪念版 白色",
// "describe": "满269减50,满999减100",
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/6fed4b19c53c4b88a5123301dede09c9.jpg?x-oss-process=style/400X400",
// "url": "/goodsDetail?skuId=1376554436721115136&goodsId=1376554435945168896",
// "size": "160*160",
// "price": 4000
// }, {
// "name": "红气垫 阿玛尼",
// "describe": "轻透精华气垫粉底液",
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/7896c015be3f4418a99e6ca2efcae386.jpg?x-oss-process=style/400X400",
// "url": "/goodsDetail?skuId=1381796259035086848&goodsId=1377122967070179328",
// "size": "90*90",
// "price": 400
// }, {
// "name": "MAXFACTOR 蜜丝佛陀",
// "describe": " 三合一粉底液",
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/75b2a1a1f4d74470a9da19158ff805ac.jpg?x-oss-process=style/400X400",
// "url": "/goodsDetail?skuId=1381796144429924352&goodsId=1377121719424122880",
// "size": "90*90",
// "price": 333
// }, {
// "name": "ARMANI阿玛尼",
// "describe": "紧颜粉底液 03",
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/389b2ce90fd0425a8a9d988890ad46d2.jpg?x-oss-process=style/400X400",
// "url": "/goodsDetail?skuId=1381789991541145600&goodsId=1377127936569638912",
// "size": "90*90",
// "price": 666
// }, {
// "name": "NYX 焕彩16色眼影盘",
// "describe": " 大地色",
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/53b1c3cc1f1d4085917c282179f3e2fa.jpg?x-oss-process=style/400X400",
// "url": "/goodsDetail?skuId=1377137907063586816&goodsId=1377137906799345664",
// "size": "90*90",
// "price": 100
// }]
// },
// "middle": {
// "title": "新品",
// "secondTitle": "更多新品",
// "bgColor": "#e66a07",
// "url": "",
// "list": [{
// "name": "母亲原味牛肉棒",
// "describe": "烧烤味",
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/c9cbc345f3014affbb09a80306303c7c.jpg?x-oss-process=style/400X400",
// "url": "/goodsDetail?skuId=1381793449233088512&goodsId=1377098934119301120",
// "size": "90*90",
// "price": 8
// }, {
// "name": "百草味 原味芒果干",
// "describe": "原味",
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/54dcb9cd0fea4f1f8243e12d49c28af9.png?x-oss-process=style/400X400",
// "url": "/goodsDetail?skuId=1381791842915319808&goodsId=1376443041593688064",
// "size": "90*90",
// "price": 15
// }, {
// "name": "YSL 圣罗兰 ",
// "describe": "清新花果香",
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/31731869956848be8fc34f6751136977.jpg?x-oss-process=style/400X400",
// "url": "/goodsDetail?skuId=1381796591895052288&goodsId=1377145942322446336",
// "size": "90*90",
// "price": 886
// }, {
// "name": "雀巢(Nestle) 威化饼干",
// "describe": "牛奶味",
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/fe5b8167b0264c53836d08a6a7003cf0.jpeg?x-oss-process=style/400X400",
// "url": "/goodsDetail?skuId=1381797095073120256&goodsId=1377805575856848896",
// "size": "90*90",
// "price": 9.9
// }, {
// "name": "夏威夷果 百草味",
// "describe": "坚果 ",
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/999746fb087a40a280c2ef2c5abb7cc3.jpg?x-oss-process=style/400X400",
// "url": "/goodsDetail?skuId=1381792548812488704&goodsId=1377071458592751616",
// "size": "90*90",
// "price": 37
// }, {
// "name": "范思哲VERSACE",
// "describe": "清新水果香",
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/9b04d1580fb84e67939392a65b9d708d.jpg?x-oss-process=style/400X400",
// "url": "/goodsDetail?skuId=1381796537792724992&goodsId=1377143657961881600",
// "size": "90*90",
// "price": 199
// }]
// },
// "right": {
// "title": "排行榜",
// "secondTitle": "精品风向标",
// "bgColor": "#b62323",
// "url": "",
// "list": [{
// "name": "小米 (MI)Redmi K40 Pro 黑色",
// "price": 2999,
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/9064c20d62f24bfaa5d3854f72a83c6c.jpg?x-oss-process=style/400X400",
// "url": "/goodsDetail?skuId=1376544591066431488&goodsId=1376544590403731456"
// }, {
// "name": "一加 OnePlus 9 黑色",
// "price": 3899,
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/df6377650f94456087316c1c9a381952.jpeg?x-oss-process=style/400X400",
// "url": "/goodsDetail?skuId=1376373279131959296&goodsId=1376373278360207360"
// }, {
// "name": "一加 OnePlus 9 紫色",
// "price": 5000,
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/cc724307f056420eb14c5bd35608a024.jpg?x-oss-process=style/400X400",
// "url": "/goodsDetail?skuId=1376556775628603392&goodsId=1376556775007846400"
// }, {
// "name": "Apple iPhone 12 白色",
// "price": 4100,
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/af4e8d5341b1433c8d23d44dbf9bf37f.jpg?x-oss-process=style/400X400",
// "url": "/goodsDetail?skuId=1376529926533939200&goodsId=1376529925690884096"
// }, {
// "name": "荣耀Play4T Pro 黑色",
// "price": 2999,
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/e58eae43b3784a1bb1bdf13937442e2d.jpg?x-oss-process=style/400X400",
// "url": "/goodsDetail?skuId=1376547794663243776&goodsId=1376547793954406400"
// }, {
// "name": "魅族12 蓝色",
// "price": 3999,
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/9ebe5bdb79c840ed9619b4fc72de21a9.png?x-oss-process=style/400X400",
// "url": "/goodsDetail?skuId=1376559979577737216&goodsId=1376559979007311872"
// }]
// }
// },
// "key": "1612497051000_82856",
// "model": "newGoodsSort_1612497051000_82856"
// }, {
// "type": "firstAdvert",
// "name": "首页广告",
// "icon": "md-image",
// "options": {
// "list": [{
// "name": "爆款直降",
// "describe": "爆款最高直降1000元",
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/24e82e04abb3430399a888e845f74a54.png",
// "url": "/goodsDetail?id=1351420391981867008",
// "fromColor": "#e89621",
// "toColor": "#f5c568",
// "size": "170*170"
// }, {
// "name": "休闲零食",
// "describe": "小嘴停不住",
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/1bed3dd6c8f04397ae598b626391869b.png",
// "url": "",
// "fromColor": "#325bb4",
// "toColor": "#4c9afe",
// "size": "170*170"
// }, {
// "name": "潮流手机",
// "describe": "潮流好货无忧购",
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/8770b83f90c3409694d36f2ef9b559e4.png",
// "url": "",
// "fromColor": "#1c9daf",
// "toColor": "#40cda7",
// "size": "170*170"
// }, {
// "name": "新品好货",
// "describe": "新品好货送好礼",
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/cf8665501b9e4856bb658c17014e35a2.png",
// "url": "",
// "fromColor": "#d13837",
// "toColor": "#df6d4f",
// "size": "170*170"
// }, {
// "name": "LILI生鲜",
// "describe": "年货带回家 满199减60",
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/bd17d2ade7764a049e430d2e2e899b16.png",
// "url": "",
// "fromColor": "#ca4283",
// "toColor": "#eb75cf",
// "size": "170*170"
// }, {
// "name": "LILI众筹",
// "describe": "备孕有孕检测仪",
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/8cd10a71b92c4ff2866f6fdd3a69ded2.png",
// "url": "",
// "fromColor": "#5d40c1",
// "toColor": "#8c5fdb",
// "size": "170*170"
// }]
// },
// "key": "1612497063000_39466",
// "model": "firstAdvert_1612497063000_39466"
// }, {
// "type": "newGoodsSort",
// "name": "新品排行",
// "icon": "md-image",
// "options": {
// "left": {
// "title": "特卖",
// "secondTitle": "更多特卖",
// "bgColor": "#c43d7e",
// "url": "",
// "list": [{
// "name": "新年心愿单",
// "describe": "满269减50,满999减100",
// "img": "/img/decorate6.3b8e00a9.jpeg",
// "url": "",
// "size": "160*160"
// }, {
// "name": "Ms.Maggie 冬季时尚",
// "describe": "满269减50",
// "img": "/img/decorate6.3b8e00a9.jpeg",
// "url": "",
// "size": "90*90"
// }, {
// "name": "Ms.Maggie 冬季时尚",
// "describe": "满269减50",
// "img": "/img/decorate6.3b8e00a9.jpeg",
// "url": "",
// "size": "90*90"
// }, {
// "name": "Ms.Maggie 冬季时尚",
// "describe": "满269减50",
// "img": "/img/decorate6.3b8e00a9.jpeg",
// "url": "",
// "size": "90*90"
// }, {
// "name": "阿迪达斯 领跑时尚",
// "describe": "满269减50",
// "img": "/img/decorate6.3b8e00a9.jpeg",
// "url": "",
// "size": "90*90"
// }]
// },
// "middle": {
// "title": "新品",
// "secondTitle": "更多新品",
// "bgColor": "#e66a07",
// "url": "",
// "list": [{
// "name": "阿迪达斯 领跑时尚",
// "describe": "满269减50",
// "img": "/img/decorate6.3b8e00a9.jpeg",
// "url": "",
// "size": "90*90"
// }, {
// "name": "阿迪达斯 领跑时尚",
// "describe": "满269减50",
// "img": "/img/decorate6.3b8e00a9.jpeg",
// "url": "",
// "size": "90*90"
// }, {
// "name": "阿迪达斯 领跑时尚",
// "describe": "满269减50",
// "img": "/img/decorate6.3b8e00a9.jpeg",
// "url": "",
// "size": "90*90"
// }, {
// "name": "阿迪达斯 领跑时尚",
// "describe": "满269减50",
// "img": "/img/decorate6.3b8e00a9.jpeg",
// "url": "",
// "size": "90*90"
// }, {
// "name": "阿迪达斯 领跑时尚",
// "describe": "满269减50",
// "img": "/img/decorate6.3b8e00a9.jpeg",
// "url": "",
// "size": "90*90"
// }, {
// "name": "阿迪达斯 领跑时尚",
// "describe": "满269减50",
// "img": "/img/decorate6.3b8e00a9.jpeg",
// "url": "",
// "size": "90*90"
// }]
// },
// "right": {
// "title": "排行榜",
// "secondTitle": "精品风向标",
// "bgColor": "#b62323",
// "url": "",
// "list": [{
// "name": "小米红米3s手机壳保护套红米3高配版指纹男女款潮版磨砂硬壳防摔 收藏截图 送大礼包",
// "price": 14.9,
// "img": "/img/decorate7.2e150fd1.jpeg",
// "url": ""
// }, {
// "name": "小米红米3s手机壳保护套红米3高配版指纹男女款潮版磨砂硬壳防摔 收藏截图 送大礼包",
// "price": 14.9,
// "img": "/img/decorate7.2e150fd1.jpeg",
// "url": ""
// }, {
// "name": "小米红米3s手机壳保护套红米3高配版指纹男女款潮版磨砂硬壳防摔 收藏截图 送大礼包",
// "price": 14.9,
// "img": "/img/decorate7.2e150fd1.jpeg",
// "url": ""
// }, {
// "name": "小米红米3s手机壳保护套红米3高配版指纹男女款潮版磨砂硬壳防摔 收藏截图 送大礼包",
// "price": 14.9,
// "img": "/img/decorate7.2e150fd1.jpeg",
// "url": ""
// }, {
// "name": "小米红米3s手机壳保护套红米3高配版指纹男女款潮版磨砂硬壳防摔 收藏截图 送大礼包",
// "price": 14.9,
// "img": "/img/decorate7.2e150fd1.jpeg",
// "url": ""
// }, {
// "name": "小米红米3s手机壳保护套红米3高配版指纹男女款潮版磨砂硬壳防摔 收藏截图 送大礼包",
// "price": 14.9,
// "img": "/img/decorate7.2e150fd1.jpeg",
// "url": ""
// }]
// }
// }
// }, {
// "type": "notEnough",
// "name": "还没逛够",
// "icon": "md-image",
// "options": {
// "list": [
// [{
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/217488c7baa44c99a447f4e31eb8642f.jpg?x-oss-process=style/400X400",
// "name": "肉类零食 白芝麻猪肉脯 香辣味",
// "price": 36,
// "url": "/goodsDetail?skuId=1381792263700480000&goodsId=1377064344218501120"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/3e7cdac8739c4d338fb0afb770cf5495.jpg?x-oss-process=style/400X400",
// "name": "【保税发货】NYX 焕彩16色眼影盘 朱光色",
// "price": 100,
// "url": "/goodsDetail?skuId=1377137907063586817&goodsId=1377137906799345664"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/389b2ce90fd0425a8a9d988890ad46d2.jpg?x-oss-process=style/400X400",
// "name": "ARMANI阿玛尼 新款蓝标大·师 造型紧颜粉底液 03",
// "price": 666,
// "url": "/goodsDetail?skuId=1381789991541145600&goodsId=1377127936569638912"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/0ebd7f52cb9641d4a0f2596c5e862c35.jpg?x-oss-process=style/400X400",
// "name": "欧莱雅复颜视黄醇精粹抗皱护肤套装 水",
// "price": 299,
// "url": "/goodsDetail?skuId=1381793547266555904&goodsId=1377102418646401024"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/36e66e081a11449cbe03e9c2df884a9f.jpg?x-oss-process=style/400X400",
// "name": "妮维雅(NIVEA)男士水活多效洁面乳 保湿",
// "price": 23,
// "url": "/goodsDetail?skuId=1381795951156396032&goodsId=1377104395929387008"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/d1e7dcda155d454c8f7089298a9bcb82.jpg?x-oss-process=style/400X400",
// "name": "【新年礼】花西子x杜鹃定制东方佳人妆奁彩妆 礼物1",
// "price": 999,
// "url": "/goodsDetail?skuId=1381796022597976064&goodsId=1377106159533555712"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/432970f4d3d24692bd7b68299c260601.jpg?x-oss-process=style/400X400",
// "name": "雅诗兰黛EsteeLauder 持妆粉底液 01",
// "price": 333,
// "url": "/goodsDetail?skuId=1381796080479371264&goodsId=1377118965985181696"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/75b2a1a1f4d74470a9da19158ff805ac.jpg?x-oss-process=style/400X400",
// "name": "MAXFACTOR 蜜丝佛陀 三合一防晒粉底液 02",
// "price": 333,
// "url": "/goodsDetail?skuId=1381796144429924352&goodsId=1377121719424122880"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/ba6efdfae1fe4493a6160ca86114845e.jpg?x-oss-process=style/400X400",
// "name": "粉色安琪sweetpink公主腮红礼盒 01",
// "price": 29,
// "url": "/goodsDetail?skuId=1381796202034495488&goodsId=1377129270085681152"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/f4930e4df42c4d80af1ca2a2106e22ad.jpg?x-oss-process=style/400X400",
// "name": "红气垫 Armani阿玛尼 轻透精华气垫粉底液 02",
// "price": 400,
// "url": "/goodsDetail?skuId=1381796259039281152&goodsId=1377122967070179328"
// }],
// [{
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/a4c2b5073fd84d60bfe38d6a6c0044c9.jpeg?x-oss-process=style/400X400",
// "name": "一加 OnePlus 9 紫色",
// "price": 3799,
// "url": "/goodsDetail?skuId=1376373278989352960&goodsId=1376373278360207360"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/df6377650f94456087316c1c9a381952.jpeg?x-oss-process=style/400X400",
// "name": "一加 OnePlus 9 黑色",
// "price": 3899,
// "url": "/goodsDetail?skuId=1376373279131959296&goodsId=1376373278360207360"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/30b3030b9bb44e758146d8eca63a1242.jpeg?x-oss-process=style/400X400",
// "name": "vivo iQOO 7 黑色",
// "price": 4198,
// "url": "/goodsDetail?skuId=1376521744352804864&goodsId=1376521743522332672"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/d86a06718d88422baf7422cb0d8b71db.jpeg?x-oss-process=style/400X400",
// "name": "vivo iQOO 7 白色",
// "price": 4298,
// "url": "/goodsDetail?skuId=1376521744608657408&goodsId=1376521743522332672"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/b3dccb22364f42c9bec193d64f140abb.jpg?x-oss-process=style/400X400",
// "name": "Apple iPhone 12 黑色",
// "price": 4200,
// "url": "/goodsDetail?skuId=1376529926336806912&goodsId=1376529925690884096"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/af4e8d5341b1433c8d23d44dbf9bf37f.jpg?x-oss-process=style/400X400",
// "name": "Apple iPhone 12 白色",
// "price": 4100,
// "url": "/goodsDetail?skuId=1376529926533939200&goodsId=1376529925690884096"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/0544e5c117a348998d80061f7a900400.jpg?x-oss-process=style/400X400",
// "name": "佳能(Canon) EOS 200D II 2代数码单反相机 白色",
// "price": 4449,
// "url": "/goodsDetail?skuId=1376541893755666432&goodsId=1376541893319458816"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/299785007b884e6a823c212c839e092c.jpg?x-oss-process=style/400X400",
// "name": "佳能(Canon) EOS 200D II 2代数码单反相机 黑色",
// "price": 4459,
// "url": "/goodsDetail?skuId=1376541893952798720&goodsId=1376541893319458816"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/9064c20d62f24bfaa5d3854f72a83c6c.jpg?x-oss-process=style/400X400",
// "name": "小米 (MI)Redmi K40 Pro 黑色",
// "price": 2999,
// "url": "/goodsDetail?skuId=1376544591066431488&goodsId=1376544590403731456"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/b20243bc89a149a398b6d7ef9a097938.jpg?x-oss-process=style/400X400",
// "name": "小米 (MI)Redmi K40 Pro 白色",
// "price": 3999,
// "url": "/goodsDetail?skuId=1376544591276146688&goodsId=1376544590403731456"
// }],
// [{
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/e58eae43b3784a1bb1bdf13937442e2d.jpg?x-oss-process=style/400X400",
// "name": "荣耀Play4T Pro 黑色",
// "price": 2999,
// "url": "/goodsDetail?skuId=1376547794663243776&goodsId=1376547793954406400"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/a91ea16401974fc29364c8be9ca76e83.jpg?x-oss-process=style/400X400",
// "name": "荣耀Play4T Pro 绿色",
// "price": 2999,
// "url": "/goodsDetail?skuId=1376547794856181760&goodsId=1376547793954406400"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/745f6ef25634428a8b1972ce23c9c7b3.jpg?x-oss-process=style/400X400",
// "name": "小米MIRedmi K30 至尊纪念版 绿色",
// "price": 3000,
// "url": "/goodsDetail?skuId=1376554436532371456&goodsId=1376554435945168896"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/6fed4b19c53c4b88a5123301dede09c9.jpg?x-oss-process=style/400X400",
// "name": "小米MIRedmi K30 至尊纪念版 白色",
// "price": 4000,
// "url": "/goodsDetail?skuId=1376554436721115136&goodsId=1376554435945168896"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/cc724307f056420eb14c5bd35608a024.jpg?x-oss-process=style/400X400",
// "name": "一加 OnePlus 9 紫色",
// "price": 5000,
// "url": "/goodsDetail?skuId=1376556775628603392&goodsId=1376556775007846400"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/7a90d38c4a9f4c8f84f10e53bc204b84.jpg?x-oss-process=style/400X400",
// "name": "一加 OnePlus 9 蓝色",
// "price": 5000,
// "url": "/goodsDetail?skuId=1376556775825735680&goodsId=1376556775007846400"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/9ebe5bdb79c840ed9619b4fc72de21a9.png?x-oss-process=style/400X400",
// "name": "魅族12 蓝色",
// "price": 3999,
// "url": "/goodsDetail?skuId=1376559979577737216&goodsId=1376559979007311872"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/5fc6e64e189c4c378e72757af663ff3a.png?x-oss-process=style/400X400",
// "name": "魅族12 白色",
// "price": 4999,
// "url": "/goodsDetail?skuId=1376559979762286592&goodsId=1376559979007311872"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/230413f3a04b4dfeb4797211a760f0ce.jpg?x-oss-process=style/400X400",
// "name": "华为笔记本MateBook 银色",
// "price": 2999,
// "url": "/goodsDetail?skuId=1376727108025319424&goodsId=1376727107777855488"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/9f66c6e074f9405195eea1c5587da964.jpg?x-oss-process=style/400X400",
// "name": "三星Galaxy S21 Ultra ",
// "price": 7474,
// "url": "/goodsDetail?skuId=1376850145177501696&goodsId=1376850145118781440"
// }],
// [{
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/54dcb9cd0fea4f1f8243e12d49c28af9.png?x-oss-process=style/400X400",
// "name": "百草味 蜜饯 原味芒果干 一袋",
// "price": 15,
// "url": "/goodsDetail?skuId=1381791842915319808&goodsId=1376443041593688064"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/ce9a24a34bb34479b9239f07a9425746.jpg?x-oss-process=style/400X400",
// "name": "牛肉干 百草味",
// "price": 35,
// "url": "/goodsDetail?skuId=1381792695176921088&goodsId=1377074868700315648"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/fced3eededaf4018a26af0ebd660238c.jpg?x-oss-process=style/400X400",
// "name": "奥利奥夹心饼干 原味",
// "price": 35,
// "url": "/goodsDetail?skuId=1381792775162298368&goodsId=1377077664103268352"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/58411207ec5946c7950be9d6eccd136c.jpg?x-oss-process=style/400X400",
// "name": "奥利奥夹心饼干 巧克力",
// "price": 35,
// "url": "/goodsDetail?skuId=1381792775170686976&goodsId=1377077664103268352"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/5b87f8d1439b4dd2b1bd7f9c331eb91b.jpg?x-oss-process=style/400X400",
// "name": "母亲原味牛肉棒22g 牛肉干特产肉类 麻辣",
// "price": 8,
// "url": "/goodsDetail?skuId=1381793449228894208&goodsId=1377098934119301120"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/028c7081275d4c1ea1c7aac206162c44.jpg?x-oss-process=style/400X400",
// "name": "魔法士干脆面【整箱装-混合口味48袋】魔法师干吃方便面 麻辣牛排",
// "price": 2,
// "url": "/goodsDetail?skuId=1381793503364775936&goodsId=1377100803117940736"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/fe5b8167b0264c53836d08a6a7003cf0.jpeg?x-oss-process=style/400X400",
// "name": "雀巢(Nestle) 脆脆鲨 威化饼干 牛奶味",
// "price": 9.9,
// "url": "/goodsDetail?skuId=1381797095073120256&goodsId=1377805575856848896"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/6ce1382ba55f4284a86f893cfc79eed8.jpg?x-oss-process=style/400X400",
// "name": "雀巢Nestle咖啡 奶香味10条",
// "price": 39,
// "url": "/goodsDetail?skuId=1381791962713030656&goodsId=1377057500825649152"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/72927f793db7454d9109ab0581ace984.jpg?x-oss-process=style/400X400",
// "name": "杯口留香酸奶燕麦片 水果燕麦片",
// "price": 9,
// "url": "/goodsDetail?skuId=1381792469200404480&goodsId=1377070177157382144"
// }, {
// "img": "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/b7c76242a9914e60a059b2f2dfee168b.jpg?x-oss-process=style/400X400",
// "name": "坚果 夏威夷果 奶油味",
// "price": 37,
// "url": "/goodsDetail?skuId=1381792548808294400&goodsId=1377071458592751616"
// }]
// ],
// "navList": [{
// "title": "精选",
// "desc": "个性美妆"
// }, {
// "title": "智能先锋",
// "desc": "大电器城"
// }, {
// "title": "居家优品",
// "desc": "品质生活"
// }, {
// "title": "超市百货",
// "desc": "百货生鲜"
// }]
// },
// "key": "1612497066000_30831",
// "model": "notEnough_1612497066000_30831"
// }]
// }
if (pageData) {
pageData = JSON.parse(pageData);
if (pageData.list[0].type === "topAdvert") {

View File

@@ -42,7 +42,7 @@
</p>
<p class="item">
<span class="label">性别</span>
<span v-if="memberInfo.sex==1" class="info"></span>
<span v-if="memberInfo.sex===1" class="info"></span>
<span v-else class="info"></span>
</p>
<p class="item">
@@ -414,7 +414,6 @@
key: "beforePoint",
width: 150,
},
{
title: "变动积分",
key: "variablePoint",
@@ -434,10 +433,9 @@
style: {
color: 'red'
}
}, "-" + params.row.variablePoint),
}, params.row.variablePoint),
]);
}
}
},
{
@@ -483,7 +481,6 @@
} else if (params.row.orderType == "PINTUAN") {
return h('div', [h('span', {}, '拼团订单'),]);
}
}
},
{
@@ -538,7 +535,6 @@
}
}
},
{
title: "售后状态",
key: "groupAfterSaleStatus",

View File

@@ -106,7 +106,7 @@
style: {
color: 'red'
}
}, "-" + params.row.variablePoint),
}, params.row.variablePoint),
]);
}

View File

@@ -27,7 +27,7 @@
:on-error="handleError"
:format="['jpg','jpeg','png','gif','bmp']"
accept=".jpg, .jpeg, .png, .gif, .bmp"
:max-size="maxSize*1024"
:max-size="1024"
:on-format-error="handleFormatError"
:on-exceeded-size="handleMaxSize"
:before-upload="beforeUpload"
@@ -74,10 +74,6 @@ export default {
type: Boolean,
default: false
},
maxSize: {
type: Number,
default: 5
},
maxlength: Number,
icon: {
type: String,
@@ -116,7 +112,7 @@ export default {
this.loading = false;
this.$Notice.warning({
title: "文件大小过大",
desc: "所选文件 " + file.name + " ’大小过大, 不得超过 " + this.maxSize + "M."
desc: "所选文件大小过大, 不得超过1M."
});
},
// 上传前

View File

@@ -29,7 +29,7 @@
:on-success="handleSuccess"
:on-error="handleError"
:format="['jpg','jpeg','png','gif']"
:max-size="maxSize*1024"
:max-size="1024"
:on-format-error="handleFormatError"
:on-exceeded-size="handleMaxSize"
:before-upload="handleBeforeUpload"
@@ -72,10 +72,6 @@ export default {
type: Boolean,
default: true
},
maxSize: {
type: Number,
default: 5
},
limit: {
type: Number,
default: 10
@@ -147,11 +143,7 @@ export default {
this.$Notice.warning({
title: "文件大小过大",
desc:
"所选文件 " +
file.name +
" ’大小过大, 不得超过 " +
this.maxSize +
"M."
"所选文件大小过大不能超过1M."
});
},
// 上传之前钩子

View File

@@ -280,7 +280,10 @@
},
//修改售后原因
edit(v) {
this.form.reason = v.reason
this.form.id = v.id
this.modalVisible = true
this.modalTitle = "修改售后原因"
},

View File

@@ -31,18 +31,19 @@
<Option value="CANCELLED">已取消</Option>
</Select>
</Form-item>
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
<Form-item label="下单时间">
<DatePicker
v-model="selectDate"
type="datetimerange"
format="yyyy-MM-dd HH:mm:ss"
format="yyyy-MM-dd"
clearable
@on-change="selectDateRange"
placeholder="选择起始时间"
placeholder="选择起始时间"
style="width: 200px"
></DatePicker>
</Form-item>
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
</Form>
</Row>
<Table
@@ -94,6 +95,7 @@
buyerName: "",
orderStatus: ""
},
selectDate: null, // 下单时间
columns: [
{

View File

@@ -35,9 +35,9 @@
</Form>
<div>
<download-excel class="export-excel-wrapper" :data="data" :fields="fields" name="商品订单.xls">
<download-excel class="export-excel-wrapper" :data="data" :fields="fields" :fetch="exportOrder" name="商品订单.xls">
<Button type="info" class="export">
导出Excel
导出订单
</Button>
</download-excel>
</div>
@@ -269,6 +269,24 @@ export default {
query: { sn: sn },
});
},
// 导出订单
async exportOrder () {
const params = JSON.parse(JSON.stringify(this.searchForm))
params.pageNumber = 1;
params.pageSize = 10000
const result = await API_Order.getOrderList(params)
if (result.success) {
if (result.result.records.length === 0) {
this.$Message.warning('暂无待发货订单')
return []
} else {
return result.result.records
}
} else {
this.$Message.warning('导出订单失败,请重试')
}
}
},
mounted() {
this.init();

View File

@@ -58,12 +58,12 @@
</template>
</div>
<Upload v-if="liveForm.coverImg.length ==0" ref="upload" :show-upload-list="false" :on-success="handleCoverImgSuccess" :default-file-list="defaultImgList" :format="['jpg','jpeg','png']"
:on-format-error="handleFormatError" :max-size="2048" :on-exceeded-size="handleMaxSize" type="drag" :action="action" :headers="accessToken" style="display: inline-block;width:58px;">
:on-format-error="handleFormatError" :max-size="1024" :on-exceeded-size="handleMaxSize" type="drag" :action="action" :headers="accessToken" style="display: inline-block;width:58px;">
<div style="width: 58px;height:58px;line-height: 58px;">
<Icon type="ios-camera" size="20"></Icon>
</div>
</Upload>
<div class="tips"> 直播间背景图图片规则建议像素1080*1920大小不超过2M</div>
<div class="tips"> 直播间背景图图片规则建议像素1080*1920大小不超过1M</div>
</FormItem>
<!-- 直播间背景墙 -->
@@ -79,7 +79,7 @@
</template>
</div>
<Upload v-if="liveForm.shareImg.length ==0" ref="upload" :show-upload-list="false" :on-success="handleShareImgSuccess" :default-file-list="defaultImgList" :format="['jpg','jpeg','png']"
:on-format-error="handleFormatError" :max-size="2048" :on-exceeded-size="handleMaxSize" type="drag" :action="action" :headers="accessToken" style="display: inline-block;width:58px;">
:on-format-error="handleFormatError" :max-size="1024" :on-exceeded-size="handleMaxSize" type="drag" :action="action" :headers="accessToken" style="display: inline-block;width:58px;">
<div style="width: 58px;height:58px;line-height: 58px;">
<Icon type="ios-camera" size="20"></Icon>
</div>
@@ -191,6 +191,13 @@ export default {
this.imageVisible = true;
this.imageSrc = src;
},
// 上传文件超过大小限制
handleMaxSize(file) {
this.$Notice.warning({
title: "文件大小过大",
desc: "所选文件大小过大, 不得超过 1M.",
});
},
/**
* 获取直播间详情
*/

View File

@@ -1,219 +0,0 @@
<template>
<div>
<Card>
<Form ref="form" :model="form" :label-width="120" :rules="formRule">
<div class="base-info-item">
<h4>基本信息</h4>
<div class="form-item-view">
<FormItem label="活动名称" prop="promotionName">
<Input
type="text"
v-model="form.promotionName"
placeholder="请填写活动名称"
clearable
:disabled="form.promotionStatus != 'NEW'"
style="width: 260px"
/>
</FormItem>
<FormItem label="报名截止时间" prop="applyEndTime">
<DatePicker
type="datetime"
v-model="form.applyEndTime"
format="yyyy-MM-dd HH:mm:ss"
placeholder="请选择"
clearable
:disabled="form.promotionStatus != 'NEW'"
style="width: 200px"
>
</DatePicker>
</FormItem>
<FormItem label="活动开始时间" prop="startTime">
<DatePicker
type="datetime"
v-model="form.startTime"
:disabled="form.promotionStatus != 'NEW'"
format="yyyy-MM-dd"
placeholder="请选择"
clearable
style="width: 200px"
>
</DatePicker>
</FormItem>
<FormItem label="抢购时间段" prop="seckillPeriod">
<Tag
v-for="item in form.seckillPeriod"
:key="item"
:name="item"
closable
style="marrgin-left: 10px"
@on-close="removePeriodTime"
>{{ item >= 10 ? item : "0" + item }}:00</Tag
>
<InputNumber
:max="23"
:min="0"
v-model="periodTime"
v-show="showAddPeriod"
@on-blur="addPeriodTime"
></InputNumber>
<Button
type="default"
@click="addPeriod"
v-if="form.promotionStatus == 'NEW'"
>添加时间段</Button
>
</FormItem>
<FormItem label="申请规则" prop="seckillRule">
<Input
type="text"
v-model="form.seckillRule"
placeholder="申请规则"
clearable
:disabled="form.promotionStatus != 'NEW'"
style="width: 260px"
/>
</FormItem>
</div>
<div class="foot-btn">
<Button @click="closeCurrentPage" style="margin-right: 5px">返回</Button>
<Button
type="primary"
:loading="submitLoading"
v-if="form.promotionStatus == 'NEW'"
@click="handleSubmit"
>提交</Button
>
</div>
</div>
</Form>
</Card>
</div>
</template>
<script>
import { saveSeckill, updateSeckill, seckillDetail } from "@/api/promotion";
export default {
name: "addSeckill",
data() {
return {
modalType: 0, // 添加、编辑标识
form: {
/** 活动名称 */
promotionName: "",
/** 报名截止时间 */
applyEndTime: "",
/** 活动开始时间 */
startTime: "",
/** 抢购时间段 */
seckillPeriod: [],
/** 申请规则 */
seckillRule: "",
promotionStatus: "NEW",
},
id: this.$route.query.id, // 活动id
periodTime: null, // 抢购时间段
showAddPeriod: false, // input显隐
submitLoading: false, // 添加或编辑提交状态
formRule: {
promotionName: [{ required: true, message: "请填写活动名称" }],
applyEndTime: [{ required: true, message: "请选择报名截止时间" }],
seckillPeriod: [{ required: true, message: "请填写抢购时间段" }],
startTime: [{ required: true, message: "请选择活动开始时间" }],
seckillRule: [{ required: true, message: "请输入申请规则" }],
},
};
},
mounted() {
// 如果id不为空则查询信息
if (this.id) {
this.getData();
this.modalType = 1;
}
},
methods: {
// 关闭当前页面
closeCurrentPage() {
this.$store.commit("removeTag", "manager-seckill-add");
localStorage.pageOpenedList = JSON.stringify(this.$store.state.app.pageOpenedList);
this.$router.go(-1);
},
// 获取活动详情
getData() {
seckillDetail(this.id).then((res) => {
if (res.success) {
let data = res.result;
data.seckillPeriod = res.result.hours.split(",");
this.form = data;
}
});
},
addPeriod() { // 添加时间段显示input
this.addPeriodTime();
this.showAddPeriod = true;
},
addPeriodTime() { // 添加秒杀时间段
this.showAddPeriod = false;
if (
this.periodTime !== null &&
!this.form.seckillPeriod.includes(this.periodTime)
) {
this.form.seckillPeriod.push(this.periodTime);
}
},
removePeriodTime(event, name) { // 移除秒杀时间段
this.form.seckillPeriod = this.form.seckillPeriod.filter((i) => i !== name);
},
/** 添加秒杀活动 */
handleSubmit() {
this.$refs.form.validate((valid) => {
if (valid) {
this.submitLoading = true;
this.form.hours = this.form.seckillPeriod.toString();
if (this.modalType === 0) {
// 添加 避免编辑后传入id等数据 记得删除
delete this.form.id;
saveSeckill(this.form).then((res) => {
this.submitLoading = false;
if (res && res.success) {
this.$Message.success("限时抢购活动添加成功");
this.closeCurrentPage();
}
});
} else {
delete this.form.createTime;
delete this.form.updateTime;
delete this.form.endTime;
// 编辑
updateSeckill(this.form).then((res) => {
this.submitLoading = false;
if (res && res.success) {
this.$Message.success("限时抢购活动修改成功");
this.closeCurrentPage();
}
});
}
}
});
},
},
};
</script>
<style lang="scss" scoped>
h4 {
margin-bottom: 10px;
padding: 0 10px;
border: 1px solid #ddd;
background-color: #f8f8f8;
font-weight: bold;
color: #333;
font-size: 14px;
line-height: 40px;
text-align: left;
}
// .ivu-form-item{
// margin-bottom: 30px;
// }
</style>

View File

@@ -21,10 +21,10 @@
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
</Form>
</Row>
<Row class="operation padding-row">
<!-- <Row class="operation padding-row">
<Button type="primary" @click="add">添加活动</Button>
</Row>
<Tabs value="list" @on-click="clickTabPane">
</Row> -->
<Tabs value="list" class="mt_10" @on-click="clickTabPane">
<TabPane label="秒杀活动列表" name="list">
<Table :loading="loading" border :columns="columns" :data="data" ref="table" class="mt_10">
<template slot-scope="{ row }" slot="action">
@@ -32,7 +32,7 @@
<Button type="info" size="small" class="mr_5" v-else @click="manage(row)">查看</Button>
<Button type="primary" size="small" class="mr_5" v-if="row.promotionStatus == 'NEW'" @click="manage(row)">管理</Button>
<Button type="success" size="small" class="mr_5" v-if="row.promotionStatus == 'NEW'" @click="manage(row)">管理</Button>
<Button type="error" size="small" v-if="
row.promotionStatus == 'START' || row.promotionStatus == 'NEW'

View File

@@ -21,8 +21,8 @@
style="width: 200px"
/>
</Form-item>
<Form-item label="店铺状态" prop="shopDisable">
<Select v-model="searchForm.shopDisable" clearable style="width: 200px">
<Form-item label="店铺状态">
<Select v-model="searchForm.storeDisable" clearable style="width: 200px">
<Option value="OPEN">开启中</Option>
<Option value="CLOSED">已关闭</Option>
<Option value="APPLY">申请中</Option>

View File

@@ -187,7 +187,7 @@
:headers="accessToken"
:on-success="handleSuccess"
:on-error="handleError"
:max-size="5120"
:max-size="1024"
:on-exceeded-size="handleMaxSize"
multiple
type="drag"
@@ -694,7 +694,7 @@ export default {
handleMaxSize(file) {
this.$Notice.warning({
title: "文件大小过大",
desc: "所选文件 " + file.name + " 大小过大, 不得超过 5M.",
desc: "所选文件大小过大, 不得超过 1M.",
});
},
// 上传成功回调

View File

@@ -76,22 +76,22 @@
<!-- 保存权限弹出选择权限 -->
<Modal width="800" v-model="selectIsSuperModel" title="选择菜单权限" :loading="superModelLoading" @on-ok="saveRole">
<!-- <div class="btns">
<Button type="primary" class="btn-item">一键选中·数据权限</Button>
<Button class="btn-item">一键选中·查看权限</Button>
</div> -->
<div class="btns">
<Button type="primary" @click="setRole()" class="btn-item">一键选中·数据权限</Button>
<Button class="btn-item" @click="setRole('onlyView')">一键选中·查看权限</Button>
</div>
<div class="role-list">
<div class="role-item" v-for="(item, index) in saveRoleWay" :key="index">
<div class="title">{{ item.title }}</div>
<div class="content">
<RadioGroup type="button" button-style="solid" v-model="item.isSuper">
<Radio :label="true">
<span>操作数据权限</span>
</Radio>
<Radio :label="false">
<span>查看权限</span>
</Radio>
</RadioGroup>
<RadioGroup type="button" button-style="solid" v-model="item.isSuper">
<Radio :label="true">
<span>操作数据权限</span>
</Radio>
<Radio :label="false">
<span>查看权限</span>
</Radio>
</RadioGroup>
</div>
</div>
</div>
@@ -337,6 +337,17 @@ export default {
this.getRoleList();
},
/**
* 设置权限
*/
setRole(val) {
let enable;
val == "onlyView" ? (enable = false) : (enable = true);
this.saveRoleWay.map((item) => {
item.isSuper = enable;
});
},
/**
* 查询所有角色
*/
@@ -515,7 +526,7 @@ export default {
}
// 递归判断子节点
this.checkPermTree(this.permData, rolePerms);
console.warn(this.permData);
this.permModalVisible = true;
},
// 递归判断子节点
@@ -535,7 +546,6 @@ export default {
},
// 判断角色拥有的权限节点勾选
hasPerm(p, rolePerms) {
console.log(p, rolePerms);
if (!rolePerms) return false;
let flag = false;
for (let i = 0; i < rolePerms.length; i++) {
@@ -568,7 +578,6 @@ export default {
let way = [];
selectedNodes.forEach((e) => {
console.log(e);
let perm = {
title: e.title,
isSuper: e.isSuper,
@@ -707,44 +716,42 @@ export default {
display: flex;
padding: 20px 0;
align-items: center;
>.title{
> .title {
flex: 2;
text-align: right;
}
>.content{
> .content {
flex: 10;
}
}
.btns{
.btns {
display: flex;
align-items: center;
justify-content: space-between;
justify-content: center;
}
.btn-item{
.btn-item {
margin-right: 20px;
}
.permModal {
.ivu-modal-body {
max-height: 560px;
overflow: auto;
}
.ivu-modal-body {
max-height: 560px;
overflow: auto;
}
}
.depModal {
.ivu-modal-body {
max-height: 500px;
overflow: auto;
}
.ivu-modal-body {
max-height: 500px;
overflow: auto;
}
}
.tips{
.tips {
font-size: 12px;
color: #999;
margin-left: 8px;
}
.title{
.title {
font-weight: bold;
margin-right: 20px;
}
</style>

View File

@@ -3,7 +3,7 @@
<Card>
<Row @keydown.enter.native="handleSearch">
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
<Form-item label="用户名" prop="username">
<Form-item label="用户名">
<Input
type="text"
v-model="searchForm.username"
@@ -12,7 +12,7 @@
style="width: 200px"
/>
</Form-item>
<Form-item label="联系方式" prop="mobile">
<Form-item label="联系方式">
<Input
type="text"
v-model="searchForm.mobile"
@@ -22,16 +22,9 @@
/>
</Form-item>
<Form-item label="部门" prop="department" >
<Form-item label="部门">
<department-choose @on-change="handleSelectDep" style="width: 150px;" ref="dep"></department-choose>
</Form-item>
<Form-item label="用户状态" prop="status">
<Select v-model="searchForm.status" placeholder="请选择" clearable style="width: 150px">
<Option value="true">启用</Option>
<Option value="false">禁用</Option>
</Select>
</Form-item>
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
</Form>
</Row>
@@ -143,8 +136,6 @@ export default {
username: "",
departmentId: "",
mobile: "",
type: "",
status: "",
pageNumber: 1,
pageSize: 10,
sort: "createTime",
@@ -158,7 +149,6 @@ export default {
mobile: "",
email: "",
sex: "",
type: 0,
roles: [],
departmentId: "",
departmentTitle: ""
@@ -388,13 +378,6 @@ export default {
getUserList() {
// 多条件搜索用户列表
this.loading = true;
// 避免后台默认值
if (!this.searchForm.type) {
this.searchForm.type = "";
}
if (!this.searchForm.status) {
this.searchForm.status = "";
}
getUserListData(this.searchForm).then(res => {
this.loading = false;
if (res.success) {
@@ -461,21 +444,21 @@ export default {
if (valid) {
if (this.modalType == 0) {
// 添加用户 避免编辑后传入id
delete this.form.id;
delete this.form.status;
if (this.form.password == "" || this.form.password == undefined) {
const params = JSON.parse(JSON.stringify(this.form))
delete params.id;
delete params.status;
if (params.password == "" || params.password == undefined) {
this.errorPass = "密码不能为空";
return;
}
if (this.form.password.length < 6) {
if (params.password.length < 6) {
this.errorPass = "密码长度不得少于6位";
return;
}
//todo
this.form.password = this.md5(this.form.password)
params.password = this.md5(params.password)
this.submitLoading = true;
addUser(this.form).then(res => {
addUser(params).then(res => {
this.submitLoading = false;
if (res.success) {
this.$Message.success("操作成功");
@@ -503,6 +486,15 @@ export default {
this.modalType = 0;
this.modalTitle = "添加用户";
this.$refs.form.resetFields();
this.form = { // 表单
username: "",
mobile: "",
email: "",
sex: "",
roles: [],
departmentId: "",
departmentTitle: ""
},
this.$refs.depTree.setData("", "");
this.userModalVisible = true;
},