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
daf3eb67
authored
2020-01-20 16:34:02 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
c0f6ab09
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
9 deletions
src/component/shortcut/shortcut.wxml
src/image/shortcut/contact.png
src/pages/detail/detail.js
src/pages/detail/detail.wxml
src/pages/index/index.js
src/pages/index/index.wxml
src/component/shortcut/shortcut.wxml
View file @
daf3eb6
...
...
@@ -7,6 +7,6 @@
</view>
<button class="contact" wx:if="{{contact}}" open-type="contact" show-message-card="true" send-message-title="家有儿孙" end-message-path="/pages/index/index" send-message-img="https://kdcdn.oss-cn-shenzhen.aliyuncs.com/weapp/jyes/assets/logo.jpg" bindcontact="handleContact">
<!-- <span class="iconfont iconicon-test3 contact"></span> -->
<image class="img" mode="widthFix" src="../../image/shortcut/contact.
jp
g" />
<image class="img" mode="widthFix" src="../../image/shortcut/contact.
pn
g" />
</button>
</view>
...
...
src/image/shortcut/contact.png
0 → 100755
View file @
daf3eb6
37.2 KB
src/pages/detail/detail.js
View file @
daf3eb6
...
...
@@ -285,7 +285,6 @@ Page({
adConfigure
:
result
})
app
.
globalData
.
adConfigure
=
result
;
resolve
(
result
);
}).
catch
((
err
)
=>
{
reject
(
err
)
...
...
src/pages/detail/detail.wxml
View file @
daf3eb6
...
...
@@ -60,10 +60,16 @@
<view class="more">
<view class="more-title">-- 更多推荐欣赏 --</view>
<view class="more-list">
<view bindtap="onDetailHandler" data-data="{{item}}" data-index="{{index}}" wx:for="{{dataList}}" wx:key="index" class="more-list-item">
<block wx:for="{{dataListResult}}" wx:key="index">
<block wx:if="{{item.type == 'ad'}}">
<ad wx:if="{{item.adType == 'video'}}" unit-id="adunit-f944674d97d18363" ad-type="video" ad-theme="white"></ad>
<ad wx:else unit-id="adunit-c3754721d968fc07"></ad>
</block>
<view wx:else bindtap="onDetailHandler" data-data="{{item}}" data-index="{{index}}" class="more-list-item">
<view class="tit">{{item.videoName}}</view>
<image class="poster" src="{{item.thumbnail}}" />
</view>
</block>
</view>
</view>
<!-- 返回首页按钮 -->
...
...
src/pages/index/index.js
View file @
daf3eb6
...
...
@@ -441,7 +441,7 @@ Page({
adStepIndex
=
0
;
dataListResult
.
push
({
type
:
"ad"
,
adType
:
"
banner
"
adType
:
"
video
"
})
}
}
...
...
@@ -449,9 +449,11 @@ Page({
adStepIndex
++
;
dataListResult
.
push
(
element
);
// console.log("dataListResult:", dataListResult);
});
this
.
setData
({
dataList
:
dataListResult
,
dataList
:
dataList
,
dataListResult
:
dataListResult
,
total
:
result
.
total
,
queueCode
:
result
.
queueCode
,
listType
:
result
.
type
...
...
src/pages/index/index.wxml
View file @
daf3eb6
...
...
@@ -26,8 +26,11 @@
<view class="list">
<!-- 拜年item -->
<block wx:if="{{listType == 2}}">
<block wx:for="{{dataList}}" wx:key="index">
<ad wx:if="{{item.type == 'ad'}}" unit-id="adunit-c3754721d968fc07"></ad>
<block wx:for="{{dataListResult}}" wx:key="index">
<block wx:if="{{item.type == 'ad'}}">
<ad wx:if="{{item.adType == 'video'}}" unit-id="adunit-f944674d97d18363" ad-type="video" ad-theme="white"></ad>
<ad wx:else unit-id="adunit-c3754721d968fc07"></ad>
</block>
<view wx:else bindtap="onDetailHandler" data-data="{{item}}" data-index="{{index}}" class="list-bless-item">
<image class="poster" src="{{item.thumbnail}}" />
<view class="desc-wrap">
...
...
@@ -41,8 +44,11 @@
</block>
<!-- 视频item -->
<block wx:else>
<block wx:for="{{dataList}}" wx:key="index">
<ad wx:if="{{item.type == 'ad'}}" unit-id="adunit-c3754721d968fc07"></ad>
<block wx:for="{{dataListResult}}" wx:key="index">
<block wx:if="{{item.type == 'ad'}}">
<ad wx:if="{{item.adType == 'video'}}" unit-id="adunit-f944674d97d18363" ad-type="video" ad-theme="white"></ad>
<ad wx:else unit-id="adunit-c3754721d968fc07"></ad>
</block>
<view wx:else class="list-item">
<view bindtap="onDetailHandler" data-data="{{item}}" data-index="{{index}}" class="list-item-video">
<image class="img" src="{{item.thumbnail}}" mode="aspectFill" />
...
...
Please
register
or
sign in
to post a comment