diff --git a/app.js b/app.js
index 87c748c..f062e34 100644
--- a/app.js
+++ b/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.isTest137? true : false;
+ data.isTest = data.isTest139? true : false;
data.indexSeason = null
this.globalData.configJson = data
}).then(() => {
diff --git a/app.json b/app.json
index 2cfabeb..0847ea2 100644
--- a/app.json
+++ b/app.json
@@ -182,9 +182,7 @@
"pages/order/WineSceneOrder/index",
"pages/order/showOrderNew/index",
"pages/user/order/showOrderInfo/index",
- "pages/user/suggest/suggest",
- "pages/list/foodNew/index",
- "pages/info/foodNew/index"
+ "pages/user/suggest/suggest"
],
"subpackages": [
{
@@ -204,7 +202,9 @@
"goods/oneCardTour/info/index",
"feiyiNew/CGCIndex/index",
"feiyiNew/CGCLetter/index",
- "feiyiNew/CGCTime/index"
+ "feiyiNew/CGCTime/index",
+ "foodListNew/index",
+ "foodNew/index"
]
},
{
diff --git a/pages/component/kefu/index.js b/pages/component/kefu/index.js
new file mode 100644
index 0000000..c3f255b
--- /dev/null
+++ b/pages/component/kefu/index.js
@@ -0,0 +1,58 @@
+// pages/component/kefu/index.js
+import commonApi from "../../../utils/https/common.js"
+Component({
+
+ /**
+ * 组件的属性列表
+ */
+ properties: {
+
+ },
+ data: {
+ show: false,
+ showPhone: false,
+ info: "",
+ phones: []
+ },
+ lifetimes: {
+ attached() {
+ console.log('组件已挂载到页面');
+ this.initData();
+ }
+ },
+ /**
+ * 组件的初始数据
+ */
+
+
+
+ /**
+ * 组件的方法列表
+ */
+ methods: {
+ initData () {
+ commonApi._post("kefu_tips/getTips", {platform:'miniapp'}).then(res=>{
+ if (res.data) {
+ this.setData({
+ showPhone: res.data.is_online,
+ info: res.data.content,
+ phones: res.data.emergency_phones
+ })
+ }
+ })
+ },
+
+ hideModal: function () {
+ this.setData({
+ show: false,
+ })
+ this.triggerEvent('hideModal');
+ },
+ phoneCall:function(e){
+ let phone = e.currentTarget.dataset.phone;
+ wx.makePhoneCall({
+ phoneNumber: phone,
+ })
+ },
+ }
+})
\ No newline at end of file
diff --git a/pages/component/kefu/index.json b/pages/component/kefu/index.json
new file mode 100644
index 0000000..e8cfaaf
--- /dev/null
+++ b/pages/component/kefu/index.json
@@ -0,0 +1,4 @@
+{
+ "component": true,
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/component/kefu/index.wxml b/pages/component/kefu/index.wxml
new file mode 100644
index 0000000..5cb1074
--- /dev/null
+++ b/pages/component/kefu/index.wxml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item}}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/component/kefu/index.wxss b/pages/component/kefu/index.wxss
new file mode 100644
index 0000000..493b418
--- /dev/null
+++ b/pages/component/kefu/index.wxss
@@ -0,0 +1,88 @@
+.bg{
+ width: 100%;
+ height: 100%;
+ position: fixed;
+ top: 0;
+ left: 0;
+ overflow: hidden;
+ box-sizing: border-box;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+.modal-mask {
+ width: 100%;
+ height: 100%;
+ position: fixed;
+ top: 0;
+ left: 0;
+ background: #000;
+ opacity: 0.5;
+ overflow: hidden;
+ z-index: 200;
+ color: #fff;
+}
+
+.modal-dialog {
+ width: 540rpx;
+ overflow: hidden;
+ position: relative;
+ z-index: 9999;
+ background: #FFFFFF;
+ border-radius: 20rpx;
+}
+.modal-content{
+ padding: 38rpx 26rpx;
+}
+
+
+.modal-footer {
+ display: flex;
+ flex-direction: row;
+ height: 112rpx;
+ border-top: 1px solid #dedede;
+
+
+ color: #000000;
+ padding: 30rpx 0;
+ box-sizing: border-box;
+}
+
+
+
+
+.btn-confirms {
+ flex: 1;
+ text-align: center;
+ font-weight: normal !important;
+ box-sizing: border-box;
+ width: 50% !important;
+ padding: 0 !important;
+ line-height: 50rpx;
+ background: none;
+ color: #0C898F;
+ font-weight: 500;
+ font-size: 32rpx;
+}
+.btn-confirms.two {
+ color: #000000;
+}
+
+.icon-close{
+ position: absolute;
+ width: 27.33rpx;
+ height: 27.33rpx;
+ top: 39rpx;
+ right: 26rpx;
+}
+.icon-close image{
+ width: 100%;
+ height: 100%;
+}
+.phone-container{
+ text-align: center;
+ font-weight: 500;
+font-size: 27rpx;
+color: #0C898F;
+line-height: 1.8;
+}
\ No newline at end of file
diff --git a/pages/index/index.js b/pages/index/index.js
index 1b0e9ea..f15e290 100644
--- a/pages/index/index.js
+++ b/pages/index/index.js
@@ -7,6 +7,7 @@ import commonApi from "../../utils/https/common"
import userApi from "../../utils/https/user"
import util from "../../utils/util"
import https from "../../utils/https.js"
+import { unix } from "dayjs"
Page({
data: {
@@ -1050,7 +1051,13 @@ Page({
if (app.globalData.innerAudioContext) {
app.globalData.innerAudioContext.stop()
}
- },
+ },
+
+ goAIUrl () {
+ wx.switchTab({
+ url: '/pages/pbService/aiHelpYou/index',
+ })
+ },
/**
* 用户点击右上角分享
diff --git a/pages/index/index.wxml b/pages/index/index.wxml
index 234c7dd..c69fb11 100644
--- a/pages/index/index.wxml
+++ b/pages/index/index.wxml
@@ -52,7 +52,6 @@
-->
-
{{item.menu_name}}
@@ -85,10 +84,14 @@
-
+
+
+
+
+
-
-
+
+
+
-
+
@@ -121,7 +125,7 @@
-
+
@@ -152,6 +156,26 @@
-->
+
+
+
+
+
+ {{list[0].subtitle}}
+
+
+
+
+
+ {{list[1].subtitle}}
+
+
+
+ {{list[2].subtitle}}
+
+
+
+
@@ -332,6 +356,9 @@
+
+
+
diff --git a/pages/index/index.wxss b/pages/index/index.wxss
index 5a361aa..0e33f6c 100644
--- a/pages/index/index.wxss
+++ b/pages/index/index.wxss
@@ -7,6 +7,7 @@
overflow-y: auto;
background-size: 100% 100%;
background-repeat: no-repeat;
+ padding-bottom: 220rpx;
/* background-color:#E8F9FA; */
}
@@ -1038,4 +1039,67 @@
margin-top: 20rpx;
margin-left: -6rpx;
margin-right: 0rpx;
+ }
+
+ .ai-fix{
+ position: fixed;
+ width: 150.33rpx;
+ height: 200rpx;
+ bottom: 30rpx;
+ right: 24rpx;
+ z-index: 100;
+ }
+ .hot-prod-new{
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ width: 100%;
+ }
+ .hot-prod-left{
+ width: 400rpx;
+ height: 350rpx;
+ position: relative;
+ }
+ .hot-prod-left .prod-img{
+ width: 100%;
+ height: 100%;
+ border-radius: 20rpx;
+ }
+ .hot-prod-left .xpth-item-title{
+ position: absolute;
+ width: 100%;
+ font-weight: 500;
+ font-size: 28rpx;
+ color: #FFFFFF;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ top: 0;
+ height: 100%;
+ width: 100%;
+ background: linear-gradient(to bottom, rgba(0,0,0,0),rgba(0,0,0,0.5)) ;
+ display: flex;
+ border-radius: 20rpx;
+ padding: 0 8rpx 6rpx;
+ box-sizing: border-box;
+ overflow: hidden;
+ align-items: flex-end;
+ }
+
+ .hot-prod-right{
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ height: 350rpx;
+ align-items: flex-end;
+ flex: 1;
+ width: 100rpx;
+ padding-left: 14rpx;
+ }
+
+ .hot-prod-right .hot-right-item{
+
+ height: 167rpx;
+ width: 100%;
+
}
\ No newline at end of file
diff --git a/pages/info/foodProductInfo/index.js b/pages/info/foodProductInfo/index.js
index 6a7fde7..316515d 100644
--- a/pages/info/foodProductInfo/index.js
+++ b/pages/info/foodProductInfo/index.js
@@ -62,12 +62,12 @@ Page({
id: options.id
})
// 获取购物车按钮的位置
- // wx.createSelectorQuery().select('#cart').boundingClientRect(function (res) {
- // console.log(res)
- // that.setData({
- // cartTop: res.top
- // })
- // }).exec()
+ wx.createSelectorQuery().select('#cart').boundingClientRect(function (res) {
+ console.log(res)
+ that.setData({
+ cartTop: res.top
+ })
+ }).exec()
if (options.ZTPoint) {
this.setData({
ZTPoint: options.ZTPoint
@@ -141,8 +141,8 @@ Page({
console.log(swiperRange)
this.setData({
info: resData,
- supplierId: res.data.supplier_id,
- iShop: res.data.supplier_id ? true : false,
+ supplierId: res.data.scene_id,
+ iShop: res.data.scene_id ? true : false,
swiperRange: swiperRange,
})
diff --git a/pages/info/foodProductInfo/index.wxml b/pages/info/foodProductInfo/index.wxml
index df11404..52d4c9c 100644
--- a/pages/info/foodProductInfo/index.wxml
+++ b/pages/info/foodProductInfo/index.wxml
@@ -1,7 +1,7 @@
-
+
-
+
店铺
@@ -146,16 +146,16 @@
-
- 立即购买
+ 加入购物车
+ 立即购买
该商品已下架
-
+
diff --git a/pages/map/index.wxml b/pages/map/index.wxml
index 1f467da..473e478 100644
--- a/pages/map/index.wxml
+++ b/pages/map/index.wxml
@@ -24,18 +24,23 @@
场馆
-
-
diff --git a/pages/info/foodNew/index.wxss b/subPackages/foodNew/index.wxss
similarity index 100%
rename from pages/info/foodNew/index.wxss
rename to subPackages/foodNew/index.wxss
diff --git a/subPackages/gwcOrder/index.js b/subPackages/gwcOrder/index.js
index 6d4ea30..5f410db 100644
--- a/subPackages/gwcOrder/index.js
+++ b/subPackages/gwcOrder/index.js
@@ -57,7 +57,7 @@ Page({
ticket_type:app.globalData.product.sku.ticket_type || 1,
isCar:options.isCar,
is_need_idcard:app.globalData.product.sku.sku_model.is_need_idcard,
- is_authentication:app.globalData.product.sku.sku_model.is_authentication,
+ is_authentication:app.globalData.product.sku.sku_model.is_authentication || 0,
is_real_name:app.globalData.product.sku.sku_model.is_real_name,
})
console.log('-------',app.globalData.product.sku.sku_model.is_need_idcard);
@@ -396,6 +396,9 @@ Page({
remark: remark,
product_num: app.globalData.product.isGroup == 1 ? 1 : productNum,
phone:this.data.phone,// 不实名的时候传的手机号参数
+ // 美食类型
+ reserve_mobile: product.product.type=='food'?this.data.phone:"",
+
}],
originate_order_id: this.data.kjId,
gp_id: app.globalData.gp_id,
@@ -427,7 +430,7 @@ Page({
if(app.globalData.list){
app.globalData.list[app.globalData.index] = this.data.product
// app.globalData.list[app.globalData.index].linkmanList = this.data.linkmanList
- if (app.globalData.list[app.globalData.index].sku.sku_model.is_authentication == 0) {
+ if (!app.globalData.list[app.globalData.index].sku.sku_model.is_authentication) {
app.globalData.list[app.globalData.index].phone = this.data.phone
app.globalData.list[app.globalData.index].linkmanList = []
}else {
diff --git a/subPackages/gwcOrder/index.wxml b/subPackages/gwcOrder/index.wxml
index c28d857..6d08452 100644
--- a/subPackages/gwcOrder/index.wxml
+++ b/subPackages/gwcOrder/index.wxml
@@ -15,13 +15,14 @@
- {{product && product.isGroup!=1?'购票数量':'预约人数'}}
+ {{product && product.isGroup!=1?'数量':'预约人数'}}
{{productNum}}
-
+
@@ -63,7 +64,7 @@
{{product.product.title}}-{{product.sku.sku_name}}
- 出行人信息
+ {{product.product.type=="food"?'预定人信息':'出行人信息'}}
diff --git a/utils/util.js b/utils/util.js
index 35b9226..ae04163 100644
--- a/utils/util.js
+++ b/utils/util.js
@@ -386,12 +386,21 @@ const orderMoreTime = function(item){
}
}
const gotoOrder = function(item){
+
+ // 数量超过两个 购物车下单 跳H5 (小程序二维码没分开)
+ if (item.order_product_list.length>1) {
+ wx.navigateTo({
+ url: "/pages/pbService/web/index?weburl=" + encodeURIComponent("https://m.cloud.sz-trip.com/TicketCartOrderDetail?order_id="+item.order_id),
+ })
+ return;
+ }
if(item.order_product_list[0].product_model=='ticket'){
wx.navigateTo({
url: '/pages/user/order/sceneOrderInfo/index?id='+item.order_id,
})
return;
}
+
if(item.order_product_list[0].product_model=='food'){
wx.navigateTo({
url: '/pages/user/order/foodOrderInfo/index?id='+item.order_id,