jiazhipeng 10 months ago
parent
commit
5edddeb028
  1. 2
      app.js
  2. 5
      pages/index/index.wxml
  3. 4
      pages/index/index.wxss
  4. 12
      pages/info/sceneProductInfo/index.js
  5. 8
      pages/info/sceneProductInfo/index.wxml
  6. 2
      pages/user/suggest/suggest.js
  7. 7
      project.private.config.json

2
app.js

@ -38,7 +38,7 @@ App({
// 获取前端配置文件
commonApi._post("pbservice/Other/getClientConfig", {unique_key: "wechatxcx"}).then(res => {
let data = JSON.parse(res.data);
data.isTest = data.isTest118? true : false;
data.isTest = data.isTest122? true : false;
data.indexSeason = null
this.globalData.configJson = data
}).then(() => {

5
pages/index/index.wxml

@ -5,7 +5,8 @@
<!-- 顶部banner -->
<view style="position:relative;z-index: 1;">
<swiper class="swiper" autoplay="{{true}}" interval="{{3000}}" duration="{{300}}"
bindchange="changeBannerIndex" data-keyname="activeBannerIndex" circular>
bindchange="changeBannerIndex" data-keyname="activeBannerIndex" circular
indicator-dots indicator-active-color="#fff">
<block wx:for="{{banner}}" wx:key="index">
<swiper-item bindtap="bannerClick" data-item="{{item}}">
<image src="{{item.head_img}}" mode="scaleToFill"></image>
@ -254,7 +255,7 @@
<view class="hot-price">
<text>¥</text><text>{{item.price/100}}</text><text>起</text>
</view>
<view style="font-weight: 500;font-size: 23rpx;color: #999999;">已售{{item.sales_number}}</view>
<view style="font-weight: 500;font-size: 23rpx;color: #999999;">已售{{item.sales_number + (item.virtual_sales_number ||0)}}</view>
</view>
</view>

4
pages/index/index.wxss

@ -72,6 +72,10 @@
height: 173.33rpx;
}
.swiper .wx-swiper-dots.wx-swiper-dots-horizontal {
margin-bottom: -10rpx;
}
.main-content{
/* background-color:#E8F9FA; */
margin-top: -10rpx;

12
pages/info/sceneProductInfo/index.js

@ -10,6 +10,9 @@ Page({
* 页面的初始数据
*/
data: {
id: null,
isBook: false,
info: null,
bookingInfo: null,
bookingInfoTitle: "",
@ -65,8 +68,10 @@ Page({
}
if (options.ZTPoint) {this.setData({ZTPoint: options.ZTPoint})}
// 是否书展产品 标题产品详情 开园为活动 去掉政策
this.setData({
id: options.id
id: options.id,
isBook: [962712,"962712"].includes(options.id),
})
commonApi._post("scene/detail", {
id: options.id
@ -215,7 +220,7 @@ Page({
item.rate = Number(item.rate)
})
this.setData({
comment: res.data.list.splice(0, 2),
comment: res.data.list.splice(0, 5),
commentTotal: res.data.total
})
let arr = this.data.comment
@ -232,6 +237,9 @@ Page({
comment: arr
})
})
},
// 获取日期
changeDate: function (e) {

8
pages/info/sceneProductInfo/index.wxml

@ -1,6 +1,6 @@
<!--pages/info/sceneProductInfo/index.wxml-->
<wxs src="../../../utils/filter.wxs" module="tool" />
<title title="景点详情"></title>
<title title="{{isBook?'产品详情':'景点详情'}}"></title>
<view class="iconfont icon-fenxiang" bindtap="share"></view>
<image wx:for="{{info.product}}" style="{{aniSkuIndex==index?('top:689px;'):('top:'+top+'px;'+cartImgInfo)}}" class="headimg{{aniSkuIndex==index?' active':''}}" src="{{item.headimg}}" mode="aspectFill"></image>
<swiper class="swiper" indicator-dots="{{true}}" wx:if="{{info}}" autoplay="{{true}}" interval="{{2000}}" duration="{{300}}">
@ -17,8 +17,8 @@
</view>
</view>
<view class="tags-box address-box" style="height:auto">
<view class="info-address">开园时间:{{info.open_time}}</view>
<navigator url="/pages/info/sceneInfo/index?id={{info.id}}" catchtap="pagePoint" data-event="scene_detail" class="iconfont" style="font-size:27rpx;flex-shrink:0">优待政策 | 景点介绍 <text class="iconfont icon-you" style="font-size:24rpx"></text></navigator>
<view class="info-address">{{isBook?"活动":"开园"}}时间:{{info.open_time}}</view>
<navigator wx:if="{{!isBook}}" url="/pages/info/sceneInfo/index?id={{info.id}}" catchtap="pagePoint" data-event="scene_detail" class="iconfont" style="font-size:27rpx;flex-shrink:0">优待政策 | 景点介绍 <text class="iconfont icon-you" style="font-size:24rpx"></text></navigator>
</view>
<view class="tags-box textOver address-box" bindtap="gotolocation">
<view class="info-address">地址:{{info.address}}</view>
@ -248,7 +248,7 @@
<navigator url="/pages/list/comments/index?sceneid={{id}}" wx:if="{{comment.length>0}}" class="more-comment-btn">
查看全部点评<text class="iconfont icon-you"></text></navigator>
</view>
<view style="height:{{safeBottom}}px"></view>
<view style="height:140rpx"></view>
<notice bookingInfo="{{bookingInfo}}" skuName="{{bookingInfoTitle}}" wx:if="{{bookingInfo}}" bind:close="closeMask">
</notice>
<view style="position:absolute;right:0;left:-10000rpx;top:-20000rpx;z-index:-1">

2
pages/user/suggest/suggest.js

@ -13,7 +13,7 @@ Page({
formData:{
username: "",
mobile: null,
content:""
content:"",
},
safeBottom:app.globalData.safeBottom,

7
project.private.config.json

@ -6,6 +6,13 @@
"condition": {
"miniprogram": {
"list": [
{
"name": "pages/pbService/web/index",
"pathName": "pages/pbService/web/index",
"query": "weburl=https%3A%2F%2Fm.cloud.sz-trip.com%2Fwangzhe",
"launchMode": "default",
"scene": null
},
{
"name": "pages/login/index",
"pathName": "pages/login/index",

Loading…
Cancel
Save