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
35f54e98
Commit
35f54e98
authored
Aug 29, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 关注公众号
parent
3ac7cdca
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
19 deletions
+23
-19
attention.js
src/component/attention/attention.js
+13
-5
attention.wxml
src/component/attention/attention.wxml
+7
-2
attention.wxss
src/component/attention/attention.wxss
+0
-9
userCenter.js
src/pages/userCenter/userCenter.js
+2
-2
project.config.json
src/project.config.json
+1
-1
No files found.
src/component/attention/attention.js
View file @
35f54e98
...
...
@@ -13,11 +13,11 @@ Component({
type
:
Object
,
value
:
null
}
},
attached
()
{
},
attached
()
{
this
.
setData
({
baseImgUrl
:
app
.
globalData
.
imageUrl
})
baseImgUrl
:
app
.
globalData
.
imageUrl
})
},
/**
* 组件的初始数据
...
...
@@ -29,10 +29,18 @@ Component({
* 组件的方法列表
*/
methods
:
{
// 组件加载成功时触发
handelLoad
(
e
)
{
console
.
log
(
'成功'
,
e
)
},
// 组件加载失败时触发
handelErr
(
e
)
{
console
.
log
(
'失败'
,
e
)
},
handelTo
(
e
)
{
const
ev
=
e
.
currentTarget
.
dataset
;
let
redirectId
=
ev
.
redirectId
console
.
log
(
'redirectid'
,
redirectId
)
}
}
}
})
src/component/attention/attention.wxml
View file @
35f54e98
<!--component/attention/attention.wxml-->
<view class="attention" style="background-image:url({{baseImgUrl}}{{focusWx.imageUrl}})" data-redirectId="{{focusWx.redirectId}}" bindtap="handelTo">
<
!--<
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>
</view>
<view class="attention-right">关注</view>
</view>
</view>-->
<view class="attention" style="background-image:url({{baseImgUrl}}{{focusWx.imageUrl}})" data-redirectId="{{focusWx.redirectId}}" bindtap="handelTo">
<official-account style="width:100%;height:168rpx;" bindload="handelLoad" binderror="handelErr">
</official-account>
</view>
\ No newline at end of file
src/component/attention/attention.wxss
View file @
35f54e98
/* component/attention/attention.wxss */
/* .banner-ad {
margin: 0 auto;
width: 710rpx;
height: 155rpx;
border-radius: 10rpx;
background-color: rgba(246, 243, 242, 1);
box-shadow: 0px 0px 10rpx 0px rgba(0, 0, 0, 0.05);
} */
.attention {
margin: 0 auto;
width: 710rpx;
...
...
@@ -18,7 +10,6 @@
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 60rpx;
box-sizing: border-box;
color: #fff;
background-repeat: no-repeat;
...
...
src/pages/userCenter/userCenter.js
View file @
35f54e98
...
...
@@ -86,9 +86,9 @@ wxService.page({
isAuthorization
:
false
},()
=>
{
// 积分数量
this
.
getMemberPointInfo
()
//
this.getMemberPointInfo()
// 优惠券数量
this
.
getMemberCouponInfo
()
//
this.getMemberCouponInfo()
})
}
else
if
(
!
baseUserInfo
&&
reLoginErrFlag
){
...
...
src/project.config.json
View file @
35f54e98
...
...
@@ -12,7 +12,7 @@
"autoAudits"
:
false
},
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.
6.6
"
,
"libVersion"
:
"2.
8.1
"
,
"appid"
:
"wxc3b64b09b1d3dfc2"
,
"projectname"
:
"%E5%BE%AE%E5%95%86%E5%9F%8E"
,
"debugOptions"
:
{
...
...
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