筛选订单列表
This commit is contained in:
@@ -37,7 +37,8 @@
|
||||
"pages/storeInfo/index",
|
||||
"pages/order/detail/index2",
|
||||
"pages/order/edit/index2",
|
||||
"pages/order/editOwner/index"
|
||||
"pages/order/editOwner/index",
|
||||
"pages/order/filterList/index2"
|
||||
],
|
||||
"echarts": [
|
||||
{
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<!-- 管辖门店 -->
|
||||
<view class="mb40 inner30 pt40 bg-fff box-shadow-000-10-10 ulib-r10">
|
||||
<view class="font-36">水平业务相关</view>
|
||||
<view class="relative mt20 mb30 pt25 pb25 pl110 bg-fe606c-ff9026 color-fff ulib-r10" bindtap="pushLink" data-url="/pages/order/filterList/index?title=水平业务资料未提交">
|
||||
<view class="relative mt20 mb30 pt25 pb25 pl110 bg-fe606c-ff9026 color-fff ulib-r10" bindtap="pushLink" data-url="/pages/order/filterList/index2?title=水平业务资料未提交">
|
||||
<i class="absolute left-0 box-middle ml35 iconfont icon-tijiao font-60"></i>
|
||||
<view class="text-left">
|
||||
<view class="font-40">10</view>
|
||||
|
||||
@@ -0,0 +1,151 @@
|
||||
import _ from '../../../commons/js/commons'
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
key:'',//tab状态值
|
||||
list: [],//客户列表
|
||||
pageNo: 1,
|
||||
noData: false,
|
||||
end: false,
|
||||
load: true,
|
||||
loading: false,
|
||||
isShowMessage:false,//是否显示短信弹窗
|
||||
content:'',//短信内容
|
||||
isRefresh:false,//判断返回是否需要刷新
|
||||
v2OrderId:_.config.v2OrderId,//订单id临界切换版本
|
||||
},
|
||||
onLoad: function (options) {
|
||||
for (let key in options) {
|
||||
this.setData({
|
||||
[key]: options[key]
|
||||
})
|
||||
}
|
||||
this.getAppCusorderV2List()
|
||||
|
||||
wx.setNavigationBarTitle({
|
||||
title: this.data.title||'订单'
|
||||
})
|
||||
},
|
||||
|
||||
//获取订单列表
|
||||
getAppCusorderV2List() {
|
||||
this.setData({
|
||||
load: false,
|
||||
loading: true,
|
||||
})
|
||||
let params = {};
|
||||
params['page'] = this.data.pageNo;
|
||||
params['size'] = 10;
|
||||
params['status'] = this.data.key;
|
||||
_.apiQuery.getAppCusorderV2List(params).then(res => {
|
||||
this.setData({
|
||||
pageNo: this.data.pageNo + 1,
|
||||
list: this.data.list.concat(res.data.list),
|
||||
load: true,
|
||||
loading: false,
|
||||
})
|
||||
if (res.data.total == 0) {
|
||||
this.setData({
|
||||
noData: true
|
||||
})
|
||||
} else if (this.data.list.length == res.data.total) {
|
||||
this.setData({
|
||||
end: true
|
||||
})
|
||||
}
|
||||
wx.stopPullDownRefresh()
|
||||
});
|
||||
},
|
||||
|
||||
//拨打客户电话xz
|
||||
call(e) {
|
||||
let params = {};
|
||||
params['id'] = e.currentTarget.dataset.id;
|
||||
params['type'] = 1;
|
||||
_.apiQuery.getAppXz(params).then(res=>{
|
||||
wx.makePhoneCall({
|
||||
phoneNumber: res.data.mobile,
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
//显示短信弹框
|
||||
showMessage(e){
|
||||
this.setData({
|
||||
messageId:e.currentTarget.dataset.id,
|
||||
isShowMessage:true,
|
||||
content:'',
|
||||
})
|
||||
},
|
||||
|
||||
//关闭短信弹框
|
||||
hideMessage(e){
|
||||
this.setData({
|
||||
isShowMessage:false,
|
||||
})
|
||||
},
|
||||
|
||||
//输入
|
||||
inputTx(e) {
|
||||
this.setData({
|
||||
submitFlag: false,
|
||||
[e.currentTarget.dataset.key]: e.detail.value
|
||||
})
|
||||
},
|
||||
|
||||
//发短信
|
||||
postAppSmsCusorder(){
|
||||
if (this.data.submitFlag) return;
|
||||
if (this.data.content == '') {
|
||||
wx.showToast({
|
||||
title: '请填写短信内容',
|
||||
icon: 'none'
|
||||
})
|
||||
} else {
|
||||
this.setData({
|
||||
submitFlag: true,
|
||||
})
|
||||
let params = {};
|
||||
params['id'] = this.data.messageId;
|
||||
params['content'] = this.data.content;
|
||||
_.apiQuery.postAppSmsCusorder(params).then(res=>{
|
||||
this.setData({
|
||||
isShowMessage:false,
|
||||
submitFlag:false,
|
||||
content:'',
|
||||
})
|
||||
wx.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
//推送链接
|
||||
pushLink(e){
|
||||
if(e.currentTarget.dataset.url){
|
||||
_.$router.openUrlScheme(e.currentTarget.dataset.url)
|
||||
}
|
||||
},
|
||||
|
||||
//页面相关事件处理函数--监听用户下拉动作
|
||||
onPullDownRefresh(){
|
||||
this.setData({
|
||||
list: [],
|
||||
pageNo: 1,
|
||||
noData: false,
|
||||
end: false,
|
||||
load: true,
|
||||
loading: false,
|
||||
})
|
||||
this.getAppCusorderV2List()
|
||||
},
|
||||
|
||||
//页面上拉触底事件的处理函数
|
||||
onReachBottom(){
|
||||
if (this.data.noData || this.data.end||!this.data.load) return;
|
||||
this.getAppCusorderV2List()
|
||||
},
|
||||
|
||||
})
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "订单",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
<view class="container">
|
||||
|
||||
<view class="mt30 pl30 pr30">
|
||||
|
||||
<block wx:for='{{list}}' wx:key='index'>
|
||||
<view class="inner40 relative ulib-r10 box-shadow-000-10-10 mb30 overflowhidden" bindtap="pushLink" data-url="/pages/order/detail/index{{item.id>=v2OrderId?'2':''}}?id={{item.id}}">
|
||||
<!-- <view class="absolute top-0 left-0 ml40 pt5 pb5 pl10 pr10 bg-36afa2 font-22 color-fff" wx:if="{{item.status_name}}">{{item.status_name}}</view> -->
|
||||
<view class="relative pt10 pb10 pr180">
|
||||
<view class="font-32">
|
||||
<text>{{item.name}}</text>
|
||||
<text>({{item.mobile}})</text>
|
||||
</view>
|
||||
<view class="absolute right-0 box-middle">
|
||||
<view class="inline-block relative img-55x55 bg-333 font-28 color-fff ulib-r750" catchtap="call" data-id="{{item.id}}">
|
||||
<i class="absolute box-center-middle iconfont icon-dianhua"></i>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<block wx:for="{{item.other_data}}" wx:for-index='key' wx:for-item="pin" wx:key='i'>
|
||||
<view class="mt20 fn-clear font-28">
|
||||
<view class="fn-fl color-333">{{key}}</view>
|
||||
<view class="fn-fr wp60 text-nowrap text-right color-666">
|
||||
<block wx:if="{{pin.type=='checkbox'}}">
|
||||
<block wx:for="{{pin.lists}}" wx:for-index='key' wx:for-item="lable" wx:key='j'>
|
||||
<view class="inline-block ml10 mr10"><i class="iconfont font-34 mr5 text-middle {{lable.selected?'icon-danxuan_xuanzhong color-36afa2':'icon-danxuan'}}" /><text class="text-middle">{{lable.value}}</text></view>
|
||||
</block>
|
||||
</block>
|
||||
<block wx:elif="{{pin.type=='text'}}">
|
||||
<text class="inline-block mr10 pt5 pb5 pl20 pr20 font-22 color-fff ulib-r750" style="background-color:{{pin.bg_color}};" wx:if="{{pin.bg_color}}">{{pin.value}}</text>
|
||||
<text wx:else>{{pin.value}}</text>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<view class="mt20 pt5 pb5 pl20 pr20 bg-f6 font-22 color-666 ulib-rlb750 ulib-rr750" wx:if="{{item.remark}}">注:{{item.remark}}</view>
|
||||
|
||||
</view>
|
||||
</block>
|
||||
<lcb-listmore isLoading='{{loading}}' isEnd='{{end}}' isNoData='{{noData}}'></lcb-listmore>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<lcb-footer></lcb-footer>
|
||||
<lcb-backChannel></lcb-backChannel>
|
||||
|
||||
<lcb-msg isShow="{{isShowMessage}}">
|
||||
<view slot="content">
|
||||
<view class="inner40">
|
||||
<textarea class="wp100 inner20 bds-1-eb font-28 ulib-r10" placeholder-class="color-ccc" maxlength='100' placeholder="请输入短信内容" bindinput='inputTx' data-key="content" name='content' value='{{content}}' />
|
||||
</view>
|
||||
<view class="fn-flex pl60 pr60 pb50 text-center font-32 color-666">
|
||||
<button bindtap="hideMessage" class="fn-flex-item mr20 bds-2-36afa2 btn-no-bg wp100 font-28 color-36afa2 ulib-r750">取消</button>
|
||||
<button disabled="{{submitFlag}}" bindtap="postAppSmsCusorder" class="fn-flex-item ml20 btn-36afa2 wp100 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover">确定</button>
|
||||
</view>
|
||||
</view>
|
||||
</lcb-msg>
|
||||
@@ -0,0 +1,28 @@
|
||||
.mobiletip{position:fixed;bottom:120rpx;right:40rpx;width:100rpx;height:100rpx;}
|
||||
|
||||
.tabmenu2{display:inline-block;line-height:72rpx;}
|
||||
.tabmenu2.active view.relative{display:inline-block;}
|
||||
.tabmenu2.active view.relative::before{display:inline-block;position:absolute;bottom:0;left:50%;transform:translate(-50%,0);width:64rpx;height:4rpx;content:"";background-color:#36afa2;}
|
||||
|
||||
.subtab{height:100rpx;}
|
||||
.opt-item{border:#ebebeb 1rpx solid;line-height:40rpx;}
|
||||
.opt-item.active{background-color:#36afa2;border:#36afa2 1rpx solid;}
|
||||
|
||||
.fixedopt{position:fixed;bottom:120rpx;right:40rpx;}
|
||||
.optpin{width:100rpx;height:100rpx;}
|
||||
|
||||
.search-sort{right:-650rpx;width:650rpx;}
|
||||
.search-sort.sortin{animation:sortin.5s;animation-fill-mode:forwards;}
|
||||
.search-sort.sortout{animation:sortout.5s;animation-fill-mode:forwards;}
|
||||
@keyframes sortin
|
||||
{
|
||||
from {right:-650rpx;}
|
||||
to {right:0;}
|
||||
}
|
||||
@keyframes sortout
|
||||
{
|
||||
from {right:0;}
|
||||
to {right:-650rpx;}
|
||||
}
|
||||
|
||||
.radio-btn{min-width:104rpx;box-sizing:border-box;text-align:center;}
|
||||
Reference in New Issue
Block a user