Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-link
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5aa352da
authored
Jan 17, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.4.0' into 'master'
V3.4.0 See merge request
!1
2 parents
2557a7eb
602abfeb
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
77 additions
and
16 deletions
src/common/constant.js
src/config/index.js
src/main.js
src/views/activityLink/components/selectGiftDialog.vue
src/views/activityLink/editActivity.vue
src/views/activityLink/index.vue
src/views/activityOrder/index.vue
src/common/constant.js
View file @
5aa352d
...
@@ -248,6 +248,10 @@ const subscribe = [
...
@@ -248,6 +248,10 @@ const subscribe = [
optionLabel
:
'道路救援'
optionLabel
:
'道路救援'
},
},
{
{
optionId
:
2
,
optionLabel
:
'定保招揽'
},
{
optionId
:
3
,
optionId
:
3
,
optionLabel
:
'其他'
optionLabel
:
'其他'
}
}
...
...
src/config/index.js
View file @
5aa352d
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: limin
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @Date: 2021-06-07 14:12:32
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 202
2-11-23 17:38:30
* @LastEditTime: 202
3-01-13 17:59:21
*/
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
// let request = require('@/http/request.js')
...
@@ -21,7 +21,8 @@ export const fetchConfig = function(isEnv = true) {
...
@@ -21,7 +21,8 @@ export const fetchConfig = function(isEnv = true) {
//return window.fetch('https://', {}).then(res => res.json())
//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' })
// 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/6351298f6a118b4ff787ef2b/live/config')
// return new Http().get('https://oss-config.test.glsx.com.cn/mock/6351298f6a118b4ff787ef2b/live/config')
return
new
Http
().
get
(
'https://oss-config.dev.glsx.com.cn/mock/63a541ae2019ec5113826ea3/link/config'
)
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/63a541ae2019ec5113826ea3/link/config')
return
new
Http
().
get
(
'https://oss-config.glsx.com.cn/mock/63c12a2e28a427953783403b/link/config'
)
}
}
export
const
config
=
{
export
const
config
=
{
install
(
vue
,
cfg
)
{
install
(
vue
,
cfg
)
{
...
...
src/main.js
View file @
5aa352d
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
* @version: 1.0.0
* @version: 1.0.0
* @Author: limin
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @Date: 2021-08-13 14:12:11
* @LastEditors:
前端 qianduan01
@didihu.com.cn
* @LastEditors:
yangming yangming
@didihu.com.cn
* @LastEditTime: 2023-01-0
1 15:35:16
* @LastEditTime: 2023-01-0
5 11:27:53
* @FilePath: \scrm\scrm-sub-blog\src\main.js
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
*/
import
Vue
from
'vue'
import
Vue
from
'vue'
...
@@ -22,7 +22,7 @@ try {
...
@@ -22,7 +22,7 @@ try {
const
loginpath
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'SCRM_BASE_SESSION'
))?.
loginpath
const
loginpath
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'SCRM_BASE_SESSION'
))?.
loginpath
if
(
loginpath
==
'/oss'
)
Vue
.
prototype
.
loginpath
=
true
if
(
loginpath
==
'/oss'
)
Vue
.
prototype
.
loginpath
=
true
}
catch
(
e
)
{
}
catch
(
e
)
{
throw
e
console
.
log
(
e
)
}
}
start
()
start
()
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
...
...
src/views/activityLink/components/selectGiftDialog.vue
View file @
5aa352d
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
<div
slot=
"content"
>
{{
subItem
.
couponName
}}
</div>
<div
slot=
"content"
>
{{
subItem
.
couponName
}}
</div>
</el-tooltip>
</el-tooltip>
<div
class=
"gift-sum"
>
<div
class=
"gift-sum"
>
<el-input-number
:disabled=
"subItem.status == '3'"
class=
"sum-input"
v-model=
"subItem.couponAmount"
@
change=
"handleChange"
:min=
"1"
:max=
"
subItem.residueAmount
"
size=
"mini"
label=
"描述文字"
></el-input-number>
<el-input-number
:disabled=
"subItem.status == '3'"
class=
"sum-input"
v-model=
"subItem.couponAmount"
@
change=
"handleChange"
:min=
"1"
:max=
"
9999
"
size=
"mini"
label=
"描述文字"
></el-input-number>
<!--
<p
:class=
"[subItem.status == '3' ? ' txt-grey' : '']"
v-else
>
×
{{
subItem
.
couponAmount
}}
</p>
-->
<!--
<p
:class=
"[subItem.status == '3' ? ' txt-grey' : '']"
v-else
>
×
{{
subItem
.
couponAmount
}}
</p>
-->
</div>
</div>
</div>
</div>
...
...
src/views/activityLink/editActivity.vue
View file @
5aa352d
...
@@ -362,7 +362,7 @@ export default {
...
@@ -362,7 +362,7 @@ export default {
orderShow
,
orderShow
,
choseItemList
:
[],
choseItemList
:
[],
selectedMealList
:
[],
selectedMealList
:
[],
couponObj
,
couponObj
:
JSON
.
parse
(
JSON
.
stringify
(
couponObj
))
,
numToCoupon
,
numToCoupon
,
isSelectGiftVisible
:
false
,
isSelectGiftVisible
:
false
,
routeInfo
:
{
routeInfo
:
{
...
@@ -598,6 +598,10 @@ export default {
...
@@ -598,6 +598,10 @@ export default {
optionLabel
:
'道路救援'
optionLabel
:
'道路救援'
},
},
{
{
optionId
:
2
,
optionLabel
:
'定保招揽'
},
{
optionId
:
3
,
optionId
:
3
,
optionLabel
:
'其他'
optionLabel
:
'其他'
}
}
...
@@ -1229,8 +1233,12 @@ export default {
...
@@ -1229,8 +1233,12 @@ export default {
this
.
maxStock
=
9999
this
.
maxStock
=
9999
this
.
orderShow
.
forEach
(
item
=>
{
this
.
orderShow
.
forEach
(
item
=>
{
this
.
couponObj
[
item
].
list
.
forEach
(
subItem
=>
{
this
.
couponObj
[
item
].
list
.
forEach
(
subItem
=>
{
const
mult
=
Math
.
floor
(
subItem
.
residueAmount
/
subItem
.
couponAmount
)
let
mult
console
.
log
(
mult
)
if
(
!
subItem
.
residueAmount
)
{
mult
=
9999
}
else
{
mult
=
Math
.
floor
(
subItem
.
residueAmount
/
subItem
.
couponAmount
)
}
this
.
maxStock
=
this
.
maxStock
<
mult
?
this
.
maxStock
:
mult
this
.
maxStock
=
this
.
maxStock
<
mult
?
this
.
maxStock
:
mult
// 失效券不加入预估成本
// 失效券不加入预估成本
if
(
subItem
.
status
!=
'3'
)
{
if
(
subItem
.
status
!=
'3'
)
{
...
@@ -1647,7 +1655,7 @@ export default {
...
@@ -1647,7 +1655,7 @@ export default {
this
.
handleMusicChange
(
this
.
musicList
.
length
-
1
)
this
.
handleMusicChange
(
this
.
musicList
.
length
-
1
)
}
}
}
}
info
.
couponList
.
forEach
(
item
=>
{
this
.
editForm
.
couponList
.
forEach
(
item
=>
{
item
.
id
=
item
.
couponId
item
.
id
=
item
.
couponId
item
.
anticipatedCost
=
item
.
couponAnticipatedCost
item
.
anticipatedCost
=
item
.
couponAnticipatedCost
})
})
...
...
src/views/activityLink/index.vue
View file @
5aa352d
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleEdit('add')"
v-if=
"loginpath"
>
创建活动链接
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleEdit('add')"
v-if=
"loginpath"
>
创建活动链接
</el-button>
</div>
</div>
<GLTable
ref=
"classifyRef"
:getListApi=
"getListApi"
:hasNum=
"false"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"classifyRef"
:getListApi=
"getListApi"
:hasNum=
"false"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"giftInfo"
slot-scope=
"scope"
>
<div
class=
"sub-tabel"
slot=
"giftInfo"
slot-scope=
"scope"
>
<div
class=
"gift-detail flex-wrap"
>
<div
class=
"gift-detail flex-wrap"
>
<div
class=
"gift-item"
v-for=
"(item, index) in scope.scope.couponList"
:key=
"index"
>
<div
class=
"gift-item"
v-for=
"(item, index) in scope.scope.couponList"
:key=
"index"
>
<img
:src=
"require(`@/assets/coupon/icon-$
{attrToIcon[item.discountType]}.png`)" />
<img
:src=
"require(`@/assets/coupon/icon-$
{attrToIcon[item.discountType]}.png`)" />
...
@@ -144,14 +144,14 @@ export default {
...
@@ -144,14 +144,14 @@ export default {
label
:
'业务场景'
,
label
:
'业务场景'
,
prop
:
'businessType'
,
prop
:
'businessType'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
businessType
.
find
(
item
=>
item
.
optionId
==
cellValue
.
subscribe
)
.
optionLabel
return
businessType
.
find
(
item
=>
item
.
optionId
==
cellValue
.
businessType
)?
.
optionLabel
}
}
},
},
{
{
label
:
'所属订阅'
,
label
:
'所属订阅'
,
prop
:
'subscribe'
,
prop
:
'subscribe'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
subscribe
.
find
(
item
=>
item
.
optionId
==
cellValue
.
subscribe
).
optionLabel
return
subscribe
.
find
(
item
=>
item
.
optionId
==
cellValue
.
subscribe
)
?
.
optionLabel
}
}
},
},
{
{
...
@@ -478,6 +478,50 @@ export default {
...
@@ -478,6 +478,50 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.link-main
{
/deep/
{
.expanded
{
&
+
tr
:
hover
td
{
background
:
none
!important
;
}
}
.el-table__expand-icon
{
width
:
14px
;
height
:
14px
;
background
:
rgba
(
88
,
80
,
255
,
0.3
);
border-radius
:
2px
;
position
:
relative
;
&.el-table__expand-icon--expanded
{
transform
:
rotate
(
0deg
);
}
&
::after
{
top
:
-2px
;
left
:
0px
;
content
:
'+'
;
position
:
absolute
;
color
:
#5850ff
;
width
:
14px
;
height
:
14px
;
font-size
:
14px
;
}
i
{
display
:
none
;
}
&
.el-table__expand-icon--expanded
{
&::after
{
top
:
-2px
;
left
:
0px
;
content
:
'-'
;
position
:
absolute
;
color
:
#5850ff
;
width
:
14px
;
height
:
14px
;
font-size
:
14px
;
}
}
}
}
}
.live-table-header
{
.live-table-header
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
...
...
src/views/activityOrder/index.vue
View file @
5aa352d
...
@@ -192,6 +192,7 @@ export default {
...
@@ -192,6 +192,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
isFirst
:
true
,
isStaffVisible
:
false
,
isStaffVisible
:
false
,
size
:
'small'
,
size
:
'small'
,
url
:
url
,
url
:
url
,
...
@@ -617,12 +618,15 @@ export default {
...
@@ -617,12 +618,15 @@ export default {
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
const
{
activityId
,
createdStartDateStr
,
createdEndDateStr
}
=
this
.
$route
.
query
const
{
activityId
,
createdStartDateStr
,
createdEndDateStr
}
=
this
.
$route
.
query
if
(
activityId
)
{
if
(
activityId
&&
this
.
isFirst
)
{
this
.
searchForm
.
createDate
=
createdStartDateStr
?
[
new
Date
(
createdStartDateStr
),
new
Date
(
createdEndDateStr
)]
:
[]
this
.
searchForm
.
createDate
=
createdStartDateStr
?
[
new
Date
(
createdStartDateStr
),
new
Date
(
createdEndDateStr
)]
:
this
.
searchForm
.
createDate
this
.
searchForm
.
activityId
=
activityId
this
.
searchForm
.
activityId
=
activityId
}
else
{
this
.
searchForm
.
activityId
=
''
}
}
this
.
isFirst
=
false
this
.
tableSearchForm
=
this
.
getParams
()
this
.
tableSearchForm
=
this
.
getParams
()
delete
this
.
tableSearchForm
.
createDate
//
delete this.tableSearchForm.createDate
resolve
()
resolve
()
})
})
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment