Commit 112c52c8 by 李伟康

commit

1 parent 41070876
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
import { shopmallApi } from '@/api' import { shopmallApi } from '@/api'
export default { export default {
name: '', name: '',
data() { data () {
return { return {
flag: false, flag: false,
detail: {}, detail: {},
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
}, },
{ {
label: '下单日期', label: '下单日期',
format(item) { format (item) {
return new Date(item.createdDate).format('yyyy.MM.dd hh:mm') return new Date(item.createdDate).format('yyyy.MM.dd hh:mm')
} }
}, },
...@@ -101,30 +101,25 @@ export default { ...@@ -101,30 +101,25 @@ export default {
}, },
{ {
label: '订单状态', label: '订单状态',
format(item) { format (item) {
return { return {
1: '待付款', 1: '待付款',
2: '已支付', 2: '已支付',
3: '已关闭', 3: '已关闭',
4: '已发货', 4: '已发货',
5: '已收货', 5: '已收货',
6: '待审核', 6: '待发货',
7: '审核通过', 7: '待安装',
8: '审核不通过', 8: '已安装',
9: '待确认收到退货', 9: '售后中',
10: '退款中', 10: '售后完成'
11: '已退款',
12: '退款失败',
13: '待发货',
14: '待安装',
15: '已安装'
}[item.orderStatus] }[item.orderStatus]
} }
} }
] ]
} }
}, },
mounted() { mounted () {
let { verficationCode } = this.getParams() let { verficationCode } = this.getParams()
this.showLoading() this.showLoading()
shopmallApi shopmallApi
...@@ -139,7 +134,7 @@ export default { ...@@ -139,7 +134,7 @@ export default {
}) })
}, },
methods: { methods: {
submit() { submit () {
let { verficationCode } = this.getParams() let { verficationCode } = this.getParams()
this.showLoading() this.showLoading()
shopmallApi shopmallApi
......
...@@ -16,7 +16,10 @@ ...@@ -16,7 +16,10 @@
<div class="item item-3"></div> <div class="item item-3"></div>
<div class="item item-4"></div> <div class="item item-4"></div>
</div> </div>
<div class="btn x-center text-center" @click="showShareModel()">一键分享</div> <div
class="btn x-center text-center"
@click="showShareModel()"
>一键分享</div>
</div> </div>
</template> </template>
<template v-else> <template v-else>
...@@ -28,7 +31,7 @@ ...@@ -28,7 +31,7 @@
ref="scrollView" ref="scrollView"
> >
<div :class="[`type-${tabIndex - 1}`]"> <div :class="[`type-${tabIndex - 1}`]">
<template v-for="(i,index) in list"> <template v-for="(i, index) in list">
<div <div
:key="index" :key="index"
class="item" class="item"
...@@ -37,15 +40,13 @@ ...@@ -37,15 +40,13 @@
<div class="sprite-icon icon-vip"></div> <div class="sprite-icon icon-vip"></div>
<div class="info"> <div class="info">
<div> <div>
<div class="title text-hide">{{i.packageName}}</div> <div class="title text-hide">{{ i.packageName }}</div>
<div class="decoration">价值{{i.totalMerchantPrice}}元的{{i.list.length || 0}}项权益</div> <div class="decoration">价值{{ i.totalMerchantPrice }}元的{{ i.list.length || 0 }}项权益</div>
</div> </div>
<div <div
class="btn text-center" class="btn text-center"
@click="showVipDialog(i)" @click="showVipDialog(i)"
> >查看套餐</div>
查看套餐
</div>
</div> </div>
<div <div
class="btn text-center y-center" class="btn text-center y-center"
...@@ -58,13 +59,13 @@ ...@@ -58,13 +59,13 @@
class="goods" class="goods"
> >
<div class="icon"> <div class="icon">
<img :src="i.goodsImage || ''"> <img :src="i.goodsImage || ''" />
</div> </div>
<div class="info"> <div class="info">
<div class="name text-two-line">{{i.goodsName}}</div> <div class="name text-two-line">{{ i.goodsName }}</div>
<div class="stock">库存:{{i.goodsStock}}</div> <div class="stock">库存:{{ i.goodsStock }}</div>
<template v-if="i.price"> <template v-if="i.price">
<div class="price">¥{{i.price.toFixed(2)}}</div> <div class="price">¥{{ i.price.toFixed(2) }}</div>
</template> </template>
<div class="btn text-center">分享给客户</div> <div class="btn text-center">分享给客户</div>
</div> </div>
...@@ -92,14 +93,14 @@ ...@@ -92,14 +93,14 @@
</div> </div>
</template> </template>
<script type='text/ecmascript-6'> <script type="text/ecmascript-6">
import { shareMixin, pageMixin } from '@/mixins' import { shareMixin, pageMixin } from '@/mixins'
import { shopmallApi, equityApi } from '@/api' import { shopmallApi, equityApi } from '@/api'
const tabList = ['我的店铺', '会员套餐', '门店商品'] const tabList = ['我的店铺', '会员套餐', '门店商品']
export default { export default {
name: 'merchant', name: 'merchant',
mixins: [shareMixin, pageMixin], mixins: [shareMixin, pageMixin],
data() { data () {
return { return {
showVip: false, showVip: false,
equity_id: null, equity_id: null,
...@@ -107,11 +108,11 @@ export default { ...@@ -107,11 +108,11 @@ export default {
} }
}, },
methods: { methods: {
getList_0() { getList_0 () {
this.flag = true this.flag = true
this.hideLoading() this.hideLoading()
}, },
getList_1(pageNum) { getList_1 (pageNum) {
let { list } = this let { list } = this
equityApi.getEquityList({ pageNum }).then(res => { equityApi.getEquityList({ pageNum }).then(res => {
this.flag = true this.flag = true
...@@ -120,7 +121,7 @@ export default { ...@@ -120,7 +121,7 @@ export default {
this.hideLoading() this.hideLoading()
}) })
}, },
getList_2(pageNum) { getList_2 (pageNum) {
let { list } = this let { list } = this
shopmallApi.getGoodsList({ currentPage: pageNum }).then(res => { shopmallApi.getGoodsList({ currentPage: pageNum }).then(res => {
this.flag = true this.flag = true
...@@ -129,7 +130,7 @@ export default { ...@@ -129,7 +130,7 @@ export default {
this.hideLoading() this.hideLoading()
}) })
}, },
showVipDialog(i) { showVipDialog (i) {
this.showVip = true this.showVip = true
this.equity_id = i.id this.equity_id = i.id
} }
...@@ -137,7 +138,7 @@ export default { ...@@ -137,7 +138,7 @@ export default {
} }
</script> </script>
<style scoped lang='scss'> <style scoped lang="scss">
.list-box { .list-box {
height: calc(100vh - 100px); height: calc(100vh - 100px);
.item { .item {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!