first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,78 @@
// pages/me/me.js
Page({
/**
* 页面的初始数据
*/
data: {
typeList: [
{ text: '全部订单', icon: '../../static/logo/user/choujiang.png' },
{ text: '待付款', icon: '../../static/logo/user/bank.png' },
{ text: '待发货', icon: '../../static/logo/user/security.png' },
{ text: '待收货', icon: '../../static/logo/user/renw.png' },
{ text: '退款/售后', icon: '../../static/logo/user/mingxi.png' }
]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
enterlist(e) {
var a = e.currentTarget.dataset.id + 1
console.log(a)
wx.navigateTo({
url: `/pages/orderState/orderState?id=${a}`
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

View File

@@ -0,0 +1,13 @@
{
"navigationBarTitleText": "我的",
"navigationBarBackgroundColor": "#666beb",
"navigationBarTextStyle": "white",
"navigationStyle": "default",
"usingComponents": {
"van-nav-bar": "@vant/weapp/nav-bar/index",
"van-grid": "@vant/weapp/grid/index",
"van-grid-item": "@vant/weapp/grid-item/index",
"van-cell": "@vant/weapp/cell/index",
"van-cell-group": "@vant/weapp/cell-group/index"
}
}

View File

@@ -0,0 +1,32 @@
<!--pages/me/me.wxml-->
<view class="me">
<view class="header">
<image class="me_back" src="../../static/logo/me_back.png" ></image>
<view class="user_he">
<image class="setting" src="../../static/logo/user_head.png" ></image>
<view class="user_ll">
<text class="user_name">你好啊哈哈哈哈</text>
<text class="user_qiandao">签名:丈夫志不大,何以佐乾坤。</text>
</view>
</view>
</view>
<view>
<van-grid border="{{false}}" column-num="5">
<van-grid-item use-slot wx:for="{{ typeList }}" wx:key="index" bindtap="enterlist" data-id="{{ index }}">
<image src="{{item.icon}}"></image>
<text>{{item.text}}</text>
</van-grid-item>
</van-grid>
</view>
<view class="hh">
<van-cell :clickable="true" :center="true" title="收货地址">
<image class="hh_a" slot="icon" src="../../static/logo/user/addr.png" alt=""></image>
</van-cell>
<van-cell :clickable="true" :center="true" title="我的收藏">
<image class="hh_a" slot="icon" src="../../static/logo/user/point.png" alt=""></image>
</van-cell>
<van-cell :clickable="true" :center="true" title="我的设置">
<image class="hh_a" slot="icon" src="../../static/logo/user/security.png" alt=""></image>
</van-cell>
</view>
</view>

View File

@@ -0,0 +1,59 @@
/* pages/me/me.wxss */
.van-grid image {
width: 40px;
height: 40px;
margin-bottom: 5px;
}
.van-grid text {
font-size: 13px;
}
.van-col--12 {
text-align: center
}
.header{
width: 100%;
height: 200px;
background-position: center center;
background-size: cover;
position: relative;
}
.me_back{
width: 100%;
z-index: -1;
position:fixed;
background-size:100%;
vertical-align: middle;
}
.setting{
width: 62px;
height: 58px;
z-index: 9;
}
.user_he{
position: absolute;
left: 32px;
display: flex;
top: 114px;
}
.user_ll{
padding-top: 13px;
padding-left: 4px;
}
.user_qiandao{
display: block;
font-size: 12px;
padding-top: 5px;
}
.hh_a{
width: 40px;
height: 37px;
}
.van-cell__title{
flex: 1;
padding-left: 20px;
padding-top: 8px;
}