[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 = [ let manpower = [
'/customer/answer/queryList' //DISC性格分析 '/customer/answer/queryList' //DISC性格分析
] ]
let productStore = [
'/customer/shop/getShopList', //获取商城列表/详情
'/customer/shop/getShareList' //查询分享轨迹(转发记录)
]
// 卡单 // 卡单
let cardList = [] 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实例 // 创建axios实例
const service = axios.create({ const service = axios.create({

View File

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

View File

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

View File

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