[FIX]【商品商城】转发记录-修改转发时间字段;增加加载中覆盖弹窗

This commit is contained in:
yuweiqi
2020-06-19 13:45:00 +08:00
parent 93c0ff6572
commit 9f01e682da
4 changed files with 23 additions and 15 deletions

View File

@@ -65,9 +65,13 @@ let survey = [
let manpower = [
'/customer/answer/queryList' //DISC性格分析
]
let productStore = [
'/customer/shop/getShopList', //获取商城列表/详情
'/customer/shop/getShareList' //查询分享轨迹(转发记录)
]
// 卡单
let cardList = []
let whiteList = ['/customer/agent/getCustomersList', ...proposal, ...sale, ...agentEnter, ...claims, ...survey, ...manpower]
let whiteList = ['/customer/agent/getCustomersList', ...proposal, ...sale, ...agentEnter, ...claims, ...survey, ...manpower, ...productStore]
// 创建axios实例
const service = axios.create({

View File

@@ -4,9 +4,9 @@
<van-sticky>
<div class="top-table" sticky>
<van-row type="flex" align="center">
<van-col class="order" span="6">序号</van-col>
<van-col class="subTime" span="12">转发时间</van-col>
<van-col class="name" span="6">打开次数</van-col>
<van-col class="order" span="5">序号</van-col>
<van-col class="subTime" span="14">转发时间</van-col>
<van-col class="name" span="5">打开次数</van-col>
</van-row>
</div>
</van-sticky>
@@ -23,9 +23,9 @@
<div v-if="answerList.length > 0" class="pb80">
<div class="main-table" v-for="(item, index) in answerList" :key="index">
<van-row type="flex" align="center">
<van-col class="order" span="6">{{ index + 1 }}</van-col>
<van-col class="subTime" span="12">{{ item.shareTime | format }}</van-col>
<van-col class="name" span="6">{{ item.enterCount }}</van-col>
<van-col class="order" span="5">{{ index + 1 }}</van-col>
<van-col class="subTime" span="14">{{ item.createTime }}</van-col>
<van-col class="name" span="5">{{ item.enterCount }}</van-col>
</van-row>
</div>
</div>
@@ -84,6 +84,7 @@ export default {
mallId: this.mallId
}
getShareList(params).then(res => {
this.$toast.clear()
if (res.result == '0') {
this.isSuccess = true
this.currentPage++
@@ -117,15 +118,15 @@ export default {
}
})
}
},
filters: {
format: function(shareTime) {
if (shareTime) {
shareTime = shareTime.substr(0, 10)
}
return shareTime
}
}
// filters: {
// format: function(shareTime) {
// if (shareTime) {
// shareTime = shareTime.substr(0, 10)
// }
// return shareTime
// }
// }
}
</script>

View File

@@ -81,8 +81,10 @@ export default {
//获取商城详情
getShopList(data) {
getShopList(data).then(res => {
this.$toast.clear()
if (res.result == '0') {
this.detail = res.content[0]
this.isCanCheck = false
} else {
this.$toast(res.resultMessage)
}

View File

@@ -35,6 +35,7 @@ export default {
//获取商品商城列表
getShopList() {
getShopList({}).then(res => {
this.$toast.clear()
if (res.result == '0') {
this.list = res.content
} else {