pref_mail@163.com 3 years ago
parent
commit
272daa7705
  1. BIN
      images/popBac.png
  2. 2
      pages/center/center.wxml
  3. 8
      pages/club/club.wxml
  4. 10
      pages/index/activeDetail/activeDetail.wxml
  5. 26
      pages/index/index.js
  6. 15
      pages/index/index.wxml
  7. 2
      pages/index/join/join.js
  8. 2
      pages/release/release.wxml
  9. 22
      project.config.json
  10. 18
      project.private.config.json
  11. 1
      utils/common.js

BIN
images/popBac.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 545 KiB

After

Width:  |  Height:  |  Size: 176 KiB

2
pages/center/center.wxml

@ -58,6 +58,7 @@
</view> </view>
</view> </view>
</view> </view>
<!-- 现金券暂时屏蔽
<view class="wallet"> <view class="wallet">
<view class="title"> <view class="title">
我的现金券 我的现金券
@ -80,6 +81,7 @@
</view> </view>
</view> </view>
</view> </view>
-->
<view class="bottom"> <view class="bottom">
<view class="center" bindtap="toAdvice"> <view class="center" bindtap="toAdvice">
<view class="center-left" > <view class="center-left" >

8
pages/club/club.wxml

@ -1,5 +1,6 @@
<view class="container"> <view class="container">
<view class="nav"> <view class="nav">
<!-- 屏蔽 俱乐部搜索
<view class="search"> <view class="search">
<view class="search-box" bindtap="toSearch"> <view class="search-box" bindtap="toSearch">
<view class="search-icon"> <view class="search-icon">
@ -10,6 +11,8 @@
</view> </view>
</view> </view>
</view> </view>
-->
<!-- 屏蔽滚动俱乐部
<view class="club"> <view class="club">
<view class="club-title">推荐俱乐部</view> <view class="club-title">推荐俱乐部</view>
<view class="scrollArea"> <view class="scrollArea">
@ -44,11 +47,14 @@
</scroll-view> </scroll-view>
</view> </view>
</view> </view>
-->
<!-- 屏蔽
<view class="more" bindtap="toclub"> <view class="more" bindtap="toclub">
<view class='more-left'></view> <view class='more-left'></view>
<view class="more-word">更多俱乐部</view> <view class="more-word">更多俱乐部</view>
<view class="more-right"></view> <view class="more-right"></view>
</view> </view>
-->
<view class="ciecle"> <view class="ciecle">
<view class="titlebig"> <view class="titlebig">
<view class="navtop"> <view class="navtop">

10
pages/index/activeDetail/activeDetail.wxml

@ -26,18 +26,18 @@
<image src="../../../images/smile.png"></image> <image src="../../../images/smile.png"></image>
<view class="two"> <view class="two">
<text>已报名<text class="yellow">{{detail.totalRegister?detail.totalRegister:0}}</text>人/不限制名额 </text> <text>已报名<text class="yellow">{{detail.totalRegister?detail.totalRegister:0}}</text>人/不限制名额 </text>
<text class="two-right" bindtap="seeJoin">查看全部报名</text> <!-- <text class="two-right" bindtap="seeJoin">查看全部报名</text> -->
</view> </view>
</view> </view>
</view> </view>
<view class="user"> <!-- <view class="user">
<block wx:for="{{user}}" wx:key="user"> <block wx:for="{{user}}" wx:key="user">
<view class="user-list"> <view class="user-list">
<image src="{{item.img}}" mode='aspectFill'></image> <image src="{{item.img}}" mode='aspectFill'></image>
<view>{{item.name}}</view> <view>{{item.name}}</view>
</view> </view>
</block> </block>
</view> </view> -->
</view> </view>
<view class="company"> <view class="company">
<view class="com-nav" bindtap="tiaozhuan"> <view class="com-nav" bindtap="tiaozhuan">
@ -82,6 +82,7 @@
<view wx:else>{{item}}</view> <view wx:else>{{item}}</view>
</view> </view>
</view> </view>
<!-- 暂时屏蔽
<view class="message"> <view class="message">
<view class="message-top"> <view class="message-top">
<view class="top-left"> <view class="top-left">
@ -106,10 +107,11 @@
</block> </block>
</view> </view>
</view> </view>
-->
<view class="other"> <view class="other">
<view class="other-top"> <view class="other-top">
<image src="../../../images/left.png"></image> <image src="../../../images/left.png"></image>
俱乐部其他活动 其他活动
</view> </view>
<view class="other-circle" wx:if="{{otheractive.length>0}}"> <view class="other-circle" wx:if="{{otheractive.length>0}}">
<block wx:for="{{otheractive}}" wx:key="otheractive"> <block wx:for="{{otheractive}}" wx:key="otheractive">

26
pages/index/index.js

@ -44,7 +44,7 @@ Page({
}, },
toactiveDetail:function(e){ toactiveDetail:function(e){
wx.navigateTo({ wx.navigateTo({
url: './activeDetail/activeDetail?id='+e.currentTarget.dataset.id+'' url: './activeDetail/activeDetail?id='+e.currentTarget.dataset.id
}) })
}, },
// 事件处理函数 // 事件处理函数
@ -54,15 +54,24 @@ Page({
}) })
}, },
onLoad() { onLoad() {
this.getbanner();
}, },
onShow: function () { onShow: function () {
this.hotActive();
this.getLike();
// 加载微信登录
// this.hotActive();
// this.getLike();
this.getRankActive(); this.getRankActive();
this.getRecommendActive(); // this.getRecommendActive();
this.getclubCircle(); // this.getclubCircle();
this.getClubing(); // this.getClubing();
}, },
getbanner:function(){ getbanner:function(){
var that = this; var that = this;
@ -97,6 +106,7 @@ Page({
} }
datas[i].startTime = datas[i].startTime.slice(5,10) datas[i].startTime = datas[i].startTime.slice(5,10)
} }
console.log(">>>",datas)
that.setData({ that.setData({
fourImages:datas fourImages:datas
}) })
@ -127,6 +137,7 @@ Page({
}) })
}, },
getRankActive:function(){ getRankActive:function(){
var that = this; var that = this;
const imgUrl = wx.getStorageSync('imgUrl') const imgUrl = wx.getStorageSync('imgUrl')
var header = { var header = {
@ -145,6 +156,7 @@ Page({
} }
datas[i].startTime = datas[i].startTime.slice(5,10) datas[i].startTime = datas[i].startTime.slice(5,10)
} }
console.log(">>>",datas)
that.setData({ that.setData({
threeImages:datas threeImages:datas
}) })

15
pages/index/index.wxml

@ -1,6 +1,6 @@
<!--index.wxml--> <!--index.wxml-->
<view class="container"> <view class="container">
<!-- 暂时屏蔽 搜索 和 Banner
<view class="nav"> <view class="nav">
<view class="search"> <view class="search">
<view class="search-box" bindtap="toSearch"> <view class="search-box" bindtap="toSearch">
@ -26,6 +26,8 @@
</view> </view>
</view> </view>
</view> </view>
-->
<!-- 暂时 屏蔽 快捷挑战
<view class="index-five"> <view class="index-five">
<view class="five-list" data-id="" bindtap="toTypeList"> <view class="five-list" data-id="" bindtap="toTypeList">
<image src='../../images/index_all.png' mode='aspectFill'></image> <image src='../../images/index_all.png' mode='aspectFill'></image>
@ -49,10 +51,12 @@
</view> </view>
</block> </block>
<!-- <view class="ac-img"> <view class="ac-img">
<image src="/images/logo.jpg" mode='aspectFill'></image> <image src="/images/logo.jpg" mode='aspectFill'></image>
</view> --> </view>
</view> </view>
-->
<!-- 暂时屏蔽 进行的活动
<view class="active"> <view class="active">
<view class="active-title"> <view class="active-title">
<view class="name">正在进行的活动</view> <view class="name">正在进行的活动</view>
@ -97,6 +101,7 @@
查看更多 查看更多
</view> </view>
</view> </view>
-->
<view class="popularity"> <view class="popularity">
<image src="/images/popBac.png" class="popimg"></image> <image src="/images/popBac.png" class="popimg"></image>
<view class="popview"> <view class="popview">
@ -105,9 +110,11 @@
<image src="/images/popone.png" ></image> <image src="/images/popone.png" ></image>
<view>人气活动</view> <view>人气活动</view>
</view> </view>
<!--
<view class="title-right" bindtap="torank"> <view class="title-right" bindtap="torank">
<image src="/images/add.png"></image>全部榜单 <image src="/images/add.png"></image>全部榜单
</view> </view>
-->
</view> </view>
<view class="index-three"> <view class="index-three">
<block wx:for="{{threeImages}}" wx:key='three'> <block wx:for="{{threeImages}}" wx:key='three'>
@ -141,6 +148,7 @@
</view> </view>
</view> </view>
</view> </view>
<!-- 暂时 屏蔽
<view class="wonderful"> <view class="wonderful">
<view class="wonder-name"> <view class="wonder-name">
<view class="wonderful-title"> <view class="wonderful-title">
@ -205,4 +213,5 @@
</block> </block>
</view> </view>
</view> </view>
-->
</view> </view>

2
pages/index/join/join.js

@ -4,7 +4,7 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
navTab: ['个人报名','团队报名'], navTab: ['个人报名'],
currentTab: 0, currentTab: 0,
people:12, people:12,
person:false, person:false,

2
pages/release/release.wxml

@ -9,6 +9,7 @@
<image src="../../images/activetwo.png"></image> <image src="../../images/activetwo.png"></image>
<view>管理活动</view> <view>管理活动</view>
</view> </view>
<!-- 其他屏蔽
<view class="fivelist" bindtap="tosign"> <view class="fivelist" bindtap="tosign">
<image src="../../images/activethree.png"></image> <image src="../../images/activethree.png"></image>
<view>活动签到</view> <view>活动签到</view>
@ -21,6 +22,7 @@
<image src="../../images/activefive.png"></image> <image src="../../images/activefive.png"></image>
<view>推广</view> <view>推广</view>
</view> </view>
-->
</view> </view>
</view> </view>
</view> </view>

22
project.config.json

@ -1,7 +1,8 @@
{ {
"description": "项目配置文件", "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"packOptions": { "packOptions": {
"ignore": [] "ignore": [],
"include": []
}, },
"setting": { "setting": {
"urlCheck": false, "urlCheck": false,
@ -31,28 +32,23 @@
"outputPath": "" "outputPath": ""
}, },
"enableEngineNative": false, "enableEngineNative": false,
"useIsolateContext": false, "useIsolateContext": true,
"userConfirmedBundleSwitch": false, "userConfirmedBundleSwitch": false,
"packNpmManually": false, "packNpmManually": false,
"packNpmRelationList": [], "packNpmRelationList": [],
"minifyWXSS": true, "minifyWXSS": true,
"disableUseStrict": false, "showES6CompileOption": false
"minifyWXML": true,
"showES6CompileOption": false,
"useCompilerPlugins": false,
"ignoreUploadUnusedFiles": true
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.15.0", "libVersion": "2.15.0",
"appid": "wxe20096a48806d438", "appid": "wxe20096a48806d438",
"projectname": "bml_travel", "projectname": "bml_travel",
"debugOptions": {
"hidedInDevtools": []
},
"scripts": {},
"isGameTourist": false,
"simulatorType": "wechat", "simulatorType": "wechat",
"simulatorPluginLibVersion": {}, "simulatorPluginLibVersion": {},
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 2
},
"condition": { "condition": {
"plugin": { "plugin": {
"list": [] "list": []

18
project.private.config.json

@ -1,15 +1,8 @@
{ {
"setting": {}, "setting": {
"compileHotReLoad": true
},
"condition": { "condition": {
"plugin": {
"list": []
},
"game": {
"list": []
},
"gamePlugin": {
"list": []
},
"miniprogram": { "miniprogram": {
"list": [ "list": [
{ {
@ -351,9 +344,12 @@
{ {
"name": "quan", "name": "quan",
"pathName": "pages/release/quan/quan", "pathName": "pages/release/quan/quan",
"query": "",
"scene": null "scene": null
} }
] ]
} }
} },
"projectname": "bml_travel1",
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html"
} }

1
utils/common.js

@ -1,5 +1,6 @@
// var HOST_URI = 'http://192.168.0.109:8088'; // var HOST_URI = 'http://192.168.0.109:8088';
// var HOST_URI = 'http://192.168.0.104:8088'; // var HOST_URI = 'http://192.168.0.104:8088';
// var HOST_URI = 'http://127.0.0.1:8088';
var HOST_URI = 'https://api.tuleduo.cn'; var HOST_URI = 'https://api.tuleduo.cn';

Loading…
Cancel
Save