diff --git a/merchant.zip b/merchant.zip new file mode 100644 index 0000000..949e13f Binary files /dev/null and b/merchant.zip differ diff --git a/src/api/public/index.js b/src/api/public/index.js index 65bd7f8..dbbff2b 100644 --- a/src/api/public/index.js +++ b/src/api/public/index.js @@ -1,10 +1,28 @@ import httpService from "@/request" -// 注册-发送验证码 +// 账户-获取个人信息 export function userInfo(params) { return httpService({ url: `/user/getUserInfo`, method: 'get', params: params, }) +} + +// 经营类目列表 +export function merchantList(params) { + return httpService({ + url: `/user/authentication/MerchantCategoryFindAll`, + method: 'get', + params: params, + }) +} + +// 城市列表 +export function getCityList(params) { + return httpService({ + url: `/city/allCity`, + method: 'get', + params: params, + }) } \ No newline at end of file diff --git a/src/router/intShop.js b/src/router/intShop.js index 2e6061d..d79186d 100644 --- a/src/router/intShop.js +++ b/src/router/intShop.js @@ -34,14 +34,6 @@ export default [ component: resolve => require(['@/views/IntShop/Item/_itemList'], resolve), meta: {title: '商品列表'}, }, - // { - // path: '/Item/BrandAuthor', - // name: "BrandAuthor", - // title: "品牌资质", - // hide: false, - // component: resolve => require(['@/views/IntShop/Item/_brandAuthor'], resolve), - // meta: {title: '品牌资质'}, - // }, { path: '/Item/TypeList', name: "TypeList", @@ -68,6 +60,34 @@ export default [ }, ] }, + { + path: '/Order', + name: "Order", + title: "订单", + icon: 'container', + hide: false, + component: resolve => require(['@/views/IntShop/Order'], resolve), + redirect: '/Order/OrderList', + meta: {title: '订单'}, + children: [ + { + path: '/Order/OrderList', + name: "OrderList", + title: "订单列表", + hide: false, + component: resolve => require(['@/views/IntShop/Order/_orderList'], resolve), + meta: {title: '订单列表'}, + }, + { + path: '/Order/OrderDetail', + name: "OrderDetail", + title: "订单详情", + hide: true, + component: resolve => require(['@/views/IntShop/Order/_orderDetail'], resolve), + meta: {title: '订单详情'}, + }, + ] + }, { path: '/Setting', name: "Setting", diff --git a/src/views/IntShop/Item/_addItem/index.vue b/src/views/IntShop/Item/_addItem/index.vue index cbb9a0b..00636cb 100644 --- a/src/views/IntShop/Item/_addItem/index.vue +++ b/src/views/IntShop/Item/_addItem/index.vue @@ -7,39 +7,33 @@

商品信息

- - - 实物商品 - 虚拟商品 - -
实物商品需要填写物流信息,虚拟商品则不需要填写
-
- - - - + - - - - + +
准确选择商品类目有助于完善商品信息

价格信息

- - - - + + + + - + + + + 付款减库存 @@ -47,38 +41,22 @@ - - - 立即上架 - 定时上架 - 暂不上架 - - - - - - 开启 - 关闭 - - - -

价格信息

+

物流信息

快递发货 到店自提 -
实物商品需要填写物流信息,虚拟商品则不需要填写
- - - 统一运费 - 运费模版 - - - + + + + +
@@ -112,6 +90,7 @@ + + \ No newline at end of file diff --git a/src/views/IntShop/Order/_orderList/config.js b/src/views/IntShop/Order/_orderList/config.js new file mode 100644 index 0000000..ef10ba1 --- /dev/null +++ b/src/views/IntShop/Order/_orderList/config.js @@ -0,0 +1,148 @@ +export const columns = [ + { + title: "订单状态", + dataIndex: "status", + width: "8%", + customRender: function (status) { + switch (status) { + case 0: return '待付款' + case 1: return '待发货' + case 2: return '待收货' + case 3: return '交易完成' + default: break; + } + } + }, + { + title: "商品编号", + dataIndex: "code", + width: "10%", + }, + { + title: "商品", + dataIndex: "itemName", + width: "10%", + }, + { + title: "所属分类", + dataIndex: "type", + width: "7%", + }, + { + title: "商品单价", + dataIndex: "price", + width: "6%", + }, + { + title: "数量", + dataIndex: "number", + width: "6%", + }, + { + title: "商品总价", + dataIndex: "totalPrice", + width: "6%", + }, + { + title: "实收款", + dataIndex: "receive", + width: "6%", + }, + { + title: "配送", + dataIndex: "ship", + width: "6%", + }, + { + title: "买家/收货人", + dataIndex: "custom", + width: "10%", + }, + { + title: "下单时间", + dataIndex: "orderTime", + width: "10%", + }, + { + title: "操作", + dataIndex: "action", + key: "action", + width: "250", + fixed: "right", + scopedSlots: { customRender: "action" }, + }, +] +export const detailColumns = [ + { + title: "商品", + dataIndex: "skuName", + width: "16%", + scopedSlots: { customRender: "skuName"} + }, + { + title: "商品类别", + dataIndex: "kind", + width: "15%", + customRender:function(kind){ + switch (kind) { + case 0: + return '未知' + case 1: + return '自营' + case 2: + return '其他' + default: + break; + } + } + }, + { + title: "商品单价", + dataIndex: "sellPrice", + width: "10%", + customRender:function(sellPrice){ + return '¥'+sellPrice + } + }, + { + title: "数量", + dataIndex: "num", + width: "8%", + }, + { + title: "单位", + dataIndex: "unit", + width: "12%", + }, + { + title: "总金额", + width: "12%", + customRender:function(data){ + return '¥'+data.sellPrice*data.num + } + + }, + { + title: "实收款", + dataIndex: "payPrice", + width: "15%", + customRender:function(payPrice){ + return '¥'+payPrice + } + }, +] +// 搜索项 +export const searchForm = { + code: "", + jcookCode: '', + tradeStatus:undefined +} +// 分页 +export const pagination = { + current: 1, + total: 0, + pageSize: 10, + showTotal: (total) => `共 ${total} 条`, + showSizeChanger: true, + showQuickJumper: true, +} \ No newline at end of file diff --git a/src/views/IntShop/Order/_orderList/index.vue b/src/views/IntShop/Order/_orderList/index.vue new file mode 100644 index 0000000..a138105 --- /dev/null +++ b/src/views/IntShop/Order/_orderList/index.vue @@ -0,0 +1,183 @@ + + + diff --git a/src/views/IntShop/Order/index.vue b/src/views/IntShop/Order/index.vue new file mode 100644 index 0000000..8787f75 --- /dev/null +++ b/src/views/IntShop/Order/index.vue @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file diff --git a/src/views/IntShop/Setting/_certification/index.vue b/src/views/IntShop/Setting/_certification/index.vue index 2532320..7e92bc4 100644 --- a/src/views/IntShop/Setting/_certification/index.vue +++ b/src/views/IntShop/Setting/_certification/index.vue @@ -7,7 +7,7 @@ - + 个体户 企业 个人 @@ -29,7 +29,8 @@
2、按照以下清单准备材料 - +

· 证件包含:身份证、护照、来往内地通行证等有效证件

@@ -63,7 +64,9 @@ - + @@ -84,10 +87,16 @@

主体证件照片

- + - + @@ -106,13 +115,22 @@

法定代表人证件照

- + - + - +

法定代表人信息

@@ -182,7 +200,9 @@
--> - + @@ -197,7 +217,7 @@ - + @@ -238,6 +258,7 @@ diff --git a/src/views/Login/index.vue b/src/views/Login/index.vue index ce03172..1e6b5e3 100644 --- a/src/views/Login/index.vue +++ b/src/views/Login/index.vue @@ -273,7 +273,7 @@ export default { this.setToken(res.data); userInfo().then(result => { this.setUserInfo(result.data); - this.$router.push("/"); + this.$router.push("/shopChoose"); }); } }); @@ -290,7 +290,7 @@ export default { this.setToken(res.data); userInfo().then(result => { this.setUserInfo(result.data); - this.$router.push("/"); + this.$router.push("/shopChoose"); }); } }); diff --git a/src/views/ShopChoose/index.vue b/src/views/ShopChoose/index.vue index 8c4e283..4c278e6 100644 --- a/src/views/ShopChoose/index.vue +++ b/src/views/ShopChoose/index.vue @@ -21,7 +21,18 @@ 创建店铺
- + +
+
+ + + + 进入 +

店铺状态:营业中

+

经营地址:北京市北京市丰台区和义街道 19 单元 107 室

+
+
+
@@ -59,6 +70,7 @@