周三内容

master
许宏杰 3 years ago
parent f1e2681365
commit 2bfd326600

@ -4,7 +4,9 @@
"pages/shequ/index",
"pages/add/index",
"pages/activity/index",
"pages/mine/index"
"pages/mine/index",
"pages/info/index",
"pages/shequinfo/index"
],
"requiredPrivateInfos": [
"getLocation",
@ -48,7 +50,10 @@
"usingComponents": {
"van-search": "@vant/weapp/search/index",
"van-dropdown-menu": "@vant/weapp/dropdown-menu/index",
"van-dropdown-item": "@vant/weapp/dropdown-item/index"
"van-dropdown-item": "@vant/weapp/dropdown-item/index",
"van-icon": "@vant/weapp/icon/index",
"van-tab": "@vant/weapp/tab/index",
"van-tabs": "@vant/weapp/tabs/index"
},
"sitemapLocation": "sitemap.json"
}

@ -1,11 +1,2 @@
/**app.wxss**/
@import '/font/index.wxss' ;
.container {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 200rpx 0;
box-sizing: border-box;
}

@ -55,7 +55,7 @@ Component({
cilckSwitchTab(event) {
let path = event.currentTarget.dataset.path.path
// console.log(path)
if(path == 'add') return
// if(path == 'add') return
wx.switchTab({
url: `/pages/${path}/index`,
})

@ -13,4 +13,8 @@
@font-face {
font-family: "FZZCHJW--GB1-0";
src: url("http://www.jichuanglanhai.com/demo/js-yingdi/font/方正正粗黑简体.TTF");
}
@font-face {
font-family: "xiaowei";
src: url("http://www.jichuanglanhai.com/demo/js-yingdi/font/ZCOOL - Xiaowei Logo.otf");
}

@ -1,66 +1,58 @@
// pages/add/index.js
Page({
/**
* 页面的初始数据
*/
data: {
fileList: [
{
url: "https://img.yzcdn.cn/vant/leaf.jpg",
name: "图片1",
},
],
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
onLoad(options) {},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
wx.setNavigationBarTitle({
title: "",
});
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
onShow() {},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
onHide() {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
onUnload() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
onPullDownRefresh() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
onReachBottom() {},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
onShareAppMessage() {},
});

@ -1,3 +1,5 @@
{
"usingComponents": {}
}
"usingComponents": {
"van-uploader": "@vant/weapp/uploader/index"
}
}

@ -1,2 +1,38 @@
<!--pages/add/index.wxml-->
<text>pages/add/index.wxml</text>
<view class="view-page" hover-class="none" hover-stop-propagation="false">
<input class="weui-input" name="input" placeholder="填写标题更容易被推荐哦~" placeholder-style="color:#bfbfc1;"/>
<view class="view-hr-line view-line-h1"/>
<view class="view-textarea" hover-class="none" hover-stop-propagation="false">
<textarea placeholder="分享你的心情和故事吧~" auto-focus placeholder-style="color:#bfbfc1;"/>
</view>
<view class="">
<view class="view-tagt">
<text>#话题</text>
</view>
<view class="view-hr-line view-line-h2"/>
<view class="view-local">
<image src="http://www.jichuanglanhai.com/demo/js-yingdi/images/icon_local@2x.png" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="">
</image>
<text>你在哪里</text>
</view>
<view class="view-hr-line"/>
<view class="view-call">
<image src="http://www.jichuanglanhai.com/demo/js-yingdi/images/icon_call@2x.png" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="">
</image>
<text>露营打卡</text>
</view>
</view>
<view class="view-uploader" hover-class="none" hover-stop-propagation="false">
<van-uploader deletable="{{false}}" file-list="{{ fileList }}" />
</view>
<view class="view-add-btn" >
<button type="primary" formType="submit">发布</button>
</view>
</view>

@ -1 +1,112 @@
/* pages/add/index.wxss */
/* pages/add/index.wxss */
.van-icon {
width: 37rpx;
height: 37rpx;
background-image: url(http://www.jichuanglanhai.com/demo/js-yingdi/images/icon_add@2x.png);
background-repeat: no-repeat;
background-size: 100%;
}
.van-uploader__preview-image {
border-radius: 19rpx;
}
.van-uploader__upload {
background: #f6f6f6;
border: 1rpx solid rgba(185, 189, 192, 0.5);
border-radius: 19rpx;
}
.van-icon-photograph::before {
content: "" !important;
}
.view-local {
display: flex;
align-items: center;
padding-top: 33rpx;
padding-bottom: 33rpx;
}
.view-local image {
width: 32rpx;
height: 32rpx;
margin-right: 20rpx;
}
.view-local text {
font-size: 26rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
font-weight: 400;
color: #273329;
}
.view-call {
padding-top: 33rpx;
padding-bottom: 33rpx;
display: flex;
align-items: center;
}
.view-call image {
margin-right: 20rpx;
width: 32rpx;
height: 32rpx;
}
.view-hr-line {
width: 100%;
height: 1rpx;
background: rgba(217, 217, 217, 0.3);
}
.view-line-h1 {
margin-top: 15rpx;
}
.view-line-h2 {
margin-top: 22rpx;
}
.view-call text {
font-size: 26rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
font-weight: 400;
color: #273329;
}
.view-tagt text {
font-size: 26rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
font-weight: 400;
color: #3b533f;
}
.view-tagt {
width: 104rpx;
height: 46rpx;
background: #eeeeee;
border-radius: 1rpx;
text-align: center;
}
.weui-input {
margin-top: 25rpx;
font-size: 29rpx;
font-family: "Alibaba-PuHuiTi-Medium.otf";
font-weight: bold;
}
.view-uploader {
margin-top: 33rpx;
}
.view-textarea {
margin-top: 25rpx;
}
.view-textarea textarea {
font-size: 26rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
}
.view-page {
padding-left: 28rpx;
padding-right: 28rpx;
}
.view-add-btn button {
margin-top: 85rpx;
height: 87rpx;
background: linear-gradient(90deg, #3b7a48, #488153);
border-radius: 44rpx;
}

@ -130,7 +130,59 @@ Page({
yingdiactive: null, //营地选中
yingdiName: '营地类型', //选中文字
},
//跳转详情页
gotoInfo(e){
let name = e.currentTarget.dataset.item.name
wx.navigateTo({
url: `/pages/info/index?name=${name}`,
})
// for(let key in this.data.markerRes){
// let list = this.data.markerRes[key]
// list.forEach(item=>{
// if (item.data == undefined) {
// return
// }
// if(item.data.camp.name == name){
// }
// })
// }
},
//输入框搜索
searchData(e){
let inputTetx = e.detail
let data = false
let marker = this.data.markers
marker.forEach((item,index)=>{
item.iconPath='http://www.jichuanglanhai.com/demo/js-yingdi/images/yingdi-icon.png',
item.width=25,
item.height=15
if(item.name.indexOf(inputTetx)!=-1){
data = true
item.iconPath = 'http://www.jichuanglanhai.com/demo/js-yingdi/images/yingdi-bian.png'
item.height = 25
item.width =35
this.setData({
latitude: item.latitude,
longitude:item.longitude,
scale: 8,
swiperIndex:index
})
return
}
})
if(!data){
wx.showToast({
icon:'error',
title:'没有搜索结果!'
})
}
this.setData({
markers:marker
})
},
// 轮播发生改变时候
swiperChange(e){
let marker = this.data.markers
@ -194,6 +246,7 @@ Page({
})
marker.push({
id: item.data.camp.id,
name:item.data.camp.name,
iconPath: 'http://www.jichuanglanhai.com/demo/js-yingdi/images/yingdi-icon.png',
latitude: item.data.camp.latitude,
longitude: item.data.camp.longitude,
@ -257,7 +310,7 @@ Page({
longitude:marker[0].longitude,
cityActive: e.currentTarget.dataset.index,
cityactiveName: e.currentTarget.dataset.item.text,
scale:8,
scale:9,
swiperIndex:0,
swiperList:swiperList
})
@ -300,6 +353,7 @@ Page({
},
//地图列表切换
cutMap() {
this.setData({
xiehuan: !this.data.xiehuan
})

@ -3,7 +3,7 @@
<!-- 输入框 -->
<view class="input-box">
<view class="input-value">
<van-search value="{{ keyWord }}" placeholder="输入营地名称" custom-class="input-css"/>
<van-search value="{{ keyWord }}" placeholder="输入营地名称" bind:search="searchData" custom-class="input-css"/>
</view>
<view class="input-btn" bindtap="cutMap">
<view class="btn-icon">
@ -62,7 +62,7 @@
<!-- 轮播 -->
<view class="carousel-box">
<swiper current="{{swiperIndex}}" previous-margin="38rpx" bindchange="swiperChange">
<swiper-item wx:for="{{swiperList}}" wx:key="indx">
<swiper-item wx:for="{{swiperList}}" wx:key="indx" bindtap="gotoInfo" data-index="{{index}}" data-item="{{item}}">
<view class="swiper-item">
<image src="{{item.images.url}}" mode="aspectFill"></image>
<view class="swiper-meu">

@ -0,0 +1,147 @@
// pages/info/index.js
let app = getApp() //映入封装请求
Page({
/**
* 页面的初始数据
*/
data: {
info:{},
imgList:[],
jieshaoList:[],
iconObj:{
"营地类型":[],
"场地类型":[],
"营地要求":[],
"基础设施":[],
"营地活动":[]
},
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.getInfo(options.name)
},
// 拨打电话
tellPhone(){
let phone = this.data.info.camp.public_at
wx.makePhoneCall({
phoneNumber:`${phone}`
})
},
//导航
goLoaction(){
const {latitude,longitude,name,location_addr} = this.data.info.camp
wx.openLocation({
latitude: parseInt(latitude) ,
longitude:parseInt(longitude),
name:name,
address:location_addr,
})
},
//预览图片
viewImages(e){
console.log(e)
let indexIamge = e.currentTarget.dataset.item.image.url
wx.previewImage({
urls:this.data.jieshaoList,
current:indexIamge
})
},
//获取详情数据
getInfo(name){
app.fetch(`9017/jsonData/jiangsu.json`, {}, false, 'GET').then(res => {
const{iconObj,jieshaoList} = this.data
for(let key in res){
let list = res[key]
for(let i = 0;i<list.length;i++){
if(list[i].data == undefined){
return
}
if(list[i].data.camp.name == name){
let imgList= []
list[i].data.camp.images.forEach(item=>{//轮播
imgList.push(item.url)
})
//底部照片
list[i].data.camp.content.forEach(img=>{
if(img.image.url !=''){
jieshaoList.push(img.image.url)
}
})
//icon列表
list[i].data.camp.others.forEach(it=>{
for(let iconName in iconObj) {
if(it.category_name == iconName){
iconObj[iconName].push({
icon:`http://www.jichuanglanhai.com/demo/js-yingdi/images/${it.name}.png`,
name:it.name,
value:it.value,
})
}
}
})
this.setData({
info :list[i].data,
imgList:imgList,
jieshaoList:jieshaoList,
iconObj:iconObj
})
}
}
}
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

@ -0,0 +1,4 @@
{
"usingComponents": {},
"navigationBarTitleText": "基地详情"
}

@ -0,0 +1,255 @@
<!--pages/info/index.wxml-->
<view class="info-container">
<!-- 圖片 -->
<view class="page-logo-image">
<view class="log-image">
<swiper autoplay interval="3000" circular>
<swiper-item bindtap="viewImages" data-item="{{item}}" wx:for="{{imgList}}" wx:key="index">
<image src="{{item}}" mode="aspectFill"></image>
</swiper-item>
</swiper>
</view>
<view class="img-bg">
<view class="user-data">
<view class="user-icon">
<image src="{{info.user.portrait}}"></image>
</view>
<view class="user-value">
<view class="value-name">
<view class="name-text">{{info.user.nick}}</view>
<view class="name-state">
露营{{info.user.camping_count}}次
</view>
</view>
<view class="value-timer">
发布于07-17 16:30
</view>
</view>
<view class="user-btn">
<view class="store">
<image src="http://www.jichuanglanhai.com/demo/js-yingdi/images/store.png" mode="aspectFill"></image>
</view>
<view class="share">
<image src="http://www.jichuanglanhai.com/demo/js-yingdi/images/share.png" mode="aspectFill"></image>
</view>
</view>
</view>
</view>
</view>
<!-- 营地基本信息 -->
<view class="basics-data">
<view class="basics-title">
<view class="basics-title-icon">
<image src="http://www.jichuanglanhai.com/demo/js-yingdi/images/vip.png" mode="aspectFill"></image>
</view>
<view class="basics-title-text">
{{info.camp.name}}
</view>
</view>
<view class="basics-address">
<text>{{info.camp.location_addr}}</text>
</view>
<view class="basics-lat">
距您28.3km
</view>
<view class="basics-btn">
<view class="location" bindtap="goLoaction">
<view class="basics-btn-icon">
<image src="http://www.jichuanglanhai.com/demo/js-yingdi/images/locations.png" mode="aspectFill"></image>
</view>
<view class="basics-btn-text">导航</view>
</view>
<view class="tel" bindtap="tellPhone">
<view class="basics-btn-icon">
<image src="http://www.jichuanglanhai.com/demo/js-yingdi/images/tel.png" mode="aspectFill"></image>
</view>
<view class="basics-btn-text">联系</view>
</view>
</view>
</view>
<!-- 营地相关信息 -->
<view class="correlation-data">
<!-- 标题可公用 -->
<view class="correlation-title">
<view class="correlation-title-icon">
<image src="http://www.jichuanglanhai.com/demo/js-yingdi/images/icon.png" mode="aspectFill"></image>
</view>
<view class="correlation-title-text">
营地预定
</view>
</view>
<!-- 预定列表-->
<view class="yuding-list">
<view class="yuding-list-item">
<view class="list-item-image">
<image src="http://img.xizhihk.com/MTY1NTcxOTc0MDM4NyM3ODYjanBlZw==.jpeg" mode="aspectFill"></image>
</view>
<view class="list-item-text">
<view class="item-text-name">
<text>六角天幕</text>
</view>
<view class="item-text-subtitle">
<text>精致下午茶,采摘</text>
</view>
</view>
<view class="list-item-btn">
<view class="item-moeny">
¥<text>118.00</text>
</view>
<view class="btn-text">预定</view>
</view>
</view>
<view class="yuding-list-item">
<view class="list-item-image">
<image src="http://img.xizhihk.com/MTY1NTcxOTc0MDM4NyM3ODYjanBlZw==.jpeg" mode="aspectFill"></image>
</view>
<view class="list-item-text">
<view class="item-text-name">
<text>碟形大幕</text>
</view>
<view class="item-text-subtitle">
<text>生活无忧 | 远离喧嚣 | 开心Go野</text>
</view>
</view>
<view class="list-item-btn">
<view class="item-moeny">
¥<text>118.00</text>
</view>
<view class="btn-text">预定</view>
</view>
</view>
</view>
<!-- 营地信息 -->
<view class="icon-list">
<!-- 标题可公用 -->
<view class="correlation-title">
<view class="correlation-title-icon">
<image src="http://www.jichuanglanhai.com/demo/js-yingdi/images/icon.png" mode="aspectFill"></image>
</view>
<view class="correlation-title-text">
营地信息
</view>
</view>
<!-- 列表 -->
<view class="yd-icon-list">
<view class="icon-title">
营地类型
</view>
<view class="icon-type-list">
<view class="type-item" wx:for="{{iconObj['营地类型']}}" wx:key="index">
<view class="type-item-icon">
<image src="{{item.icon}}" mode="aspectFill"></image>
</view>
<view class="type-item-title">
{{item.name}}
</view>
</view>
</view>
<view class="icon-title">
场地类型
</view>
<view class="icon-type-list">
<view class="type-item" wx:for="{{iconObj['场地类型']}}" wx:key="index">
<view class="type-item-icon">
<image src="{{item.icon}}" mode="aspectFill"></image>
</view>
<view class="type-item-title">
{{item.name}}
</view>
</view>
</view>
<view class="icon-title">
营地要求
</view>
<view class="icon-type-list">
<view class="type-item" wx:for="{{iconObj['营地要求']}}" wx:key="index">
<view class="type-item-icon">
<image src="{{item.icon}}" mode="aspectFill"></image>
</view>
<view class="type-item-title">
{{item.name}}
</view>
</view>
</view>
<view class="icon-title">
基础设施
</view>
<view class="icon-type-list">
<view class="type-item" wx:for="{{iconObj['基础设施']}}" wx:key="index">
<view class="type-item-icon">
<image src="{{item.icon}}" mode="aspectFill"></image>
</view>
<view class="type-item-title">
{{item.name}}
</view>
</view>
</view>
<view class="icon-title">
营地活动
</view>
<view class="icon-type-list">
<view class="type-item" wx:for="{{iconObj['营地活动']}}" wx:key="index">
<view class="type-item-icon">
<image src="{{item.icon}}" mode="aspectFill"></image>
</view>
<view class="type-item-title">
{{item.name}}
</view>
</view>
</view>
</view>
<!-- 推荐车型,天气 -->
<view class="tishi">
<view class="tishi-item">
<view class="tishi-item-title">
推荐车型
</view>
<view class="car-type">
<view class="car-item" style="margin-right:80rpx">
<view class="car-icon">
<image src="http://www.jichuanglanhai.com/demo/js-yingdi/images/两驱.png" mode="aspectFill"></image>
</view>
<view class="car-text">两驱</view>
</view>
<view class="car-item">
<view class="car-icon">
<image src="http://www.jichuanglanhai.com/demo/js-yingdi/images/四驱.png" mode="aspectFill"></image>
</view>
<view class="car-text">四驱</view>
</view>
</view>
</view>
<view class="tishi-item">
<view class="tishi-item-title">
推荐车型
</view>
<view class="weather">
<view class="weather-icon">
<view class="icon-box"></view>
<view class="icon-box-text">
小雨
</view>
</view>
<view class="weather-sevaen">
查看近7天
<van-icon name="arrow" />
</view>
</view>
</view>
</view>
</view>
<!-- 营地介绍 -->
<view class="jieshao">
<view class="jieshao-title">推荐车型</view>
<view class="jieshao-list">
<view class="jieshao-list-item" wx:for="{{info.camp.content}}" wx:key="index">
<view class="list-item-text">{{item.content}}</view>
<view class="images-list-item" bindtap="viewImages" data-item="{{item}}" data-index="{{index}}">
<image wx:if="{{item.image.url}}" src="{{item.image.url}}" mode="widthFix" style="height: {{item.image.height}}rpx;"></image>
</view>
</view>
</view>
</view>
</view>
</view>

@ -0,0 +1,448 @@
/* pages/info/index.wxss */
page{
background-color: #F8F4F8;
box-sizing: border-box;
}
image{
height: 100%;
width: 100%;
display: block;
}
.page-logo-image{
height: 471rpx;
width: 100%;
position: relative;
}
.log-image{
box-sizing: border-box;
width: 100%;
height: 100%;
}
.log-image swiper{
height: 100%;
width: 100%;
}
swiper-item{
height: 100%;
width: 100%;
}
swiper-item image{
height: 100%;
width: 100%;
display: block;
}
.img-bg{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image:url('http://www.jichuanglanhai.com/demo/js-yingdi/images/imgBg.jpg');
background-size: 100% 100%;
}
.user-data{
display: flex;
align-items: center;
box-sizing: border-box;
padding-top: 35rpx;
}
.user-icon{
height: 63rpx;
width: 63rpx;
border-radius: 50%;
background-color: #ffffff;
box-sizing: border-box;
padding: 1rpx;
overflow: hidden;
margin-left: 31rpx;
margin-right: 22rpx;
}
.user-icon image{
height: 100%;
width: 100%;
display: block;
border-radius: 50%;
}
.user-value{
flex: 1;
}
.value-name{
display: flex;
/* justify-content: center;
align-content: center; */
}
.name-text{
font-size: 26rpx;
font-family: "Alibaba-PuHuiTi-Medium.otf";
font-weight: 500;
color: #FFFFFF;
text-shadow: 0px 1px 2px #4E4E4E;
}
.name-state{
width: 105rpx;
height: 32rpx;
text-align: center;
line-height: 32rpx;
background: rgba(64, 124, 75, 0.8);
border: 1px solid #FFFFFF;
border-radius: 15rpx;
margin-left: 15rpx;
font-size: 19rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
font-weight: 400;
color: #FFFFFF;
}
.value-timer{
font-size: 22rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
font-weight: 400;
color: #FFFFFF;
opacity: 0.7;
margin-top: 10rpx;
}
.user-btn{
display: flex;
}
.user-btn>view{
height: 41rpx;
width: 41rpx;
}
.user-btn>view image{
height: 100%;
width: 100%;
display: block;
}
.share{
margin-right: 28rpx;
margin-left: 26rpx;
}
/* 營地基础信息 */
.basics-data{
width: 92%;
background: #FFFFFF;
box-shadow: 0px 0px 6rpx 0px rgba(231,231,231,0.73);
border-radius: 13rpx;
position: absolute;
left: 50%;
top: 400rpx;
transform: translate(-50%);
box-sizing: border-box;
padding: 35rpx;
}
.basics-title{
display: flex;
align-items: center;
}
.basics-title-icon{
height: 38rpx;
width: 38rpx;
border-radius: 50%;
overflow: hidden;
margin-right: 12rpx;
}
.basics-title-icon image{
height: 100%;
width: 100%;
display: block;
border-radius: 50%;
}
.basics-title-text{
font-size: 35rpx;
font-family: "Alibaba-PuHuiTi-Medium.otf";
font-weight: 500;
color: #273329;
}
.basics-address{
margin-top: 23rpx;
font-size: 26rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
font-weight: 400;
color: #58665A;
}
.basics-lat{
margin-top: 19rpx;
font-size: 26rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
font-weight: 400;
color: #9C9D9D;
}
.basics-btn{
margin-top: 28rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
.basics-btn>view{
width: 303rpx;
height: 51rpx;
background: #FAFAFA;
border-radius: 6rpx;
display: flex;
align-items: center;
justify-content: center;
}
.basics-btn-text{
font-size: 22rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
font-weight: 400;
color: #232E25;
}
.basics-btn-icon{
height: 23rpx;
width: 23rpx;
margin-right: 10rpx;
}
.basics-btn-icon image{
height: 100%;
width: 100%;
display: block;
}
/* 营地相关信息 */
.correlation-data{
box-sizing: border-box;
width: 92%;
margin:280rpx auto ;
}
.correlation-title{
display: flex;
align-items: center;
box-sizing: border-box;
margin-bottom: 24rpx;
}
.correlation-title-icon{
width: 40rpx;
height: 30rpx;
margin-right: 16rpx;
}
.correlation-title-text{
font-size: 32rpx;
font-family: "FZZCHJW--GB1-0";
font-weight: 400;
font-style: italic;
color: #273329;
}
/* 预定列表 */
.yuding-list{
width: 100%;
background: #FFFFFF;
box-shadow: 0px 0px 6rpx 0px rgba(231,231,231,0.73);
border-radius: 13rpx;
padding: 20rpx;
box-sizing: border-box;
}
.yuding-list-item{
display: flex;
/* align-items: center; */
}
.yuding-list .yuding-list-item:nth-child(n+2){
margin-top: 20rpx;
}
.list-item-image{
width: 148rpx;
height: 112rpx;
border-radius: 6rpx;
overflow: hidden;
}
.list-item-text{
box-sizing: border-box;
padding-left: 26rpx;
flex: 1;
}
.item-text-name{
font-size: 26rpx;
font-family: "Alibaba-PuHuiTi-Medium.otf";
font-weight: 500;
color: #273329;
}
.item-text-subtitle{
margin-top: 10rpx;
font-size: 22rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
font-weight: 400;
color: #9C9D9D;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.list-item-btn{
margin-left: 35rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-end;
}
.item-moeny{
box-sizing: border-box;
margin-bottom: 10rpx;
}
.item-moeny text{
margin-left: 10rpx;
font-size: 46rpx;
font-family: "xiaowei";
font-weight: 400;
color: #306E3D;
}
.btn-text{
width: 119rpx;
height: 51rpx;
text-align: center;
line-height: 51rpx;
font-size: 26rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
font-weight: 400;
color: #FFFFFF;
background: linear-gradient(90deg, #488254 0%, #286835 100%);
border-radius: 6rpx;
}
/* 营地信息 */
.icon-list{
margin-top: 49rpx;
}
.yd-icon-list{
background: #FFFFFF;
box-shadow: 0px 0px 6rpx 0px rgba(231,231,231,0.73);
border-radius: 13rpx;
padding:30rpx 20rpx;
box-sizing: border-box;
}
.icon-title{
margin-left: 20rpx;
font-size: 26rpx;
font-family: "Alibaba-PuHuiTi-Medium.otf";
font-weight: 500;
color: #273329;
margin-bottom: 28rpx;
}
.icon-type-list{
display: flex;
flex-wrap: wrap;
margin-bottom: 25rpx;
}
.icon-type-list>view{
width: 20%;
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 25rpx;
}
.type-item-icon{
width: 47rpx;
height: 47rpx;
}
.type-item-title{
margin-top: 20rpx;
font-size: 22rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
font-weight: 400;
color: #58665A;
}
/* 推荐 */
.tishi{
height: 218rpx;
margin-top: 49rpx;
display: flex;
justify-content: space-between;
}
.tishi-item{
width: 48%;
height: 100%;
background: #FFFFFF;
border-radius: 13rpx;
display: flex;
flex-direction: column;
}
.tishi-item-title{
font-size: 29rpx;
font-family: "Alibaba-PuHuiTi-Medium.otf";
font-weight: 500;
color: #273329;
margin-left: 29rpx;
margin-top: 22rpx;
}
.car-item{
display: flex;
align-items: center;
flex-direction: column;
}
.car-type{
flex: 1;
display: flex;
align-items: center;
justify-content: center;
}
.car-icon{
width: 53rpx;
height: 35rpx;
}
.car-text{
font-size: 22rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
font-weight: 400;
color: #58665A;
margin-top: 24rpx;
}
.weather{
flex: 1;
display: flex;
align-items: center;
justify-content: center;
}
.weather-icon{
display: flex;
flex-direction: column;
align-items: center;
}
.icon-box{
width: 63rpx;
height: 58rpx;
border: 1px solid red;
}
.icon-box-text{
margin-top: 24rpx;
font-size: 22rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
font-weight: 400;
color: #58665A;
}
.weather-sevaen{
font-size: 22rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
font-weight: 400;
color: #7E9D82;
margin-left: 60rpx;
border-bottom: 1px solid #7E9D82;
}
/* 介绍 */
.jieshao{
/* background: #FFFFFF;
border-radius: 13px; */
margin-top: 49rpx;
width: 100%;
background: #FFFFFF;
box-shadow: 0px 0px 6rpx 0px rgba(231,231,231,0.73);
border-radius: 13rpx;
padding: 20rpx;
box-sizing: border-box;
}
.jieshao-title{
box-sizing: border-box;
font-size: 29rpx;
font-family: "Alibaba-PuHuiTi-Medium.otf";
font-weight: 500;
color: #273329;
}
.jieshao-list{
margin-top: 33rpx;
}
.list-item-text{
font-size: 26rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
font-weight: 400;
color: #273329;
margin: 15rpx 0;
}
.jieshao-list-item{
}

@ -5,16 +5,62 @@ Page({
* 页面的初始数据
*/
data: {
active: 0,
list:[],
list2:[],
tabs:[
{name:'社区'},
{name:'官方'},
],
tabsActive:0,
},
/**
* 生命周期函数--监听页面加载
*/
goInfo(e){
wx.navigateTo({
url: `/pages/shequinfo/index?create_uid=${e.currentTarget.dataset.item.user.uid}&post_id=${e.currentTarget.dataset.item.post.id}`,
})
},
onLoad(options) {
this.getList()
this.getList2()
},
changeTab(e){
let {tabsActive} = this.data
tabsActive = e.currentTarget.dataset.index
if(this.data.tabsActive == tabsActive) return
this.setData({
tabsActive :tabsActive
})
},
getList(){
wx.request({
url: 'https://service.xizhihk.com/api/post/nearby_list?cv=CAMP3.13.1_WXAPP&lc=CAMP_MINIAPP_1001&cursor&latitude=31.25256&longitude=120.732321&page=1&size=20',
success:(res)=>{
// console.log(res)
this.setData({
list:res.data.data.list
})
},
})
},
getList2(){
wx.request({
url: 'https://service.xizhihk.com/api/post/recommend_list?cv=CAMP3.13.1_WXAPP&lc=CAMP_MINIAPP_1001',
success:(res)=>{
console.log(res)
this.setData({
list2:res.data.data.list
})
},
})
},
onReachBottom:function(e){
console.log("到底",e)
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
@ -64,5 +110,5 @@ Page({
*/
onShareAppMessage() {
}
},
})

@ -1,3 +1,7 @@
{
"usingComponents": {}
"usingComponents": {
},
"navigationBarTitleText": "社区",
"enablePullDownRefresh": true,
"onReachBottomDistance": 100
}

@ -1,2 +1,58 @@
<!--pages/shequ/index.wxml-->
<text>pages/shequ/index.wxml</text>
<view class="container">
<view class="tarbar">
<view class="tar-box">
<view class="tar-item" wx:for="{{tabs}}" wx:key="index" bindtap="changeTab" data-index="{{index}}">
<view class="tar-title">
{{item.name}}
</view>
<view class="tar-bac" wx:if="{{tabsActive == index}}"></view>
</view>
</view>
</view>
<view class="list">
<view class="picture" wx:if="{{tabsActive == 0}}">
<block wx:for="{{ list }}" wx:key="index">
<view class="item" bindtap="goInfo" data-item="{{item}}">
<view>
<image lazy-load mode="widthFix" src="{{ item.post.images[0].url}}" />
</view>
<view class="text-center">{{ item.post.title}}</view>
<view class="user-boxs">
<view class="user-icon">
<image src="{{item.user.portrait}}" mode="aspectFill"></image>
</view>
<view class="user-text">{{item.user.nick}}</view>
<view class="user-btn">
<view class="btn-icon">
<image src="http://www.jichuanglanhai.com/demo/js-yingdi/images/icon_heart@2x.png" mode="aspectFill"></image>
</view>
</view>
</view>
</view>
<view class="null-wrap"></view>
</block>
</view>
<view class="picture" wx:if="{{tabsActive == 1}}">
<block wx:for="{{ list2 }}" wx:key="index">
<view class="item">
<view>
<image lazy-load mode="widthFix" src="{{ item.post.images[0].url}}" />
</view>
<view class="text-center">{{ item.post.title}}</view>
<view class="user-boxs">
<view class="user-icon">
<image src="{{item.user.portrait}}" mode="aspectFill"></image>
</view>
<view class="user-text">{{item.user.nick}}</view>
<view class="user-btn">
<view class="btn-icon">
<image src="http://www.jichuanglanhai.com/demo/js-yingdi/images/icon_heart@2x.png" mode="aspectFill"></image>
</view>
</view>
</view>
</view>
<view class="null-wrap"></view>
</block>
</view>
</view>
</view>

@ -1 +1,116 @@
/* pages/shequ/index.wxss */
/* pages/shequ/index.wxss */
page{
background-color: #F6F6F6;
overflow: hidden;
}
.container{
display: flex;
flex-direction: column;
}
.list{
height: 90vh;
overflow-y: auto;
}
.tarbar{
position: fixed;
top: 0;
width: 100%;
}
.tar-box{
height: 80rpx;
background-color: #fff;
display: flex;
position: relative;
}
.tar-item{
flex: 1;
display: flex;
align-items: center;
justify-content: center;
font-size: 26rpx;
font-family: "Alibaba-PuHuiTi-Medium.otf";
font-weight: 500;
color: #010101;
}
.tar-bac{
width: 106rpx;
height: 23rpx;
position: absolute;
background-image:url('http://www.jichuanglanhai.com/demo/js-yingdi/images/选中状态.png');
background-size: 100% 100%;
}
/* 瀑布流布局 */
.picture{
column-gap: 3rpx;
column-count: 2;
margin: 0 10rpx;
margin-top: 115rpx;
margin-bottom: 50rpx;
}
.item {
width: calc(100% - 30rpx);
break-inside: avoid;
box-shadow: 0 5px 15px 0 rgba(0,0,0,0.1);
border-radius: 10rpx;
margin: 0 15rpx;
}
.item image {
width: 100%;
border-radius: 10rpx 10rpx 0 0;
}
.null-wrap{
height: 30rpx;
}
.data-img{
width: 300rpx;
height: 300rpx;
}
.text-center{
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
box-sizing: border-box;
padding: 19rpx 0 0 19rpx;
font-size: 26rpx;
font-family: "Alibaba-PuHuiTi-Medium.otf";
font-weight: 500;
color: #273329;
}
.user-boxs{
box-sizing: border-box;
padding: 19rpx 0 19rpx 19rpx;
display: flex;
align-items: center;
}
.user-icon{
width: 39rpx;
height: 39rpx;
border-radius: 50%;
}
.user-icon image{
height: 100%;
width: 100%;
display: block;
border-radius: 50%;
}
.user-text{
flex: 1;
box-sizing: border-box;
padding-left: 11rpx;
font-size: 22rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
font-weight: 400;
color: #9C9D9D;
}
.user-btn{
margin-right: 18rpx;
}
.btn-icon{
width: 23rpx;
height: 23rpx;
}
.btn-icon image{
height: 100%;
width: 100%;
display: block;
}

@ -0,0 +1,183 @@
// pages/shequinfo/index.js
let app = getApp(); //映入封装请求
const util = require("../../utils/uuid.js");
Page({
/**
* 页面的初始数据
*/
data: {
topic_names: ["我的露营人生", "寻找超人气营地", "无痕露营"],
images: [
{
url: "http://img.xizhihk.com/MTY1NzM2Mjc5ODEwMiM2MDUjanBn.jpg",
width: 682,
height: 1024,
},
{
url: "http://img.xizhihk.com/MTY1NzM2Mjc5ODM0NyM1ODIjanBn.jpg",
width: 1024,
height: 682,
},
{
url: "http://img.xizhihk.com/MTY1NzM2Mjc5ODY4NyM4ODMjanBn.jpg",
width: 1024,
height: 768,
},
{
url: "http://img.xizhihk.com/MTY1NzM2Mjc5ODY1NCMyMzgjanBn.jpg",
width: 1024,
height: 768,
},
{
url: "http://img.xizhihk.com/MTY1NzM2Mjc5ODc3NCMgNjgjanBn.jpg",
width: 1024,
height: 768,
},
{
url: "http://img.xizhihk.com/MTY1NzM2Mjc5ODI1OCMgODgjanBn.jpg",
width: 644,
height: 935,
},
{
url: "http://img.xizhihk.com/MTY1NzM2Mjc5ODI0OSMzMzEjanBn.jpg",
width: 1024,
height: 576,
},
{
url: "http://img.xizhihk.com/MTY1NzM2Mjc5ODI1MiM1MDUjanBn.jpg",
width: 682,
height: 1024,
},
{
url: "http://img.xizhihk.com/MTY1NzM2Mjc5ODMwMCMxMTQjanBn.jpg",
width: 768,
height: 1024,
},
{
url: "http://img.xizhihk.com/MTY1NzM2Mjc5ODQzMyM3MzEjanBn.jpg",
width: 1024,
height: 682,
},
{
url: "http://img.xizhihk.com/MTY1NzM2Mjc5ODU4NCMgNzgjanBn.jpg",
width: 682,
height: 1024,
},
{
url: "http://img.xizhihk.com/MTY1NzM2Mjc5ODYyNSMyODEjanBn.jpg",
width: 1024,
height: 682,
},
{
url: "http://img.xizhihk.com/MTY1NzM2Mjc5ODUzNSM0NDAjanBn.jpg",
width: 1024,
height: 768,
},
{
url: "http://img.xizhihk.com/MTY1NzM2Mjc5ODU3MSMgMjcjanBn.jpg",
width: 682,
height: 1024,
},
],
swiperIndex: 1,
userlist: [],
postlist: [],
},
//事件处理函数
swiperChange(e) {
this.setData({
swiperIndex: e.detail.current + 1,
});
},
//预览图片,放大预览
preview(e) {
// console.log(e);
let index = e.currentTarget.dataset.index;
let url = e.currentTarget.dataset.url;
wx.previewImage({
current: url, // 当前显示图片的http链接
urls: [url], // 需要预览的图片http链接列表
});
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
let create_uid= options.create_uid
let post_id=options.post_id
this.getData(create_uid,post_id);
},
getData(create_uid,post_id) {
// https://service.xizhihk.com/api/post/comment_page?cv=CAMP3.13.1_WXAPP&lc=CAMP_MINIAPP_1001&create_uid=149755&post_id=2222914410000019755&start=1&count=20&id=0
// app.fetch(`9017/jsonData/sqhh.json`, {}, false, "GET").then((res) => {
// this.setData({
// userlist: res.data.user,
// postlist: res.data.post,
// images: res.data.post.images,
// });
// wx.setNavigationBarTitle({
// title: res.data.post.title,
// });
// });
let _this = this;
wx.request({
url: "https://service.xizhihk.com/api/post/detail?cv=CAMP3.13.1_WXAPP&lc=CAMP_MINIAPP_1001",
method: "POST",
data: { post_id: post_id, create_uid: create_uid },
header: {
"Content-Type": "application/json;charset=UTF-8",
},
success: function (res) {
console.log("----->", res);
_this.setData({
userlist: res.data.data.user,
postlist: res.data.data.post,
images: res.data.data.post.images,
});
wx.setNavigationBarTitle({
title: res.data.data.post.title,
});
},
});
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
// wx.setNavigationBarTitle({
// title: "",
// });
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {},
});

@ -0,0 +1,3 @@
{
"usingComponents": {}
}

@ -0,0 +1,107 @@
<!--pages/shequinfo/index.wxml-->
<view class="">
<view class="swiper-box">
<swiper indicator-dots="{{false}}" indicator-color="#ffffff" autoplay="true" circular="true" display-multiple-items="true"
bindchange="swiperChange" >
<block wx:for="{{images}}" wx:key="images">
<swiper-item bindtap="preview" data-index="{{swiperIndex}}" data-url="{{item.url}}">
<image src='{{item.url}}' mode="aspectFill" style="width:100%;height:100%;" />
</swiper-item>
</block>
</swiper>
<view class="swiper-index-tag" wx:if="{{images.length}} > 1">
<text>{{swiperIndex}} / {{images.length}}</text>
</view>
<view class="swiper-index-tag" wx:else>
<text>{{swiperIndex}} / {{images.length}}</text>
</view>
</view>
<view class="user-lan" >
<view class="left-user-lan">
<view class="view-head" >
<!-- <image src="http://img.xizhihk.com/MTYyNzQzODIyMTc2NSM4NjMjcG5n.png" mode="aspectFill"/> -->
<image src="{{userlist.portrait}}" mode="aspectFill"/>
</view>
<view class="text-box">
<view class="text-name">
<text>{{userlist.nick}}</text>
</view>
<view class="text-time">
<text>08-16 19:12</text>
</view>
</view>
</view>
<view class="right-user-lan" >
<view class="btn-follow" >
<button class="mini-btn" type="primary" size="mini">关注</button>
</view>
<view class="icon-share" >
<image class="" src="http://www.jichuanglanhai.com/demo/js-yingdi/images/icon_share@2x.png" mode="aspectFill" lazy-load="false" binderror="" bindload="">
</image>
</view>
</view>
</view>
<view class="text-content" >
<text>
{{postlist.content}}
<!-- 一边湖光潋滟一边绿意浓浓下边花香鸟语上边蓝天白云。从吴中胜地虎丘山朝东远眺只见一泓碧波在阳光下闪现着迷人的光彩这就是位于苏州东部的金鸡湖。金鸡湖因传说有金鸡落于湖中而得名湖面水域开阔湖畔风景宜人。位于苏州市工业园区上承太湖下泄吴淞江与阳澄湖、独墅湖、沙湖紧密相连。金鸡湖被整个景观分为八个区依次为“湖滨大道”、“城市广场”、“金姬墩”、“波心岛”。泛舟270度的湖景视角让蓝天碧水相接尽处的湖西繁华尽收眼底鸟瞰金鸡湖水庞然大气回荡心间…… -->
</text>
</view>
<view class="view-herf" >
<navigator class="navig-herf" target="" url="pages/shequinfo/index" wx:for="{{topic_names}}" wx:key="id" hover-class="navigator-hover" open-type="navigate">
<text>#{{item}}</text>
</navigator>
</view>
<view class="view-tag">
<navigator class="navig-tag" target="" url="pages/shequinfo/index" hover-class="navigator-hover" open-type="navigate">
<view class="tag-image">
<image class="" src="http://www.jichuanglanhai.com/demo/js-yingdi/images/icon_park.png" mode="aspectFill" lazy-load="false" binderror="" bindload="">
</image>
</view>
<view class="tag-icon">
<image class="" src="http://www.jichuanglanhai.com/demo/js-yingdi/images/icon_park@2x.png" mode="aspectFill" lazy-load="false" binderror="" bindload="">
</image>
</view>
<view class="tag-name">
<!-- <text>HIker乡野露营地</text> -->
<text>{{postlist.location.site}}</text>
</view>
</navigator>
</view>
<view class="view-line">
<text></text>
</view>
<view class="">
<view class="commit-title">
<text>用户评价 ( 10 )</text>
</view>
<!-- 评论区 -->
<view class="view-commit">
<view class="view-commit-box">
<view class="view-commit-user">
<view class="commit-head-img">
<image src="https://thirdwx.qlogo.cn/mmopen/vi_32/XSqic8ibNMGjo3iaU3L0bibndtry1WwlXibueZjB8WMkbe4CPoIicNJTrwg4qttg2yb3BuUPLNyYR1GOtNL7s2NE2rCg/132" mode="aspectFill" />
<view class="commit-user">
<view class="commit-name">
<text >匿名用户</text>
</view>
<view class="commit-mint">
<text >45分钟</text>
</view>
</view>
</view>
<view class="commit-icon-heart">
<image class="" src="http://www.jichuanglanhai.com/demo/js-yingdi/images/icon_heart@2x.png" mode="aspectFill" />
<text class="" >29</text>
</view>
</view>
<view class="view-commit-content">
<text>好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩好想去玩</text>
</view>
</view>
</view>
</view>
</view>

@ -0,0 +1,200 @@
/* pages/shequinfo/index.wxss */
.user-lan {
margin-top: 39rpx;
margin-left: 30rpx;
margin-right: 28rpx;
display: flex;
justify-content: space-between;
align-items: center;
}
.left-user-lan {
display: flex;
align-items: center;
}
.right-user-lan {
display: flex;
align-items: center;
}
.text-box {
display: flex;
flex-direction: column;
/* background-color: bisque; */
/* height: 72rpx; */
justify-content: space-around;
}
.text-name text {
color: #273329;
font-family: "Alibaba-PuHuiTi-Medium.otf";
}
.text-time text {
font-size: 22rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
color: #9c9d9d;
}
.view-head image {
width: 72rpx;
height: 72rpx;
border-radius: 70rpx;
display: block;
margin-right: 19rpx;
}
.btn-follow button {
background-color: #446c4c;
margin-right: 27rpx;
}
.icon-share image {
width: 41rpx;
height: 41rpx;
display: block;
}
.text-content {
margin-left: 30rpx;
margin-right: 30rpx;
font-size: 29rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
color: #464d47;
}
.view-herf {
display: flex;
margin-left: 31rpx;
}
.navig-herf {
margin-top: 35rpx;
margin-right: 20rpx;
}
.navig-herf text {
font-size: 29rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
color: #3b533f;
}
.view-tag {
/* width: 362rpx; */
/* height: 72rpx; */
margin-top: 60rpx;
margin-left: 22rpx;
}
.view-tag navigator {
display: inline-flex;
align-items: center;
background: #f2f5f3;
padding-left: 8rpx;
padding-top: 8rpx;
padding-right: 12rpx;
}
.tag-image image {
width: 76rpx;
height: 56rpx;
border-radius: 3rpx;
margin-right: 20rpx;
}
.tag-icon image {
width: 26rpx;
height: 26rpx;
margin-right: 21rpx;
}
.tag-name text {
display: flex;
align-items: center;
font-size: 26rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
color: #446c4c;
}
.view-line {
margin-top: 40rpx;
width: 100%;
height: 12rpx;
background: #edf0ee;
}
.view-commit-box {
margin-top: 46rpx;
margin-left: 29rpx;
margin-right: 28rpx;
}
.view-commit-user {
display: flex;
align-items: center;
justify-content: space-between;
}
.commit-head-img {
display: flex;
align-items: center;
}
.commit-head-img image {
width: 71rpx;
height: 71rpx;
border-radius: 50%;
}
.commit-user {
display: flex;
margin-left: 19rpx;
}
.commit-name text {
font-size: 29rpx;
font-family: "Alibaba-PuHuiTi-Medium.otf";
color: #273329;
}
.commit-mint text {
margin-left: 23rpx;
font-size: 26rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
font-weight: 400;
color: #9c9d9d;
}
.commit-icon-heart {
display: flex;
align-items: center;
}
.commit-icon-heart image {
width: 26rpx;
height: 26rpx;
margin-right: 10rpx;
}
.commit-icon-heart text {
font-size: 25rpx;
font-family: Accidental Presidency-Regular;
color: #9c9d9d;
border: 1px solid red;
}
.view-commit-content {
margin-left: 80rpx;
padding-bottom: 64rpx;
}
.view-commit-content text{
color: #464D47;
font-size: 29rpx;
font-family: "Alibaba-PuHuiTi-Regular.otf";
}
.commit-title {
margin-left: 29rpx;
margin-top: 37rpx;
font-size: 29rpx;
font-family: "Alibaba-PuHuiTi-Medium.otf";
color: #273329;
}
.swiper-box {
position: relative;
}
.swiper-box swiper {
height: calc(100vw * 9 / 16);
}
.swiper-index-tag {
position: absolute;
right: 28rpx;
bottom: 26rpx;
padding: 10rpx 30rpx;
border-radius: 30rpx;
font-size: 26rpx;
background: rgba(0, 0, 0, 0.6);
}
.swiper-index-tag text {
font-family: "Alibaba-PuHuiTi-Regular.otf";
color: #ffffff;
}

@ -2,7 +2,42 @@
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"projectname": "jiangsu-yingdi",
"setting": {
"compileHotReLoad": true
"compileHotReLoad": true,
"urlCheck": false
},
"libVersion": "2.25.2"
"libVersion": "2.25.3",
"condition": {
"miniprogram": {
"list": [
{
"name": "",
"pathName": "pages/info/index",
"query": "name=骆山村",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pages/shequ/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pages/shequinfo/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pages/add/index",
"query": "",
"launchMode": "default",
"scene": null
}
]
}
}
}
Loading…
Cancel
Save