| | |
| | | onPageScroll(e) {
|
| | | // 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
|
| | | this.scrollTop = e.scrollTop;
|
| | | // console.log('屏幕滚动监听事件',this.scrollTop);
|
| | | },
|
| | | // 点击导航栏菜单后
|
| | | onNavigationBarButtonTap(e) {
|
| | |
| | | },
|
| | | deep: true,
|
| | | immediate: true
|
| | | },
|
| | | scrollTop: {
|
| | | handler: function(newV, oldV) {
|
| | | if (newV != oldV) {
|
| | | this.keyBoardClose();
|
| | | // this.keyBoardShow = false;
|
| | | }
|
| | | }
|
| | | },
|
| | | deep: true,
|
| | | immediate: true
|
| | | // scrollTop: {
|
| | | // handler: function(newV, oldV) {
|
| | | // if (newV != oldV) {
|
| | | // this.keyBoardClose();
|
| | | // // this.keyBoardShow = false;
|
| | | // }
|
| | | // },
|
| | | // deep: true,
|
| | | // immediate: true
|
| | | // }
|
| | | },
|
| | | methods: {
|
| | | init() {
|
| | |
| | | //提交
|
| | | dataFormSubmit() {
|
| | | this.overlayShow = true;
|
| | | uni.showLoading({
|
| | | title:'加载中...'
|
| | | })
|
| | | this.fyData.forEach(e => {
|
| | | if(!e.shippingDate && e.numPlan){
|
| | | e.shippingDate = this.info.shippingDate
|
| | | }
|
| | | });
|
| | | this.$reqPost('addObj', this.fyData).then(res => {
|
| | | uni.hideLoading();
|
| | | if(res.code == 0){
|
| | | setTimeout(()=>{
|
| | | uni.showToast({
|
| | |
| | | // 修改弹出框
|
| | | editPopupClose(){
|
| | | console.log('修改弹出框Close');
|
| | | // this.editPopupShow = false;
|
| | | this.editPopupShow = false;
|
| | | this.keyBoardShow = false;
|
| | | },
|
| | | editPopupOpen(){
|
| | | console.log('修改弹出框Open');
|
| | | },
|
| | | // 切换全部和已设置
|
| | | groupChange(n) {
|
| | | this.initVariable();
|
| | | this.isTomJihua = n;
|
| | | if (n == '已设置的计划') {
|
| | | this.xscarshippingdayplan();
|
| | |
| | | },
|
| | | //切换今日和明日
|
| | | tabClick(item) {
|
| | | this.initVariable();
|
| | | if (item.index == 1) {
|
| | | this.info.shippingDate = this.tomorrowDate();
|
| | | if (this.isTomJihua == '已设置的计划') {
|
| | |
| | | }
|
| | | }
|
| | | },
|
| | | // 初始化变量
|
| | | initVariable(){
|
| | | this.keyBoardShow = false;
|
| | | this.keyBoardValue = null;
|
| | | this.fayunPlanFocusId = null;
|
| | | uni.pageScrollTo({
|
| | | scrollTop: 0,
|
| | | duration: 300
|
| | | });
|
| | | },
|
| | | inputChange(val) {
|
| | | console.log('全部计划', val);
|
| | | },
|
| | |
| | | },
|
| | | // input获取焦点
|
| | | faYunPlanCarsFocus(item) {
|
| | | // 获取该焦点在页面的位置
|
| | | // let boxBottom = document.getElementById('#u-dropdown');
|
| | | // console.log('元素',boxBottom);
|
| | | // let bottom = this.$refs.planViewRef.offsetHeight
|
| | | this.keyBoardShow = true;
|
| | | this.fayunPlanFocusId = item.orderId;
|
| | | this.keyBoardValue = item.numPlan + '';
|
| | |
| | | } else{
|
| | | this.isCursor = true;
|
| | | }
|
| | | |
| | | // 根据列表下标,使屏幕滚动到相应可视位置
|
| | | for(let i = 0;i<this.fyData.length;i++){
|
| | | if(this.fyData[i].orderId == item.orderId){
|
| | | uni.pageScrollTo({
|
| | | scrollTop: i*144,
|
| | | duration: 300
|
| | | });
|
| | | }
|
| | | }
|
| | | |
| | | },
|
| | | // 键盘
|
| | | valChange(val) {
|
| | |
| | | display: flex;
|
| | | flex-direction: column;
|
| | | width: 100%;
|
| | | padding: vww(44) vww(10) vww(70) vww(10);
|
| | | padding: vww(44) vww(10) vww(270) vww(10);
|
| | | box-sizing: border-box;
|
| | | .main-inside {
|
| | | width: 100%;
|