Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
points-mall
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 d7153593
authored
Aug 30, 2025
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
登录样式修改
1 parent
3e16d9fd
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
10 deletions
packageIndex/pages/confirmOrder/index.js
pages/Login/Login.wxml
pages/Login/Login.wxss
pages/Login/components/PointsSource/PointsSource.scss
pages/tab/index/index.js
packageIndex/pages/confirmOrder/index.js
View file @
d715359
...
@@ -51,11 +51,19 @@ Page({
...
@@ -51,11 +51,19 @@ Page({
orderGoodsList
.
push
({
orderGoodsList
.
push
({
goodsId
:
val
.
id
||
val
.
goodsId
,
// 商品详情下单是id ,购物车结算是goodsId
goodsId
:
val
.
id
||
val
.
goodsId
,
// 商品详情下单是id ,购物车结算是goodsId
sellQty
:
val
?.
sellQty
,
sellQty
:
val
?.
sellQty
,
specificationData
:
val
?.
specificationData
||
undefined
,
specificationData
:
val
?.
specificationData
,
goodsSkuCode
:
val
.
goodsSkuCode
,
goodsSkuCode
:
val
.
goodsSkuCode
,
goodsSource
:
val
.
goodsSource
goodsSource
:
val
.
goodsSource
})
})
})
})
orderGoodsList
?.
map
(
obj
=>
{
Object
.
keys
(
obj
).
forEach
(
key
=>
{
if
(
obj
[
key
]
===
null
||
obj
[
key
]
===
undefined
)
{
delete
obj
[
key
]
}
})
return
obj
})
let
params
=
{
let
params
=
{
buyerMsg
:
goodsInfo
?.
buyerMsg
,
buyerMsg
:
goodsInfo
?.
buyerMsg
,
addressId
:
contactInfo
?.
id
,
addressId
:
contactInfo
?.
id
,
...
...
pages/Login/Login.wxml
View file @
d715359
<view class="layout">
<view class="layout">
<view class="bg-top">
<view class="bg-top"
wx:if="{{loginType==0}}"
>
<glsx-image src="/login/login-bg.png"></glsx-image>
<glsx-image src="/login/login-bg.png"></glsx-image>
</view>
</view>
<navigation-bar navStyle="background:transparent;" showBack page-title="登录"><text class="page-title">登录</text></navigation-bar>
<navigation-bar navStyle="background:transparent;" showBack page-title="登录"><text class="page-title">登录</text></navigation-bar>
...
...
pages/Login/Login.wxss
View file @
d715359
...
@@ -2,6 +2,12 @@
...
@@ -2,6 +2,12 @@
page{
page{
background-color: #FAFBFF !important;
background-color: #FAFBFF !important;
}
}
.layout {
position: relative;
display: flex;
justify-content: center;
height: 100vh;
}
.bg-top {
.bg-top {
position: fixed;
position: fixed;
z-index: -1;
z-index: -1;
...
@@ -30,15 +36,14 @@ page{
...
@@ -30,15 +36,14 @@ page{
}
}
.h1 {
.h1 {
margin: 0 0 24rpx 80rpx;
padding-top: 90rpx;
padding-top: 90rpx;
font-size: 60rpx;
font-size: 60rpx;
color: #323436;
color: #323436;
font-weight: 600;
font-weight: 600;
padding-top: 4vh;
}
}
.h2 {
.h2 {
margin: 0 0 60rpx 80rpx;
font-size: 44rpx;
font-size: 44rpx;
color: #323436;
color: #323436;
}
}
...
@@ -46,14 +51,14 @@ page{
...
@@ -46,14 +51,14 @@ page{
.login-img {
.login-img {
width: 468rpx;
width: 468rpx;
height: 468rpx;
height: 468rpx;
margin:
60rpx
auto;
margin:
3vh
auto;
}
}
.h3 {
.h3 {
font-weight: 500;
font-weight: 500;
font-size: 44rpx;
font-size: 44rpx;
color: #323436;
color: #323436;
padding: 176rpx 0 0
106
rpx;
padding: 176rpx 0 0
40
rpx;
}
}
.wx-auth-button {
.wx-auth-button {
...
@@ -89,7 +94,7 @@ page{
...
@@ -89,7 +94,7 @@ page{
.type .icon {
.type .icon {
width: 68rpx;
width: 68rpx;
height: 68rpx;
height: 68rpx;
margin:
40rpx
auto 12rpx;
margin:
2vh
auto 12rpx;
}
}
.tips {
.tips {
...
@@ -134,7 +139,7 @@ page{
...
@@ -134,7 +139,7 @@ page{
/* 手机号 */
/* 手机号 */
.box {
.box {
margin: 0
105rpx 306rpx
;
margin: 0
40rpx 18.5vh
;
animation: opacity .25s forwards;
animation: opacity .25s forwards;
}
}
...
...
pages/Login/components/PointsSource/PointsSource.scss
View file @
d715359
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
}
}
}
}
.btn
{
.btn
{
margin
:
0
32rpx
;
margin
:
0
32rpx
20rpx
32rpx
;
height
:
96rpx
;
height
:
96rpx
;
background
:
#FB8A32
;
background
:
#FB8A32
;
border-radius
:
20rpx
;
border-radius
:
20rpx
;
...
...
pages/tab/index/index.js
View file @
d715359
...
@@ -306,11 +306,24 @@ Page({
...
@@ -306,11 +306,24 @@ Page({
})
})
})
})
},
},
getWalletData
()
{
let
{
userInfo
}
=
this
.
data
// 获取当前积分数量
commonApi
.
getPointsSummary
({
staffPhone
:
userInfo
?.
phone
,
channelSource
:
userInfo
?.
channelSource
,
merchantId
:
userInfo
?.
merchantId
}).
then
(
r
=>
{
if
(
r
?.
code
==
0
)
{
this
.
setData
({
walletObj
:
{
name
:
r
?.
data
?.
staffName
||
userInfo
?.
nickName
,
phone
:
r
?.
data
?.
staffPhone
||
userInfo
?.
phone
,
scoreSource
:
userInfo
?.
channelSource
,
currentScore
:
r
?.
data
?.
currentScore
||
0
}
})
}
else
{
wx
.
p
.
wxApi
.
showToast
(
r
.
message
)
}
})
},
/**
/**
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
onShow
:
function
()
{
onShow
:
function
()
{
this
.
get
PointsWallet
()
this
.
get
WalletData
()
},
},
/**
/**
...
...
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