From 58cb3aeb420913ec3dd44746fb0b5b277cc132c9 Mon Sep 17 00:00:00 2001 From: chenkainan Date: Tue, 26 Jul 2022 16:53:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E5=90=88=E5=9B=A2=E4=BD=93=E9=A2=84?= =?UTF-8?q?=E7=BA=A6=E8=87=B3=E5=9C=BA=E9=A6=86=E9=A2=84=E7=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 2 +- pages/info/museumInfo/index.js | 16 ++++++++++++++++ pages/info/museumInfo/index.wxml | 6 +++++- pages/info/museumInfo/index.wxss | 4 ++-- project.config.json | 21 ++++++++++++++------- project.private.config.json | 17 ++++++----------- 6 files changed, 44 insertions(+), 22 deletions(-) diff --git a/app.js b/app.js index 35e9810..0a42044 100644 --- a/app.js +++ b/app.js @@ -22,7 +22,7 @@ App({ unique_key: "wechatxcx" }).then(res => { let data = JSON.parse(res.data); - data.isTest = data.isTest27?true:false; + data.isTest = data.isTest28?true:false; this.globalData.configJson = data }) diff --git a/pages/info/museumInfo/index.js b/pages/info/museumInfo/index.js index d599b24..4e50403 100644 --- a/pages/info/museumInfo/index.js +++ b/pages/info/museumInfo/index.js @@ -420,6 +420,22 @@ Page({ } }, + order1: function () { + this.data.isGroup = 1 + // 如果是团队预约的话 是需要判断是否需要审核的 + commonApi.user_post("team_order/is_apply",{ + id:this.data.id + }).then(res=>{ + // 0 无需资质申请 1 需要资质申请跳转资质申请页面 + if(res && res.data==1){ + wx.navigateTo({ + url: '/pages/group/apply/index?id='+this.data.id, + }) + return; + } + this.realOrder() + }) + }, realOrder:function(){ if (!this.data.info.product_venue) return; if (!this.data.info.product_venue.sku[0]) return; diff --git a/pages/info/museumInfo/index.wxml b/pages/info/museumInfo/index.wxml index 940dd71..529faa3 100644 --- a/pages/info/museumInfo/index.wxml +++ b/pages/info/museumInfo/index.wxml @@ -62,7 +62,11 @@ wx:if="{{info.product_venue && info.product_venue.sku && info.product_venue.sku.length>0}}"> - 参观预约 + 参观预约 + + + 团体预约 + diff --git a/pages/info/museumInfo/index.wxss b/pages/info/museumInfo/index.wxss index ed15b1a..b1f467c 100644 --- a/pages/info/museumInfo/index.wxss +++ b/pages/info/museumInfo/index.wxss @@ -69,11 +69,11 @@ box-shadow: -1rpx 1rpx 16rpx 0px rgba(6, 0, 1, 0.1); display: flex; align-items: center; - justify-content: center; + justify-content: space-around; } .fixed-btn .btn { - width: 391rpx; + width: 350rpx; line-height: 73rpx; background: #D62828; border-radius: 37rpx; diff --git a/project.config.json b/project.config.json index fe4e401..68c7558 100644 --- a/project.config.json +++ b/project.config.json @@ -1,7 +1,8 @@ { - "description": "项目配置文件", + "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", "packOptions": { - "ignore": [] + "ignore": [], + "include": [] }, "setting": { "urlCheck": false, @@ -37,16 +38,18 @@ "userConfirmedBundleSwitch": false, "packNpmManually": false, "packNpmRelationList": [], - "minifyWXSS": true + "minifyWXSS": true, + "lazyloadPlaceholderEnable": false, + "useStaticServer": true, + "showES6CompileOption": false, + "disableUseStrict": false, + "useCompilerPlugins": false, + "minifyWXML": true }, "compileType": "miniprogram", "libVersion": "2.14.0", "appid": "wx4bb7b6050831f585", "projectname": "%E8%8B%8F%E5%B7%9E%E6%96%87%E6%97%85", - "debugOptions": { - "hidedInDevtools": [] - }, - "isGameTourist": false, "simulatorType": "wechat", "simulatorPluginLibVersion": {}, "condition": { @@ -105,5 +108,9 @@ } ] } + }, + "editorSetting": { + "tabIndent": "insertSpaces", + "tabSize": 2 } } \ No newline at end of file diff --git a/project.private.config.json b/project.private.config.json index bf9632e..684d82c 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -1,15 +1,8 @@ { - "setting": {}, + "setting": { + "compileHotReLoad": true + }, "condition": { - "plugin": { - "list": [] - }, - "game": { - "list": [] - }, - "gamePlugin": { - "list": [] - }, "miniprogram": { "list": [ { @@ -68,5 +61,7 @@ } ] } - } + }, + "projectname": "%E8%8B%8F%E5%B7%9E%E6%96%87%E6%97%85", + "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html" } \ No newline at end of file