This commit is contained in:
3321822538@qq.com 2025-01-02 14:18:53 +08:00
parent a2c4c8eb27
commit 1e0059dbd5
4 changed files with 129 additions and 11 deletions

View File

@ -20,8 +20,8 @@ const install = (Vue, vm) => {
// }, // },
// https://yxd.ccttiot.com/prod-api}); // https://yxd.ccttiot.com/prod-api});
Vue.prototype.$u.http.setConfig({ Vue.prototype.$u.http.setConfig({
baseUrl: 'http://192.168.2.116:8089', // baseUrl: 'http://192.168.2.116:8089',
// baseUrl: 'https://testcha.chuangtewl.com/prod-api', baseUrl: 'https://testcha.chuangtewl.com/prod-api',
loadingText: '努力加载中~', loadingText: '努力加载中~',
loadingTime: 800, loadingTime: 800,
// 设置自定义头部content-type // 设置自定义头部content-type

View File

@ -4,16 +4,19 @@
title-size='36' height='50' id="navbar"> title-size='36' height='50' id="navbar">
</u-navbar> </u-navbar>
<view class="toptab"> <view class="toptab">
<view class=""> <view class="" @click="show = true">
订单状态 <u-icon name="arrow-down-fill" color="#3D3D3D" size="24"></u-icon> {{zttxt}} <u-icon name="arrow-down-fill" color="#3D3D3D" size="24"></u-icon>
</view> </view>
<view class=""> <!-- <view class="">
支付方式 <u-icon name="arrow-down-fill" color="#3D3D3D" size="24"></u-icon> 支付方式 <u-icon name="arrow-down-fill" color="#3D3D3D" size="24"></u-icon>
</view> </view> -->
<view class=""> <view class="">
时间筛选 <u-icon name="arrow-down-fill" color="#3D3D3D" size="24"></u-icon> <!-- 时间筛选 <u-icon name="arrow-down-fill" color="#3D3D3D" size="24"></u-icon> -->
<text class="one" @click="btntime(1)">{{kstime}}</text>--<text class="one" @click="btntime(2)">{{jstime}}</text>
</view> </view>
</view> </view>
<u-select v-model="show" :list="list" @confirm="confirm"></u-select>
<u-picker mode="time" v-model="showtime" :params="params" @confirm='confirmkstime'></u-picker>
<view class="list"> <view class="list">
<view class="list_item" v-for="(item,index) in 5" :key="index" @click="btnxq"> <view class="list_item" v-for="(item,index) in 5" :key="index" @click="btnxq">
<view class="top"> <view class="top">
@ -59,6 +62,54 @@
bgc: { bgc: {
backgroundColor: "#fff", backgroundColor: "#fff",
}, },
zttxt:'订单状态',
zttxtid:'',
kstime:'',
jstime:'',
num:'',
params: {
year: true,
month: true,
day: true,
hour: false,
minute: false,
second: false
},
showtime: false,
show: false,
list: [
{
value: '',
label: '全部'
},{
value: '0',
label: '待支付'
},{
value: '1',
label: '支付中'
},{
value: '2',
label: '待使用'
},{
value: '3',
label: '使用中'
},{
value: '4',
label: '已完成'
},{
value: '5',
label: '超时自动取消'
},{
value: '6',
label: '用户取消订单'
},{
value: '7',
label: '退款中'
},{
value: '8',
label: '已退款'
}],
} }
}, },
onLoad() { onLoad() {
@ -68,8 +119,27 @@
this.getlist() this.getlist()
}, },
methods: { methods: {
//
btntime(num){
this.showtime = true
this.num = num
},
//
confirmkstime(e){
if(this.num == 1){
this.kstime = e.year + '-' + e.month + '-' + e.day
}else{
this.jstime = e.year + '-' + e.month + '-' + e.day
}
},
//
confirm(e) {
this.zttxt = e[0].label
this.zttxtid = e[0].value
},
//
getlist(){ getlist(){
this.$u.get(`/app/order/orderList?statusList=1,2`).then(res =>{ this.$u.get(`/app/order/orderList`).then(res =>{
if(res.code == 200){ if(res.code == 200){
} }
@ -86,7 +156,7 @@
</script> </script>
<style lang="scss"> <style lang="scss">
/deep/ .u-iconfont, /deep/ .uicon-nav-back,
/deep/ .u-title{ /deep/ .u-title{
padding-bottom: 20rpx; padding-bottom: 20rpx;
} }
@ -166,9 +236,22 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 0 58rpx; padding: 0 50rpx;
box-sizing: border-box; box-sizing: border-box;
background-color: #fff; background-color: #fff;
view{
display: flex;
align-items: center;
.one{
display: inline-block;
width: 200rpx;
height: 50rpx;
border: 1px solid #ccc;
border-radius: 10rpx;
line-height: 50rpx;
text-align: center;
}
}
} }

View File

@ -604,6 +604,34 @@
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},{
"path": "cunganimg",
"style": {
"navigationBarTitleText": "上传",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
},{
"path": "cunxuan",
"style": {
"navigationBarTitleText": "上传",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
},{
"path": "lijizy",
"style": {
"navigationBarTitleText": "上传",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
},{
"path": "zuyongjl",
"style": {
"navigationBarTitleText": "上传",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
} }
] ]
}, { }, {

View File

@ -65,7 +65,7 @@
<view class="tqname"> <view class="tqname">
杆柜 杆柜
</view> </view>
<view class="gangui"> <view class="gangui" @click="btncungan">
<image src="https://api.ccttiot.com/smartmeter/img/static/uQPXhfkhmvvvPXbW65WF" mode=""></image> <image src="https://api.ccttiot.com/smartmeter/img/static/uQPXhfkhmvvvPXbW65WF" mode=""></image>
<!-- <view class="cun"> <!-- <view class="cun">
@ -262,6 +262,13 @@
}, },
methods: { methods: {
//
btncungan(){
uni.navigateTo({
url:'/page_fenbaotwo/cunganimg'
})
},
// //
btnmd(index,item){ btnmd(index,item){
this.viewType = item.viewType this.viewType = item.viewType