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
提交
ce59c221
提交
ce59c221
编写于
8月 04, 2023
作者:
史文彬
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'release' into feature/ui-optimize-0801
上级
aab46dcc
0e4746d9
变更
14
展开全部
显示空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
17164 行增加
和
462 行删除
+17164
-462
.env.dev
.env.dev
+3
-0
.env.development.local
.env.development.local
+1
-1
.env.production
.env.production
+3
-0
.env.testing
.env.testing
+3
-0
README.md
README.md
+3
-0
entitlement.js
src/api/entitlement.js
+17
-8
main.js
src/main.js
+11
-8
index.vue
src/views/appoint/index.vue
+178
-147
index.vue
src/views/appointDetails/index.vue
+11
-0
list.vue
src/views/entitlement/list.vue
+190
-181
date-picker.vue
src/views/sz-public-new/date-picker.vue
+67
-0
index.vue
src/views/sz-public-new/index.vue
+237
-116
vue.config.js
vue.config.js
+1
-1
yarn.lock
yarn.lock
+16439
-0
未找到文件。
.env.dev
浏览文件 @
ce59c221
...
@@ -2,6 +2,9 @@ NODE_ENV=production
...
@@ -2,6 +2,9 @@ NODE_ENV=production
# 自定义 VUE_APP_ENV
# 自定义 VUE_APP_ENV
VUE_APP_ENV ='dev'
VUE_APP_ENV ='dev'
# 微信小程序的环境变量
VUE_APP_MINI_PROGRAM_ENV = 'trial'
VUE_APP_SERVICE_URL=https://dev-sc.yunqueyi.com
VUE_APP_SERVICE_URL=https://dev-sc.yunqueyi.com
# 阿里云OSS对象存储地址
# 阿里云OSS对象存储地址
...
...
.env.development.local
浏览文件 @
ce59c221
NODE_ENV=development
NODE_ENV=development
VUE_APP_ENV=development
VUE_APP_ENV=development
VUE_APP_MINI_PROGRAM_ENV='trial'
VUE_APP_SERVICE_URL=
VUE_APP_SERVICE_URL=
# 模拟用户信息
# 模拟用户信息
...
...
.env.production
浏览文件 @
ce59c221
...
@@ -3,6 +3,9 @@ NODE_ENV=production
...
@@ -3,6 +3,9 @@ NODE_ENV=production
# 自定义 VUE_APP_ENV
# 自定义 VUE_APP_ENV
VUE_APP_ENV ='production'
VUE_APP_ENV ='production'
# 微信小程序的环境变量
VUE_APP_MINI_PROGRAM_ENV = 'release'
VUE_APP_SERVICE_URL=https://sc.yunqueyi.com
VUE_APP_SERVICE_URL=https://sc.yunqueyi.com
# 阿里云OSS对象存储地址
# 阿里云OSS对象存储地址
...
...
.env.testing
浏览文件 @
ce59c221
...
@@ -3,6 +3,9 @@ NODE_ENV=production
...
@@ -3,6 +3,9 @@ NODE_ENV=production
# 自定义 VUE_APP_ENV
# 自定义 VUE_APP_ENV
VUE_APP_ENV ='production'
VUE_APP_ENV ='production'
# 微信小程序的环境变量
VUE_APP_MINI_PROGRAM_ENV='trial'
VUE_APP_SERVICE_URL=https://test1-sc.yunqueyi.com
VUE_APP_SERVICE_URL=https://test1-sc.yunqueyi.com
# 阿里云OSS对象存储地址
# 阿里云OSS对象存储地址
VUE_APP_OSS_URL=https://pica-h5-test.yunqueyi.com/
VUE_APP_OSS_URL=https://pica-h5-test.yunqueyi.com/
...
...
README.md
浏览文件 @
ce59c221
# pica-insurance
# pica-insurance
> 请先查看每个目录的 md 文件
> 请先查看每个目录的 md 文件
## 仓库入口
[
pica-insurance
](
http://192.168.110.53/com.pica.cloud.frontend/pica-insurance
)
## 启动
## 启动
```
shell script
```
shell script
npm run start
npm run start
...
...
src/api/entitlement.js
浏览文件 @
ce59c221
...
@@ -6,9 +6,9 @@ export const getEntitlementList = async (externalOrderNo, projectEquityNo) => {
...
@@ -6,9 +6,9 @@ export const getEntitlementList = async (externalOrderNo, projectEquityNo) => {
method
:
'get'
,
method
:
'get'
,
url
:
`/tis/insurance/projectEquityNo/externalOrderNo?externalOrderNo=
${
externalOrderNo
}
&projectEquityNo=
${
projectEquityNo
}
`
,
url
:
`/tis/insurance/projectEquityNo/externalOrderNo?externalOrderNo=
${
externalOrderNo
}
&projectEquityNo=
${
projectEquityNo
}
`
,
withCredentials
:
true
,
withCredentials
:
true
,
hasLoading
:
true
,
hasLoading
:
true
,
});
});
};
};
// 获取banner
// 获取banner
export
const
getBanner
=
async
(
pageType
,
yunOrderNo
)
=>
{
export
const
getBanner
=
async
(
pageType
,
yunOrderNo
)
=>
{
...
@@ -16,6 +16,15 @@ export const getBanner = async (pageType, yunOrderNo) => {
...
@@ -16,6 +16,15 @@ export const getBanner = async (pageType, yunOrderNo) => {
method
:
'get'
,
method
:
'get'
,
url
:
`/tis/insurance/explain/
${
yunOrderNo
}
/
${
pageType
}
`
,
url
:
`/tis/insurance/explain/
${
yunOrderNo
}
/
${
pageType
}
`
,
withCredentials
:
true
,
withCredentials
:
true
,
hasLoading
:
true
,
hasLoading
:
true
,
});
};
// 查询证件类型字典的接口
export
const
getCardTypes
=
()
=>
{
return
request
({
url
:
'basic-data/constants/app?typeCodeList=P333'
,
method
:
'get'
,
withCredentials
:
true
,
});
});
};
};
src/main.js
浏览文件 @
ce59c221
import
{
router
,
store
,
vueApp
}
from
'@pica-cli/vue-cli-plugin-pica-cli-plugin/auto'
;
import
{
router
,
store
,
vueApp
,
}
from
'@pica-cli/vue-cli-plugin-pica-cli-plugin/auto'
;
import
*
as
dd
from
'dingtalk-jsapi'
;
import
*
as
dd
from
'dingtalk-jsapi'
;
import
'@/router'
;
import
'@/router'
;
console
.
log
(
'router, store, vueApp: '
,
router
,
store
,
vueApp
);
console
.
log
(
'router, store, vueApp: '
,
router
,
store
,
vueApp
);
import
'@/assets/js/flexible'
;
import
'@/assets/js/flexible'
;
import
{
isWeixin
}
from
'./utils/index'
;
import
{
isWeixin
}
from
'./utils/index'
;
import
Loading
from
'@/components/loading/loading.js'
;
import
Loading
from
'@/components/loading/loading.js'
;
import
CryptoJS
from
'crypto-js/crypto-js'
;
import
CryptoJS
from
'crypto-js/crypto-js'
;
import
JsEncrypt
from
'jsencrypt/bin/jsencrypt'
;
import
JsEncrypt
from
'jsencrypt/bin/jsencrypt'
;
...
@@ -39,22 +43,21 @@ document.documentElement.addEventListener(
...
@@ -39,22 +43,21 @@ document.documentElement.addEventListener(
passive
:
false
,
passive
:
false
,
}
}
);
);
console
.
log
(
'z'
,
vueApp
.
$rocNative
);
vueApp
.
$rocNative
.
appInit
();
vueApp
.
$rocNative
.
appInit
();
vueApp
.
$rocNative
.
on
(
'wx_ready'
,
function
()
{
vueApp
.
$rocNative
.
on
(
'wx_ready'
,
function
()
{
console
.
log
(
'-wx_ready-'
,
window
.
_picaWechat
);
console
.
log
(
'-wx_ready-'
,
window
.
_picaWechat
);
// 初始化wx jssdk 后 执行 脚手架将 wx 对象挂在到 $rocNative对象上,后执行 小程序环境判断方法 miniProgram.getEnv
// 初始化wx jssdk 后 执行 脚手架将 wx 对象挂在到 $rocNative对象上,后执行 小程序环境判断方法 miniProgram.getEnv
vueApp
.
$rocNative
.
WXInstance
.
miniProgram
.
getEnv
(
function
(
res
)
{
vueApp
.
$rocNative
.
WXInstance
.
miniProgram
.
getEnv
(
function
(
res
)
{
console
.
log
(
'_miniprogram'
,
res
.
miniprogram
);
// true
console
.
log
(
'_miniprogram'
,
res
.
miniprogram
);
// true
window
.
_miniprogram
=
res
.
miniprogram
;
window
.
_miniprogram
=
res
.
miniprogram
;
});
});
});
});
console
.
log
(
'---'
,
isWeixin
());
console
.
log
(
'---'
,
isWeixin
());
if
(
isWeixin
())
{
if
(
isWeixin
())
{
window
.
_picaWechat
=
'wechat'
;
window
.
_picaWechat
=
'wechat'
;
}
}
if
(
dd
.
env
.
version
)
{
if
(
dd
.
env
.
version
)
{
window
.
_picaWechat
=
'dingtalk'
;
window
.
_picaWechat
=
'dingtalk'
;
}
}
...
@@ -63,7 +66,7 @@ sessionStorage.setItem('headerHeight', 0);
...
@@ -63,7 +66,7 @@ sessionStorage.setItem('headerHeight', 0);
window
.
Vue
.
use
(
Loading
);
window
.
Vue
.
use
(
Loading
);
// 设置安全密钥
// 设置安全密钥
window
.
_AMapSecurityConfig
=
{
window
.
_AMapSecurityConfig
=
{
securityJsCode
:
'f5093bfce95bd0393749259bcc44ede8'
securityJsCode
:
'f5093bfce95bd0393749259bcc44ede8'
,
};
};
console
.
log
(
'router, store, vueApp: '
,
router
,
store
,
vueApp
);
console
.
log
(
'router, store, vueApp: '
,
router
,
store
,
vueApp
);
...
...
src/views/appoint/index.vue
浏览文件 @
ce59c221
此差异已折叠。
点击以展开。
src/views/appointDetails/index.vue
浏览文件 @
ce59c221
...
@@ -151,6 +151,17 @@
...
@@ -151,6 +151,17 @@
<
/text> --
>
<
/text> --
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
v
-
if
=
"detailInfo.helpDetectionFlag == 1"
class
=
"detail-bottom-item"
>
<
div
class
=
"title"
>
采集方式
:
<
/div
>
<
div
class
=
"value"
>
现场检测
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"appoint-detail-tel"
>
<
div
class
=
"appoint-detail-tel"
>
客服电话:
<
a
客服电话:
<
a
...
...
src/views/entitlement/list.vue
浏览文件 @
ce59c221
...
@@ -18,7 +18,13 @@
...
@@ -18,7 +18,13 @@
</div>
</div>
<div
<div
class=
"status"
class=
"status"
:class=
"
{particlar : (item.statusCode == '0204' || item.statusCode == '0905' || item.statusCode == '0904'), 'red-particlar':item.statusCode == '0305'}"
:class=
"
{
particlar:
item.statusCode == '0204' ||
item.statusCode == '0905' ||
item.statusCode == '0904',
'red-particlar': item.statusCode == '0305',
}"
>
>
{{
item
.
statusTxt
||
'--'
}}
{{
item
.
statusTxt
||
'--'
}}
</div>
</div>
...
@@ -39,7 +45,7 @@
...
@@ -39,7 +45,7 @@
运单号:
运单号:
</div>
</div>
<div
class=
"value"
>
<div
class=
"value"
>
{{
item
.
expressNo
||
"--"
}}
{{
item
.
expressNo
||
'--'
}}
</div>
</div>
</div>
</div>
<div
class=
"item"
>
<div
class=
"item"
>
...
@@ -47,7 +53,7 @@
...
@@ -47,7 +53,7 @@
物流进度:
物流进度:
</div>
</div>
<div
class=
"value"
>
<div
class=
"value"
>
{{
item
.
expressContent
||
"--"
}}
{{
item
.
expressContent
||
'--'
}}
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -66,18 +72,21 @@
...
@@ -66,18 +72,21 @@
检测时间:
检测时间:
</div>
</div>
<div
class=
"value"
>
<div
class=
"value"
>
{{
formatDate
(
item
.
detectionTime
)
||
"--"
}}
{{
formatDate
(
item
.
detectionTime
)
||
'--'
}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
<div
class=
"btn"
>
class=
"btn"
>
<wx-open-launch-weapp
<wx-open-launch-weapp
:id=
"`launch-btn$
{index}`"
:id=
"`launch-btn$
{index}`"
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%"
style="
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
"
:username="openWebAppConfig.username"
:username="openWebAppConfig.username"
:path="`pagesInsurance/all-entrance/index?channelSource=insurance_channel
&
projectEquityNo=${item.projectEquityNo}
&
yunOrderNo=${item.yunOrderNoFirst_self}
&
detectionKind=${item.detectionKind}
&
tradeDetectionServiceRecordId=${item.tradeDetectionServiceRecordId}`"
:path="`pagesInsurance/all-entrance/index?channelSource=insurance_channel
&
projectEquityNo=${item.projectEquityNo}
&
yunOrderNo=${item.yunOrderNoFirst_self}
&
detectionKind=${item.detectionKind}
&
tradeDetectionServiceRecordId=${item.tradeDetectionServiceRecordId}`"
:env-version="envVersion"
:env-version="envVersion"
...
@@ -105,47 +114,44 @@
...
@@ -105,47 +114,44 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
formatDate
}
from
'@/utils/common'
;
import
{
formatDate
}
from
'@/utils/common'
;
const
{
VUE_APP_ENV
}
=
process
.
env
;
import
{
getEntitlementList
,
getBanner
}
from
'@/api/entitlement'
;
import
{
getEntitlementList
,
getBanner
}
from
'@/api/entitlement'
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
bgPath
:
''
,
bgPath
:
''
,
entitlementList
:
[],
entitlementList
:
[],
emptyIconPath
:
'https://files.yunqueyi.com/image/png/common/20230602155400880.png'
,
emptyIconPath
:
envVersion
:
VUE_APP_ENV
==
'production'
?
'release'
:
'trial
'
,
'https://files.yunqueyi.com/image/png/common/20230602155400880.png
'
,
// envVersion: 'trial'
,
envVersion
:
process
.
env
.
VUE_APP_MINI_PROGRAM_ENV
,
openWebAppConfig
:
{
openWebAppConfig
:
{
username
:
'gh_e92f58174364'
,
// 小程序唯一username 1.gh_80d54796f2d5 云鹊助手 2. gh_e92f58174364 云鹊健康
username
:
'gh_e92f58174364'
,
// 小程序唯一username 1.gh_80d54796f2d5 云鹊助手 2. gh_e92f58174364 云鹊健康
path
:
'pagesInsurance/all-entrance/index'
,
// 打开页面
path
:
'pagesInsurance/all-entrance/index'
,
// 打开页面
extraData
:
JSON
.
stringify
({})
extraData
:
JSON
.
stringify
({}),
},
},
externalOrderNo
:
''
,
externalOrderNo
:
''
,
projectEquityNo
:
''
,
projectEquityNo
:
''
,
showDialog
:
false
,
showDialog
:
false
,
};
};
},
},
computed
()
{
computed
()
{},
},
mounted
()
{
mounted
()
{
const
{
externalOrderNo
,
projectEquityNo
}
=
this
.
$route
.
query
;
const
{
externalOrderNo
,
projectEquityNo
}
=
this
.
$route
.
query
;
this
.
externalOrderNo
=
externalOrderNo
;
this
.
externalOrderNo
=
externalOrderNo
;
this
.
projectEquityNo
=
projectEquityNo
;
this
.
projectEquityNo
=
projectEquityNo
;
this
.
getBanner
(
6
,
projectEquityNo
);
this
.
getBanner
(
6
,
projectEquityNo
);
this
.
getEntitlementList
(
externalOrderNo
,
projectEquityNo
);
this
.
getEntitlementList
(
externalOrderNo
,
projectEquityNo
);
this
.
monitorMiniProgram
();
this
.
monitorMiniProgram
();
},
},
methods
:{
methods
:
{
getBanner
(
pageType
,
yunOrderNo
)
{
getBanner
(
pageType
,
yunOrderNo
)
{
const
self
=
this
;
const
self
=
this
;
self
.
$loading
.
show
();
self
.
$loading
.
show
();
getBanner
(
pageType
,
yunOrderNo
).
then
(
res
=>
{
getBanner
(
pageType
,
yunOrderNo
).
then
((
res
)
=>
{
if
(
res
.
code
===
'000000'
)
{
if
(
res
.
code
===
'000000'
)
{
self
.
bgPath
=
res
.
data
.
logoUrl
;
self
.
bgPath
=
res
.
data
.
logoUrl
;
self
.
$loading
.
hide
();
self
.
$loading
.
hide
();
}
}
...
@@ -156,7 +162,7 @@
...
@@ -156,7 +162,7 @@
const
self
=
this
;
const
self
=
this
;
document
.
addEventListener
(
'visibilitychange'
,
()
=>
{
document
.
addEventListener
(
'visibilitychange'
,
()
=>
{
self
.
entitlementList
=
[];
self
.
entitlementList
=
[];
if
(
document
.
visibilityState
==
'visible'
)
{
if
(
document
.
visibilityState
==
'visible'
)
{
self
.
refreshList
();
self
.
refreshList
();
}
}
});
});
...
@@ -176,11 +182,11 @@
...
@@ -176,11 +182,11 @@
getEntitlementList
(
externalOrderNo
,
projectEquityNo
)
{
getEntitlementList
(
externalOrderNo
,
projectEquityNo
)
{
const
that
=
this
;
const
that
=
this
;
// that.$loading.show();
// that.$loading.show();
getEntitlementList
(
externalOrderNo
,
projectEquityNo
).
then
(
res
=>
{
getEntitlementList
(
externalOrderNo
,
projectEquityNo
).
then
((
res
)
=>
{
if
(
res
.
code
===
'000000'
)
{
if
(
res
.
code
===
'000000'
)
{
if
(
res
?.
data
.
length
>
0
)
{
if
(
res
?.
data
.
length
>
0
)
{
let
arr
=
[];
let
arr
=
[];
arr
=
res
.
data
.
map
(
r
=>
{
arr
=
res
.
data
.
map
(
(
r
)
=>
{
// 0905已完成 0101未填写问卷 0102已填写问卷 0202已预约 0902已结束 0104待支付 0201待预约 0302已采样 0901 已出报告
// 0905已完成 0101未填写问卷 0102已填写问卷 0202已预约 0902已结束 0104待支付 0201待预约 0302已采样 0901 已出报告
// 0903 待报销 0904 已报销
// 0903 待报销 0904 已报销
switch
(
r
.
statusCode
)
{
switch
(
r
.
statusCode
)
{
...
@@ -245,21 +251,24 @@
...
@@ -245,21 +251,24 @@
}
}
// 已采样 单独处理
// 已采样 单独处理
if
(
r
.
statusCode
==
'0302'
)
{
if
(
r
.
statusCode
==
'0302'
)
{
if
(
r
.
detectionKind
==
1
)
{
if
(
r
.
detectionKind
==
1
)
{
r
.
btnTxt
=
'上传结果'
;
r
.
btnTxt
=
'上传结果'
;
}
else
{
}
else
{
r
.
btnTxt
=
'检测详情'
;
r
.
btnTxt
=
'检测详情'
;
}
}
}
}
r
.
title
=
r
.
detectionKind
==
1
?
'癌症早早检权益领取'
:
'癌症早检权益领取'
;
r
.
title
=
r
.
detectionKind
==
1
?
'癌症早早检权益领取'
:
'癌症早检权益领取'
;
return
r
;
return
r
;
});
});
arr
.
map
((
item
,
index
)
=>
{
arr
.
map
((
item
,
index
)
=>
{
if
(
item
.
statusCode
==
'0101'
)
{
if
(
item
.
statusCode
==
'0101'
)
{
arr
[
index
][
'yunOrderNoFirst_self'
]
=
item
.
yunOrderNoFirst
;
arr
[
index
][
'yunOrderNoFirst_self'
]
=
item
.
yunOrderNoFirst
;
}
else
{
}
else
{
arr
[
index
][
'yunOrderNoFirst_self'
]
=
item
.
yunOrderNo
;
arr
[
index
][
'yunOrderNoFirst_self'
]
=
item
.
yunOrderNo
;
}
}
});
});
...
@@ -271,26 +280,26 @@
...
@@ -271,26 +280,26 @@
path
:
'/sz-public-new'
,
path
:
'/sz-public-new'
,
query
:
{
query
:
{
externalOrderNo
:
externalOrderNo
,
externalOrderNo
:
externalOrderNo
,
projectEquityNo
:
projectEquityNo
,
projectEquityNo
:
projectEquityNo
,
reload
:
'reload'
,
reload
:
'reload'
,
}
}
,
});
});
}
}
// that.$loading.hide();
// that.$loading.hide();
}
}
});
});
},
},
}
},
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.page-entitlement
{
.page-entitlement
{
width
:
100%
;
width
:
100%
;
height
:
100vh
;
height
:
100vh
;
background
:
#f5f6f8
;
background
:
#f5f6f8
;
overflow-y
:
auto
;
overflow-y
:
auto
;
.banner
{
.banner
{
width
:
375px
;
width
:
375px
;
height
:
287px
;
height
:
287px
;
}
}
...
@@ -326,15 +335,15 @@
...
@@ -326,15 +335,15 @@
text-align
:
right
;
text-align
:
right
;
font-size
:
12px
;
font-size
:
12px
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#00BDA
5
;
color
:
#00bda
5
;
}
}
.particlar
{
.particlar
{
color
:
#999999
;
color
:
#999999
;
}
}
.red-particlar
{
.red-particlar
{
color
:
#FF4B
33
;
color
:
#ff4b
33
;
}
}
}
}
...
@@ -381,22 +390,22 @@
...
@@ -381,22 +390,22 @@
// }
// }
}
}
.empty-wrap
{
.empty-wrap
{
padding
:
154px
54px
250px
54px
;
padding
:
154px
54px
250px
54px
;
background
:
#fff
;
background
:
#fff
;
border-radius
:
10px
;
border-radius
:
10px
;
.empty-icon
{
.empty-icon
{
width
:
243px
;
width
:
243px
;
height
:
127px
;
height
:
127px
;
}
}
.empty-text
{
.empty-text
{
font-size
:
18px
;
font-size
:
18px
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#02120F
;
color
:
#02120f
;
text-align
:
center
;
text-align
:
center
;
}
}
}
}
}
}
}
}
</
style
>
</
style
>
src/views/sz-public-new/date-picker.vue
0 → 100644
浏览文件 @
ce59c221
<
template
>
<div
class=
"pica-date-picker"
>
<van-field
:border=
"false"
readonly
placeholder=
"请选择出生年月日"
:value=
"value"
class=
"appoint-form-items"
@
click=
"handleOpenPopup"
/>
<van-popup
v-model=
"visible"
position=
"bottom"
:transition-appear=
"false"
>
<van-datetime-picker
type=
"date"
title=
"选择年月日"
:value=
"currentDate"
:min-date=
"minDate"
:max-date=
"maxDate"
@
confirm=
"handleConfirm"
@
cancel=
"visible = false"
/>
</van-popup>
</div>
</
template
>
<
script
>
import
dayjs
from
'dayjs'
;
export
default
{
props
:
{
value
:
{
type
:
String
,
default
:
''
,
},
},
data
()
{
return
{
visible
:
false
,
currentDate
:
new
Date
(),
minDate
:
new
Date
(
1900
,
0
,
1
),
maxDate
:
new
Date
(),
};
},
methods
:
{
handleOpenPopup
()
{
this
.
visible
=
true
;
},
handleConfirm
(
value
)
{
this
.
visible
=
false
;
const
formatDate
=
dayjs
(
value
).
format
(
'YYYY-MM-DD'
);
this
.
$emit
(
'input'
,
formatDate
);
},
},
};
</
script
>
<
style
scoped
lang=
"scss"
>
.pica-date-picker
{
width
:
100%
;
.van-cell
{
padding
:
0
!
important
;
}
}
</
style
>
src/views/sz-public-new/index.vue
浏览文件 @
ce59c221
此差异已折叠。
点击以展开。
vue.config.js
浏览文件 @
ce59c221
...
@@ -36,7 +36,7 @@ module.exports = {
...
@@ -36,7 +36,7 @@ module.exports = {
port
:
8083
,
port
:
8083
,
proxy
:
{
proxy
:
{
'/proxy'
:
{
'/proxy'
:
{
target
:
'https://
test1
-sc.yunqueyi.com/'
,
target
:
'https://
dev
-sc.yunqueyi.com/'
,
// target: 'https://test1-sc.yunqueyi.com/',
// target: 'https://test1-sc.yunqueyi.com/',
// target: 'https://uat-sc.yunqueyi.com/',
// target: 'https://uat-sc.yunqueyi.com/',
// http://10.241.65.90:3000/mock/1071/cs/route/removeUser
// http://10.241.65.90:3000/mock/1071/cs/route/removeUser
...
...
yarn.lock
0 → 100644
浏览文件 @
ce59c221
此差异已折叠。
点击以展开。
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录