Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
hmd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a1e0cead
authored
Jul 24, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改样式&修复BUG
1 parent
19d1f387
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
13 deletions
pages/Login/Login.wxml
pages/Login/Login.wxss
pages/tab/index/components/store-equity/store-equity.js
pages/tab/index/components/store-equity/store-equity.wxml
pages/tab/index/index.js
pages/tab/index/index.wxml
pages/Login/Login.wxml
View file @
a1e0cea
...
...
@@ -22,10 +22,10 @@
</view>
<view class="wx-box">
<block wx:if="{{!isAgree}}">
<button class="wx-auth-button text-center {{isAgree}}" bindtap="showTips">登录</button>
<button class="wx-auth-button text-center {{isAgree}}" bindtap="showTips">
微信
登录</button>
</block>
<block wx:else>
<button open-type="getPhoneNumber" catchgetphonenumber="getPhoneNumber" class="wx-auth-button text-center">登录</button>
<button open-type="getPhoneNumber" catchgetphonenumber="getPhoneNumber" class="wx-auth-button text-center">
微信
登录</button>
</block>
</view>
</block>
...
...
@@ -46,7 +46,7 @@
</block>
<view class="type-box flex">
<view class="title" bindtap="changeLoginType">
其他方式
{{loginType==0?'手机号登录':'微信登录'}}
</view>
<!-- <view class="type" bindtap="changeLoginType">
<view class="icon">
...
...
pages/Login/Login.wxss
View file @
a1e0cea
...
...
@@ -116,8 +116,8 @@ page {}
.type-box {
flex-direction: column;
margin-top: 33rpx;
font-size: 2
4
rpx;
color: #
8A8C90
;
font-size: 2
8
rpx;
color: #
fff
;
}
.type .icon {
...
...
pages/tab/index/components/store-equity/store-equity.js
View file @
a1e0cea
...
...
@@ -12,6 +12,14 @@ Component({
* 组件的方法列表
*/
methods
:
{
init
()
{
this
.
getMemberCardData
()
this
.
getMerchantDetail
()
this
.
toCheckMember
()
},
onPullDownRefresh
()
{
this
.
init
()
},
getMerchantDetail
()
{
const
{
merchantId
...
...
@@ -29,18 +37,20 @@ Component({
wx
.
p
.
router
.
intercept
(
false
).
then
(
res
=>
{
if
(
res
)
{
this
.
setData
({
memberInfo
:
{},
flag
:
true
isMember
:
false
,
})
}
else
{
wx
.
p
.
api
.
equityApi
.
checkOpenMember
().
then
(
res
=>
{
let
isMember
=
false
if
(
res
.
data
&&
res
.
data
.
validitDate
)
{
res
.
data
.
time
=
new
Date
(
res
.
data
.
validitDate
).
format
(
'yyyy.MM.dd'
)
}
if
(
res
.
code
==
0
&&
res
.
data
)
{
// 获取门店会员卡信息
this
.
getMemberCardData
()
isMember
=
true
}
this
.
setData
({
isMember
})
})
}
})
...
...
@@ -77,8 +87,7 @@ Component({
},
lifetimes
:
{
ready
()
{
this
.
getMerchantDetail
()
this
.
toCheckMember
()
this
.
init
()
}
},
pageLifetimes
:
{
...
...
pages/tab/index/components/store-equity/store-equity.wxml
View file @
a1e0cea
...
...
@@ -16,7 +16,7 @@
<view class="content">
<glsx-image class="equity-icon" src="home/vip-icon.png"></glsx-image>
<text class="text">生活权益|专享超百种生活权益</text>
<block wx:if="{{!
memberInfo.equityName
}}">
<block wx:if="{{!
isMember
}}">
<view class="content-view equity-btn" bindtap="toBuyMember">立即开通</view>
</block>
</view>
...
...
pages/tab/index/index.js
View file @
a1e0cea
...
...
@@ -150,6 +150,7 @@ Page({
})
this
.
getHomeConfig
()
this
.
getActivityList
()
this
.
selectComponent
(
'#storeQuity'
).
onPullDownRefresh
()
},
onReachBottom
()
{
let
{
...
...
pages/tab/index/index.wxml
View file @
a1e0cea
...
...
@@ -10,7 +10,7 @@
<view class="layout" style="top:{{navHeight}}px">
<!-- 门店信息 -->
<view class="store-box">
<store-equity></store-equity>
<store-equity
id="storeQuity"
></store-equity>
</view>
<!-- 公告 -->
<block wx:if="{{noticeContent}}">
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment