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 e5dd2faf
authored
Apr 21, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
f8126101
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
9 deletions
src/common/constant.js
src/config/index.js
src/main.js
src/setup/qiankun.js
src/views/activityOrder/index.vue
src/common/constant.js
View file @
e5dd2fa
...
...
@@ -272,6 +272,12 @@ const giftPackage = [
{
id
:
3
,
name
:
'送(券包礼)'
},
{
id
:
4
,
name
:
'约(膨胀礼)'
}
]
const
equityLevel
=
{
PC0036
:
'合资车1500元权益套餐'
,
PC0037
:
'合资车1980元权益套餐'
,
PC0038
:
'豪华车1800元权益套餐'
,
PC0039
:
'豪华车2580元权益套餐'
}
function
setMinHeight
(
calssName
=
'.edit-container'
)
{
let
height
=
document
.
querySelector
(
'.header-wrap'
).
clientHeight
+
110
+
'px'
let
minHeight
=
'calc(100vh - '
+
height
+
')'
...
...
@@ -293,4 +299,4 @@ function isShowBtn(value) {
}
return
isShowStatus
}
export
{
isShowBtn
,
subscribe
,
giftPackage
,
limitPrice
,
getExplorer
,
exportFn
,
aToExport
,
downloadIamge
,
businessType
,
orderStatus
,
orderManageStatusList
,
afterSaleStatusList
,
orderSourceList
,
deliveryTypeList
,
statusList
,
serviceStatusList
,
memberTypeList
,
stateList
,
orderTypesList
,
orderStatusList
,
setMinHeight
}
export
{
equityLevel
,
isShowBtn
,
subscribe
,
giftPackage
,
limitPrice
,
getExplorer
,
exportFn
,
aToExport
,
downloadIamge
,
businessType
,
orderStatus
,
orderManageStatusList
,
afterSaleStatusList
,
orderSourceList
,
deliveryTypeList
,
statusList
,
serviceStatusList
,
memberTypeList
,
stateList
,
orderTypesList
,
orderStatusList
,
setMinHeight
}
src/config/index.js
View file @
e5dd2fa
...
...
@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-04-
14 10:46:34
* @LastEditTime: 2023-04-
21 14:24:35
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
...
...
@@ -21,8 +21,8 @@ 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/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.glsx.com.cn/mock/63c12a2e28a427953783403b/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
=
{
install
(
vue
,
cfg
)
{
...
...
src/main.js
View file @
e5dd2fa
...
...
@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-04-
06 10:48:09
* @LastEditTime: 2023-04-
21 14:25:28
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
import
Vue
from
'vue'
...
...
@@ -21,7 +21,7 @@ Vue.prototype.defaultLabelWidth = '154px'
Vue
.
prototype
.
staticImgUrl
=
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/'
try
{
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
)
{
console
.
log
(
e
)
}
...
...
src/setup/qiankun.js
View file @
e5dd2fa
...
...
@@ -27,8 +27,8 @@ export async function bootstrap({ history, common, messenger, globalState }) {
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'scrm-base-50eefe1d-bbea-489a-91cc-997d38d3b833-rop'
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
'scrm-base-50eefe1d-bbea-489a-91cc-997d38d3b833-rop'
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
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.$setGlobalState = globalState.actions.setGlobalState
Vue
.
use
(
GLButton
,
{
permissions
:
globalState
.
permissions
||
[
'1-1-1-1'
,
'2-1-1-1'
,
'3-1-1-1'
]
})
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
...
...
src/views/activityOrder/index.vue
View file @
e5dd2fa
...
...
@@ -183,7 +183,7 @@ import * as dayjs from 'dayjs'
import
url
from
'@/assets/empty.png'
import
{
utils
}
from
'glsx-common'
import
selectStaff
from
'./components/selectStaff.vue'
import
{
businessType
,
orderManageStatusList
,
afterSaleStatusList
,
orderSourceList
,
deliveryTypeList
,
exportFn
}
from
'@/common/constant'
import
{
businessType
,
orderManageStatusList
,
afterSaleStatusList
,
orderSourceList
,
deliveryTypeList
,
exportFn
,
equityLevel
}
from
'@/common/constant'
export
default
{
name
:
'orderManage'
,
components
:
{
...
...
@@ -500,6 +500,14 @@ export default {
}
},
{
label
:
'权益单次'
,
prop
:
'equityLevel'
,
width
:
160
,
formatter
:
cellValue
=>
{
return
equityLevel
[
cellValue
.
equityLevel
]
||
'-'
}
},
{
label
:
'支付时间'
,
prop
:
'payDate'
,
width
:
'180'
,
...
...
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