Browse Source

特价申请单根据有无数据动态变更元素所处页面位置

master
chenxuhui 7 years ago
parent
commit
75eb0e0520
3 changed files with 36 additions and 28 deletions
  1. +0
    -12
      pages/login/login.wxml
  2. +7
    -16
      pages/specialOrderApplication/creatNewSpecialOrder/creatNewSpecialOrder.wxml
  3. +29
    -0
      pages/specialOrderApplication/creatNewSpecialOrder/creatNewSpecialOrder.wxss

+ 0
- 12
pages/login/login.wxml View File

@ -21,18 +21,6 @@
</view> </view>
<!-- <view class="but_login">
<button class='btn_btn' open-type="getUserInfo" bindgetuserinfo="getUserInfo">绑定</button>
</view> -->
<button class='btn_btn' plain="true" style='border:none' open-type="getUserInfo" bindgetuserinfo="getUserInfo"><image class='currentImage' src="/imgs/bindImage.png" mode='widthFix'></image></button> <button class='btn_btn' plain="true" style='border:none' open-type="getUserInfo" bindgetuserinfo="getUserInfo"><image class='currentImage' src="/imgs/bindImage.png" mode='widthFix'></image></button>
<!-- <view class='imageView' open-type="getUserInfo" catchtap='getUserInfo'>
<image class='currentImage' src="/imgs/blueBtn.png">
<view class='btnTextView'>
<text class='btnText'>确认绑定</text>
</view>
</image>
</view> -->
<official-account class="wxmp"></official-account> <official-account class="wxmp"></official-account>

+ 7
- 16
pages/specialOrderApplication/creatNewSpecialOrder/creatNewSpecialOrder.wxml View File

@ -10,15 +10,6 @@
<swiper-item class="swiper-items1"> <swiper-item class="swiper-items1">
<view class='backGroundContainer'> <view class='backGroundContainer'>
<!-- <view class='baseitem'>
<text class='baseitem_key'>购货客户</text>
<view class='baseitem_value' bindtap="powerDrawer" data-statu="open" data-x='购货客户' data-item='{{which}}'>
{{customer[customerIndex].Name}}
</view>
</view>
<view class='horizontallineView'></view> -->
<view class='baseitem'> <view class='baseitem'>
<text class='baseitem_key'>发货时间</text> <text class='baseitem_key'>发货时间</text>
<picker class='baseitem_value' mode="multiSelector" value="{{dateTime}}" bindchange="changeDateTime" range="{{dateTimeArray}}"> <picker class='baseitem_value' mode="multiSelector" value="{{dateTime}}" bindchange="changeDateTime" range="{{dateTimeArray}}">
@ -32,7 +23,7 @@
<view class='baseitem'> <view class='baseitem'>
<text class='baseitem_key'>会计单位</text> <text class='baseitem_key'>会计单位</text>
<view class='baseitem_value' bindtap="powerDrawer" data-statu="open" data-x='会计部门' data-item='{{which}}'>
<view class="baseitem_value {{unit.length <=1 ? 'viewPlaceHolder' : 'viewSelected'}}" bindtap="powerDrawer" data-statu="open" data-x='会计部门' data-item='{{which}}'>
{{unit[isUnit].Name}} {{unit[isUnit].Name}}
</view> </view>
</view> </view>
@ -41,7 +32,7 @@
<view class='baseitem'> <view class='baseitem'>
<text class='baseitem_key'>销售部门</text> <text class='baseitem_key'>销售部门</text>
<view class='baseitem_value' bindtap="powerDrawer" data-statu="open" data-x='部门' data-item='{{which}}'>
<view class="baseitem_value {{department.length <=1 ? 'viewPlaceHolder' : 'viewSelected'}}" bindtap="powerDrawer" data-statu="open" data-x='部门' data-item='{{which}}'>
{{department[departmentIndex].Name}} {{department[departmentIndex].Name}}
</view> </view>
</view> </view>
@ -50,7 +41,7 @@
<view class='baseitem'> <view class='baseitem'>
<text class='baseitem_key'>销售类型</text> <text class='baseitem_key'>销售类型</text>
<view class='baseitem_value' bindtap="powerDrawer" data-statu="open" data-x='销售类型' data-item='{{which}}'>
<view class="baseitem_value {{saletype.length <=1 ? 'viewPlaceHolder' : 'viewSelected'}}" bindtap="powerDrawer" data-statu="open" data-x='销售类型' data-item='{{which}}'>
{{saletype[saletypeIndex].Name}} {{saletype[saletypeIndex].Name}}
</view> </view>
</view> </view>
@ -89,12 +80,12 @@
<!-- 客户明细 --> <!-- 客户明细 -->
<swiper-item class="swiper-items2"> <swiper-item class="swiper-items2">
<scroll-view scroll-x="false" scroll-y="true" class='scroll-views'> <scroll-view scroll-x="false" scroll-y="true" class='scroll-views'>
<view class='detaileListContainer'>
<view class="detaileListContainer {{customerArr.length > 0 ? '' : 'customerImageToTopFar'}}">
<block wx:for="{{customerArr}}" wx:key="item" wx:for-index="idx"> <block wx:for="{{customerArr}}" wx:key="item" wx:for-index="idx">
<template is="customerInfoTemplate" data="{{item,idx}}" /> <template is="customerInfoTemplate" data="{{item,idx}}" />
</block> </block>
</view> </view>
<view class='imageView' catchtap='addCustomer'>
<view class="imageView" catchtap='addCustomer'>
<image class='currentImage' src="/imgs/longBlueBtn.png"> <image class='currentImage' src="/imgs/longBlueBtn.png">
<view class='btnTextView'> <view class='btnTextView'>
<text class='btnText'>添加客户</text> <text class='btnText'>添加客户</text>
@ -108,7 +99,7 @@
<swiper-item class="swiper-items3"> <swiper-item class="swiper-items3">
<scroll-view scroll-x="false" scroll-y="true" class='scroll-views'> <scroll-view scroll-x="false" scroll-y="true" class='scroll-views'>
<view class='detaileListContainer'>
<view class="detaileListContainer {{goodsNameArr.length > 0 ? '' : 'goodsNameImageToTopFar'}}">
<block wx:for="{{goodsNameArr}}" wx:for-item="item" wx:key="item" wx:for-index="idx"> <block wx:for="{{goodsNameArr}}" wx:for-item="item" wx:key="item" wx:for-index="idx">
<template is="goodsInfoTemplate" data="{{item,idx}}" /> <template is="goodsInfoTemplate" data="{{item,idx}}" />
</block> </block>
@ -122,7 +113,7 @@
</image> </image>
</view> </view>
<view class='imageView' catchtap='creatNewSpecialOrder'>
<view class='imageViewNoMargin' catchtap='creatNewSpecialOrder'>
<image class='currentImage' src="/imgs/longBlueBtn.png"> <image class='currentImage' src="/imgs/longBlueBtn.png">
<view class='btnTextView'> <view class='btnTextView'>
<text class='btnText'>保存</text> <text class='btnText'>保存</text>


+ 29
- 0
pages/specialOrderApplication/creatNewSpecialOrder/creatNewSpecialOrder.wxss View File

@ -67,6 +67,14 @@ page {
text-align: right; text-align: right;
} }
.viewPlaceHolder{
color:rgb(202, 202, 202);
}
.viewSelected{
color:rgb(48, 48, 48);
}
.horizontallineView { .horizontallineView {
height: 1rpx; height: 1rpx;
background-color: #dbdbdb; background-color: #dbdbdb;
@ -151,6 +159,17 @@ page {
background-color: #fff; background-color: #fff;
} }
.customerImageToTopFar{
height: calc(100% - 100px);
background:#EAF1F8;
}
.goodsNameImageToTopFar{
height: calc(100% - 180px);
background:#EAF1F8;
}
.listNumberView { .listNumberView {
height: 40rpx; height: 40rpx;
background-color:#EAF1F8; background-color:#EAF1F8;
@ -192,6 +211,16 @@ page {
box-sizing: content-box; box-sizing: content-box;
} }
.imageViewNoMargin{
height: 80px;
width: 100%;
margin-top: -10rpx;
position: relative;
align-items: center;
justify-content: center;
box-sizing: content-box;
}
.currentImage { .currentImage {
width: 100%; width: 100%;
height: 100%; height: 100%;


Loading…
Cancel
Save