Commit 8dc9bb9d authored by xinzhedeai's avatar xinzhedeai

Merge branch 'gaoqucodecheck' into remind 消费者->商户->提醒 merge

# Conflicts:
#	home.js
#	sdk/axios_http.js
#	sdk/axios_http3.js
#	src/_yh_check.html
parents 05fc4f27 39e9cf2b
...@@ -207,7 +207,7 @@ ...@@ -207,7 +207,7 @@
v-cloak v-cloak
> >
<div class="stats-header"> <div class="stats-header">
<div class="stats-title">数据统计</div> <div class="stats-title" @click="openDebug">数据统计</div>
<!-- <van-cell-group> --> <!-- <van-cell-group> -->
<div <div
@click="showPopup('showPopup4completionDate')" @click="showPopup('showPopup4completionDate')"
......
...@@ -134,7 +134,14 @@ window.onload = function () { ...@@ -134,7 +134,14 @@ window.onload = function () {
this.remindStatistic = result.data this.remindStatistic = result.data
} }
} }
) )},
openDebug(){ // 双击开启debugg模式,再次双击则关闭
console.log('开启关闭debug')
if(localStorage.getItem('debug')=='Y'){
localStorage.setItem('debug', 'N')
}else{
localStorage.setItem('debug', 'Y')
}
}, },
scanCode(toData) { scanCode(toData) {
if (toData === false) { if (toData === false) {
...@@ -147,14 +154,14 @@ window.onload = function () { ...@@ -147,14 +154,14 @@ window.onload = function () {
merId: strUrl.searchParams.get('merId'), merId: strUrl.searchParams.get('merId'),
accessType: strUrl.searchParams.get('accessType') accessType: strUrl.searchParams.get('accessType')
}; };
// location.href = 'shanghu_home.html' if (param.merId == null || param.merId == '') {
// let param = { alert('请扫描正确的商家二维码')
// accessType: 'saoma', return
// merId: data, } else {
// } let url = gemhoUtil.setParameter(`./src/_shanghu_home.html`, param)
let url = gemhoUtil.setParameter(`./src/_shanghu_home.html`, param) gemhoUtil.navigatePage(url, '跳转中...')
gemhoUtil.navigatePage(url, '跳转中...') }
//成功回调
}, },
fail: function (data) { fail: function (data) {
//错误返回 //错误返回
......
/** axios封装 /** axios封装
* 请求拦截、相应拦截、错误统一处理 * 请求拦截、相应拦截、错误统一处理
*/ */
const BASE_URL = 'http://192.168.2.37:8080'
// 环境的切换 // 环境的切换
axios.defaults.baseURL = 'http://192.168.2.37:8080' axios.defaults.baseURL = BASE_URL
axios.defaults.timeout = 50000 axios.defaults.timeout = 50000
// post请求头 // post请求头
// axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8' // axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
...@@ -30,6 +31,12 @@ axios.defaults.headers.common['Authorization'] = ...@@ -30,6 +31,12 @@ axios.defaults.headers.common['Authorization'] =
// wgy账号token // wgy账号token
// axios.defaults.headers.common['Authorization'] = // axios.defaults.headers.common['Authorization'] =
// 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiLlrZnmgJ3lv40iLCJsb2dpbl91c2VyX2tleSI6ImU0Y2Q2YzQ2LWEyMTAtNGIyMi1hZjAxLTliNjFiMWUyMzcxZiJ9.6IYwYIgsCV2RnnxOrtphRJIcko05AVlqyYGba3KuYE9NzKJlXcgOI-1C0tjXUg2YkJDl1YVDzLKntXEwoUSjCw' // 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiLlrZnmgJ3lv40iLCJsb2dpbl91c2VyX2tleSI6ImU0Y2Q2YzQ2LWEyMTAtNGIyMi1hZjAxLTliNjFiMWUyMzcxZiJ9.6IYwYIgsCV2RnnxOrtphRJIcko05AVlqyYGba3KuYE9NzKJlXcgOI-1C0tjXUg2YkJDl1YVDzLKntXEwoUSjCw'
// axios.defaults.headers.common['Authorization'] =
// 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxNTcyMTAzMTg4NiIsImxvZ2luX3VzZXJfa2V5IjoiNGJjY2JjYzUtNmY0Yy00ZDhlLWJiYzEtZjYzMzVlZDBlZTgwIn0.j3jEfHzeu3kklm60kKCirwwyKaWD51ABicOzxEnuFOfGe63FFqYOQ122ojAhukbInnKj4try3DjrST6wNDVjVQ'
// admin账号token
axios.defaults.headers.common['Authorization'] =
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImxvZ2luX3VzZXJfa2V5IjoiOTEyODc0N2ItNGE4NC00MWRjLTg0ZGUtZTY1ODNkMzBiNDcwIn0.w_JRlifng-sUQqvGnuRFH5-wiL-1tfwI1cF7E97gjaOZ37bvRQld3120Myf9MYqLtVHUVX_vhlcBj7Kmg9exZw'
// 请求拦截器 // 请求拦截器
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
if (window.env == 'dev') { if (window.env == 'dev') {
axios.defaults.baseURL = 'http://192.168.2.37:8080' axios.defaults.baseURL = 'http://192.168.2.37:8080'
// 消费者token // 消费者token
...@@ -15,15 +14,13 @@ if (window.env == 'dev') { ...@@ -15,15 +14,13 @@ if (window.env == 'dev') {
axios.defaults.headers.common['Authorization'] = axios.defaults.headers.common['Authorization'] =
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiLlvKDlrZ3lvakiLCJsb2dpbl91c2VyX2tleSI6IjNjMmRiMWFiLWIyZGMtNDBjYi04YjM5LWRiNTJmM2VmYzNkYyJ9.sfZyPP-COShNCjwxKR26zGDsPHXss97gu7JEpaMapIZyMQEsxzMigVickcqdhaqDwTRcfr0IxAj64vnrriS9Cw' 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiLlvKDlrZ3lvakiLCJsb2dpbl91c2VyX2tleSI6IjNjMmRiMWFiLWIyZGMtNDBjYi04YjM5LWRiNTJmM2VmYzNkYyJ9.sfZyPP-COShNCjwxKR26zGDsPHXss97gu7JEpaMapIZyMQEsxzMigVickcqdhaqDwTRcfr0IxAj64vnrriS9Cw'
// 凯丽 // 凯丽
// axios.defaults.headers.common['Authorization'] = // axios.defaults.headers.common['Authorization'] =
// 'Bearer eyJhbGciOiJlUzUxMiJ9.eyJzdWlioilxNZ92MZAzMDl00SlslmxyZ2luX3VzZXJfa2V5ljoiMEONTM1NzktNTJiMSO0N2QwLTkzNmEtMmViNWFhYzMzMTI1In0.EG_EwS7xS1jgi29Ly7WXOJBCW4DcAyOtLD4he06sV8b4i70kknNQqVAx063NpcDa5kmTFdZ6zEfPHYPfVR4dEO' // 'Bearer eyJhbGciOiJlUzUxMiJ9.eyJzdWlioilxNZ92MZAzMDl00SlslmxyZ2luX3VzZXJfa2V5ljoiMEONTM1NzktNTJiMSO0N2QwLTkzNmEtMmViNWFhYzMzMTI1In0.EG_EwS7xS1jgi29Ly7WXOJBCW4DcAyOtLD4he06sV8b4i70kknNQqVAx063NpcDa5kmTFdZ6zEfPHYPfVR4dEO'
// admin账号token // admin账号token
// axios.defaults.headers.common['Authorization'] = axios.defaults.headers.common['Authorization'] =
// 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImxvZ2luX3VzZXJfa2V5IjoiNTljMWVhMTMtODNmYy00OWI2LWI5YzMtM2VkNzliODFhZjg4In0.XHl0IpagNwLJBqW_s2n6Kzhs9eY-TrMUBfAO8oeikYRUH72eshEXwMsTyTWgVnX_okY4tuB4U124AeF6EO_qiQ' 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImxvZ2luX3VzZXJfa2V5IjoiOTEyODc0N2ItNGE4NC00MWRjLTg0ZGUtZTY1ODNkMzBiNDcwIn0.w_JRlifng-sUQqvGnuRFH5-wiL-1tfwI1cF7E97gjaOZ37bvRQld3120Myf9MYqLtVHUVX_vhlcBj7Kmg9exZw'
}else{ }else{
axios.defaults.baseURL = 'https://gqyjpt.weihai.cn/prod-api' axios.defaults.baseURL = 'https://gqyjpt.weihai.cn/prod-api'
......
...@@ -23,10 +23,13 @@ document.write(` ...@@ -23,10 +23,13 @@ document.write(`
<script type="text/javascript" src="${contextPath}/sdk/jssdk2/sm2/build/SM.js"></script> <script type="text/javascript" src="${contextPath}/sdk/jssdk2/sm2/build/SM.js"></script>
`) `)
// 移动端 debugger 调试 // 移动端 debugger 调试
document.write( if (localStorage.getItem('debug')=='Y') {
'<script type="text/javascript" src="//cdn.bootcdn.net/ajax/libs/eruda/2.4.1/eruda.js"></script>\ document.write(
<script>eruda.init();</script>' '<script type="text/javascript" src="//cdn.bootcdn.net/ajax/libs/eruda/2.4.1/eruda.js"></script>\
) <script>eruda.init();</script>'
)
}
// 自动识别环境(需在文件最顶部添加) // 自动识别环境(需在文件最顶部添加)
window.env = window.location.hostname === 'web1.isdapp.shandong.gov.cn' ? 'pro' : 'dev'; window.env = window.location.hostname === 'web1.isdapp.shandong.gov.cn' ? 'pro' : 'dev';
......
html, html,
body { body {
background-color: #fff; background-color: #fff;
overflow-x: hidden; overflow-x: hidden;
} }
.wrapper { .wrapper {
/* padding: 0.2rem; */ /* padding: 0.2rem; */
} }
/* 添加以下样式 */ /* 添加以下样式 */
.van-cell { .van-cell {
padding: 12px 16px; padding: 12px 16px;
} }
.van-field__label { .van-field__label {
font-weight: bold; font-weight: bold;
color: #000; color: #222 !important;
font-size: .28rem; font-size: 0.28rem;
} }
.van-field__control { .van-field__control {
color: #737373; color: #737373;
} }
.container { .container {
text-align: center; text-align: center;
margin-top: .3rem; margin-top: 0.3rem;
} }
.qr-card {
.qr-card { margin-bottom: 10px;
margin-bottom: 10px; }
}
.save-btn {
.save-btn { width: 48%;
width: 48%; background: #1890ff;
background: #1890ff; color: #fff;
color: #fff; border: none;
border: none; padding: 7px 20px;
padding: 7px 20px; border-radius: 3px;
border-radius: 3px; font-size: 16px;
font-size: 16px; cursor: pointer;
cursor: pointer; margin-bottom: 0.4rem;
margin-bottom: .4rem; }
}
.hideEle {
.hideEle { /* visibility: hidden; */
/* visibility: hidden; */ display: none;
display: none; }
} .textStyleWrapper {
.textStyleWrapper{ display: flex;
display: flex; align-items: center;
align-items: center; padding-top: 0.12rem;
padding-top: 0.12rem; padding-bottom: 0.12rem;
padding-bottom: 0.12rem; }
} .textStyleLabel {
.textStyleLabel{ display: inline-block;
display: inline-block; width: 1.72rem;
width: 1.72rem; min-width: 1.72rem;
min-width: 1.72rem; padding: 0.2rem;
padding: .2rem; padding-left: 0.3rem;
padding-left: .3rem; color: #9b9fab;
color: #9b9fab; font-size: 0.28rem;
font-size: .28rem; font-weight: bold;
font-weight: bold; }
}
.textStyleText {
.textStyleText{ display: inline-block;
display: inline-block; /* width: 1.72rem; */
/* width: 1.72rem; */ padding: 0.2rem;
padding: .2rem; padding-left: 0;
padding-left: 0; color: #c8c9cc;
color: #c8c9cc; font-size: 0.28rem;
font-size: .28rem; }
}
/* 基础重置样式 */
/* 基础重置样式 */ * {
* { margin: 0;
margin: 0; padding: 0;
padding: 0; box-sizing: border-box;
box-sizing: border-box; -webkit-tap-highlight-color: transparent;
-webkit-tap-highlight-color: transparent; /* 去除移动端点击高亮 */
/* 去除移动端点击高亮 */ }
}
body {
body { font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; font-size: 16px;
font-size: 16px; background-color: #f8f9fa;
background-color: #f8f9fa; }
}
/* 表单容器 */
/* 表单容器 */ .form-container {
.form-container { max-width: 750px;
max-width: 750px; /* 移动端最大宽度 */
/* 移动端最大宽度 */ margin: 20px auto;
margin: 20px auto; padding: 0 15px;
padding: 0 15px; background-color: #fff;
background-color: #fff; border-radius: 8px;
border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
}
/* 表单单项 */
/* 表单单项 */ .form-item {
.form-item { position: relative;
position: relative; display: flex;
display: flex; align-items: center;
align-items: center; /* 垂直居中 */
/* 垂直居中 */ height: 50px;
height: 50px; padding: 0 12px;
padding: 0 12px; border-bottom: 1px solid #f0f2f5;
border-bottom: 1px solid #f0f2f5; }
}
/* 最后一项去除下边框 */
/* 最后一项去除下边框 */ .form-item:last-child {
.form-item:last-child { border-bottom: none;
border-bottom: none; }
}
/* 表单标题 */
/* 表单标题 */ .form-label {
.form-label { flex-shrink: 0;
flex-shrink: 0; /* 防止标题被压缩 */
/* 防止标题被压缩 */ width: 1.7rem;
width: 1.7rem; /* 标题固定宽度,可根据需求调整 */
/* 标题固定宽度,可根据需求调整 */ color: #222;
color: #333; font-size: 0.28rem;
font-size: .28rem; font-weight: bold;
font-weight: bold; text-align: left;
text-align: left; /* 标题左对齐 */
/* 标题左对齐 */ }
}
/* 输入框容器 */
/* 输入框容器 */ .form-input-wrap {
.form-input-wrap { flex: 1;
flex: 1; /* 占据剩余空间 */
/* 占据剩余空间 */ height: 100%;
height: 100%; display: flex;
display: flex; align-items: center;
align-items: center; }
}
/* 输入框样式 */
/* 输入框样式 */ .form-input {
.form-input { width: 100%;
width: 100%; height: 32px;
height: 32px; /* 输入框高度小于容器,留出垂直空间 */
/* 输入框高度小于容器,留出垂直空间 */ border: none;
border: none; outline: none;
outline: none; font-size: 15px;
font-size: 15px; color: #666;
color: #666; }
}
/* 输入框placeholder样式 */
/* 输入框placeholder样式 */ .form-input::placeholder {
.form-input::placeholder { color: #999;
color: #999; font-size: 14px;
font-size: 14px; }
}
/* 输入框聚焦效果 */
/* 输入框聚焦效果 */ .form-input:focus {
.form-input:focus { color: #262626;
color: #262626; }
}
.imager-item-title {
.imager-item-title { height: 50px;
height: 50px; line-height: 50px;
line-height: 50px; padding: 0 12px;
padding: 0 12px; font-size: 14px;
font-size: 14px; border-bottom: 1px solid #f0f2f5;
border-bottom: 1px solid #f0f2f5; margin-bottom: 10px;
margin-bottom: 10px; font-weight: 400;
font-weight: 400; }
} .imager-item-title span {
color: #222;
/* vant tab底部栏颜色 */ }
.van-tabs__line{ /* vant tab底部栏颜色 */
background-color: #1081E3; .van-tabs__line {
} background-color: #1081e3;
}
.selector{
width: 5rem; .selector {
height: 0.6rem; width: 5rem;
font-size: 0.3rem; height: 0.6rem;
border: 1px solid #D7D7D7; font-size: 0.3rem;
background-color: #fff; border: 1px solid #d7d7d7;
} background-color: #fff;
input:disabled{ }
background-color: #fff; input:disabled {
} background-color: #fff;
select:disabled{ }
border:none; select:disabled {
/* 移除默认箭头 */ border: none;
-webkit-appearance: none; /* 移除默认箭头 */
-moz-appearance: none; -webkit-appearance: none;
appearance: none; -moz-appearance: none;
appearance: none;
/* 调整右侧内边距,防止文字溢出 */
padding-right: 25px; /* 调整右侧内边距,防止文字溢出 */
padding-right: 25px;
/* 可选:统一背景色 */
background-color: white; /* 可选:统一背景色 */
} background-color: white;
}
.van-cell--required { .van-cell--required {
overflow: visible overflow: visible;
} }
.van-cell--required:before { .van-cell--required:before {
position: absolute; position: absolute;
left: -0.01rem; left: -0.01rem;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
font-size: .28rem; font-size: 0.28rem;
content: "*"; content: '*';
} }
select:disabled {
color: #333 !important;
opacity: 1;
}
\ No newline at end of file
...@@ -27,6 +27,9 @@ ...@@ -27,6 +27,9 @@
color: #333 !important; /* 保持与正常状态相同的颜色 */ color: #333 !important; /* 保持与正常状态相同的颜色 */
-webkit-text-fill-color: #333 !important; /* 兼容iOS Safari */ -webkit-text-fill-color: #333 !important; /* 兼容iOS Safari */
} }
.van-uploader__preview-delete{
cursor: pointer;
}
</style> </style>
</head> </head>
<body> <body>
...@@ -70,7 +73,7 @@ ...@@ -70,7 +73,7 @@
<div class="form-input-wrap"> <div class="form-input-wrap">
<input <input
type="text" type="text"
v-model="formData.owner" v-model="formData.merchantName"
class="form-input" class="form-input"
:disabled="flag=='XQ'" :disabled="flag=='XQ'"
/> />
...@@ -95,7 +98,6 @@ ...@@ -95,7 +98,6 @@
<input <input
type="text" type="text"
v-model="formData.businessAddress" v-model="formData.businessAddress"
v-model="formData.merchantPhone"
class="form-input" class="form-input"
:disabled="flag=='XQ'" :disabled="flag=='XQ'"
/> />
...@@ -189,13 +191,8 @@ ...@@ -189,13 +191,8 @@
v-if="flag=='XQ'" v-if="flag=='XQ'"
> >
<span class="form-label">行业主管</span> <span class="form-label">行业主管</span>
<div class="form-input-wrap"> <div class="form-input-wrap" style="color: #333;font-size: .3rem;">
<input {{ formData.industryDeptName }}
type="text"
v-model="formData.industryType"
class="form-input"
:disabled="flag=='XQ'"
/>
</div> </div>
</div> </div>
...@@ -219,72 +216,89 @@ ...@@ -219,72 +216,89 @@
</div> </div>
<div> <div>
<h5 class="imager-item-title"> <h5 class="imager-item-title">
<span>商家平面图</span> <span class="form-label">商家平面图</span>
<span></span> <span></span>
</h5> </h5>
<div v-if="flag=='XG'"> <!-- 详情模式 -->
<van-uploader <div class="img-wrapper" style="display: flex;gap:.16rem;">
v-model="formData.floorPlanPhotosH5" <div style="position: relative;" v-for="(imgItem, index) in formData.floorPlanPhotos">
:max-count="1" <img
:after-read="handleFileUpload" :src="previewUrl + imgItem"
class="uploader-wrapper" style="width: 1.6rem; height: 1.6rem;"
/> @click="showImage(formData.floorPlanPhotos, index)"
</div> />
<div v-if="flag=='XQ'"> <div v-if="flag=='XG'" class="van-uploader__preview-delete" @click="handleDeleteFloorPlan(index, 'floorPlan')"><i class="van-icon van-icon-cross van-uploader__preview-delete-icon"></i></div>
<img </div>
v-for="(imgItem, subIndex) in formData.floorPlanPhotos" <div v-if="formData.floorPlanPhotos.length<4 && flag=='XG' ">
:src="imgItem" <van-uploader
alt="" :before-read="beforeRead"
style="width: 1.2rem; height: 1.2rem; margin-right: 0.2rem" :after-read="(file) => afterRead(file, 'floorPlan')"
@click="showImage(formData.floorPlanPhotos,subIndex)" class="uploader-wrapper"
/> :deletable="false"
:preview-image="false"
>
<img src="../image/code/upload.png" style="width:1.6rem;height: 1.6rem;" alt="" srcset="">
</van-uploader>
</div>
</div> </div>
</div> </div>
<div> <div>
<h5 class="imager-item-title"> <h5 class="imager-item-title">
<span>营业执照</span> <span class="form-label">营业执照</span>
<span></span> <span></span>
</h5> </h5>
<div v-if="flag=='XG'"> <!-- 详情模式 -->
<van-uploader <div class="img-wrapper" style="display: flex;gap:.16rem;">
v-model="formData.businessLicensePhotosH5" <div style="position: relative;" v-for="(imgItem, index) in formData.businessLicensePhotos">
:max-count="1" <img
:after-read="handleFileUpload" :src="previewUrl + imgItem"
class="uploader-wrapper" style="width: 1.6rem; height: 1.6rem;"
/> @click="showImage(formData.businessLicensePhotos, index)"
</div> />
<div v-if="flag=='XQ'"> <div v-if="flag=='XG'" class="van-uploader__preview-delete" @click="handleDeleteFloorPlan(index, 'license')"><i class="van-icon van-icon-cross van-uploader__preview-delete-icon"></i></div>
<img </div>
v-for="(imgItem, subIndex) in formData.businessLicensePhotos" <div v-if="formData.businessLicensePhotos.length<1 && flag=='XG' ">
:src="imgItem" <van-uploader
alt="" :before-read="beforeRead"
style="width: 1.2rem; height: 1.2rem; margin-right: 0.2rem" :after-read="(file) => afterRead(file, 'license')"
@click="showImage(formData.businessLicensePhotos,subIndex)" class="uploader-wrapper"
/> :deletable="false"
:preview-image="false"
>
<img src="../image/code/upload.png" style="width:1.6rem;height: 1.6rem;" alt="" srcset="">
</van-uploader>
</div>
</div> </div>
</div> </div>
<div> <div>
<h5 class="imager-item-title"> <h5 class="imager-item-title">
<span>门头图</span> <span class="form-label">门头图</span>
<span></span> <span></span>
</h5> </h5>
<div v-if="flag=='XG'"> <!-- 详情模式 -->
<van-uploader <div class="img-wrapper" style="display: flex;gap:.16rem;">
v-model="formData.storefrontPhotosH5" <div style="position: relative;" v-for="(imgItem, index) in formData.storefrontPhotos">
:max-count="4" <img
:after-read="handleFileUpload" :src="previewUrl + imgItem"
class="uploader-wrapper" style="width: 1.6rem; height: 1.6rem;"
/> @click="showImage(formData.storefrontPhotos, index)"
</div> />
<div v-if="flag=='XQ'"> <div v-if="flag=='XG'" class="van-uploader__preview-delete" @click="handleDeleteFloorPlan(index, 'storeFront')"><i class="van-icon van-icon-cross van-uploader__preview-delete-icon"></i></div>
<img </div>
v-for="(imgItem, subIndex) in formData.storefrontPhotos" <div v-if="formData.storefrontPhotos.length<1 && flag=='XG' ">
:src="imgItem" <van-uploader
alt="" :before-read="beforeRead"
style="width: 1.2rem; height: 1.2rem; margin-right: 0.2rem" :after-read="(file) => afterRead(file, 'storeFront')"
@click="showImage(formData.storefrontPhotos,subIndex)" class="uploader-wrapper"
/> :deletable="false"
:preview-image="false"
>
<img src="../image/code/upload.png" style="width:1.6rem;height: 1.6rem;" alt="" srcset="">
</van-uploader>
</div>
</div> </div>
</div> </div>
...@@ -301,7 +315,7 @@ ...@@ -301,7 +315,7 @@
class="imager-item-title" class="imager-item-title"
style="border: none" style="border: none"
> >
<span>安全二维码</span> <span class="form-label">安全二维码</span>
<span></span> <span></span>
</h5> </h5>
<div> <div>
......
This diff is collapsed.
html, html,
body { body {
background-color: #fff; background-color: #fff;
} }
.wrapper { .wrapper {
/* padding: 0.2rem; */ /* padding: 0.2rem; */
} }
/* 添加以下样式 */ /* 添加以下样式 */
.van-cell { .van-cell {
padding: 12px 16px; padding: 12px 16px;
} }
.van-field__label { .van-field__label {
font-weight: bold; font-weight: bold;
color: #000; color: #222 !important;
font-size: .28rem; font-size: 0.28rem;
} }
.van-field__control { .van-field__control {
color: #737373; color: #737373;
} }
.container { .container {
text-align: center; text-align: center;
margin-top: .3rem; margin-top: 0.3rem;
} }
.qr-card {
margin-bottom: 10px;
}
.qr-card { .save-btn {
margin-bottom: 10px; background: #1890ff;
} color: #fff;
border: none;
padding: 7px 20px;
border-radius: 3px;
font-size: 16px;
cursor: pointer;
margin-bottom: 0.4rem;
}
.save-btn { .hideEle {
background: #1890ff; /* visibility: hidden; */
color: #fff; display: none;
border: none; }
padding: 7px 20px; .textStyleWrapper {
border-radius: 3px; display: flex;
font-size: 16px; padding-top: 0.12rem;
cursor: pointer; padding-bottom: 0.12rem;
margin-bottom: .4rem; }
} .textStyleLabel {
display: inline-block;
.hideEle { width: 1.72rem;
/* visibility: hidden; */ min-width: 1.72rem;
display: none; padding: 0.2rem;
} padding-left: 0.3rem;
.textStyleWrapper{ color: #222;
display: flex; font-size: 0.28rem;
padding-top: 0.12rem; font-weight: bold;
padding-bottom: 0.12rem; }
}
.textStyleLabel{ .textStyleText {
display: inline-block; display: inline-block;
width: 1.72rem; /* width: 1.72rem; */
min-width: 1.72rem; padding: 0.2rem;
padding: .2rem; padding-left: 0;
padding-left: .3rem; color: #333;
color: #9b9fab; font-size: 0.28rem;
font-size: .28rem; }
font-weight: bold;
}
.textStyleText{
display: inline-block;
/* width: 1.72rem; */
padding: .2rem;
padding-left: 0;
color: #c8c9cc;
font-size: .28rem;
}
\ No newline at end of file
...@@ -7,6 +7,14 @@ ...@@ -7,6 +7,14 @@
content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0, viewprot-fit:cover"> content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0, viewprot-fit:cover">
<title>高区“码”上</title> <title>高区“码”上</title>
<script type="text/javascript" src="../sdk/includeHead.js"></script> <script type="text/javascript" src="../sdk/includeHead.js"></script>
<style>
/* 添加禁用状态文字颜色保持 */
input:disabled,
input[disabled] {
color: #333 !important; /* 保持与正常状态相同的颜色 */
-webkit-text-fill-color: #333 !important; /* 兼容iOS Safari */
}
</style>
</head> </head>
<div id="app"> <div id="app">
<div class="wrapper" v-cloak> <div class="wrapper" v-cloak>
...@@ -27,7 +35,7 @@ ...@@ -27,7 +35,7 @@
</div> </div>
</van-cell-group> </van-cell-group>
<van-cell-group> <van-cell-group>
<van-field label="电话" v-model="formData.merchantPhone" type="number" :disabled="flag=='XQ'" /> <van-field label="电话" style="color: #222" v-model="formData.merchantPhone" type="number" :disabled="flag=='XQ'" />
</van-cell-group> </van-cell-group>
<van-cell-group> <van-cell-group>
<!-- <van-field label="地址" v-model="formData.businessAddress" :disabled="flag=='XQ'" /> --> <!-- <van-field label="地址" v-model="formData.businessAddress" :disabled="flag=='XQ'" /> -->
...@@ -38,7 +46,7 @@ ...@@ -38,7 +46,7 @@
</van-cell-group> </van-cell-group>
<van-cell-group> <van-cell-group>
<van-field label="场所类型" v-model="formData.smallPlaceTypeName" :disabled="flag=='XQ'" /> <van-field label="场所类型" style="color: #222" v-model="formData.smallPlaceTypeName" :disabled="flag=='XQ'" />
</van-cell-group> </van-cell-group>
<!-- <van-cell-group> <!-- <van-cell-group>
<van-field label="场所类型" v-model="formData.type" placeholder="请选择场所类型" readonly clickable <van-field label="场所类型" v-model="formData.type" placeholder="请选择场所类型" readonly clickable
...@@ -51,7 +59,7 @@ ...@@ -51,7 +59,7 @@
</van-popup> </van-popup>
--> -->
<van-cell-group> <van-cell-group>
<van-field label="安全二维码" :disabled="true" /> <van-field label="安全二维码" style="color: #222" :disabled="true" />
</van-cell-group> </van-cell-group>
</van-cell-group> </van-cell-group>
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<div class="detail"> <div class="detail">
<van-row> <van-row>
<van-col span="24">场所类型: {{merInformation.smallPlaceTypeName}}</van-col> <van-col span="24">场所类型: {{merInformation.smallPlaceTypeName}}</van-col>
<div class="detail_link" @click="navTo('shanghu_detail')">详情<van-icon name="arrow" /></div> <div class="detail_link" @click="navTo('shanghu_detail-edit')">详情<van-icon name="arrow" /></div>
</van-row> </van-row>
<van-row type="flex" justify="space-around" <van-row type="flex" justify="space-around"
style="width:100%; margin-top: .3rem; margin-bottom: .3rem;"> style="width:100%; margin-top: .3rem; margin-bottom: .3rem;">
......
...@@ -44,7 +44,8 @@ ...@@ -44,7 +44,8 @@
<!-- 隐患列表 --> <!-- 隐患列表 -->
<van-list v-model:loading="loading" :offset="10" :finished="finished" finished-text="没有更多了" @load="getList" :immediate-check="false"> <van-list v-model:loading="loading" :offset="10" :finished="finished" finished-text="没有更多了" @load="getList" :immediate-check="false">
<van-cell v-for="item in hazardList" :key="item.id" class="list-item"> <van-cell v-for="item in hazardList" :key="item.id" class="list-item" @click="viewDetail(item)">
<div style="width: 100%;"> <div style="width: 100%;">
<!-- 第一行:隐患描述 --> <!-- 第一行:隐患描述 -->
<div style=" <div style="
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment