Commit d7153593 by zhangxw

登录样式修改

1 parent 3e16d9fd
......@@ -51,11 +51,19 @@ Page({
orderGoodsList.push({
goodsId: val.id || val.goodsId, // 商品详情下单是id ,购物车结算是goodsId
sellQty: val?.sellQty,
specificationData: val?.specificationData || undefined,
specificationData: val?.specificationData,
goodsSkuCode: val.goodsSkuCode,
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 = {
buyerMsg: goodsInfo?.buyerMsg,
addressId: contactInfo?.id,
......
<view class="layout">
<view class="bg-top">
<view class="bg-top" wx:if="{{loginType==0}}">
<glsx-image src="/login/login-bg.png"></glsx-image>
</view>
<navigation-bar navStyle="background:transparent;" showBack page-title="登录"><text class="page-title">登录</text></navigation-bar>
......
......@@ -2,6 +2,12 @@
page{
background-color: #FAFBFF !important;
}
.layout {
position: relative;
display: flex;
justify-content: center;
height: 100vh;
}
.bg-top {
position: fixed;
z-index: -1;
......@@ -30,15 +36,14 @@ page{
}
.h1 {
margin: 0 0 24rpx 80rpx;
padding-top: 90rpx;
font-size: 60rpx;
color: #323436;
font-weight: 600;
padding-top: 4vh;
}
.h2 {
margin: 0 0 60rpx 80rpx;
font-size: 44rpx;
color: #323436;
}
......@@ -46,14 +51,14 @@ page{
.login-img {
width: 468rpx;
height: 468rpx;
margin: 60rpx auto;
margin: 3vh auto;
}
.h3 {
font-weight: 500;
font-size: 44rpx;
color: #323436;
padding: 176rpx 0 0 106rpx;
padding: 176rpx 0 0 40rpx;
}
.wx-auth-button {
......@@ -89,7 +94,7 @@ page{
.type .icon {
width: 68rpx;
height: 68rpx;
margin: 40rpx auto 12rpx;
margin: 2vh auto 12rpx;
}
.tips {
......@@ -134,7 +139,7 @@ page{
/* 手机号 */
.box {
margin: 0 105rpx 306rpx;
margin: 0 40rpx 18.5vh;
animation: opacity .25s forwards;
}
......
......@@ -70,7 +70,7 @@
}
}
.btn {
margin: 0 32rpx;
margin: 0 32rpx 20rpx 32rpx;
height: 96rpx;
background: #FB8A32;
border-radius: 20rpx;
......
......@@ -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 () {
this.getPointsWallet()
this.getWalletData()
},
/**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!