pad真机测试更改
parent
e0e2393fed
commit
80eb0d647d
1
App.vue
1
App.vue
|
@ -18,6 +18,7 @@
|
||||||
@import "style/css/flex-main.css";
|
@import "style/css/flex-main.css";
|
||||||
@import "/style/iconfont.css";
|
@import "/style/iconfont.css";
|
||||||
|
|
||||||
|
|
||||||
/deep/.uni-select {
|
/deep/.uni-select {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,7 +69,7 @@ export default {
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style lang="less" scoped>
|
||||||
.info {
|
.info {
|
||||||
text-indent: 2em;
|
text-indent: 2em;
|
||||||
font-size: 28upx;
|
font-size: 28upx;
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style lang="less" scoped>
|
||||||
.headInfo {
|
.headInfo {
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
|
23
main.js
23
main.js
|
@ -22,29 +22,6 @@ import liuStepBar from './uni_modules/liu-step-bar/components/liu-step-bar/liu-s
|
||||||
Vue.component('uni-pop', uniPop)
|
Vue.component('uni-pop', uniPop)
|
||||||
Vue.component('liu-step-bar', liuStepBar)
|
Vue.component('liu-step-bar', liuStepBar)
|
||||||
|
|
||||||
import Vant from 'vant';
|
|
||||||
import 'vant/lib/index.less';
|
|
||||||
Vue.use(Vant);
|
|
||||||
import {
|
|
||||||
RadioGroup,
|
|
||||||
Radio,
|
|
||||||
Button,
|
|
||||||
Uploader,
|
|
||||||
Field,
|
|
||||||
Checkbox,
|
|
||||||
CheckboxGroup,
|
|
||||||
Progress
|
|
||||||
} from 'vant';
|
|
||||||
|
|
||||||
Vue.use(Radio);
|
|
||||||
Vue.use(RadioGroup);
|
|
||||||
Vue.use(Button);
|
|
||||||
Vue.use(Uploader);
|
|
||||||
Vue.use(Field);
|
|
||||||
Vue.use(Checkbox);
|
|
||||||
Vue.use(CheckboxGroup);
|
|
||||||
|
|
||||||
|
|
||||||
const app = new Vue({
|
const app = new Vue({
|
||||||
store,
|
store,
|
||||||
...App
|
...App
|
||||||
|
|
|
@ -38,7 +38,8 @@
|
||||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||||
]
|
],
|
||||||
|
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
|
||||||
},
|
},
|
||||||
/* ios打包配置 */
|
/* ios打包配置 */
|
||||||
"ios" : {},
|
"ios" : {},
|
||||||
|
@ -62,9 +63,7 @@
|
||||||
"desc" : "获取当前定位判断距离"
|
"desc" : "获取当前定位判断距离"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"requiredPrivateInfos": [
|
"requiredPrivateInfos" : [ "getLocation" ],
|
||||||
"getLocation"
|
|
||||||
],
|
|
||||||
"plugins" : {
|
"plugins" : {
|
||||||
"ocr-plugin" : {
|
"ocr-plugin" : {
|
||||||
"version" : "3.1.1",
|
"version" : "3.1.1",
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style lang="less" scoped>
|
||||||
.container {
|
.container {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="login">
|
<view class="login">
|
||||||
<view class="loginBox">
|
<view class="loginBox">
|
||||||
<van-field v-model="account" left-icon="manager" placeholder="请输入账号"
|
<uni-easyinput prefixIcon="person-filled" v-model="account" placeholder="请输入账号"></uni-easyinput>
|
||||||
:rules="[{ required: true, message: '请输入账号' }]" />
|
<uni-easyinput type="password" prefixIcon="locked-filled" suffixIcon="search" v-model="account"
|
||||||
<van-field v-model="password" type="password" left-icon="lock" right-icon="eye" placeholder="请输入密码"
|
placeholder="请输入密码">
|
||||||
:rules="[{ required: true, message: '请输入密码' }]" @click-right-icon="rightIcon" v-if="!pwdType" />
|
</uni-easyinput>
|
||||||
<van-field v-model="password" left-icon="lock" right-icon="closed-eye" placeholder="请输入密码"
|
|
||||||
:rules="[{ required: true, message: '请输入密码' }]" @click-right-icon="rightIcon" v-else />
|
|
||||||
<view class="button" @click="loginGo('center')">登录</view>
|
<view class="button" @click="loginGo('center')">登录</view>
|
||||||
<uni-popup ref="popup" background-color="#fff" @change="change">
|
<uni-popup ref="popup" background-color="#fff" @change="change">
|
||||||
<view class="popupBox">
|
<view class="popupBox">
|
||||||
|
@ -37,8 +35,6 @@
|
||||||
account: 'rtoswuhan1',
|
account: 'rtoswuhan1',
|
||||||
// 123456
|
// 123456
|
||||||
password: '123456',
|
password: '123456',
|
||||||
// 密码状态
|
|
||||||
pwdType: false,
|
|
||||||
// 弹框状态
|
// 弹框状态
|
||||||
type: "",
|
type: "",
|
||||||
portList: [],
|
portList: [],
|
||||||
|
@ -63,10 +59,6 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 点击密码框右侧按钮
|
|
||||||
rightIcon() {
|
|
||||||
this.pwdType = !this.pwdType
|
|
||||||
},
|
|
||||||
// 登录
|
// 登录
|
||||||
loginGo(type) {
|
loginGo(type) {
|
||||||
if (this.account == "rtoswuhan1" && this.password == "123456") {
|
if (this.account == "rtoswuhan1" && this.password == "123456") {
|
||||||
|
@ -123,7 +115,7 @@
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
|
|
||||||
/deep/.van-cell {
|
/deep/.is-input-border {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,19 +5,14 @@
|
||||||
<side-bar path='3'></side-bar>
|
<side-bar path='3'></side-bar>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="form">
|
<view class="form">
|
||||||
<!-- <view class="select">
|
|
||||||
<uni-data-select v-model="pamValue" :localdata="pamList" @change="pamChange"
|
|
||||||
placeholder="请选择港口">
|
|
||||||
</uni-data-select>
|
|
||||||
</view> -->
|
|
||||||
<view class="select">
|
<view class="select">
|
||||||
<superwei-combox :candidates="shipList" :isJSON="true" keyName="spmName" placeholder="请选择船名航次"
|
<superwei-combox :candidates="shipList" :isJSON="true" keyName="spmName" placeholder="请选择船名航次"
|
||||||
v-model="shipName" @input="input_json" @select="select_json"></superwei-combox>
|
v-model="shipName" @input="input_json" @select="select_json"></superwei-combox>
|
||||||
</view>
|
</view>
|
||||||
<van-button type="default" @click="search">搜索</van-button>
|
<button class="searchBtn" type="default" @click="search">搜索</button>
|
||||||
</view>
|
</view>
|
||||||
<view class="itemList">
|
<view class="itemList">
|
||||||
<template v-if="total != 0">
|
<template v-if="itemList.length > 0">
|
||||||
<view v-for="(item, index) in itemList" :key="index" class="item" @click="toGo(item)">
|
<view v-for="(item, index) in itemList" :key="index" class="item" @click="toGo(item)">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
<view class="name">
|
<view class="name">
|
||||||
|
@ -71,10 +66,8 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="footer">
|
<view class="footer">
|
||||||
<view class="footer">
|
<view class="footer">
|
||||||
<van-button class="fitem" type="default"
|
<button class="fitem" type="default" @click.stop="download(item)">下载</button>
|
||||||
@click.stop="download(item)">下载</van-button>
|
<button class="fitem" type="default" @click.stop="upload(item)">上传</button>
|
||||||
<van-button class="fitem" type="default"
|
|
||||||
@click.stop="upload(item)">上传</van-button>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -82,7 +75,7 @@
|
||||||
</template>
|
</template>
|
||||||
<o-empty v-else height="70vh" bg="#f5f6fa" />
|
<o-empty v-else height="70vh" bg="#f5f6fa" />
|
||||||
</view>
|
</view>
|
||||||
<view class="pageBox" v-if="total != 0">
|
<view class="pageBox" v-if="itemList.length > 0">
|
||||||
<uni-pagination :show-icon="true" :total="total" :pageSize="pageSize" :current="current"
|
<uni-pagination :show-icon="true" :total="total" :pageSize="pageSize" :current="current"
|
||||||
@change="changePage" />
|
@change="changePage" />
|
||||||
</view>
|
</view>
|
||||||
|
@ -122,7 +115,6 @@
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.pamValue = uni.getStorageSync('portObj').portId
|
this.pamValue = uni.getStorageSync('portObj').portId
|
||||||
// this.getPam();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取船的数据
|
// 获取船的数据
|
||||||
|
@ -161,28 +153,6 @@
|
||||||
this.current = e.current;
|
this.current = e.current;
|
||||||
this.initData()
|
this.initData()
|
||||||
},
|
},
|
||||||
// 获取港区下拉数据
|
|
||||||
// getPam() {
|
|
||||||
// uni.request({
|
|
||||||
// url: this.$local + '/api/shipOperate/queryPortArea',
|
|
||||||
// header: {
|
|
||||||
// 'Content-Type': 'application/json' //自定义请求头信息
|
|
||||||
// },
|
|
||||||
// method: 'GET', //请求方式,必须为大写
|
|
||||||
// success: (res) => {
|
|
||||||
// console.log('接口返回------', res);
|
|
||||||
// if (res.statusCode === 200) {
|
|
||||||
// let arr = res.data.data;
|
|
||||||
// arr.forEach((v, index) => {
|
|
||||||
// this.pamList.push({
|
|
||||||
// text: v.pamName,
|
|
||||||
// value: v.pamId
|
|
||||||
// })
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// },
|
|
||||||
// 获取船名航次下拉数据
|
// 获取船名航次下拉数据
|
||||||
getShip() {
|
getShip() {
|
||||||
uni.request({
|
uni.request({
|
||||||
|
@ -211,7 +181,17 @@
|
||||||
},
|
},
|
||||||
// 点击搜索
|
// 点击搜索
|
||||||
search() {
|
search() {
|
||||||
this.initData()
|
this.itemList = [{
|
||||||
|
uploadTime: "1",
|
||||||
|
uploadStatusDesc: "2",
|
||||||
|
actualBerthageName: "3",
|
||||||
|
planBerthageName: "4",
|
||||||
|
outTradeTypeName: "5",
|
||||||
|
outVvyName: "6",
|
||||||
|
inTradeTypeName: "7",
|
||||||
|
inVvyName: "8"
|
||||||
|
}]
|
||||||
|
// this.initData()
|
||||||
},
|
},
|
||||||
// 下载
|
// 下载
|
||||||
download(item) {
|
download(item) {
|
||||||
|
@ -468,9 +448,10 @@
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/.van-button {
|
.searchBtn {
|
||||||
height: 35px;
|
height: 35px;
|
||||||
line-height: 35px;
|
line-height: 35px;
|
||||||
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,8 @@
|
||||||
<view class="uni-date">
|
<view class="uni-date">
|
||||||
<view class="uni-date-editor" @click="show">
|
<view class="uni-date-editor" @click="show">
|
||||||
<slot>
|
<slot>
|
||||||
<view
|
<view class="uni-date-editor--x"
|
||||||
class="uni-date-editor--x"
|
:class="{'uni-date-editor--x__disabled': disabled,'uni-date-x--border': border}">
|
||||||
:class="{'uni-date-editor--x__disabled': disabled,'uni-date-x--border': border}"
|
|
||||||
>
|
|
||||||
<view v-if="!isRange" class="uni-date-x uni-date-single">
|
<view v-if="!isRange" class="uni-date-x uni-date-single">
|
||||||
<uni-icons class="icon-calendar" type="calendar" color="#c0c4cc" size="22"></uni-icons>
|
<uni-icons class="icon-calendar" type="calendar" color="#c0c4cc" size="22"></uni-icons>
|
||||||
<view class="uni-date__x-input">{{ displayValue || singlePlaceholderText }}</view>
|
<view class="uni-date__x-input">{{ displayValue || singlePlaceholderText }}</view>
|
||||||
|
@ -13,11 +11,15 @@
|
||||||
|
|
||||||
<view v-else class="uni-date-x uni-date-range">
|
<view v-else class="uni-date-x uni-date-range">
|
||||||
<uni-icons class="icon-calendar" type="calendar" color="#c0c4cc" size="22"></uni-icons>
|
<uni-icons class="icon-calendar" type="calendar" color="#c0c4cc" size="22"></uni-icons>
|
||||||
<view class="uni-date__x-input text-center">{{ displayRangeValue.startDate || startPlaceholderText }}</view>
|
<view class="uni-date__x-input text-center">
|
||||||
|
{{ displayRangeValue.startDate || startPlaceholderText }}
|
||||||
|
</view>
|
||||||
|
|
||||||
<view class="range-separator">{{rangeSeparator}}</view>
|
<view class="range-separator">{{rangeSeparator}}</view>
|
||||||
|
|
||||||
<view class="uni-date__x-input text-center">{{ displayRangeValue.endDate || endPlaceholderText }}</view>
|
<view class="uni-date__x-input text-center">
|
||||||
|
{{ displayRangeValue.endDate || endPlaceholderText }}
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view v-if="showClearIcon" class="uni-date__icon-clear" @click.stop="clear">
|
<view v-if="showClearIcon" class="uni-date__icon-clear" @click.stop="clear">
|
||||||
|
@ -38,16 +40,16 @@
|
||||||
:placeholder="selectDateText" />
|
:placeholder="selectDateText" />
|
||||||
|
|
||||||
<time-picker type="time" v-model="pickerTime" :border="false" :disabled="!inputDate"
|
<time-picker type="time" v-model="pickerTime" :border="false" :disabled="!inputDate"
|
||||||
:start="timepickerStartTime" :end="timepickerEndTime" :hideSecond="hideSecond" style="width: 100%;">
|
:start="timepickerStartTime" :end="timepickerEndTime" :hideSecond="hideSecond"
|
||||||
<input class="uni-date__input text-center" type="text" v-model="pickerTime" :placeholder="selectTimeText"
|
style="width: 100%;">
|
||||||
:disabled="!inputDate" />
|
<input class="uni-date__input text-center" type="text" v-model="pickerTime"
|
||||||
|
:placeholder="selectTimeText" :disabled="!inputDate" />
|
||||||
</time-picker>
|
</time-picker>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<Calendar ref="pcSingle" :showMonth="false" :start-date="calendarRange.startDate"
|
<Calendar ref="pcSingle" :showMonth="false" :start-date="calendarRange.startDate"
|
||||||
:end-date="calendarRange.endDate" :date="calendarDate" @change="singleChange"
|
:end-date="calendarRange.endDate" :date="calendarDate" @change="singleChange"
|
||||||
:default-value="defaultValue"
|
:default-value="defaultValue" style="padding: 0 8px;" />
|
||||||
style="padding: 0 8px;" />
|
|
||||||
|
|
||||||
<view v-if="hasTime" class="popup-x-footer">
|
<view v-if="hasTime" class="popup-x-footer">
|
||||||
<text class="confirm-text" @click="confirmSingleChange">{{okText}}</text>
|
<text class="confirm-text" @click="confirmSingleChange">{{okText}}</text>
|
||||||
|
@ -61,8 +63,8 @@
|
||||||
<input class="uni-date__input uni-date-range__input" type="text" v-model="tempRange.startDate"
|
<input class="uni-date__input uni-date-range__input" type="text" v-model="tempRange.startDate"
|
||||||
:placeholder="startDateText" />
|
:placeholder="startDateText" />
|
||||||
|
|
||||||
<time-picker type="time" v-model="tempRange.startTime" :start="timepickerStartTime" :border="false"
|
<time-picker type="time" v-model="tempRange.startTime" :start="timepickerStartTime"
|
||||||
:disabled="!tempRange.startDate" :hideSecond="hideSecond">
|
:border="false" :disabled="!tempRange.startDate" :hideSecond="hideSecond">
|
||||||
<input class="uni-date__input uni-date-range__input" type="text"
|
<input class="uni-date__input uni-date-range__input" type="text"
|
||||||
v-model="tempRange.startTime" :placeholder="startTimeText"
|
v-model="tempRange.startTime" :placeholder="startTimeText"
|
||||||
:disabled="!tempRange.startDate" />
|
:disabled="!tempRange.startDate" />
|
||||||
|
@ -102,8 +104,7 @@
|
||||||
|
|
||||||
<Calendar v-if="isPhone" ref="mobile" :clearDate="false" :date="calendarDate" :defTime="mobileCalendarTime"
|
<Calendar v-if="isPhone" ref="mobile" :clearDate="false" :date="calendarDate" :defTime="mobileCalendarTime"
|
||||||
:start-date="calendarRange.startDate" :end-date="calendarRange.endDate" :selectableTimes="mobSelectableTime"
|
:start-date="calendarRange.startDate" :end-date="calendarRange.endDate" :selectableTimes="mobSelectableTime"
|
||||||
:startPlaceholder="startPlaceholder" :endPlaceholder="endPlaceholder"
|
:startPlaceholder="startPlaceholder" :endPlaceholder="endPlaceholder" :default-value="defaultValue"
|
||||||
:default-value="defaultValue"
|
|
||||||
:pleStatus="endMultipleStatus" :showMonth="false" :range="isRange" :hasTime="hasTime" :insert="false"
|
:pleStatus="endMultipleStatus" :showMonth="false" :range="isRange" :hasTime="hasTime" :insert="false"
|
||||||
:hideSecond="hideSecond" @confirm="mobileChange" @maskClose="close" />
|
:hideSecond="hideSecond" @confirm="mobileChange" @maskClose="close" />
|
||||||
</view>
|
</view>
|
||||||
|
@ -133,9 +134,19 @@
|
||||||
**/
|
**/
|
||||||
import Calendar from './calendar.vue'
|
import Calendar from './calendar.vue'
|
||||||
import TimePicker from './time-picker.vue'
|
import TimePicker from './time-picker.vue'
|
||||||
import { initVueI18n } from '@dcloudio/uni-i18n'
|
import {
|
||||||
|
initVueI18n
|
||||||
|
} from '@dcloudio/uni-i18n'
|
||||||
import i18nMessages from './i18n/index.js'
|
import i18nMessages from './i18n/index.js'
|
||||||
import { getDateTime, getDate, getTime, getDefaultSecond, dateCompare, checkDate, fixIosDateFormat } from './util'
|
import {
|
||||||
|
getDateTime,
|
||||||
|
getDate,
|
||||||
|
getTime,
|
||||||
|
getDefaultSecond,
|
||||||
|
dateCompare,
|
||||||
|
checkDate,
|
||||||
|
fixIosDateFormat
|
||||||
|
} from './util'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'UniDatetimePicker',
|
name: 'UniDatetimePicker',
|
||||||
|
@ -373,7 +384,8 @@
|
||||||
return this.i18nT("uni-datetime-picker.clear")
|
return this.i18nT("uni-datetime-picker.clear")
|
||||||
},
|
},
|
||||||
showClearIcon() {
|
showClearIcon() {
|
||||||
return this.clearIcon && !this.disabled && (this.displayValue || (this.displayRangeValue.startDate && this.displayRangeValue.endDate))
|
return this.clearIcon && !this.disabled && (this.displayValue || (this.displayRangeValue.startDate && this
|
||||||
|
.displayRangeValue.endDate))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -454,7 +466,9 @@
|
||||||
this.isPhone = navigator.userAgent.toLowerCase().indexOf('mobile') !== -1
|
this.isPhone = navigator.userAgent.toLowerCase().indexOf('mobile') !== -1
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const { windowWidth } = uni.getSystemInfoSync()
|
const {
|
||||||
|
windowWidth
|
||||||
|
} = uni.getSystemInfoSync()
|
||||||
this.isPhone = windowWidth <= 500
|
this.isPhone = windowWidth <= 500
|
||||||
this.windowWidth = windowWidth
|
this.windowWidth = windowWidth
|
||||||
},
|
},
|
||||||
|
@ -624,7 +638,10 @@
|
||||||
},
|
},
|
||||||
mobileChange(e) {
|
mobileChange(e) {
|
||||||
if (this.isRange) {
|
if (this.isRange) {
|
||||||
const {before, after} = e.range
|
const {
|
||||||
|
before,
|
||||||
|
after
|
||||||
|
} = e.range
|
||||||
|
|
||||||
if (!before || !after) {
|
if (!before || !after) {
|
||||||
return
|
return
|
||||||
|
@ -818,6 +835,7 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.uni-date-x {
|
.uni-date-x {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
@ -832,6 +850,7 @@
|
||||||
.icon-calendar {
|
.icon-calendar {
|
||||||
padding-left: 3px;
|
padding-left: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.range-separator {
|
.range-separator {
|
||||||
height: 35px;
|
height: 35px;
|
||||||
/* #ifndef MP */
|
/* #ifndef MP */
|
||||||
|
|
Loading…
Reference in New Issue