Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-insurance
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.frontend
pica-insurance
提交
0c5ef261
提交
0c5ef261
编写于
1月 08, 2024
作者:
zhongyao.qiao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat 三要素迁移
上级
4eaff480
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
327 行增加
和
74 行删除
+327
-74
.eslintrc.js
.eslintrc.js
+93
-70
index.js
src/router/index.js
+15
-4
index2.vue
src/views/sz-public-new/index2.vue
+219
-0
未找到文件。
.eslintrc.js
浏览文件 @
0c5ef261
...
@@ -2,7 +2,7 @@ module.exports = {
...
@@ -2,7 +2,7 @@ module.exports = {
root
:
true
,
root
:
true
,
parserOptions
:
{
parserOptions
:
{
parser
:
'babel-eslint'
,
parser
:
'babel-eslint'
,
sourceType
:
'module'
sourceType
:
'module'
,
},
},
env
:
{
env
:
{
browser
:
true
,
browser
:
true
,
...
@@ -12,78 +12,101 @@ module.exports = {
...
@@ -12,78 +12,101 @@ module.exports = {
extends
:
[
'plugin:vue/recommended'
,
'eslint:recommended'
],
extends
:
[
'plugin:vue/recommended'
,
'eslint:recommended'
],
// 全局变量
// 全局变量
globals
:
{
globals
:
{
'gdp'
:
true
,
gdp
:
true
,
'uni'
:
true
,
uni
:
true
,
'wx'
:
true
,
wx
:
true
,
'qq'
:
true
,
qq
:
true
,
'$'
:
true
$
:
true
,
},
},
// add your custom rules here
// add your custom rules here
//it is base on https://github.com/vuejs/eslint-config-vue
//it is base on https://github.com/vuejs/eslint-config-vue
rules
:
{
rules
:
{
'vue/html-self-closing'
:
'off'
,
'no-console'
:
0
,
'no-console'
:
0
,
'no-debugger'
:
0
,
'no-debugger'
:
0
,
'comma-spacing'
:
[
2
,
{
// 控制逗号前面没有空格,后面必须有空格
'comma-spacing'
:
[
'before'
:
false
,
2
,
'after'
:
true
{
}],
// 控制逗号前面没有空格,后面必须有空格
'arrow-spacing'
:
[
2
,
{
// 要求箭头函数前后有空格
before
:
false
,
'before'
:
true
,
after
:
true
,
'after'
:
true
},
}],
],
'no-multi-spaces'
:
2
,
// 禁止使用多个空格,
'arrow-spacing'
:
[
'no-spaced-func'
:
2
,
// 禁止 function 标识符和括号之间出现空格,this.getList () 报错
2
,
'semi-spacing'
:
[
2
,
{
// 强制分号之前不允许有空格
{
'before'
:
false
,
// 要求箭头函数前后有空格
'after'
:
true
before
:
true
,
}],
after
:
true
,
'space-infix-ops'
:
2
,
// 要求操作符前后必须有空格: 2 + 3 2 === 2 3 > 2
},
],
'no-multi-spaces'
:
2
,
// 禁止使用多个空格,
'no-spaced-func'
:
2
,
// 禁止 function 标识符和括号之间出现空格,this.getList () 报错
'semi-spacing'
:
[
2
,
{
// 强制分号之前不允许有空格
before
:
false
,
after
:
true
,
},
],
'space-infix-ops'
:
2
,
// 要求操作符前后必须有空格: 2 + 3 2 === 2 3 > 2
'spaced-comment'
:
[
2
,
'always'
],
// 强制在注释中 // 或 /* 使用一致的空格
'spaced-comment'
:
[
2
,
'always'
],
// 强制在注释中 // 或 /* 使用一致的空格
'array-bracket-spacing'
:
[
2
,
'never'
],
// 指定数组的元素之间要以空格隔开(, 后面), never参数:[ 之后和 ] 之前不能带空格,always参数:[ 之后和 ] 之前必须带空格
'array-bracket-spacing'
:
[
2
,
'never'
],
// 指定数组的元素之间要以空格隔开(, 后面), never参数:[ 之后和 ] 之前不能带空格,always参数:[ 之后和 ] 之前必须带空格
"space-before-blocks"
:
2
,
// if/function等的大括号之前需要有空格
'space-before-blocks'
:
2
,
// if/function等的大括号之前需要有空格
'no-undef-init'
:
2
,
// 禁止将变量初始化为 undefined,保存时会将let a = undefined变成let a
'no-undef-init'
:
2
,
// 禁止将变量初始化为 undefined,保存时会将let a = undefined变成let a
'semi'
:
[
2
,
'always'
],
//强制结尾必须有分号;
semi
:
[
2
,
'always'
],
//强制结尾必须有分号;
'prefer-const'
:
2
,
// 要求使用 const 声明那些声明后不再被修改的变量
'prefer-const'
:
2
,
// 要求使用 const 声明那些声明后不再被修改的变量
'quotes'
:
[
2
,
'single'
],
//js中强制使用单引号
quotes
:
[
2
,
'single'
],
//js中强制使用单引号
'no-multiple-empty-lines'
:
[
2
,
{
// 不允许多个空行,最多一行
'no-multiple-empty-lines'
:
[
'max'
:
1
2
,
}],
{
'vue/order-in-components'
:
[
'error'
,
{
// 不允许多个空行,最多一行
'order'
:
[
max
:
1
,
'el'
,
},
'name'
,
],
'parent'
,
'vue/order-in-components'
:
[
'functional'
,
'error'
,
[
'delimiters'
,
'comments'
],
{
[
'components'
,
'directives'
,
'filters'
],
order
:
[
'extends'
,
'el'
,
'mixins'
,
'name'
,
'inheritAttrs'
,
'parent'
,
'model'
,
'functional'
,
[
'props'
,
'propsData'
],
[
'delimiters'
,
'comments'
],
'data'
,
[
'components'
,
'directives'
,
'filters'
],
'computed'
,
'extends'
,
'watch'
,
'mixins'
,
'LIFECYCLE_HOOKS'
,
'inheritAttrs'
,
'methods'
,
'model'
,
[
'template'
,
'render'
],
[
'props'
,
'propsData'
],
'renderError'
'data'
,
]
'computed'
,
}],
'watch'
,
'vue/attributes-order'
:
[
'error'
,
{
'LIFECYCLE_HOOKS'
,
'order'
:
[
'methods'
,
'DEFINITION'
,
[
'template'
,
'render'
],
'LIST_RENDERING'
,
'renderError'
,
'CONDITIONALS'
,
],
'RENDER_MODIFIERS'
,
},
'GLOBAL'
,
],
'UNIQUE'
,
'vue/attributes-order'
:
[
'TWO_WAY_BINDING'
,
'error'
,
'OTHER_DIRECTIVES'
,
{
'OTHER_ATTR'
,
order
:
[
'EVENTS'
,
'DEFINITION'
,
'CONTENT'
'LIST_RENDERING'
,
]
'CONDITIONALS'
,
}],
'RENDER_MODIFIERS'
,
}
'GLOBAL'
,
}
'UNIQUE'
,
'TWO_WAY_BINDING'
,
'OTHER_DIRECTIVES'
,
'OTHER_ATTR'
,
'EVENTS'
,
'CONTENT'
,
],
},
],
},
};
src/router/index.js
浏览文件 @
0c5ef261
import
insuranceBindCode
from
'@/views/insurance-bind-code/insurance-bind-code'
;
import
insuranceBindCode
from
'@/views/insurance-bind-code/insurance-bind-code'
;
import
insuranceBindCodeSuccess
from
'@/views/insurance-bindCode-success/insurance-bindCode-success'
;
import
insuranceBindCodeSuccess
from
'@/views/insurance-bindCode-success/insurance-bindCode-success'
;
import
insuranceDetectionDetail
from
'@/views/insurance-detection-detail/insurance-detection-detail'
;
import
insuranceDetectionDetail
from
'@/views/insurance-detection-detail/insurance-detection-detail'
;
import
{
router
,
}
from
'@pica-cli/vue-cli-plugin-pica-cli-plugin/auto'
;
import
{
router
}
from
'@pica-cli/vue-cli-plugin-pica-cli-plugin/auto'
;
import
{
headerConfigByMeta
}
from
'mn-template/util/routerUtil'
;
import
{
headerConfigByMeta
}
from
'mn-template/util/routerUtil'
;
import
handleAllRouter
from
'../public_uat'
;
import
handleAllRouter
from
'../public_uat'
;
const
routerConfig
=
[
const
routerConfig
=
[
...
@@ -48,7 +48,8 @@ const routerConfig = [
...
@@ -48,7 +48,8 @@ const routerConfig = [
{
{
path
:
'/insuranceQuestionResult'
,
path
:
'/insuranceQuestionResult'
,
name
:
'insuranceQuestionResult'
,
name
:
'insuranceQuestionResult'
,
component
:
()
=>
import
(
'@/views/insurance-question-result/insuranceQuestionResult.vue'
),
component
:
()
=>
import
(
'@/views/insurance-question-result/insuranceQuestionResult.vue'
),
meta
:
{
meta
:
{
title
:
'问卷结果页面'
,
title
:
'问卷结果页面'
,
},
},
...
@@ -56,7 +57,10 @@ const routerConfig = [
...
@@ -56,7 +57,10 @@ const routerConfig = [
{
{
path
:
'/insuranceQuestionResultPay'
,
path
:
'/insuranceQuestionResultPay'
,
name
:
'insuranceQuestionResultPay'
,
name
:
'insuranceQuestionResultPay'
,
component
:
()
=>
import
(
'@/views/insurance-question-result-pay/insuranceQuestionResult.vue'
),
component
:
()
=>
import
(
'@/views/insurance-question-result-pay/insuranceQuestionResult.vue'
),
meta
:
{
meta
:
{
title
:
'问卷结果页面'
,
title
:
'问卷结果页面'
,
},
},
...
@@ -139,6 +143,14 @@ const routerConfig = [
...
@@ -139,6 +143,14 @@ const routerConfig = [
title
:
'惠民保癌筛权益领取'
,
title
:
'惠民保癌筛权益领取'
,
},
},
},
},
{
path
:
'/sz-public-new2'
,
name
:
'sz-public-new2'
,
component
:
()
=>
import
(
'@/views/sz-public-new/index2.vue'
),
meta
:
{
title
:
'惠民保癌筛权益领取'
,
},
},
{
{
path
:
'/tb-public'
,
path
:
'/tb-public'
,
name
:
'tb-public'
,
name
:
'tb-public'
,
...
@@ -174,7 +186,6 @@ const routerConfig = [
...
@@ -174,7 +186,6 @@ const routerConfig = [
router
.
beforeEach
(
async
(
to
,
from
,
next
)
=>
{
router
.
beforeEach
(
async
(
to
,
from
,
next
)
=>
{
headerConfigByMeta
(
to
);
headerConfigByMeta
(
to
);
next
();
next
();
});
});
router
.
addRoutes
(
routerConfig
);
router
.
addRoutes
(
routerConfig
);
...
...
src/views/sz-public-new/index2.vue
0 → 100644
浏览文件 @
0c5ef261
<!-- eslint-disable -->
<
template
>
<div
class=
"page-wrapper"
>
<img
class=
"pic"
:src=
"bgPath"
/>
<div
v-for=
"(url, index) in staticINFO.logoUrlList"
:key=
"index"
>
<img
class=
"pic"
:src=
"url"
/>
</div>
<div
v-for=
"(url, index) in staticINFO2.descList"
:key=
"index"
@
click=
"handleBanner(index)"
>
<img
class=
"pic"
:src=
"url"
/>
</div>
<div
class=
"footer-box"
>
<div
class=
"fixed-btn"
>
<div
class=
"wx-btn"
v-if=
"picaWechat != 'wechat'"
>
<span>
领取权益
</span>
</div>
<wx-open-launch-weapp
v-else
:username=
"openWebAppConfigPositive.username"
:path=
"openWebAppConfigPositive.path"
:env-version=
"envVersion"
@
error=
"handleErrorFn"
@
launch=
"handleLaunchFn"
>
<script
type=
"text/wxtag-template"
>
<div
class=
"wx-btn"
>
<span>
领取权益
</span>
</div>
<style>
.wx-btn
{
display: block;
width: 350px;
height: 40px;
margin: 5px auto;
border-radius: 20px;
font-size: 16px;
font-weight: 600;
color: #ffffff;
line-height: 40px;
text-align: center;
background: linear-gradient(270deg, #ff7400 0%, #fe4000 100%);
}
</style>
</script>
</wx-open-launch-weapp>
</div>
</div>
</div>
</
template
>
<
script
>
import
{
getBanner
}
from
'@/api/entitlement'
;
import
{
uploadPointData
}
from
'@/api/question'
;
import
{
isWeixin
}
from
'@/utils/index'
;
export
default
{
data
()
{
return
{
picaWechat
:
window
.
_picaWechat
,
headerInfo
:
{
title
:
'健康服务权益领取'
,
isBlack
:
true
,
backMethod
:
'web'
,
style
:
'backgroundColor:#ffffff;zIndex:100;'
,
background
:
''
,
},
envVersion
:
process
.
env
.
VUE_APP_MINI_PROGRAM_ENV
,
openWebAppConfigPositive
:
{
username
:
'gh_e92f58174364'
,
// 小程序唯一username 1.gh_80d54796f2d5 云鹊助手 2. gh_e92f58174364 云鹊健康
path
:
'pagesInsurance/health-card/index'
,
// 打开页面
extraData
:
JSON
.
stringify
({}),
},
bgPath
:
''
,
staticINFO
:
{
logoUrlList
:
[],
},
staticINFO2
:
{
descList
:
[],
descBottomList
:
[],
},
};
},
created
()
{
if
(
!
isWeixin
())
{
this
.
$dialog
.
alert
({
type
:
'warning'
,
title
:
'提示'
,
message
:
'请在微信中扫码打开!'
,
confirmButtonText
:
'我知道了'
,
})
.
then
(()
=>
{
// on close
});
}
},
mounted
()
{
document
.
title
=
this
.
headerInfo
.
title
;
const
{
externalOrderNo
=
''
,
projectEquityNo
=
''
,
rightsNo
=
''
,
channelCode
=
''
,
userInfo
=
''
,
}
=
this
.
$route
.
query
;
this
.
getBanner
(
7
,
rightsNo
||
projectEquityNo
);
this
.
getBanner2
(
36
,
rightsNo
||
projectEquityNo
);
this
.
openWebAppConfigPositive
.
path
=
`pagesInsurance/health-card/index?channelCode=
${
channelCode
}
&projectEquityNo=
${
projectEquityNo
}
&externalOrderNo=
${
externalOrderNo
}
&rightsNo=
${
rightsNo
}
&userInfo=
${
userInfo
}
`
;
if
(
channelCode
)
uploadPointData
({
channelCode
});
this
.
$sendBuriedData
(
{
action
:
'ACTION_WEB_ENTER'
,
component_tag
:
'7802964#0#0#保险入口页面'
,
web_data
:
{
projectEquityNo
:
projectEquityNo
,
externalOrderNo
:
externalOrderNo
,
rightsNo
:
rightsNo
,
userInfo
:
userInfo
,
channelCode
:
channelCode
,
},
},
'enter'
);
},
methods
:
{
getBanner
(
pageType
,
yunOrderNo
)
{
this
.
$loading
.
show
();
getBanner
(
pageType
,
yunOrderNo
).
then
((
res
)
=>
{
if
(
res
.
code
===
'000000'
)
{
this
.
bgPath
=
res
.
data
.
logoUrl
;
this
.
staticINFO
=
res
.
data
;
this
.
$loading
.
hide
();
}
});
},
getBanner2
(
pageType
,
yunOrderNo
)
{
this
.
$loading
.
show
();
getBanner
(
pageType
,
yunOrderNo
).
then
((
res
)
=>
{
if
(
res
.
code
===
'000000'
)
{
this
.
staticINFO2
=
res
.
data
;
this
.
$loading
.
hide
();
}
});
},
handleErrorFn
(
e
)
{
console
.
log
(
'handleErrorFn'
,
e
);
},
handleLaunchFn
(
e
)
{
console
.
log
(
'handleLaunchFn'
,
e
);
},
handleBanner
(
index
)
{
console
.
log
(
'index'
,
index
);
window
.
location
.
href
=
this
.
staticINFO2
.
descBottomList
[
index
];
},
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
.page-wrapper
{
min-height
:
100vh
;
background-color
:
#bee2fd
;
}
.footer-box
{
height
:
50px
;
padding-bottom
:
calc
(
constant
(
safe-area-inset-bottom
)
/
2
);
padding-bottom
:
calc
(
env
(
safe-area-inset-bottom
)
/
2
);
box-sizing
:
content-box
;
}
.fixed-btn
{
position
:
fixed
;
left
:
0
;
right
:
0
;
bottom
:
0
;
height
:
50px
;
padding-bottom
:
calc
(
constant
(
safe-area-inset-bottom
)
/
2
);
padding-bottom
:
calc
(
env
(
safe-area-inset-bottom
)
/
2
);
box-shadow
:
inset
0px
1px
0px
0px
#e9e9e9
;
background-color
:
#fff
;
box-sizing
:
content-box
;
z-index
:
9999
;
.wx-btn
{
display
:
block
;
width
:
350px
;
height
:
40px
;
margin
:
5px
auto
;
border-radius
:
20px
;
font-size
:
16px
;
font-weight
:
600
;
color
:
#ffffff
;
line-height
:
40px
;
text-align
:
center
;
background
:
linear-gradient
(
270deg
,
#ff7400
0%
,
#fe4000
100%
);
}
}
</
style
>
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录