Commit 07e6995c by wangzhihui

我的页面

1 parent b466f6fb
......@@ -59,7 +59,8 @@
"pages/goodsDetail/index",
"pages/integral/withdrawalRules/withdrawalRules",
"pages/confirmOrder/index",
"pages/exchangeSuccess/index"
"pages/exchangeSuccess/index",
"pages/integral/withdrawalDetail/withdrawalDetail"
]
},
{
......
......@@ -31,7 +31,7 @@ export const ORDER_LIST = [
code: 4,
},
{
text: "退货/售后",
text: "售后",
image: "aftermarket",
code: 5,
},
......
<!--packageIndex/pages/integral/index/noOpen/index.wxml-->
<!--packageIndex/pages/integral/index/index.wxml-->
<!--积分中心 -->
<view class="integral-have-no-container">
<!-- 导航栏 -->
......
......@@ -24,6 +24,12 @@ Component({
* 组件的方法列表
*/
methods: {
handleDetail(e) {
let {id} = e.currentTarget.dataset
wx.p.router.go(
'/packageIndex/pages/integral/withdrawalDetail/withdrawalDetail',
{id}
);
},
}
})
\ No newline at end of file
Page({
/**
* 页面的初始数据
*/
data: {
detailInfo: {
"id": 2104706,
"staffName": "姚孝章",
"staffUuid": "e3db30afe9ac4a1f90a7328e5b7d914d",
"staffPhone": "13650810420",
"rewardScore": 29910.12,
"businessScene": null,
"merchantName": "xiejq4S店-16",
"activityName": null,
"channel": null,
"missionName": null,
"rewardTime": 1753432085000,
"type": 0,
"infoName": "积分收益",
"updatedTime": "2025-07-25 16:27:45",
"operator": null,
"remark": null,
"relationRemark": null,
"relateId": null,
"activityId": null,
"staffId": 16550,
"missionId": null,
"isWithdrawal": 3,
"exchangeStatus": null,
"exchangeTime": null,
"exchangeStaff": null,
"source": 1,
"motivationId": 2461,
"currentTotalScore": 20932.19,
"finalTotalScore": 50842.31,
"withdrawalId": null,
"customerName": "1386565649494949",
"customerPhone": "13836868686",
"orderCode": "250725162718883",
"goodsName": "11111,11111,11111,广联单帖侧窗,广联前挡,第三方前档,第三方中天窗,太阳膜精品满数据多规格,太阳膜精品满数据多规格,太阳膜精品满数据多规格,太阳膜精品满数据多规格,太阳膜A类,太阳膜B类,太阳膜C类,太阳膜D类,太阳膜F类,太阳膜H类,验证系列1,验证系列2,测试单品1,多规格太阳膜商品,改色膜测试",
"failType": null,
"failTime": null,
"failRemark": null,
"withdrawalTime": null,
"staffSource": 0,
"refundType": null,
"orderMoney": 300906
}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
console.log(options)
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
wx.p.router.getRouterParams().then(params => {
wx.p.api.withdrawalApi.getScoreDetail({
id: params.id
}).then(res => {
this.setData({
detailInfo: res
})
}).catch(err=>{
wx.p.wxApi.showToast(String(JSON.stringify(error)))
})
})
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
},
})
\ No newline at end of file
{
"usingComponents": {},
"navigationBarTitleText":"积分详情"
}
\ No newline at end of file
.container {
padding: 20rpx 32rpx;
background: #F7F8FA;
.box {
background: #FFFFFF;
border-radius: 16rpx;
padding: 32rpx;
margin-bottom: 20rpx;
.title {
font-weight: 500;
font-size: 32rpx;
color: #333333;
line-height: 44rpx;
margin-bottom: 16rpx;
}
.col {
font-weight: 400;
font-size: 28rpx;
margin-top: 16rpx;
display: flex;
:nth-child(1) {
color: #999999;
width: 180rpx;
text-align: left;
margin-right: 40rpx;
}
:nth-child(2) {
color: #333333;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: calc(100% - 180rpx);
}
.remark {
white-space: normal;
}
}
.border-top{
border-top:1px solid #F2F2F2;
padding-top:16rpx;
}
}
}
\ No newline at end of file
<!--packageStoreAssistant/packageMine/pages/withdrawalDetail/withdrawalDetail.wxml-->
<view class="container">
<view class="box">
<view class="title">关联订单信息</view>
<view class="col">
<view>订单编号</view>
<view>{{detailInfo.orderCode?detailInfo.orderCode:'-'}}</view>
</view>
<view class="col">
<view>积分变动时间</view>
<view>{{detailInfo.updatedTime?detailInfo.updatedTime:'-'}}</view>
</view>
<view class="col">
<view>客户姓名</view>
<view>{{detailInfo.customerName?detailInfo.customerName:'-'}}</view>
</view>
<view class="col">
<view>商品名称</view>
<view>{{detailInfo.goodsName?detailInfo.goodsName:'-'}}</view>
</view>
<view class="col">
<view>总价</view>
<view>{{detailInfo.orderMoney?'¥'+detailInfo.orderMoney:'0'}}</view>
</view>
<block wx:if="{{detailInfo.infoName=='退款抵扣'}}">
<view class="col border-top ">
<view>退款类型</view>
<view>{{detailInfo.refundType?detailInfo.refundType==1?'全部退款':'部分退款':'-'}}</view>
</view>
<view class="col">
<view>退回积分</view>
<view>{{detailInfo.rewardScore?detailInfo.rewardScore:'0'}}</view>
</view>
</block>
</view>
<view class="box" wx:if="{{detailInfo.infoName=='手动抵扣'||detailInfo.infoName=='撤销抵扣'}}">
<view class="title">操作信息</view>
<view class="col">
<view>操作人</view>
<view>{{detailInfo.operator?detailInfo.operator:'-'}}</view>
</view>
<view class="col">
<view>操作时间</view>
<view>{{detailInfo.updatedTime?detailInfo.updatedTime:'-'}}</view>
</view>
<block wx:if="{{detailInfo.infoName==='撤销抵扣'}}">
<view class="col">
<view>备注</view>
<view class="remark">{{detailInfo.relationRemark?detailInfo.relationRemark:'-'}}</view>
</view>
<view class="col">
<view>撤销原因</view>
<view class="remark">{{detailInfo.remark?detailInfo.remark:'-'}}</view>
</view>
</block>
<block wx:if="{{detailInfo.infoName==='手动抵扣'}}">
<view class="col">
<view>备注</view>
<view class="remark">{{detailInfo.remark?detailInfo.remark:'-'}}</view>
</view>
</block>
</view>
</view>
\ No newline at end of file
......@@ -3,7 +3,7 @@
<view class="topCtn" bindtap="goAgreement">
<view class="text">隐私政策</view>
<view>
<glsx-image webp mode="widthFix" class="setting-icon" src="home/setting-icon.png"></glsx-image>
<glsx-image webp mode="widthFix" class="setting-icon" src="/mine/setting-icon.png"></glsx-image>
</view>
</view>
<view class="default-btn x-center" bindtap="logout">退出登录</view>
......
......@@ -2,18 +2,18 @@
<view class="order-box box">
<view class="title">
我的订单
<view class="edit" bindtap="goOrder">
<view class="edit flex_sc" bindtap="goOrder">
全部
<view class="arrow">
<glsx-image webp src="mine/right.png"></glsx-image>
</view>
<mp-icon icon="arrow" class="arrow" color="#858A94" size="{{10}}"></mp-icon>
</view>
</view>
<view class="btnBox">
<view class="independentBox" wx:for="{{orderList}}" wx:key="index">
<view bindtap="goOrder" data-code="{{item.code}}">
<view class="order-img">
<glsx-image webp src="mine/{{item.image}}.png"></glsx-image>
<glsx-image webp src="/mine/{{item.image}}.png"></glsx-image>
</view>
<text class="order-content">{{item.text}}</text>
<text class="order-number" wx:if="{{orderNumberList[index] != 0 && orderNumberList}}">{{orderNumberList[index]}}</text>
......
......@@ -25,9 +25,7 @@
align-items: center;
}
.order-box .title .edit .arrow {
width: 20rpx;
height: 20rpx;
transform: translateY(1rpx);
margin-left:6rpx;
}
.order-box .btnBox {
display: flex;
......@@ -65,4 +63,8 @@
position: absolute;
right: 0;
top: 30rpx;
}
.flex_sc {
display: flex;
align-items: center;
}
\ No newline at end of file
// pages/tab/mine/index.js
import { ToolList } from "~/constants/index";
import {
ToolList
} from "~/constants/index";
Page({
/**
* 页面的初始数据
*/
data: {
navStyle: "background-color: transparent;",
scoreSummary: {
currentScore: 34532233.00, //当前积分
bankCardSize: 4,
totalGoodExchangeScore: 100, //累计兑换积分
totalRewardScore: 200, //累计收益积分
totalWithdrawalScore: 400, //累计提现积分
},
toolList: ToolList,
guideList: [{
key: 'currentScore',
leftIcon: 'logo'
}, {
key: 'bankCardSize',
text: '银行卡'
}
],
},
/**
......@@ -13,14 +32,55 @@ Page({
*/
onLoad(options) {
let userInfo = wx.p.storage.get('userInfo')
this.setData({userInfo})
this.setData({
userInfo
})
this.searchScoreSummaryData()
// this.getMemberCardData();
},
searchScoreSummaryData() {
const {
staffPhone,
channelSource
} = wx.p.storage.get('userInfo');
wx.p.api.withdrawalApi.searchScoreSummary({
staffPhone,
channelSource //1.阳光激励 2.续保用户 3.管理层
}).then(res => {
if (res.code == 0) {
this.setData({
scoreSummary: res.data,
staffBankFlag: !res.data.bankCardSize
})
}
}).catch((err) => {
wx.p.wxApi.showToast(JSON.stringify(err))
})
},
go(e) {
console.log(e)
const thisPage = wx.p.router.getPageInstance()
let {
index
} = e.currentTarget.dataset
let arr = [
() => {
wx.p.router.go('/packageIndex/pages/integral/index/index')
},
() => {
wx.p.router.go('/packageIndex/pages/bankAccount/list/list')
}
]
arr[index]()
},
navbarReady(e) {
let { height } = e.detail;
let {
height
} = e.detail;
this.setData({
user_box_style: `padding-top:${height + 20}px`,
});
navHeight: height
})
},
login() {
wx.p.router.go("/pages/Login/Login");
......@@ -29,7 +89,9 @@ Page({
wx.p.router.go("/packageMine/pages/setting/index");
},
jump(e) {
const { url } = e.currentTarget.dataset;
const {
url
} = e.currentTarget.dataset;
wx.p.router.go(url);
},
async getOrderNumberList() {
......@@ -88,4 +150,4 @@ Page({
this.getOrderNumberList();
this.toCheckMember();
},
});
});
\ No newline at end of file
......@@ -3,9 +3,66 @@ page {
background-color: #F9F7F7;
}
.navigation {
width: 750rpx;
height: 494rpx;
background-size: 100%;
background-repeat: no-repeat;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/points-mall/login/login-bg.png');
}
.layout {
padding-bottom: 60rpx;
position: relative;
.integral-wrap {
height: 174rpx;
margin: 24rpx 20rpx 20rpx;
padding: 24rpx 32rpx 26rpx;
box-sizing: border-box;
background-size: 100%;
background-repeat: no-repeat;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/points-mall/integral/property.png');
.text {
font-weight: 400;
font-size: 26rpx;
color: #3F444D;
margin-bottom: 24rpx;
}
}
.guide-wrap {
.guide {
height: 64rpx;
background-image: linear-gradient(270deg, #ffffff99 0%, #FFFFFF 100%);
border-radius: 32rpx;
padding: 14rpx 28rpx;
box-sizing: border-box;
margin-right: 24rpx;
.left {
width: 34rpx;
height: 33.3rpx;
margin-right: 14rpx;
}
.value {
font-weight: 600;
font-size: 40rpx;
color: #B97046;
}
.name {
font-weight: 400;
font-size: 24rpx;
color: #666666;
line-height: 36rpx;
margin-left:6rpx;
}
}
}
}
.vip-box {
......@@ -29,12 +86,7 @@ page {
}
}
.navigation-bar {
position: fixed;
top: 0;
left: 0;
z-index: 2;
}
.mine .box {
margin: 20rpx 20rpx 0 20rpx;
......@@ -96,10 +148,11 @@ page {
height: 40rpx;
position: absolute;
right: 40rpx;
z-index:999;
}
.user-info .setUpZinx {
z-index: -1;
// z-index: -1;
}
.user-info .vip {
......
<view class="navigation-bar">
<navigation-bar bindnavbarReady="navbarReady" page-title="会员中心">会员中心</navigation-bar>
<!-- 导航栏 -->
<view class="navigation">
<navigation-bar bindnavbarReady="navbarReady" custom="{{true}}" navStyle="{{navStyle}}">
</navigation-bar>
</view>
</view>
<block wx:if="{{user_box_style}}">
<view class="layout mine">
<view class="user-box" style="{{user_box_style}}">
<block wx:if="{{navHeight}}">
<view class="layout mine" style="top:{{navHeight}}px; margin-top:-474rpx">
<view class="user-box">
<view class="user-info">
<view class="avatar">
<block wx:if="{{userInfo && userInfo.headImgUrl}}">
<image src="{{userInfo.headImgUrl}}" />
</block>
<block wx:else>
<glsx-image webp src="mine/default-avatar.png"></glsx-image>
<glsx-image webp src="/mine/default-avatar.png"></glsx-image>
</block>
</view>
<view class="info auth">
......@@ -18,7 +22,7 @@
<view class="nickName">
<text class="text text-hide">{{userInfo.nickName || '微信用户'}}</text>
<view class="vip_card" wx:if="{{isMember}}">
<glsx-image webp src="mine/vip-{{identity}}.png"></glsx-image>
<glsx-image webp src="/mine/vip-{{identity}}.png"></glsx-image>
</view>
</view>
<view class="phone">{{username}}{{userInfo.phone}}</view>
......@@ -31,36 +35,23 @@
<view class="auth-button" bindtap="login"></view>
</block>
<view class="setUp {{userInfo ? '' : 'setUpZinx'}}" bindtap="goSetUp">
<glsx-image webp src="mine/setUp.png"></glsx-image>
<glsx-image webp src="/mine/setUp.png"></glsx-image>
</view>
</view>
</view>
<!-- 会员卡 -->
<block wx:if="{{memberFlag}}">
<block wx:if="{{!isMember}}">
<view class="member-box">
<view class="left-box">
<view class="member-icon">
<glsx-image webp src="mine/member.png"></glsx-image>
</view>
<view class="left-content">
<view class="card">{{memberInfo.equityName}}</view>
<view class="describe" wx:if="{{!isMember}}">生活权益|专享超百项生活权益</view>
<view class="describe" wx:else>{{vipInfo.time}} 到期</view>
</view>
</view>
<view class="member-button" bindtap="toBuyMember">开通会员</view>
<view class="member-price" bindtap="toBuyMember" wx:if="{{memberInfo.goodPrice}}">特惠¥{{memberInfo.goodPrice}}起</view>
<!-- 积分 -->
<view class="integral-wrap">
<view class="text">我的资产</view>
<view class="guide-wrap flex">
<view wx:for="{{guideList}}" class="guide flex" wx:for-item="g" wx:key="index" bind:tap="go" data-index="{{index}}">
<glsx-image webp src="/integral/{{g.leftIcon}}.png" class="left" wx:if="{{g.leftIcon}}"></glsx-image>
<view class="value" wx:if="{{g.key}}">{{scoreSummary[g.key]}}</view>
<view class="name">{{g.text}}</view>
</view>
</block>
<block wx:else>
<view class="vip-box" bindtap="goInterests">
<view class="vip-box-bg">
<glsx-image src="equity/version/1_0_0/{{vipType[identity]}}.png"></glsx-image>
</view>
</view>
</block>
</block>
</view>
</view>
<!-- 我的订单 -->
<myOrder orderNumberList="{{orderNumberList}}" />
<!-- 常用工具 -->
......@@ -70,7 +61,7 @@
<block wx:for="{{toolList}}" wx:key="index">
<view class="independentBox" bindtap="jump" data-url="{{item.url}}">
<view class="tool-img">
<glsx-image webp src="mine/{{item.icon}}.png"></glsx-image>
<glsx-image webp src="/mine/{{item.icon}}.png"></glsx-image>
</view>
<text class="tool-content">{{item.text}}</text>
</view>
......
......@@ -19,8 +19,8 @@
"name": "pages/Login/Login",
"pathName": "pages/Login/Login",
"query": "",
"scene": null,
"launchMode": "default"
"launchMode": "default",
"scene": null
},
{
"name": "积分中心",
......@@ -77,6 +77,20 @@
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "我的页面",
"pathName": "pages/tab/mine/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "设置",
"pathName": "packageMine/pages/setting/index",
"query": "",
"launchMode": "default",
"scene": null
}
]
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!