Commit 5a559dff by 前端

fixed

1 parent 28041436
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-10-10 09:34:38
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-10-10 10:26:53
* @FilePath: \scrm-micro-provider\public\index.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">
<head>
......
......@@ -3,8 +3,8 @@
* @version:
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-10-17 17:25:11
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-10-31 21:13:27
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
......@@ -18,7 +18,8 @@ export const fetchConfig = function(isEnv = true) {
// return Promise.resolve(cfg)
// }
//return window.fetch('https://', {}).then(res => res.json())
return new Http().get('https://oss-config.dev.glsx.com.cn/mock/634d1efe02322627d6b83e86/provider/config')
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/634d1efe02322627d6b83e86/provider/config')
return new Http().get('https://oss-config.glsx.com.cn/mock/635fc5e854298ae786144077/provider/config')
}
export const config = {
install(vue, cfg) {
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-10-10 10:56:40
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-10-25 10:21:06
* @LastEditTime: 2022-10-31 15:53:21
* @FilePath: \scrm-micro-provider\src\views\home\components\activityList.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -20,12 +20,12 @@
</GLTable>
<GLDialog title="已开通业务" :hasFooter="false" :visible.sync="detailVisible">
<div class="dialog-body-panel" v-for="(item, index) in productList" :key="index">
<template v-if="item.stage != '12个月以上'">
<template v-if="item.sceneCode != 'SC004'">
<div class="dialog-body-title">{{ item.stage }}:</div>
<div class="dialog-body-content" v-for="act in item.list" :key="act.productCode">{{ act.productName }}</div>
</template>
<template v-else>
<div class="dialog-body-title">12个月以上:</div>
<div class="dialog-body-title">{{ item.stage }}:</div>
<div class="dialog-body-activity" v-for="act in item.list" :key="act.productCode">
<div class="activity-row">
<div class="activity-item">活动名称:{{ act.productName }}</div>
......@@ -200,12 +200,15 @@ export default {
color: #333333;
margin-bottom: 10px;
}
.dialog-body-panel {
margin-bottom: 20px;
}
.dialog-body-content {
height: 44px;
line-height: 44px;
background: #f9f9f9;
padding-left: 16px;
margin-bottom: 20px;
margin-bottom: 10px;
}
.dialog-body-activity {
background: #f9f9f9;
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-10-10 10:56:40
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-10-24 14:37:09
* @LastEditTime: 2022-11-01 18:04:39
* @FilePath: \scrm-micro-provider\src\views\home\components\activityList.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -67,7 +67,7 @@
</GLDialog>
</template>
<script>
const stageText = ['12个月以上', '新车洽谈场景']
const stageText = ['SC001', 'SC004'] //SC001/SC004
const numText = ['一', '二', '三', '四', '五']
export default {
name: 'activityOpen',
......@@ -102,10 +102,11 @@ export default {
this.productCode = ''
this.activity = {}
const sceneList = this.sceneList.length && this.sceneList.find(item => item.sceneCode == value)
if (!sceneList) return
this.createTime = []
this.productList = sceneList.productList || []
this.stage = sceneList.stage
this.activityStatus = sceneList.stage == '12个月以上'
this.stage = sceneList.sceneCode
this.activityStatus = sceneList.sceneCode == 'SC004'
}
},
methods: {
......@@ -163,6 +164,7 @@ export default {
}
this.$apis.application.activityConfirm(params).then(res => {
if (res) {
this.$message.success('操作成功')
this.openVisible = false
this.$parent.handleSearch()
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!