Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
dae6f5b0
Commit
dae6f5b0
authored
Aug 28, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_7.1.0' into feature-zyw-sc
parents
25e4b96a
ba2ae622
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
6 deletions
+18
-6
attention.js
src/component/attention/attention.js
+13
-4
attention.wxml
src/component/attention/attention.wxml
+1
-1
attention.wxss
src/component/attention/attention.wxss
+3
-0
userCenter.wxml
src/pages/userCenter/userCenter.wxml
+1
-1
No files found.
src/component/attention/attention.js
View file @
dae6f5b0
...
...
@@ -9,21 +9,30 @@ Component({
* 组件的属性列表
*/
properties
:
{
focusWx
:
{
type
:
Object
,
value
:
null
}
},
attached
()
{
this
.
setData
({
baseImgUrl
:
app
.
globalData
.
imageUrl
})
},
/**
* 组件的初始数据
*/
data
:
{
baseImgUrl
:
''
},
/**
* 组件的方法列表
*/
methods
:
{
handelTo
(
e
)
{
const
ev
=
e
.
currentTarget
.
dataset
;
let
redirectId
=
ev
.
redirectId
console
.
log
(
'redirectid'
,
redirectId
)
}
}
})
src/component/attention/attention.wxml
View file @
dae6f5b0
<!--component/attention/attention.wxml-->
<view class="attention">
<view class="attention"
style="background-image:url({{baseImgUrl}}{{focusWx.imageUrl}})" data-redirectId="{{focusWx.redirectId}}" bindtap="handelTo"
>
<view class="attention-left">
<view class="left-title">关注舞象公众号</view>
<view class="left-tips">福利不错过!</view>
...
...
src/component/attention/attention.wxss
View file @
dae6f5b0
...
...
@@ -21,6 +21,9 @@
padding: 0 60rpx;
box-sizing: border-box;
color: #fff;
background-repeat: no-repeat;
background-position: center;
background-size: 100% 100%;
}
.left-title {
color: rgba(255, 255, 255, 1);
...
...
src/pages/userCenter/userCenter.wxml
View file @
dae6f5b0
...
...
@@ -25,7 +25,7 @@
<tab-sort categorys="{{pItem.categoryType.categorys}}"/>
</view>
<view class="" wx:if="{{pItem.type == 8}}">
<attention focus
W
x="{{pItem.focusWx}}"/>
<attention focus
-w
x="{{pItem.focusWx}}"/>
</view>
<view class="" wx:if="{{pItem.type == 9}}">
<attention/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment