部分bug修复

This commit is contained in:
caoqianming 2021-04-23 13:53:57 +08:00
parent 1f866bbe16
commit dc71b71a3b
50 changed files with 43 additions and 112 deletions

View File

@ -1,3 +1,4 @@
node_modules/* node_modules/*
deploy.sh deploy.sh
package-lock.json package-lock.json
unpackage/*

View File

@ -15,6 +15,10 @@
*/ */
this.$u.api.getUserInfo().then(res=>{ this.$u.api.getUserInfo().then(res=>{
this.$u.vuex('vuex_user', res.data) this.$u.vuex('vuex_user', res.data)
}).catch(e=>{
uni.reLaunch({
url:'/pages/login/login'
})
}) })
}, },
} }

View File

@ -47,10 +47,9 @@ const install = (Vue, vm) => {
} }
else if(res.code === 401){ else if(res.code === 401){
vm.$u.toast('验证失败,请重新登录'); vm.$u.toast('验证失败,请重新登录');
setTimeout(() => { // uni.reLaunch({
// 此为uView的方法详见路由相关文档 // url:'/pages/login/login'
vm.$u.route('/pages/login/login') // })
}, 1500)
return false; return false;
} }
else{ else{

View File

@ -30,7 +30,6 @@
"<uses-feature android:name=\"android.hardware.camera\"/>", "<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_MOCK_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_MOCK_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
@ -45,7 +44,6 @@
"<uses-permission android:name=\"android.permission.INTERNET\"/>", "<uses-permission android:name=\"android.permission.INTERNET\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>", "<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>", "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.READ_SMS\"/>", "<uses-permission android:name=\"android.permission.READ_SMS\"/>",
@ -60,7 +58,8 @@
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>", "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SMS\"/>", "<uses-permission android:name=\"android.permission.WRITE_SMS\"/>",
"<uses-permission android:name=\"android.permission.RECEIVE_USER_PRESENT\"/>" "<uses-permission android:name=\"android.permission.RECEIVE_USER_PRESENT\"/>"
] ],
"autoSdkPermissions" : true
}, },
/* ios */ /* ios */
"ios" : { "ios" : {
@ -70,7 +69,8 @@
"sdkConfigs" : { "sdkConfigs" : {
"speech" : { "speech" : {
"ifly" : {} "ifly" : {}
} },
"ad" : {}
}, },
"orientation" : [ "portrait-primary" ] "orientation" : [ "portrait-primary" ]
} }
@ -82,7 +82,7 @@
"appid" : "wx126bdbf0c683c357", "appid" : "wx126bdbf0c683c357",
"setting" : { "setting" : {
"urlCheck" : false, "urlCheck" : false,
"minified" : false "minified" : true
}, },
"usingComponents" : true "usingComponents" : true
}, },

View File

@ -18,7 +18,7 @@
@body-click="taskClick" :index="item.id" padding="10"> @body-click="taskClick" :index="item.id" padding="10">
<view class="" slot="body"> <view class="" slot="body">
<view class="u-body-item-title"> <view class="u-body-item-title">
<span style="color:blue;border:1rpx solid blue;margin-right:6rpx">{{item.state}}</span> <span style="color:#2979FF;font-weight: bold;margin-right: 8rpx;">{{item.state}}</span>
{{item.name}} {{item.name}}
</view> </view>
<view class="u-body-item"> <view class="u-body-item">
@ -105,7 +105,11 @@
state: '执行中' state: '执行中'
}).then(res => { }).then(res => {
this.myinspecttaskList = res.data this.myinspecttaskList = res.data
}).catch(e => {}) }).catch(e => {
uni.reLaunch({
url:'/pages/login/login'
})
})
}, },
openPage(path) { openPage(path) {
this.$u.route({ this.$u.route({

View File

@ -1,10 +1,10 @@
<template> <template>
<view> <view class="wrap">
<u-card :title="initData.dept__name" margin="6rpx" :border="false" :foot-border-top="false" border-radius="2rpx" <u-card :title="initData.dept__name" margin="6rpx" :border="false" :foot-border-top="false" border-radius="2rpx"
:head-style="headstyle" padding="10"> :head-style="headstyle" padding="10">
<view class="" slot="body"> <view class="" slot="body">
<view class="u-body-item-title"> <view class="u-body-item-title">
<span style="color:blue;border:1rpx solid blue;margin-right:6rpx">{{initData.state}}</span> <span style="color:#2979FF;font-weight: bold;margin-right: 8rpx;">{{initData.state}}</span>
</view> </view>
</view> </view>
<view class="" slot="foot"> <view class="" slot="foot">
@ -20,7 +20,7 @@
<u-section title="详细项目" :right="false"></u-section> <u-section title="详细项目" :right="false"></u-section>
</view> </view>
<view style="background-color: #ffffff;padding: 8rpx;"> <view style="background-color: #ffffff;padding: 8rpx;">
<u-subsection :list="list" :current="currentIndex" @change="sectionChange"></u-subsection> <u-tabs :list="list" :is-scroll="false" :current="currentIndex" @change="sectionChange"></u-tabs>
<!-- <u-card v-for="(item, index) in records" v-bind:key="index" margin="6rpx" <!-- <u-card v-for="(item, index) in records" v-bind:key="index" margin="6rpx"
:border="false" :foot-border-top="false" border-radius="2rpx" :head-style="headstyle" :border="false" :foot-border-top="false" border-radius="2rpx" :head-style="headstyle"
@body-click="clickRow" :index="item.id" padding="10" v-if="getShow(item.checked)"> @body-click="clickRow" :index="item.id" padding="10" v-if="getShow(item.checked)">
@ -42,7 +42,7 @@
style="padding: 12rpx;"> style="padding: 12rpx;">
<view class="u-body-item-title">{{item.item_.sortnum}}.{{item.item_.name}}</view> <view class="u-body-item-title">{{item.item_.sortnum}}.{{item.item_.name}}</view>
<view class="u-body-item"> <view class="u-body-item">
<span>{{item.checker_.name}}</span>-- <span v-if="item.checker_">{{item.checker_.name}}</span>--
<span v-if="item.result=='发现'" style="color:red">{{item.result}}</span> <span v-if="item.result=='发现'" style="color:red">{{item.result}}</span>
<span v-else-if="item.result=='未发现'" style="color:green">{{item.result}}</span> <span v-else-if="item.result=='未发现'" style="color:green">{{item.result}}</span>
<span v-else-if="item.result=='不适用'">{{item.result}}</span> <span v-else-if="item.result=='不适用'">{{item.result}}</span>

View File

@ -1,5 +1,5 @@
<template> <template>
<view style="padding-left: 16rpx;padding-right: 16rpx;padding-bottom: 16rpx;"> <view style="padding-left: 24rpx;padding-right: 24rpx;padding-bottom: 16rpx;">
<u-form :model="form" label-position="top" :label-style="labelStyle" ref="uForm" :rules="rules" <u-form :model="form" label-position="top" :label-style="labelStyle" ref="uForm" :rules="rules"
:errorType="errorType"> :errorType="errorType">
<u-form-item label="检查事项"> <u-form-item label="检查事项">

View File

@ -1,5 +1,5 @@
<template> <template>
<view style="padding-left: 16rpx;padding-right: 16rpx;padding-bottom: 16rpx;"> <view style="padding-left: 24rpx;padding-right: 24rpx;padding-bottom: 16rpx;">
<u-form :model="form" label-position="top" :label-style="labelStyle" ref="uForm" :rules="rules" <u-form :model="form" label-position="top" :label-style="labelStyle" ref="uForm" :rules="rules"
:errorType="errorType"> :errorType="errorType">
<u-form-item label="检查事项"> <u-form-item label="检查事项">

View File

@ -20,7 +20,7 @@
</view> </view>
<u-verification-code seconds="30" ref="uCode" @change="codeChange"></u-verification-code> <u-verification-code seconds="30" ref="uCode" @change="codeChange"></u-verification-code>
<view class="buttom"> <view class="buttom">
<view class="loginType"> <!-- <view class="loginType">
<view class="wechat item"> <view class="wechat item">
<view class="icon"><u-icon size="70" name="weixin-fill" color="rgb(83,194,64)"></u-icon></view> <view class="icon"><u-icon size="70" name="weixin-fill" color="rgb(83,194,64)"></u-icon></view>
微信 微信
@ -29,7 +29,7 @@
<view class="icon"><u-icon size="70" name="qq-fill" color="rgb(17,183,233)"></u-icon></view> <view class="icon"><u-icon size="70" name="qq-fill" color="rgb(17,183,233)"></u-icon></view>
QQ QQ
</view> </view>
</view> </view> -->
</view> </view>
</view> </view>
</template> </template>

View File

@ -5,7 +5,7 @@
@body-click="taskClick" :index="item.id"> @body-click="taskClick" :index="item.id">
<view class="" slot="body"> <view class="" slot="body">
<view class="u-body-item-title"> <view class="u-body-item-title">
<span style="color:blue;border:1rpx solid blue;margin-right:6rpx">{{item.state}}</span> <span style="color:#2979FF;font-weight: bold;margin-right: 8rpx;">{{item.state}}</span>
{{item.name}} {{item.name}}
</view> </view>
<view class="u-body-item"> <view class="u-body-item">

View File

@ -1,10 +1,10 @@
<template> <template>
<view> <view class="wrap">
<u-card :title="subtask.name" margin="6rpx" :border="false" :foot-border-top="false" border-radius="2rpx" <u-card :title="subtask.name" margin="6rpx" :border="false" :foot-border-top="false" border-radius="2rpx"
:head-style="headstyle" padding="10"> :head-style="headstyle" padding="10">
<view class="" slot="body"> <view class="" slot="body">
<view class="u-body-item-title"> <view class="u-body-item-title">
<span style="color:blue;border:1rpx solid blue;margin-right:6rpx">{{subtask.state}}</span> <span style="color:#2979FF;font-weight: bold;margin-right: 4rpx;">{{subtask.state}}</span>
{{subtask.name}} {{subtask.name}}
</view> </view>
<view class="u-body-item"> <view class="u-body-item">
@ -40,7 +40,8 @@
</view> </view>
</u-card> </u-card>
<view style="background-color: #ffffff;padding: 8rpx 4rpx 0rpx 4rpx;"> <view style="background-color: #ffffff;padding: 8rpx 4rpx 0rpx 4rpx;">
<u-subsection :list="list" :current="currentIndex" @change="sectionChange"></u-subsection> <!-- <u-subsection :list="list" :current="currentIndex" @change="sectionChange"></u-subsection> -->
<u-tabs :list="list" :is-scroll="false" :current="currentIndex" @change="sectionChange"></u-tabs>
<u-cell-group v-if="nowdepts.length>0"> <u-cell-group v-if="nowdepts.length>0">
<u-cell-item v-for="(item, index) in nowdepts" v-bind:key="index" :title="item.dept__name" :arrow="true" <u-cell-item v-for="(item, index) in nowdepts" v-bind:key="index" :title="item.dept__name" :arrow="true"
@click="cellClick(item)"></u-cell-item> @click="cellClick(item)"></u-cell-item>
@ -113,9 +114,9 @@
background-color: #ededed; background-color: #ededed;
} }
.u-cell { /* .u-cell {
padding: 12rpx 24rpx !important; padding: 12rpx 24rpx !important;
} } */
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
.u-body-item-title { .u-body-item-title {

View File

@ -33,9 +33,14 @@ const store = new Vuex.Store({
// 加上vuex_前缀是防止变量名冲突也让人一目了然 // 加上vuex_前缀是防止变量名冲突也让人一目了然
vuex_user: lifeData.vuex_user ? lifeData.vuex_user : {}, vuex_user: lifeData.vuex_user ? lifeData.vuex_user : {},
vuex_token: lifeData.vuex_token ? lifeData.vuex_token : '', vuex_token: lifeData.vuex_token ? lifeData.vuex_token : '',
vuex_host: 'http://127.0.0.1:8000', // vuex_host: 'http://127.0.0.1:8000',
vuex_api: 'http://127.0.0.1:8000/api', // vuex_api: 'http://127.0.0.1:8000/api',
vuex_apifile: 'http://127.0.0.1:8000/api/file/' // vuex_apifile: 'http://127.0.0.1:8000/api/file/',
vuex_host: 'http://testsearch.ctc.ac.cn',
vuex_api: 'http://testsearch.ctc.ac.cn:8000/api',
vuex_apifile: 'http://testsearch.ctc.ac.cn:8000/api/file/',
// 如果vuex_version无需保存到本地永久存储无需lifeData.vuex_version方式 // 如果vuex_version无需保存到本地永久存储无需lifeData.vuex_version方式
// vuex_version: '1.0.1', // vuex_version: '1.0.1',
// vuex_demo: '绛紫', // vuex_demo: '绛紫',

Binary file not shown.

Before

Width:  |  Height:  |  Size: 332 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -1,25 +0,0 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<script>
var __UniViewStartTime__ = Date.now();
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
CSS.supports('top: constant(a)'))
document.write(
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
</script>
<title>View</title>
<link rel="stylesheet" href="view.css" />
</head>
<body>
<div id="app"></div>
<script src="__uniappes6.js"></script>
<script src="view.umd.min.js"></script>
<script src="app-view.js"></script>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
(function(e){function r(r){for(var n,l,i=r[0],p=r[1],a=r[2],c=0,s=[];c<i.length;c++)l=i[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in p)Object.prototype.hasOwnProperty.call(p,n)&&(e[n]=p[n]);f&&f(r);while(s.length)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var p=t[i];0!==o[p]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={"app-config":0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e["default"]}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var i=this["webpackJsonp"]=this["webpackJsonp"]||[],p=i.push.bind(i);i.push=r,i=i.slice();for(var a=0;a<i.length;a++)r(i[a]);var f=p;t()})([]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__01C03DB","name":"client_mp","version":{"name":"1.8.2","code":"100"},"description":"多平台快速开发的UI框架","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#FFFFFF"},"optimization":{"subPackages":true},"safearea":{"bottom":{"offset":"none"}},"usingComponents":true,"nvueCompiler":"uni-app","compilerVersion":3,"allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"2.9.8","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"color":"#909399","selectedColor":"#303133","backgroundColor":"#FFFFFF","borderStyle":"rgba(0,0,0,0.4)","list":[{"pagePath":"pages/home/home","iconPath":"static/uview/example/component.png","selectedIconPath":"static/uview/example/component_select.png","text":"主页"},{"pagePath":"pages/uview/uview","iconPath":"static/uview/example/js.png","selectedIconPath":"static/uview/example/js_select.png","text":"uview"},{"pagePath":"pages/my/my","iconPath":"static/uview/example/template.png","selectedIconPath":"static/uview/example/template_select.png","text":"我的"}],"height":"50px","child":["lauchwebview"],"selected":0},"launch_path":"__uniappview.html"}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long