feat 添加涉及产品列表

This commit is contained in:
Abbh1 2023-11-22 16:57:54 +08:00
parent 179fd9bac6
commit e9f0f6e12c
8 changed files with 129 additions and 3 deletions

View File

@ -12,6 +12,7 @@
"pages/usercenter/goods-history/index",
"pages/usercenter/person-info/index",
"pages/usercenter/set/index",
"pages/usercenter/subscribe/index",
"pages/usercenter/name-edit/index"
],
"tabBar": {

View File

@ -6,7 +6,7 @@ export default [
},
{
icon: 'person',
text: '个人中心',
text: '我的',
url: 'pages/usercenter/index',
},
];

View File

@ -11,6 +11,12 @@ import Toast from 'tdesign-miniprogram/toast/index';
const menuData = [
[
{
title: '订阅涉及产品',
tit: '',
url: '',
type: 'subscribe',
},
{
title: '设置',
tit: '',
@ -101,6 +107,12 @@ Page({
this.openMakePhone();
break;
}
case 'subscribe': {
wx.navigateTo({
url: '/pages/usercenter/subscribe/index'
});
break;
}
case 'set': {
wx.navigateTo({
url: '/pages/usercenter/set/index'

View File

@ -3,7 +3,7 @@
<view class="content-wrapper">
<!-- 收藏和足迹 -->
<view class="order-history-box">
<!-- <view class="order-history-box">
<view class="order-history-content-box" bind:tap="jumpCollect">
<view class="order-history-content-num">{{collectData.collectCount}}</view>
<view class="order-history-content-text">收藏</view>
@ -13,7 +13,7 @@
<view class="order-history-content-num">{{collectData.historyCount}}</view>
<view class="order-history-content-text">浏览记录</view>
</view>
</view>
</view> -->
<!-- <button type="primary" bind:tap="getOpenIdFun">获取OpenID</button> -->
<view wx:for="{{menuData}}" wx:key="item" class="cell-box">

View File

@ -0,0 +1,66 @@
// pages/usercenter/subscribe/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@ -0,0 +1,7 @@
{
"navigationBarTitleText": "订阅涉及产品",
"usingComponents": {
"t-tag": "tdesign-miniprogram/tag/tag",
"van-button": "@vant/weapp/button/index"
}
}

View File

@ -0,0 +1,15 @@
<!-- 涉及产品列表 -->
<view class="subscribe-page">
<view class="subscribe-list-box">
<view class="subscribe-list-title"></view>
<view class="subscribe-list-item">
<view class="subscribe-list-item-margin">
<t-tag class="tag" variant="light" size="large">房产</t-tag>
<van-button wx:if="true" class="btn" type="info" round block>订阅</van-button>
<van-button wx:else class="btn" type="info" round>已订阅</van-button>
</view>
</view>
</view>
</view>

View File

@ -0,0 +1,25 @@
.subscribe-page {
background-color: #F5F5F5;
padding: 30rpx;
}
.subscribe-list-box {}
.tag {}
.btn {
width: 150rpx !important;
}
.subscribe-list-item {
background-color: white !important;
width: 100%;
padding: 15rpx 0;
}
.subscribe-list-item-margin {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0 30rpx;
}