diff --git a/app.json b/app.json
index 0fec271..5acb10e 100644
--- a/app.json
+++ b/app.json
@@ -18,6 +18,7 @@
"pages/order/scene/index",
"pages/order/hotel/index",
"pages/order/card/index",
+ "pages/order/joinOrder/index",
"pages/order/postOrder/index",
"pages/order/showOrder/index",
"pages/info/newsInfo/index",
@@ -35,6 +36,7 @@
"pages/info/showInfo/index",
"pages/info/strategyInfo/index",
"pages/info/guideInfo/index",
+ "pages/info/groupOrderInfo/index",
"pages/user/user",
"pages/user/retail/index",
"pages/user/retail/apply/index",
@@ -121,6 +123,7 @@
"pages/pbService/wwcx/index",
"pages/pbService/wwcx/info/index",
"pages/pbService/wwcx/search/index",
+ "pages/pbService/group/index",
"pages/ask/index",
"pages/ask/info/index",
"pages/ask/my/index",
diff --git a/pages/info/groupOrderInfo/index.js b/pages/info/groupOrderInfo/index.js
new file mode 100644
index 0000000..9c820ca
--- /dev/null
+++ b/pages/info/groupOrderInfo/index.js
@@ -0,0 +1,159 @@
+// pages/info/groupOrderInfo/index.js
+import commonApi from "../../../utils/https/common"
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ info:null,
+ keywords:"",
+ id:null,
+ img:null
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ this.setData({
+ id:options.id
+ })
+
+ },
+ edit:function(e){
+ let item = e.currentTarget.dataset.item
+ wx.navigateTo({
+ url: '/pages/order/joinOrder/index?id='+item.team_id+'&mid='+item.id+'&oid='+this.data.id
+ })
+ },
+ delItem:function(e){
+ // 删除团员
+ let item = e.currentTarget.dataset.item,index = e.currentTarget.dataset.index,info = this.data.info,that = this
+ wx.showModal({
+ title:"提示",
+ content:"确定删除该团员吗?",
+ success:function(res){
+ if(res.confirm){
+ commonApi.user_post("team_order/del",{
+ team_id:item.team_id,
+ member_id:item.id
+ }).then(res=>{
+ if(res.code==1){
+ wx.showToast({
+ title: '删除成功',
+ icon:'success'
+ })
+ info.list.members.splice(index,1)
+ that.setData({
+ info:info
+ })
+ }
+ })
+ }
+ }
+ })
+
+ },
+ changeKeywords:function(e){
+ this.setData({
+ keywords:e.detail.value
+ })
+ },
+ search:function(e){
+ commonApi.user_post("team_order/get_team_detail",{
+ order_id:this.data.id,
+ name:this.data.keywords
+ }).then(res=>{
+ if(res.code==1){
+ this.setData({
+ info:res.data
+ })
+ }
+ })
+ },
+ order:function(){
+ commonApi.user_post("team_order/create",{
+ team_id:this.data.info.list.id
+ }).then(res=>{
+ if(res.code==1){
+ // todo
+ wx.navigateTo({
+ url: '/pages/user/order/groupOrderInfo/index?id=',
+ })
+ }
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+ commonApi.user_post("team_order/get_team_detail",{
+ order_id:this.data.id
+ }).then(res=>{
+ if(res.code==1){
+ this.setData({
+ info:res.data
+ })
+ commonApi._post("scene/detail_for_venue",{
+ id:res.data.list.scene_id
+ }).then(res=>{
+ this.setData({
+ img:res.data.headimg
+ })
+ this.onShareAppMessage()
+ })
+
+ }
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+ if(this.data.info){
+ return {
+ title:"加入我的旅游团",
+ path:"/pages/order/joinOrder/index?id="+this.data.info.list.id+'&uid='+this.data.info.list.user_id+'&oid='+this.data.id,
+ imageUrl:this.data.img
+ }
+ }
+ }
+})
\ No newline at end of file
diff --git a/pages/info/groupOrderInfo/index.json b/pages/info/groupOrderInfo/index.json
new file mode 100644
index 0000000..35cf02f
--- /dev/null
+++ b/pages/info/groupOrderInfo/index.json
@@ -0,0 +1,5 @@
+{
+ "usingComponents": {
+ "title":"/pages/component/TitleHeader"
+ }
+}
\ No newline at end of file
diff --git a/pages/info/groupOrderInfo/index.wxml b/pages/info/groupOrderInfo/index.wxml
new file mode 100644
index 0000000..d1832a0
--- /dev/null
+++ b/pages/info/groupOrderInfo/index.wxml
@@ -0,0 +1,30 @@
+
+
+
+ 邀请码:{{info.list.id}}
+
+ 预约人数:{{info.list.member_num}}
+
+ 填写信息人数:{{info.list.members_count}}
+
+ 立即邀请
+ 提交订单
+
+
+ 已填写信息团员
+
+
+
+ 搜索
+
+
+
+ {{item.name}} {{item.mobile}}
+ {{item.id_number}}
+
+
+ 修改
+ 删除
+
+
+
diff --git a/pages/info/groupOrderInfo/index.wxss b/pages/info/groupOrderInfo/index.wxss
new file mode 100644
index 0000000..e0f799d
--- /dev/null
+++ b/pages/info/groupOrderInfo/index.wxss
@@ -0,0 +1,103 @@
+/* pages/info/groupOrderInfo/index.wxss */
+page {
+ background: #f2f2f2;
+ font-size: 30rpx;
+ color: #333333;
+}
+.box {
+ margin: 30rpx;
+ padding: 30rpx;
+ border-radius: 20rpx;
+ background: white;
+ text-align: center;
+}
+.code {
+ color: #0B898E;
+ font-size: 40rpx;
+ font-weight: bold;
+ line-height: 100rpx;
+}
+.top-tips {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin-top: 30rpx;
+ margin-bottom: 50rpx;
+}
+.top-tip {
+ width: 50%;
+}
+.top-tips .line {
+ width: 2rpx;
+ height: 40rpx;
+ background: #0B898E;
+ flex-shrink: 0;
+}
+.top-btn {
+ line-height: 68rpx;
+ border: 1rpx solid #0B898E;
+ border-radius: 10rpx;
+ box-sizing: border-box;
+ font-weight: 500;
+ color: #0B898E;
+ margin-top: 20rpx;
+}
+.top-btn.full {
+ background: #0B898E;
+ color: #fff;
+}
+.box-title {
+ text-align: left;
+ font-weight: bold;
+}
+.search-box {
+ background: #f2f2f2;
+ border-radius: 30rpx;
+ height: 60rpx;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin: 20rpx 0;
+ text-align: left;
+}
+.icon-sousuo {
+ font-size: 30rpx;
+ color: #666;
+ flex-shrink: 0;
+ margin: 0 20rpx;
+}
+.search-box input {
+ flex: 1;
+ font-size: 26rpx;
+ display: block;
+ width: 500rpx;
+}
+.search-box .btn {
+ line-height: 40rpx;
+ text-align: center;
+ border-left: 1rpx solid #CCCCCC;
+ color: #0B898E;
+ width: 110rpx;
+ flex-shrink: 0;
+ font-size: 26rpx;
+}
+.item {
+ padding: 30rpx 0;
+ border-bottom: 1rpx solid #D8D8D8;
+}
+.item-top {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
+.item-btns {
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ color: #0B898E;
+ font-size: 26rpx;
+ margin-top: 20rpx;
+}
+.item-btn {
+ margin-left: 50rpx;
+}
\ No newline at end of file
diff --git a/pages/info/museumInfo/index.js b/pages/info/museumInfo/index.js
index cc79036..3157cca 100644
--- a/pages/info/museumInfo/index.js
+++ b/pages/info/museumInfo/index.js
@@ -22,7 +22,8 @@ Page({
product:null,
time:null,
date:null,
- retailId:""
+ retailId:"",
+ isGroup:null
},
/**
@@ -32,6 +33,11 @@ Page({
this.setData({
id:options.id
})
+ if(options.isGroup){
+ this.setData({
+ isGroup:options.isGroup
+ })
+ }
if(options.retailId){
this.setData({
retailId:options.retailId
@@ -67,7 +73,7 @@ Page({
this.getAct()
},
getAct:function(){
- if(this.data.actList.length>=this.data.actTotal) return;
+ if(this.data.actList.length>=this.data.actTotal || this.data.isGroup==1) return;
commonApi._post('scene/get_scene_act_list',{
scene_id:this.data.id,
page_no:1,
@@ -146,7 +152,8 @@ Page({
product:this.data.info.product_venue,
sku:this.data.info.product_venue.sku[0],
infoDate:this.data.date,
- infoTime:this.data.time
+ infoTime:this.data.time,
+ isGroup:this.data.isGroup
}
wx.navigateTo({
url: '/pages/order/scene/index?type=museum'
@@ -203,6 +210,7 @@ Page({
},
onPageScroll:function(e){
+ if(this.data.isGroup) return;
let topHeight = this.data.top + (102 * ratio),that = this;
wx.createSelectorQuery().select('#content').boundingClientRect(function(rect){
if(rect.top<=topHeight){
diff --git a/pages/info/museumInfo/index.wxml b/pages/info/museumInfo/index.wxml
index 1108b8c..5ec5d0d 100644
--- a/pages/info/museumInfo/index.wxml
+++ b/pages/info/museumInfo/index.wxml
@@ -14,7 +14,7 @@
{{info.address}}
{{info.tel}}
-
\ No newline at end of file
diff --git a/pages/pbService/web/index.js b/pages/pbService/web/index.js
index 0d59da0..f34040a 100644
--- a/pages/pbService/web/index.js
+++ b/pages/pbService/web/index.js
@@ -14,7 +14,7 @@ Page({
*/
onLoad: function (options) {
this.setData({
- webUrl:app.globalData.weburl
+ webUrl:"https://m.cloud.sz-trip.com/"
})
},
diff --git a/project.private.config.json b/project.private.config.json
index cf3236c..8e31d8e 100644
--- a/project.private.config.json
+++ b/project.private.config.json
@@ -13,15 +13,15 @@
"miniprogram": {
"list": [
{
- "name": "pages/activity/huawei/upload/index",
- "pathName": "pages/activity/huawei/upload/index",
+ "name": "pages/pbService/group/index",
+ "pathName": "pages/pbService/group/index",
"query": "id=6",
"scene": null
},
{
- "name": "pages/activity/huawei/list/index",
- "pathName": "pages/activity/huawei/list/index",
- "query": "id=6&user_id=18",
+ "name": "pages/info/groupOrderInfo/index",
+ "pathName": "pages/info/groupOrderInfo/index",
+ "query": "id=59532108251510343335",
"scene": null
},
{
@@ -55,8 +55,8 @@
"scene": null
},
{
- "name": "pages/culture/index",
- "pathName": "pages/culture/index",
+ "name": "pages/pbService/web/index",
+ "pathName": "pages/pbService/web/index",
"query": "id=10973",
"scene": null
}
diff --git a/utils/https.js b/utils/https.js
index 0beebeb..8a5b5ea 100644
--- a/utils/https.js
+++ b/utils/https.js
@@ -1,8 +1,8 @@
var app = getApp();
import util from "../utils/util"
import userApi from "../utils/https/user.js";
-// const baseUrl = "https://test.api.cloud.sz-trip.com/api/";
-const baseUrl = "https://api.cloud.sz-trip.com/api/";
+const baseUrl = "https://test.api.cloud.sz-trip.com/api/";
+// const baseUrl = "https://api.cloud.sz-trip.com/api/";
const orders = ['','weight','distance','sale_number','sale_price','price'];
//封装GET请求
function _get(url,data) {