提交 63b89cf6 authored 作者: 王鹏飞's avatar 王鹏飞

update

上级 ec39870a
<template> <template>
<div class="app-header"> <div class="app-header">
<div class="item"><i class="el-icon-s-shop"></i>进店</div> <div class="item">
<a :href="shopUrl" target="_blank"><i class="el-icon-s-shop"></i>进店</a>
</div>
<div class="item"><i class="el-icon-bell"></i>通知</div> <div class="item"><i class="el-icon-bell"></i>通知</div>
<el-dropdown> <el-dropdown>
<div class="avatar"> <div class="avatar">
...@@ -25,8 +27,14 @@ export default { ...@@ -25,8 +27,14 @@ export default {
user() { user() {
return this.$store.state.user return this.$store.state.user
}, },
shopId() {
return this.$store.state.shopId
},
shop() { shop() {
return this.$store.state.shop return this.$store.state.shop
},
shopUrl() {
return `${webConf.others.h5PreviewUrl}/shop?shop_id=${this.shopId}`
} }
}, },
methods: { methods: {
...@@ -71,6 +79,11 @@ export default { ...@@ -71,6 +79,11 @@ export default {
margin-right: 4px; margin-right: 4px;
font-size: 22px; font-size: 22px;
} }
a {
display: flex;
justify-content: center;
align-items: center;
}
} }
.item + .item { .item + .item {
&::before { &::before {
......
...@@ -171,7 +171,7 @@ export default { ...@@ -171,7 +171,7 @@ export default {
handleRemove() { handleRemove() {
const data = this.multipleSelection.map(item => ({ spu_id: item.spu_id })) const data = this.multipleSelection.map(item => ({ spu_id: item.spu_id }))
deleteGoods({ shop_id: this.shopId, data }).then(res => { deleteGoods({ shop_id: this.shopId, data }).then(res => {
this.$refs.list.refetch() this.$refs.list.refetch(true)
}) })
}, },
// 推广 // 推广
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</div> </div>
<div class="order-field-item"> <div class="order-field-item">
<div class="order-field-item__label">付款方式:</div> <div class="order-field-item__label">付款方式:</div>
<div class="order-field-item__content">{{ data.payment_method }}</div> <div class="order-field-item__content">{{ paymentMethod(data.payment_method) }}</div>
</div> </div>
<div class="order-field-item"> <div class="order-field-item">
<div class="order-field-item__label">付款时间:</div> <div class="order-field-item__label">付款时间:</div>
...@@ -156,6 +156,18 @@ export default { ...@@ -156,6 +156,18 @@ export default {
} catch (error) { } catch (error) {
return '' return ''
} }
},
paymentMethod(value) {
const map = {
1: '微信扫码支付',
2: '微信小程序支付',
3: '微信JSAPI支付',
4: '微信h5支付',
11: '支付宝扫码支付',
12: '支付宝手机网站支付',
13: '支付宝网站支付'
}
return map[value] || value
} }
}, },
beforeMount() { beforeMount() {
......
...@@ -99,21 +99,21 @@ export default { ...@@ -99,21 +99,21 @@ export default {
placeholder: '付款方式', placeholder: '付款方式',
options: [ options: [
{ label: '全部', value: '' }, { label: '全部', value: '' },
{ label: '现金', value: '1' }, { label: '微信扫码支付', value: '1' },
{ label: '余额', value: '2' }, { label: '微信小程序支付', value: '2' },
{ label: '网银', value: '3' }, { label: '微信JSAPI支付', value: '3' },
{ label: '支付宝', value: '4' }, { label: '微信h5支付', value: '4' },
{ label: '微信', value: '5' }, { label: '支付宝扫码支付', value: '11' },
{ label: '微信JSAPI', value: '7' }, { label: '支付宝手机网站支付', value: '12' },
{ label: '微信H5', value: '8' } { label: '支付宝网站支付', value: '13' }
], ],
style: 'width:120px' style: 'width:180px'
} }
], ],
columns: [ columns: [
{ label: '商品', prop: 'shop_name', slots: 'table-goods', minWidth: 140 }, { label: '商品', prop: 'shop_name', slots: 'table-goods', minWidth: 140 },
{ label: '单价(元)/数量', prop: 'product_price', slots: 'table-price', align: 'right' }, { label: '单价(元)/数量', prop: 'product_price', slots: 'table-price', align: 'right' },
{ label: '订单号', prop: 'order_id' }, { label: '订单号', prop: 'order_detail_id' },
{ label: '下单时间', prop: 'create_time', width: 110 }, { label: '下单时间', prop: 'create_time', width: 110 },
{ label: '买家 / 收货人', prop: 'shipping_user', align: 'center' }, { label: '买家 / 收货人', prop: 'shipping_user', align: 'center' },
{ label: '实收金额(元)', prop: 'payment_money', align: 'center' }, { label: '实收金额(元)', prop: 'payment_money', align: 'center' },
...@@ -123,15 +123,15 @@ export default { ...@@ -123,15 +123,15 @@ export default {
align: 'center', align: 'center',
computed({ row }) { computed({ row }) {
const map = { const map = {
1: '现金', 1: '微信扫码支付',
2: '余额', 2: '微信小程序支付',
3: '网银', 3: '微信JSAPI支付',
4: '支付宝', 4: '微信h5支付',
5: '微信', 11: '支付宝扫码支付',
7: '微信JSAPI', 12: '支付宝手机网站支付',
8: '微信H5' 13: '支付宝网站支付'
} }
return map[row.payment_method] return map[row.payment_method] || row.payment_method
} }
}, },
{ {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论