Commit 6f22be62 by zhangzhen

功能完善

parent d4f8883b
...@@ -202,9 +202,6 @@ ...@@ -202,9 +202,6 @@
}, },
onShow() { onShow() {
this.onGetSysConfig(); this.onGetSysConfig();
uni.showLoading({
title:'加载中'
})
this.onLoading() this.onLoading()
}, },
onReachBottom() { onReachBottom() {
...@@ -220,7 +217,7 @@ ...@@ -220,7 +217,7 @@
// 隐藏原生的tabbar // 隐藏原生的tabbar
uni.hideTabBar(); uni.hideTabBar();
this.$refs.loginPop.open(); this.$refs.loginPop.open();
this.onGetDicts() this.onGetDicts();
}, },
methods: { methods: {
onGetSysConfig(){ onGetSysConfig(){
...@@ -239,9 +236,13 @@ ...@@ -239,9 +236,13 @@
this.facilitieList = getDictItem(dicts, "indoor_facilities"); this.facilitieList = getDictItem(dicts, "indoor_facilities");
this.roomTypeEnum = getDictItem(dicts, "store_room_type"); this.roomTypeEnum = getDictItem(dicts, "store_room_type");
this.roomStatusEnum = getDictItem(dicts, "store_room_status"); this.roomStatusEnum = getDictItem(dicts, "store_room_status");
this.onGetListStore();
}) })
}, },
onLoading() { onLoading() {
uni.showLoading({
title:'加载中'
})
uni.getLocation({ uni.getLocation({
type: "gcj02", type: "gcj02",
complete: (res) => { complete: (res) => {
...@@ -250,13 +251,11 @@ ...@@ -250,13 +251,11 @@
this.longitude = res.longitude; this.longitude = res.longitude;
uni.setStorageSync("latitude", res.latitude) uni.setStorageSync("latitude", res.latitude)
uni.setStorageSync("longitude", res.longitude) uni.setStorageSync("longitude", res.longitude)
this.onGetListStore()
} else{ } else{
this.$refs.popup.open() this.$refs.popup.open()
uni.hideLoading()
} }
// uni.removeStorage({
// key: 'storeId'
// })
this.onGetListStore()
} }
}) })
}, },
...@@ -264,9 +263,10 @@ ...@@ -264,9 +263,10 @@
let that = this; let that = this;
getListStore({ getListStore({
...this.queryParams, ...this.queryParams,
nowLatitude: this.latitude||'', nowLatitude: this.latitude,
nowLongitude: this.longitude||'' nowLongitude: this.longitude
}).then(res => { }).then(res => {
uni.hideLoading()
if (res.data.code == 200 && res.data.data.length) { if (res.data.code == 200 && res.data.data.length) {
this.storeList = res.data.data; this.storeList = res.data.data;
let obj = {} let obj = {}
...@@ -275,7 +275,6 @@ ...@@ -275,7 +275,6 @@
}else{ }else{
obj = res.data.data[0]; obj = res.data.data[0];
} }
new Promise((resolve,reject)=>{
that.storeInfo = { that.storeInfo = {
...obj, ...obj,
distance:obj.distance? Number(obj.distance.substr(0,8)).toFixed(2):0, distance:obj.distance? Number(obj.distance.substr(0,8)).toFixed(2):0,
...@@ -288,10 +287,6 @@ ...@@ -288,10 +287,6 @@
} }
}):[] }):[]
} }
resolve()
}).then(()=>{
uni.hideLoading()
})
} }
}) })
}, },
......
...@@ -868,6 +868,7 @@ ...@@ -868,6 +868,7 @@
title: "选择时段有重复" title: "选择时段有重复"
}) })
} }
this.onComputePrice();
}, },
onDurationChange(i) { onDurationChange(i) {
if (i >= this.distanceMode.length - 1) { if (i >= this.distanceMode.length - 1) {
......
...@@ -91,6 +91,10 @@ ...@@ -91,6 +91,10 @@
<text class="text-gray">结束时间:</text> <text class="text-gray">结束时间:</text>
<text class="text-title">{{item.endDate}}</text> <text class="text-title">{{item.endDate}}</text>
</view> </view>
<view v-if="item.refundReasonTime" class="flex-between part-1">
<text class="text-gray">取消时间:</text>
<text class="text-title">{{item.refundReasonTime}}</text>
</view>
<!-- <view class="flex-between part-1"> <!-- <view class="flex-between part-1">
<text class="text-gray">订单总计:</text> <text class="text-gray">订单总计:</text>
<text class="text-pink text-bold">{{item.totalPrice}}</text> <text class="text-pink text-bold">{{item.totalPrice}}</text>
...@@ -275,14 +279,14 @@ import NoLogin from "@/components/noLogin/noLogin" ...@@ -275,14 +279,14 @@ import NoLogin from "@/components/noLogin/noLogin"
align-items: center; align-items: center;
.list-item{ .list-item{
width: 94%; width: 94%;
padding: 30upx 20upx; padding: 24upx 20upx 12upx;
border-radius: 20upx; border-radius: 20upx;
background-color: #ffffff; background-color: #ffffff;
margin-top: 30upx; margin-top: 30upx;
.part-1{ .part-1{
display: flex; display: flex;
align-items: center; align-items: center;
padding: 10upx; padding:0 10upx 20upx;
.store-name{ .store-name{
align-items: center; align-items: center;
} }
......
...@@ -79,6 +79,10 @@ ...@@ -79,6 +79,10 @@
<text style="margin-left: 4upx;"></text> <text style="margin-left: 4upx;"></text>
</view> </view>
</view> </view>
<view v-if="orderInfo.refundReasonTime" class="flex-between">
<text class="text-gray">取消时间</text>
<text class="text-title">{{orderInfo.refundReasonTime}}</text>
</view>
</view> </view>
<view v-if="orderInfo.status <= 1" class="part-2"> <view v-if="orderInfo.status <= 1" class="part-2">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment