d39dd07e by simon

默认提交

1 parent 63022cc7
...@@ -31,5 +31,8 @@ ...@@ -31,5 +31,8 @@
31 "van-field": "../../ui/vant-weapp/field/index", 31 "van-field": "../../ui/vant-weapp/field/index",
32 "van-tab": "../../ui/vant-weapp/tab/index", 32 "van-tab": "../../ui/vant-weapp/tab/index",
33 "van-tabs": "../../ui/vant-weapp/tabs/index" 33 "van-tabs": "../../ui/vant-weapp/tabs/index"
34 } 34 },
35 "navigateToMiniProgramAppIdList": [
36 "wx00d6285885e17324"
37 ]
35 } 38 }
......
1 let ENV_CONFIG = require('./env/index'); 1 let ENV_CONFIG = require('./env/index');
2 2
3 const APPID = '' 3 const APPID = 'wxd5e3b4b2e7ce2c1a'
4 /** ====每次发布版本记得修改此环境配置==== */ 4 /** ====每次发布版本记得修改此环境配置==== */
5 const ENV = 'Prod'; // Dev Prod Slave NewYear 5 const ENV = 'Prod'; // Dev Prod Slave NewYear
6 const NET_CONFIG = ENV_CONFIG[ENV]; 6 const NET_CONFIG = ENV_CONFIG[ENV];
......
...@@ -138,6 +138,30 @@ Page({ ...@@ -138,6 +138,30 @@ Page({
138 }, 138 },
139 139
140 /** 140 /**
141 * 点击禁用的tab
142 */
143 onClickDisabled(event) {
144 this.openBlessWxApp();
145 },
146
147 // 打开微信小程序app
148 openBlessWxApp() {
149 wx.navigateToMiniProgram({
150 appId: "wx00d6285885e17324", // 要跳转的小程序的appid
151 path: "pages/index/index?t=bless", // 跳转的目标页面
152 extarData: {
153 open: ''
154 },
155 success(res) {
156 // 打开成功
157 },
158 fail(err) {
159
160 }
161 })
162 },
163
164 /**
141 * banner切换 165 * banner切换
142 */ 166 */
143 onBannerChangeHandler(e) { 167 onBannerChangeHandler(e) {
...@@ -395,7 +419,7 @@ Page({ ...@@ -395,7 +419,7 @@ Page({
395 }) 419 })
396 } 420 }
397 } 421 }
398 } else { 422 } else {
399 // 视频祝福 423 // 视频祝福
400 if (isFirstAdshow) { 424 if (isFirstAdshow) {
401 // 第一个视频出现过 425 // 第一个视频出现过
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
5 <view class="app__content main"> 5 <view class="app__content main">
6 <view class="top-space"></view> 6 <view class="top-space"></view>
7 <van-sticky> 7 <van-sticky>
8 <van-tabs ellipsis="{{ false }}" active="{{ active }}" bind:click="onVanTabsHandler"> 8 <van-tabs ellipsis="{{ false }}" active="{{ active }}" bind:click="onVanTabsHandler" bind:disabled="onClickDisabled">
9 <van-tab wx:for="{{tabList}}" wx:key="{{index}}" title="{{item.tabName}}"></van-tab> 9 <van-tab data-data="{{item}}" data-tt="{{item}}" wx:for="{{tabList}}" wx:key="{{index}}" title="{{item.tabName}}" disabled="{{item.type==2}}"></van-tab>
10 </van-tabs> 10 </van-tabs>
11 </van-sticky> 11 </van-sticky>
12 <view class="banner" wx:if="{{bannerList && bannerList.length>0}}"> 12 <view class="banner" wx:if="{{bannerList && bannerList.length>0}}">
......