瀏覽代碼

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

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

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

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

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

89
   }
89
   }
90
 
90
 
91
   onPullDownRefresh = async (rest) => {
91
   onPullDownRefresh = async (rest) => {
92
+    // debugger
92
     if (this.refreshing) return
93
     if (this.refreshing) return
93
     this.refreshing = true
94
     this.refreshing = true
94
 
95
 

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

42
       this.setState({
42
       this.setState({
43
         data: res
43
         data: res
44
       })
44
       })
45
-      console.log('1111', res.enlist.attendNum)
45
+      
46
     })
46
     })
47
+    // activityStatus
47
   }
48
   }
48
 
49
 
49
   checkinActive () {
50
   checkinActive () {
86
   }
87
   }
87
 
88
 
88
   render () {
89
   render () {
89
-
90
+    
90
     // const { data = { person: {}, dynamic: {} }, style } = this.props
91
     // const { data = { person: {}, dynamic: {} }, style } = this.props
91
     // console.log("data"  ,this.data)
92
     // console.log("data"  ,this.data)
92
     return (
93
     return (
101
           <View className="text1"> <Text>{this.state.data.dynamic.title}</Text></View>
102
           <View className="text1"> <Text>{this.state.data.dynamic.title}</Text></View>
102
         </View >
103
         </View >
103
 
104
 
105
+        
106
+        
107
+
104
         {this.state.data.enlist.enlistId != null && <View>
108
         {this.state.data.enlist.enlistId != null && <View>
105
           <View style="text-align: center;display:inline-block;width:100vw;">
109
           <View style="text-align: center;display:inline-block;width:100vw;">
106
             <View style="text-align: center;display:inline-block;" className="line">- - - - - - - - - - - - - -   </View>
110
             <View style="text-align: center;display:inline-block;" className="line">- - - - - - - - - - - - - -   </View>
128
           {/* {console.log(data.person.status)} */}
132
           {/* {console.log(data.person.status)} */}
129
         </View>}
133
         </View>}
130
         {this.state.data.enlist.enlistId == null && <View className="unregistered">
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
           <View>
145
           <View>
132
             <Image className="img1" src={require('@assets/checkin/noentry.png')} ></Image>
146
             <Image className="img1" src={require('@assets/checkin/noentry.png')} ></Image>
133
           </View>
147
           </View>
135
             <Text className="messageText" >您还未报名当前活动,请先前往活动报名页报名成功后再进行扫码签到~ </Text>
149
             <Text className="messageText" >您还未报名当前活动,请先前往活动报名页报名成功后再进行扫码签到~ </Text>
136
 
150
 
137
           </View>
151
           </View>
138
-{console.log(this.state.data.dynamic.dynamicId)}
152
+
139
           <AtButton type='primary' className="toactivebutton" onClick={() => { this.toactivity(this.state.data.dynamic.dynamicId) }}>立即前往</AtButton>
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
       </View>
160
       </View>
143
 
161
 
144
     );
162
     );

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

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

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

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

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

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