Commit eceb8d0e by wuwx

营销sop,群发助手埋点,会员套餐退款样式开发,商品管理新增删除按钮

1 parent 49c192d5
......@@ -18,9 +18,9 @@ module.exports = {
code_message_map: {}
},
request: {
baseURL: 'http://scrm.test.glsx.com.cn/',
// baseURL: 'http://scrm.test.glsx.com.cn/',
// baseURL: 'http://192.168.2.42:8064/',
// baseURL: 'http://scrm.dev.glsx.com.cn/',
baseURL: 'http://scrm.dev.glsx.com.cn/',
// 设置超时时间
timeout: 180000,
// 携带凭证
......
......@@ -19,9 +19,9 @@ export const fetchConfig = function (isEnv = true) {
// }
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
return new Http().get('https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
// return new Http().get('https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
// return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('http://config-center-backend.test.glsx.com/glsxAdmin/config?moduleUrl=marketing').then(res => res.data)
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
return new Http().get('https://oss-config.dev.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
}
export const config = {
install(vue, cfg) {
......
......@@ -38,6 +38,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$http_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
Vue.prototype.$http_xiaolong = new common.Http({ response, request: xiaolong_req, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$tracker = common.tracker
// const myToken = 'scrm-base-107ee03c-1214-48c3-a443-a2332e553b2f-rop'
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: myToken } })
// Vue.prototype.$http2 = new common.Http({ response, request: request2, sign, secret, alert: message.error, headers: { token: myToken } })
......
......@@ -462,6 +462,7 @@ export default {
type: 'success',
message: '操作成功!'
})
this.$tracker.track(Object.assign({},{name:'新建客户群发',params}))
} else {
this.$message({
type: 'error',
......
......@@ -336,6 +336,7 @@ export default {
message: '操作成功!'
})
// this.$router.push('/customerTransform/index')
this.$tracker.track(Object.assign({},{name:'新建客户群群发',params}))
} else {
this.$message({
type: 'error',
......
......@@ -67,7 +67,15 @@
</span>
</GLTable>
</div>
<glsx-dialog class="refund-fill-box" :width="'720px'" title="退款确认" :isVisible="refundVisible" @confirmDialog="refundConfirmDialog" @closeDialog="refundVisible = false" :isShowCloseBtn="true">
<glsx-dialog class="refund-fill-boxss" v-if="isShow" :width="'576px'" title="提示" :show-close="true" :isVisible="refundVisible" @confirmDialog="refundVisible = false" @closeDialog="refundVisible = false" :noCancel="true">
<div class="dialog-refund">
<img class="img" src="../../images/warn.png" />
<div>该会员在升级黑卡会员期间,已购买过生活权益</div>
<div style="color: #FF4D4F;padding: 6px 0;">(时间:2022-07-07 12:34:34 金额:29.3元)</div>
<div>暂不支持退款</div>
</div>
</glsx-dialog>
<glsx-dialog class="refund-fill-box" v-else :width="'720px'" title="退款确认" :isVisible="refundVisible" @confirmDialog="refundConfirmDialog" @closeDialog="refundVisible = false" :isShowCloseBtn="true">
<div class="dialog-form">
<label>说明:</label>
<el-input v-model.trim="refund" type="textarea" :rows="3" placeholder="请输入退款说明"></el-input>
......@@ -83,6 +91,7 @@ import { getOrderListApi, orderExportApi, orderRefund } from '@/api/modules/orde
export default {
data() {
return {
isShow:false,
orderCode: '',
refund: '',
refundVisible: false,
......@@ -353,6 +362,8 @@ export default {
this.orderCode = data.orderCode
this.refund = ''
this.refundVisible = !this.refundVisible
console.log('123',data);
this.isShow = data.packageType != 1
},
refundConfirmDialog() {
if (this.refund == '') {
......@@ -473,4 +484,22 @@ export default {
}
}
}
.refund-fill-boxss {
height: 320px;
.dialog-refund {
box-sizing: border-box;
display: flex;
align-items: center;
flex-direction: column;
padding-bottom: 19px;
img {
width: 32px;
height: 32px;
padding-bottom: 12px;
}
}
::v-deep .el-dialog__footer {
text-align: center;
}
}
</style>
......@@ -142,6 +142,20 @@ export default {
}
},
{
type: 'GLButton',
name: '删除',
attrs: {
type: 'text',
fn: '删除'
},
condition: row => {
return !row.goodsStatus
},
listeners: {
// click: row => this.handleEdit(3, row)
}
},
{
type: 'el-button',
name: '分享',
attrs: {
......
......@@ -214,6 +214,20 @@ export default {
}
},
{
type: 'GLButton',
name: '删除',
attrs: {
type: 'text',
fn: '删除'
},
condition: row => {
return !row.goodsStatus
},
listeners: {
// click: row => this.handleEdit(3, row)
}
},
{
type: 'el-button',
name: '分享',
attrs: {
......
......@@ -785,6 +785,7 @@ export default {
message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
this.$tracker.track(Object.assign({},{name:'编辑sop事件',params}))
if (res.code == '0') {
this.cancelJump()
}
......@@ -797,6 +798,7 @@ export default {
message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
this.$tracker.track(Object.assign({},{name:'创建sop事件',params}))
if (res.code == '0') {
this.cancelJump()
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!