Commit eb1d0e97 by 张立顺

样式修改

1 parent 2607ea2d
......@@ -63,7 +63,7 @@ App({
wx.onMemoryWarning(function () {
console.log('onMemoryWarningReceive')
})
console.log('lifeshow')
// console.log('lifeshow')
getUpdateManager()
if (options) {
......
......@@ -10,8 +10,8 @@ page {
.bg {
width: 100%;
height: 350rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/navgation_bg.png') no-repeat;
background-size: 100% 526rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/navgation_bg.png');
background-size: 100% 100%;
background-color: #fff;
position: fixed;
left: 0;
......@@ -22,9 +22,10 @@ page {
.user-box {
position: relative;
border-radius: 32rpx 32rpx 0 0;
background: #FFFFFF;
/* background: #FFFFFF; */
font-size: 28rpx;
color: #333333;
background: #F7F8FA;
}
.user-avatar {
......
......@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布
* 5cdptest
*/
let index = 2
let index = 1
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
......
......@@ -233,6 +233,7 @@
font-weight: 600;
max-width: 60%;
color: #333333;
word-break: break-all;
}
.list .icon-sex {
......
......@@ -4,7 +4,7 @@
<view class="box">
<view class="customerName owner">
<gl-cell border valueAlign="right" label="车主姓名" requiredAfter labelWidth="140rpx" required>
<input placeholder="点击输入" class="input" placeholder-class="placeholder-class" maxlength="16" value="{{orderObj.owner.owner}}" bindinput="input" data-name="owner.owner" always-embed></input>
<input placeholder="点击输入" class="input" placeholder-class="placeholder-class" maxlength="50" value="{{orderObj.owner.owner}}" bindinput="input" data-name="owner.owner" always-embed></input>
</gl-cell>
</view>
<!-- <gl-cell border label="性别" valueAlign="right" labelWidth="140rpx">
......
......@@ -153,11 +153,18 @@ Page({
data.monthPerformanceList = data.monthPerformanceList.map(item => {
item.performanceMonthLabel = this.extractMonth(item.performanceMonth)
item.height = item.staffDataList.length > 3 ? item.staffDataList.length * 70 + 120 : '300'
if (item.minimumWage > item.finalWage) {
item.finalWage = item.minimumWage
// item.performanceWage = 0
item.hidePerformanceWage = true
}
// console.log(Boolean(item.minimumWage && item.minimumWage > item.finalWage));
item.staffDataList = item.staffDataList.map((childItem) => {
if (Boolean(childItem.minimumWage && childItem.minimumWage > childItem.finalWage)) {
childItem.finalWage = childItem.minimumWage
// item.performanceWage = 0
childItem.hidePerformanceWage = true
} else {
childItem.finalWage = childItem.basicWage
}
return childItem
})
// 处理基本工资和提成
......@@ -248,7 +255,7 @@ Page({
init(userInfo) {
const isStaff = app.globalData.isStaff
// let { userInfo } = this.data
console.log(this.data, userInfo, 'userInfo')
// console.log(this.data, userInfo, 'userInfo')
this.setData({
isStaff: userInfo.isSuper ? false : isStaff,
hasStaffPassword: !isStaff ? true : false
......@@ -267,40 +274,40 @@ Page({
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {},
onLoad(options) { },
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {},
onReady() { },
/**
* 生命周期函数--监听页面显示
*/
onShow(e) {},
onShow(e) { },
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {},
onHide() { },
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {},
onUnload() { },
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {},
onPullDownRefresh() { },
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {},
onReachBottom() { },
/**
* 用户点击右上角分享
*/
onShareAppMessage() {}
onShareAppMessage() { }
})
......@@ -69,7 +69,7 @@
<image bind:tap="hideStaffInfo" class="eyesIcon" src="{{ ImgUrl+'openeyesIcon.png' }}"></image>
</view>
<view class="wagesCon">
<view class="wagesItem" wx:for="{{ staffInfoObj.monthPerformanceList }}">
<view class="wagesItem" wx:for="{{ staffInfoObj.monthPerformanceList }}" wx:key="index">
<view class="label">{{index? item.performanceMonthLabel : '当前月'}}</view>
<view class="value">
<text>工资</text>
......
......@@ -27,14 +27,14 @@
<view class="item flex">
<view>所属服务商:</view>
<view>
<view wx:for="{{merchantInfo}}">{{item.merchantName}}{{item.merchantId}}
<view wx:for="{{merchantInfo}}" wx:key="index">{{item.merchantName}}{{item.merchantId}}
</view>
</view>
</view>
<view class="item flex">
<view>服务商账号:</view>
<view>
<view wx:for="{{merchantInfo}}">{{item.merchantLoginAccount}}
<view wx:for="{{merchantInfo}}" wx:key="index">{{item.merchantLoginAccount}}
</view>
</view>
</view>
......
......@@ -26,6 +26,7 @@ page {
/* background: #FFFFFF; */
font-size: 28rpx;
color: #333333;
background: #F7F8FA;
}
.user-avatar {
......@@ -238,7 +239,7 @@ page {
}
.version_box {
margin-top: 28rpx;
margin-top: 28rpx;
display: grid;
grid-template-columns: repeat(auto-fill, 190rpx);
align-items: center;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!