bug以及优化

main
123456 4 months ago
parent 8c0bc7d73b
commit 34cb2b56e5
  1. 25
      pages/index/searchList.vue
  2. 3
      pages/release/detail.vue
  3. 50
      pages/release/index.vue
  4. 8
      pages/user/index.vue

@ -10,17 +10,17 @@
<view class="btn" @click="toSearch(2)">搜索</view>
</view>
<view class="content">
<view class="l" v-if="filter.main_realname">查询信息</view>
<view class="list" v-if="filter.main_realname">
<view class="li">
<view class="a">姓名{{filter.main_realname}}</view>
<view class="a" v-if="filter.main_cardno">身份证号{{filter.main_cardno}}</view>
<view class="a" v-if="filter.main_phone">手机号{{filter.main_phone}}</view>
<view class="a" v-if="filter.main_qq">QQ号{{filter.main_qq}}</view>
<view class="a" v-if="filter.main_wechat">微信号{{filter.main_wechat}}</view>
<view class="a" v-if="filter.main_address">居住地址{{filter.main_address}}</view>
<view class="a" v-if="filter.main_jiguan">籍贯{{filter.main_jiguan}}</view>
<view class="a" v-if="filter.main_company">公司{{filter.main_company}}</view>
<view class="l" v-if="info.length >0">查询信息</view>
<view class="list" v-if="info.length >0">
<view class="li" v-for="(a,i) in info" :key="i">
<view class="a">姓名{{a.main_realname}}</view>
<view class="a" v-if="a.main_cardno">身份证号{{a.main_cardno}}</view>
<view class="a" v-if="a.main_phone">手机号{{a.main_phone}}</view>
<view class="a" v-if="a.main_qq">QQ号{{a.main_qq}}</view>
<view class="a" v-if="a.main_wechat">微信号{{a.main_wechat}}</view>
<view class="a" v-if="a.main_address">居住地址{{a.main_address}}</view>
<view class="a" v-if="a.main_jiguan">籍贯{{a.main_jiguan}}</view>
<view class="a" v-if="a.main_company">公司{{a.main_company}}</view>
</view>
</view>
<view class="l">数据列表</view>
@ -50,6 +50,7 @@
title: "",
show: false,
list: [],
info: [],
total: 1,
filter: {
content_type_id: "",
@ -67,6 +68,7 @@
},
onLoad() {
this.filter = uni.getStorageSync("filterInfo")
this.filter.keyword = uni.getStorageSync("filterInfo").keyword?uni.getStorageSync("filterInfo").keyword:(uni.getStorageSync("filterInfo").main_realname?uni.getStorageSync("filterInfo").main_realname:"")
this.getContentList();
},
methods: {
@ -90,6 +92,7 @@
})
if(code == 1){
this.list = data.rows;
this.info = data.showinfo;
this.total = data.total;
}
},

@ -580,6 +580,7 @@
top: 0;
z-index: 2;
filter: blur(3px);
background-color: rgba(255,255,255,0.7);
}
.in{
width: 580rpx;
@ -592,7 +593,7 @@
top: 50%;
margin-left: -290rpx;
margin-top: -160rpx;
z-index: 1;
z-index: 4;
image{
width: 79rpx;
height: 69rpx;

@ -96,7 +96,7 @@
<view class="menu">
<textarea class="box1" v-model="title" placeholder="请输入简短的标题,便于用户快速搜索"></textarea>
</view>
<view class="title">详细说明<text>*</text></view>
<view class="title">详细说明<text>*</text><text class="tip">(最多9张图片视频不超过50MB)</text></view>
<view class="menu">
<textarea class="box1" v-model="content" placeholder="发布内容,务必确保您所发布的内容真实,证据可靠。此处仅描述事件内容,除姓名外切勿出现其他隐私内容。保护个人隐私,尊重他人隐私,合法合规!"></textarea>
<view class="pic">
@ -230,6 +230,21 @@
})
this.content_tag = arr;
console.log(this.content_tag)
if(uni.getStorageSync("userInfo").status !=1){
uni.showModal({
title: '温馨提示',
content: '当前用户没有认证',
confirmText: "去认证",
success(res) {
if(res.confirm){
uni.navigateTo({
url: "/pages/user/verification"
})
}
}
})
return ;
}
if (!this.main_realname) {
uni.showToast({
title: '请输入当事人姓名',
@ -273,20 +288,20 @@
return
}
let total = 0;
if(this.zhengren.length >0){
this.zhengren.map(a=>{
if(a.realname){
total++
}
})
}
if(total != this.zhengren.length){
uni.showToast({
title: '请完善证人信息',
icon: 'none',
})
return
}
// if(this.zhengren.length >0){
// this.zhengren.map(a=>{
// if(a.realname){
// total++
// }
// })
// }
// if(total != this.zhengren.length){
// uni.showToast({
// title: '',
// icon: 'none',
// })
// return
// }
const { code, data, msg } = await this.$api.setContent({
main_realname: this.main_realname,
content_type_id: this.content_type_id,
@ -489,6 +504,11 @@
font-size: 24rpx;
color: #999999;
}
.tip{
font-size: 24rpx;
color: #999999;
margin-left: 20rpx;
}
.add{
float: right;
color: #00C6A9;

@ -113,8 +113,16 @@
}else{
this.userInfo = {}
}
this.systembasicInfoopen();
},
methods: {
//
async systembasicInfoopen() {
const { code, data } = await this.$api.systembasicInfoopen({})
if(code == 1){
uni.setStorageSync("systembasicInfoopen",data)
}
},
//
async getlianxi() {
const { code, data } = await this.$api.getlianxi({})

Loading…
Cancel
Save