Commit eb1d0e97 by 张立顺

样式修改

1 parent 2607ea2d
...@@ -63,7 +63,7 @@ App({ ...@@ -63,7 +63,7 @@ App({
wx.onMemoryWarning(function () { wx.onMemoryWarning(function () {
console.log('onMemoryWarningReceive') console.log('onMemoryWarningReceive')
}) })
console.log('lifeshow') // console.log('lifeshow')
getUpdateManager() getUpdateManager()
if (options) { if (options) {
......
...@@ -10,8 +10,8 @@ page { ...@@ -10,8 +10,8 @@ page {
.bg { .bg {
width: 100%; width: 100%;
height: 350rpx; height: 350rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/navgation_bg.png') no-repeat; background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/navgation_bg.png');
background-size: 100% 526rpx; background-size: 100% 100%;
background-color: #fff; background-color: #fff;
position: fixed; position: fixed;
left: 0; left: 0;
...@@ -22,9 +22,10 @@ page { ...@@ -22,9 +22,10 @@ page {
.user-box { .user-box {
position: relative; position: relative;
border-radius: 32rpx 32rpx 0 0; border-radius: 32rpx 32rpx 0 0;
background: #FFFFFF; /* background: #FFFFFF; */
font-size: 28rpx; font-size: 28rpx;
color: #333333; color: #333333;
background: #F7F8FA;
} }
.user-avatar { .user-avatar {
......
...@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd' ...@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 2 let index = 1
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync() const systemInfo = wx.getSystemInfoSync()
......
...@@ -233,6 +233,7 @@ ...@@ -233,6 +233,7 @@
font-weight: 600; font-weight: 600;
max-width: 60%; max-width: 60%;
color: #333333; color: #333333;
word-break: break-all;
} }
.list .icon-sex { .list .icon-sex {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="box"> <view class="box">
<view class="customerName owner"> <view class="customerName owner">
<gl-cell border valueAlign="right" label="车主姓名" requiredAfter labelWidth="140rpx" required> <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> </gl-cell>
</view> </view>
<!-- <gl-cell border label="性别" valueAlign="right" labelWidth="140rpx"> <!-- <gl-cell border label="性别" valueAlign="right" labelWidth="140rpx">
......
...@@ -153,11 +153,18 @@ Page({ ...@@ -153,11 +153,18 @@ Page({
data.monthPerformanceList = data.monthPerformanceList.map(item => { data.monthPerformanceList = data.monthPerformanceList.map(item => {
item.performanceMonthLabel = this.extractMonth(item.performanceMonth) item.performanceMonthLabel = this.extractMonth(item.performanceMonth)
item.height = item.staffDataList.length > 3 ? item.staffDataList.length * 70 + 120 : '300' item.height = item.staffDataList.length > 3 ? item.staffDataList.length * 70 + 120 : '300'
if (item.minimumWage > item.finalWage) { // console.log(Boolean(item.minimumWage && item.minimumWage > item.finalWage));
item.finalWage = item.minimumWage item.staffDataList = item.staffDataList.map((childItem) => {
if (Boolean(childItem.minimumWage && childItem.minimumWage > childItem.finalWage)) {
childItem.finalWage = childItem.minimumWage
// item.performanceWage = 0 // item.performanceWage = 0
item.hidePerformanceWage = true childItem.hidePerformanceWage = true
} else {
childItem.finalWage = childItem.basicWage
} }
return childItem
})
// 处理基本工资和提成 // 处理基本工资和提成
...@@ -248,7 +255,7 @@ Page({ ...@@ -248,7 +255,7 @@ Page({
init(userInfo) { init(userInfo) {
const isStaff = app.globalData.isStaff const isStaff = app.globalData.isStaff
// let { userInfo } = this.data // let { userInfo } = this.data
console.log(this.data, userInfo, 'userInfo') // console.log(this.data, userInfo, 'userInfo')
this.setData({ this.setData({
isStaff: userInfo.isSuper ? false : isStaff, isStaff: userInfo.isSuper ? false : isStaff,
hasStaffPassword: !isStaff ? true : false hasStaffPassword: !isStaff ? true : false
...@@ -267,40 +274,40 @@ Page({ ...@@ -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 @@ ...@@ -69,7 +69,7 @@
<image bind:tap="hideStaffInfo" class="eyesIcon" src="{{ ImgUrl+'openeyesIcon.png' }}"></image> <image bind:tap="hideStaffInfo" class="eyesIcon" src="{{ ImgUrl+'openeyesIcon.png' }}"></image>
</view> </view>
<view class="wagesCon"> <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="label">{{index? item.performanceMonthLabel : '当前月'}}</view>
<view class="value"> <view class="value">
<text>工资</text> <text>工资</text>
......
...@@ -27,14 +27,14 @@ ...@@ -27,14 +27,14 @@
<view class="item flex"> <view class="item flex">
<view>所属服务商:</view> <view>所属服务商:</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>
</view> </view>
<view class="item flex"> <view class="item flex">
<view>服务商账号:</view> <view>服务商账号:</view>
<view> <view>
<view wx:for="{{merchantInfo}}">{{item.merchantLoginAccount}} <view wx:for="{{merchantInfo}}" wx:key="index">{{item.merchantLoginAccount}}
</view> </view>
</view> </view>
</view> </view>
......
...@@ -26,6 +26,7 @@ page { ...@@ -26,6 +26,7 @@ page {
/* background: #FFFFFF; */ /* background: #FFFFFF; */
font-size: 28rpx; font-size: 28rpx;
color: #333333; color: #333333;
background: #F7F8FA;
} }
.user-avatar { .user-avatar {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!