generated from weChat/xcx_temp
feat 添加涉及产品列表
This commit is contained in:
parent
179fd9bac6
commit
e9f0f6e12c
1
app.json
1
app.json
@ -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": {
|
||||
|
@ -6,7 +6,7 @@ export default [
|
||||
},
|
||||
{
|
||||
icon: 'person',
|
||||
text: '个人中心',
|
||||
text: '我的',
|
||||
url: 'pages/usercenter/index',
|
||||
},
|
||||
];
|
||||
|
@ -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'
|
||||
|
@ -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">
|
||||
|
66
pages/usercenter/subscribe/index.js
Normal file
66
pages/usercenter/subscribe/index.js
Normal file
@ -0,0 +1,66 @@
|
||||
// pages/usercenter/subscribe/index.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
7
pages/usercenter/subscribe/index.json
Normal file
7
pages/usercenter/subscribe/index.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "订阅涉及产品",
|
||||
"usingComponents": {
|
||||
"t-tag": "tdesign-miniprogram/tag/tag",
|
||||
"van-button": "@vant/weapp/button/index"
|
||||
}
|
||||
}
|
15
pages/usercenter/subscribe/index.wxml
Normal file
15
pages/usercenter/subscribe/index.wxml
Normal 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>
|
25
pages/usercenter/subscribe/index.wxss
Normal file
25
pages/usercenter/subscribe/index.wxss
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user