2024-05-08 23:18:30 +08:00
|
|
|
|
<template>
|
|
|
|
|
<view class="page">
|
2024-09-30 18:02:38 +08:00
|
|
|
|
<view class="backimg" @click="toTips()"></view>
|
2024-09-19 17:33:39 +08:00
|
|
|
|
<view class="choose_card">
|
|
|
|
|
<view class="check">
|
|
|
|
|
<view class="txt1">
|
|
|
|
|
预约租车
|
2024-05-08 23:18:30 +08:00
|
|
|
|
</view>
|
2024-10-14 18:02:05 +08:00
|
|
|
|
<view class="txt2" @click="tomap()">
|
2024-09-19 17:33:39 +08:00
|
|
|
|
地图选车
|
2024-05-08 23:18:30 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-09-19 17:33:39 +08:00
|
|
|
|
<view class="area_li">
|
2024-09-25 18:03:49 +08:00
|
|
|
|
<view class="city" @click="showCity()">
|
2024-09-19 17:33:39 +08:00
|
|
|
|
<view class="txt">
|
|
|
|
|
取车城市
|
2024-08-16 18:05:31 +08:00
|
|
|
|
</view>
|
2024-09-25 18:03:49 +08:00
|
|
|
|
<view class="words" style="white-space: nowrap;">
|
|
|
|
|
{{cityList[0].cityName}}
|
2024-09-19 17:33:39 +08:00
|
|
|
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/uJkuBFsHACP6tnUo5nYm" mode=""></image>
|
2024-05-08 23:18:30 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-09-25 18:03:49 +08:00
|
|
|
|
<view class="area" @click="getMapLocation()" style="white-space: nowrap;">
|
2024-09-19 17:33:39 +08:00
|
|
|
|
<view class="top">
|
2024-06-20 18:08:54 +08:00
|
|
|
|
<view class="txt">
|
2024-09-25 18:03:49 +08:00
|
|
|
|
取车地点
|
2024-08-12 08:48:46 +08:00
|
|
|
|
</view>
|
2024-09-19 17:33:39 +08:00
|
|
|
|
<view class="type">
|
|
|
|
|
距最近店铺727m
|
2024-09-06 17:58:07 +08:00
|
|
|
|
</view>
|
2024-05-08 23:18:30 +08:00
|
|
|
|
</view>
|
2024-09-19 17:33:39 +08:00
|
|
|
|
<view class="bot">
|
2024-09-25 18:03:49 +08:00
|
|
|
|
<view class="txt3">
|
|
|
|
|
{{addressInfo}}
|
|
|
|
|
</view>
|
|
|
|
|
|
2024-09-19 17:33:39 +08:00
|
|
|
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/uJkuBFsHACP6tnUo5nYm" mode=""></image>
|
2024-06-23 17:17:51 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-09-25 18:03:49 +08:00
|
|
|
|
<view class="dingw" style="white-space: nowrap;" @click="getaddress()">
|
2024-09-19 17:33:39 +08:00
|
|
|
|
当前位置
|
|
|
|
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/unTHfCN5IgnVKDbadsFp" mode=""></image>
|
2024-06-06 18:04:50 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-09-19 17:33:39 +08:00
|
|
|
|
<view class="time_box">
|
|
|
|
|
<view class="time_li">
|
2024-06-23 17:17:51 +08:00
|
|
|
|
<view class="txt">
|
2024-09-19 17:33:39 +08:00
|
|
|
|
取车时间
|
2024-06-23 17:17:51 +08:00
|
|
|
|
</view>
|
2024-09-25 18:03:49 +08:00
|
|
|
|
<view class="words" @click="time1=true">
|
2024-09-30 18:02:38 +08:00
|
|
|
|
{{time}}
|
2024-09-19 17:33:39 +08:00
|
|
|
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/uJkuBFsHACP6tnUo5nYm" mode=""></image>
|
2024-06-23 17:17:51 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-09-19 17:33:39 +08:00
|
|
|
|
<view class="time_li">
|
2024-06-23 17:17:51 +08:00
|
|
|
|
<view class="txt">
|
2024-09-19 17:33:39 +08:00
|
|
|
|
选择租车周期
|
2024-06-06 18:04:50 +08:00
|
|
|
|
</view>
|
2024-09-30 18:02:38 +08:00
|
|
|
|
<view class="words" @click="showdata=true">
|
2024-09-25 18:03:49 +08:00
|
|
|
|
{{dataInfo.dictLabel}}
|
2024-09-19 17:33:39 +08:00
|
|
|
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/uJkuBFsHACP6tnUo5nYm" mode=""></image>
|
2024-06-06 18:04:50 +08:00
|
|
|
|
</view>
|
2024-05-28 17:48:29 +08:00
|
|
|
|
</view>
|
2024-06-27 18:04:37 +08:00
|
|
|
|
</view>
|
2024-09-19 17:33:39 +08:00
|
|
|
|
<view class="btn" @click="tosele()">
|
|
|
|
|
立即选车
|
2024-06-27 18:04:37 +08:00
|
|
|
|
</view>
|
2024-10-14 18:02:05 +08:00
|
|
|
|
<!-- <image class="kefu" src="https://lxnapi.ccttiot.com/bike/img/static/u8osHvZfHL7u3lbveVXx" mode=""></image> -->
|
2024-06-25 18:02:39 +08:00
|
|
|
|
</view>
|
2024-09-30 18:02:38 +08:00
|
|
|
|
<view class="car_card" v-for="(item,index) in shopList" :key="index" @click="toStore(item)">
|
2024-09-19 17:33:39 +08:00
|
|
|
|
<view class="card_top">
|
|
|
|
|
<view class="tit">
|
2024-09-30 18:02:38 +08:00
|
|
|
|
{{item.name}}
|
2024-06-28 18:08:22 +08:00
|
|
|
|
</view>
|
2024-09-19 17:33:39 +08:00
|
|
|
|
<view class="txt">
|
2024-09-25 18:03:49 +08:00
|
|
|
|
{{item.rentalCar}}辆可租 <view class="iconfont icon-xiangyou1"> </view>
|
2024-06-28 18:08:22 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-09-19 17:33:39 +08:00
|
|
|
|
<view class="type_box">
|
|
|
|
|
<view class="type">
|
2024-09-25 18:03:49 +08:00
|
|
|
|
{{item.distance}}m
|
2024-06-28 18:08:22 +08:00
|
|
|
|
</view>
|
2024-09-19 17:33:39 +08:00
|
|
|
|
<view class="address">
|
2024-09-25 18:03:49 +08:00
|
|
|
|
{{item.simpleAddress}}
|
2024-06-28 18:08:22 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-09-19 17:33:39 +08:00
|
|
|
|
<view class="car_info">
|
|
|
|
|
<view class="car_img">
|
2024-09-25 18:03:49 +08:00
|
|
|
|
<image :src="item.models[0].picture" mode=""></image>
|
2024-06-28 18:08:22 +08:00
|
|
|
|
</view>
|
2024-09-19 17:33:39 +08:00
|
|
|
|
<view class="info">
|
|
|
|
|
<view class="modle">
|
2024-09-25 18:03:49 +08:00
|
|
|
|
{{item.models[0].model}}
|
2024-06-28 18:08:22 +08:00
|
|
|
|
</view>
|
2024-09-19 17:33:39 +08:00
|
|
|
|
<view class="price">
|
2024-09-25 18:03:49 +08:00
|
|
|
|
日租¥ <span>{{item.models[0].price}}</span>
|
2024-06-28 18:08:22 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-09-19 17:33:39 +08:00
|
|
|
|
</view>
|
2024-09-25 18:03:49 +08:00
|
|
|
|
<u-picker mode="time" v-model="time1" :params="params" @confirm="confirm1" start-year="2024"
|
|
|
|
|
:default-time="pickertime" start="2024"></u-picker>
|
|
|
|
|
<u-mask :show="showdata" @click="closeData()" :z-index='100' />
|
|
|
|
|
<view class="choosedata" v-if="showdata">
|
|
|
|
|
<view class="tit">
|
|
|
|
|
请选择租车周期
|
2024-09-30 18:02:38 +08:00
|
|
|
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/uLzTHCbE6TTRPYj6rv8X" mode=""
|
|
|
|
|
@click="closeData()"></image>
|
2024-09-25 18:03:49 +08:00
|
|
|
|
</view>
|
2024-09-30 18:02:38 +08:00
|
|
|
|
<view class="li" v-for="(item,index) in dataList" :key="index" :class="index == dataIndex? 'act':''"
|
|
|
|
|
@click="chooseData(item,index)">
|
2024-09-25 18:03:49 +08:00
|
|
|
|
{{item.dictLabel}}
|
|
|
|
|
</view>
|
2024-09-30 18:02:38 +08:00
|
|
|
|
|
2024-09-25 18:03:49 +08:00
|
|
|
|
</view>
|
2024-10-17 18:08:10 +08:00
|
|
|
|
|
2024-10-14 18:02:05 +08:00
|
|
|
|
<tab-bar :indexs='0' style="" :userInfo='userInfo'></tab-bar>
|
2024-09-19 17:33:39 +08:00
|
|
|
|
</view>
|
|
|
|
|
</template>
|
2024-05-08 23:18:30 +08:00
|
|
|
|
|
|
|
|
|
<script>
|
2024-10-14 18:02:05 +08:00
|
|
|
|
const app = getApp();
|
|
|
|
|
var xBlufi = require("@/utils/blufi/xBlufi.js");
|
|
|
|
|
let _this = null;
|
2024-05-08 23:18:30 +08:00
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
bgc: {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
backgroundColor: "#fff",
|
2024-08-12 17:52:23 +08:00
|
|
|
|
},
|
2024-09-25 18:03:49 +08:00
|
|
|
|
cityList: [],
|
|
|
|
|
dataList: [],
|
|
|
|
|
gps: {},
|
|
|
|
|
cityInfo: {},
|
|
|
|
|
cityIndex: -1,
|
|
|
|
|
addressInfo: '',
|
|
|
|
|
time1: false,
|
|
|
|
|
params: {
|
|
|
|
|
year: false,
|
|
|
|
|
month: true,
|
|
|
|
|
day: true,
|
|
|
|
|
hour: false,
|
|
|
|
|
minute: false,
|
|
|
|
|
second: false
|
|
|
|
|
},
|
|
|
|
|
startTime: '',
|
|
|
|
|
pickertime: '',
|
|
|
|
|
time: '',
|
2024-09-30 18:02:38 +08:00
|
|
|
|
showdata: false,
|
|
|
|
|
dataIndex: 0,
|
|
|
|
|
dataInfo: {},
|
2024-10-14 18:02:05 +08:00
|
|
|
|
shopList: [],
|
2024-10-17 18:08:10 +08:00
|
|
|
|
userInfo: {},
|
|
|
|
|
qParam:'',
|
|
|
|
|
sn:''
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
2024-05-08 23:18:30 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2024-10-17 18:08:10 +08:00
|
|
|
|
onLoad(e) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
if (e.q) {
|
|
|
|
|
this.qParam = e.q
|
|
|
|
|
if (this.qParam != 'null' ) {
|
|
|
|
|
let qParam = this.qParam
|
|
|
|
|
console.log(qParam, 'qParamqParamqParam');
|
|
|
|
|
// 第2步: URL解码q参数
|
|
|
|
|
let decodedUrl = decodeURIComponent(qParam);
|
|
|
|
|
|
|
|
|
|
// 第3步: 使用正则表达式解析解码后的URL并提取查询参数
|
|
|
|
|
let sn = null;
|
|
|
|
|
let queryParams = decodedUrl.split('?')[1];
|
|
|
|
|
if (queryParams) {
|
|
|
|
|
let params = queryParams.split('&');
|
|
|
|
|
params.forEach(param => {
|
|
|
|
|
let [key, value] = param.split('=');
|
|
|
|
|
if (key === 'sn') {
|
|
|
|
|
sn = value;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
this.sn = sn
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
2024-09-25 18:03:49 +08:00
|
|
|
|
this.getcityList()
|
|
|
|
|
this.getdata()
|
2024-05-08 23:18:30 +08:00
|
|
|
|
},
|
2024-09-19 17:33:39 +08:00
|
|
|
|
computed: {
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
2024-05-08 23:18:30 +08:00
|
|
|
|
},
|
|
|
|
|
onShow() {
|
2024-10-17 18:08:10 +08:00
|
|
|
|
if(this.userInfo.userId){
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
this.getUserInfo()
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-25 18:03:49 +08:00
|
|
|
|
let that = this
|
|
|
|
|
uni.getLocation({
|
|
|
|
|
type: 'gcj02',
|
|
|
|
|
success: function(lb) {
|
|
|
|
|
|
|
|
|
|
that.gps.latitude = lb.latitude;
|
|
|
|
|
that.gps.longitude = lb.longitude;
|
2024-10-17 18:08:10 +08:00
|
|
|
|
that.getshopList()
|
2024-09-25 18:03:49 +08:00
|
|
|
|
that.getCity()
|
|
|
|
|
that.getaddress()
|
2024-10-17 18:08:10 +08:00
|
|
|
|
|
2024-09-25 18:03:49 +08:00
|
|
|
|
},
|
|
|
|
|
fail: function(error) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: '未获取到定位信息,请点击设置勾选允许位置信息,即可使用全部功能',
|
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 2000
|
|
|
|
|
});
|
|
|
|
|
// that.getmarks()
|
|
|
|
|
// 在这里处理获取位置信息失败的情况
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
// 获取当前日期,并设置startDate和pickertime
|
|
|
|
|
const now = new Date();
|
|
|
|
|
const month = now.getMonth() + 1; // 月份从0开始,因此加1
|
|
|
|
|
const day = now.getDate();
|
|
|
|
|
|
|
|
|
|
// 格式化为 MM-DD 的字符串
|
|
|
|
|
this.startDate = `${month < 10 ? '0' : ''}${month}-${day < 10 ? '0' : ''}${day}`;
|
|
|
|
|
this.time = `${month < 10 ? '0' : ''}${month}月${day < 10 ? '0' : ''}${day}日`;
|
|
|
|
|
// 初始化pickertime为当天的默认日期
|
|
|
|
|
this.pickertime = this.startDate;
|
2024-09-30 18:02:38 +08:00
|
|
|
|
|
2024-06-05 18:11:17 +08:00
|
|
|
|
},
|
2024-09-19 17:33:39 +08:00
|
|
|
|
watch: {
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
2024-05-08 23:18:30 +08:00
|
|
|
|
},
|
|
|
|
|
methods: {
|
2024-10-17 18:08:10 +08:00
|
|
|
|
getsn(){
|
|
|
|
|
if(this.userInfo.userId){
|
|
|
|
|
let data = {
|
|
|
|
|
sn: this.sn
|
|
|
|
|
}
|
|
|
|
|
this.$u.get(`appVerify/getInProgressOrder?`, data).then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
// if(res.data.)
|
|
|
|
|
// this.getstoreInfo()
|
|
|
|
|
if(res.data){
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url:'/pages_device/carInfo?sn='+this.sn
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
this.$u.get('app/getDeviceBySn?sn=' + this.sn).then((res) => {
|
|
|
|
|
console.log(res, 'rererer');
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
// console.log(this.areaId,);
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
url:'/page_user/ordder?storeId='+res.data.storeId+'&modelId='+res.data.modelId
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: res.msg,
|
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 2000
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: res.msg,
|
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 2000
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url:'/pages/login/login?qParam='+this.qParam
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
getUserInfo() {
|
2024-10-14 18:02:05 +08:00
|
|
|
|
this.$u.get("/getInfo").then((res) => {
|
2024-10-17 18:08:10 +08:00
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.userInfo = res.user
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-10-14 18:02:05 +08:00
|
|
|
|
}
|
2024-10-17 18:08:10 +08:00
|
|
|
|
if(this.sn!=''){
|
|
|
|
|
this.getsn()
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-14 18:02:05 +08:00
|
|
|
|
});
|
|
|
|
|
},
|
2024-10-17 18:08:10 +08:00
|
|
|
|
tomap() {
|
|
|
|
|
if (this.userInfo.userId) {
|
2024-10-14 18:02:05 +08:00
|
|
|
|
uni.navigateTo({
|
2024-10-17 18:08:10 +08:00
|
|
|
|
url: '/page_user/mapSele?index=' + this.dataIndex
|
2024-10-14 18:02:05 +08:00
|
|
|
|
})
|
2024-10-17 18:08:10 +08:00
|
|
|
|
} else {
|
2024-10-14 18:02:05 +08:00
|
|
|
|
uni.navigateTo({
|
2024-10-17 18:08:10 +08:00
|
|
|
|
url: '/pages/login/login'
|
2024-10-14 18:02:05 +08:00
|
|
|
|
})
|
|
|
|
|
}
|
2024-10-17 18:08:10 +08:00
|
|
|
|
console.log(this.dataInfo, 'dataInfo');
|
|
|
|
|
|
2024-10-14 18:02:05 +08:00
|
|
|
|
// this.dataInfo = item
|
|
|
|
|
// this.dataIndex = index
|
|
|
|
|
},
|
2024-10-17 18:08:10 +08:00
|
|
|
|
toTips() {
|
2024-09-30 18:02:38 +08:00
|
|
|
|
uni.navigateTo({
|
2024-10-17 18:08:10 +08:00
|
|
|
|
url: '/page_user/tips'
|
2024-09-30 18:02:38 +08:00
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
toStore(item) {
|
2024-10-17 18:08:10 +08:00
|
|
|
|
if (this.userInfo.userId) {
|
2024-10-14 18:02:05 +08:00
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: '/page_user/carStore?storeId=' + item.storeId
|
|
|
|
|
})
|
2024-10-17 18:08:10 +08:00
|
|
|
|
} else {
|
2024-10-14 18:02:05 +08:00
|
|
|
|
uni.navigateTo({
|
2024-10-17 18:08:10 +08:00
|
|
|
|
url: '/pages/login/login'
|
2024-10-14 18:02:05 +08:00
|
|
|
|
})
|
|
|
|
|
}
|
2024-10-17 18:08:10 +08:00
|
|
|
|
|
2024-09-30 18:02:38 +08:00
|
|
|
|
},
|
|
|
|
|
getshopList() {
|
|
|
|
|
let data = {
|
2024-09-25 18:03:49 +08:00
|
|
|
|
// phoneLon:this.gps.latitude,
|
2024-09-30 18:02:38 +08:00
|
|
|
|
phoneLon: 120.257144,
|
2024-09-25 18:03:49 +08:00
|
|
|
|
// phoneLat:this.gps.longitude,
|
2024-09-30 18:02:38 +08:00
|
|
|
|
phoneLat: 27.105719,
|
|
|
|
|
isFreeCar: true
|
2024-09-25 18:03:49 +08:00
|
|
|
|
}
|
2024-09-30 18:02:38 +08:00
|
|
|
|
this.$u.post(`app/getStoreListByLocation`, data).then((res) => {
|
2024-09-25 18:03:49 +08:00
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.shopList = res.data;
|
|
|
|
|
} else {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: res.msg,
|
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 2000
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
2024-09-30 18:02:38 +08:00
|
|
|
|
chooseData(item, index) {
|
2024-10-14 18:02:05 +08:00
|
|
|
|
// let data ={
|
|
|
|
|
// Data:item,
|
|
|
|
|
// index,index
|
|
|
|
|
// }
|
|
|
|
|
// uni.setStorageSync('data', item);
|
2024-09-30 18:02:38 +08:00
|
|
|
|
this.dataInfo = item
|
|
|
|
|
this.dataIndex = index
|
2024-09-25 18:03:49 +08:00
|
|
|
|
},
|
2024-09-30 18:02:38 +08:00
|
|
|
|
closeData() {
|
|
|
|
|
this.showdata = false
|
2024-09-25 18:03:49 +08:00
|
|
|
|
},
|
|
|
|
|
confirm1(selectedDate) {
|
|
|
|
|
// 将用户选择的日期和当前日期进行比较
|
|
|
|
|
|
|
|
|
|
// 从回调中获取选择的月份和日期
|
|
|
|
|
const selectedMonth = parseInt(selectedDate.month, 10);
|
|
|
|
|
const selectedDay = parseInt(selectedDate.day, 10);
|
|
|
|
|
|
|
|
|
|
// 获取当前日期
|
|
|
|
|
const now = new Date();
|
|
|
|
|
const currentMonth = now.getMonth() + 1;
|
|
|
|
|
const currentDay = now.getDate();
|
|
|
|
|
|
|
|
|
|
// 比较选择的日期和当前日期
|
|
|
|
|
if (selectedMonth < currentMonth || (selectedMonth === currentMonth && selectedDay < currentDay)) {
|
|
|
|
|
// 如果选择的日期比当前日期早,则重置为pickertime
|
|
|
|
|
const now = new Date();
|
|
|
|
|
const month = now.getMonth() + 1; // 月份从0开始,因此加1
|
|
|
|
|
const day = now.getDate();
|
2024-09-30 18:02:38 +08:00
|
|
|
|
|
2024-09-25 18:03:49 +08:00
|
|
|
|
// 格式化为 MM-DD 的字符串
|
2024-09-30 18:02:38 +08:00
|
|
|
|
|
2024-09-25 18:03:49 +08:00
|
|
|
|
this.time = `${month < 10 ? '0' : ''}${month}月${day < 10 ? '0' : ''}${day}日`;
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: '选择的日期不能小于当前日期',
|
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 2000
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
// 否则,设置为用户选择的日期
|
|
|
|
|
this.time = `${selectedDate.month}月${selectedDate.day}日`;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
getaddress() {
|
|
|
|
|
this.$u.get(`app/getAddress?lon=` + this.gps.longitude + '&lat=' + this.gps.latitude).then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.addressInfo = res.data;
|
|
|
|
|
} else {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: res.msg,
|
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 2000
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getCity() {
|
|
|
|
|
this.$u.get(`app/getCity?lon=` + this.gps.longitude + '&lat=' + this.gps.latitude).then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.cityInfo = res.data;
|
|
|
|
|
|
|
|
|
|
// 假设 cityList 是一个包含城市信息的数组,并且 cityInfo 中有一个唯一标识字段,例如 cityName 或 cityId
|
|
|
|
|
const index = this.cityList.findIndex(city => city.cityName === this.cityInfo.cityName);
|
|
|
|
|
|
|
|
|
|
if (index !== -1) {
|
|
|
|
|
this.cityIndex = index
|
|
|
|
|
console.log('City found at index:', index);
|
|
|
|
|
// 可以在这里对找到的索引进行其他处理
|
|
|
|
|
} else {
|
|
|
|
|
console.log('City not found in the list');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: res.msg,
|
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 2000
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
showCity() {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
getdata() {
|
|
|
|
|
|
|
|
|
|
this.$u.get("/app/getDictData?dictType=rl_rental_period").then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.dataList = res.data
|
2024-09-30 18:02:38 +08:00
|
|
|
|
this.dataInfo = this.dataList[0]
|
2024-09-25 18:03:49 +08:00
|
|
|
|
} else {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: res.msg,
|
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 2000
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getcityList() {
|
|
|
|
|
|
|
|
|
|
this.$u.get("app/city/list").then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.cityList = res.data
|
|
|
|
|
} else {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: res.msg,
|
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 2000
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
tosele() {
|
2024-10-17 18:08:10 +08:00
|
|
|
|
if (this.userInfo.userId) {
|
2024-10-14 18:02:05 +08:00
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: '/page_user/carSelection'
|
|
|
|
|
})
|
2024-10-17 18:08:10 +08:00
|
|
|
|
} else {
|
2024-10-14 18:02:05 +08:00
|
|
|
|
uni.navigateTo({
|
2024-10-17 18:08:10 +08:00
|
|
|
|
url: '/pages/login/login'
|
2024-10-14 18:02:05 +08:00
|
|
|
|
})
|
|
|
|
|
}
|
2024-10-17 18:08:10 +08:00
|
|
|
|
|
2024-09-06 17:58:07 +08:00
|
|
|
|
},
|
2024-09-30 18:02:38 +08:00
|
|
|
|
|
|
|
|
|
|
2024-09-25 18:03:49 +08:00
|
|
|
|
getMapLocation() {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
uni.chooseLocation({
|
2024-09-25 18:03:49 +08:00
|
|
|
|
success: (res) => {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
console.log(res);
|
|
|
|
|
// this.getRegionFn(res);
|
|
|
|
|
},
|
2024-09-25 18:03:49 +08:00
|
|
|
|
fail: () => {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
// 如果用uni.chooseLocation没有获取到地理位置,则需要获取当前的授权信息,判断是否有地理授权信息
|
|
|
|
|
uni.getSetting({
|
|
|
|
|
success: (res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
var status = res.authSetting;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
if (!status['scope.userLocation']) {
|
|
|
|
|
// 如果授权信息中没有地理位置的授权,则需要弹窗提示用户需要授权地理信息
|
2024-09-19 17:33:39 +08:00
|
|
|
|
uni.showModal({
|
2024-09-25 18:03:49 +08:00
|
|
|
|
title: "是否授权当前位置",
|
|
|
|
|
content: "需要获取您的地理位置,请确认授权,否则地图功能将无法使用",
|
|
|
|
|
success: (tip) => {
|
|
|
|
|
if (tip.confirm) {
|
|
|
|
|
// 如果用户同意授权地理信息,则打开授权设置页面,判断用户的操作
|
2024-09-19 17:33:39 +08:00
|
|
|
|
uni.openSetting({
|
2024-09-25 18:03:49 +08:00
|
|
|
|
success: (data) => {
|
|
|
|
|
// 如果用户授权了地理信息在,则提示授权成功
|
|
|
|
|
if (data
|
|
|
|
|
.authSetting[
|
|
|
|
|
'scope.userLocation'
|
2024-09-30 18:02:38 +08:00
|
|
|
|
] === true
|
|
|
|
|
) {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
uni.showToast({
|
2024-09-25 18:03:49 +08:00
|
|
|
|
title: "授权成功",
|
|
|
|
|
icon: "success",
|
|
|
|
|
duration: 1000
|
2024-09-19 17:33:39 +08:00
|
|
|
|
})
|
|
|
|
|
// 授权成功后,然后再次chooseLocation获取信息
|
|
|
|
|
uni.chooseLocation({
|
2024-09-25 18:03:49 +08:00
|
|
|
|
success: (
|
|
|
|
|
res
|
2024-09-30 18:02:38 +08:00
|
|
|
|
) => {
|
2024-09-25 18:03:49 +08:00
|
|
|
|
console
|
|
|
|
|
.log(
|
|
|
|
|
"详细地址",
|
|
|
|
|
res
|
2024-09-30 18:02:38 +08:00
|
|
|
|
);
|
2024-09-19 17:33:39 +08:00
|
|
|
|
// this.getRegionFn(res);
|
2024-08-14 18:05:16 +08:00
|
|
|
|
}
|
2024-09-19 17:33:39 +08:00
|
|
|
|
})
|
2024-09-25 18:03:49 +08:00
|
|
|
|
} else {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
uni.showToast({
|
2024-09-25 18:03:49 +08:00
|
|
|
|
title: "授权失败",
|
|
|
|
|
icon: "none",
|
|
|
|
|
duration: 1000
|
2024-09-19 17:33:39 +08:00
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
2024-08-14 18:05:16 +08:00
|
|
|
|
}
|
2024-09-19 17:33:39 +08:00
|
|
|
|
}
|
|
|
|
|
})
|
2024-08-14 18:05:16 +08:00
|
|
|
|
}
|
2024-07-04 18:03:21 +08:00
|
|
|
|
},
|
2024-09-19 17:33:39 +08:00
|
|
|
|
fail: (res) => {
|
|
|
|
|
uni.showToast({
|
2024-09-25 18:03:49 +08:00
|
|
|
|
title: "调用授权窗口失败",
|
|
|
|
|
icon: "none",
|
|
|
|
|
duration: 1000
|
2024-09-19 17:33:39 +08:00
|
|
|
|
})
|
2024-05-08 23:18:30 +08:00
|
|
|
|
}
|
2024-09-19 17:33:39 +08:00
|
|
|
|
})
|
2024-05-08 23:18:30 +08:00
|
|
|
|
}
|
2024-09-19 17:33:39 +08:00
|
|
|
|
});
|
|
|
|
|
},
|
2024-05-28 17:48:29 +08:00
|
|
|
|
|
2024-09-19 17:33:39 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
2024-05-28 17:48:29 +08:00
|
|
|
|
|
2024-09-19 17:33:39 +08:00
|
|
|
|
<style lang="scss">
|
|
|
|
|
page {
|
|
|
|
|
background: #F7F7F7;
|
|
|
|
|
}
|
2024-05-28 17:48:29 +08:00
|
|
|
|
|
2024-09-19 17:33:39 +08:00
|
|
|
|
.page {
|
|
|
|
|
width: 100%;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
padding-bottom: 200rpx;
|
2024-09-30 18:02:38 +08:00
|
|
|
|
|
2024-09-25 18:03:49 +08:00
|
|
|
|
.choosedata {
|
|
|
|
|
padding: 46rpx 37rpx;
|
|
|
|
|
position: fixed;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
width: 750rpx;
|
|
|
|
|
// height: 757rpx;
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
border-radius: 20rpx 20rpx 0 0;
|
|
|
|
|
z-index: 101;
|
2024-09-30 18:02:38 +08:00
|
|
|
|
|
2024-09-25 18:03:49 +08:00
|
|
|
|
.tit {
|
|
|
|
|
margin-bottom: 54rpx;
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 100%;
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 40rpx;
|
|
|
|
|
color: #3D3D3D;
|
2024-09-30 18:02:38 +08:00
|
|
|
|
|
2024-09-25 18:03:49 +08:00
|
|
|
|
image {
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 36rpx;
|
|
|
|
|
width: 52rpx;
|
|
|
|
|
height: 52rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-09-30 18:02:38 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-25 18:03:49 +08:00
|
|
|
|
.li {
|
|
|
|
|
margin-bottom: 24rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
width: 676rpx;
|
|
|
|
|
height: 88rpx;
|
|
|
|
|
background: #F7F7F7;
|
|
|
|
|
border-radius: 14rpx 14rpx 14rpx 14rpx;
|
|
|
|
|
border: 2rpx solid #fff;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 36rpx;
|
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
}
|
2024-09-30 18:02:38 +08:00
|
|
|
|
|
2024-09-25 18:03:49 +08:00
|
|
|
|
.act {
|
2024-09-30 18:02:38 +08:00
|
|
|
|
|
2024-09-25 18:03:49 +08:00
|
|
|
|
background: #DCEDFF;
|
2024-09-30 18:02:38 +08:00
|
|
|
|
|
2024-09-25 18:03:49 +08:00
|
|
|
|
border: 2rpx solid #4297F3;
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-09-30 18:02:38 +08:00
|
|
|
|
|
|
|
|
|
|
2024-09-25 18:03:49 +08:00
|
|
|
|
.car_card {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
margin: 0 auto;
|
|
|
|
|
margin-top: 16rpx;
|
|
|
|
|
padding: 28rpx 34rpx;
|
|
|
|
|
width: 676rpx;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
2024-09-19 17:33:39 +08:00
|
|
|
|
background: #FFFFFF;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
2024-09-19 17:33:39 +08:00
|
|
|
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.car_info {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
margin-top: 44rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.car_img {
|
|
|
|
|
image {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
width: 166rpx;
|
|
|
|
|
height: 128rpx;
|
2024-05-08 23:18:30 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.info {
|
|
|
|
|
.modle {
|
2024-09-06 17:58:07 +08:00
|
|
|
|
font-weight: 600;
|
2024-09-19 17:33:39 +08:00
|
|
|
|
font-size: 28rpx;
|
2024-05-08 23:18:30 +08:00
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
}
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.price {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
margin-top: 44rpx;
|
2024-05-08 23:18:30 +08:00
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 24rpx;
|
2024-09-19 17:33:39 +08:00
|
|
|
|
color: #FF1C1C;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
span {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-size: 44rpx;
|
|
|
|
|
}
|
2024-05-08 23:18:30 +08:00
|
|
|
|
}
|
2024-06-04 18:12:12 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.card_top {
|
2024-05-08 23:18:30 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
align-items: center;
|
2024-09-19 17:33:39 +08:00
|
|
|
|
justify-content: space-between;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.tit {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
}
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.txt {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
align-items: center;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #3D3D3D;
|
2024-05-08 23:18:30 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.type_box {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
margin-top: 8rpx;
|
2024-05-08 23:18:30 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
align-items: center;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.type {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
padding: 2rpx 12rpx;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #0D75E5;
|
|
|
|
|
background: #DCEDFF;
|
|
|
|
|
border-radius: 4rpx 4rpx 4rpx 4rpx;
|
|
|
|
|
}
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.address {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
margin-left: 20rpx;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #808080;
|
2024-05-08 23:18:30 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.kefu {
|
2024-05-08 23:18:30 +08:00
|
|
|
|
position: fixed;
|
2024-09-19 17:33:39 +08:00
|
|
|
|
right: 0;
|
|
|
|
|
bottom: 500rpx;
|
|
|
|
|
width: 94rpx;
|
|
|
|
|
height: 94rpx;
|
|
|
|
|
}
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
2024-09-19 17:33:39 +08:00
|
|
|
|
.backimg {
|
|
|
|
|
// position: fixed;
|
|
|
|
|
width: 750rpx;
|
|
|
|
|
height: 464rpx;
|
|
|
|
|
z-index: -10;
|
|
|
|
|
background-image: url('https://lxnapi.ccttiot.com/bike/img/static/uNurSfSfybEGAJYfXD07');
|
|
|
|
|
background-size: cover;
|
|
|
|
|
/* 背景图片等比缩放以覆盖整个容器 */
|
|
|
|
|
background-position: center;
|
|
|
|
|
}
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.choose_card {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
// position: fixed;
|
|
|
|
|
padding-bottom: 28rpx;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
margin-top: -60rpx;
|
|
|
|
|
width: 676rpx;
|
|
|
|
|
// height: 511rpx;
|
|
|
|
|
background: #FFFFFF;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
2024-05-08 23:18:30 +08:00
|
|
|
|
z-index: 110;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.check {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
margin-bottom: 40rpx;
|
2024-06-06 18:04:50 +08:00
|
|
|
|
display: flex;
|
2024-09-19 17:33:39 +08:00
|
|
|
|
flex-wrap: nowrap;
|
2024-06-06 18:04:50 +08:00
|
|
|
|
align-items: center;
|
2024-09-19 17:33:39 +08:00
|
|
|
|
width: 676rpx;
|
|
|
|
|
height: 96rpx;
|
|
|
|
|
background-image: url('https://lxnapi.ccttiot.com/bike/img/static/u5r7QJyFfPruTi4VsXzV');
|
|
|
|
|
background-size: cover;
|
|
|
|
|
/* 背景图片等比缩放以覆盖整个容器 */
|
|
|
|
|
background-position: center;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.txt1 {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
width: 50%;
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-weight: 600;
|
2024-06-06 18:04:50 +08:00
|
|
|
|
font-size: 40rpx;
|
2024-09-19 17:33:39 +08:00
|
|
|
|
color: #3D3D3D;
|
2024-06-06 18:04:50 +08:00
|
|
|
|
}
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.txt2 {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
width: 50%;
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 36rpx;
|
|
|
|
|
color: #808080;
|
2024-06-06 18:04:50 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.btn {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
margin: 0 auto;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
2024-09-19 17:33:39 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
width: 608rpx;
|
|
|
|
|
height: 80rpx;
|
|
|
|
|
background: #6DB3FF;
|
|
|
|
|
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
2024-05-28 17:48:29 +08:00
|
|
|
|
margin-top: 20rpx;
|
2024-05-08 23:18:30 +08:00
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-size: 36rpx;
|
2024-09-19 17:33:39 +08:00
|
|
|
|
color: #FFFFFF;
|
2024-05-08 23:18:30 +08:00
|
|
|
|
}
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.time_box {
|
|
|
|
|
margin: 0 auto;
|
2024-09-19 17:33:39 +08:00
|
|
|
|
padding: 22rpx 24rpx 28rpx 24rpx;
|
2024-06-06 18:04:50 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
2024-09-19 17:33:39 +08:00
|
|
|
|
width: 608rpx;
|
|
|
|
|
// height: 128rpx;
|
|
|
|
|
background: #EEEEEE;
|
|
|
|
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.time_li {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
width: 50%;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.txt {
|
2024-06-06 18:04:50 +08:00
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 24rpx;
|
2024-09-19 17:33:39 +08:00
|
|
|
|
color: #808080;
|
2024-06-06 18:04:50 +08:00
|
|
|
|
}
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.words {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
margin-top: 6rpx;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #3D3D3D;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
image {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
width: 40rpx;
|
|
|
|
|
height: 22rpx;
|
|
|
|
|
}
|
2024-06-06 18:04:50 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.area_li {
|
2024-05-08 23:18:30 +08:00
|
|
|
|
display: flex;
|
2024-09-19 17:33:39 +08:00
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
padding: 0 34rpx 28rpx 34rpx;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.dingw {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin-left: 30rpx;
|
|
|
|
|
margin-top: 46rpx;
|
2024-05-08 23:18:30 +08:00
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 28rpx;
|
2024-09-19 17:33:39 +08:00
|
|
|
|
color: #808080;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
image {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
margin-left: 8rpx;
|
|
|
|
|
width: 30rpx;
|
|
|
|
|
height: 30rpx;
|
2024-05-08 23:18:30 +08:00
|
|
|
|
}
|
2024-09-19 17:33:39 +08:00
|
|
|
|
}
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.city {
|
|
|
|
|
|
|
|
|
|
.txt {
|
2024-05-08 23:18:30 +08:00
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 24rpx;
|
2024-09-19 17:33:39 +08:00
|
|
|
|
color: #808080;
|
|
|
|
|
}
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.words {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
margin-top: 6rpx;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #3D3D3D;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
image {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
width: 40rpx;
|
|
|
|
|
height: 22rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.area {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
margin-left: 20rpx;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.top {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
align-items: center;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.txt {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #808080;
|
|
|
|
|
}
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.type {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
margin-left: 10rpx;
|
|
|
|
|
background: #FFE9D4;
|
|
|
|
|
border-radius: 4rpx 4rpx 4rpx 4rpx;
|
|
|
|
|
padding: 2rpx 6rpx;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 22rpx;
|
|
|
|
|
color: #FF8C1E;
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.bot {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
align-items: center;
|
2024-09-19 17:33:39 +08:00
|
|
|
|
margin-top: 6rpx;
|
2024-09-25 18:03:49 +08:00
|
|
|
|
|
|
|
|
|
.txt3 {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
width: 252rpx;
|
|
|
|
|
/* 设置宽度 */
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
/* 禁止文本换行 */
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
/* 超出部分隐藏 */
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
/* 超出部分显示省略号 */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
image {
|
2024-09-19 17:33:39 +08:00
|
|
|
|
width: 40rpx;
|
|
|
|
|
height: 22rpx;
|
|
|
|
|
}
|
2024-05-08 23:18:30 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|