Browse Source

代卖订单列表显示车牌,竞价详情加成功提示。个人中心调整(未完成)

featrue/v4.2
huziyuan 5 years ago
parent
commit
5c262636cf
6 changed files with 217 additions and 109 deletions
  1. 41
      pages/agent/order/index.wxml
  2. 23
      pages/bidding/detail/index.wxml
  3. 8
      pages/bidding/detail/index.wxss
  4. 36
      pages/home/info/index.wxml
  5. 70
      pages/home/info/index.wxss
  6. 148
      project.config.json

41
pages/agent/order/index.wxml

@ -54,6 +54,13 @@
<text class="text-black">货到时间:</text>
<text class="text-gray">{{item.deliveryTime}}</text>
</view>
<view class="flex flex-justify text-df" style="margin-top:8rpx">
<text class="text-black">货车车牌:</text>
<text class="text-gray">00000001</text>
<text class="text-gray">00000002</text>
<text class="text-gray">00000003</text>
<text class="text-gray">00000004</text>
</view>
</view>
</view>
</view>
@ -71,21 +78,21 @@
</refresh-view>
<wxs module="statusColor">
function statusColor(status) {
if (status == 50) {
return '#F12C20'
} else if (status == 51) {
return '#F12C20'
} else if (status == 52) {
return '#F12C20'
} else if (status == 53) {
return '#008AFF'
} else if (status == 54) {
return '#09BB07'
} else if (status == 55) {
return '#888888'
}
return ''
}
module.exports = statusColor
function statusColor(status) {
if (status == 50) {
return '#F12C20'
} else if (status == 51) {
return '#F12C20'
} else if (status == 52) {
return '#F12C20'
} else if (status == 53) {
return '#008AFF'
} else if (status == 54) {
return '#09BB07'
} else if (status == 55) {
return '#888888'
}
return ''
}
module.exports = statusColor
</wxs>

23
pages/bidding/detail/index.wxml

@ -6,6 +6,9 @@
</cu-custom>
<view wx:if="{{biddingInfo}}">
<view wx:if="{{biddingInfo.status==1}}" class="flex flex-justify bg-white" style="width:100%;padding: 24rpx 24rpx 0rpx 24rpx">
<view class="page-tietl-message">竞价成功!商家已经确认您的竞价,请尽快确认!</view>
</view>
<view class="flex flex-justify bg-white" style="width:100%;padding: 24rpx 24rpx 0rpx 24rpx">
<view class="page-name">单号:{{biddingInfo.id}}</view>
<view class="page-name">{{bidding.orderBidding(biddingInfo.status)}}</view>
@ -64,17 +67,17 @@
</view>
<view class="flex flex-center flex-column bg-white" style="width:100%;padding: 24rpx" wx:elif="{{biddingInfo.status == 1 && type == 0}}">
<text class="cuIcon-time" style="font-size: 20px">等待下单</text>
<view class="page-num text-blue" style="font-size:14px;margin-top:24rpx" wx:if="{{recordInfo}}">我的报价:¥{{formate.formatePrice2(recordInfo.biddingUnitPrice, kg)}}</view>
<view class="page-num" style="font-size:14px;margin-top:12rpx">剩余时间:{{expiredTime || ''}}</view>
</view>
<view class="flex bg-white" style="width:100%;padding: 24rpx;" wx:if="{{biddingInfo.orderId}}">
<view class="page-name">订单编号:{{biddingInfo.orderId}}</view>
</view>
<view class="page-num text-blue" style="font-size:14px;margin-top:24rpx" wx:if="{{recordInfo}}">我的报价:¥{{formate.formatePrice2(recordInfo.biddingUnitPrice, kg)}}</view>
<view class="page-num" style="font-size:14px;margin-top:12rpx">剩余时间:{{expiredTime || ''}}</view>
</view>
<view class="flex bg-white" style="width:100%;padding: 24rpx;" wx:if="{{biddingInfo.orderId}}">
<view class="page-name">订单编号:{{biddingInfo.orderId}}</view>
</view>
<view class="bg-white" style="padding:32rpx;margin-top:18rpx">
<view class="text-black" style="font-size:32rpx">商品详情</view>
<view class="text-gray" style="font-size:28rpx;margin-top:32rpx">{{biddingInfo.description}}</view>
</view>
<view class="bg-white" style="padding:32rpx;margin-top:18rpx">
<view class="text-black" style="font-size:32rpx">商品详情</view>
<view class="text-gray" style="font-size:28rpx;margin-top:32rpx">{{biddingInfo.description}}</view>
</view>
<!-- <view class="bg-white" style="padding:32rpx;margin-top:18rpx">
<view class="text-black" style="font-size:32rpx">竞价规则</view>

8
pages/bidding/detail/index.wxss

@ -56,4 +56,12 @@
color: white;
font-size: 32rpx;
margin-left: 32rpx;
}
.page-tietl-message {
font-size: 28rpx;
font-family: PingFang-SC-Medium, PingFang-SC;
font-weight: 500;
color: red;
line-height: 22px;
}

36
pages/home/info/index.wxml

@ -3,18 +3,38 @@
<view slot="content">个人中心</view>
</cu-custom>
<view class="bg-white flex flex-center flex-column" style="padding:48rpx">
<!-- <view class="bg-white flex flex-center flex-column" style="padding:48rpx">
<view style="width: 120px;height: 120px;position: relative" bindtap="chooseImage">
<wux-image width="{{120}}" height="{{120}}" wux-class="image" shape="circle" src="{{avatarUrl}}"/>
<wux-image width="{{120}}" height="{{120}}" wux-class="image" shape="circle" src="{{avatarUrl}}" />
<image class="wux-badge" src="/assets/image/icon_carmera.png"></image>
</view>
</view> -->
<view class="header-box flex flex-justify" style="padding:32rpx">
<view class="flex">
<view bindtap="chooseImage">
<wux-image width="{{60}}" height="{{60}}" wux-class="image" shape="circle" src="{{avatarUrl}}" />
<image class="wux-badge2" src="/assets/image/icon_carmera.png"></image>
</view>
<view class="flex flex-column flex-center" style="margin-left:24rpx;align-items:flex-start">
<view class="flex flex-center">
<text class="text-black" style="white-space: nowrap">姓名:{{linkman || ''}}</text>
<image class="img-auth2" src="{{userInfo.isAuth == 1 ? '/assets/image/icon_author.png' : '/assets/image/icon_unauthor.png'}}"></image>
<text class="{{userInfo.isAuth == 1 ? 'text-blue' : 'text-gray'}}">{{userInfo.isAuth == 1 ? '已认证' : '未实名认证'}}</text>
</view>
<view class="flex flex-center" style="font-size:13px;margin-top:10rpx">
<text class="text-black" style="white-space: nowrap;float:right">联系电话:{{linkPhone}}</text>
</view>
</view>
</view>
</view>
<view style="height:20rpx;"></view>
<wux-cell-group>
<wux-cell>
<!-- <wux-cell>
<view slot="header" class="text-gray">姓名</view>
<view slot="footer">{{linkman || ''}}</view>
</wux-cell>
</wux-cell> -->
<wux-cell title="公司名称" wx:if="{{userType == 2}}">
<view slot="header" class="text-gray">公司名称</view>
<view slot="footer">{{realName || ''}}</view>
@ -23,10 +43,10 @@
<view slot="header" class="text-gray">公司性质</view>
<view slot="footer">{{identityStr}}</view>
</wux-cell>
<wux-cell>
<!-- <wux-cell>
<view slot="header" class="text-gray">联系电话</view>
<view slot="footer">{{linkPhone}}</view>
</wux-cell>
</wux-cell> -->
<wux-cell wx:if="{{userType == 2}}">
<view slot="header" class="text-gray">公司地址</view>
<view slot="footer" style="width:500rpx">{{companyAddress}}</view>
@ -35,10 +55,10 @@
<view slot="header" class="text-gray">昵称</view>
<view slot="footer" class="{{userInfo.nickname? 'text-black':'text-gray'}}">{{userInfo.nickname || '点击修改昵称'}}</view>
</wux-cell>
<wux-cell is-link="{{!userInfo.isAuth}}" url="/pages/home/idcard/index" bind:click="toAuth">
<!-- <wux-cell is-link="{{!userInfo.isAuth}}" url="/pages/home/idcard/index" bind:click="toAuth">
<view slot="header" class="text-gray">实名认证</view>
<view slot="footer" class="text-black">{{userInfo.isAuth ? '已认证' : '未认证'}}</view>
</wux-cell>
</wux-cell> -->
</wux-cell-group>
<view class="bg-white margin-top" style="padding: 1rpx 30rpx;" wx:if="{{licenseUrl}}">

70
pages/home/info/index.wxss

@ -7,4 +7,74 @@
right: 0;
bottom: 0;
z-index: 10;
}
.wux-badge2 {
width: 120rpx;
height: 120rpx;
position: absolute;
z-index: 10;
left: 32rpx;
}
.header-bg {
margin-top: 0px;
width: 100%;
height: 80px;
background: linear-gradient(314deg, rgba(50, 107, 250, 1) 0%, rgba(0, 138, 255, 1) 100%);
border-bottom-left-radius: 64rpx;
border-bottom-right-radius: 64rpx;
}
.header-box {
width: 100%;
background: rgba(255, 255, 255, 1);
/* box-shadow: 0px 0px 15px -6px rgba(0, 0, 0, 0.32);
border-radius: 6px; */
}
.userinfo-avatar {
overflow: hidden;
width: 120rpx;
height: 120rpx;
border-radius: 12rpx;
border: 2px solid #fff;
box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}
.account-bg {
background: linear-gradient(314deg, rgba(50, 107, 250, 1) 0%, rgba(0, 138, 255, 1) 100%);
border-radius: 6px;
}
.money {
font-size: 44rpx;
font-family: SFProDisplay-Semibold, SFProDisplay;
font-weight: 600;
color: rgba(255, 255, 255, 1);
}
.label {
font-size: 24rpx;
font-family: PingFang-SC-Regular, PingFang-SC;
font-weight: 400;
color: rgba(255, 255, 255, 1);
}
.img-auth {
width: 32rpx;
height: 32rpx;
margin-left: 24rpx;
margin-right: 12rpx
}
.img-auth2 {
width: 32rpx;
height: 32rpx;
margin-right: 12rpx
}
.realName {
max-width: 100px;
white-space: nowrap;
}

148
project.config.json

@ -1,76 +1,76 @@
{
"description": "项目配置文件",
"packOptions": {
"ignore": []
},
"setting": {
"urlCheck": false,
"es6": true,
"enhance": true,
"postcss": true,
"preloadBackgroundData": false,
"minified": true,
"newFeature": true,
"coverView": true,
"nodeModules": false,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"uglifyFileName": true,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"compileHotReLoad": false,
"useMultiFrameRuntime": true,
"useApiHook": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"enableEngineNative": false,
"bundle": false,
"useIsolateContext": true,
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": true,
"userConfirmedBundleSwitch": false,
"packNpmManually": false,
"packNpmRelationList": [],
"minifyWXSS": true,
"useApiHostProcess": true
},
"compileType": "miniprogram",
"libVersion": "2.14.4",
"appid": "wx7a4a8415e6821108",
"projectname": "zhitongbao-mini",
"debugOptions": {
"hidedInDevtools": []
},
"isGameTourist": false,
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"scripts": {
"beforeCompile": ""
},
"condition": {
"plugin": {
"list": []
},
"game": {
"list": []
},
"gamePlugin": {
"list": []
},
"miniprogram": {
"list": [
{
"name": "pages/login/index",
"pathName": "pages/login/index",
"query": "",
"scene": 1047
}
]
}
}
"description": "项目配置文件",
"packOptions": {
"ignore": []
},
"setting": {
"urlCheck": false,
"es6": true,
"enhance": true,
"postcss": true,
"preloadBackgroundData": false,
"minified": true,
"newFeature": true,
"coverView": true,
"nodeModules": false,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"uglifyFileName": true,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"compileHotReLoad": false,
"useMultiFrameRuntime": true,
"useApiHook": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"enableEngineNative": false,
"bundle": false,
"useIsolateContext": true,
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": true,
"userConfirmedBundleSwitch": false,
"packNpmManually": false,
"packNpmRelationList": [],
"minifyWXSS": true,
"useApiHostProcess": true
},
"compileType": "miniprogram",
"libVersion": "2.14.4",
"appid": "wx7a4a8415e6821108",
"projectname": "zhitongbao-mini",
"debugOptions": {
"hidedInDevtools": []
},
"isGameTourist": false,
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"scripts": {
"beforeCompile": ""
},
"condition": {
"plugin": {
"list": []
},
"game": {
"list": []
},
"gamePlugin": {
"list": []
},
"miniprogram": {
"list": [
{
"name": "pages/login/index",
"pathName": "pages/login/index",
"query": "",
"scene": 1047
}
]
}
}
}
Loading…
Cancel
Save