Browse Source

修复志友朵朵搜索翻页BUG;积分火火中爱心时长单位改为小时;

feature/optimise
ZhaoTongYao 5 years ago
parent
commit
25c63b4f78
  1. 10
      pages/heartNew/heartNew.js
  2. 284
      project.config.json
  3. 2
      subpages/heart/pages/leaderboardNew/leaderboardNew.wxml

10
pages/heartNew/heartNew.js

@ -92,6 +92,7 @@ Page({
let parms = { let parms = {
pageIndex: this.data.indexPage, pageIndex: this.data.indexPage,
pageSize: this.data.pageSize, pageSize: this.data.pageSize,
nickname: this.data.searchName
} }
this.volunteerlist(parms) this.volunteerlist(parms)
} }
@ -137,6 +138,7 @@ Page({
let parms = { let parms = {
pageIndex: this.data.indexPage, pageIndex: this.data.indexPage,
pageSize: this.data.pageSize, pageSize: this.data.pageSize,
nickname: this.data.searchName
} }
this.volunteerlist(parms) this.volunteerlist(parms)
} else if (e.currentTarget.dataset.tab == "tab2") { } else if (e.currentTarget.dataset.tab == "tab2") {
@ -260,14 +262,15 @@ Page({
}) })
return; return;
} }
this.setData({
volunteerlist: [],
indexPage: 1
})
let parms = { let parms = {
pageIndex: this.data.indexPage, pageIndex: this.data.indexPage,
pageSize: this.data.pageSize, pageSize: this.data.pageSize,
nickname: this.data.searchName nickname: this.data.searchName
} }
this.setData({
volunteerlist: []
})
this.volunteerlist(parms) this.volunteerlist(parms)
}, },
/** /**
@ -345,6 +348,7 @@ Page({
let parms = { let parms = {
pageIndex: this.data.indexPage, pageIndex: this.data.indexPage,
pageSize: this.data.pageSize, pageSize: this.data.pageSize,
nickname: this.data.searchName
} }
this.volunteerlist(parms) this.volunteerlist(parms)
} else if (this.data.selectedTab == "tab2") { } else if (this.data.selectedTab == "tab2") {

284
project.config.json

@ -1,144 +1,144 @@
{ {
"description": "项目配置文件", "description": "项目配置文件",
"packOptions": { "packOptions": {
"ignore": [] "ignore": []
}, },
"setting": { "setting": {
"urlCheck": false, "urlCheck": false,
"es6": true, "es6": true,
"postcss": true, "postcss": true,
"preloadBackgroundData": false, "preloadBackgroundData": false,
"minified": true, "minified": true,
"newFeature": true, "newFeature": true,
"coverView": true, "coverView": true,
"autoAudits": false, "autoAudits": false,
"showShadowRootInWxmlPanel": true, "showShadowRootInWxmlPanel": true,
"scopeDataCheck": false, "scopeDataCheck": false,
"checkInvalidKey": true, "checkInvalidKey": true,
"checkSiteMap": true, "checkSiteMap": true,
"uploadWithSourceMap": true, "uploadWithSourceMap": true,
"compileHotReLoad": false, "compileHotReLoad": false,
"babelSetting": { "babelSetting": {
"ignore": [], "ignore": [],
"disablePlugins": [], "disablePlugins": [],
"outputPath": "" "outputPath": ""
}, },
"useIsolateContext": true, "useIsolateContext": true,
"useCompilerModule": false, "useCompilerModule": false,
"userConfirmedUseCompilerModuleSwitch": false "userConfirmedUseCompilerModuleSwitch": false
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.8.2", "libVersion": "2.8.2",
"appid": "wx6dcf544cdae7d4ec", "appid": "wx6dcf544cdae7d4ec",
"projectname": "%E7%B2%BE%E8%87%B4%E9%94%A6%E6%B0%B4-%E5%B1%85%E6%B0%9 1%E7%AB%AF", "projectname": "%E7%B2%BE%E8%87%B4%E9%94%A6%E6%B0%B4-%E5%B1%85%E6%B0%9 1%E7%AB%AF",
"debugOptions": { "debugOptions": {
"hidedInDevtools": [] "hidedInDevtools": []
}, },
"isGameTourist": false, "isGameTourist": false,
"simulatorType": "wechat", "simulatorType": "wechat",
"simulatorPluginLibVersion": {}, "simulatorPluginLibVersion": {},
"condition": { "condition": {
"search": { "search": {
"current": -1, "current": -1,
"list": [] "list": []
}, },
"conversation": { "conversation": {
"current": -1, "current": -1,
"list": [] "list": []
}, },
"plugin": { "plugin": {
"current": -1, "current": -1,
"list": [] "list": []
}, },
"game": { "game": {
"currentL": -1, "currentL": -1,
"list": [] "list": []
}, },
"gamePlugin": { "gamePlugin": {
"current": -1, "current": -1,
"list": [] "list": []
}, },
"miniprogram": { "miniprogram": {
"current": -1, "current": -1,
"list": [ "list": [
{ {
"id": 0, "id": 0,
"name": "pages/formid/formid", "name": "pages/formid/formid",
"pathName": "pages/formid/formid", "pathName": "pages/formid/formid",
"query": "gid=1233592630168813569", "query": "gid=1233592630168813569",
"scene": 1011 "scene": 1011
}, },
{ {
"id": 1, "id": 1,
"name": "pages/indexNew/indexNew", "name": "pages/indexNew/indexNew",
"pathName": "pages/indexNew/indexNew", "pathName": "pages/indexNew/indexNew",
"query": "scene=1233592247862198274", "query": "scene=1233592247862198274",
"scene": 1011 "scene": 1011
}, },
{ {
"id": 2, "id": 2,
"name": "网格长注册", "name": "网格长注册",
"pathName": "pages/index/index", "pathName": "pages/index/index",
"query": "scene=gridLeader", "query": "scene=gridLeader",
"scene": 1011 "scene": 1011
}, },
{ {
"id": 3, "id": 3,
"name": "subpages/home/pages/newsDetail/newsDetail", "name": "subpages/home/pages/newsDetail/newsDetail",
"pathName": "subpages/home/pages/newsDetail/newsDetail", "pathName": "subpages/home/pages/newsDetail/newsDetail",
"query": "id=7c8bc749ff4b6380bf1d902c0bde0ba&defaultGridId=1233592630168813569", "query": "id=7c8bc749ff4b6380bf1d902c0bde0ba&defaultGridId=1233592630168813569",
"scene": null "scene": null
}, },
{ {
"id": -1, "id": -1,
"name": "社群列表", "name": "社群列表",
"pathName": "subpages/associationNew/pages/associationlist/associationlist", "pathName": "subpages/associationNew/pages/associationlist/associationlist",
"query": "", "query": "",
"scene": null "scene": null
}, },
{ {
"id": 5, "id": 5,
"name": "数据端跳转", "name": "数据端跳转",
"pathName": "pages/indexNew/indexNew", "pathName": "pages/indexNew/indexNew",
"query": "scene=1277169327606366209&from=analysis", "query": "scene=1277169327606366209&from=analysis",
"scene": null "scene": null
}, },
{ {
"id": 6, "id": 6,
"name": "工作端跳转", "name": "工作端跳转",
"pathName": "pages/indexNew/indexNew", "pathName": "pages/indexNew/indexNew",
"query": "scene=1280737901335838721&from=work", "query": "scene=1280737901335838721&from=work",
"scene": null "scene": null
}, },
{ {
"id": -1, "id": -1,
"name": "锦水档案", "name": "锦水档案",
"pathName": "subpages/understandJs/pages/archives/archives", "pathName": "subpages/understandJs/pages/archives/archives",
"query": "", "query": "",
"scene": null "scene": null
}, },
{ {
"id": 8, "id": 8,
"name": "搜索页面", "name": "搜索页面",
"pathName": "subpages/oneKeyService/pages/search/search", "pathName": "subpages/oneKeyService/pages/search/search",
"query": "", "query": "",
"scene": null "scene": null
}, },
{ {
"id": -1, "id": -1,
"name": "注册页面", "name": "注册页面",
"pathName": "pages/toRegister/toRegister", "pathName": "pages/toRegister/toRegister",
"query": "", "query": "",
"scene": null "scene": null
}, },
{ {
"id": -1, "id": -1,
"name": "subpages/heart/pages/leaderboardNew/leaderboardNew", "name": "subpages/heart/pages/leaderboardNew/leaderboardNew",
"pathName": "subpages/heart/pages/leaderboardNew/leaderboardNew", "pathName": "subpages/heart/pages/leaderboardNew/leaderboardNew",
"query": "", "query": "",
"scene": null "scene": null
} }
] ]
} }
} }
} }

2
subpages/heart/pages/leaderboardNew/leaderboardNew.wxml

@ -30,7 +30,7 @@
<view class="name">{{item.nickname}}</view> <view class="name">{{item.nickname}}</view>
<view class="info-detail"> <view class="info-detail">
<image class="heart-time" src="../../images/aixin.png"></image> <image class="heart-time" src="../../images/aixin.png"></image>
<view> 爱心时长 {{item.kindnessTime}}分钟</view> <view> 爱心时长 {{item.kindnessTime}}小时</view>
<image class="enter-times" src="../../images/bofangcishu.png"></image> <image class="enter-times" src="../../images/bofangcishu.png"></image>
<view> 参加次数 {{item.participationNum}}次</view> <view> 参加次数 {{item.participationNum}}次</view>
</view> </view>

Loading…
Cancel
Save