diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..fde2fed Binary files /dev/null and b/.DS_Store differ diff --git a/app.js b/app.js index 2b1924e..5c68452 100644 --- a/app.js +++ b/app.js @@ -6,6 +6,9 @@ App({ this.setMenuHeight() }, onShow(e){ + //隐藏系统tabbar + wx.hideTabBar(); + var query = {}; if(e.query.q){ //通过扫码进来获取二维码上的参数并存入storage @@ -34,6 +37,7 @@ App({ // console.log(res) this.globalData.navTopHeight = res.statusBarHeight; this.globalData.CustomBar = res.statusBarHeight + 45; + this.globalData.systemInfo = res; } }); let menuButtonObj = wx.getMenuButtonBoundingClientRect(); @@ -41,7 +45,22 @@ App({ // console.log(menuButtonObj) this.globalData.menuHeight = menuButtonObj.height; this.globalData.navHeight = menuButtonObj.height + (menuButtonObj.top - this.globalData.navTopHeight); + }, + editTabbar: function () { + var tabbar = this.globalData.tabBar; + var currentPages = getCurrentPages(); + var that = currentPages[currentPages.length - 1]; + var pagePath = that.route; + (pagePath.indexOf('/') != 0) && (pagePath = '/' + pagePath); + for (var i in tabbar.list) { + tabbar.list[i].selected = false; + (tabbar.list[i].pagePath == pagePath) && (tabbar.list[i].selected = true); + } + that.setData({ + tabbar: tabbar + }); + }, getToken(){ // console.log('getToken') var tokentime = wx.getStorageSync('tokentime') || '';//过期时间 @@ -73,7 +92,6 @@ App({ }) }, getInfo(){ - this.http('get','userinfo').then((res)=>{ if(res.data.success){ wx.setStorageSync('userInfo',res.data.data) @@ -133,5 +151,43 @@ App({ menuHeight: 0, CustomBar: 0, inviterId: null , //分享码 + systemInfo: null, //客户端设备信息 + tabBar: { + "backgroundColor": "#ffffff", + "color": "#979795", + "selectedColor": "#1c1c1b", + "list": [ + { + "pagePath": "/pages/index/index", + "iconPath": "icon/icon_home.png", + "selectedIconPath": "icon/icon_home_HL.png", + "text": "首页" + }, + { + "pagePath": "/pages/demandHall/index", + "iconPath": "icon/icon_home.png", + "selectedIconPath": "icon/icon_home_HL.png", + "text": "供需大厅" + }, + { + "pagePath": "/pages/release/index", + "iconPath": "icon/icon_release.png", + "isSpecial": true, + "text": "发布" + }, + { + "pagePath": "/pages/life/index", + "iconPath": "icon/icon_mine.png", + "selectedIconPath": "icon/icon_mine_HL.png", + "text": "购物车" + }, + { + "pagePath": "/pages/user/index", + "iconPath": "icon/icon_mine.png", + "selectedIconPath": "icon/icon_mine_HL.png", + "text": "我的" + } + ] + } } }) \ No newline at end of file diff --git a/app.json b/app.json index 5c9ebe8..d47029f 100644 --- a/app.json +++ b/app.json @@ -1,19 +1,63 @@ { "pages":[ - "pages/user/agreement/index", "pages/user/index", + "pages/demandHall/needsDetail/index", + "pages/demandHall/resourcesDetail/index", + "pages/demandHall/companyDetail/index", + "pages/demandHall/index", + "pages/release/index", + "pages/release/personAuth/index", + "pages/release/companyAuth/index", + "pages/release/perfectPersonInfo/index", + "pages/release/perfectCompanyInfo/index", + "pages/index/index", + "pages/life/index", + "pages/user/mine/index", + + "pages/user/agreement/index", "pages/user/incomeDetail/index", "pages/user/profession/index", - "pages/index/index", + "pages/user/completeData/index", "pages/user/personalData/index", "pages/user/industry/index" ], "window":{ "backgroundTextStyle":"light", - "navigationBarBackgroundColor": "#212226", + "navigationBarBackgroundColor": "#fff", "navigationBarTitleText": "禅易云生态", - "navigationBarTextStyle":"white" + "navigationBarTextStyle":"black" + }, + "tabBar": { + "backgroundColor": "#ffffff", + "color": "#D4D4D4", + "selectedColor": "#FF6F34", + "list": [ + { + "pagePath": "pages/index/index", + "text": "首页", + "iconPath": "tabbarComponent/icon/icon_home.png", + "selectedIconPath": "tabbarComponent/icon/icon_home_HL.png" + }, + { + "pagePath": "pages/demandHall/index", + "text": "供需大厅", + "iconPath": "tabbarComponent/icon/icon_home.png", + "selectedIconPath": "tabbarComponent/icon/icon_home_HL.png" + }, + { + "pagePath": "pages/life/index", + "text": "生活", + "iconPath": "tabbarComponent/icon/icon_mine.png", + "selectedIconPath": "tabbarComponent/icon/icon_mine_HL.png" + }, + { + "pagePath": "pages/user/index", + "text": "我的", + "iconPath": "tabbarComponent/icon/icon_mine.png", + "selectedIconPath": "tabbarComponent/icon/icon_mine_HL.png" + } + ] }, "style": "v2", "sitemapLocation": "sitemap.json" diff --git a/app.wxss b/app.wxss index 065abd7..fb453d8 100644 --- a/app.wxss +++ b/app.wxss @@ -92,4 +92,32 @@ image { .back-btn image{ width: 100%; height: 100%; -} \ No newline at end of file +} + + + +radio .wx-radio-input.wx-radio-input-checked { + border-color: #cc0000; + background: #cc0000; +} +radio .wx-radio-input { + height: 33rpx; + width: 33rpx; + margin-top: -4rpx; + border-radius: 50%; + border: 2rpx solid #999; + background: transparent; +} +radio .wx-radio-input.wx-radio-input-checked::before { + border-radius: 50%; /* 圆角 */ + width: 35rpx; /* 选中后对勾大小,不要超过背景的尺寸 */ + height: 35rpx; /* 选中后对勾大小,不要超过背景的尺寸 */ + line-height: 35rpx; + text-align: center; + font-size: 28rpx; /* 对勾大小 30rpx */ + color: #fff; /* 对勾颜色 白色 */ + background: #FF5100; + border: 2rpx solid #FF5100; + transform: translate(-50%, -50%) scale(1); + -webkit-transform: translate(-50%, -50%) scale(1); +} \ No newline at end of file diff --git a/images/.DS_Store b/images/.DS_Store new file mode 100644 index 0000000..27c1a0b Binary files /dev/null and b/images/.DS_Store differ diff --git a/images/fabu-close.png b/images/fabu-close.png new file mode 100644 index 0000000..104fb07 Binary files /dev/null and b/images/fabu-close.png differ diff --git a/images/home/.DS_Store b/images/home/.DS_Store new file mode 100644 index 0000000..94cc7a8 Binary files /dev/null and b/images/home/.DS_Store differ diff --git a/images/home/arrow-r.png b/images/home/arrow-r.png new file mode 100755 index 0000000..c62c3ba Binary files /dev/null and b/images/home/arrow-r.png differ diff --git a/images/home/c-location.png b/images/home/c-location.png new file mode 100644 index 0000000..a922794 Binary files /dev/null and b/images/home/c-location.png differ diff --git a/images/home/c-phone.png b/images/home/c-phone.png new file mode 100644 index 0000000..4bbf4f4 Binary files /dev/null and b/images/home/c-phone.png differ diff --git a/images/home/c-site.png b/images/home/c-site.png new file mode 100644 index 0000000..f2b8172 Binary files /dev/null and b/images/home/c-site.png differ diff --git a/images/home/company-icon.png b/images/home/company-icon.png new file mode 100755 index 0000000..dae3a4b Binary files /dev/null and b/images/home/company-icon.png differ diff --git a/images/home/company-img.png b/images/home/company-img.png new file mode 100755 index 0000000..33686d3 Binary files /dev/null and b/images/home/company-img.png differ diff --git a/images/home/company-top-bg.png b/images/home/company-top-bg.png new file mode 100644 index 0000000..e97f170 Binary files /dev/null and b/images/home/company-top-bg.png differ diff --git a/images/home/cyrz.png b/images/home/cyrz.png new file mode 100644 index 0000000..f5fa9ec Binary files /dev/null and b/images/home/cyrz.png differ diff --git a/images/home/item-bg.png b/images/home/item-bg.png new file mode 100755 index 0000000..74d83b3 Binary files /dev/null and b/images/home/item-bg.png differ diff --git a/images/home/localtion.png b/images/home/localtion.png new file mode 100755 index 0000000..69fdf25 Binary files /dev/null and b/images/home/localtion.png differ diff --git a/images/home/menu1.png b/images/home/menu1.png new file mode 100755 index 0000000..ac07bc9 Binary files /dev/null and b/images/home/menu1.png differ diff --git a/images/home/menu10.png b/images/home/menu10.png new file mode 100755 index 0000000..a2a4162 Binary files /dev/null and b/images/home/menu10.png differ diff --git a/images/home/menu2.png b/images/home/menu2.png new file mode 100755 index 0000000..5a9e4ba Binary files /dev/null and b/images/home/menu2.png differ diff --git a/images/home/menu3.png b/images/home/menu3.png new file mode 100755 index 0000000..22f1d8d Binary files /dev/null and b/images/home/menu3.png differ diff --git a/images/home/menu4.png b/images/home/menu4.png new file mode 100755 index 0000000..0006d09 Binary files /dev/null and b/images/home/menu4.png differ diff --git a/images/home/menu5.png b/images/home/menu5.png new file mode 100755 index 0000000..9353256 Binary files /dev/null and b/images/home/menu5.png differ diff --git a/images/home/menu6.png b/images/home/menu6.png new file mode 100755 index 0000000..03e3938 Binary files /dev/null and b/images/home/menu6.png differ diff --git a/images/home/menu7.png b/images/home/menu7.png new file mode 100755 index 0000000..3277ad0 Binary files /dev/null and b/images/home/menu7.png differ diff --git a/images/home/menu8.png b/images/home/menu8.png new file mode 100755 index 0000000..889a006 Binary files /dev/null and b/images/home/menu8.png differ diff --git a/images/home/menu9.png b/images/home/menu9.png new file mode 100755 index 0000000..7055315 Binary files /dev/null and b/images/home/menu9.png differ diff --git a/images/home/message.png b/images/home/message.png new file mode 100755 index 0000000..68321e5 Binary files /dev/null and b/images/home/message.png differ diff --git a/images/home/message2.png b/images/home/message2.png new file mode 100644 index 0000000..95b67d2 Binary files /dev/null and b/images/home/message2.png differ diff --git a/images/home/screen.png b/images/home/screen.png new file mode 100644 index 0000000..424cf18 Binary files /dev/null and b/images/home/screen.png differ diff --git a/images/home/search.png b/images/home/search.png new file mode 100755 index 0000000..6850c21 Binary files /dev/null and b/images/home/search.png differ diff --git a/images/home/search2.png b/images/home/search2.png new file mode 100644 index 0000000..4a2500d Binary files /dev/null and b/images/home/search2.png differ diff --git a/images/home/time.png b/images/home/time.png new file mode 100755 index 0000000..07c062e Binary files /dev/null and b/images/home/time.png differ diff --git a/images/home/top-bg.png b/images/home/top-bg.png new file mode 100644 index 0000000..50e1368 Binary files /dev/null and b/images/home/top-bg.png differ diff --git a/images/home/tyg.png b/images/home/tyg.png new file mode 100644 index 0000000..7abb331 Binary files /dev/null and b/images/home/tyg.png differ diff --git a/images/home/welfare1.png b/images/home/welfare1.png new file mode 100755 index 0000000..114522c Binary files /dev/null and b/images/home/welfare1.png differ diff --git a/images/home/welfare2.png b/images/home/welfare2.png new file mode 100755 index 0000000..c7768d5 Binary files /dev/null and b/images/home/welfare2.png differ diff --git a/images/home/减去 3@2x.png b/images/home/减去 3@2x.png new file mode 100755 index 0000000..b097a73 Binary files /dev/null and b/images/home/减去 3@2x.png differ diff --git a/images/home/组 221@2x.png b/images/home/组 221@2x.png new file mode 100755 index 0000000..870f221 Binary files /dev/null and b/images/home/组 221@2x.png differ diff --git a/images/home/组 226@2x.png b/images/home/组 226@2x.png new file mode 100755 index 0000000..fbebe0a Binary files /dev/null and b/images/home/组 226@2x.png differ diff --git a/images/home/组 227@2x.png b/images/home/组 227@2x.png new file mode 100755 index 0000000..6209035 Binary files /dev/null and b/images/home/组 227@2x.png differ diff --git a/images/home/组 229@2x.png b/images/home/组 229@2x.png new file mode 100755 index 0000000..d2c003e Binary files /dev/null and b/images/home/组 229@2x.png differ diff --git a/images/home/组 326@2x.png b/images/home/组 326@2x.png new file mode 100755 index 0000000..e749a89 Binary files /dev/null and b/images/home/组 326@2x.png differ diff --git a/images/home/组 668@2x.png b/images/home/组 668@2x.png new file mode 100755 index 0000000..52209e2 Binary files /dev/null and b/images/home/组 668@2x.png differ diff --git a/images/home/资源 21@2x.png b/images/home/资源 21@2x.png new file mode 100755 index 0000000..6ec0dcf Binary files /dev/null and b/images/home/资源 21@2x.png differ diff --git a/images/renzheng/.DS_Store b/images/renzheng/.DS_Store new file mode 100644 index 0000000..adc4dcd Binary files /dev/null and b/images/renzheng/.DS_Store differ diff --git a/images/renzheng/sfz1.png b/images/renzheng/sfz1.png new file mode 100644 index 0000000..096b3f8 Binary files /dev/null and b/images/renzheng/sfz1.png differ diff --git a/images/renzheng/sfz2.png b/images/renzheng/sfz2.png new file mode 100644 index 0000000..0bd2193 Binary files /dev/null and b/images/renzheng/sfz2.png differ diff --git a/images/renzheng/sfz3.png b/images/renzheng/sfz3.png new file mode 100644 index 0000000..9e3b4ad Binary files /dev/null and b/images/renzheng/sfz3.png differ diff --git a/images/renzheng/sfzb.png b/images/renzheng/sfzb.png new file mode 100644 index 0000000..8d381a0 Binary files /dev/null and b/images/renzheng/sfzb.png differ diff --git a/images/renzheng/sfzs.png b/images/renzheng/sfzs.png new file mode 100644 index 0000000..9ae7f09 Binary files /dev/null and b/images/renzheng/sfzs.png differ diff --git a/images/renzheng/sfzz.png b/images/renzheng/sfzz.png new file mode 100644 index 0000000..d1b1c70 Binary files /dev/null and b/images/renzheng/sfzz.png differ diff --git a/images/renzheng/sq.png b/images/renzheng/sq.png new file mode 100644 index 0000000..57bf6f0 Binary files /dev/null and b/images/renzheng/sq.png differ diff --git a/images/renzheng/sqs.png b/images/renzheng/sqs.png new file mode 100644 index 0000000..0898f79 Binary files /dev/null and b/images/renzheng/sqs.png differ diff --git a/images/renzheng/yyzz.png b/images/renzheng/yyzz.png new file mode 100644 index 0000000..616f522 Binary files /dev/null and b/images/renzheng/yyzz.png differ diff --git a/images/upload.png b/images/upload.png new file mode 100644 index 0000000..756e64d Binary files /dev/null and b/images/upload.png differ diff --git a/images/user/.DS_Store b/images/user/.DS_Store new file mode 100644 index 0000000..745484a Binary files /dev/null and b/images/user/.DS_Store differ diff --git a/images/user/arror-r.png b/images/user/arror-r.png new file mode 100644 index 0000000..4310c1f Binary files /dev/null and b/images/user/arror-r.png differ diff --git a/images/user/fbxq.png b/images/user/fbxq.png new file mode 100644 index 0000000..abffd27 Binary files /dev/null and b/images/user/fbxq.png differ diff --git a/images/user/fbzy.png b/images/user/fbzy.png new file mode 100644 index 0000000..3d08351 Binary files /dev/null and b/images/user/fbzy.png differ diff --git a/images/user/fuwu1.png b/images/user/fuwu1.png new file mode 100644 index 0000000..662c0d0 Binary files /dev/null and b/images/user/fuwu1.png differ diff --git a/images/user/fuwu2.png b/images/user/fuwu2.png new file mode 100644 index 0000000..1a0c728 Binary files /dev/null and b/images/user/fuwu2.png differ diff --git a/images/user/fuwu3.png b/images/user/fuwu3.png new file mode 100644 index 0000000..26af263 Binary files /dev/null and b/images/user/fuwu3.png differ diff --git a/images/user/fuwu4.png b/images/user/fuwu4.png new file mode 100644 index 0000000..b610231 Binary files /dev/null and b/images/user/fuwu4.png differ diff --git a/images/user/fuwu5.png b/images/user/fuwu5.png new file mode 100644 index 0000000..b48975c Binary files /dev/null and b/images/user/fuwu5.png differ diff --git a/images/user/fuwu6.png b/images/user/fuwu6.png new file mode 100644 index 0000000..f94456b Binary files /dev/null and b/images/user/fuwu6.png differ diff --git a/images/user/fuwu7.png b/images/user/fuwu7.png new file mode 100644 index 0000000..2dd1b63 Binary files /dev/null and b/images/user/fuwu7.png differ diff --git a/images/user/fuwu8.png b/images/user/fuwu8.png new file mode 100644 index 0000000..54a1b9d Binary files /dev/null and b/images/user/fuwu8.png differ diff --git a/images/user/header.png b/images/user/header.png new file mode 100644 index 0000000..d7be5a2 Binary files /dev/null and b/images/user/header.png differ diff --git a/images/user/message-icon.png b/images/user/message-icon.png new file mode 100644 index 0000000..b435dc0 Binary files /dev/null and b/images/user/message-icon.png differ diff --git a/images/user/set-icon.png b/images/user/set-icon.png new file mode 100644 index 0000000..a9d1307 Binary files /dev/null and b/images/user/set-icon.png differ diff --git a/images/user/tyg-img.png b/images/user/tyg-img.png new file mode 100644 index 0000000..29ef0ba Binary files /dev/null and b/images/user/tyg-img.png differ diff --git a/images/user/tyg-tag.png b/images/user/tyg-tag.png new file mode 100644 index 0000000..17413ce Binary files /dev/null and b/images/user/tyg-tag.png differ diff --git a/images/user/vip.png b/images/user/vip.png new file mode 100644 index 0000000..19bfda7 Binary files /dev/null and b/images/user/vip.png differ diff --git a/images/user/xuqiu1.png b/images/user/xuqiu1.png new file mode 100644 index 0000000..b6d122b Binary files /dev/null and b/images/user/xuqiu1.png differ diff --git a/images/user/xuqiu2.png b/images/user/xuqiu2.png new file mode 100644 index 0000000..224973e Binary files /dev/null and b/images/user/xuqiu2.png differ diff --git a/images/user/xuqiu3.png b/images/user/xuqiu3.png new file mode 100644 index 0000000..e160eca Binary files /dev/null and b/images/user/xuqiu3.png differ diff --git a/images/user/xuqiu4.png b/images/user/xuqiu4.png new file mode 100644 index 0000000..785c81a Binary files /dev/null and b/images/user/xuqiu4.png differ diff --git a/images/yrz1.png b/images/yrz1.png new file mode 100644 index 0000000..3a69f8b Binary files /dev/null and b/images/yrz1.png differ diff --git a/images/yrz2.png b/images/yrz2.png new file mode 100644 index 0000000..601190f Binary files /dev/null and b/images/yrz2.png differ diff --git a/pages/demandHall/companyDetail/index.js b/pages/demandHall/companyDetail/index.js new file mode 100644 index 0000000..25da07d --- /dev/null +++ b/pages/demandHall/companyDetail/index.js @@ -0,0 +1,81 @@ +// pages/demandHall/companyDetail/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + tabActive: 3, + swiperImgUrls: [ + '../../../images/home/item-bg.png', + '../../../images/home/company-top-bg.png' + ], + swiperIndex: 0 + }, + tabClick(e){ + this.setData({ + tabActive: e.currentTarget.dataset.i + }) + }, + swiperChange(e) { + const that = this; + that.setData({ + swiperIndex: e.detail.current, + }) + }, + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/demandHall/companyDetail/index.json b/pages/demandHall/companyDetail/index.json new file mode 100644 index 0000000..dd16282 --- /dev/null +++ b/pages/demandHall/companyDetail/index.json @@ -0,0 +1,4 @@ +{ + "usingComponents": {}, + "navigationBarTitleText": "企业首页" +} \ No newline at end of file diff --git a/pages/demandHall/companyDetail/index.wxml b/pages/demandHall/companyDetail/index.wxml new file mode 100644 index 0000000..d0d5c54 --- /dev/null +++ b/pages/demandHall/companyDetail/index.wxml @@ -0,0 +1,138 @@ + + + + + + + + + + 楚牛科技 + 让全世界牛起来。 + + 网站建设 + IT软件 + + + + + + + 武汉市CBD国际大厦A座 + + + + 武汉市CBD国际大厦A座 + + + + 9466-9466 + + + + + + 首页 + 资源 + 需求 + + + + + + + 基本信息 + + + + 企业名称 + 湖北楚牛科技有限公司 + + + 所属类型 + 企业 + + + 法定代表 + 张三 + + + 企业规模 + 300人 + + + 经营范围 + 计算机系统服务;软件开发;游戏开发;会议会展服务;广告设计;设计服务;计算机软硬件及配件、电子产品设计。 + + + + + + 关于我们 + + + 湖北楚牛科技有限公司成立于2010年3月,核心团队成员均来自业内相关的顶尖公司。楚牛的愿景是让我们的技术和产品能与合作伙伴一起拥抱全球化!公司法定代表人为刘戴辉,注册资本为200万元人民币,统一社会信用代码为946946946694464T,企业地址位于湖北省武汉市江汉区东风路街道蚌塘街37号航线大厦2811号,所属行业为商务服务业,经营范围包含计算机系统服务;软件开发;游戏开发;会议会展服务;广告设计;设计服务;计算机软硬件及配件、电子产品设计。 + + + + + + 公司展示 + + + + + + + + + + + + 更多信息请见官网> + + + + + + + + + 教育类学校教育类学校官网网站建设官网网站建设 + 资金需求:100万 + 针对中小学教育机构、课外培训辅导机构,提供官网升级优化和专业的网站建设定制化服务。 + + + + + 发布日期 2021.8.30 + 武汉市江汉区滨江国际A座-楚牛科技 + + 了解详情 + + + + + + + + + + 我需要公司官网设计需要公司官网设计需要公司官网设计 + ¥20,000 + + + 网站建设 + IT软件 + APP开发 + + 针对中小学教育机构、课外培训辅导机构。 + + 2021.8.30截止报名 + 了解详情 + + + + + + diff --git a/pages/demandHall/companyDetail/index.wxss b/pages/demandHall/companyDetail/index.wxss new file mode 100644 index 0000000..15211b5 --- /dev/null +++ b/pages/demandHall/companyDetail/index.wxss @@ -0,0 +1,301 @@ +/* pages/demandHall/companyDetail/index.wxss */ +.top-box{ + width: 100%; + height: 406rpx; + position: relative; +} +.top-bg-img{ + width: 100%; + height: 406rpx; + position: absolute; + z-index: 1; +} +.top-bg{ + width: 100%; + height: 406rpx; + background: rgba(0,0,0,.4); + position: absolute; + z-index: 2; +} +.top-content{ + width: 100%; + height: 406rpx; + position: absolute; + top: 0; + z-index: 3; + color: #fff; + padding: 80rpx 0 0 22rpx; +} +.company-logo{ + width: 150rpx; + height: 150rpx; + margin-right: 20rpx; +} +.name{ + font-size: 32rpx; + line-height: 44rpx; +} +.slogan{ + font-size: 24rpx; + line-height: 34rpx; + margin: 4rpx 0 12rpx; +} +.tags-box{ + margin: 6rpx 0 10rpx; +} +.tag-item{ + width: 112rpx; + height: 36rpx; + display: inline-block; + line-height: 36rpx; + text-align: center; + font-size: 20rpx; + background: linear-gradient(312deg, #FFB788 0%, #F9C8A7 100%); + color: #fff; + border-radius: 4rpx; + margin-right: 8rpx; +} +.bgG{ + background: linear-gradient(134deg, #AEC8F6 0%, #76A6FA 100%); +} +.company-contact-box{ + margin-top: 20rpx; +} +.contact-item{ + display: flex; + align-items: center; + font-size: 24rpx; + line-height: 34rpx; +} +.contact-item image{ + width: 20rpx; + height: 20rpx; + margin-right: 12rpx; +} +.tabs-box{ + width: 100%; + padding: 18rpx 40rpx; + background: #fff; + +box-shadow: 0px -6px 20px rgba(0, 0, 0, 0.11); +} +.tab{ + width: 116rpx; + text-align: center; + font-size: 28rpx; + color: #BFBFBF; + position: relative; +} +.tab::after{ + display: block; + content: ''; + width: 100%; + height: 8rpx; + border-radius: 8rpx; + background: #FF5100; + position: absolute; + bottom: -22rpx; + left: 50%; + margin-left: -58rpx; + opacity: 0; + transform:scaleX(0); + transition: all .2s cubic-bezier(.18,.89,.17,.88),opacity .15s ease; +} +.tab-a{ + color: #FF7942; +} +.tab-a::after{ + opacity: 1; + transform: scaleX(1); +} +.tab-content-box{ + width: 100%; +} +.home-box{ + width: 100%; + padding-bottom: 34rpx; +} +.info-box,.about-box{ + padding-bottom: 34rpx; + border-bottom: 2rpx solid #BFBFBF; +} +.title-box{ + padding: 34rpx 40rpx; +} +.col-line{ + width: 8rpx; + height: 36rpx; + background: #FF7942; + border-radius: 4rpx; + margin-right: 14rpx; +} +.info-item{ + padding-left: 40rpx; + margin-bottom: 20rpx; + font-size: 28rpx; + line-height: 40rpx; + color: #1D1D1D; +} +.colG{ + width: 496rpx; + color: #707070; + margin-left: 56rpx; +} +.about{ + padding: 0rpx 40rpx; +} +.about text{ + font-size: 28rpx; + color: #707070; + line-height: 40rpx; +} + +.swiper-block { + height: 300rpx; + width: 100%; +} + +.swiper-item { + display: flex; + flex-direction: column; + justify-content: center; + align-items: flex-start; + overflow: unset; +} +.slide-image { + height: 250rpx; + width: 520rpx; + border-radius: 9rpx; + margin: 0rpx 30rpx; + z-index: 1; +} +.active { + transform: scale(1.14); + transition: all 0.2s ease-in 0s; + z-index: 20; +} +.toSite{ + text-align: center; + font-size: 24rpx; + color: #BFBFBF; + margin-top: 40rpx; +} + +.resources-box,.needs-box{ + width: 100%; + min-height: 1000rpx; + padding: 40rpx; + background: #EFEFEF; +} +.resources-item{ + width: 100%; + background: #fff; +} +.item-top{ + width: 100%; + padding: 32rpx 40rpx 18rpx; + border-bottom: 2rpx solid #F0F0F0; +} +.item-top image{ + width: 196rpx; + height: 196rpx; + margin-right: 24rpx; +} +.info{ + width: 370rpx; +} +.r-title{ + color: #1D1D1D; + font-size: 34rpx; + line-height: 44rpx; +} +.r-price{ + font-size: 28rpx; + line-height: 40rpx; + color: #FF680C; + margin-top: 24rpx; +} +.r-tips{ + width: 370rpx; + background: #EEEEEE; + border-radius: 8rpx; + padding: 4rpx 10rpx; + color: #ADADAD; + font-size: 20rpx; +} +.btn-box{ + width: 100%; + height: 102rpx; + padding: 0 40rpx; + font-size: 20rpx; + line-height: 28rpx; + color: #A7A7A7; +} +.toMore-btn{ + width: 164rpx; + height: 54rpx; + background: linear-gradient(141deg, #FFA782 0%, #FF6D31 100%); + border-radius: 8rpx; + font-size: 28rpx; + font-weight: bold; + line-height: 54rpx; + color: #FFFFFF; + text-align: center; +} + +.company-list{ + width: 100%; + background: #fff; +} +.company-item{ + width: 100%; + padding: 26rpx; + border-bottom: 2rpx solid #EEEEEE; +} +.company-item .title-box{ + padding: 0; +} +.title-box .title{ + width: 430rpx; +} +.title-box .price{ + margin: 0; + color: #FF5100; + line-height: 40rpx; + font-weight: 600; +} +.company-item .tags-box{ + margin: 20rpx 0; +} +.company-item .tags-box .tag-item{ + width: 112rpx; + height: 36rpx; + display: inline-block; + line-height: 34rpx; + text-align: center; + font-size: 20rpx; + border: 1rpx solid #FFAA00; + color: #FFAA00; + background: #fff; + border-radius: 4rpx; + margin-right: 8rpx; +} +.company-item .tags-box .bgG{ + border: 1rpx solid #3A9EFA; + color: #3A9EFA; +} +.company-item .tags-box .bgO{ + border: 1rpx solid #FC9367; + color: #FC9367; +} +.desc{ + font-size: 24rpx; + line-height: 32rpx; + color: #666666; +} +.company-item .btn-box{ + margin-top: 0rpx; + font-size: 24rpx; + color: #707070; + padding: 0; +} \ No newline at end of file diff --git a/pages/demandHall/index.js b/pages/demandHall/index.js new file mode 100644 index 0000000..544cab3 --- /dev/null +++ b/pages/demandHall/index.js @@ -0,0 +1,89 @@ +// pages/demandHall/index.js +const app = getApp(); +Page({ + + /** + * 页面的初始数据 + */ + data: { + tabbar: {}, + active: 2, + tabActive: 2, + showScreenDialog: false + }, + topTabClick(e){ + this.setData({ + active: e.currentTarget.dataset.i + }) + }, + tabClick(e){ + this.setData({ + tabActive: e.currentTarget.dataset.i + }) + }, + showDialog(){ + this.setData({ + showScreenDialog: true + }) + }, + finishClick(){ + this.setData({ + showScreenDialog: false + }) + }, + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + app.editTabbar(); + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/demandHall/index.json b/pages/demandHall/index.json new file mode 100644 index 0000000..d335953 --- /dev/null +++ b/pages/demandHall/index.json @@ -0,0 +1,6 @@ +{ + "usingComponents": { + "tabbar": "../../tabbarComponent/tabbar" + }, + "navigationBarTitleText": "供需大厅" +} \ No newline at end of file diff --git a/pages/demandHall/index.wxml b/pages/demandHall/index.wxml new file mode 100644 index 0000000..e6b4f49 --- /dev/null +++ b/pages/demandHall/index.wxml @@ -0,0 +1,139 @@ + + + + 资源供应 + 需求广场 + + + + + + + + + + 资源列表 + 企业列表 + + + IT软件 · 企业网站 + + 筛选 + + + + + + + + 教育类学校官网网站建设 + + 网站建设 + + 针对中小学教育机构、课外培训辅导机构。 + ¥20,000 + + 出牛科技 + 武汉 + + 了解详情 + + + + + + 教育类学校官网网站建设 + + 网站建设 + IT软件 + APP开发 + + 针对中小学教育机构、课外培训辅导教育机构、课学教育机构、课外培训辅导教育机构、课外培训辅导机构。 + + + + 购物商城优秀资源 + + + + 购物商城优秀资源 + + + “非常有责任心” , “老板阅历和经验很丰富”,“很好” + + + + + + + + IT软件 · 企业网站 + + 筛选 + + + + + + + 我需要公司官网设计需要公司官网设计需要公司官网设计 + ¥20,000 + + + 网站建设 + IT软件 + APP开发 + + 针对中小学教育机构、课外培训辅导机构。 + + 2021.8.30截止报名 + 了解详情 + + + + + + + + + 所有服务 + + IT软件 + + + + 主题 + + 网站开发 + + + + 选择城市 + + 武汉 + + + + 区间价格 + + + + + + + + 商家身份(所有商家均实名认证) + + 个人认证 + 企业认证 + + + + 重置 + 完成 + + + + + + \ No newline at end of file diff --git a/pages/demandHall/index.wxss b/pages/demandHall/index.wxss new file mode 100644 index 0000000..5c39ef7 --- /dev/null +++ b/pages/demandHall/index.wxss @@ -0,0 +1,313 @@ +/* pages/demandHall/index.wxss */ +.dmandhall-page{ + padding-bottom: 130rpx; + min-height: 100vh; + font-size: 28rpx; + background: #F5F5F5; +} +.top-box{ + width: 100%; + padding: 0 40rpx; + background: #fff; +} +.top-l-box{ + +} +.tab-item{ + width: 162rpx; + height: 40rpx; + line-height: 40rpx; + text-align: center; + margin-right: 12rpx; + font-size: 28rpx; + color: #BFBFBF; +} +.tab-item-a{ + font-size: 36rpx; + color: #FF5100; +} +.top-r-box image{ + width: 36rpx; + height: 36rpx; + margin-left: 30rpx; +} +.resource-tabs{ + width: 100%; + padding-top: 40rpx; + background: #fff; + border-bottom: 2rpx solid #EEEEEE; +} +.tab{ + width: 162rpx; + padding: 26rpx 0; + font-size: 28rpx; + color: #BFBFBF; + position: relative; +} +.tab::after{ + display: block; + content: ''; + width: 50rpx; + height: 16rpx; + border-radius: 8rpx; + background: #FF5100; + position: absolute; + bottom: -8rpx; + left: 50%; + margin-left: -50rpx; + opacity: 0; + transform:scaleX(0); + transition: all .2s cubic-bezier(.18,.89,.17,.88),opacity .15s ease; +} +.tab-a{ + color: #333; +} +.tab-a::after{ + opacity: 1; + transform: scaleX(1); +} + +.screen-box{ + width: 100%; + height: 94rpx; + padding: 0 38rpx; + color: #666; + background: #fff; +} +.screen-result{ + font-size: 28rpx; + color: #FF5100; +} +.screen image{ + width: 27rpx; + height: 27rpx; + margin-left: 6rpx; +} + +.resource-list{ + width: 100%; + padding: 24rpx 40rpx; +} +.resource-item{ + width: 100%; + min-height: 302rpx; + background: #fff; + border-radius: 12rpx; + padding: 20rpx; + margin-bottom: 20rpx; + position: relative; +} +.resource-item image{ + width: 154rpx; + height: 154rpx; + margin-right: 20rpx; +} +.resource-info{ + width: calc(100% - 170rpx); +} +.resource-item .title{ + font-size: 32rpx; + font-weight: 500; + line-height: 44rpx; + color: #1D1D1D; +} +.desc{ + font-size: 24rpx; + color: #666666; + line-height: 34rpx; +} +.price{ + color: #FF5100; + line-height: 40rpx; + font-weight: 600; + margin: 10rpx 0 40rpx; +} +.company-info{ + color: #A7A7A7; + font-size: 24rpx; +} +.company-info text{ + display: inline-block; + margin-right: 18rpx; +} +.tags-box{ + margin: 6rpx 0 10rpx; +} +.tag-item{ + width: 112rpx; + height: 36rpx; + display: inline-block; + line-height: 34rpx; + text-align: center; + font-size: 20rpx; + border: 1rpx solid #FFAA00; + color: #FFAA00; + border-radius: 4rpx; + margin-right: 8rpx; +} +.bgG{ + border: 1rpx solid #3A9EFA; + color: #3A9EFA; +} +.bgO{ + border: 1rpx solid #FC9367; + color: #FC9367; +} +.toMore-btn{ + width: 164rpx; + height: 44rpx; + background: linear-gradient(141deg, #FFA782 0%, #FF6D31 100%); + border-radius: 8rpx; + font-size: 28rpx; + font-weight: bold; + line-height: 40rpx; + color: #FFFFFF; + text-align: center; + line-height: 44rpx; + position: absolute; + right: 20rpx; + bottom: 20rpx; +} +.anli-list{ + font-size: 24rpx; + color: #666; + margin: 24rpx 0 20rpx; +} +.anli-item image{ + width: 222rpx; + height: 136rpx; + margin-right: 0rpx; +} +.comment{ + font-size: 20rpx; + color: #FF6D31; +} +.company-list-box{ + width: 100%; + background: #fff; +} +.company-list{ + width: 100%; + border-top: 2rpx solid #EEEEEE; +} +.company-item{ + width: 100%; + padding: 40rpx; + border-bottom: 2rpx solid #EEEEEE; +} +.title-box .title{ + width: 550rpx; +} +.title-box .price{ + margin: 0; +} +.company-item .tags-box{ + margin: 20rpx 0; +} +.btn-box{ + margin-top: 20rpx; + font-size: 24rpx; + color: #707070; +} +.btn-box .toMore-btn{ + position: static; +} + +.mask-box{ + width: 100%; + height: 100vh; + background: rgba(0,0,0,.6); + position:fixed; + top: 0; + left: 0; +} +.screen-dialog-box{ + width: 602rpx; + height: 100%; + padding-bottom: 160rpx; + overflow-y: scroll; + background-color: #fff; + position: absolute; + top: 0; + right: 0rpx; + /* transform: translateX(800rpx); */ + /* transition: all 1000ms ease; */ + animation: move 200ms ease; +} +/* .move{ + right: 0rpx; +} */ +@keyframes move{ + 0%{ + transform: translateX(800rpx); + } + 100%{ + transform: translateX(0rpx); + } +} +.screen-item{ + width: 100%; + padding: 0 38rpx; + padding-bottom: 22rpx; + border-bottom: 2rpx solid #EEEEEE; +} +.screen-title{ + font-size: 24rpx; + color: #000; + margin-bottom: 32rpx; +} +.screen-item{ + padding-top: 40rpx; +} + +.screen-item .item{ + width: 162rpx; + height: 48rpx; + line-height: 48rpx; + text-align: center; + font-size: 24rpx; + color: #666666; + background: #F6F6F6; + border-radius: 4rpx; + margin-bottom: 20rpx; + margin-right: 20rpx; +} +.screen-item .item:nth-child(3n){ + margin-right: 0; +} +.across-line{ + width: 44rpx; + height: 2rpx; + background: #ACABAB; + margin: 0 12rpx; +} +.low-price{ + width: 228rpx; + height: 60rpx; + background: #F6F5F5; + border-radius: 4rpx; +} +.low-price input{ + width: 100%; + height: 100%; + text-align: center; +} +.fz20{ + font-size: 20rpx; + color: #393939; +} +.submit-box{ + width: 100%; + height: 100rpx; + box-shadow: 2rpx 0px 12rpx rgba(0, 0, 0, 0.16); +} +.submit-box .btn{ + width: 50%; + height: 100%; + line-height: 100rpx; + text-align: center; +} +.submit-box .finish{ + background: #FF660C; + color: #fff; +} \ No newline at end of file diff --git a/pages/demandHall/needsDetail/index.js b/pages/demandHall/needsDetail/index.js new file mode 100644 index 0000000..2521cbc --- /dev/null +++ b/pages/demandHall/needsDetail/index.js @@ -0,0 +1,66 @@ +// pages/demandHall/needsDetail/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + isCompany: true + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/demandHall/needsDetail/index.json b/pages/demandHall/needsDetail/index.json new file mode 100644 index 0000000..f7e0881 --- /dev/null +++ b/pages/demandHall/needsDetail/index.json @@ -0,0 +1,6 @@ +{ + "usingComponents": {}, + "navigationBarTitleText": "需求详情", + "navigationBarBackgroundColor": "#FF5100", + "navigationBarTextStyle": "white" +} \ No newline at end of file diff --git a/pages/demandHall/needsDetail/index.wxml b/pages/demandHall/needsDetail/index.wxml new file mode 100644 index 0000000..11a12e7 --- /dev/null +++ b/pages/demandHall/needsDetail/index.wxml @@ -0,0 +1,75 @@ + + + + 10天20小时60分60秒后截止报名 + + + 需求标题: + 我需要举办大型会议的场地 + + + 需求类型: + 场地租赁 + + + 需求预算: + 10000元 + + + 需求描述: + 本人于十一期间(10.1-10.4)需要武汉周边能够举办百人大型会议的场地。需要酒水食品供应与住宿供应。 + + + + + + + + 发布公司 + + + + + 楚牛科技 + + 网站建设 + IT软件 + + + + + + + + + 发布人 + + + + + + 禅易家人 + + + + 广州·能量大使 + + + + + + + 补充内容 + + + + + + 有关问答 + + + + + 立即报名 + + diff --git a/pages/demandHall/needsDetail/index.wxss b/pages/demandHall/needsDetail/index.wxss new file mode 100644 index 0000000..aad7754 --- /dev/null +++ b/pages/demandHall/needsDetail/index.wxss @@ -0,0 +1,143 @@ +/* pages/demandHall/needsDetail/index.wxss */ +.top-box{ + width: 100%; + padding: 0 40rpx 40rpx; + background: linear-gradient(180deg, #FF5100 0%, #FFA782 100%); +} +.count-down-box{ + text-align: right; + color: #FFFFFF; + font-size: 24rpx; + padding: 30rpx 0; +} +.needs-info{ + width: 100%; + padding: 24rpx 20rpx; + background: #fff; + font-size: 28rpx; + color: #1D1D1D; + line-height: 34rpx; + border-radius: 12rpx; +} +.info-item{ + display: flex; + align-items: top; + margin-bottom: 20rpx; +} +.item-l{ + color: #707070; +} +.item-r{ + width: 484rpx; + margin-left: 16rpx; +} +.content-box{ + width: 100%; + padding: 40rpx; +} +.tag{ + width: 216rpx; + height: 48rpx; + line-height: 48rpx; + text-align: center; + font-size: 24rpx; + color: #fff; + background: linear-gradient(314deg, #FF5100 0%, #FF8800 100%); + border-radius: 8rpx; + margin: 16rpx 0; +} +.col-line{ + width: 8rpx; + height: 36rpx; + background: #FF7942; + border-radius: 4rpx; + margin-right: 14rpx; +} + +.colG{ + font-size: 28rpx; + line-height: 40rpx; + color: #707070; + margin-left: 20rpx; +} +.mt40{ + margin-top: 40rpx; +} +.company-card-box { + padding: 30rpx 12rpx; + margin-top: 34rpx; + box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2); +} +.company-logo{ + width: 150rpx; + height: 150rpx; + margin-right: 20rpx; +} +.name{ + font-size: 32rpx; + line-height: 44rpx; +} +.slogan{ + font-size: 24rpx; + line-height: 34rpx; + color: #666; + margin: 4rpx 0 12rpx; +} +.tags-box{ + margin: 6rpx 0 10rpx; +} +.tag-item{ + width: 112rpx; + height: 36rpx; + display: inline-block; + line-height: 36rpx; + text-align: center; + font-size: 20rpx; + background: linear-gradient(312deg, #FFB788 0%, #F9C8A7 100%); + color: #fff; + border-radius: 4rpx; + margin-right: 8rpx; +} +.bgG{ + background: linear-gradient(134deg, #AEC8F6 0%, #76A6FA 100%); +} +.user-name{ + +} +.header-img{ + width: 120rpx; + height: 120rpx; + border-radius: 50%; + margin-right: 20rpx; +} +.user-name image{ + width: 134rpx; + height: 38rpx; + margin-left: 12rpx; +} +.user-name .tyg-tag{ + width: 164rpx; +} +.btn-box{ + width: 100%; + height: 150rpx; + line-height: 150rpx; + align-self: center; + background: #fff; + border-top: 1rpx solid #ececec; + text-align: right; + padding-right: 52rpx; + position: fixed; + bottom: 0; +} +.contact-btn{ + display: inline-block; + width: 240rpx; + height: 88rpx; + text-align: center; + line-height: 88rpx; + background: linear-gradient(134deg, #FFA782 0%, #FF6D31 100%); + border-radius: 12rpx; + font-size: 32rpx; + color: #fff; +} \ No newline at end of file diff --git a/pages/demandHall/resourcesDetail/index.js b/pages/demandHall/resourcesDetail/index.js new file mode 100644 index 0000000..2583f29 --- /dev/null +++ b/pages/demandHall/resourcesDetail/index.js @@ -0,0 +1,66 @@ +// pages/demandHall/resourcesDetail/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/demandHall/resourcesDetail/index.json b/pages/demandHall/resourcesDetail/index.json new file mode 100644 index 0000000..06d2dec --- /dev/null +++ b/pages/demandHall/resourcesDetail/index.json @@ -0,0 +1,4 @@ +{ + "usingComponents": {}, + "navigationBarTitleText": "资源详情" +} \ No newline at end of file diff --git a/pages/demandHall/resourcesDetail/index.wxml b/pages/demandHall/resourcesDetail/index.wxml new file mode 100644 index 0000000..7dc2376 --- /dev/null +++ b/pages/demandHall/resourcesDetail/index.wxml @@ -0,0 +1,53 @@ + + + + + + + 教育类学校官网网站建设 + IT开发·网站建设 + + + 基本信息 + + + + 标题 + 教育类学校官网网站建设 + + + 资金需求 + 100万~150万 + + + + + 发布信息 + + + + + 楚牛科技 + + 网站建设 + IT软件 + + 让全世界全世界牛起全世界牛起全世界牛起牛起来。 + + + + + 详细描述 + + + 湖北楚牛科技有限公司成立于2010年3月,核心团队成员均来自业内相关的顶尖公司。楚牛的愿景是让我们的技术和产品能与合作伙伴一起拥抱全球化!\n\n\n本项目仅为有网站建设需求的中小学教育机构、幼儿课外培训辅导机构提供服务,对网站业务人群存在要求。本公司也提供其他业务,请另咨询客服。 + + + + 补充内容 + + + + 立即沟通 + + diff --git a/pages/demandHall/resourcesDetail/index.wxss b/pages/demandHall/resourcesDetail/index.wxss new file mode 100644 index 0000000..2733756 --- /dev/null +++ b/pages/demandHall/resourcesDetail/index.wxss @@ -0,0 +1,127 @@ +/* pages/demandHall/resourcesDetail/index.wxss */ +.resourcesDetail-page{ + padding-bottom: 150rpx; + position: relative; +} +.btn-box{ + width: 100%; + height: 150rpx; + line-height: 150rpx; + align-self: center; + background: #fff; + border-top: 1rpx solid #ececec; + text-align: right; + padding-right: 52rpx; + position: fixed; + bottom: 0; +} +.contact-btn{ + display: inline-block; + width: 240rpx; + height: 88rpx; + text-align: center; + line-height: 88rpx; + background: linear-gradient(134deg, #FFA782 0%, #FF6D31 100%); + border-radius: 12rpx; + font-size: 32rpx; + color: #fff; +} +.img-box{ + width: 100%; + height: 392rpx; +} +.img-box image{ + width: 100%; + height: 100%; +} +.detail-box{ + padding: 34rpx 40rpx; +} +.r-name{ + font-size: 40rpx; + line-height: 56rpx; + color: #1D1D1D; +} +.tag{ + width: 216rpx; + height: 48rpx; + line-height: 48rpx; + text-align: center; + font-size: 24rpx; + color: #fff; + background: linear-gradient(314deg, #FF5100 0%, #FF8800 100%); + border-radius: 8rpx; + margin: 16rpx 0; +} +.col-line{ + width: 8rpx; + height: 36rpx; + background: #FF7942; + border-radius: 4rpx; + margin-right: 14rpx; +} +.info-item{ + margin-top: 20rpx; + font-size: 28rpx; + line-height: 40rpx; + color: #1D1D1D; +} +.label{ + width: 144rpx; +} +.colG{ + font-size: 28rpx; + line-height: 40rpx; + color: #707070; + margin-left: 20rpx; +} +.mt40{ + margin-top: 40rpx; +} +.company-card-box { + padding: 30rpx 12rpx; + margin-top: 34rpx; + box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2); +} +.company-logo{ + width: 150rpx; + height: 150rpx; + margin-right: 20rpx; +} +.name{ + font-size: 32rpx; + line-height: 44rpx; +} +.slogan{ + font-size: 24rpx; + line-height: 34rpx; + color: #666; + margin: 4rpx 0 12rpx; +} +.tags-box{ + margin: 6rpx 0 10rpx; +} +.tag-item{ + width: 112rpx; + height: 36rpx; + display: inline-block; + line-height: 36rpx; + text-align: center; + font-size: 20rpx; + background: linear-gradient(312deg, #FFB788 0%, #F9C8A7 100%); + color: #fff; + border-radius: 4rpx; + margin-right: 8rpx; +} +.bgG{ + background: linear-gradient(134deg, #AEC8F6 0%, #76A6FA 100%); +} +.desc-box{ + /* padding: 0rpx 40rpx; */ + margin-top: 34rpx; +} +.desc-box text{ + font-size: 28rpx; + color: #707070; + line-height: 40rpx; +} \ No newline at end of file diff --git a/pages/index/index.js b/pages/index/index.js index 6d24502..2999a77 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -4,61 +4,36 @@ const app = getApp() Page({ data: { - motto: 'Hello World', - userInfo: {}, - hasUserInfo: false, - canIUse: wx.canIUse('button.open-type.getUserInfo'), - canIUseGetUserProfile: false, - // canIUseOpenData: wx.canIUse('open-data.type.userAvatarUrl') && wx.canIUse('open-data.type.userNickName') // 如需尝试获取用户信息可改为false - canIUseOpenData:false + tabbar: {}, + menuList:[ + { icon:'../../images/home/menu1.png',text: 'IT制作'}, + { icon:'../../images/home/menu2.png', text: 'logo设计' }, + { icon:'../../images/home/menu3.png', text: '文案策划' }, + { icon:'../../images/home/menu4.png', text: 'app开发' }, + { icon:'../../images/home/menu5.png', text: '装修服务' }, + { icon:'../../images/home/menu6.png', text: '软件定制' }, + { icon:'../../images/home/menu7.png', text: '法律服务' }, + { icon:'../../images/home/menu8.png', text: '小程序' }, + { icon:'../../images/home/menu9.png', text: '网络营销' }, + { icon:'../../images/home/menu10.png', text: '全部分类' } + ], + CustomBar: app.globalData.CustomBar, + menuHeight: app.globalData.menuHeight, + navHeight: app.globalData.navHeight, + menuTop: app.globalData.menuTop, + active: 2 }, onLoad() { - if (wx.getUserProfile) { - this.setData({ - canIUseGetUserProfile: true - }) - } + app.editTabbar(); }, - getUserProfile(e) { - // 推荐使用wx.getUserProfile获取用户信息,开发者每次通过该接口获取用户个人信息均需用户确认,开发者妥善保管用户快速填写的头像昵称,避免重复弹窗 - wx.getUserProfile({ - desc: '展示用户信息', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写 - success: (response) => { - console.log('response',response) - wx.login({ - success: res => { - // 发送 res.code 到后台换取 openId, sessionKey, unionId - console.log('code:',res.code) - let data = { - code: res.code, - iv: response.iv, - encryptedData:response.encryptedData, - spread: 0, - login_type: 0 - } - app.http('POST','wxapp/auth',data).then( - result =>{ - if(result.data.isSuccess){ - wx.setStorageSync('token', 'Bearer '+ result.data.data.token); - } else{ - wx.showToast({ - title: result.data.msg, - icon : 'none' - }) - } - } - ) - } - }) - } + tabClick(e){ + this.setData({ + active: e.currentTarget.dataset.i }) }, - getUserInfo(e) { - // 不推荐使用getUserInfo获取用户信息,预计自2021年4月13日起,getUserInfo将不再弹出弹窗,并直接返回匿名的用户个人信息 - console.log('e',e) - this.setData({ - userInfo: e.detail.userInfo, - hasUserInfo: true + toTab2(){ + wx.switchTab({ + url: '/pages/demandHall/index', }) - } + }, }) diff --git a/pages/index/index.json b/pages/index/index.json index 8835af0..46c67bf 100644 --- a/pages/index/index.json +++ b/pages/index/index.json @@ -1,3 +1,6 @@ { - "usingComponents": {} + "usingComponents": { + "tabbar": "../../tabbarComponent/tabbar" + }, + "navigationStyle": "custom" } \ No newline at end of file diff --git a/pages/index/index.wxml b/pages/index/index.wxml index f00d294..d0c52eb 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -1,23 +1,152 @@ - - - - - - + + + + 禅意云生态 + + + + + 定位 + + + + 大家都在搜 APP开发 + + - - - - - - 请使用1.4.4及以上版本基础库 - - - - {{userInfo.nickName}} - + + + + + {{item.text}} + + + + + + + + + + 2021秋季招商会 + + + + 全部 + + + + + + + + + 人工智能 + 人工智能 + + + + + 武汉国际会展中心 + + + + 2021.07.31 - 2022-11-30 + + + + + + + + + 尊享福利 + + + + + + + + 保时捷Porsche-Panamera 4S E-Hybrid 行政加长版 + 武汉光谷保时捷中心 + + + 140万 + 市场价约为¥157万 + + + 立即抢购 + + + + + + 保时捷Porsche-Panamera 4S E-Hybrid 行政加长版 + 武汉光谷保时捷中心 + + + 140万 + 市场价约为¥157万 + + + 立即抢购 + + + + + + + + + 最新供应 + 需求广场 + 金牌投资人 + + + + + 公司企业网站建设 wab网站... + IT软件·网站建设 + 可在现有网站基础上进行界面与功能的优化升级,多种视觉风格可供挑选。 + 了解详情 + + + + + 焦点科技 + 成为奋斗者的家园 + + 网站建设 + 网站建设 + 网站建设 + + + + + 进入企业 + + + + + + + + 公司企业网站建设 wab网站... + 可在现有网站基础上进行界面与功能的优化升级,多种视觉风格可供挑选。 + + 网站建设 + 网站建设 + 网站建设 + + ¥20,000 + + + - - {{motto}} + + 更多内容去供需大厅 + - + + \ No newline at end of file diff --git a/pages/index/index.wxss b/pages/index/index.wxss index eb64203..a645204 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -1,19 +1,380 @@ -/**index.wxss**/ -.userinfo { - display: flex; - flex-direction: column; - align-items: center; - color: #aaa; + +.home-page{ + padding-bottom: 130rpx; +} +.page-top-box{ + width: 100%; + height: 598rpx; + position: relative; +} +.page-title{ + width: 100%; + color: #fff; + text-align: center; + position: relative; +} +.top-bg{ + width: 100%; + height: 598rpx; + position: absolute; +} +.top-box-content{ + position: relative; +} +.search-box{ + color: #fff; + font-size: 32rpx; + padding: 0 60rpx 0 40rpx; +} +.localtion-box image{ + width: 26rpx; + height: 31rpx; + margin-right: 10rpx; +} +.search{ + width: 448rpx; + height: 68rpx; + font-size: 28rpx; + padding: 16rpx 20rpx; + background: rgba(255, 255, 255, 0.38); + border-radius: 8rpx; +} +.search image{ + width: 35rpx; + height: 35rpx; + margin-right: 16rpx; +} +.message-icon{ + width: 36rpx; + height: 36rpx; +} +.home-menu-box{ + width: 670rpx; + height: 286rpx; + background: #FFFFFF; + box-shadow: 0px 6rpx 20rpx rgba(151, 69, 34, 0.28); + border-radius: 12rpx; + margin: 38rpx auto 0; + padding: 42rpx; +} +.menu-list{ + color: #1D1D1D; + font-size: 24rpx; +} +.menu-item{ + width: 98rpx; + margin-right:16rpx; + margin-bottom: 34rpx; +} +.menu-item:nth-child(5n){ + margin-right: 0; +} +.menu-item image{ + width: 52rpx; + height: 52rpx; +} + +.investment-box{ + width: 100%; + padding-left: 40rpx; +} +.investment-title-box{ + width: 100%; + padding-right: 40rpx; +} +.fz32{ + font-size: 32rpx; + color: #1D1D1D; +} +.hot{ + width: 26rpx; + height: 26rpx; + text-align: center; + line-height: 26rpx; + background: linear-gradient(147deg, #FB7E4A 0%, #FF5100 100%); + border-radius: 8rpx 0px 8rpx 0px; + font-size: 18rpx; + color: #fff; + margin-left: 16rpx; +} +.more{ + font-size: 24rpx; + color: #999999; +} +.more image{ + width: 9rpx; + height: 16rpx; + margin-left: 12rpx; + margin-top: 2rpx; +} +.investement-list{ + width: 100%; + margin-top: 34rpx; +} +.scroll-view_H{ + white-space: nowrap; + width: 100%; +} +.investment-item{ + display: inline-block; + width: 324rpx; + height: 408rpx; + margin-right:20rpx; + box-shadow: 0px 6rpx 12rpx rgba(0, 0, 0, 0.16); + border-radius: 8rpx; + position: relative; +} +.investment-item .item-bg{ + width: 324rpx; + height: 408rpx; + position: absolute; +} +.tips-box{ + position: relative; + top: 20rpx; +} +.tips-item{ + padding: 6rpx 10rpx; + line-height: 28rpx; + font-size: 20rpx; + color: #fff; + background: rgba(255, 81, 0, 0.63); + border-radius: 8rpx; + margin-right: 14rpx; +} +.bg2{ + background: rgba(255, 170, 0, 0.63); +} +.item-info-box{ + width: 300rpx; + height: 102rpx; + background: rgba(255, 255, 255, 0.8); + box-shadow: 0px 6rpx 12rpx rgba(0, 0, 0, 0.2); + border-radius: 8rpx; + position: absolute; + bottom: 18rpx; + left: 50%; + margin-left: -150rpx; + font-size: 22rpx; + color: #404040; +} +.item-info-box image{ + width: 14rpx; + height: 17rpx; + margin: 0 12rpx 0 12rpx; +} + +.welfare-box{ + width: 100%; + padding-left: 40rpx; + margin-top: 52rpx; +} +.welfare-title{ + font-size: 32rpx; + color: #1D1D1D; + margin-bottom: 38rpx; +} +.welfare-list-box{ + width: 100%; +} +.welfare-item{ + display: inline-block; + margin-right: 6rpx; + padding: 12rpx; +} +.item-box{ + width: 650rpx; + height: 248rpx; + background: #FFFFFF; + box-shadow: 0px 0rpx 12rpx rgba(0, 0, 0, 0.16); + padding: 22rpx 16rpx; + border-radius: 12rpx; + margin-bottom: 20rpx; + position: relative; +} +.buy-btn{ + width: 144rpx; + height: 52rpx; + text-align: center; + line-height: 52rpx; + background: linear-gradient(315deg, #FB966C 0%, #FFC2AA 100%); + border-radius: 12rpx; + color: #fff; + font-size: 24rpx; + position: absolute; + bottom: 30rpx; + right: 30rpx; +} +.item-box image{ + width: 198rpx; + height: 204rpx; + margin-right: 12rpx; +} +.welfare-info-box{ + width: 394rpx; +} +.w-name{ + width: 390rpx; + font-size: 28rpx; + line-height: 40rpx; + color: #1D1D1D; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical; +} +.w-address{ + font-size: 24rpx; + line-height: 34rpx; + color: #707070; + margin: 8rpx 0 14rpx; +} +.w-price{ + font-size: 28rpx; + font-weight: bold; + line-height: 40rpx; + color: #FF7942; +} +.w-oldPrice{ + font-size: 20rpx; + color: #BCBCBC; + text-decoration: line-through; } -.userinfo-avatar { +.demandhall-box{ + width: 100%; + padding: 40rpx; +} +.tabs-box{ + padding-left: 30rpx; + padding-right: 12rpx; +} +.tab-item{ + font-size: 28rpx; + color: #9C9C9C; + padding-bottom: 8rpx; +} +.tab-item-a{ + color: #1D1D1D; + border-bottom: 4rpx solid #FF7942; +} +.list-box{ + width: 100%; + margin-top: 36rpx; +} +.item{ + width: 670rpx; + background: #FFFFFF; + box-shadow: 0px 6rpx 12rpx rgba(190, 190, 190, 0.3); + border-radius: 12rpx; + padding: 28rpx 20rpx 18rpx; +} +.item-top{ + padding-bottom: 24rpx; + position: relative; +} +.project-name{ + width: 400rpx; overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + font-size: 28rpx; + line-height: 40rpx; + color: #1D1D1D; +} +.tags-box2{ + margin-top: 12rpx; +} +.price{ + color: #FF5100; + font-size: 28rpx; + position: absolute; + top: 0; + right: 0rpx; +} +.tag{ + color: #74BDF7; + font-size: 20rpx; + line-height: 28rpx; + margin: 12rpx 0 20rpx; +} +.desc{ + font-size: 24rpx; + line-height: 34rpx; + color: #666666; +} +.company-box{ + padding-top: 12rpx; + position: relative; + + border-top: 2rpx solid #ECECEC; +} +.company-box image{ width: 128rpx; height: 128rpx; - margin: 20rpx; - border-radius: 50%; } - -.usermotto { - margin-top: 200px; -} \ No newline at end of file +.fz28{ + font-size: 28rpx; + line-height: 40rpx; + color: #1D1D1D; +} +.fz24{ + font-size: 24rpx; + line-height: 34rpx; +} +.fz20{ + font-size: 20rpx; + line-height: 28rpx; +} +.company-info{ + margin-left: 12rpx; +} +.item-top .buy-btn{ + top: 0; +} +.into-btn{ + font-size: 20rpx; + color: #FF5100; + width: 144rpx; + height: 40rpx; + border: 1rpx solid #FF5100; + opacity: 1; + border-radius: 20rpx; + position: absolute; + top: 18rpx; + right: 0rpx; +} +.into-btn image{ + width: 21rpx; + height: 19rpx; + margin-right: 6rpx; +} +.tag-item{ + width: 112rpx; + height: 36rpx; + line-height: 34rpx; + text-align: center; + border: 1rpx solid #FFAA00; + color: #FFAA00; + border-radius: 4rpx; + margin-right: 8rpx; +} +.bgG{ + border: 1rpx solid #3A9EFA; + color: #3A9EFA; +} +.bgO{ + border: 1rpx solid #FC9367; + color: #FC9367; +} +.to-demandhall{ + font-size: 28rpx; + color: #A7A7A7; + margin-bottom: 28rpx; +} +.to-demandhall image{ + width: 13rpx; + height: 23rpx; + margin-left: 15rpx; +} diff --git a/pages/life/index.js b/pages/life/index.js new file mode 100644 index 0000000..1d781b9 --- /dev/null +++ b/pages/life/index.js @@ -0,0 +1,67 @@ +// pages/life/index.js +const app = getApp(); +Page({ + + /** + * 页面的初始数据 + */ + data: { + tabbar:{} + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + app.editTabbar(); + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/life/index.json b/pages/life/index.json new file mode 100644 index 0000000..26b8ebb --- /dev/null +++ b/pages/life/index.json @@ -0,0 +1,5 @@ +{ + "usingComponents": { + "tabbar": "../../tabbarComponent/tabbar" + } +} \ No newline at end of file diff --git a/pages/life/index.wxml b/pages/life/index.wxml new file mode 100644 index 0000000..8223cda --- /dev/null +++ b/pages/life/index.wxml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/pages/life/index.wxss b/pages/life/index.wxss new file mode 100644 index 0000000..62946f6 --- /dev/null +++ b/pages/life/index.wxss @@ -0,0 +1 @@ +/* pages/life/index.wxss */ \ No newline at end of file diff --git a/pages/release/companyAuth/index.js b/pages/release/companyAuth/index.js new file mode 100644 index 0000000..80dead8 --- /dev/null +++ b/pages/release/companyAuth/index.js @@ -0,0 +1,73 @@ +// pages/release/companyAuth/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + isLegal: 0, + form: { scale: '请选择'}, + scaleArr: [] + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + radioClick(e){ + console.log(e.detail.value) + this.setData({ + isLegal: e.detail.value + }) + }, + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/release/companyAuth/index.json b/pages/release/companyAuth/index.json new file mode 100644 index 0000000..53a075c --- /dev/null +++ b/pages/release/companyAuth/index.json @@ -0,0 +1,4 @@ +{ + "usingComponents": {}, + "navigationBarTitleText": "企业认证" +} \ No newline at end of file diff --git a/pages/release/companyAuth/index.wxml b/pages/release/companyAuth/index.wxml new file mode 100644 index 0000000..186ea7a --- /dev/null +++ b/pages/release/companyAuth/index.wxml @@ -0,0 +1,129 @@ + + + + + 申请人是否为企业法人 + + + + + + + 非法人申请需上传加盖公章的申请授权书 + + + + + + + + + 企业信息 + + 主体类型 + + + + + + 企业名称 + + + + + + 信用代码 + + + + + + 所在行业 + + + + + + 企业规模 + + + {{form.scale}} + + + + + 营业执照 + + + + + + + + 对公银行信息 + + 银行账号 + + + + + + 开户银行 + + + {{form.scale}} + + + + + 开户网点 + + + + + + + + 法人/申请人信息 + + 姓名 + + + + + + 手机号 + + + + + + 身份证号 + + + + + + 身份证 + + + + + + + + + + + + + + + + + 保存并提交 + diff --git a/pages/release/companyAuth/index.wxss b/pages/release/companyAuth/index.wxss new file mode 100644 index 0000000..51ad9cb --- /dev/null +++ b/pages/release/companyAuth/index.wxss @@ -0,0 +1,75 @@ +/* pages/release/companyAuth/index.wxss */ +.auth-page{ + +} +.is-legal-box{ + width: 100%; + padding: 30rpx 40rpx; +} +.is-legal-box label{ + margin-right: 40rpx; +} +.authbook-box{ + font-size: 28rpx; + color: #666; +} +.tips{ + margin: 40rpx 0; +} +.upload-box image{ + width: 332rpx; + height: 204rpx; +} +.splitLine{ + width: 100%; + height: 20rpx; + background-color: #eee; +} +.company-info-box{ + width: 100%; + padding: 32rpx 40rpx; +} +.title{ + font-size: 32rpx; + color: #1D1D1D; + margin-bottom: 38rpx; + font-weight: 500; +} +.form-item{ + font-size: 28rpx; + color: #666666; + padding: 16rpx 0; + border-bottom: 2rpx solid #EEEEEE; +} +.form-item .inp-box{ + width: 70%; + text-align: right; +} +.yyzz image{ + width: 670rpx; + height: 368rpx; + margin-top: 26rpx; +} +.noBorder{ + border: none; +} +.form-item .sfz{ + width: 100%; + margin-top: 26rpx; +} +.sfz image{ + width: 332rpx; + height: 205rpx; + margin-bottom: 10rpx; +} +.submit-btn{ + width: 670rpx; + height: 76rpx; + background: linear-gradient(144deg, #FFA782 0%, #FF5100 100%); + border-radius: 38rpx; + color: #fff; + font-size: 28rpx; + line-height: 76rpx; + text-align: center; + margin:40rpx auto; +} \ No newline at end of file diff --git a/pages/release/index.js b/pages/release/index.js new file mode 100644 index 0000000..63b5f94 --- /dev/null +++ b/pages/release/index.js @@ -0,0 +1,66 @@ +// pages/release/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/release/index.json b/pages/release/index.json new file mode 100644 index 0000000..965b8e8 --- /dev/null +++ b/pages/release/index.json @@ -0,0 +1,4 @@ +{ + "usingComponents": {}, + "navigationStyle": "custom" +} \ No newline at end of file diff --git a/pages/release/index.wxml b/pages/release/index.wxml new file mode 100644 index 0000000..479a67d --- /dev/null +++ b/pages/release/index.wxml @@ -0,0 +1,28 @@ + + + + 企业认证 + 个人认证 + + + + + ! + 请先完成认证 + + + ! + 注:完成企业认证后可以发布资源及需求,个人认证后只可发布需求 + + + + + + + + + + + + + diff --git a/pages/release/index.wxss b/pages/release/index.wxss new file mode 100644 index 0000000..dd93da3 --- /dev/null +++ b/pages/release/index.wxss @@ -0,0 +1,67 @@ +/* pages/release/index.wxss */ + +.auth-btn-box{ + width: 100%; + margin-top: 300rpx; +} +.auth-btn{ + width: 310rpx; + height: 101rpx; + background: linear-gradient(137deg, #FFCDB8 0%, #FF9060 100%); + border-radius: 12rpx; + display: flex; + align-items: center; + justify-content: center; + color: #fff; + margin-bottom: 50rpx; +} +.auth-btn image{ + width: 32rpx; + height: 32rpx; + transform: rotate(180deg); +} +.bgG{ + background: linear-gradient(137deg, #BFD7F9 0%, #A8C8F6 100%); +} +.posi{ + position: absolute; + width: 100%; + bottom: 100rpx; +} +.tips-box{ + /* margin-top: 15%; */ +} +.tips{ + color: #FF0000; + font-size: 20rpx; + padding-left: 54rpx; +} +.icon{ + width: 26rpx; + height: 26rpx; + border: 1rpx solid #FF0000; + text-align: center; + line-height: 22rpx; + border-radius: 50%; + font-size: 20rpx; + margin-right: 10rpx; +} +.btn-box{ + width: 100%; + padding: 0 36rpx; + margin-top: 28rpx; +} +.btn-box image{ + width: 320rpx; + height: 378rpx; +} +.btn-box .default{ + filter: grayscale(1); +} +.close { + text-align: center; +} +.close image{ + width: 88rpx; + height: 88rpx; +} \ No newline at end of file diff --git a/pages/release/perfectCompanyInfo/index.js b/pages/release/perfectCompanyInfo/index.js new file mode 100644 index 0000000..8779562 --- /dev/null +++ b/pages/release/perfectCompanyInfo/index.js @@ -0,0 +1,66 @@ +// pages/release/perfectCompanyInfo/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/release/perfectCompanyInfo/index.json b/pages/release/perfectCompanyInfo/index.json new file mode 100644 index 0000000..b91b89c --- /dev/null +++ b/pages/release/perfectCompanyInfo/index.json @@ -0,0 +1,4 @@ +{ + "usingComponents": {}, + "navigationBarTitleText": "完善企业信息" +} \ No newline at end of file diff --git a/pages/release/perfectCompanyInfo/index.wxml b/pages/release/perfectCompanyInfo/index.wxml new file mode 100644 index 0000000..eac4673 --- /dev/null +++ b/pages/release/perfectCompanyInfo/index.wxml @@ -0,0 +1,56 @@ + + + 企业简介 + + + + 企业地址* + 去选择地址 + + + + + + + + 企业logo* + + + + + + + + 企业slogan* + + + + + + + + 客服电话* + + + + + + + + 关于我们 + + + + + + + + 公司展示 + + + + + + + 保存并提交 + diff --git a/pages/release/perfectCompanyInfo/index.wxss b/pages/release/perfectCompanyInfo/index.wxss new file mode 100644 index 0000000..cb839bb --- /dev/null +++ b/pages/release/perfectCompanyInfo/index.wxss @@ -0,0 +1,75 @@ +/* pages/release/perfectCompanyInfo/index.wxss */ +.perfect-companyInfo-page{ + width: 100%; + padding: 24rpx 40rpx; + border-top: 2rpx solid #EEEEEE; +} +.title{ + color: #1D1D1D; + font-size: 32rpx; +} +.title::before{ + content: ''; + display: inline-block; + width: 8rpx; + height: 42rpx; + background: #FF7942; + border-radius: 4rpx; + margin-right: 10rpx; +} +.form-box{ + font-size: 28rpx; + color: #666666; +} +.form-item{ + margin-top: 22rpx; +} +.red{ + color: #FF0000; +} +.inp-box{ + width: 100%; + height: 60rpx; + background: #EEEEEE; + border-radius: 4rpx; + padding-left: 22rpx; + margin-top: 20rpx; +} +.inp-box input{ + width: 100%; + height: 100%; +} +.upload-box{ + width: 100%; + margin-top: 20rpx; + padding-bottom: 24rpx; + border-bottom: 2rpx solid #EEEEEE; +} +.upload-box image{ + width: 120rpx; + height: 120rpx; +} +.textarea-box{ + width: 100%; + height: 352rpx; + background: #EEEEEE; + border-radius: 4rpx; + padding: 22rpx; + margin-top: 20rpx; +} +.textarea-box textarea{ + width: 100%; + height: 100%; + line-height: 40rpx; +} +.submit-btn{ + width: 670rpx; + height: 76rpx; + background: linear-gradient(144deg, #FFA782 0%, #FF5100 100%); + border-radius: 38rpx; + color: #fff; + font-size: 28rpx; + line-height: 76rpx; + text-align: center; + margin:40rpx auto; +} \ No newline at end of file diff --git a/pages/release/perfectPersonInfo/index.js b/pages/release/perfectPersonInfo/index.js new file mode 100644 index 0000000..2cde96d --- /dev/null +++ b/pages/release/perfectPersonInfo/index.js @@ -0,0 +1,66 @@ +// pages/release/perfectPersonInfo/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/release/perfectPersonInfo/index.json b/pages/release/perfectPersonInfo/index.json new file mode 100644 index 0000000..e603909 --- /dev/null +++ b/pages/release/perfectPersonInfo/index.json @@ -0,0 +1,4 @@ +{ + "usingComponents": {}, + "navigationBarTitleText": "完善个人信息" +} \ No newline at end of file diff --git a/pages/release/perfectPersonInfo/index.wxml b/pages/release/perfectPersonInfo/index.wxml new file mode 100644 index 0000000..c64d6f6 --- /dev/null +++ b/pages/release/perfectPersonInfo/index.wxml @@ -0,0 +1,63 @@ + + + 个人(团队)简介 + + + + 团队规模* + + + + + + + 主要承接类型* + + + + + + + 承接时间* + + + + + + + + + 办公地址* + 去选择地址 + + + + + + + + 客服电话* + + + + + + + + 关于我们 + + + + + + + + 团队展示 + + + + + + + 保存并提交 + diff --git a/pages/release/perfectPersonInfo/index.wxss b/pages/release/perfectPersonInfo/index.wxss new file mode 100644 index 0000000..644291d --- /dev/null +++ b/pages/release/perfectPersonInfo/index.wxss @@ -0,0 +1,94 @@ +/* pages/release/perfectCompanyInfo/index.wxss */ +.perfect-companyInfo-page{ + width: 100%; + padding: 24rpx 40rpx; + border-top: 2rpx solid #EEEEEE; +} +.introduction-box{ + font-size: 28rpx; + color: #666666; + padding-bottom: 30rpx; + border-bottom: 2rpx solid #EEEEEE; +} +.introduction-item{ + margin-top: 20rpx; +} +.introduction-item input{ + width: 100rpx; + text-align: right; + +} +.introduction-item image{ + width: 13rpx; + height: 24rpx; + margin-left: 10rpx; +} +.title{ + color: #1D1D1D; + font-size: 32rpx; +} +.title::before{ + content: ''; + display: inline-block; + width: 8rpx; + height: 42rpx; + background: #FF7942; + border-radius: 4rpx; + margin-right: 10rpx; +} +.form-box{ + font-size: 28rpx; + color: #666666; +} +.form-item{ + margin-top: 22rpx; +} +.red{ + color: #FF0000; +} +.inp-box{ + width: 100%; + height: 60rpx; + background: #EEEEEE; + border-radius: 4rpx; + padding-left: 22rpx; + margin-top: 20rpx; +} +.inp-box input{ + width: 100%; + height: 100%; +} +.upload-box{ + width: 100%; + margin-top: 20rpx; + padding-bottom: 24rpx; + border-bottom: 2rpx solid #EEEEEE; +} +.upload-box image{ + width: 120rpx; + height: 120rpx; +} +.textarea-box{ + width: 100%; + height: 352rpx; + background: #EEEEEE; + border-radius: 4rpx; + padding: 22rpx; + margin-top: 20rpx; +} +.textarea-box textarea{ + width: 100%; + height: 100%; + line-height: 40rpx; +} +.submit-btn{ + width: 670rpx; + height: 76rpx; + background: linear-gradient(144deg, #FFA782 0%, #FF5100 100%); + border-radius: 38rpx; + color: #fff; + font-size: 28rpx; + line-height: 76rpx; + text-align: center; + margin:40rpx auto; +} \ No newline at end of file diff --git a/pages/release/personAuth/index.js b/pages/release/personAuth/index.js new file mode 100644 index 0000000..c20dbab --- /dev/null +++ b/pages/release/personAuth/index.js @@ -0,0 +1,66 @@ +// pages/release/personAuth/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/release/personAuth/index.json b/pages/release/personAuth/index.json new file mode 100644 index 0000000..5983287 --- /dev/null +++ b/pages/release/personAuth/index.json @@ -0,0 +1,4 @@ +{ + "usingComponents": {}, + "navigationBarTitleText" : "个人认证" +} \ No newline at end of file diff --git a/pages/release/personAuth/index.wxml b/pages/release/personAuth/index.wxml new file mode 100644 index 0000000..9bf9cdb --- /dev/null +++ b/pages/release/personAuth/index.wxml @@ -0,0 +1,41 @@ + + + + + 姓名 + + + + + + 手机号 + + + + + + 身份证号 + + + + + + 身份证 + + + + + + + + + + + + + + + + + 保存并提交 + diff --git a/pages/release/personAuth/index.wxss b/pages/release/personAuth/index.wxss new file mode 100644 index 0000000..ca35ffc --- /dev/null +++ b/pages/release/personAuth/index.wxss @@ -0,0 +1,2 @@ +/* pages/release/personAuth/index.wxss */ +@import "../companyAuth/index.wxss" \ No newline at end of file diff --git a/pages/user/index.js b/pages/user/index.js index 5481c7c..17e71c7 100644 --- a/pages/user/index.js +++ b/pages/user/index.js @@ -1,4 +1,4 @@ -// pages/user/index.js +// pages/life/index.js const app = getApp(); Page({ @@ -6,77 +6,20 @@ Page({ * 页面的初始数据 */ data: { - userInfo: {}, - pageData:{}, - rankList: [], - menuList: [ - {name: '需求优先', icon: '../../images/menu1.png'}, - {name: '收益分成', icon: '../../images/menu2.png'}, - {name: '上架特权', icon: '../../images/menu3.png'}, - {name: '活动特权', icon: '../../images/menu4.png'}, - {name: '精品项目', icon: '../../images/menu5.png'}, - {name: '专属推荐码', icon: '../../images/menu6.png'}, - {name: '会员特价', icon: '../../images/menu7.png'}, - {name: '专属活动', icon: '../../images/menu8.png'}, - {name: '增值收益', icon: '../../images/menu9.png'} - ], - shareFlag: false + tabbar: {}, + CustomBar: app.globalData.CustomBar, + menuHeight: app.globalData.menuHeight, + navHeight: app.globalData.navHeight, + menuTop: app.globalData.menuTop, }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { - this.setData({ - userInfo: wx.getStorageSync('userInfo') - }) - this.getPageData(); - this.getShareFlag(); - wx.hideShareMenu() - }, - getShareFlag(){ - app.http('get','user/getShareFlag').then((res)=>{ - if(res.data.success){ - this.setData({ - shareFlag: res.data.data - }) - } - }) - }, - getPageData(){ - app.http('get','user/myProfit').then((res)=>{ - if(res.data.success){ - if(res.data.data.userProfitList.length >= 3 ){ - this.setData({ - rankList: res.data.data.userProfitList.slice(3) - }) - console.log(res.data.data.userProfitList.slice(3)) - console.log(this.data.rankList) - } - - this.setData({ - pageData: res.data.data - }) - console.log(this.data.pageData[3]) - } - }) - }, - toMoreMenu(){ - wx.navigateTo({ - url: './agreement/index', - }) - }, - toIncomeDetail(){ - wx.navigateTo({ - url: './incomeDetail/index', - }) - }, - tixian(){ - wx.showToast({ - title: '提现功能暂未开放!', - icon: 'none' - }) + app.editTabbar(); }, + /** * 生命周期函数--监听页面初次渲染完成 */ @@ -122,18 +65,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function (res) { - if(this.data.shareFlag){ - return { - imageUrl: '../../images/shareImg.png', - path: '/pages/user/agreement/index?id='+this.data.userInfo.uid // 路径,传递参数到指定页面。 - } - } else{ - wx.showToast({ - title: '暂时不能分享哦~', - icon: 'none' - }) - } - + onShareAppMessage: function () { + } }) \ No newline at end of file diff --git a/pages/user/index.json b/pages/user/index.json index 81b2408..46c67bf 100644 --- a/pages/user/index.json +++ b/pages/user/index.json @@ -1,4 +1,6 @@ { - "usingComponents": {}, - "navigationStyle": "custom" + "usingComponents": { + "tabbar": "../../tabbarComponent/tabbar" + }, + "navigationStyle": "custom" } \ No newline at end of file diff --git a/pages/user/index.wxml b/pages/user/index.wxml index 56b4593..defb220 100644 --- a/pages/user/index.wxml +++ b/pages/user/index.wxml @@ -1,112 +1,145 @@ - - - - - - - - 我的特权 - - 查看所有特权 - + + + + 禅意云生态 + + + 企业中心 + + + - - - - - {{item.name}} + + + + 刘海柱 + + + - + + + + + 20 + 资源订单 + + + 203 + 我的审核 + + + 2 + 需求订单 + + + + - - - 我的收益 - - 查看我的收益详情 - + + + + + + 需求管理 + + 查看全部 + - - - - 累计邀请 - {{pageData.inviterCount}}人 - 查看 - - - - 累计收益 - {{pageData.brokeragePrice}}元 - 提现 + + + + 发布中 + + + + 审核中 + + + + 草稿箱 + + + + 已结束 + + + 发布需求 + - - - 邀请榜 - - - - - - - - {{pageData.userProfitList[1].nickname || '暂无'}} - 已邀请{{pageData.userProfitList[1].inviterCount || 0}}人 - 获得收益 - {{pageData.userProfitList[1].brokeragePrice || 0}}元 - + + + + 资源管理 + + + + + 发布中 - - - - - - {{pageData.userProfitList[0].nickname}} - 已邀请{{pageData.userProfitList[0].inviterCount}}人 - 获得收益 - {{pageData.userProfitList[0].brokeragePrice}}元 - + + + 审核中 - - - - - - {{pageData.userProfitList[2].nickname || '暂无'}} - 已邀请{{pageData.userProfitList[2].inviterCount || 0}}人 - 获得收益 - {{pageData.userProfitList[2].brokeragePrice || 0}}元 - + + + 草稿箱 + + + + 已结束 - - - {{index+4}} - - - - {{item.nickname}} - - - 已邀请{{item.inviterCount}}人 - 收益{{item.brokeragePrice}}元 - - + + + 发布需求 + + + + + + 常用服务 + + + + + 会员中心 + + + + 预存款项 + + + + 联系客服 + + + + 举报通道 + + + + 生活中心 + + + + 招商活动 + + + + 意见反馈 + + + + 举报通道 - - - + + \ No newline at end of file diff --git a/pages/user/index.wxss b/pages/user/index.wxss index a1f2aa4..7b7de75 100644 --- a/pages/user/index.wxss +++ b/pages/user/index.wxss @@ -1,293 +1,160 @@ -/* pages/user/index.wxss */ -page{ - background: #212226; -} -image{ - width: 100%; - height: 100%; -} -.user-index-box{ +.home-page{ min-height: 100vh; - color: #EFDACA; - position: relative; + padding-bottom: 130rpx; + background: #F3F3F3; } -.user-index-top{ +.page-top-box{ width: 100%; - height: 1020rpx; + height: 575rpx; position: relative; } -.user-index-top .top-bg{ - position: absolute; - top: 0; - left: 0; -} -.user-info-box{ - position: absolute; - top: 112rpx; - left: 40rpx; - z-index: 2; -} -.header-img{ - width: 134rpx; - height: 134rpx; - margin-right: 34rpx; -} -.header-img image{ - width: 134rpx; - height: 134rpx; - border-radius: 50%; -} -.user-info{ - width: 450rpx; -} -.user-title{ - width: 242rpx; - height: 56rpx; -} -.user-title image{ - width: 242rpx; - height: 56rpx; -} - -.menu-box{ - width: 670rpx; - height: 244rpx; - border: 2px solid #EFDACA; - border-radius: 16rpx; - position: absolute; - top: 290rpx; - left: 40rpx; - padding: 20rpx 0 16rpx 16rpx; -} -.menu-title-box{ - font-size: 32rpx; - line-height: 44rpx; - font-weight: bold; -} -.fz20{ - font-size: 20rpx; - font-weight: normal; -} -.see-more image{ - width: 10rpx; - height: 18rpx; - display: block; - margin-left: 10rpx; -} -.scroll-view_H{ - white-space: nowrap; +.page-title{ width: 100%; -} -.menu-list{ - margin-top: 36rpx; -} -.menu-item{ - display: inline-block; + color: #fff; text-align: center; - margin-right: 30rpx; -} -.menu-item image{ - width: 70rpx; - height: 70rpx; - display: inline-block; - margin-bottom: 6rpx; + position: relative; } - -.myIncome-box{ +.top-bg{ + width: 100%; + height: 598rpx; position: absolute; - top: 576rpx; - left: 40rpx; } -.income-box{ - width: 670rpx; - height: 208rpx; - border-radius: 12rpx; - margin-top: 10rpx; +.top-box-content{ position: relative; + padding: 0 40rpx; + color: #fff; } -.income-box image{ - width: 670rpx; - height: 208rpx; - position: absolute; - top: 0; - left: 0; +.top-set-box{ + } -.income-l{ - width: 50%; - height: 100%; - position: absolute; - left: 0; - z-index: 2; - color: #946F46; - padding: 30rpx 0 20rpx; +.top-set-box .setIcon{ + width: 32rpx; + height: 29rpx; } -.num{ - color: #363636; - font-size: 36rpx; - font-weight: bold; +.top-set-box .message{ + width: 38rpx; + height: 29rpx; + margin-left: 34rpx; } -.btn{ - width: 124rpx; +.set-box-l{ + width: 160rpx; height: 44rpx; line-height: 44rpx; text-align: center; - background: #EFDACA; - border-radius: 62rpx; - font-size: 26rpx; + background: #FFA583; + border-radius: 22rpx; + font-size: 24rpx; } -.income-r{ - left: 50%; +.userInfo-box{ + margin-top: 34rpx; } -.invitation-list-box{ - position: relative; - z-index: 99; - top: -140rpx; +.userInfo-box .header-img{ + width: 120rpx; + height: 120rpx; + border-radius: 50%; + margin-right: 12rpx; } -.invi-title{ - padding-left: 40rpx; - font-size: 32rpx; - color: #EFDACA; - line-height: 40rpx; - margin-bottom: 12rpx; +.userInfo-r .name{ + font-size: 36rpx; + line-height: 50rpx; } -.list-box{ - width: 100%; - background: #212226; - border-radius: 40rpx 40rpx 0px 0px; - padding-top: 36rpx; +.userInfo-r image{ + width: 132rpx; + height: 48rpx; } -.medal-box{ - +.userInfo-r .tyg-tag{ + width: 188rpx; + height: 44rpx; + margin-left: 22rpx; } -.medal{ - width: 224rpx; - height: 336rpx; - font-size: 20rpx; - color: #946F46; +.my-reminds-box { + margin-top: 20rpx; +} +.remind-item{ display: flex; flex-direction: column; + justify-content: center; align-items: center; - position: relative; - text-align: center; - line-height: 38rpx; -} -.medal .medal-bg{ - width: 224rpx; - height: 336rpx; - position: absolute; -} -.medal-content{ - width: 100%; - height: 100%; - position: absolute; - top: 0; - z-index: 22; -} -.user-header{ - width: 86rpx; - height: 86rpx; - border-radius: 50%; - overflow: hidden; - position: absolute; - left: 50%; - top: -43rpx; - transform: translateX(-50%); -} -.medal-content .user-name{ - color: #363636; - font-size: 24rpx; - line-height: 34rpx; - margin-bottom: 16rpx; - margin-top: 56rpx; -} -.income-money{ font-size: 28rpx; - color: #363636; - font-weight: bold; - margin-top: 16rpx; } -.medal-icon{ - width: 136rpx; - height: 136rpx; - position: absolute; - right: -68rpx; - bottom: -10rpx; +.count{ + font-size: 36rpx; } -.medal1{ - margin: 0 22rpx; - z-index: 99; +.to-tyg-box{ + text-align: center; + margin-top: 24rpx; } -.medal2,.medal3{ - width: 202rpx; - height: 303rpx; - margin-top: 80rpx; +.to-tyg-box image{ + width: 670rpx; + height: 114rpx; } -.medal3{ - margin-top: 100rpx; +.menu-list-box{ + width: 100%; + padding: 40rpx; } -.medal2 .medal-icon{ - width: 112rpx; - height: 112rpx; - bottom: -20rpx; - right: -20rpx; +.needs-menu-list,.resources-menu-list,.searver-menu-list{ + width: 100%; + background: #fff; + box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.07); + border-radius: 12rpx; + margin-bottom: 32rpx; } -.medal2 .medal-bg,.medal3 .medal-bg{ - width: 202rpx; - height: 303rpx; +.menu-list{ + width: 100%; + padding: 40rpx 22rpx 22rpx; } -.medal3 .medal-icon{ - width: 100rpx; - height: 100rpx; - right: -20rpx; +.menu-item{ + /* width: 100%; */ } -.rank-list-box{ +.title-box{ width: 100%; - max-height: 780rpx; - padding: 0 40rpx; - font-size: 24rpx; - overflow-y: scroll; -} -.rank-item .num{ - min-width: 50rpx; - color: #E4C6B0; + padding: 16rpx 20rpx; + border-bottom: 1px solid #F0F0F0; + font-size: 28rpx; + color: #303030; } -.item-right-l image{ - width: 74rpx; - height: 74rpx; - border-radius: 50%; - margin-right: 16rpx; +.seemore{ + font-size: 24rpx; + color: #BFBFBF; } -.item-right-l{ - width: 70%; +.seemore image{ + width: 12rpx; + height: 22rpx; + margin-left: 10rpx; } -.item-right-l .name{ +.menu-item{ + width: 25%; + margin-bottom: 32rpx; + color: #4A4A4A; font-size: 24rpx; - color: #fff; - width: 80%; + line-height: 34rpx; } -.item-right{ - width: 618rpx; - height: 132rpx; - border-bottom: 1px solid #6B6158; +.menu-item image{ + width: 48rpx; + height: 48rpx; + margin-bottom: 14rpx; } -.item-right-r{ - text-align: right; +.torelease-img { + position: relative; + width: 100%; + height: 90rpx; } - -.share-btn{ - width: 334rpx !important; - height: 132rpx !important; - padding: 0 !important; - margin: 40rpx auto !important; - background: transparent !important; - position: fixed; - bottom: 0rpx; - left: 50%; - margin-left: -162rpx !important; - z-index: 999; +.torelease-img image{ + width: 630rpx; + height: 62rpx; + position: absolute; + left: 20rpx; } -.share-btn image{ - width: 334rpx; - height: 132rpx; - display: inline-block; +.to-btn{ + width: 118rpx; + height: 34rpx; + line-height: 34rpx; + text-align: center; + font-size: 20rpx; + color: #ED7632; + background: #FFFFFF; + border-radius: 20rpx; + position: absolute; + right: 44rpx; + top: 14rpx; } \ No newline at end of file diff --git a/pages/user/mine/index.js b/pages/user/mine/index.js new file mode 100644 index 0000000..943af2a --- /dev/null +++ b/pages/user/mine/index.js @@ -0,0 +1,139 @@ +// pages/user/index.js +const app = getApp(); +Page({ + + /** + * 页面的初始数据 + */ + data: { + userInfo: {}, + pageData:{}, + rankList: [], + menuList: [ + {name: '需求优先', icon: '../../../images/menu1.png'}, + {name: '收益分成', icon: '../../../images/menu2.png'}, + {name: '上架特权', icon: '../../../images/menu3.png'}, + {name: '活动特权', icon: '../../../images/menu4.png'}, + {name: '精品项目', icon: '../../../images/menu5.png'}, + {name: '专属推荐码', icon: '../../../images/menu6.png'}, + {name: '会员特价', icon: '../../../images/menu7.png'}, + {name: '专属活动', icon: '../../../images/menu8.png'}, + {name: '增值收益', icon: '../../../images/menu9.png'} + ], + shareFlag: false + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + this.setData({ + userInfo: wx.getStorageSync('userInfo') + }) + this.getPageData(); + this.getShareFlag(); + wx.hideShareMenu() + }, + getShareFlag(){ + app.http('get','user/getShareFlag').then((res)=>{ + if(res.data.success){ + this.setData({ + shareFlag: res.data.data + }) + } + }) + }, + getPageData(){ + app.http('get','user/myProfit').then((res)=>{ + if(res.data.success){ + if(res.data.data.userProfitList.length >= 3 ){ + this.setData({ + rankList: res.data.data.userProfitList.slice(3) + }) + console.log(res.data.data.userProfitList.slice(3)) + console.log(this.data.rankList) + } + + this.setData({ + pageData: res.data.data + }) + console.log(this.data.pageData[3]) + } + }) + }, + toMoreMenu(){ + wx.navigateTo({ + url: './agreement/index', + }) + }, + toIncomeDetail(){ + wx.navigateTo({ + url: './incomeDetail/index', + }) + }, + tixian(){ + wx.showToast({ + title: '提现功能暂未开放!', + icon: 'none' + }) + }, + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function (res) { + if(this.data.shareFlag){ + return { + imageUrl: '../../../images/shareImg.png', + path: '/pages/user/agreement/index?id='+this.data.userInfo.uid // 路径,传递参数到指定页面。 + } + } else{ + wx.showToast({ + title: '暂时不能分享哦~', + icon: 'none' + }) + } + + } +}) \ No newline at end of file diff --git a/pages/user/mine/index.json b/pages/user/mine/index.json new file mode 100644 index 0000000..e64edaf --- /dev/null +++ b/pages/user/mine/index.json @@ -0,0 +1,5 @@ +{ + "usingComponents": { + }, + "navigationStyle": "custom" +} \ No newline at end of file diff --git a/pages/user/mine/index.wxml b/pages/user/mine/index.wxml new file mode 100644 index 0000000..cf92b43 --- /dev/null +++ b/pages/user/mine/index.wxml @@ -0,0 +1,112 @@ + + + + + + + + 我的特权 + + 查看所有特权 + + + + + + + + {{item.name}} + + + + + + + 我的收益 + + 查看我的收益详情 + + + + + + + 累计邀请 + {{pageData.inviterCount}}人 + 查看 + + + + 累计收益 + {{pageData.brokeragePrice}}元 + 提现 + + + + + + 邀请榜 + + + + + + + + {{pageData.userProfitList[1].nickname || '暂无'}} + 已邀请{{pageData.userProfitList[1].inviterCount || 0}}人 + 获得收益 + {{pageData.userProfitList[1].brokeragePrice || 0}}元 + + + + + + + + {{pageData.userProfitList[0].nickname}} + 已邀请{{pageData.userProfitList[0].inviterCount}}人 + 获得收益 + {{pageData.userProfitList[0].brokeragePrice}}元 + + + + + + + + {{pageData.userProfitList[2].nickname || '暂无'}} + 已邀请{{pageData.userProfitList[2].inviterCount || 0}}人 + 获得收益 + {{pageData.userProfitList[2].brokeragePrice || 0}}元 + + + + + + {{index+4}} + + + + {{item.nickname}} + + + 已邀请{{item.inviterCount}}人 + 收益{{item.brokeragePrice}}元 + + + + + + + + + diff --git a/pages/user/mine/index.wxss b/pages/user/mine/index.wxss new file mode 100644 index 0000000..a1f2aa4 --- /dev/null +++ b/pages/user/mine/index.wxss @@ -0,0 +1,293 @@ +/* pages/user/index.wxss */ +page{ + background: #212226; +} +image{ + width: 100%; + height: 100%; +} +.user-index-box{ + min-height: 100vh; + color: #EFDACA; + position: relative; +} +.user-index-top{ + width: 100%; + height: 1020rpx; + position: relative; +} +.user-index-top .top-bg{ + position: absolute; + top: 0; + left: 0; +} +.user-info-box{ + position: absolute; + top: 112rpx; + left: 40rpx; + z-index: 2; +} +.header-img{ + width: 134rpx; + height: 134rpx; + margin-right: 34rpx; +} +.header-img image{ + width: 134rpx; + height: 134rpx; + border-radius: 50%; +} +.user-info{ + width: 450rpx; +} +.user-title{ + width: 242rpx; + height: 56rpx; +} +.user-title image{ + width: 242rpx; + height: 56rpx; +} + +.menu-box{ + width: 670rpx; + height: 244rpx; + border: 2px solid #EFDACA; + border-radius: 16rpx; + position: absolute; + top: 290rpx; + left: 40rpx; + padding: 20rpx 0 16rpx 16rpx; +} +.menu-title-box{ + font-size: 32rpx; + line-height: 44rpx; + font-weight: bold; +} +.fz20{ + font-size: 20rpx; + font-weight: normal; +} +.see-more image{ + width: 10rpx; + height: 18rpx; + display: block; + margin-left: 10rpx; +} +.scroll-view_H{ + white-space: nowrap; + width: 100%; +} +.menu-list{ + margin-top: 36rpx; +} +.menu-item{ + display: inline-block; + text-align: center; + margin-right: 30rpx; +} +.menu-item image{ + width: 70rpx; + height: 70rpx; + display: inline-block; + margin-bottom: 6rpx; +} + +.myIncome-box{ + position: absolute; + top: 576rpx; + left: 40rpx; +} +.income-box{ + width: 670rpx; + height: 208rpx; + border-radius: 12rpx; + margin-top: 10rpx; + position: relative; +} +.income-box image{ + width: 670rpx; + height: 208rpx; + position: absolute; + top: 0; + left: 0; +} +.income-l{ + width: 50%; + height: 100%; + position: absolute; + left: 0; + z-index: 2; + color: #946F46; + padding: 30rpx 0 20rpx; +} +.num{ + color: #363636; + font-size: 36rpx; + font-weight: bold; +} +.btn{ + width: 124rpx; + height: 44rpx; + line-height: 44rpx; + text-align: center; + background: #EFDACA; + border-radius: 62rpx; + font-size: 26rpx; +} +.income-r{ + left: 50%; +} +.invitation-list-box{ + position: relative; + z-index: 99; + top: -140rpx; +} +.invi-title{ + padding-left: 40rpx; + font-size: 32rpx; + color: #EFDACA; + line-height: 40rpx; + margin-bottom: 12rpx; +} +.list-box{ + width: 100%; + background: #212226; + border-radius: 40rpx 40rpx 0px 0px; + padding-top: 36rpx; +} +.medal-box{ + +} +.medal{ + width: 224rpx; + height: 336rpx; + font-size: 20rpx; + color: #946F46; + display: flex; + flex-direction: column; + align-items: center; + position: relative; + text-align: center; + line-height: 38rpx; +} +.medal .medal-bg{ + width: 224rpx; + height: 336rpx; + position: absolute; +} +.medal-content{ + width: 100%; + height: 100%; + position: absolute; + top: 0; + z-index: 22; +} +.user-header{ + width: 86rpx; + height: 86rpx; + border-radius: 50%; + overflow: hidden; + position: absolute; + left: 50%; + top: -43rpx; + transform: translateX(-50%); +} +.medal-content .user-name{ + color: #363636; + font-size: 24rpx; + line-height: 34rpx; + margin-bottom: 16rpx; + margin-top: 56rpx; +} +.income-money{ + font-size: 28rpx; + color: #363636; + font-weight: bold; + margin-top: 16rpx; +} +.medal-icon{ + width: 136rpx; + height: 136rpx; + position: absolute; + right: -68rpx; + bottom: -10rpx; +} +.medal1{ + margin: 0 22rpx; + z-index: 99; +} +.medal2,.medal3{ + width: 202rpx; + height: 303rpx; + margin-top: 80rpx; +} +.medal3{ + margin-top: 100rpx; +} +.medal2 .medal-icon{ + width: 112rpx; + height: 112rpx; + bottom: -20rpx; + right: -20rpx; +} +.medal2 .medal-bg,.medal3 .medal-bg{ + width: 202rpx; + height: 303rpx; +} +.medal3 .medal-icon{ + width: 100rpx; + height: 100rpx; + right: -20rpx; +} +.rank-list-box{ + width: 100%; + max-height: 780rpx; + padding: 0 40rpx; + font-size: 24rpx; + overflow-y: scroll; +} +.rank-item .num{ + min-width: 50rpx; + color: #E4C6B0; +} +.item-right-l image{ + width: 74rpx; + height: 74rpx; + border-radius: 50%; + margin-right: 16rpx; +} +.item-right-l{ + width: 70%; +} +.item-right-l .name{ + font-size: 24rpx; + color: #fff; + width: 80%; +} +.item-right{ + width: 618rpx; + height: 132rpx; + border-bottom: 1px solid #6B6158; +} +.item-right-r{ + text-align: right; +} + +.share-btn{ + width: 334rpx !important; + height: 132rpx !important; + padding: 0 !important; + margin: 40rpx auto !important; + background: transparent !important; + position: fixed; + bottom: 0rpx; + left: 50%; + margin-left: -162rpx !important; + z-index: 999; +} +.share-btn image{ + width: 334rpx; + height: 132rpx; + display: inline-block; +} \ No newline at end of file diff --git a/project.config.json b/project.config.json index 1234c44..df036f9 100644 --- a/project.config.json +++ b/project.config.json @@ -30,6 +30,7 @@ "outputPath": "" }, "enableEngineNative": false, + "bundle": false, "useIsolateContext": true, "useCompilerModule": true, "userConfirmedUseCompilerModuleSwitch": false, diff --git a/tabbarComponent/.DS_Store b/tabbarComponent/.DS_Store new file mode 100644 index 0000000..2808495 Binary files /dev/null and b/tabbarComponent/.DS_Store differ diff --git a/tabbarComponent/icon/.DS_Store b/tabbarComponent/icon/.DS_Store new file mode 100644 index 0000000..48eead0 Binary files /dev/null and b/tabbarComponent/icon/.DS_Store differ diff --git a/tabbarComponent/icon/home-a.png b/tabbarComponent/icon/home-a.png new file mode 100755 index 0000000..870f221 Binary files /dev/null and b/tabbarComponent/icon/home-a.png differ diff --git a/tabbarComponent/icon/icon_home.png b/tabbarComponent/icon/icon_home.png new file mode 100644 index 0000000..6fdb11a Binary files /dev/null and b/tabbarComponent/icon/icon_home.png differ diff --git a/tabbarComponent/icon/icon_home_HL.png b/tabbarComponent/icon/icon_home_HL.png new file mode 100644 index 0000000..e0d89d5 Binary files /dev/null and b/tabbarComponent/icon/icon_home_HL.png differ diff --git a/tabbarComponent/icon/icon_mine.png b/tabbarComponent/icon/icon_mine.png new file mode 100644 index 0000000..06d7264 Binary files /dev/null and b/tabbarComponent/icon/icon_mine.png differ diff --git a/tabbarComponent/icon/icon_mine_HL.png b/tabbarComponent/icon/icon_mine_HL.png new file mode 100644 index 0000000..ba4e638 Binary files /dev/null and b/tabbarComponent/icon/icon_mine_HL.png differ diff --git a/tabbarComponent/icon/icon_release.png b/tabbarComponent/icon/icon_release.png new file mode 100644 index 0000000..198d950 Binary files /dev/null and b/tabbarComponent/icon/icon_release.png differ diff --git a/tabbarComponent/icon/组 1048@2x.png b/tabbarComponent/icon/组 1048@2x.png new file mode 100644 index 0000000..43f26dc Binary files /dev/null and b/tabbarComponent/icon/组 1048@2x.png differ diff --git a/tabbarComponent/icon/组 1049@2x.png b/tabbarComponent/icon/组 1049@2x.png new file mode 100644 index 0000000..42eb414 Binary files /dev/null and b/tabbarComponent/icon/组 1049@2x.png differ diff --git a/tabbarComponent/icon/组 1050@2x.png b/tabbarComponent/icon/组 1050@2x.png new file mode 100644 index 0000000..037fc15 Binary files /dev/null and b/tabbarComponent/icon/组 1050@2x.png differ diff --git a/tabbarComponent/icon/组 1051@2x.png b/tabbarComponent/icon/组 1051@2x.png new file mode 100644 index 0000000..684e5e5 Binary files /dev/null and b/tabbarComponent/icon/组 1051@2x.png differ diff --git a/tabbarComponent/icon/组 226@2x.png b/tabbarComponent/icon/组 226@2x.png new file mode 100755 index 0000000..fbebe0a Binary files /dev/null and b/tabbarComponent/icon/组 226@2x.png differ diff --git a/tabbarComponent/icon/组 227@2x.png b/tabbarComponent/icon/组 227@2x.png new file mode 100755 index 0000000..6209035 Binary files /dev/null and b/tabbarComponent/icon/组 227@2x.png differ diff --git a/tabbarComponent/icon/组 229@2x.png b/tabbarComponent/icon/组 229@2x.png new file mode 100755 index 0000000..d2c003e Binary files /dev/null and b/tabbarComponent/icon/组 229@2x.png differ diff --git a/tabbarComponent/icon/组 668@2x.png b/tabbarComponent/icon/组 668@2x.png new file mode 100755 index 0000000..52209e2 Binary files /dev/null and b/tabbarComponent/icon/组 668@2x.png differ diff --git a/tabbarComponent/tabbar.js b/tabbarComponent/tabbar.js new file mode 100644 index 0000000..acabe49 --- /dev/null +++ b/tabbarComponent/tabbar.js @@ -0,0 +1,63 @@ +// tabBarComponent/tabBar.js +const app = getApp(); +Component({ + /** + * 组件的属性列表 + */ + properties: { + tabbar: { + type: Object, + value: { + "backgroundColor": "#ffffff", + "color": "#D4D4D4", + "selectedColor": "#FF6F34", + "list": [ + { + "pagePath": "/pages/index/index", + "iconPath": "icon/icon_home.png", + "selectedIconPath": "icon/icon_home_HL.png", + "text": "首页" + }, + { + "pagePath": "/pages/demandHall/index", + "iconPath": "icon/icon_home.png", + "selectedIconPath": "icon/icon_home_HL.png", + "text": "供需大厅" + }, + { + "pagePath": "/pages/release/index", + "iconPath": "icon/icon_release.png", + "isSpecial": true, + "text": "发布" + }, + { + "pagePath": "/pages/life/index", + "iconPath": "icon/icon_mine.png", + "selectedIconPath": "icon/icon_mine_HL.png", + "text": "购物车" + }, + { + "pagePath": "/pages/user/index", + "iconPath": "icon/icon_mine.png", + "selectedIconPath": "icon/icon_mine_HL.png", + "text": "我的" + } + ] + } + } + }, + + /** + * 组件的初始数据 + */ + data: { + isIphoneX: app.globalData.systemInfo.model.search('iPhone X') != -1 ? true : false + }, + + /** + * 组件的方法列表 + */ + methods: { + + } +}) diff --git a/tabbarComponent/tabbar.json b/tabbarComponent/tabbar.json new file mode 100644 index 0000000..e8cfaaf --- /dev/null +++ b/tabbarComponent/tabbar.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/tabbarComponent/tabbar.wxml b/tabbarComponent/tabbar.wxml new file mode 100644 index 0000000..fe0cb3c --- /dev/null +++ b/tabbarComponent/tabbar.wxml @@ -0,0 +1,14 @@ + + + + + + {{item.text}} + + + + + {{item.text}} + + + diff --git a/tabbarComponent/tabbar.wxss b/tabbarComponent/tabbar.wxss new file mode 100644 index 0000000..ba9c04b --- /dev/null +++ b/tabbarComponent/tabbar.wxss @@ -0,0 +1,65 @@ +.tabbar_box{ + display: flex; + flex-direction: row; + justify-content: space-around; + position: fixed; + bottom: 0; + left: 0; + z-index: 999; + width: 100%; + height: 98rpx; + box-shadow: 0px -6rpx 12rpx rgba(0, 0, 0, 0.04); +} +.tabbar_box.iphoneX-height{ + padding-bottom: 66rpx; +} +.middle-wrapper{ + position: absolute; + right: 50%; + margin-left: -60rpx; + bottom: 0; + background-color: #fff; + width: 120rpx; + height: 120rpx; + border-radius: 50%; + /* border-top: 2rpx solid #f2f2f3; */ + /* box-shadow: 0px -6rpx 12rpx rgba(0, 0, 0, 0.04); */ +} +.middle-wrapper.iphoneX-height{ + bottom: 66rpx; +} +.tabbar_nav{ + flex: 1; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + font-size: 20rpx; + height: 100%; + position: relative; +} +.tabbar_icon{ + width: 52rpx; + height: 52rpx; +} +.special-wrapper{ + position: absolute; + top: -36rpx; + width: 96rpx; + height: 96rpx; + border-radius: 50%; + /* border-top: 2rpx solid #f2f2f3; */ + box-shadow: 0px -6rpx 12rpx rgba(0, 0, 0, 0.04); + background-color: #fff; + text-align: center; + box-sizing: border-box; + padding: 6rpx; +} +.special-wrapper .tabbar_icon{ + width: 84rpx; + height: 84rpx; +} +.special-text-wrapper{ + width: 56rpx; + height: 56rpx; +} \ No newline at end of file