茶室
This commit is contained in:
parent
a2c4c8eb27
commit
1e0059dbd5
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
28
pages.json
28
pages.json
|
@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}, {
|
}, {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user