Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
home-with-kids-mp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d39dd07e
authored
2020-01-19 19:18:33 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
63022cc7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
5 deletions
src/app.json
src/config.js
src/pages/index/index.js
src/pages/index/index.wxml
src/app.json
View file @
d39dd07
...
...
@@ -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"
]
}
...
...
src/config.js
View file @
d39dd07
let
ENV_CONFIG
=
require
(
'./env/index'
);
const
APPID
=
''
const
APPID
=
'
wxd5e3b4b2e7ce2c1a
'
/** ====每次发布版本记得修改此环境配置==== */
const
ENV
=
'Prod'
;
// Dev Prod Slave NewYear
const
NET_CONFIG
=
ENV_CONFIG
[
ENV
];
...
...
src/pages/index/index.js
View file @
d39dd07
...
...
@@ -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
)
{
...
...
@@ -395,7 +419,7 @@ Page({
})
}
}
}
else
{
}
else
{
// 视频祝福
if
(
isFirstAdshow
)
{
// 第一个视频出现过
...
...
src/pages/index/index.wxml
View file @
d39dd07
...
...
@@ -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}}">
...
...
Please
register
or
sign in
to post a comment