作者 侯潞浩

bug修改

... ... @@ -125,7 +125,8 @@
"pages/chooseList/chooseList",
"pages/ViolationRes/ViolationRes",
"pages/InvitationReward/InvitationReward",
"pages/jiangliList/jianhliList"
"pages/jiangliList/jianhliList",
"pages/account/account"
],
"window": {
"backgroundTextStyle": "dark",
... ...
// pages/account/account.js
Page({
/**
* 页面的初始数据
*/
data: {
active: 1,
color:'#f59b22'
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
onChange(event) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file
... ...
{
"usingComponents": {
"van-tab": "@vant/weapp/tab/index",
"van-tabs": "@vant/weapp/tabs/index"
}
}
\ No newline at end of file
... ...
<!--pages/account/account.wxml-->
<view>
<view class="card">
<view class="cardheader">
<view class="name">
名字
</view>
<view class="cc">
南通同方汽车
</view>
</view>
<view class="price">
2100
</view>
<view class="keti">
可提现余额(元)
</view>
<view class="btn">
去提现
<image class="image" src="https://xiaoxiangauto.com/assets/static/img/arrow-you.png" mode="" />
</view>
</view>
<view class="list">
<view>
<van-tabs sticky active="{{ active }}" bind:change="onChange" line-width="{{30}}" color="{{color}}">
<van-tab title="账户明细">
<scroll-view>
</scroll-view>
</van-tab>
<van-tab title="佣金明细">
<scroll-view>
</scroll-view>
</van-tab>
</van-tabs>
</view>
</view>
</view>
\ No newline at end of file
... ...
/* pages/account/account.wxss */
page {
background-color: #fce8dc;
}
.card {
position: relative;
width: 686rpx;
height: 320rpx;
border-radius: 16rpx;
opacity: 1;
background: linear-gradient(134.7deg, #fd7f2e 0%, #44b17f 71%, #219161 100%);
box-shadow: inset 0 -2rpx 2rpx 0 #20a55d, inset 0 2rpx 2rpx 0 #69e0a8;
margin: 32rpx auto;
padding: 48rpx;
box-sizing: border-box;
}
.cardheader {
color: #ffffff;
display: flex;
align-items: center;
}
.name {
font-size: 34rpx;
margin-right: 16rpx;
}
.cc {
font-size: 28rpx;
color: #ffffff;
}
.price {
color: #ffffff;
font-size: 72rpx;
font-weight: 700;
margin: 16rpx 0;
}
.keti {
font-size: 28rpx;
color: #ffffff;
}
.btn {
position: absolute;
right: 0;
top: 60%;
display: flex;
justify-content: center;
align-items: center;
background-color: #fff;
font-size: 28rpx;
color: #fd7f2e;
width: 154rpx;
height: 64rpx;
border-radius: 50rpx 0 0 50rpx;
}
.image {
width: 32rpx;
height: 32rpx;
}
.list {
width: 686rpx;
margin: 0 auto;
height: 60vh;
/* padding: 32rpx; */
box-sizing: border-box;
background: #fff;
border-radius: 16rpx;
}
\ No newline at end of file
... ...
... ... @@ -218,6 +218,16 @@ Page({
this.goLogin()
}
},
jumpAccount(){
let token = wx.getStorageSync("token")
if (token) {
wx.navigateTo({
url: '/pages/account/account'
})
} else {
this.goLogin()
}
},
goIntegration(e) { // 我的积分
let typed = e.currentTarget.dataset.typed
... ...
... ... @@ -66,6 +66,15 @@
</view>
<view class="list_change">
<!-- 新增 -- 跳转查看奖品 -->
<view class="change_Public" bindtap="jumpAccount">
<view class="left_public">
<image src="/static/img/tu4-4.png" />
<view class="public_name">业务人员</view>
</view>
<view class="right_PublicImg">
<image src="{{imagesUrl}}assets/static/img/arrow-you.png" />
</view>
</view>
<view class="change_Public" bindtap="checkMyDraw">
<view class="left_public">
<image src="/static/img/tu4-4.png" />
... ...
... ... @@ -7,6 +7,13 @@
"miniprogram": {
"list": [
{
"name": "pages/account/account",
"pathName": "pages/account/account",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "商品详情",
"pathName": "pages/details/details",
"query": "id=1&type=2",
... ...