Browse Source

no message

feature/v1.1
xpz2018 5 years ago
parent
commit
109abc2946
9 changed files with 37 additions and 16 deletions
  1. BIN
      assets/image/icon-banner.png
  2. BIN
      assets/image/icon-end.png
  3. BIN
      assets/image/icon-qrcode.png
  4. 20
      pages/htmls/auths/index.wxml
  5. 7
      pages/htmls/auths/index.wxss
  6. 2
      pages/process/index/index.wxml
  7. 7
      pages/process/order-list/index.wxml
  8. 11
      pages/process/payment/index.js
  9. 6
      pages/process/payment/index.wxml

BIN
assets/image/icon-banner.png

Before After
Width: 694  |  Height: 250  |  Size: 33 KiB Width: 694  |  Height: 200  |  Size: 27 KiB

BIN
assets/image/icon-end.png

Before After
Width: 750  |  Height: 241  |  Size: 25 KiB

BIN
assets/image/icon-qrcode.png

Before After
Width: 200  |  Height: 200  |  Size: 17 KiB

20
pages/htmls/auths/index.wxml

@ -4,15 +4,22 @@
</cu-custom>
<view class="relative">
<van-image width="750rpx" height="1476rpx" use-loading-slot
src="https://pic.downk.cc/item/5feda5403ffa7d37b37a4610.png" fit="fill">
<van-image width="750rpx" height="1496rpx" use-loading-slot
src="https://img.imgdb.cn/item/604722f75aedab222c7919d9.png" fit="fill">
<view class="image-load" slot="loading">
<van-loading type="spinner" size="32" />
</view>
</van-image>
<view class="end">
<van-image width="750rpx" height="241rpx" use-loading-slot src="/assets/image/icon-end.png" fit="fill">
<view class="image-load" slot="loading">
<van-loading type="spinner" size="32" />
</view>
</van-image>
</view>
<view class="container">
<van-image width="750rpx" height="820rpx" use-loading-slot
src="https://pic.downk.cc/item/5feda5213ffa7d37b37a0af9.png" fit="fill">
<van-image width="750rpx" height="793rpx" use-loading-slot
src="https://img.imgdb.cn/item/6047226b5aedab222c78cfde.png" fit="fill">
<view class="image-load" slot="loading">
<van-loading type="spinner" size="32" />
</view>
@ -25,8 +32,8 @@
<view class="text-sg" style="margin-top:24rpx;line-height:46rpx">更多详情请联系客服020-8251 6486</view>
</view>
<view style="flex:1;padding-left:40rpx">
<van-image width="210rpx" height="210rpx" use-loading-slot show-menu-by-longpress
src="https://pic.downk.cc/item/5fed2d433ffa7d37b3a2680b.png" fit="fill">
<van-image width="200rpx" height="200rpx" use-loading-slot show-menu-by-longpress
src="/assets/image/icon-qrcode.png" fit="fill">
<view class="image-load" style="width:210rpx;height:210rpx" slot="loading">
<van-loading type="spinner" size="32" />
</view>
@ -39,7 +46,6 @@
</view>
</view>
</view>
</view>
</view>

7
pages/htmls/auths/index.wxss

@ -21,6 +21,13 @@
top: 0rpx;
}
.end {
width: 100%;
flex-direction: column;
position: absolute;
bottom: 0px;
}
.dialog-input {
padding:0rpx 16rpx;
border:1rpx solid #eee;

2
pages/process/index/index.wxml

@ -99,7 +99,7 @@
</view> -->
<view style="padding: 0rpx 28rpx;margin-top:24rpx">
<image style="width:694rpx;height:250rpx" src="/assets/image/icon-banner.png" bindtap="toAuths"></image>
<image style="width:694rpx;height:200rpx" src="/assets/image/icon-banner.png" bindtap="toAuths"></image>
</view>
<view style="height:24rpx;"></view>

7
pages/process/order-list/index.wxml

@ -40,10 +40,13 @@
<van-button plain type="info" custom-style="height:64rpx;width:132rpx" data-id="{{item.id}}"
bind:click="checkOrder">审核</van-button>
</view>
<view class="flex flex-center" wx:if="{{item.status == 4}}">
<view class="flex flex-center" wx:elif="{{item.status ==2}}">
<view class="text-df text-black">待过皮重</view>
</view>
<view class="flex flex-center" wx:elif="{{item.status == 4}}">
<view class="text-df" style="color:#FA541C">待付款</view>
</view>
<view class="flex flex-center" wx:if="{{item.status == 5}}">
<view class="flex flex-center" wx:elif="{{item.status == 5}}">
<view class="text-df" style="color:#028A00">已完成</view>
</view>
</view>

11
pages/process/payment/index.js

@ -77,9 +77,10 @@ Page({
}
this.setData({ ['params.settleType']: e.currentTarget.dataset.name })
},
lookItem: function(e){
onChange: function(e){
console.log(e.detail)
var item = this.data.orderList[e.currentTarget.dataset.index]
item.checked = !item.checked
item.checked = !e.detail
var amount = 0
this.data.params.ids = []
for (let index = 0; index < this.data.orderList.length; index++) {
@ -88,7 +89,11 @@ Page({
this.data.params.ids.push(this.data.orderList[index].id)
}
}
this.setData({ ['orderList[' + e.currentTarget.dataset.index + '].checked']: item.checked, amount })
this.setData({ ['orderList[' + e.currentTarget.dataset.index + '].checked']: !e.detail, amount })
},
lookItem: function(e){
var item = this.data.orderList[e.currentTarget.dataset.index]
// wx.navigateTo({ url: `/pages/process/order-info/index?id=${item.id}` })
},
bindInput: function (e) {
this.data.params[e.target.id] = e.detail.value

6
pages/process/payment/index.wxml

@ -48,10 +48,10 @@
<text class="text-gray text-sm" style="margin-left:18rpx">(共{{orderList.length}}笔订单)</text>
</view>
</view>
<van-cell clickable wx:for="{{ orderList }}" wx:key="index" data-index="{{index}}" bindtap="lookItem">
<van-cell clickable is-link wx:for="{{ orderList }}" wx:key="index">
<view slot="title" class="flex" style=";justify-content: flex-start">
<van-checkbox value="{{ !item.checked }}" custom-class="checkbox" icon-size="36rpx" shape="square"></van-checkbox>
<view style="flex:1;margin-left:16rpx">
<van-checkbox value="{{ !item.checked }}" custom-class="checkbox" data-index="{{index}}" icon-size="36rpx" shape="square" bind:change="onChange"></van-checkbox>
<view style="flex:1;margin-left:16rpx" data-index="{{index}}" catchtap="lookItem">
<view class="flex flex-justify">
<view class="text-black text-lg">{{item.factoryCustomerName}} {{item.factoryCustomerMobile || ''}}</view>
<view class="text-sm text-gray">{{item.bangTime}}</view>

Loading…
Cancel
Save