d39dd07e by simon

默认提交

1 parent 63022cc7
......@@ -31,5 +31,8 @@
"van-field": "../../ui/vant-weapp/field/index",
"van-tab": "../../ui/vant-weapp/tab/index",
"van-tabs": "../../ui/vant-weapp/tabs/index"
}
},
"navigateToMiniProgramAppIdList": [
"wx00d6285885e17324"
]
}
......
let ENV_CONFIG = require('./env/index');
const APPID = ''
const APPID = 'wxd5e3b4b2e7ce2c1a'
/** ====每次发布版本记得修改此环境配置==== */
const ENV = 'Prod'; // Dev Prod Slave NewYear
const NET_CONFIG = ENV_CONFIG[ENV];
......
......@@ -138,6 +138,30 @@ Page({
},
/**
* 点击禁用的tab
*/
onClickDisabled(event) {
this.openBlessWxApp();
},
// 打开微信小程序app
openBlessWxApp() {
wx.navigateToMiniProgram({
appId: "wx00d6285885e17324", // 要跳转的小程序的appid
path: "pages/index/index?t=bless", // 跳转的目标页面
extarData: {
open: ''
},
success(res) {
// 打开成功
},
fail(err) {
}
})
},
/**
* banner切换
*/
onBannerChangeHandler(e) {
......
......@@ -5,8 +5,8 @@
<view class="app__content main">
<view class="top-space"></view>
<van-sticky>
<van-tabs ellipsis="{{ false }}" active="{{ active }}" bind:click="onVanTabsHandler">
<van-tab wx:for="{{tabList}}" wx:key="{{index}}" title="{{item.tabName}}"></van-tab>
<van-tabs ellipsis="{{ false }}" active="{{ active }}" bind:click="onVanTabsHandler" bind:disabled="onClickDisabled">
<van-tab data-data="{{item}}" data-tt="{{item}}" wx:for="{{tabList}}" wx:key="{{index}}" title="{{item.tabName}}" disabled="{{item.type==2}}"></van-tab>
</van-tabs>
</van-sticky>
<view class="banner" wx:if="{{bannerList && bannerList.length>0}}">
......