Browse Source

更新下

master
yvette 5 years ago
parent
commit
a0331e40fa
  1. 9
      app.js
  2. 33
      app.json
  3. 112
      pages/activity/spring2021/index.js
  4. 3
      pages/activity/spring2021/index.json
  5. 46
      pages/activity/spring2021/index.wxml
  6. 119
      pages/activity/spring2021/index.wxss
  7. 5
      pages/index/index.wxml
  8. 1
      pages/index/index.wxss
  9. 20
      pages/info/activityInfo/index.js
  10. 20
      pages/info/cardInfo/index.js
  11. 27
      pages/info/foodInfo/index.js
  12. 19
      pages/info/foodProductInfo/index.js
  13. 20
      pages/info/hotelInfo/index.js
  14. 115
      pages/info/hotelProductInfo/index.js
  15. 3
      pages/info/hotelProductInfo/index.json
  16. 99
      pages/info/hotelProductInfo/index.wxml
  17. 142
      pages/info/hotelProductInfo/index.wxss
  18. 19
      pages/info/museumInfo/index.js
  19. 22
      pages/info/newsInfo/index.js
  20. 19
      pages/info/postProductInfo/index.js
  21. 19
      pages/info/roadInfo/index.js
  22. 20
      pages/info/sceneInfo/index.js
  23. 19
      pages/info/sceneProductInfo/index.js
  24. 19
      pages/info/showInfo/index.js
  25. 21
      pages/info/strategyInfo/index.js
  26. 9
      pages/list/activitynew/index.js
  27. 28
      pages/list/activitynew/index.wxml
  28. 46
      pages/list/activitynew/index.wxss
  29. 1
      pages/list/hotel/index.js
  30. 20
      pages/list/movieticket/list/info/index.js
  31. 2
      pages/login/index.wxml
  32. 2
      pages/search/list/index.wxml
  33. 2
      pages/user/address/index.wxml
  34. 2
      pages/user/linkman/index.wxml
  35. 11
      project.private.config.json

9
app.js

@ -1,10 +1,14 @@
//app.js
import commonApi from "./utils/https/common"
App({
onLaunch: function () {
let rect = wx.getSystemInfoSync();
this.globalData.safeBottom = rect.safeArea?(rect.safeArea.bottom - rect.safeArea.height):0
// 获取uuid
commonApi._post("browse/get_uuid",{}).then(res=>{
// console.log('uuid',res);
this.globalData.uuid = res.data.uuid;
})
// 展示本地存储能力
var logs = wx.getStorageSync('logs') || []
logs.unshift(Date.now())
@ -38,6 +42,7 @@ App({
})
},
globalData: {
uuid:null,// 设备唯一uuid
// 苏州市政府的经纬度
latitude:"31.297401",//纬度
longitude:"120.585639",//经度

33
app.json

@ -1,5 +1,5 @@
{
"pages":[
"pages": [
"pages/index/index",
"pages/map/index",
"pages/search/index",
@ -111,19 +111,20 @@
"pages/ask/info/index",
"pages/ask/my/index",
"pages/activity/year2020/index",
"pages/activity/suyear/index"
"pages/activity/suyear/index",
"pages/activity/spring2021/index"
],
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
},
"window":{
"backgroundTextStyle":"light",
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "君到苏州",
"navigationBarTextStyle":"black",
"navigationStyle":"custom"
"navigationBarTitleText": "君到苏州(文化旅游总入口)",
"navigationBarTextStyle": "black",
"navigationStyle": "custom"
},
"style": "v2",
"sitemapLocation": "sitemap.json",
@ -134,21 +135,21 @@
"list": [
{
"pagePath": "pages/index/index",
"iconPath":"/images/home.png",
"selectedIconPath":"/images/homeSel.png",
"text":"首页"
"iconPath": "/images/home.png",
"selectedIconPath": "/images/homeSel.png",
"text": "首页"
},
{
"pagePath": "pages/map/index",
"iconPath":"/images/map.png",
"selectedIconPath":"/images/mapSeld.png",
"text":"图游"
"iconPath": "/images/map.png",
"selectedIconPath": "/images/mapSeld.png",
"text": "图游"
},
{
"pagePath": "pages/user/user",
"iconPath":"/images/user.png",
"selectedIconPath":"/images/userSel.png",
"text":"我的"
"iconPath": "/images/user.png",
"selectedIconPath": "/images/userSel.png",
"text": "我的"
}
]
}

112
pages/activity/spring2021/index.js

@ -0,0 +1,112 @@
// pages/activity/spring2021/index.js
import commonApi from "../../../utils/https/common"
import util from "../../../utils/util"
Page({
/**
* 页面的初始数据
*/
data: {
list1:[],
list2:[],
list3:[]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
// 获取数据
commonApi._post("product/get_product_by_tag",{
offset:0,
limit:100,
tag_id:28
}).then(res=>{
this.setData({
list1:this.getTwoProduct(res.data.list)
})
})
commonApi._post("product/get_product_by_tag",{
offset:0,
limit:100,
tag_id:29
}).then(res=>{
this.setData({
list2:res.data.list
})
})
commonApi._post("product/get_product_by_tag",{
offset:0,
limit:100,
tag_id:30
}).then(res=>{
this.setData({
list3:this.getTwoProduct(res.data.list)
})
})
},
getTwoProduct:function(list){
let res = [];
for(let i=0;i<list.length;i=i+2){
if(list[i+1]){
res.push([list[i],list[i+1]])
}
else {
res.push([list[i]])
}
}
return res;
},
gotoDetail:function(e){
util.gotoDetail(e.currentTarget.dataset.item)
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

3
pages/activity/spring2021/index.json

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

46
pages/activity/spring2021/index.wxml

@ -0,0 +1,46 @@
<!--pages/activity/spring2021/index.wxml-->
<image mode="widthFix" class="main-img topimg" src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/spring2021/top.jpg"></image>
<view style="height:613rpx"></view>
<view class="list" wx:if="{{list1.length>0}}">
<view class="list-in" wx:for="{{list1}}">
<view class="item1" wx:for="{{item}}" bindtap="gotoDetail" data-item="{{item}}">
<image src="{{item.headimg}}"></image>
<view class="textOver item1-title">{{item.title}}</view>
<view class="item1-bottom">
<view class="item1-price">{{item.price/100}}</view>
<view class="item1-btn">点击预定</view>
</view>
</view>
</view>
</view>
<view wx:else style="height:100rpx"></view>
<image src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/spring2021/title1.jpg" class="main-img" mode="widthFix"></image>
<image class="main-img" mode="widthFix" src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/spring2021/flower1.jpg"></image>
<view class="list list2" wx:if="{{list2.length>0}}" style="margin-top:-260rpx">
<view class="list-in list-in2">
<view class="item1 item2" wx:for="{{list2}}" bindtap="gotoDetail" data-item="{{item}}">
<image src="{{item.headimg}}" mode="aspectFill"></image>
<view class="textOver item1-title item2-title">{{item.title}}</view>
<view class="item1-bottom">
<view class="item1-price item2-price">{{item.price/100}}</view>
<view class="item1-btn">点击预定</view>
</view>
</view>
</view>
</view>
<image src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/spring2021/titlemore.jpg" class="main-img" mode="widthFix"></image>
<image class="main-img" mode="widthFix" src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/spring2021/flower2.jpg"></image>
<view class="list" wx:if="{{list3.length>0}}" style="margin-top:-160rpx">
<view class="list-in" wx:for="{{list3}}">
<view class="item1" wx:for="{{item}}" bindtap="gotoDetail" data-item="{{item}}">
<image src="{{item.headimg}}" mode="aspectFill"></image>
<view class="textOver item1-title">{{item.title}}</view>
<view class="item1-bottom">
<view class="item1-price">{{item.price/100}}</view>
<view class="item1-btn">点击预定</view>
</view>
</view>
</view>
</view>
<image class="main-img" mode="widthFix" src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/spring2021/bottom.jpg"></image>

119
pages/activity/spring2021/index.wxss

@ -0,0 +1,119 @@
/* pages/activity/spring2021/index.wxss */
.main-img {
display: block;
width: 100%;
}
.topimg {
position: absolute;
top: 0;
left: 0;
}
page {
background: #b8dd95;
}
.list {
margin: 0 8rpx;
border-radius: 7rpx;
background-color: #edf0a1;
padding: 14rpx 12rpx;
position: relative;
z-index: 2;
}
.list-in {
border-radius: 7rpx;
background-color: #68b83d;
padding: 23rpx 15rpx;
display: flex;
justify-content: space-between;
margin-bottom: 12rpx;
}
.list .list-in:last-child {
margin-bottom: 0;
}
.item1 {
width: 334rpx;
color: #fffbe7;
font-size: 23rpx;
line-height: 30rp;
text-align: center;
}
.item1 image {
height: 264rpx;
width: 334rpx;
display: block;
}
.item1-title {
margin: 8rpx;
}
.item1-bottom {
margin: 0 8rpx;
display: flex;
justify-content: center;
align-items: center;
}
.item1-price::before {
content: "¥";
font-size: 10rpx;
}
.item1-price::after {
content: "元";
font-size: 13rpx;
}
.item1-price {
font-size: 35rpx;
}
.item1-btn {
width: 88rpx;
line-height: 26rpx;
text-align: center;
background-color: #ff7c7a;
border-radius: 13rpx;
color: #fff;
font-size: 17rpx;
margin-left: 12rpx;
}
.list2 {
background-color: #93bd71;
border-radius: 29rpx;
padding: 24rpx 22rpx;
}
.list-in2 {
background: white;
box-shadow: 0rpx 10rpx 16rpx 0rpx
rgba(120, 134, 103, 0.69);
border-radius: 29rpx;
border: solid 2rpx #598723;
flex-wrap: wrap;
margin-bottom: 0;
padding: 29rpx 24rpx;
}
.item2 {
width: 314rpx;
color: #333;
margin-top: 40rpx;
}
.list-in2 .item2:nth-child(-n+2){
margin-top: 0;
}
.item2 image {
width: 314rpx;
height: 219rpx;
}
.item2-price {
color: #f75e48;
}
.item2-title {
line-height: 41rpx;
border-top: 1rpx dotted #999;
border-bottom: 1rpx dotted #999;
display: inline-block;
font-size: 26rpx;
color: #282822;
max-width: 300rpx;
}
.item2-price::before {
font-size: 18rpx;
}
.item2-price::after {
content: "";
}

5
pages/index/index.wxml

@ -1,5 +1,5 @@
<!--index.wxml-->
<title title="君到苏州"></title>
<title title="君到苏州(文化旅游总入口)"></title>
<swiper class="swiper" indicator-dots="{{true}}"
autoplay="{{true}}" interval="{{5000}}" duration="{{300}}">
<block wx:for="{{banner}}" wx:key="*this">
@ -28,7 +28,7 @@
<image src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/index/icon3.png" mode="widthFix"></image>
<view class="top-icon-text">景点门票</view>
</view>
<view bindtap="meituan" data-path="/pages/list/hotel/index" class="top-icon-item">
<view bindtap="gotoPath" data-path="/pages/list/hotel/index" class="top-icon-item">
<image src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/index/icon4.png" mode="widthFix"></image>
<view class="top-icon-text">酒店住宿</view>
</view>
@ -220,6 +220,7 @@
<view wx:for="{{list}}" wx:if="{{index%2==number}}" bindtap="gotoDetail" data-item="{{item}}">
<view wx:if="{{number==0 && index==0}}" class="hot-item today-hot">
<common-image class="today-main-img" width="100%" height="615rpx" src="{{item.ext.headimg}}" mode="aspectFill"></common-image>
<view style="position:absolute;left:0;right:0;top:0;bottom:0;background:rgba(0,0,0,0.14)"></view>
<image class="today-tip-img" src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/index/today.png" mode="widthFix"></image>
<view class="today-date">{{date}} {{month}}</view>
<view class="today-hot-box">

1
pages/index/index.wxss

@ -411,6 +411,7 @@
position: relative;
border-radius: 15rpx;
font-size: 0;
overflow: hidden;
}
.today-hot .today-main-img {
border-radius: 15rpx;

20
pages/info/activityInfo/index.js

@ -25,9 +25,27 @@ Page({
this.setData({
info:res.data
})
console.log(res)
this.BroswerRecord()
})
},
BroswerRecord:function(){
setTimeout(()=>{
if(app.globalData.uuid){
commonApi._post('browse/browse_record',{
type:"page",
title:this.data.info.name,
drive:"mini",
source_id:this.data.info.id,
url:"/pages/info/activityInfo/index?id="+this.data.info.id,
uuid:app.globalData.uuid
}).then(res=>{
})
}
else {
this.BroswerRecord();
}
},500)
},
order:function(){
let skuid = this.data.info.sku_id;
if(!skuid) return;

20
pages/info/cardInfo/index.js

@ -52,6 +52,7 @@ Page({
this.setData({
info:res.data
})
this.BroswerRecord();
})
},
changeMenu:function(e){
@ -123,6 +124,25 @@ Page({
onReady: function () {
},
BroswerRecord:function(){
setTimeout(()=>{
if(app.globalData.uuid){
commonApi._post('browse/browse_record',{
type:"goods",
title:this.data.info.title,
drive:"mini",
source_id:this.data.id,
url:"/pages/info/cardInfo/index?id="+this.data.id,
uuid:app.globalData.uuid
}).then(res=>{
console.log(res)
})
}
else {
this.BroswerRecord();
}
},500)
},
/**
* 生命周期函数--监听页面显示

27
pages/info/foodInfo/index.js

@ -1,24 +1,30 @@
// pages/info/foodInfo/index.js
import commonApi from "../../../utils/https/common"
let app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
info:null
info:null,
id:null
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.setData({
id:options.id
})
commonApi._post("scene/detail",{
id:options.id
}).then(res=>{
this.setData({
info:res.data
})
this.BroswerRecord()
})
},
@ -28,6 +34,25 @@ Page({
onReady: function () {
},
BroswerRecord:function(){
setTimeout(()=>{
if(app.globalData.uuid){
commonApi._post('browse/browse_record',{
type:"scene",
title:this.data.info.title,
drive:"mini",
source_id:this.data.id,
url:"/pages/info/foodInfo/index?id="+this.data.id,
uuid:app.globalData.uuid
}).then(res=>{
console.log(res)
})
}
else {
this.BroswerRecord();
}
},500)
},
/**
* 生命周期函数--监听页面显示

19
pages/info/foodProductInfo/index.js

@ -34,9 +34,28 @@ Page({
this.setData({
info:res.data
})
this.BroswerRecord()
console.log(res)
})
},
BroswerRecord:function(){
setTimeout(()=>{
if(app.globalData.uuid){
commonApi._post('browse/browse_record',{
type:"goods",
title:this.data.info.title,
drive:"mini",
source_id:this.data.info.id,
url:"/pages/info/foodProductInfo/index?id="+this.data.info.id,
uuid:app.globalData.uuid
}).then(res=>{
})
}
else {
this.BroswerRecord();
}
},500)
},
changeSku:function(e){
this.setData({
skuIndex:e.currentTarget.dataset.index

20
pages/info/hotelInfo/index.js

@ -2,6 +2,7 @@
let device = wx.getSystemInfoSync();
const ratio = device.windowWidth / 750;
import commonApi from "../../../utils/https/common"
let app = getApp();
import util from "../../../utils/util"
Page({
@ -31,8 +32,27 @@ Page({
this.setData({
info:res.data
})
this.BroswerRecord()
})
},
BroswerRecord:function(){
setTimeout(()=>{
if(app.globalData.uuid){
commonApi._post('browse/browse_record',{
type:"scene",
title:this.data.info.title,
drive:"mini",
source_id:this.data.info.id,
url:"/pages/info/hotelInfo/index?id="+this.data.info.id,
uuid:app.globalData.uuid
}).then(res=>{
})
}
else {
this.BroswerRecord();
}
},500)
},
changeMenu:function(e){
let index = e.currentTarget.dataset.index,that = this;
const query=wx.createSelectorQuery(); //创建节点查询器

115
pages/info/hotelProductInfo/index.js

@ -8,6 +8,12 @@ Page({
* 页面的初始数据
*/
data: {
invoiceModes:{
1:"如需发票,请向酒店前台索取",
2:"美团开具发票",
3:"第三方开具发票"
},
showInfoFlag:false,
listimgs:[],
startDate:"",//入住时间
endDate:"",//离店时间
@ -22,7 +28,10 @@ Page({
commentTotal:0,
comment:[],
products:[],
isTest:true
isTest:true,
activeSkuIndex:-1,
skuList:[],
roomInfo:null
},
/**
@ -51,10 +60,28 @@ Page({
tomorrow:util.formatDate(tomorrow)
})
this.getDetail()
this.getProduct()
// this.getProduct()
},
BroswerRecord:function(){
setTimeout(()=>{
if(app.globalData.uuid){
commonApi._post('browse/browse_record',{
type:"scene",
title:this.data.sceneInfo.title,
drive:"mini",
source_id:this.data.sceneInfo.id,
url:"/pages/info/hotelProductInfo/index?id="+this.data.sceneInfo.id,
uuid:app.globalData.uuid
}).then(res=>{
})
}
else {
this.BroswerRecord();
}
},500)
},
getProduct:function(){
commonApi._post("scene/get_hotel_sku_list",{
commonApi._post(this.data.sceneInfo.third_supplier_type=='mt'?"scene/get_mt_hotel_real_rooms_list":"scene/get_hotel_sku_list",{
start_time:this.data.startDate,
end_time:this.data.endDate,
scene_id:this.data.id
@ -67,6 +94,28 @@ Page({
})
})
},
// 获取产品下面的规格列表
getSkuList:function(e){
if(e.currentTarget.dataset.index==this.data.activeSkuIndex){
this.setData({
activeSkuIndex:-1
})
return;
}
this.setData({
activeSkuIndex:e.currentTarget.dataset.index,
skuList:[]
})
commonApi._post('scene/get_mt_hotel_real_rooms_sku_list',{
start_date:this.data.startDate,
end_date:this.data.endDate,
real_room_id:e.currentTarget.dataset.id
}).then(res=>{
this.setData({
skuList:res.data
})
})
},
order:function(e){
let item = e.currentTarget.dataset.item;
item.startDate = this.data.startDate;
@ -82,6 +131,31 @@ Page({
url: '/pages/order/hotel/index',
})
},
orderMt:function(e){
let item = e.currentTarget.dataset.item,product = e.currentTarget.dataset.product;
item.startDate = this.data.startDate;
item.endDate = this.data.endDate;
item.startDateText = this.data.startDateText;
item.endDateText = this.data.endDateText;
item.startDay = this.getDay(item.startDate);
item.endDay = this.getDay(item.endDate);
item.days = this.data.days;
item.id = item.sku_id;
// item.product_id = product.real_room_id;
item.sku_name = product.room_name;
item.sku_model={};
item.sku_model.area = product.useable_area+"m²";
item.sku_model.bed_type = item.bed_type;
item.sku_model.breakfast=item.breakfast;
item.sku_model.max_room_num = item.max_room_num;
console.log(item);
app.globalData.product = item;
// return;
app.globalData.couponInfo = null;
wx.navigateTo({
url: '/pages/order/hotel/index',
})
},
getDay:function(date){
let d = new Date(date.replace(/-/g,'/')).getDay();
let days = ["日","一","二","三","四","五","六"];
@ -101,6 +175,8 @@ Page({
this.setData({
sceneInfo:res.data
})
this.BroswerRecord();
this.getProduct()
})
// 获取问大家
commonApi._post("ask/getQuestionList",{
@ -190,9 +266,38 @@ Page({
startDate = new Date(startDate).getTime();
let days = Math.round((endDate - startDate) / (1000 * 24 * 60 * 60))
this.setData({
days:days
days:days,
activeSkuIndex:-1,
skuList:[]
})
// this.getProduct()
},
showRoomInfo:function(e){
let product = e.currentTarget.dataset.info,sku = e.currentTarget.dataset.sku;
this.setData({
showInfoFlag:true
// roomInfo:
})
commonApi.user_post("product/getMtRoomSkuInfo",{
real_room_id:product.real_room_id,
sku_id:sku.sku_id,
start_date: this.data.startDate,
end_date: this.data.endDate
}).then(res=>{
this.setData({
roomInfo:{
sku:sku,
skuInfo:res.data,
productInfo:product
}
})
})
},
hideRoomInfo:function(){
this.setData({
showInfoFlag:false,
roomInfo:null
})
this.getProduct()
},
/**

3
pages/info/hotelProductInfo/index.json

@ -1,5 +1,6 @@
{
"usingComponents": {
"title":"/pages/component/TitleHeader"
"title":"/pages/component/TitleHeader",
"common-image":"/pages/component/commonImage/index"
}
}

99
pages/info/hotelProductInfo/index.wxml

@ -33,7 +33,7 @@
</view>
</picker>
</view>
<view class="product-item" wx:for="{{products}}">
<view wx:if="{{sceneInfo && sceneInfo.third_supplier_type!='mt'}}" class="product-item" wx:for="{{products}}">
<image src="{{item.headimg}}" mode="aspectFill"></image>
<view class="product-info textOver">
<view class="title textOver">{{item.product.title+item.sku_name}}</view>
@ -47,6 +47,30 @@
<view class="btn" bindtap="order" data-item="{{item}}">预订</view>
</view>
</view>
<view wx:if="{{sceneInfo && sceneInfo.third_supplier_type=='mt'}}" wx:for="{{products}}" class="product-item1">
<view class="product-item" style="align-items:center">
<common-image src="{{item.img_list[0]}}" mode="aspectFill"></common-image>
<view class="product-info textOver">
<view class="title textOver"><view class="textOver">{{item.room_name}}</view></view>
<view class="subtitle textOver2">{{item.useable_area?(item.useable_area+'m²'):''}} <text wx:for="{{item.bed_info}}">{{item.bedDesc}}{{item.bedType}}x{{item.bedCount}}</text> {{item.window?item.window:''}}</view>
<view class="mt-price">{{item.low_price/100}}</view>
</view>
<view class="product-right">
<image class="product-arrow-img" bindtap="getSkuList" data-id="{{item.real_room_id}}" data-index="{{index}}" src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/info/arrow{{activeSkuIndex==index?'1':''}}.png" mode="widthFix"></image>
</view>
</view>
<view class="sku-item" wx:if="{{activeSkuIndex==index && skuList.length>0}}" wx:for="{{skuList}}" wx:for-index="skuIndex" wx:for-item="sku">
<view class="sku-info">
<view class="sku-title textOver" bindtap="showRoomInfo" data-sku="{{sku}}" data-info="{{item}}" style="display:flex;align-items:center;"><view class="textOver">{{sku.breakfast}} {{sku.bed_type}} {{sku.max_room_num}}人入住</view><text style="font-size:20rpx;margin-left:10rpx" class="iconfont icon-you"></text></view>
<view class="sku-tip">{{sku.refund_policy}}</view>
<view class="sku-price">{{sku.price/100}}</view>
<view class="sku-info">{{sku.breakfast}} {{sku.bed_type}} {{sku.max_room_num}}人入住</view>
</view>
<view class="product-right">
<view class="btn" bindtap="orderMt" data-item="{{sku}}" data-product="{{products[index]}}">预订</view>
</view>
</view>
</view>
<view class="box" wx:if="{{isTest==false}}">
<view class="box-top">
<text class="iconfont icon-tiwen1"></text><text>问大家</text>
@ -63,13 +87,6 @@
<view class="ques-num" wx:if="{{item.answer.total!=0}}">{{item.answer.total}}个回答</view>
<view class="ques-num" wx:if="{{item.answer.total==0}}">暂无回答</view>
</view>
<!-- <view class="item-ques">
<image class="item-icon" src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/ask/ans.png" mode="widthFix"></image>
<view class="ans">{{item.answer && item.answer.lastest_answer?item.answer.lastest_answer.answer:"暂无回答"}}</view>
</view>
<view class="ques-tip">
<view class="ques-time">{{item.created_time}}提问</view>
</view> -->
</navigator>
<navigator style="border-top:1rpx solid #ccc" url="/pages/ask/index?id={{sceneInfo.id}}" class="more-comment-btn">查看全部问答<text class="iconfont icon-you"></text></navigator>
</view>
@ -96,3 +113,69 @@
</navigator>
<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 class="mask" wx:if="{{showInfoFlag}}">
<view class="mask-bg" bindtap="hideRoomInfo"></view>
<view class="mask-content hotel-info-mask" wx:if="{{roomInfo}}">
<swiper class="swiper" indicator-dots="{{true}}" wx:if="{{roomInfo && roomInfo.productInfo.img_list.length>0}}"
autoplay="{{true}}" interval="{{2000}}" duration="{{300}}">
<block wx:for="{{roomInfo.productInfo.img_list}}" wx:key="*this">
<swiper-item>
<common-image src="{{item}}" mode="aspectFill"></common-image>
</swiper-item>
</block>
</swiper>
<view class="iconfont icon-ic_searchclosed" bindtap="hideRoomInfo"></view>
<view class="hotel-info-mask-title">房间信息</view>
<view class="info-table">
<view class="textOver">{{roomInfo.skuInfo.bed_type}}</view>
<view class="textOver">可住{{roomInfo.skuInfo.max_room_num}}人</view>
<view class="textOver">{{roomInfo.productInfo.useable_area}}m²</view>
<view class="textOver">{{roomInfo.productInfo.window}}</view>
<view class="textOver">{{roomInfo.productInfo.floor}}层</view>
<view class="textOver">{{roomInfo.skuInfo.goodsStatusText}}</view>
<view class="textOver">{{roomInfo.skuInfo.breakfast}}</view>
<view class="textOver">{{roomInfo.skuInfo.goodsTypeText}}</view>
</view>
<view class="hotel-info-tips">
<text>费用政策</text>
<view class="hotel-info-tip">
<view>加床:该房型{{roomInfo.productInfo.extra_bed==0?'不可':'可以'}}加床</view>
<view>{{roomInfo.skuInfo.confirmTypeText}}</view>
</view>
</view>
<view class="hotel-info-tips">
<text>是否需要身份证</text>
<view class="hotel-info-tip">
<view>{{roomInfo.skuInfo.needIdentityCard==false?'否':'是'}}</view>
</view>
</view>
<view class="hotel-info-tips">
<text>开票</text>
<view class="hotel-info-tip">
<view>{{invoiceModes[roomInfo.skuInfo.invoiceInfo.invoiceMode]}}</view>
</view>
</view>
<view class="info-border"></view>
<view class="hotel-info-tips" style="font-size:30rpx;margin-top:20rpx">预订规则</view>
<view wx:for="{{roomInfo.skuInfo.BookRule}}">
<view class="hotel-info-tips" style="font-size:26rpx;color:#666">{{item.ruleDateRangeText}}</view>
<view class="hotel-info-tips" style="display:block;color:#666">
<view>连续入住最少天数 <text style="color:#666">{{item.serialCheckinMin==0?"不限制":(item.serialCheckinMin+"天")}}</text></view>
<view>连续入住最多天数 <text style="color:#666">{{item.serialCheckinMax==0?"不限制":(item.serialCheckinMax+"天")}}</text></view>
<view>最少预订间数 <text style="color:#666">{{item.roomCountMin==0?"不限制":(item.roomCountMin+"间")}}</text></view>
<view>最多预订间数 <text style="color:#666">{{item.roomCountMax==0?"不限制":(item.roomCountMax+"间")}}</text></view>
<view>最早预订时间 <text style="color:#666">{{item.earliestBookingText}}</text></view>
<view>最晚预订时间 <text style="color:#666">{{item.latestBookingText}}</text></view>
</view>
</view>
<view class="hotel-info-tips" style="font-size:30rpx;margin-top:20rpx">取消政策</view>
<view class="hotel-info-tips" wx:for="{{roomInfo.skuInfo.BookRule}}" style="display:block;color:#666">
{{roomInfo.skuInfo.refund_policy}}
</view>
<view style="height:120rpx"></view>
<view class="fixed-bottom" wx:if="{{roomInfo && roomInfo.skuInfo}}">
<view class="fixed-bottom-left">价格:<text>¥{{roomInfo.skuInfo.price/100}}</text></view>
<view class="fixed-bottom-btn" bindtap="orderMt" data-item="{{roomInfo.sku}}" data-product="{{roomInfo.productInfo}}">立即预订</view>
</view>
</view>
</view>

142
pages/info/hotelProductInfo/index.wxss

@ -112,6 +112,14 @@ page {
background: white;
border-radius: 13rpx;
}
.product-item1 {
margin: 20rpx;
background: white;
border-radius: 13rpx;
}
.product-item1 .product-item {
margin: 0;
}
.product-item image {
width: 201rpx;
height: 201rpx;
@ -131,16 +139,26 @@ page {
flex-shrink: 0;
margin-left: 20rpx;
}
.product-right .price {
.product-right .price,.mt-price,.sku-price {
color: #D62828;
font-size: 40rpx;
font-weight: 500;
}
.product-right .price::before {
.sku-price {
font-size: 32rpx;
margin: 10rpx 0;
}
.product-right .price::before,.mt-price::before,.sku-price::before {
content: "¥";
font-size: 27rpx;
font-weight: 400;
}
.mt-price::after {
content: "起";
font-size: 20rpx;
color:#999;
margin-left: 4rpx;
}
.product-right .btn {
color: #fff;
width: 120rpx;
@ -336,3 +354,123 @@ page {
color: #999;
font-weight: 400;
}
.product-item .product-arrow-img {
width: 44rpx;
}
.sku-item {
display: flex;
justify-content: space-between;
align-items: center;
border-top: 1rpx solid #d9d9d9;
padding: 24rpx 20rpx;
}
.sku-info {
flex: 1;
width: 500rpx;
}
.sku-title {
font-size: 29rpx;
color: #333;
font-weight: 500;
}
.sku-tip {
color: #0B898E;
font-size: 21rpx;
margin-top: 10rpx;
}
.sku-info {
font-size: 20rpx;
color: #999;
}
.hotel-info-mask {
width: 100%;
position: absolute;
bottom: 0;
left: 0;
right: 0;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.hotel-info-mask-title {
font-size: 33rpx;
color: #333;
font-weight: 500;
margin: 20rpx;
}
.info-table {
margin: 20rpx;
border: 1rpx solid #999;
font-size: 24rpx;
display: flex;
text-align: center;
flex-wrap: wrap;
border-bottom: none;
}
.info-table .textOver {
width: 25%;
flex-shrink: 0;
box-sizing: border-box;
line-height: 60rpx;
border-right:1rpx solid #999;
border-bottom:1rpx solid #999;
}
.info-table .textOver:nth-child(4n){
border-right: none;
}
.hotel-info-tips {
margin:0 20rpx;
display: flex;
line-height: 60rpx;
font-size: 24rpx;
}
.hotel-info-tips text {
flex-shrink: 0;
color: #333;
margin-right: 40rpx;
}
.hotel-info-tips .hotel-info-tip {
font-weight: blod;
flex: 1;
}
.info-border {
height: 14rpx;
background-color: #f2f2f2;
}
.fixed-bottom {
position: fixed;
left: 0;
right: 0;
bottom: 0;
height: 113rpx;
display: flex;
align-items: center;
background-color: white;
box-shadow: 0px 0px 16rpx 0px rgba(6, 0, 1, 0.1);
}
.fixed-bottom-left {
flex: 1;
margin-left: 20rpx;
font-size: 29rpx;
color: #333;
}
.fixed-bottom-left text {
font-size: 36rpx;
font-weight: 500;
color: #D62828;
}
.fixed-bottom-btn {
font-size: 36rpx;
flex-shrink: 0;
color: #fff;
background: #D62828;
line-height: 113rpx;
width: 320rpx;
text-align: center;
}
.icon-ic_searchclosed {
position: absolute;
right: 10rpx;
top: 10rpx;
font-size: 50rpx;
color: #333;
}

19
pages/info/museumInfo/index.js

@ -21,8 +21,27 @@ Page({
this.setData({
info:res.data
})
this.BroswerRecord();
})
},
BroswerRecord:function(){
setTimeout(()=>{
if(app.globalData.uuid){
commonApi._post('browse/browse_record',{
type:"scene",
title:this.data.info.title,
drive:"mini",
source_id:this.data.info.id,
url:"/pages/info/museumInfo/index?id="+this.data.info.id,
uuid:app.globalData.uuid
}).then(res=>{
})
}
else {
this.BroswerRecord();
}
},500)
},
/**
* 生命周期函数--监听页面初次渲染完成

22
pages/info/newsInfo/index.js

@ -1,5 +1,6 @@
// pages/info/newsInfo/index.js
import commonApi from "../../../utils/https/common"
let app = getApp()
Page({
/**
@ -17,12 +18,29 @@ Page({
id:options.id
}).then(res=>{
res.data.list_imgs = res.data.photographer?res.data.photographer.split(","):[];
this.setData({
info:res.data
})
console.log(res)
this.BroswerRecord()
})
},
BroswerRecord:function(){
setTimeout(()=>{
if(app.globalData.uuid){
commonApi._post('browse/browse_record',{
type:"page",
title:this.data.info.title,
drive:"mini",
source_id:this.data.info.id,
url:"/pages/info/newsInfo/index?id="+this.data.info.id,
uuid:app.globalData.uuid
}).then(res=>{
})
}
else {
this.BroswerRecord();
}
},500)
},
/**

19
pages/info/postProductInfo/index.js

@ -39,6 +39,7 @@ Page({
this.setData({
info:res.data
})
this.BroswerRecord()
})
if(wx.getStorageSync("jstrip_token")){
commonApi.user_post("product/is_product_collection",{
@ -62,6 +63,24 @@ Page({
})
})
},
BroswerRecord:function(){
setTimeout(()=>{
if(app.globalData.uuid){
commonApi._post('browse/browse_record',{
type:"goods",
title:this.data.info.title,
drive:"mini",
source_id:this.data.info.id,
url:"/pages/info/postProductInfo/index?id="+this.data.info.id,
uuid:app.globalData.uuid
}).then(res=>{
})
}
else {
this.BroswerRecord();
}
},500)
},
like:function(){
let id = this.data.id,isLike = this.data.isLike;
commonApi.user_post("product/"+(isLike==1?"product_cancel_collection":"product_collection"),{

19
pages/info/roadInfo/index.js

@ -39,6 +39,7 @@ Page({
this.setData({
info:res.data
})
this.BroswerRecord()
})
commonApi._post("product/product_comment_list",{
product_id:options.id,
@ -54,6 +55,24 @@ Page({
})
})
},
BroswerRecord:function(){
setTimeout(()=>{
if(app.globalData.uuid){
commonApi._post('browse/browse_record',{
type:"goods",
title:this.data.info.title,
drive:"mini",
source_id:this.data.info.id,
url:"/pages/info/cardInfo/index?id="+this.data.info.id,
uuid:app.globalData.uuid
}).then(res=>{
})
}
else {
this.BroswerRecord();
}
},500)
},
changeMenu:function(e){
let index = e.currentTarget.dataset.index,that = this;
const query=wx.createSelectorQuery(); //创建节点查询器

20
pages/info/sceneInfo/index.js

@ -2,6 +2,7 @@
let device = wx.getSystemInfoSync();
const ratio = device.windowWidth / 750;
import commonApi from "../../../utils/https/common"
let app = getApp()
Page({
/**
@ -30,8 +31,27 @@ Page({
this.setData({
info:res.data
})
this.BroswerRecord()
})
},
BroswerRecord:function(){
setTimeout(()=>{
if(app.globalData.uuid){
commonApi._post('browse/browse_record',{
type:"scene",
title:this.data.info.title,
drive:"mini",
source_id:this.data.info.id,
url:"/pages/info/sceneInfo/index?id="+this.data.info.id,
uuid:app.globalData.uuid
}).then(res=>{
})
}
else {
this.BroswerRecord();
}
},500)
},
changeMenu:function(e){
let index = e.currentTarget.dataset.index,that = this;
const query=wx.createSelectorQuery(); //创建节点查询器

19
pages/info/sceneProductInfo/index.js

@ -60,6 +60,7 @@ Page({
this.setData({
info:res.data
})
this.BroswerRecord()
})
// 获取收藏的状态
if(wx.getStorageSync("jstrip_token")){
@ -95,6 +96,24 @@ Page({
console.log(res)
})
},
BroswerRecord:function(){
setTimeout(()=>{
if(app.globalData.uuid){
commonApi._post('browse/browse_record',{
type:"scene",
title:this.data.info.title,
drive:"mini",
source_id:this.data.info.id,
url:"/pages/info/sceneProductInfo/index?id="+this.data.info.id,
uuid:app.globalData.uuid
}).then(res=>{
})
}
else {
this.BroswerRecord();
}
},500)
},
like:function(){
let id = this.data.id,isLike = Number(this.data.isLike);
console.log(isLike)

19
pages/info/showInfo/index.js

@ -21,8 +21,27 @@ Page({
this.setData({
info:res.data
})
this.BroswerRecord()
})
},
BroswerRecord:function(){
setTimeout(()=>{
if(app.globalData.uuid){
commonApi._post('browse/browse_record',{
type:"goods",
title:this.data.info.title,
drive:"mini",
source_id:this.data.info.id,
url:"/pages/info/showInfo/index?id="+this.data.info.id,
uuid:app.globalData.uuid
}).then(res=>{
})
}
else {
this.BroswerRecord();
}
},500)
},
order:function(){
if(this.data.info.sku.length==0){
wx.showToast({

21
pages/info/strategyInfo/index.js

@ -1,5 +1,6 @@
// pages/info/strategyInfo/index.js
import commonApi from "../../../utils/https/common"
let app = getApp()
Page({
/**
@ -20,7 +21,7 @@ Page({
this.setData({
info:res.data
})
console.log(res)
this.BroswerRecord()
})
commonApi._post("travels/addView",{
id:options.id
@ -28,6 +29,24 @@ Page({
})
},
BroswerRecord:function(){
setTimeout(()=>{
if(app.globalData.uuid){
commonApi._post('browse/browse_record',{
type:"page",
title:this.data.info.title,
drive:"mini",
source_id:this.data.info.id,
url:"/pages/info/strategyInfo/index?id="+this.data.info.id,
uuid:app.globalData.uuid
}).then(res=>{
})
}
else {
this.BroswerRecord();
}
},500)
},
setLike:function(){
commonApi.user_post("travels/like",{
id:this.data.info.id

9
pages/list/activitynew/index.js

@ -10,7 +10,7 @@ Page({
data: {
selectDay:new Date().getTime(),
days: ['日','一','二','三','四','五','六'],
types:[null,'show','exhibition','scene','movie','lecture'],
types:[null,'show','exhibition','scene','movie','lecture','other'],
weeks:[],
pageNo:1,
sort:"",
@ -44,7 +44,7 @@ Page({
commonApi._post("pbservice/Other/getSuzhouAreas").then(res=>{
res.data.unshift({
area_code:"",
area_name:"苏州"
area_name:"苏州"
})
this.setData({
areas:res.data
@ -69,7 +69,8 @@ Page({
area:e.detail.value,
list:[],
total:1,
pageNo:1
pageNo:1,
moreFlag:true
})
this.getList()
},
@ -133,7 +134,7 @@ Page({
date:this.data.date,
category:this.data.types[this.data.type],
keywords:this.data.realKeywords,
// area_key:this.data.areas[this.data.area].area_code,
area_key:this.data.areas[this.data.area].area_code,
page_num:10
}).then(res=>{
this.setData({

28
pages/list/activitynew/index.wxml

@ -1,11 +1,19 @@
<!--pages/activity/index.wxml-->
<title-header title="活动日历"></title-header>
<view class="top-fixed-box">
<view class="my-search-box" hidden="{{type==4}}">
<view class="acitivity-search-box" hidden="{{type==4}}">
<picker mode="selector" value="{{area}}" range="{{areas}}" range-key="area_name" bindchange="changeArea">
<view class="picker">
<view class="areatext">{{areas[area].area_name}}</view>
<image src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/activity/arrow.png" mode="widthFix"></image>
</view>
</picker>
<view class="my-search-box">
<view class="iconfont icon-sousuo"></view>
<input bindinput="changeKeywords" value="{{realKeywords}}" type="text" placeholder="请输入搜索关键字" />
<view class="search-btn" bindtap="search">搜索</view>
</view>
</view>
<view class="types">
<view class="type-item" bindtap="changeType" data-type="2">
<image src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/activitynew/icon2{{type==2?'_active':''}}.png" mode="widthFix"></image>
@ -27,6 +35,11 @@
<image src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/activitynew/icon1{{type==1?'_active':''}}.png" mode="widthFix"></image>
<view style="{{type==1?'color:#FFB423':''}}">演出</view>
</view>
<view class="type-item" bindtap="changeType" data-type="6" style="margin-right:30rpx">
<image src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/activitynew/icon6{{type==6?'_active':''}}.png" mode="widthFix"></image>
<view style="{{type==6?'color:#54b9ed':''}}">其他</view>
</view>
<view style="width:1rpx;flex-shrink:0;height:1rpx"></view>
</view>
<view class="date-box" hidden="{{type==4}}">
<view class="date-item {{item.times==selectDay?'active':''}}" wx:for="{{weeks}}" bindtap="changeDate" data-times="{{item.times}}">
@ -51,21 +64,22 @@
<view class="{{sort=='price'?'active':''}}" bindtap="setSort" data-sort="price">价格最低</view>
</view>
<view wx:if="{{list.length>0 && type!=4}}" style="background:#0B898E;padding:1rpx 0">
<view wx:for="{{list}}" bindtap="gotoDetail" data-item="{{item}}" class="activity-item">
<view wx:for="{{list}}" bindtap="gotoDetail" data-item="{{item}}" class="activity-item-out">
<view class="activity-item">
<view class="activity-info">
<view class="activity-title textOver2">{{item.name || item.title}}</view>
<view>
<view style="margin-bottom:10rpx">{{item.begin_date}}—{{item.end_date}}</view>
<!-- <view style="margin-bottom:10rpx" wx:if="{{type==2}}">{{item.release_date}}</view> -->
<view>{{item.from_platform?item.from_platform:""}}</view>
<!-- <view wx:if="{{type==2}}">{{item.source?item.source:""}}</view> -->
<view class="textOver2">{{item.detail_address?item.detail_address:""}}</view>
</view>
</view>
<common-image width="320rpx" height='220rpx' src="{{item.post_url || item.cover}}" defaultImage="/images/place3.jpg" mode="aspectFill"></common-image>
</view>
<view class="new-tip">{{item.from_platform}}</view>
</view>
</view>
<view wx:if="{{list.length>0 && type==4 && movieType!=2}}">
<view bindtap="gotoDetail" data-item="{{item}}" class="activity-item" style="margin-top:0" wx:for="{{list}}">
<view bindtap="gotoDetail" data-item="{{item}}" class="activity-item activity-item-out" style="margin-top:0" wx:for="{{list}}">
<common-image width="180rpx" height='180rpx' src="{{item.headimg}}" mode="aspectFill"></common-image>
<view style="height:180rpx;margin:0;margin-left:20rpx;display:block" class="activity-info">
<view class="activity-title textOver2" style="margin-bottom:20rpx">{{item.title}}</view>
@ -75,7 +89,7 @@
</view>
</view>
<view wx:if="{{list.length>0 && type==4 && movieType==2}}">
<view bindtap="gotoDetail" data-item="{{item}}" class="activity-item" style="margin-top:0;padding:10rpx 20rpx" wx:for="{{list}}">
<view bindtap="gotoDetail" data-item="{{item}}" class="activity-item activity-item-out" style="margin-top:0;padding:10rpx 20rpx" wx:for="{{list}}">
<view class="activity-info" style="height:160rpx;width:500rpx">
<view class="activity-title textOver2">{{item.title}}</view>
<view class="textOver" wx:if="{{item.address}}">{{item.address}}</view>

46
pages/list/activitynew/index.wxss

@ -5,12 +5,13 @@ page {
}
.types {
display: flex;
justify-content: space-between;
/* justify-content: space-between; */
align-items: center;
background: #fff;
font-size: 28rpx;
color: #666;
padding: 30rpx 40rpx;
padding: 30rpx;
overflow-x: auto;
border-bottom: 1rpx solid #d8d8d8;
}
.type-item {
@ -18,6 +19,7 @@ page {
text-align: center;
line-height: 27rpx;
color: #333;
margin-right: 65rpx;
}
.type-item image {
display: block;
@ -64,29 +66,23 @@ page {
}
.acitivity-search-box {
display: flex;
margin: 30rpx 24rpx;
margin:20rpx 30rpx;
margin-bottom: 0;
justify-content: space-between;
align-items: center;
}
.acitivity-search-box .picker {
width: 203rpx;
height: 54rpx;
margin-right: 30rpx;
height: 60rpx;
display: flex;
align-items: center;
border: 1rpx solid #ccc;
border-radius: 4rpx;
}
.areatext {
border-right: 1rpx solid #ccc;
flex: 1;
margin-left: 17rpx;
line-height: 54rpx;
color: #0B898E;
}
.acitivity-search-box .picker image {
margin: 0 22rpx;
display: block;
width: 16rpx;
flex-shrink: 0;
margin-left: 10rpx;
}
.activity-search-bg {
width: 422rpx;
@ -107,14 +103,16 @@ page {
font-size: 27rpx;
}
.activity-item {
margin: 27rpx 16rpx;
background: white;
display: flex;
align-items: center;
justify-content: space-between;
padding: 27rpx 22rpx;
}
.activity-item-out {
box-shadow: -1rpx 1rpx 16rpx 0px rgba(6, 0, 1, 0.1);
border-radius: 10rpx;
padding: 27rpx 22rpx;
margin: 27rpx 16rpx;
background: white;
}
.activity-item image {
width: 320rpx;
@ -123,6 +121,13 @@ page {
flex-shrink: 0;
overflow: hidden;
}
.activity-item-out .new-tip {
padding: 0 20rpx;
line-height: 49rpx;
color: #999;
font-size: 23rpx;
border-top: 1rpx solid #D8D8D8;
}
.activity-info {
display: flex;
flex-direction: column;
@ -179,8 +184,9 @@ page {
color: #fff;
}
.my-search-box {
flex: 1;
display: flex;
margin: 20rpx 30rpx;
margin: 0;
align-items: center;
border-radius: 30rpx;
height: 60rpx;
@ -205,3 +211,7 @@ page {
border-left: 1rpx solid #ccc;
color: #0B898E;
}
.new-top-search-box {
display: flex;
justify-content: space-between;
}

1
pages/list/hotel/index.js

@ -42,6 +42,7 @@ Page({
title:this.data.keywords
}).then(res=>{
res.data.list.map(item=>{
console.log(item.third_supplier_type)
item.display_tags = (item.display_tags?item.display_tags.split(","):[]).splice(0,2);
})
this.setData({

20
pages/list/movieticket/list/info/index.js

@ -1,5 +1,6 @@
// pages/list/movieticket/list/info/index.js
import commonApi from "../../../../../utils/https/common"
let app = getApp()
Page({
/**
@ -23,9 +24,28 @@ Page({
info:res.data,
showFlag:showFlag
})
this.BroswerRecord()
console.log(showFlag)
})
},
BroswerRecord:function(){
setTimeout(()=>{
if(app.globalData.uuid){
commonApi._post('browse/browse_record',{
type:"page",
title:this.data.info.title,
drive:"mini",
source_id:this.data.info.id,
url:"/pages/list/movieticket/info/index?id="+this.data.info.id,
uuid:app.globalData.uuid
}).then(res=>{
})
}
else {
this.BroswerRecord();
}
},500)
},
/**
* 生命周期函数--监听页面初次渲染完成

2
pages/login/index.wxml

@ -1,6 +1,6 @@
<!--pages/login/index.wxml-->
<title-header title="授权登录"></title-header>
<view class="login-tip">君到苏州 申请获得</view>
<view class="login-tip">君到苏州(文化旅游总入口) 申请获得</view>
<view class="login-tip2">以下权限</view>
<view class="login-tip-box">
<icon class="iconfont icon-gou1"></icon>

2
pages/search/list/index.wxml

@ -1,5 +1,5 @@
<!--pages/search/list/index.wxml-->
<title title="君到苏州"></title>
<title title="君到苏州(文化旅游总入口)"></title>
<view class="my-top-search">
<view class="my-search-box">
<view class="iconfont icon-sousuo"></view>

2
pages/user/address/index.wxml

@ -10,7 +10,7 @@
<view class="address">{{item.address}}</view>
</view>
<view class="address-oprations">
<view class="address-oprations" bindtap="setDefault" data-item="{{item}}">
<view class="address-oprations" catchtap="setDefault" data-item="{{item}}">
<icon class="iconfont {{item.is_default=='0'?'icon-quan':'icon-gou'}}"></icon>
<text>默认收货地址</text>
</view>

2
pages/user/linkman/index.wxml

@ -10,7 +10,7 @@
<view class="address">{{item.title}}:{{item.id_number}}</view>
</view>
<view class="address-oprations">
<view class="address-oprations" bindtap="setDefault" data-item="{{item}}">
<view class="address-oprations" catchtap="setDefault" data-item="{{item}}">
<icon class="iconfont {{item.is_default=='0'?'icon-quan':'icon-gou'}}"></icon>
<text>默认</text>
</view>

11
project.private.config.json

@ -44,6 +44,17 @@
"pathName": "pages/list/oneday/index",
"query": "",
"scene": null
},
{
"name": "测试美团酒店详情",
"pathName": "pages/info/hotelProductInfo/index",
"query": "id=5974",
"scene": null
},
{
"name": "踏春",
"pathName": "pages/activity/spring2021/index",
"scene": null
}
]
}

Loading…
Cancel
Save