Commit 88517f95 by 前端

Merge branch 'xuyl_dev_v2.11.0' into 'v2.11.0'

Xuyl dev v2.11.0

See merge request !24
2 parents 4129f149 f16b452e
import { http } from '@/main'
const path = 'entmicro.api.mass.'
const URL = 'rop-scrm-entmicro/router'
//权益卡
const getCard = params => {
params.method = 'scrm.api.equity.open.card.price.list.by.merchantid'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
//权益卡
const merchant = params => {
params.method = 'scrm.api.equity.open.card.price.list.by.merchantid'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
//是否开通权益
const merchantOpen = params => {
params.method = 'scrm.api.equity.service.merchant.config.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
//优惠券
const getCoupon = params => {
params.method = 'scrm.api.boutiquecoupon.coupon.page'
return http({
url: '/rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
//套餐
const getPackage = params => {
params.method = 'scrm.api.equity.package.info.list.with.page'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const getMerchant = params => {
params.method = 'scrm.api.coupon.list.merchant'
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true
})
}
//秒杀活动
const getActivity = params => {
params.method = 'scrm.api.shopmall.activity.page'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取素材组列表
const getGroupListApi = params => {
params.method = 'marketing.api.material.group.list'
return http({
url: 'rop-scrm-marketing/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取素材列表
const getMaterialListApi = params => {
// params.method = 'marketing.api.material.page'
params.method = 'marketing.api.material.sop.page'
return http({
url: 'rop-scrm-marketing/router',
method: 'POST',
data: params,
sign: true
})
}
// 众筹模式活动
const crowdfundingActivity = params => {
params.method = 'scrm.api.shopmall.crowdfunding.activity.page'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
//模板列表
const templatePage = params => {
params.method = `${path}template.page.search`
return http({
url: URL,
method: 'POST',
data: params,
sign: true
})
}
//模板保存
const templateSave = params => {
params.method = `${path}template.save`
return http({
url: URL,
method: 'POST',
data: params,
sign: true
})
}
//模板更新
const templateUpdate = params => {
params.method = `${path}template.update`
return http({
url: URL,
method: 'POST',
data: params,
sign: true
})
}
//模板创建人
const createdNameList = params => {
params.method = `${path}template.created.name.list`
return http({
url: URL,
method: 'POST',
data: params,
sign: true
})
}
export default {
getCard,
merchant,
getActivity,
getPackage,
getMerchant,
getCoupon,
merchantOpen,
getGroupListApi,
getMaterialListApi,
templatePage,
createdNameList,
templateUpdate,
templateSave,
crowdfundingActivity
}
......@@ -147,7 +147,7 @@ export default {
})
},
verifyQRCodeIsInvalid() {
this.qrCodeInterval = setInterval(() => {
this.qrCodeInterval = setTimeout(() => {
this.$apis.collocation.getQcCodeDetail({ id: this.qrcodeId }).then(res => {
if (res == true) {
this.$message({
......@@ -155,7 +155,7 @@ export default {
message: '二维码已失效,请刷新'
})
this.verifyQRCodeFailsToOpen = false
clearInterval(this.qrCodeInterval)
clearTimeout(this.qrCodeInterval)
return
}
})
......@@ -176,7 +176,7 @@ export default {
if (val.qrCodeVisible == true && val.verifyQRCodeFailsToOpen == true) {
this.verifyQRCodeIsInvalid()
} else {
clearInterval(this.qrCodeInterval)
clearTimeout(this.qrCodeInterval)
}
}
}
......@@ -184,6 +184,9 @@ export default {
</script>
<style lang="scss" scoped>
.el-table--border .el-table__cell:first-child .cell, .el-table .cell{
padding-right: 10px;
}
.container {
padding: 20px;
background-color: #fff;
......
......@@ -125,27 +125,32 @@ export default {
tableColumns: [
{
label: '群发名称',
prop: 'msgName'
prop: 'msgName',
width: 170,
line: 1
},
{
label: '群发门店',
prop: 'msgMerchant'
prop: 'msgMerchant',
width: 170,
line: 1
},
{
label: '客户数',
prop: 'customerCount'
prop: 'customerCount',
width: 80
},
{
label: '标签/人群',
prop: 'labelCrowdName',
width: 170,
width: 220,
line: 1
},
{
label: '创建时间',
prop: 'createTime',
width: 170,
line:1
width: 300,
line: 1
},
{
label: '发送状态',
......@@ -154,13 +159,11 @@ export default {
},
{
label: '发送成功',
prop: 'successCompletion',
width: '200'
prop: 'successCompletion'
},
{
label: '发送失败',
prop: 'failCompletion',
width: '200'
prop: 'failCompletion'
},
{
label: '操作',
......@@ -224,6 +227,9 @@ export default {
</script>
<style lang="scss" scoped>
.el-table--border .el-table__cell:first-child .cell, .el-table .cell{
padding-right: 10px;
}
.loginStatus {
display: flex;
align-items: center;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!