Commit 46733e8f by liimin

Merge branch 'SAAS+V4.56.0-0908' of http://192.168.3.233:8090/saas/mini-program/…

…points-mall into SAAS+V4.56.0-0908
2 parents 28534a2a 0b062eeb
Showing 43 changed files with 289 additions and 417 deletions
...@@ -94,9 +94,10 @@ class Request { ...@@ -94,9 +94,10 @@ class Request {
}) })
} }
if (query.length) currentRoute += `?${query.join('&')}` if (query.length) currentRoute += `?${query.join('&')}`
return wx.p.router.redirectTo('/pages/loading/loading', { wx.p.storage.rm('sessionId')
url: `/${currentRoute}` wx.p.isLogin = false
}) wx.p.storage.rm('userInfo')
return wx.p.router.redirectTo('/pages/Login/Login')
} else { } else {
if (code == '0') { if (code == '0') {
resolve(data.data) resolve(data.data)
......
...@@ -112,6 +112,19 @@ ...@@ -112,6 +112,19 @@
background: #EFF0F2; background: #EFF0F2;
} }
} }
.nothing {
height: 100%;
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
color: #7A8299;
.icon{
width: 320rpx;
height: 300rpx;
margin-bottom: 20rpx;
}
}
} }
.footer { .footer {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<glsx-image bind:tap="cancel" webp class="icon" src="/index/close.png"></glsx-image> <glsx-image bind:tap="cancel" webp class="icon" src="/index/close.png"></glsx-image>
</view> </view>
<view class="list-pannel"> <view class="list-pannel">
<scroll-view class="scroll" scroll-y="{{true}}"> <scroll-view class="scroll" scroll-y="{{true}}" wx:if="{{address.length}}">
<block wx:for="{{address}}" wx:key="index"> <block wx:for="{{address}}" wx:key="index">
<view bind:tap="toSelect" data-item="{{item}}" data-index="{{index}}" class="cell"> <view bind:tap="toSelect" data-item="{{item}}" data-index="{{index}}" class="cell">
<view class="icon"> <view class="icon">
...@@ -24,6 +24,12 @@ ...@@ -24,6 +24,12 @@
</view> </view>
</block> </block>
</scroll-view> </scroll-view>
<view wx:else class="nothing">
<view class="icon">
<glsx-image webp src="/cart/nothing-icon.png" />
</view>
暂无收货地址
</view>
</view> </view>
<view class="footer flex_cc"> <view class="footer flex_cc">
<view bind:tap="addNew" data-url="/packageMine/pages/address/detail/detail" class="btn flex_cc">新增地址</view> <view bind:tap="addNew" data-url="/packageMine/pages/address/detail/detail" class="btn flex_cc">新增地址</view>
......
...@@ -53,6 +53,13 @@ Component({ ...@@ -53,6 +53,13 @@ Component({
// 替换积分钱包名称 // 替换积分钱包名称
replaceNickName(data) { replaceNickName(data) {
let userInfo = wx.p.storage.get('userInfo') let userInfo = wx.p.storage.get('userInfo')
let { phone, scoreSource } = data
if (!phone || !scoreSource) {
wx.p.sentry.reportParamError(
'替换积分钱包姓名异常:phone, scoreSource',
data
)
}
commonApi.replaceWalletName({ commonApi.replaceWalletName({
nickName: data?.name, nickName: data?.name,
phone: data?.phone, phone: data?.phone,
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
.content-box { .content-box {
position: absolute; position: absolute;
z-index: 2; z-index: 2;
width: calc(100% - 80rpx);
margin: 220rpx 40rpx 0 40rpx; margin: 220rpx 40rpx 0 40rpx;
.box-item { .box-item {
display: flex; display: flex;
......
...@@ -48,7 +48,7 @@ Component({ ...@@ -48,7 +48,7 @@ Component({
cartApi.getCartList(para).then(res => { cartApi.getCartList(para).then(res => {
let cartNum = 0 let cartNum = 0
res?.goodsList?.forEach(el => { res?.goodsList?.forEach(el => {
cartNum = NP.plus(cartNum, el.sellQty) cartNum = NP.plus(cartNum, el.sellQty || 0)
}) })
this.setData({ this.setData({
cartNum cartNum
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
width: 304rpx; width: 304rpx;
height: 84rpx; height: 84rpx;
color: #fff; color: #fff;
font-size: 28rpx; font-size: 32rpx;
} }
.btn-box .pay { .btn-box .pay {
......
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
.sku-title { .sku-title {
color: #2D2D2E; color: #2D2D2E;
font-weight: 500; font-weight: 500;
padding-top: var(--margin); padding-top: 32rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
...@@ -97,7 +97,8 @@ ...@@ -97,7 +97,8 @@
flex-wrap: wrap; flex-wrap: wrap;
.item { .item {
height: 52rpx; height: 52rpx;
line-height: 52rpx; display: flex;
align-items: center;
background: #F7F8FA; background: #F7F8FA;
padding: 0 20rpx; padding: 0 20rpx;
margin: 20rpx 20rpx 0 0; margin: 20rpx 20rpx 0 0;
...@@ -140,7 +141,7 @@ ...@@ -140,7 +141,7 @@
} }
.count-box { .count-box {
margin-top: 20rpx; margin-top: 32rpx;
.title { .title {
font-weight: 400; font-weight: 400;
...@@ -232,11 +233,11 @@ ...@@ -232,11 +233,11 @@
background: white; background: white;
.btn { .btn {
width: 100%; width: 100%;
height: 80rpx; height: 84rpx;
background: #FB8A32; background: #FB8A32;
border-radius: 20rpx; border-radius: 20rpx;
font-weight: 500; font-weight: 500;
font-size: 30rpx; font-size: 32rpx;
color: #FFFFFF; color: #FFFFFF;
} }
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
.stepper-box .num { .stepper-box .num {
width: 59rpx; width: 59rpx;
border-radius: 8rpx;
} }
.stepper-box .add { .stepper-box .add {
......
...@@ -27,8 +27,7 @@ ...@@ -27,8 +27,7 @@
</view> </view>
<view class="item-box-price"> <view class="item-box-price">
<view class="points-price"> <view class="points-price">
{{item.redeemPoints}} {{item.redeemPoints}}<text>积分</text>
<text>积分</text>
</view> </view>
</view> </view>
<view class="item-box-btn"> <view class="item-box-btn">
......
...@@ -94,6 +94,7 @@ ...@@ -94,6 +94,7 @@
.item-box-price text{ .item-box-price text{
font-weight: 400; font-weight: 400;
font-size: 22rpx; font-size: 22rpx;
margin-left: 4rpx;
} }
.item-box-btn { .item-box-btn {
......
...@@ -67,3 +67,4 @@ ...@@ -67,3 +67,4 @@
</Dialog> </Dialog>
<!-- <dialog show="{{showModal}}" confirmText="{{success?'去兑换':'我知道了'}}" cancelText="我知道了" showCancelButton success="{{success}}" bindconfirm="dialogConfirm" bindcancel="dialogClose" text="{{dialogText}}"> --> <!-- <dialog show="{{showModal}}" confirmText="{{success?'去兑换':'我知道了'}}" cancelText="我知道了" showCancelButton success="{{success}}" bindconfirm="dialogConfirm" bindcancel="dialogClose" text="{{dialogText}}"> -->
<!-- </dialog> --> <!-- </dialog> -->
<glsx-privacy appletName="积分商城"></glsx-privacy>
\ No newline at end of file \ No newline at end of file
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
</view> </view>
<view wx:if="{{item.specificationData}}" class="specificationData-text" bindtap="handleChangeSku" data-target="{{item}}" data-index="{{index}}"> <view wx:if="{{item.specificationData}}" class="specificationData-text" bindtap="handleChangeSku" data-target="{{item}}" data-index="{{index}}">
<view class="text-hide description">{{item.specificationData}}</view> <view class="text-hide description">{{item.specificationData}}</view>
<mp-icon icon="back" class="change-icon" color="#6E6E7A" size="{{8}}"></mp-icon> <mp-icon icon="back" class="change-icon" color="#6E6E7A" size="{{6}}"></mp-icon>
</view> </view>
</view> </view>
<view class="price-box"> <view class="price-box">
......
/* packageMall/pages/pay/pay.wxss */ /* packageMall/pages/pay/pay.wxss */
.layout { .layout {
background: #F7F8FA; /* background: #F7F8FA; */
padding: 24rpx 32rpx; padding: 24rpx 32rpx;
} }
.address-box { .address-box {
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 24rpx 0 0; padding: 24rpx 0 4rpx;
} }
.address-box .left { .address-box .left {
...@@ -170,6 +170,8 @@ ...@@ -170,6 +170,8 @@
.text .specificationData-text .change-icon { .text .specificationData-text .change-icon {
margin-left: 8rpx; margin-left: 8rpx;
margin-top: 2rpx;
filter: drop-shadow(1rpx 0 0 #6E6E7A);
transform: rotate(-90deg); transform: rotate(-90deg);
} }
......
...@@ -92,6 +92,19 @@ Page({ ...@@ -92,6 +92,19 @@ Page({
merchantId: userInfo?.merchantId, merchantId: userInfo?.merchantId,
merchantName: userInfo?.merchantName, merchantName: userInfo?.merchantName,
} : {id: reviewId} } : {id: reviewId}
let { goodsId, customerMobile, merchantId } = params
if (e.type == 'add' && (!goodsId || !customerMobile || !merchantId)) {
wx.p.sentry.reportParamError(
'商品详情进入埋点异常:goodsId, customerMobile, merchantId',
params
)
}
if (e.type != 'add' && !reviewId) {
wx.p.sentry.reportParamError(
'商品详情离开埋点异常:id',
{id: reviewId}
)
}
commonApi[eventApi](params).then(res => { commonApi[eventApi](params).then(res => {
this.setData({reviewId: res?.data}) this.setData({reviewId: res?.data})
}) })
...@@ -165,6 +178,12 @@ Page({ ...@@ -165,6 +178,12 @@ Page({
}, },
// 获取详情 // 获取详情
getDetail(options) { getDetail(options) {
if (!options.id) {
wx.p.sentry.reportParamError(
'商品详情异常:id',
id
)
}
homeApi.getGoodsDetailInfo({id: options.id, businessType: 1}).then(res => { homeApi.getGoodsDetailInfo({id: options.id, businessType: 1}).then(res => {
if (res && res.specificationResponses?.length) { if (res && res.specificationResponses?.length) {
this.toGetSpecString(res, res.startQty) this.toGetSpecString(res, res.startQty)
...@@ -216,6 +235,13 @@ Page({ ...@@ -216,6 +235,13 @@ Page({
merchantId: userInfo?.merchantId merchantId: userInfo?.merchantId
} }
if (!detailInfo.goodsStock) return wx.p.wxApi.showToast('暂无库存') if (!detailInfo.goodsStock) return wx.p.wxApi.showToast('暂无库存')
let { goodsId, sellQty, goodsSource, scoreSource, merchantId, specificationData } = PARAMS
if (!goodsId || !sellQty || !goodsSource || !scoreSource || !merchantId || (goodsSource == 2 && !specificationData)) {
wx.p.sentry.reportParamError(
'加入购物车异常:goodsId, sellQty, goodsSource, scoreSource, merchantId, specificationData',
PARAMS
)
}
cartApi.addToCart(PARAMS).then(res => { cartApi.addToCart(PARAMS).then(res => {
wx.p.wxApi.showToast('加入购物车成功') wx.p.wxApi.showToast('加入购物车成功')
this.joinSuccess() this.joinSuccess()
......
...@@ -72,7 +72,7 @@ page { ...@@ -72,7 +72,7 @@ page {
padding: 16rpx 0; padding: 16rpx 0;
.container-item { .container-item {
margin: 0 16rpx; margin: 0 16rpx;
padding: 28rpx 24rpx; padding: 0 24rpx;
background: #FFFFFF; background: #FFFFFF;
border-radius: 24rpx; border-radius: 24rpx;
margin-bottom: 16rpx; margin-bottom: 16rpx;
...@@ -91,6 +91,7 @@ page { ...@@ -91,6 +91,7 @@ page {
text { text {
font-size: 28rpx; font-size: 28rpx;
font-weight: 500; font-weight: 500;
margin-left: 4rpx;
} }
} }
.market-price { .market-price {
...@@ -103,6 +104,9 @@ page { ...@@ -103,6 +104,9 @@ page {
.count { .count {
color: #B1B1B3; color: #B1B1B3;
font-size: 24rpx; font-size: 24rpx;
.line{
margin: 0 16rpx;
}
} }
.goods-title { .goods-title {
margin-top: 20rpx; margin-top: 20rpx;
......
...@@ -39,13 +39,12 @@ ...@@ -39,13 +39,12 @@
<view class="price"> <view class="price">
<view class="price-box"> <view class="price-box">
<view class="sale-price"> <view class="sale-price">
{{detailInfo.redeemPoints}} {{detailInfo.redeemPoints}}<text>积分</text>
<text>积分</text>
</view> </view>
<view class="market-price">¥{{detailInfo.marketPrice}}</view> <view class="market-price">¥{{detailInfo.marketPrice}}</view>
</view> </view>
<view class="count"> <view class="count">
<text>剩余 {{goodsStock}}</text> | <text>销售 {{detailInfo.saleAmount}}</text> <text>剩余 {{goodsStock}}</text><text class="line">|</text><text>销售 {{detailInfo.saleAmount}}</text>
</view> </view>
</view> </view>
<view class="goods-title"><text wx:if="{{detailInfo.goodsSource == 1}}">{{detailInfo.brandName}}</text>{{detailInfo.goodsSkuName}}</view> <view class="goods-title"><text wx:if="{{detailInfo.goodsSource == 1}}">{{detailInfo.brandName}}</text>{{detailInfo.goodsSkuName}}</view>
...@@ -55,8 +54,8 @@ ...@@ -55,8 +54,8 @@
<view class="flex"> <view class="flex">
<view class="title">已选</view> <view class="title">已选</view>
<view class="content flex_ccc"> <view class="content flex_ccc">
<view wx:if="{{detailInfo.goodsSource == 1}}">{{skuInfo}}</view> <view class="text" wx:if="{{detailInfo.goodsSource == 1}}">{{skuInfo}}</view>
<view wx:else>{{activeSku}}</view> <view class="text" wx:else>{{activeSku}}</view>
</view> </view>
</view> </view>
<mp-icon icon="arrow" color="#B1B1B3" size="{{12}}"></mp-icon> <mp-icon icon="arrow" color="#B1B1B3" size="{{12}}"></mp-icon>
......
...@@ -168,6 +168,7 @@ ...@@ -168,6 +168,7 @@
font-weight: 600; font-weight: 600;
font-size: 40rpx; font-size: 40rpx;
color: #333333; color: #333333;
text-align: center;
} }
.text { .text {
...@@ -175,6 +176,7 @@ ...@@ -175,6 +176,7 @@
color: #888888; color: #888888;
line-height: 36rpx; line-height: 36rpx;
white-space: nowrap; white-space: nowrap;
text-align: center;
} }
} }
......
...@@ -134,12 +134,14 @@ ...@@ -134,12 +134,14 @@
color: #333333; color: #333333;
font-size: 34rpx; font-size: 34rpx;
font-weight: 600; font-weight: 600;
text-align: center;
} }
.text{ .text{
font-weight: 400; font-weight: 400;
font-size: 24rpx; font-size: 24rpx;
color: #888888; color: #888888;
margin-top:6rpx; margin-top:6rpx;
text-align: center;
} }
} }
} }
......
...@@ -91,3 +91,11 @@ ...@@ -91,3 +91,11 @@
height: 0; height: 0;
color: transparent; color: transparent;
} }
.list_data_widget {
// 隐藏滚动条但保持滚动功能
&::-webkit-scrollbar {
display: none; // Webkit浏览器
}
scrollbar-width: none; // Firefox
-ms-overflow-style: none; // IE/Edge
}
\ No newline at end of file \ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
收益明细 收益明细
</view> </view>
<block wx:if="{{list.length}}"> <block wx:if="{{list.length}}">
<scroll-view class="list_data_widget" scroll-y="{{true}}" bindrefresherrefresh="bindrefresherrefresh" bindscrolltolower="scrollonReachBottom" refresher-threshold="104" refresher-triggered="{{triggered}}"> <scroll-view class="list_data_widget" scroll-y="{{true}}"enhanced="{{true}}" show-scrollbar="{{false}}" bindrefresherrefresh="bindrefresherrefresh" bindscrolltolower="scrollonReachBottom" refresher-threshold="104" refresher-triggered="{{triggered}}">
<block wx:for="{{list}}" wx:key="index"> <block wx:for="{{list}}" wx:key="index">
<view class="element" bind:tap="handleDetail" data-id="{{item.id}}" data-infoName="{{item.infoName}}" data-channelSource="{{item.channelSource}}"> <view class="element" bind:tap="handleDetail" data-id="{{item.id}}" data-infoName="{{item.infoName}}" data-channelSource="{{item.channelSource}}">
<view class="title">{{item.infoName}} <view class="title">{{item.infoName}}
......
...@@ -30,6 +30,13 @@ Page({ ...@@ -30,6 +30,13 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
async onLoad(options) { async onLoad(options) {
if (options.scene === 1047) { // 1047 表示从另一个小程序跳转过来的场景值
console.log('extraData:', options.referrerInfo.extraData);
if (options.referrerInfo.extraData && options.referrerInfo.extraData.external) {
this.loginOut()
}
}
let userInfo = wx.p.storage.get('userInfo'); let userInfo = wx.p.storage.get('userInfo');
this.setData({ this.setData({
userInfo userInfo
...@@ -39,7 +46,12 @@ Page({ ...@@ -39,7 +46,12 @@ Page({
this.searchScoreSummaryData() this.searchScoreSummaryData()
this.getScoreProfitListData() this.getScoreProfitListData()
}, },
loginOut() {
wx.p.storage.rm('sessionId')
wx.p.isLogin = false
wx.p.storage.rm('userInfo')
wx.p.router.reLaunch('/pages/Login/Login')
},
getPointsWalletData() { getPointsWalletData() {
const { const {
phone, phone,
...@@ -122,7 +134,7 @@ Page({ ...@@ -122,7 +134,7 @@ Page({
total, total,
pageSize, pageSize,
scoreList, scoreList,
userInfo:{ userInfo: {
phone, phone,
channelSource, channelSource,
merchantId merchantId
...@@ -232,8 +244,8 @@ Page({ ...@@ -232,8 +244,8 @@ Page({
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow(){ onShow() {
if (this.refresh){ if (this.refresh) {
this.searchScoreSummaryData() this.searchScoreSummaryData()
this.getScoreProfitListData() this.getScoreProfitListData()
} }
......
...@@ -8,6 +8,7 @@ Page({ ...@@ -8,6 +8,7 @@ Page({
navStyle: "background-color: transparent;", navStyle: "background-color: transparent;",
showBank: false, showBank: false,
agree: false, agree: false,
btnDisabled: true,
isConfig: true, isConfig: true,
showAuthDialog: false, showAuthDialog: false,
showConfirmDialog: false, showConfirmDialog: false,
...@@ -200,6 +201,8 @@ Page({ ...@@ -200,6 +201,8 @@ Page({
} = this.data; } = this.data;
this.setData({ this.setData({
sumbitScore: score sumbitScore: score
},()=>{
this.checkBtn(score)
}) })
}, },
handleInput(e) { handleInput(e) {
...@@ -213,6 +216,13 @@ Page({ ...@@ -213,6 +216,13 @@ Page({
sumbitScore = this.priceVerify(value, score) sumbitScore = this.priceVerify(value, score)
this.setData({ this.setData({
sumbitScore: sumbitScore || '' sumbitScore: sumbitScore || ''
}, () => {
this.checkBtn(sumbitScore)
})
},
checkBtn(score) {
this.setData({
btnDisabled: Number(score) ? false : true
}) })
}, },
// 价格输入校验规则(提现积分值:最小值需大于0) // 价格输入校验规则(提现积分值:最小值需大于0)
...@@ -314,14 +324,16 @@ Page({ ...@@ -314,14 +324,16 @@ Page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { onShow() {
if (this.refresh) {
this.getBankList()
}
}, },
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide() { onHide() {
this.refresh = true;
}, },
/** /**
......
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
} }
.submit { .button {
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: 32rpx;
color: #FFFFFF; color: #FFFFFF;
...@@ -163,7 +163,19 @@ ...@@ -163,7 +163,19 @@
position: fixed; position: fixed;
bottom: 266rpx; bottom: 266rpx;
left:48rpx; left:48rpx;
&[disabled]:not([type]) {
background: #CCCED1 !important;
border-color: #CCCED1 !important;
color: #fff !important;
box-shadow: none;
&::after {
border-color: #CCCED1 !important;
}
}
} }
} }
} }
...@@ -188,3 +200,4 @@ ...@@ -188,3 +200,4 @@
font-size: 28rpx; font-size: 28rpx;
color: #1B233D; color: #1B233D;
} }
...@@ -40,7 +40,8 @@ ...@@ -40,7 +40,8 @@
<!-- 协议 --> <!-- 协议 -->
<auth-setting bind:choose="authChoose" agree="{{ agree }}" url="{{disclaimerAgreementUrl}}" /> <auth-setting bind:choose="authChoose" agree="{{ agree }}" url="{{disclaimerAgreementUrl}}" />
</view> </view>
<view class="submit" bind:tap="toSumbitData">提交</view> <!-- <view class="submit" bind:tap="toSumbitData">提交</view> -->
<button class="button text-center" disabled="{{btnDisabled}}" hover-class="btn-hover" loading="{{submitLoading}}" bind:tap="toSumbitData">提交</button>
</view> </view>
</view> </view>
......
...@@ -12,7 +12,6 @@ Page({ ...@@ -12,7 +12,6 @@ Page({
const { const {
reason reason
} = e.currentTarget.dataset } = e.currentTarget.dataset
// wx.$api.showToast(reason);
wx.showModal({ wx.showModal({
title: '', title: '',
content: String(reason), content: String(reason),
......
...@@ -152,3 +152,8 @@ page { ...@@ -152,3 +152,8 @@ page {
text-align: center; text-align: center;
} }
} }
.error-icon{
width: 24rpx;
height: 56rpx;
margin-left:4rpx;
}
\ No newline at end of file \ No newline at end of file
...@@ -18,15 +18,15 @@ ...@@ -18,15 +18,15 @@
</block> </block>
<view class="countText flex"> <view class="countText flex">
-{{i.withdrawalScore}} -{{i.withdrawalScore}}
<!-- <block wx:if="{{item.status == 4&&item.failReason}}"> <block wx:if="{{i.status == 4&&i.failReason}}">
<view class="type flex"> <view class="type flex">
<view class="failReason">{{item.failReason}} </view> <view class="failReason">{{i.failReason}} </view>
<glsx-image mode="widthFix" class="error-icon" bind:tap="toastError" data-reason="{{item.failReason}}" src="store-assistant/error-icon.png" /> <glsx-image mode="widthFix" class="error-icon" bind:tap="toastError" data-reason="{{i.failReason}}" src="/bankAccount/error-icon.png" />
</view> </view>
</block> --> </block>
<block> <block wx:else>
<view class="type"> <view class="type">
银行卡兑换 银行卡提现积分
</view> </view>
</block> </block>
......
...@@ -30,6 +30,27 @@ Page({ ...@@ -30,6 +30,27 @@ Page({
this.getGoodsList() this.getGoodsList()
}) })
}, },
simpleWanConvert(num) {
if (num === null || num === undefined || isNaN(num)) {
return '';
}
// 处理大于等于10000的数字
if (Math.abs(num) >= 10000) {
const wan = (num / 10000).toFixed(1);
// 去掉末尾的.0
return parseFloat(wan) == parseInt(wan) ? parseInt(wan) + '万' : wan + '万';
}
// 处理小于10000但大于等于1000的数字
else if (Math.abs(num) >= 1000) {
const qian = (num / 10000).toFixed(1);
return qian + '万';
}
// 小于1000的数字直接返回
else {
return num.toString();
}
},
// 获取商品数据 // 获取商品数据
getGoodsList() { getGoodsList() {
...@@ -110,7 +131,10 @@ Page({ ...@@ -110,7 +131,10 @@ Page({
}).then(res => { }).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.setData({ this.setData({
taxRateObj: res.data taxRateObj:{
...res.data,
baseIncome:this.simpleWanConvert(res.data.baseIncome)
}
}) })
} }
}).catch(err => { }).catch(err => {
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
background-size: 100%; background-size: 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/points-mall/integral/rule-bg.png'); background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/points-mall/integral/rule-bg.png');
position:relative;
.salary { .salary {
padding: 114rpx 32rpx 144rpx; padding: 114rpx 32rpx 144rpx;
...@@ -112,8 +112,17 @@ ...@@ -112,8 +112,17 @@
.income { .income {
color: #FFFFFF; color: #FFFFFF;
} }
}
}
.hypothesis {
font-weight: 400;
font-size: 24rpx;
color: #F55800;
position:absolute;
right:32rpx;
top:2rpx;
}
.accumulative { .accumulative {
margin-bottom: 48rpx; margin-bottom: 48rpx;
...@@ -204,9 +213,10 @@ ...@@ -204,9 +213,10 @@
font-size: 32rpx; font-size: 32rpx;
color: #FB8A32; color: #FB8A32;
text-align: center; text-align: center;
line-height:80rpx; line-height: 80rpx;
} }
.withdraw{
.withdraw {
background: #FB8A32; background: #FB8A32;
color: #FFFFFF; color: #FFFFFF;
} }
......
...@@ -19,7 +19,9 @@ ...@@ -19,7 +19,9 @@
<view class="salary flex_scb"> <view class="salary flex_scb">
<view class="proportion">{{taxRateObj.taxRateWithoutSalary}}%</view> <view class="proportion">{{taxRateObj.taxRateWithoutSalary}}%</view>
<view class="proportion income">{{taxRateObj.taxRateWithSalary}}%</view> <view class="proportion income">{{taxRateObj.taxRateWithSalary}}%</view>
</view> </view>
<view class="hypothesis">假设月工资{{taxRateObj.baseIncome}}</view>
<view class="accumulative flex_sc"> <view class="accumulative flex_sc">
<view class="earning have-no"> <view class="earning have-no">
<view class="money">{{taxRateObj.totalIncomeWithoutSalary}}元</view> <view class="money">{{taxRateObj.totalIncomeWithoutSalary}}元</view>
...@@ -27,7 +29,7 @@ ...@@ -27,7 +29,7 @@
</view> </view>
<view class=" earning have"> <view class=" earning have">
<view class="money">{{taxRateObj.totalIncomeWithSalary}}元</view> <view class="money">{{taxRateObj.totalIncomeWithSalary}}元</view>
<view class="text">{{taxRateObj.withdrawalScore}}*{{taxRateObj.month}}个月+累计提现+本次提现</view> <view class="text">{{taxRateObj.baseIncome}}*{{taxRateObj.month}}个月+累计提现+本次提现</view>
</view> </view>
</view> </view>
<view class="tips">以上仅为本平台评估展示,本次提现金额不会扣除,您的真实税务建议您去<text>个人所得税APP</text>查询</view> <view class="tips">以上仅为本平台评估展示,本次提现金额不会扣除,您的真实税务建议您去<text>个人所得税APP</text>查询</view>
......
/* packageMine/pages/address/detail/detail.wxss */ /* packageMine/pages/address/detail/detail.wxss */
@import '../index/index.scss'; @import '../index/index.scss';
page {
background: #F7F8FA;
}
.layout { .layout {
padding: var(--margin); padding: var(--margin);
} }
...@@ -93,6 +95,7 @@ ...@@ -93,6 +95,7 @@
padding-top: 26rpx; padding-top: 26rpx;
} }
.user-info .textarea .value{ .user-info .textarea .value{
padding-top: 4rpx;
height: 120rpx; height: 120rpx;
} }
.default { .default {
......
...@@ -79,6 +79,19 @@ ...@@ -79,6 +79,19 @@
.address-item .bottom .choose icon { .address-item .bottom .choose icon {
margin-right: 20rpx; margin-right: 20rpx;
} }
.nothing {
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
color: #7A8299;
padding-top: 40rpx;
.icon {
width: 320rpx;
height: 300rpx;
margin-bottom: 20rpx;
}
}
.btn-box { .btn-box {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
......
<view class="layout"> <view class="layout">
<block wx:if="{{addressList.length}}">
<block wx:for="{{addressList}}" wx:key="index"> <block wx:for="{{addressList}}" wx:key="index">
<view class="address-item" catchtap="chooseThis" data-item="{{item}}"> <view class="address-item" catchtap="chooseThis" data-item="{{item}}">
<view class="top"> <view class="top">
...@@ -28,7 +29,15 @@ ...@@ -28,7 +29,15 @@
</view> </view>
</view> </view>
</block> </block>
</block>
<block wx:else>
<view class="nothing">
<view class="icon">
<glsx-image webp src="/cart/nothing-icon.png" />
</view>
暂无收货地址
</view>
</block>
</view> </view>
<view class="btn-box isFullSucreen"> <view class="btn-box isFullSucreen">
<view class="btn text-center" bindtap="jump">新增收货地址</view> <view class="btn text-center" bindtap="jump">新增收货地址</view>
......
...@@ -46,7 +46,7 @@ Page({ ...@@ -46,7 +46,7 @@ Page({
// }) // })
}, },
goAgreement() { goAgreement() {
wx.p.router.jumpH5('https://img01.glsx.com.cn/weapp/resource/saas/scrm/html/hmd/privacy.html', true) wx.p.router.jumpH5('https://img01.glsx.com.cn/weapp/resource/miniprogram/points-mall/html/privacy.html', true)
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
......
...@@ -43,7 +43,7 @@ Page({ ...@@ -43,7 +43,7 @@ Page({
const { const {
name name
} = e.currentTarget.dataset } = e.currentTarget.dataset
wx.p.router.jumpH5(`https://img01.glsx.com.cn/weapp/resource/saas/scrm/html/hmd/${name}.html`, true) wx.p.router.jumpH5(`https://img01.glsx.com.cn/weapp/resource/miniprogram/points-mall/html/${name}.html`, true)
}, },
async onLoad() { async onLoad() {
wx.p.wxApi.showLoading() wx.p.wxApi.showLoading()
...@@ -143,6 +143,12 @@ Page({ ...@@ -143,6 +143,12 @@ Page({
if (!captcha) throw '请输入验证码' if (!captcha) throw '请输入验证码'
if (!phoneRex.test(mobile)) throw '请输入正确的手机号' if (!phoneRex.test(mobile)) throw '请输入正确的手机号'
wx.p.wxApi.showLoading() wx.p.wxApi.showLoading()
if (!mobile || !captcha || !this.sessionId) {
wx.p.sentry.reportParamError(
'手机号验证码登录异常: mobile, captcha, sessionId',
{mobile, captcha, sessionId: this.sessionId}
)
}
const { const {
code, code,
data, data,
...@@ -177,6 +183,13 @@ Page({ ...@@ -177,6 +183,13 @@ Page({
iv: detail.iv, iv: detail.iv,
sessionId: this.sessionId sessionId: this.sessionId
} }
let { encryptedData, iv, sessionId } = obj
if (!encryptedData || !iv || !sessionId) {
wx.p.sentry.reportParamError(
'授权手机号登录异常: encryptedData, iv, sessionId',
obj
)
}
const { const {
code, code,
data, data,
...@@ -202,6 +215,12 @@ Page({ ...@@ -202,6 +215,12 @@ Page({
getSource() { getSource() {
let { loginData } = this.data let { loginData } = this.data
if (!loginData.phone) {
wx.p.sentry.reportParamError(
'获取积分渠道来源异常:staffPhone ',
loginData
)
}
commonApi.getPointsSourceList({ commonApi.getPointsSourceList({
staffPhone: loginData?.phone staffPhone: loginData?.phone
}).then(res => { }).then(res => {
...@@ -227,6 +246,12 @@ Page({ ...@@ -227,6 +246,12 @@ Page({
this.getMerchantList(source, loginData) this.getMerchantList(source, loginData)
}, },
getMerchantList(source, loginData) { getMerchantList(source, loginData) {
if (!loginData.phone || !source) {
wx.p.sentry.reportParamError(
'获取门店列表异常:staffPhone, channelSource',
{...loginData, channelSource: source}
)
}
commonApi.getMerchantData({staffPhone: loginData?.phone, channelSource: source}).then(res => { commonApi.getMerchantData({staffPhone: loginData?.phone, channelSource: source}).then(res => {
let { code, data, message } = res let { code, data, message } = res
if (code == 0) { if (code == 0) {
...@@ -237,6 +262,12 @@ Page({ ...@@ -237,6 +262,12 @@ Page({
if (data?.length == 1) { // 仅有一个门店时跳过选择门店页面 直接登录成功 if (data?.length == 1) { // 仅有一个门店时跳过选择门店页面 直接登录成功
const { merchantId, merchantName } = data[0] || {} const { merchantId, merchantName } = data[0] || {}
wx.p.isLogin = true; wx.p.isLogin = true;
if (!source || !merchantId || !loginData.phone) {
wx.p.sentry.reportParamError(
'门店选择异常:staffPhone, channelSource',
{...loginData, channelSource: source, merchantId, merchantName}
)
}
wx.p.storage.set('userInfo', { wx.p.storage.set('userInfo', {
...loginData, ...loginData,
channelSource: source, channelSource: source,
......
...@@ -6,357 +6,6 @@ Page({ ...@@ -6,357 +6,6 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
"merchantList" : [ {
"accountName" : "18372203315",
"merchantId" : 44212483,
"accountLevel" : 4,
"userType" : 2,
"phone" : "18372203315",
"name" : "ymt",
"duty" : null,
"merchantName" : "自动化园区店01",
"channelType" : 1,
"isSuper" : false,
"uuid" : "a4ab56c695c0455fa49c9a7c5c33e789",
"createdDate" : "2024-08-06 11:31:36",
"bussinessId" : 12518,
"weChatOpenId" : null,
"weChatUnionId" : null,
"weChatNickName" : null,
"weChatAvatarUrl" : null,
"weChatAppId" : null,
"weChatPhone" : "18372203315",
"staffLabel" : "3,0,2,5",
"department" : null,
"permissionMerchantIds" : null,
"subLoginUser" : null,
"merchantAccountList" : [ "6" ]
}, {
"accountName" : "18372203315",
"merchantId" : 44209813,
"accountLevel" : 1,
"userType" : 2,
"phone" : "18372203315",
"name" : "0422篱笆",
"duty" : null,
"merchantName" : "广联数科(内部使用)",
"channelType" : 1,
"isSuper" : false,
"uuid" : "5787ecfc61a54480a8baa2c391c0eca7",
"createdDate" : "2024-02-23 16:44:10",
"bussinessId" : 7938,
"weChatOpenId" : null,
"weChatUnionId" : null,
"weChatNickName" : null,
"weChatAvatarUrl" : null,
"weChatAppId" : null,
"weChatPhone" : "18372203315",
"staffLabel" : "0,1,4,3,2,5,6",
"department" : 0,
"permissionMerchantIds" : null,
"subLoginUser" : null,
"merchantAccountList" : [ "6", "7" ]
}, {
"accountName" : "18372203315",
"merchantId" : 44210823,
"accountLevel" : 4,
"userType" : 2,
"phone" : "18372203315",
"name" : "0914测试ymt",
"duty" : null,
"merchantName" : "腾势",
"channelType" : 2,
"isSuper" : false,
"uuid" : "2b247311169d4a728312a4a799cf874e",
"createdDate" : "2024-09-14 17:06:37",
"bussinessId" : 13287,
"weChatOpenId" : null,
"weChatUnionId" : null,
"weChatNickName" : null,
"weChatAvatarUrl" : null,
"weChatAppId" : null,
"weChatPhone" : "18372203315",
"staffLabel" : "6,0",
"department" : null,
"permissionMerchantIds" : null,
"subLoginUser" : null,
"merchantAccountList" : [ "2" ]
}, {
"accountName" : "18372203315",
"merchantId" : 44212571,
"accountLevel" : 4,
"userType" : 2,
"phone" : "18372203315",
"name" : "尹梦甜",
"duty" : null,
"merchantName" : "test2204",
"channelType" : 1,
"isSuper" : false,
"uuid" : "95f59c8460af43d4a22b86a17fffa860",
"createdDate" : "2024-02-27 10:35:26",
"bussinessId" : 7939,
"weChatOpenId" : null,
"weChatUnionId" : null,
"weChatNickName" : null,
"weChatAvatarUrl" : null,
"weChatAppId" : null,
"weChatPhone" : "18372203315",
"staffLabel" : "0,3,4",
"department" : null,
"permissionMerchantIds" : null,
"subLoginUser" : null,
"merchantAccountList" : [ "6" ]
}, {
"accountName" : "18372203315",
"merchantId" : 44218105,
"accountLevel" : 4,
"userType" : 2,
"phone" : "18372203315",
"name" : "ymt",
"duty" : null,
"merchantName" : "第一个鸿蒙4S店",
"channelType" : 1,
"isSuper" : false,
"uuid" : "d79d9c0f2ecd4b02b9460137fee768f2",
"createdDate" : "2025-04-21 14:52:13",
"bussinessId" : 13686,
"weChatOpenId" : null,
"weChatUnionId" : null,
"weChatNickName" : null,
"weChatAvatarUrl" : null,
"weChatAppId" : null,
"weChatPhone" : "18372203315",
"staffLabel" : "1,6,0",
"department" : null,
"permissionMerchantIds" : null,
"subLoginUser" : null,
"merchantAccountList" : [ "2", "2" ]
}, {
"accountName" : "18372203315",
"merchantId" : 44212540,
"accountLevel" : 4,
"userType" : 2,
"phone" : "18372203315",
"name" : "0523ymt",
"duty" : null,
"merchantName" : "xiejq园区店",
"channelType" : 1,
"isSuper" : false,
"uuid" : "2ca629aa379244a787536a55259a7126",
"createdDate" : "2024-05-23 16:38:17",
"bussinessId" : 10548,
"weChatOpenId" : null,
"weChatUnionId" : null,
"weChatNickName" : null,
"weChatAvatarUrl" : null,
"weChatAppId" : null,
"weChatPhone" : "18372203315",
"staffLabel" : "1,4,3,0,2",
"department" : null,
"permissionMerchantIds" : null,
"subLoginUser" : null,
"merchantAccountList" : [ "6" ]
}, {
"accountName" : "18372203315",
"merchantId" : 44218088,
"accountLevel" : 4,
"userType" : 2,
"phone" : "18372203315",
"name" : "草稿门店",
"duty" : null,
"merchantName" : "ymt门店001",
"channelType" : 1,
"isSuper" : false,
"uuid" : "8a36fdda9cdb41dbb251d85a1af42a5e",
"createdDate" : "2024-07-18 14:09:01",
"bussinessId" : 12264,
"weChatOpenId" : "ooPYo49bo4-UlPdOPY9v11KmUJRA",
"weChatUnionId" : "oV6hWt2o3sH9x5-wjiFgYgvaODOE",
"weChatNickName" : "篱笆泥巴",
"weChatAvatarUrl" : "https://thirdwx.qlogo.cn/mmopen/vi_32/PiajxSqBRaEIXAllSgFVOVwLdyD3icNH9ewwu6NtBXJOFXB8gPLlDBQHM55x8PNSB9911eyZIeZ6X1ibEZia4hsib6RBMtZMF9PiccdH7u6b1hQYicia6icc7yKqXmQ/132",
"weChatAppId" : "wxe10067a63c1856ac",
"weChatPhone" : "18372203315",
"staffLabel" : "1",
"department" : 0,
"permissionMerchantIds" : null,
"subLoginUser" : null,
"merchantAccountList" : [ "2" ]
}, {
"accountName" : "18372203315",
"merchantId" : 44210895,
"accountLevel" : 4,
"userType" : 2,
"phone" : "18372203315",
"name" : "尹梦甜",
"duty" : null,
"merchantName" : "波波的单店门店",
"channelType" : 1,
"isSuper" : false,
"uuid" : "397fa2a027bf409d988039608d605082",
"createdDate" : "2023-09-18 10:19:57",
"bussinessId" : 7833,
"weChatOpenId" : "ooPYo49bo4-UlPdOPY9v11KmUJRA",
"weChatUnionId" : "oV6hWt2o3sH9x5-wjiFgYgvaODOE",
"weChatNickName" : "篱笆泥巴",
"weChatAvatarUrl" : "https://thirdwx.qlogo.cn/mmopen/vi_32/78vDM2vOOAhc6CH3Z9QzhBiatQGJE4SQLxrNWXon89DwELFkfGGlldj8eM9L6msSLcR1pAMD6XV6jRhJPC9OiblA/132",
"weChatAppId" : "wxe10067a63c1856ac",
"weChatPhone" : "18372203315",
"staffLabel" : "3,1,4,0,2,6,5",
"department" : 1,
"permissionMerchantIds" : null,
"subLoginUser" : null,
"merchantAccountList" : [ "2" ]
}, {
"accountName" : "18372203315",
"merchantId" : 44217969,
"accountLevel" : 4,
"userType" : 2,
"phone" : "18372203315",
"name" : "ymt-xiejq4s店10",
"duty" : null,
"merchantName" : "xiejq4s店-10",
"channelType" : 1,
"isSuper" : false,
"uuid" : "4aaaa49ea16b443c9f147bce099ba0f7",
"createdDate" : "2025-04-21 16:06:28",
"bussinessId" : 13689,
"weChatOpenId" : null,
"weChatUnionId" : null,
"weChatNickName" : null,
"weChatAvatarUrl" : null,
"weChatAppId" : null,
"weChatPhone" : "18372203315",
"staffLabel" : "6,1,0",
"department" : null,
"permissionMerchantIds" : null,
"subLoginUser" : null,
"merchantAccountList" : [ "2" ]
}, {
"accountName" : "18372203315",
"merchantId" : 44218276,
"accountLevel" : 1,
"userType" : 2,
"phone" : "18372203315",
"name" : "ymt",
"duty" : null,
"merchantName" : "ymt门店003(享界)",
"channelType" : 1,
"isSuper" : false,
"uuid" : "3d0f933e73df46a4bf15ac1506c6910b",
"createdDate" : "2025-04-24 11:07:19",
"bussinessId" : 13691,
"weChatOpenId" : null,
"weChatUnionId" : null,
"weChatNickName" : null,
"weChatAvatarUrl" : null,
"weChatAppId" : null,
"weChatPhone" : "18372203315",
"staffLabel" : "1,6,0",
"department" : null,
"permissionMerchantIds" : null,
"subLoginUser" : null,
"merchantAccountList" : [ "2" ]
}, {
"accountName" : "18372203315",
"merchantId" : 44211560,
"accountLevel" : 4,
"userType" : 2,
"phone" : "18372203315",
"name" : "0528ymt",
"duty" : null,
"merchantName" : "经营模式园区店test",
"channelType" : 1,
"isSuper" : false,
"uuid" : "883443ae75414397a0dac05aac215cfe",
"createdDate" : "2024-05-28 13:59:24",
"bussinessId" : 10560,
"weChatOpenId" : null,
"weChatUnionId" : null,
"weChatNickName" : null,
"weChatAvatarUrl" : null,
"weChatAppId" : null,
"weChatPhone" : "18372203315",
"staffLabel" : "0",
"department" : null,
"permissionMerchantIds" : null,
"subLoginUser" : null,
"merchantAccountList" : [ "6" ]
}, {
"accountName" : "18372203315",
"merchantId" : 44209480,
"accountLevel" : 4,
"userType" : 2,
"phone" : "18372203315",
"name" : "ymt测试1号",
"duty" : null,
"merchantName" : "测试园区店",
"channelType" : 2,
"isSuper" : false,
"uuid" : "caf2c1d54fdb43dcbe5c7f55912ec320",
"createdDate" : "2023-12-07 10:29:46",
"bussinessId" : 7903,
"weChatOpenId" : null,
"weChatUnionId" : null,
"weChatNickName" : null,
"weChatAvatarUrl" : null,
"weChatAppId" : null,
"weChatPhone" : "18372203315",
"staffLabel" : "4,3",
"department" : null,
"permissionMerchantIds" : null,
"subLoginUser" : null,
"merchantAccountList" : [ "6" ]
}, {
"accountName" : "18372203315",
"merchantId" : 44211025,
"accountLevel" : 4,
"userType" : 2,
"phone" : "18372203315",
"name" : "尹梦甜",
"duty" : null,
"merchantName" : "流程测试园区门店",
"channelType" : 2,
"isSuper" : false,
"uuid" : "6825aaebf4f04f6a8a4c3d5a9b26c914",
"createdDate" : "2023-09-19 18:25:40",
"bussinessId" : 7838,
"weChatOpenId" : null,
"weChatUnionId" : null,
"weChatNickName" : null,
"weChatAvatarUrl" : null,
"weChatAppId" : null,
"weChatPhone" : "18372203315",
"staffLabel" : "1,4,3,0,2",
"department" : 0,
"permissionMerchantIds" : null,
"subLoginUser" : null,
"merchantAccountList" : [ "6" ]
}, {
"accountName" : "18372203315",
"merchantId" : 44212556,
"accountLevel" : 4,
"userType" : 2,
"phone" : "18372203315",
"name" : "ymt测试1号",
"duty" : null,
"merchantName" : "0918测试1.1.2-门店",
"channelType" : 1,
"isSuper" : false,
"uuid" : "d4b283988d104d8e814a167539886248",
"createdDate" : "2023-09-20 15:22:44",
"bussinessId" : 7840,
"weChatOpenId" : "ooPYo49bo4-UlPdOPY9v11KmUJRA",
"weChatUnionId" : "oV6hWt2o3sH9x5-wjiFgYgvaODOE",
"weChatNickName" : "篱笆泥巴",
"weChatAvatarUrl" : "https://thirdwx.qlogo.cn/mmopen/vi_32/78vDM2vOOAhc6CH3Z9QzhBiatQGJE4SQLxrNWXon89DwELFkfGGlldj8eM9L6msSLcR1pAMD6XV6jRhJPC9OiblA/132",
"weChatAppId" : "wxe10067a63c1856ac",
"weChatPhone" : "18372203315",
"staffLabel" : "3,1,4,0,2,6",
"department" : 1,
"permissionMerchantIds" : null,
"subLoginUser" : null,
"merchantAccountList" : [ "2" ]
} ],
flag: true flag: true
}, },
...@@ -388,6 +37,12 @@ Page({ ...@@ -388,6 +37,12 @@ Page({
return return
} }
wx.p.isLogin = true wx.p.isLogin = true
if (!paramsData.phone || !paramsData.channelSource) {
wx.p.sentry.reportParamError(
'门店选择异常:phone, channelSource',
paramsData
)
}
wx.p.storage.set('userInfo', { ...paramsData.loginData, merchantId: obj?.merchantId, merchantName: obj?.merchantName }) wx.p.storage.set('userInfo', { ...paramsData.loginData, merchantId: obj?.merchantId, merchantName: obj?.merchantName })
wx.p.router.reLaunch('/pages/tab/index/index', {loginPageFlag: paramsData?.loginPageFlag}) wx.p.router.reLaunch('/pages/tab/index/index', {loginPageFlag: paramsData?.loginPageFlag})
}, },
......
...@@ -25,15 +25,19 @@ Page({ ...@@ -25,15 +25,19 @@ Page({
this.login(); this.login();
}, },
loginOut() { loginOut() {
console.log(1111)
wx.p.storage.rm('sessionId') wx.p.storage.rm('sessionId')
wx.p.isLogin = false wx.p.isLogin = false
wx.p.storage.rm('userInfo') wx.p.storage.rm('userInfo')
wx.p.router.reLaunch('/pages/Login/Login') wx.p.router.reLaunch('/pages/Login/Login')
}, },
async login(options = {}) { async login(options = {}) {
console.log(777)
if (!wx.p.storage.get('sessionId')) return this.loginOut() if (!wx.p.storage.get('sessionId')) return this.loginOut()
try { try {
console.log('try')
const { code, data, message } = await commonApi.getLoginInfo(); const { code, data, message } = await commonApi.getLoginInfo();
console.log(code,'code')
if (code == 0) { if (code == 0) {
let userInfo = wx.p.storage.get('userInfo') let userInfo = wx.p.storage.get('userInfo')
if (userInfo && Object.keys(userInfo)?.length) { if (userInfo && Object.keys(userInfo)?.length) {
...@@ -51,6 +55,7 @@ Page({ ...@@ -51,6 +55,7 @@ Page({
return this.jumpPage(options.url); return this.jumpPage(options.url);
} }
} catch (error) { } catch (error) {
console.log(90900)
wx.p.isLogin = false; //请求失败默认未登录 wx.p.isLogin = false; //请求失败默认未登录
console.log(error); console.log(error);
wx.p.wxApi.showToast(String(error)); wx.p.wxApi.showToast(String(error));
......
...@@ -33,15 +33,12 @@ page { ...@@ -33,15 +33,12 @@ page {
.item-box { .item-box {
margin-bottom: 24rpx; margin-bottom: 24rpx;
background: #FFFFFF; background: #FFFFFF;
border-radius: 8rpx; border-radius: 24rpx;
padding-left: 24rpx; padding-left: 24rpx;
} }
.item-box.disabled { .item-box.disabled {
opacity: .7; opacity: .7;
} }
.item-box .list {
border-top: 2rpx solid #EFF0F2;
}
.box .item { .box .item {
width: 100%; width: 100%;
height: 208rpx; height: 208rpx;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100%; height: 100%;
padding: 24rpx; padding: 16rpx 24rpx 0;
} }
.fixed-tabs, .dynamic-tabs { .fixed-tabs, .dynamic-tabs {
...@@ -40,10 +40,6 @@ ...@@ -40,10 +40,6 @@
border-radius: 6rpx; border-radius: 6rpx;
} }
.dynamic-tabs {
margin-top: 10rpx;
}
.dynamic-tabs .tab-item{ .dynamic-tabs .tab-item{
display: inline-block; display: inline-block;
padding: 10rpx 24rpx; padding: 10rpx 24rpx;
......
...@@ -59,6 +59,8 @@ ...@@ -59,6 +59,8 @@
} }
.arrow-icon { .arrow-icon {
margin-left: 10rpx; margin-left: 10rpx;
margin-bottom: 6rpx;
filter: drop-shadow(0.5px 0 0 #F4776D) drop-shadow(0 0.5px 0 #F4776D);
} }
} }
...@@ -103,20 +105,28 @@ ...@@ -103,20 +105,28 @@
flex-shrink: 0; flex-shrink: 0;
width: 80rpx; width: 80rpx;
height: 44rpx; height: 44rpx;
background: #FFF0ED;
border-radius: 12rpx;
margin-left: 8rpx; margin-left: 8rpx;
position: relative; display: flex;
align-items: center;
box-sizing: border-box;
justify-content: space-between;
padding-left: 10rpx;
text { text {
position: absolute;
top: 6rpx;
left: 10rpx;
font-size: 20rpx; font-size: 20rpx;
color: #F75454; color: #F75454;
font-weight: 500; font-weight: 500;
} }
.arrow-icon {
margin: 0 6rpx 6rpx;
filter: drop-shadow(0.5px 0 0 #F4776D) drop-shadow(0 0.5px 0 #F4776D);
}
} }
} }
.special-sale-box { .special-sale-box {
padding: 0 20rpx; padding: 0 20rpx;
background: #F8F9FC;
.item { .item {
width: 100%; width: 100%;
height: 340rpx; height: 340rpx;
...@@ -157,6 +167,7 @@ ...@@ -157,6 +167,7 @@
} }
.goods-content { .goods-content {
box-sizing: border-box; box-sizing: border-box;
background: #F8F9FC;
.goods-box-title { .goods-box-title {
position: sticky; position: sticky;
top: 0; top: 0;
...@@ -173,6 +184,7 @@ ...@@ -173,6 +184,7 @@
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
overflow: hidden; overflow: hidden;
margin-top: 8rpx;
.nothing { .nothing {
text-align: center; text-align: center;
color: #7A8299; color: #7A8299;
...@@ -193,5 +205,4 @@ ...@@ -193,5 +205,4 @@
.sticky { .sticky {
background: #F8F9FC; background: #F8F9FC;
padding: 10rpx 0;
} }
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<view class="points-num" bind:tap="toIntegral">{{walletObj.currentScore || '-'}}</view> <view class="points-num" bind:tap="toIntegral">{{walletObj.currentScore || '-'}}</view>
</view> </view>
<view class="arrow-icon"> <view class="arrow-icon">
<mp-icon icon="arrow" color="#F4776D" size="7"></mp-icon> <mp-icon icon="arrow" color="#F4776D" size="8"></mp-icon>
</view> </view>
</view> </view>
</view> </view>
...@@ -29,8 +29,8 @@ ...@@ -29,8 +29,8 @@
<view class="text" animation="{{animationData}}">郑重提醒:根据国家税务总局2025第16号公告,提现收入也将纳入个人累计收入计算税额,以上政策将于 10 月 1 日正式实施。</view> <view class="text" animation="{{animationData}}">郑重提醒:根据国家税务总局2025第16号公告,提现收入也将纳入个人累计收入计算税额,以上政策将于 10 月 1 日正式实施。</view>
</view> </view>
<view class="detail-btn" bindtap="policyDetail"> <view class="detail-btn" bindtap="policyDetail">
<glsx-image src="/index/notice-arrow-right.png"></glsx-image>
<text>详情</text> <text>详情</text>
<mp-icon icon="arrow" class="arrow-icon" color="#F4776D" size="8"></mp-icon>
</view> </view>
</view> </view>
<!-- 专场 --> <!-- 专场 -->
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
export const authPages = [ export const authPages = [
'/packageMine/', '/packageMine/',
'/pages/mine/', '/pages/mine/',
'/packageIndex/' '/packageIndex/',
// '/packageIndex/pages/integral/index/index' //积分 '/packageIndex/pages/integral/index/index' //积分
]; ];
// 不需要拦截的页面路径配置 // 不需要拦截的页面路径配置
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!