Commit 112c52c8 by 李伟康

commit

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