前端界面2版

develop
wbb 2 years ago
parent d7d9102c7e
commit f3387991d8

@ -28,7 +28,10 @@
"pages/order/fill-tracking-no/index",
"pages/order/delivery-detail/index",
"pages/order/invoice/index",
"pages/usercenter/name-edit/index"
"pages/usercenter/name-edit/index",
"pages/preferchoice/preferchoice",
"pages/forum/forum",
"pages/turntable/turntable"
],
"tabBar": {
"custom": true,
@ -42,8 +45,10 @@
"text": "首页"
},
{
"pagePath": "pages/goods/category/index",
"text": "分类"
"pagePath": "pages/forum/forum",
"text": "论坛",
"iconPath": "/images/forum.png",
"selectedIconPath": "/images/forum.png"
},
{
"pagePath": "pages/cart/index",
@ -59,9 +64,9 @@
"usingComponents": {},
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarBackgroundColor": "#2B4B6B",
"navigationBarTitleText": "节时不节食",
"navigationBarTextStyle": "black"
"navigationBarTextStyle": "white"
},
"sitemapLocation": "sitemap.json",
"permission": {

@ -1,13 +1,12 @@
export default [
{
export default [{
icon: 'home',
text: '首页',
url: 'pages/home/home',
},
{
icon: 'sort',
text: '分类',
url: 'pages/goods/category/index',
text: '论坛',
url: 'pages/forum/forum',
},
{
icon: 'cart',
@ -19,4 +18,4 @@ export default [
text: '个人中心',
url: 'pages/usercenter/index',
},
];
];

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

File diff suppressed because it is too large Load Diff

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

@ -0,0 +1,3 @@
{
"usingComponents": {}
}

@ -0,0 +1,2 @@
<!--pages/forum/forum.wxml-->
<text>pages/forum/forum.wxml</text>

@ -0,0 +1 @@
/* pages/forum/forum.wxss */

@ -1,30 +1,41 @@
<view style="text-align: center" wx:if="{{pageLoading}}">
<t-loading theme="circular" size="40rpx" loading t-class-indicator="t-class-indicator">
<span slot="text" class="loading-text">加载中...</span>
</t-loading>
<t-loading theme="circular" size="40rpx" loading t-class-indicator="t-class-indicator">
<span slot="text" class="loading-text">加载中...</span>
</t-loading>
</view>
<view class="home-page-header">
<view class="search" bind:tap="navToSearchPage">
<t-search t-class-input="t-search__input" t-class-input-container="t-search__input-container" placeholder="搜索食物或商家名称" leftIcon="" disabled>
<t-icon slot="left-icon" prefix="wr" name="search" size="40rpx" color="#bbb" />
</t-search>
</view>
<view class="search" bind:tap="navToSearchPage">
<t-search t-class-input="t-search__input" t-class-input-container="t-search__input-container" placeholder="搜索食物或商家名称" leftIcon="" disabled>
<t-icon slot="left-icon" prefix="wr" name="search" size="40rpx" color="#bbb" />
</t-search>
</view>
</view>
<view class="imagesize">
<image src=" /images/logo.jpg" style="width:350px" class="in-select2" mode="widthFix">
</image>
<image src=" /images/logo.jpg" style="width:350px" class="in-select2" mode="widthFix">
</image>
</view>
<view class="imagesize">
<image src="/images/perfer.jpg" style="width:440px" class="in-select" mode="widthFix"></image>
<image src="/images/zhuanpang.jpg" style="width:440px" class="in-select" mode="widthFix"></image>
<view>
<navigator url="/pages/preferchoice/preferchoice" class="imagesize">
<image src="/images/perfer.jpg" style="width:440px" class="in-select" mode="widthFix"></image>
</navigator>
<navigator url="/pages/turntable/turntable" class="imagesize">
<image src="/images/zhuanpang.jpg" style="width:440px" class="in-select" mode="widthFix"></image>
</navigator>
</view>
<view class="home-page-container">
<t-tabs t-class="t-tabs" t-class-active="tabs-external__active" t-class-item="tabs-external__item" t-class-track="tabs-external__track" defaultValue="{{0}}" bind:change="tabChangeHandle">
<t-tab-panel wx:for="{{tabList}}" wx:for-index="index" wx:key="index" label="{{item.text}}" value="{{item.key}}" />
</t-tabs>
<goods-list wr-class="goods-list-container" goodsList="{{goodsList}}" bind:click="goodListClickHandle" bind:addcart="goodListAddCartHandle" />
<load-more list-is-empty="{{!goodsList.length}}" status="{{goodsListLoadStatus}}" bind:retry="onReTry" />
<t-toast id="t-toast" />
<t-tabs t-class="t-tabs" t-class-active="tabs-external__active" t-class-item="tabs-external__item" t-class-track="tabs-external__track" defaultValue="{{0}}" bind:change="tabChangeHandle">
<t-tab-panel wx:for="{{tabList}}" wx:for-index="index" wx:key="index" label="{{item.text}}" value="{{item.key}}" />
</t-tabs>
<goods-list wr-class="goods-list-container" goodsList="{{goodsList}}" bind:click="goodListClickHandle" bind:addcart="goodListAddCartHandle" />
<load-more list-is-empty="{{!goodsList.length}}" status="{{goodsListLoadStatus}}" bind:retry="onReTry" />
<t-toast id="t-toast" />
</view>

@ -109,6 +109,10 @@ page {
display: flex;
justify-content: center;
align-items: center;
width: 650rpx;
margin-left: 50rpx;
margin-right: 50rpx;
}
.imagesize select {

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

@ -0,0 +1,2 @@
<!--pages/preferchoice/preferchoice.wxml-->
<text>pages/preferchoice/preferchoice.wxml</text>

@ -0,0 +1 @@
/* pages/preferchoice/preferchoice.wxss */

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

@ -0,0 +1,2 @@
<!--pages/turntable/turntable.wxml-->
<text>pages/turntable/turntable.wxml</text>

@ -0,0 +1 @@
/* pages/turntable/turntable.wxss */
Loading…
Cancel
Save