研发访客须知

master
lion 2 years ago
parent c9ca17fb2e
commit 87566c4f23

@ -2,13 +2,22 @@
<page-meta :page-style="'overflow:'+(adminListShow||configshow||areaShow?'hidden':'visible')"></page-meta>
<view class="containers">
<!-- 拜访须知 -->
<u-popup :show="configshow" class="configwrap" closeable mode="bottom" @close="closeConfig">
<u-popup :show="configshow" :mask-close-able="false" class="configwrap" mode="bottom">
<view class="configtitle">
{{configInfo.name}}
</view>
<view class="configvalue" v-html="configInfo.value">
<view class="configvalue">
<view v-html="configInfo.value">
</view>
<view style="text-align: center;">
<view class="configbtn" @click="closeConfig">
确认
</view>
</view>
</view>
</u-popup>
<!-- 普通访客 先选择区域 -->
@ -18,11 +27,10 @@
</view>
<block v-if="visitArea.length>0">
<view class="configvalue areavalue">
<uni-data-checkbox mode="button" @change='changeVisitArea' v-model="form.visit_area_id" :localdata="visitArea"
:map="{text:'name',value:'id'}" />
<uni-data-checkbox mode="button" @change='changeVisitArea' v-model="form.visit_area_id"
:localdata="visitArea" :map="{text:'name',value:'id'}" />
</view>
<button class="areabtn" @click="closeArea" size="large" type="primary"
>确认</button>
<button class="areabtn" @click="closeArea" size="large" type="primary">确认</button>
</block>
<view class="configvalue configload" v-else>
@ -100,8 +108,7 @@
style="margin-bottom:20rpx">
<uni-easyinput disabled @tap="plateShow=true,carindex=index" v-model.trim="form.cars[index]"
placeholder="请输入到访车辆" />
<text @click="form.cars.splice(index,1)"
style="color: red;margin-left:20rpx">删除</text>
<text @click="form.cars.splice(index,1)" style="color: red;margin-left:20rpx">删除</text>
</view>
<plate-input v-if="plateShow" :plate="form.cars[carindex]" @export="setCars"
@close="plateShow = false" />
@ -116,8 +123,7 @@
style="margin-bottom:20rpx">
<uni-easyinput disabled @tap="plateShow=true,carindex=index" v-model.trim="form.cars[index]"
placeholder="请输入到访车辆" />
<text @click="form.cars.splice(index,1)"
style="color: red;margin-left:20rpx">删除</text>
<text @click="form.cars.splice(index,1)" style="color: red;margin-left:20rpx">删除</text>
</view>
<plate-input v-if="plateShow" :plate="form.cars[carindex]" @export="setCars"
@close="plateShow = false" />
@ -563,6 +569,10 @@
this.configKey = 'cjfk'
this.getConfig()
this.areaShow = false
} else if (this.visitAreaText == "研发R&D") {
this.configKey = 'yffk'
this.getConfig()
this.areaShow = false
} else {
this.configKey = 'ptfk'
this.getConfig()
@ -603,6 +613,9 @@
}, {
name: '生产区',
id: 4
}, {
name: "研发R&D",
id: 5
}]
// this.util.request({
// api: '/api/mobile/visit/visit-area',
@ -893,7 +906,9 @@
} else {
//
uni.requestSubscribeMessage({
tmplIds: ['DmzNRREPFdZrMWconNDdbj_ebtVPRWufq27kRQ25eNg','IczaKkCmwf55tAAzCcxb_fbbf5L25SWrSKvaBrkIyk4'],
tmplIds: ['DmzNRREPFdZrMWconNDdbj_ebtVPRWufq27kRQ25eNg',
'IczaKkCmwf55tAAzCcxb_fbbf5L25SWrSKvaBrkIyk4'
],
success(res) {
console.log("res", res)
uni.showToast({
@ -935,17 +950,31 @@
/deep/ .uni-drawer__content {
padding: 40rpx
}
.configtitle {
font-size: 40rpx;
text-align: center;
margin-top:36rpx
margin-top: 36rpx;
padding-bottom: 20rpx;
}
.configvalue {
padding: 40rpx;
font-size: 36rpx;
height: 600rpx;
overflow-y: auto;
}
.configbtn {
background: #044ed7;
padding: 20rpx;
/* display: inline-block; */
text-align: center;
margin: 20rpx auto;
color: #fff;
border-radius: 20rpx;
}
.configload {
display: flex;
justify-content: center;
@ -953,15 +982,17 @@
font-size: 50rpx;
color: #ddd;
}
.configload text {
margin-right: 20rpx
}
/deep/ .u-popup__content__close .u-icon__icon {
color: #fff !important
}
.areavalue{
}
.areavalue {}
.areabtn {
background-color: #044ed7;
/* margin-left: 8px; */
@ -971,6 +1002,7 @@
left: 0;
border-radius: 0;
}
/deep/ .areavalue .uni-data-checklist .checklist-group .checklist-box.is--button {
padding: 30rpx
}

Loading…
Cancel
Save