样式修改

lu_quan_dev
han 11 months ago
parent 10b4ff50df
commit a88136192c
  1. 64
      static/css/common.scss
  2. 46
      subPageB/Homestay/homestaydetail/homestaydetail.vue
  3. 8
      subPageB/Homestay/homestaylist/homestaylist.vue
  4. 15
      subPageC/bookHomestay/bookHomestay.vue
  5. 13
      subPageC/orderHomestay/orderDetail.vue
  6. 65
      subPageC/orderHomestay/orderList.vue

@ -41,6 +41,9 @@ page {
background: #f5f6fa;
}
.v-pages {
&.bgcolor {
background: #f5f6fa;
}
&.tab {
padding-top: 110rpx;
}
@ -185,7 +188,7 @@ page {
padding: 36rpx 24rpx;
background-color: #fff;
border-radius: 10rpx;
overflow: hidden;
&.small {
padding: 24rpx 20rpx;
}
@ -225,6 +228,10 @@ page {
font-size: 36rpx;
font-weight: bold;
color: #1b1b1b;
text {
position: relative;
z-index: 9;
}
&::after {
content: '';
position: absolute;
@ -323,6 +330,37 @@ page {
}
}
.v-card.order {
&.bg1 {
background: url('https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/order-instructions_bg.png') #fff;
background-repeat: no-repeat;
background-position: top left;
background-size: 300rpx;
}
.v-order-wait {
position: absolute;
left: 0;
bottom: 0;
padding-left: 60rpx;
left: 0;
height: 60rpx;
line-height: 60rpx;
color: #0983ff;
font-size: 24rpx;
background: linear-gradient(to right, rgba(9, 131, 255, 0.1), #fff);
&:before {
content: '';
position: absolute;
left: 20rpx;
top: 50%;
transform: translate(0, -50%);
width: 28rpx;
height: 28rpx;
background: url('https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/icon_tips.png');
background-repeat: no-repeat;
background-position: center;
background-size: 28rpx;
}
}
.v-order-title {
.text {
position: relative;
@ -750,16 +788,24 @@ page {
font-size: 24rpx;
color: #0983ff;
}
::v-deep .uni-forms-item {margin-bottom: 5rpx !important;
}
::v-deep .uni-forms-item {
margin-bottom: 5rpx !important;
}
::v-deep .uni-forms-item__error {
left: 20rpx;
top: 60% !important;
}
/* 订单表单 */
.v-order-form {
::v-deep .uni-forms-item__label{height: 60rpx;
line-height: 60rpx;}
.uni-easyinput__content-input{height: 60rpx;
line-height: 60rpx;}
::v-deep .uni-forms-item__label {
height: 60rpx;
line-height: 60rpx;
}
.uni-easyinput__content-input {
height: 60rpx;
line-height: 60rpx;
}
.v-input {
height: 60rpx;
line-height: 60rpx;

@ -134,7 +134,7 @@
uni.setStorageSync('满房日期显示', 0)
},
onLoad: function(options) {
this.guid = options.guid;
this.guid = options.guid;
this.detailInfo(options.guid);
//
@ -171,16 +171,52 @@
this.pic_list = this.info.hotelPhoto.split(",");
});
},
daohang() {
uni.openLocation({
latitude: Number(this.info.lat),
longitude: Number(this.info.lng),
name: this.info.hotelName,
address: this.info.addressInfo,
complete: function(result) {
console.log(result);
},
});
// #ifdef H5
if (this.$wechat.isWechat()) {
var mapParam = {
latitude: this.info.lat,
longitude: this.info.lng,
scale: 18,
name: this.info.hotelName,
address: this.info.addressInfo,
};
this.$util.openLocation(mapParam);
return;
}
window.location.href =
"https://uri.amap.com/navigation?from=" +
this.$param.clng +
"," +
this.$param.clat +
",我的位置&to=" +
this.info.lng +
"," +
this.info.lat +
"," +
this.info.addressInfo +
"&mode=walk&src=sjz_uniapp&callnative=1";
// #endif
},
bookIt(val) {
this.judgeLogin((resa) => {
console.log('asdfasdf====',this.userInfo)
console.log('asdfasdf====', this.userInfo)
var data = {
mobile: this.userInfo.phone,
openid: this.userInfo.openid,
hotelId: this.info.id,
hotelName: this.info.hotelName
};

@ -36,17 +36,17 @@
<view class="item_image hotel">
<image class="img" :src="item.hlogo" mode="aspectFill"></image>
</view>
<view class="item_content">
<view class="item_content col">
<view class="content-name">{{ item.hname }}</view>
<view class="content-level hotel">{{ item.hlevel }} </view>
<view class="content-level hotel">{{ item.hlevel||'--' }} </view>
<view class="content-tip"><text class="item">免费停车</text><text class="item">机器人服务</text>
</view>
<view class="content-address m-t-12"> 距您约{{ item.distance }}</view>
</view>
<view class="content-address m-t-12">{{ item.addressInfo||'--' }}</view>
<view class="item-price" v-if="item.price">
<text class="num_pr">¥</text><text class="num_jd">{{ item.price }}</text>
<text class="num_qi"></text>
</view>
</view>
</navigator>
</view>
</mescroll-uni>

@ -1,6 +1,6 @@
<template>
<view class="v-pages-bg bgcolor p-b-24">
<view class="v-card order small container-fluid m-t-24">
<view class="v-pages bgcolor p-b-24">
<view class="v-card order small container-fluid m-t-24" style="padding-bottom: 60rpx;">
<view class="v-order-form">
<view class="v-form-date row flex-align-center">
<view class="start"><text class="date">{{orderInfo.startDate1}}</text></view>
@ -16,6 +16,7 @@
<text v-if="orderInfo.guest">{{orderInfo.guest}}人入住</text> <text
v-if="orderInfo.houseArea">{{orderInfo.houseArea}}</text>
</view>
<view class="v-order-wait">需等待商家确认</view>
</view>
</view>
@ -50,7 +51,7 @@
<view class="m-t-24 v-form-content">如需发票请向民宿前台索取</view>
</view>
<view class="v-card order small container-fluid m-t-24">
<view class="v-card order small bg1 container-fluid m-t-24">
<view class="v-order-title">
<view class="text"><text>下单说明</text></view>
</view>
@ -186,10 +187,4 @@
</script>
<style lang="scss" scoped>
::v-deep .uni-forms-item__error {
left: 20rpx;
top: 60% !important;
}
</style>
</style>

@ -263,8 +263,7 @@
});
},
//
payResult(data) {
console.log(data);
payResult(data) {
if (data.payStatus == 1) {
uni.showToast({
title: '支付成功',
@ -577,6 +576,11 @@
margin-top: 8rpx;
font-size: 24rpx;
color: #808080;
padding-left: 30rpx;
background: url('https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/icon-address.png');
background-repeat: no-repeat;
background-position: left 4rpx;
background-size: 24rpx;
}
}
}
@ -594,7 +598,10 @@
z-index: 1;
width: 100%;
height: 600rpx;
background: linear-gradient(to bottom, #0983FF, transparent);
background: url('https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/order_bg.png');
background-repeat: no-repeat;
background-position: top left;
background-size: cover;
}
.v-order-info-btn {

@ -1,7 +1,6 @@
<template>
<view class="v-order-list">
<mescroll-body top="0" :topbar="true" :safearea="true" ref="mescrollRef" @init="mescrollInit"
:down="downOption" @down="downCallback" @up="upCallback">
<mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback">
<view class="list_item container-fluid m-b-24" v-for="(item,index) in orderList">
<view class="item_title">{{item.hotelName}}</view>
<view class="row">
@ -10,7 +9,11 @@
</view>
<view class="item_content col">
<view class="content-title">{{item.houseName}}</view>
<view class="content-date">{{item.checkTime}}--{{item.checkOutTime}}</view>
<view class="content-date">{{item.checkTime}}
<image src="https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/icon-data-line.png"
mode="widthFix">
</image>
{{item.checkOutTime}}</view>
<view class="content-price">总价¥{{item.orderAmount}}</view>
<view class="content-bottom">
<view class="btn" v-if="item.orderStatus=='0'">去支付</view>
@ -22,8 +25,8 @@
</view>
</view>
</view>
<view class="tip-bage"></view>
<view class="tip-state" v-if="item.orderStatus=='2'">等待商家确认中请及时关注订单状态</view>
<view class=""></view>
<view class="tip-state m-t-12" v-if="item.orderStatus=='2'">等待商家确认中请及时关注订单状态</view>
<view class="state" :class="'type'+item.orderStatus">{{stateMessage(item.orderStatus)}}</view>
</view>
</mescroll-body>
@ -49,7 +52,6 @@
this.upCallback()
},
methods: {
stateMessage: function(val) {
// 0 1 2 3 4 5 6 7 退 8退
switch (val) {
@ -87,7 +89,6 @@
//
if (page) {
this.loadData(page.num);
} else {
this.loadData(1);
uni.pageScrollTo({
@ -96,6 +97,21 @@
});
}
},
/*下拉刷新的回调 */
downCallback(mescroll) {
this.loadData(mescroll)
//this.get_data(mescroll);
// #ifdef H5
this.top = uni.upx2px(100 + 88) + 'px'; // H5 88
// #endif
// #ifndef H5
this.top = uni.upx2px(100) + 'px'; // H5
// #endif
setTimeout(() => {
mescroll.endSuccess();
this.top = 0;
}, 2500);
},
//
loadData(pageNo) {
let that = this
@ -173,7 +189,15 @@
padding: 30rpx 24rpx 20rpx 24rpx;
background-color: #fff;
border-radius: 10rpx;
.item_title{ padding-left: 30rpx; font-size: 32rpx; color: #1B1B1B; font-weight: bold;}
.item_title {
margin-bottom: 10rpx;
padding-left: 30rpx;
font-size: 32rpx;
color: #1B1B1B;
font-weight: bold;
}
.item_image {
width: 180rpx;
height: 180rpx;
@ -181,9 +205,9 @@
overflow: hidden;
.img {
width: 180rpx;
width: 180rpx;
}
}
}
.tip-bage {
position: absolute;
@ -230,13 +254,14 @@
}
.tip-state {
margin-left: -24rpx;
margin-bottom: -24rpx;
color: #0983FF;
padding: 16rpx 30rpx;
font-size: 28rpx;
padding: 10rpx 30rpx;
font-size: 24rpx;
background: linear-gradient(to right, rgba(9, 131, 255, .15), transparent);
}
.item_content {
.content-title,
@ -246,24 +271,26 @@
color: #666666;
font-size: 28rpx;
}
.content-date{image{width: 24rpx;height: 22rpx;margin: 0 10rpx;}}
.content-bottom {
text-align: right;
.btn {
display: inline-block;
margin: 0 10rpx;
padding: 0 20rpx;
border: 1rpx solid #CCCCCC;
color: #1B1B1B;
font-size: 28rpx;
text-align: center;
height: 64rpx;
line-height: 64rpx;
border-radius: 64rpx;
height: 60rpx;
line-height: 60rpx;
border-radius: 60rpx;
}
}
}
}
}
</style>
Loading…
Cancel
Save