瀏覽代碼

Merge branch 'v4' of http://git.ycjcjy.com/zhiyuxing/miniapp-v3 into v4

许静 5 年之前
父節點
當前提交
13f2ad68f0

+ 1
- 1
project.config.json 查看文件

@@ -2,7 +2,7 @@
2 2
 	"miniprogramRoot": "dist/",
3 3
 	"projectname": "mini-chengjiao",
4 4
 	"description": "dev环境",
5
-	"appid": "wxda1f84b79b3edeb3",
5
+	"appid": "wxd9ee3a9480a4e544",
6 6
 	"setting": {
7 7
 		"urlCheck": false,
8 8
 		"es6": false,

+ 1
- 0
src/pages/activity/index.js 查看文件

@@ -89,6 +89,7 @@ export default class Index extends Component {
89 89
   }
90 90
 
91 91
   onPullDownRefresh = async (rest) => {
92
+    // debugger
92 93
     if (this.refreshing) return
93 94
     this.refreshing = true
94 95
 

+ 23
- 5
src/pages/checkin/index.js 查看文件

@@ -42,8 +42,9 @@ export default class checkin extends Component {
42 42
       this.setState({
43 43
         data: res
44 44
       })
45
-      console.log('1111', res.enlist.attendNum)
45
+      
46 46
     })
47
+    // activityStatus
47 48
   }
48 49
 
49 50
   checkinActive () {
@@ -86,7 +87,7 @@ export default class checkin extends Component {
86 87
   }
87 88
 
88 89
   render () {
89
-
90
+    
90 91
     // const { data = { person: {}, dynamic: {} }, style } = this.props
91 92
     // console.log("data"  ,this.data)
92 93
     return (
@@ -101,6 +102,9 @@ export default class checkin extends Component {
101 102
           <View className="text1"> <Text>{this.state.data.dynamic.title}</Text></View>
102 103
         </View >
103 104
 
105
+        
106
+        
107
+
104 108
         {this.state.data.enlist.enlistId != null && <View>
105 109
           <View style="text-align: center;display:inline-block;width:100vw;">
106 110
             <View style="text-align: center;display:inline-block;" className="line">- - - - - - - - - - - - - -   </View>
@@ -128,6 +132,16 @@ export default class checkin extends Component {
128 132
           {/* {console.log(data.person.status)} */}
129 133
         </View>}
130 134
         {this.state.data.enlist.enlistId == null && <View className="unregistered">
135
+        {this.state.data.dynamic.activityStatus === 1 && <View style="text-align: center;color:#666666">
136
+          活动未开始
137
+        </View>
138
+          }
139
+          {this.state.data.dynamic.activityStatus === 2 && <View style="text-align: center;color:#666666">
140
+          活动已结束
141
+        </View>
142
+          }
143
+
144
+{this.state.data.dynamic.activityStatus === 0 && <View>
131 145
           <View>
132 146
             <Image className="img1" src={require('@assets/checkin/noentry.png')} ></Image>
133 147
           </View>
@@ -135,10 +149,14 @@ export default class checkin extends Component {
135 149
             <Text className="messageText" >您还未报名当前活动,请先前往活动报名页报名成功后再进行扫码签到~ </Text>
136 150
 
137 151
           </View>
138
-{console.log(this.state.data.dynamic.dynamicId)}
152
+
139 153
           <AtButton type='primary' className="toactivebutton" onClick={() => { this.toactivity(this.state.data.dynamic.dynamicId) }}>立即前往</AtButton>
140
-          {/* <Image src={require('@assets/checkin/checkin.png')}  style="position: absolute; width:110px;height:110px ;bottom:12vh;left:132.5px"  ></Image> */}
141
-        </View>}
154
+        </View>
155
+          }
156
+          
157
+        
158
+        </View>
159
+      }
142 160
       </View>
143 161
 
144 162
     );

+ 1
- 1
src/pages/checkin/index.scss 查看文件

@@ -86,7 +86,7 @@
86 86
       position: absolute;
87 87
       font-size: 36px;
88 88
       font-weight: 400;
89
-      color: rgba(187, 156, 121, 1);
89
+      color:#C8C8C8;
90 90
       line-height: 56px;
91 91
       width: 660px;
92 92
       text-align: center;

+ 16
- 0
src/pages/project/index.js 查看文件

@@ -88,17 +88,33 @@ export default class Index extends Component {
88 88
       this.qqmapsdk.reverseGeocoder({
89 89
         location,
90 90
         success: (res) => {
91
+          debugger
91 92
           let city = res.result.address_component.city
93
+          
92 94
           let curCity = cityList.filter(item => {
93 95
             return item.name == city
94 96
           })
97
+          Taro.showToast({
98
+            title: `当前定位城市:${curCity[0].name}`,
99
+            icon: 'none',
100
+          })
95 101
           this.updateCity(curCity[0] || cityList[0])
96 102
         },
97 103
         fail: (error) => {
104
+          Taro.showToast({
105
+            title: `定位城市错误...`,
106
+            icon: 'none',
107
+          })
108
+          console.error(err)
98 109
           this.updateCity(cityList[0])
99 110
         },
100 111
       })
101 112
     }).catch(err => {
113
+      Taro.showToast({
114
+        title: `定位城市错误...`,
115
+        icon: 'none',
116
+      })
117
+      console.error(err)
102 118
       this.updateCity(cityList[0])
103 119
     })
104 120
   }

+ 6
- 4
src/pages/project/list/filter/index.js 查看文件

@@ -118,8 +118,10 @@ export default class Index extends Component {
118 118
   }
119 119
 
120 120
   handleFilter() {
121
-    const { tabs, keywords, selectedIndex } = this.state
122 121
 
122
+    console.log("111")
123
+    const { tabs, keywords, selectedIndex } = this.state
124
+    console.log(this.state)
123 125
     let values = selectedIndex.map((selectedList, tabIndex) => {
124 126
       let curTab = tabs[tabIndex]
125 127
       let curTabList = curTab.list || []
@@ -127,7 +129,7 @@ export default class Index extends Component {
127 129
       if (selectedList.length === 1 && selectedList[0] === 0) {
128 130
         return ''
129 131
       }
130
-
132
+    
131 133
       // 类型
132 134
       if (tabIndex === 0) {
133 135
         let val = selectedList.map(index => curTabList[index])
@@ -163,7 +165,7 @@ export default class Index extends Component {
163 165
         return val.join(',')
164 166
       }
165 167
     })
166
-
168
+    console.log(values)
167 169
     let params = {
168 170
       name: keywords,
169 171
       houseType: values[0],
@@ -171,7 +173,7 @@ export default class Index extends Component {
171 173
       area: values[2],
172 174
       buildingType: values[3],
173 175
     }
174
-
176
+    console.log(params)
175 177
     this.props.onFilter(params, () => {
176 178
       this.hideFilter()
177 179
     })