cf-wx-app/src/todo list.txt

153 lines
4.6 KiB
Plaintext
Raw Normal View History

2018-12-24 17:35:51 +08:00
todo list
首页:
商品发布页面:
供求发布页面
2018-12-24 17:35:51 +08:00
全部业主需求页面:
我的供求页面:
我的商品列表页面
商品编辑页面
2019-01-14 17:04:08 +08:00
我的需求列表页面:
2018-12-29 17:15:59 +08:00
接口问题:
优惠卷和询价
2019-01-02 17:31:07 +08:00
bug 商品编辑 增加图片后 图片顺序乱了
2019-01-04 17:33:38 +08:00
2019-01-08 13:51:26 +08:00
等待后台--- 单个我的商品页面的图片顺序,单个我的需求页面的接口, 当个我哦的需求编辑页面的接口
2019-03-04 17:42:02 +08:00
import '@tarojs/async-await'
import Taro, { Component } from '@tarojs/taro'
2019-03-04 17:42:02 +08:00
import { Provider } from '@tarojs/redux'
import Home from './pages/home'
2019-03-01 14:37:50 +08:00
2019-03-04 17:42:02 +08:00
import configStore from './store'
2019-03-01 14:37:50 +08:00
2019-03-04 17:42:02 +08:00
import './app.scss'
2019-03-01 14:37:50 +08:00
2019-03-04 17:42:02 +08:00
// 如果需要在 h5 环境中开启 React Devtools
// 取消以下注释:
// if (process.env.NODE_ENV !== 'production' && process.env.TARO_ENV === 'h5') {
// require('nerv-devtools')
// }
2019-03-01 14:37:50 +08:00
2019-03-04 17:42:02 +08:00
const store = configStore()
2019-03-01 14:37:50 +08:00
2019-03-04 17:42:02 +08:00
class App extends Component {
2019-03-01 14:37:50 +08:00
2019-03-04 17:42:02 +08:00
isTrue = Taro.getStorageSync('session_id') ? true : false
config = {
pages: [
//'pages/index/index', // index页面
'pages/home/home',//首页 ---------------------
'pages/login/login',//登入页面 ---------------------
'pages/shop/shop',//店铺页面 ---------------------
'pages/goods/goods',// 商品页面 ---------------------
'pages/goodsPublish/goodsPublish',// 商品发布页面 ---------------------
'pages/supplyDemandPublish/supplyDemandPublish',// 供求发布页面 ---------------------
'pages/mySupplyDemand/mySupplyDemand',// 我的供求列表页面 ---------------------
'pages/myGoodsEdit/myGoodsEdit',// 我的商品编辑页面 ---------------------
'pages/allDemanding/allDemanding',// 所有供求页面 ---------------------
'pages/myGoodList/myGoodList',// 我的商品列表页面 --------------------- 编辑商品按键
'pages/myDemandSupplyEdit/myDemandSupplyEdit',// 我的供求编辑页面 ---------------------
'pages/supplyDemandView/supplyDemandView',// 查看单个供求页面
'pages/grabOrderPage/grabOrderPage',// 抢单页面
'pages/myNeeds/myNeeds',// 我的需求页面
'pages/myNeedsView/myNeedsView',// 单个需求查看页面
'pages/myNeedsEdit/myNeedsEdit',// 单个需求编辑页面
'pages/myNeedsPublish/myNeedsPublish',// 需求发布
// 'pages/shopDescription/shopDescription',
],
permission: {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
2019-03-01 14:37:50 +08:00
}
2019-03-04 17:42:02 +08:00
},
window: {
backgroundTextStyle: 'light',
navigationBarBackgroundColor: '#fff',
navigationBarTitleText: 'WeChat',
navigationBarTextStyle: 'black',
// enablePullDownRefresh:true
onReachBottomDistance: 0
},
tabBar: {
list: [{
pagePath: "pages/home/home",
text: "首页",
iconPath: "./icons/home.png",
selectedIconPath: "./icons/home-actived.png"
2019-03-01 14:37:50 +08:00
},
2019-03-04 17:42:02 +08:00
, {
pagePath: "pages/myNeedsPublish/myNeedsPublish",
text: "需求发布",
iconPath: "./icons/publish.png",
selectedIconPath: "./icons/publish-actived.png"
2019-03-01 14:37:50 +08:00
}
2019-03-04 17:42:02 +08:00
, {
pagePath: "pages/myNeeds/myNeeds",
text: "我的需求",
iconPath: "./icons/needs.png",
selectedIconPath: "./icons/needs-actived.png"
2019-03-01 14:37:50 +08:00
}
2019-03-04 17:42:02 +08:00
// , {
// pagePath: "pages/individualCenter/individualCenter",
// text: "个人中心",
// iconPath: "./icons/needs.png",
// selectedIconPath: "./icons/needs-actived.png"
// }
],
color: '#333',
selectedColor: '#FF7142',
backgroundColor: '#fff',
borderStyle: 'black'
}
2019-03-01 14:37:50 +08:00
}
componentDidMount() {
2019-03-01 14:37:50 +08:00
}
2019-03-04 17:42:02 +08:00
componentDidShow() { }
2019-03-01 14:37:50 +08:00
componentDidHide() { }
2019-03-04 17:42:02 +08:00
componentCatchError() { }
2019-03-04 17:42:02 +08:00
componentDidCatchError() { }
2019-03-01 14:37:50 +08:00
2019-03-04 17:42:02 +08:00
// 在 App 类中的 render() 函数没有实际作用
// 请勿修改此函数
2019-03-01 14:37:50 +08:00
render() {
return (
2019-03-04 17:42:02 +08:00
<Provider store={store}>
<Home />
</Provider>
2019-03-01 14:37:50 +08:00
)
}
}
2019-03-04 17:42:02 +08:00
Taro.render(<App />, document.getElementById('app'))
// {
// pagePath: "pages/goodsPublish/goodsPublish",
// text: "商品发布",
// iconPath: "./icons/box.png",
// selectedIconPath: "./icons/box-actived.png"
// }, {
// pagePath: "pages/supplyDemandPublish/supplyDemandPublish",
// text: "供求发布",
// iconPath: "./icons/publish.png",
// selectedIconPath: "./icons/publish-actived.png"
// }
// , {
// pagePath: "pages/mySupplyDemand/mySupplyDemand",
// text: "我的供求",
// iconPath: "./icons/menu.png",
// selectedIconPath: "./icons/menu-actived.png"
// }