Browse Source

优化

master
zhaoyongnian 5 years ago
parent
commit
bdf674c396
  1. 75
      pages/complete/components/personalInfo/personalInfo.js
  2. 8
      pages/complete/components/personalInfo/personalInfo.wxml
  3. 2
      subpages/heart/components/cancelSignupDialog/cancelSignupDialog.wxml
  4. 2
      subpages/heart/components/cancelSignupDialog/cancelSignupDialog.wxss
  5. 161
      subpages/heart/pages/clockIn/clockIn.js
  6. 8
      subpages/heart/pages/heartDetail/heartDetail.wxml
  7. 2
      subpages/heart/pages/leaderboard/leaderboard.wxml
  8. 80
      subpages/heart/pages/volunteer/volunteer.js
  9. 47
      subpages/heart/pages/volunteer/volunteer.wxml
  10. 82
      subpages/integralCentre/pages/index/index.js
  11. 25
      subpages/integralCentre/pages/index/index.wxml
  12. 30
      subpages/integralCentre/pages/index/index.wxss

75
pages/complete/components/personalInfo/personalInfo.js

@ -17,7 +17,7 @@ Component({
gridId: '' // 网格id gridId: '' // 网格id
}, },
wxInfo: { wxInfo: {
encryptedData:'',// 完整信息的加密数据 encryptedData: '', // 完整信息的加密数据
iv: '', // 初始向量 iv: '', // 初始向量
wxCode: '', // 微信cod wxCode: '', // 微信cod
}, },
@ -36,15 +36,15 @@ Component({
}, },
selectedGrid: { selectedGrid: {
type: Object, type: Object,
observer: function (value) { observer: function(value) {
this.setData({ this.setData({
gridInfo: value gridInfo: value
}) })
} }
} }
}, },
lifetimes:{ lifetimes: {
attached () { attached() {
this.getPersonalInfo().then(res => { this.getPersonalInfo().then(res => {
this.getGridList() this.getGridList()
}) })
@ -54,63 +54,63 @@ Component({
}, },
methods: { methods: {
// 身份证号 双向绑定 // 身份证号 双向绑定
bindIdentityNoInput (e) { bindIdentityNoInput(e) {
this.setData({ this.setData({
'personalInfo.identityNo': e.detail.value 'personalInfo.identityNo': e.detail.value
}) })
console.log(this.data.personalInfo) console.log(this.data.personalInfo)
}, },
// 姓名 双向绑定 // 姓名 双向绑定
bindRealNameInput (e) { bindRealNameInput(e) {
this.setData({ this.setData({
'personalInfo.realName': e.detail.value 'personalInfo.realName': e.detail.value
}) })
console.log(this.data.personalInfo) console.log(this.data.personalInfo)
}, },
// 选择性别回调 // 选择性别回调
bindSexChange (e) { bindSexChange(e) {
this.setData({ this.setData({
'personalInfo.sex': e.detail.value 'personalInfo.sex': e.detail.value
}) })
console.log(this.data.personalInfo) console.log(this.data.personalInfo)
}, },
// 手机号 双向绑定 // 手机号 双向绑定
bindMobileInput (e) { bindMobileInput(e) {
this.setData({ this.setData({
'personalInfo.mobile': e.detail.value 'personalInfo.mobile': e.detail.value
}) })
console.log(this.data.personalInfo) console.log(this.data.personalInfo)
}, },
// 验证码 双向绑定 // 验证码 双向绑定
bindSmsCodeInput (e) { bindSmsCodeInput(e) {
this.setData({ this.setData({
'personalInfo.smsCode': e.detail.value 'personalInfo.smsCode': e.detail.value
}) })
console.log(this.data.personalInfo) console.log(this.data.personalInfo)
}, },
// 路 双向绑定 // 路 双向绑定
bindRoadInput (e) { bindRoadInput(e) {
this.setData({ this.setData({
'personalInfo.road': e.detail.value 'personalInfo.road': e.detail.value
}) })
console.log(this.data.personalInfo) console.log(this.data.personalInfo)
}, },
// 小区 双向绑定 // 小区 双向绑定
bindVillageNameInput (e) { bindVillageNameInput(e) {
this.setData({ this.setData({
'personalInfo.villageName': e.detail.value 'personalInfo.villageName': e.detail.value
}) })
console.log(this.data.personalInfo) console.log(this.data.personalInfo)
}, },
// 楼栋号-单元室 双向绑定 // 楼栋号-单元室 双向绑定
bindDwellingPlaceInput (e) { bindDwellingPlaceInput(e) {
this.setData({ this.setData({
'personalInfo.dwellingPlace': e.detail.value 'personalInfo.dwellingPlace': e.detail.value
}) })
console.log(this.data.personalInfo) console.log(this.data.personalInfo)
}, },
// 获取验证码 // 获取验证码
getSmsCode () { getSmsCode() {
if (!this.data.personalInfo.mobile) { if (!this.data.personalInfo.mobile) {
this.showToast('请先输入手机号') this.showToast('请先输入手机号')
return false return false
@ -128,9 +128,9 @@ Component({
const timer = setInterval(() => { const timer = setInterval(() => {
if (num >= 1) { if (num >= 1) {
this.setData({ this.setData({
smsCodeText: `${num}s后重新获取` smsCodeText: `${num}s后重新获取`
}) })
--num --num
} else { } else {
clearInterval(timer) clearInterval(timer)
this.setData({ this.setData({
@ -138,7 +138,7 @@ Component({
}) })
} }
}, 1000) }, 1000)
}).catch(err =>{ }).catch(err => {
console.log(err) console.log(err)
this.setData({ this.setData({
smsCodeText: '获取验证码' smsCodeText: '获取验证码'
@ -146,7 +146,7 @@ Component({
}) })
}, },
// 获取手机号 // 获取手机号
getPhoneNumber (e) { getPhoneNumber(e) {
if (e.detail.errMsg === 'getPhoneNumber:ok') { if (e.detail.errMsg === 'getPhoneNumber:ok') {
const para = { const para = {
wxCode: '', wxCode: '',
@ -155,7 +155,7 @@ Component({
} }
const that = this const that = this
wx.login({ wx.login({
success (res) { success(res) {
para.wxCode = res.code para.wxCode = res.code
api.getWxPhone(para).then(data => { api.getWxPhone(para).then(data => {
console.log('获取微信手机号', data) console.log('获取微信手机号', data)
@ -170,14 +170,14 @@ Component({
} }
}, },
// 获取之前完善的个人信息 // 获取之前完善的个人信息
getPersonalInfo () { getPersonalInfo() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
api.prepareComplete().then(res => { api.prepareComplete().then(res => {
console.log('获取个人信息', res) console.log('获取个人信息', res)
for(const key in this.data.personalInfo) { for (const key in this.data.personalInfo) {
this.data.personalInfo[key] = res.data[key] this.data.personalInfo[key] = res.data[key]
} }
for(const key in this.data.gridInfo) { for (const key in this.data.gridInfo) {
this.data.gridInfo[key] = res.data[key] this.data.gridInfo[key] = res.data[key]
} }
this.setData({ this.setData({
@ -185,7 +185,10 @@ Component({
gridInfo: this.data.gridInfo gridInfo: this.data.gridInfo
}) })
if (this.data.personalInfo.partyFlag === '1') { if (this.data.personalInfo.partyFlag === '1') {
this.triggerEvent('selectTabChange', {tab: 'partyMember', partyFlag: '1' }) this.triggerEvent('selectTabChange', {
tab: 'partyMember',
partyFlag: '1'
})
} }
resolve(true) resolve(true)
}).catch(err => { }).catch(err => {
@ -238,7 +241,7 @@ Component({
console.log('wxInfo', that.data.wxInfo) console.log('wxInfo', that.data.wxInfo)
resolve(true) resolve(true)
}, },
fail (err) { fail(err) {
reject(false) reject(false)
} }
}) })
@ -246,14 +249,18 @@ Component({
}, },
// 切换网格 // 切换网格
changeGrid() { changeGrid() {
this.triggerEvent('changeGrid', { gridId: this.data.gridInfo.gridId }) this.triggerEvent('changeGrid', {
gridId: this.data.gridInfo.gridId
})
}, },
// 获取当前用户所有网格 // 获取当前用户所有网格
getGridList() { getGridList() {
this.triggerEvent('getGridList', { gridId: this.data.gridInfo.gridId }) this.triggerEvent('getGridList', {
gridId: this.data.gridInfo.gridId
})
}, },
// 提交完善信息-从微信获取手机号方式 // 提交完善信息-从微信获取手机号方式
submitPersonalInfoByWx () { submitPersonalInfoByWx() {
if (!this.data.personalInfo.identityNo) { if (!this.data.personalInfo.identityNo) {
if (this.data.type === 'partyMember') { if (this.data.type === 'partyMember') {
this.showToast('请输入身份证号') this.showToast('请输入身份证号')
@ -277,7 +284,11 @@ Component({
// return false // return false
// } // }
if (!this.data.personalInfo.road) { if (!this.data.personalInfo.road) {
this.showToast('请填写所在街道') this.showToast('请填写所在小区或所在道路')
return false
}
if (this.data.personalInfo.road.length > 100) {
this.showToast('小区或所在道路不能超过100个字')
return false return false
} }
const para = { const para = {
@ -406,7 +417,7 @@ Component({
} }
}, },
// 提交完善信息,手机号输入方式 // 提交完善信息,手机号输入方式
submitPersonalInfoBySelf () { submitPersonalInfoBySelf() {
if (!this.data.personalInfo.identityNo) { if (!this.data.personalInfo.identityNo) {
if (this.data.type === 'partyMember') { if (this.data.type === 'partyMember') {
this.showToast('请输入身份证号') this.showToast('请输入身份证号')
@ -558,7 +569,7 @@ Component({
} }
} }
}, },
submitPersonalInfo () { submitPersonalInfo() {
if (this.data.getMobileType === 'wx') { if (this.data.getMobileType === 'wx') {
this.submitPersonalInfoByWx() this.submitPersonalInfoByWx()
} else if (this.data.getMobileType === 'self') { } else if (this.data.getMobileType === 'self') {
@ -566,14 +577,14 @@ Component({
} }
}, },
// 代码简化,弹窗统一封装 // 代码简化,弹窗统一封装
showToast (title) { showToast(title) {
wx.showToast({ wx.showToast({
title: title, title: title,
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
}, },
changeGetMobileType () { changeGetMobileType() {
let type = 'wx' let type = 'wx'
if (this.data.getMobileType === 'wx') { if (this.data.getMobileType === 'wx') {
type = 'self' type = 'self'

8
pages/complete/components/personalInfo/personalInfo.wxml

@ -46,7 +46,7 @@
<text class="must">*</text> <text class="must">*</text>
<view class="title">手机号</view> <view class="title">手机号</view>
</view> </view>
<view class="right" > <view class="right">
<input type="number" bindblur="bindMobileInput" bindinput="bindMobileInput" value="{{personalInfo.mobile}}" placeholder-class="placeholder-style" placeholder="请输入手机号" /> <input type="number" bindblur="bindMobileInput" bindinput="bindMobileInput" value="{{personalInfo.mobile}}" placeholder-class="placeholder-style" placeholder="请输入手机号" />
</view> </view>
</view> </view>
@ -69,14 +69,14 @@
<view class="title">居住地址</view> <view class="title">居住地址</view>
<view bindtap="changeGrid" class="change-grid" wx:if="{{moreThanOneGrid}}"> <view bindtap="changeGrid" class="change-grid" wx:if="{{moreThanOneGrid}}">
<text>切换网格</text> <text>切换网格</text>
<image src="../../../../images/mine/ic_qiehuan@2x.png" /> <image src="../../../../images/mine/ic_qiehuan@2x.png" />
</view> </view>
</view> </view>
<view class="list-item"> <view class="list-item">
<view class="grid-name">{{gridInfo.gridName}}</view> <view class="grid-name">{{gridInfo.gridName}}</view>
</view> </view>
<view class="list-item"> <view class="list-item">
<input bindblur="bindRoadInput" bindinput="bindRoadInput" value="{{personalInfo.road}}" placeholder-class="placeholder-style" placeholder="请输入所在小区" /> <input bindblur="bindRoadInput" bindinput="bindRoadInput" value="{{personalInfo.road}}" placeholder-class="placeholder-style" placeholder="请输入所在小区或所在道路" />
</view> </view>
<!-- <view class="list-item"> <!-- <view class="list-item">
<input bindblur="bindVillageNameInput" bindinput="bindVillageNameInput" value="{{personalInfo.villageName}}" placeholder-class="placeholder-style" placeholder="小区名称" /> <input bindblur="bindVillageNameInput" bindinput="bindVillageNameInput" value="{{personalInfo.villageName}}" placeholder-class="placeholder-style" placeholder="小区名称" />
@ -91,7 +91,7 @@
<view class="submit-button" wx:if="{{unionIdStatus === '1'}}"> <view class="submit-button" wx:if="{{unionIdStatus === '1'}}">
<button bindtap="submitPersonalInfo" hover-class="hover-submit">提交</button> <button bindtap="submitPersonalInfo" hover-class="hover-submit">提交</button>
</view> </view>
<view class="submit-button" wx:if="{{unionIdStatus === '0'}}"> <view class="submit-button" wx:if="{{unionIdStatus === '0'}}">
<button hover-class="hover-submit" open-type="getUserInfo" bindgetuserinfo="getUserInfo">提交</button> <button hover-class="hover-submit" open-type="getUserInfo" bindgetuserinfo="getUserInfo">提交</button>
</view> </view>

2
subpages/heart/components/cancelSignupDialog/cancelSignupDialog.wxml

@ -5,7 +5,7 @@
</view> </view>
<view class="title">{{title}}</view> <view class="title">{{title}}</view>
<view class="textarea"> <view class="textarea">
<textarea value="{{textareaValue}}" bindblur="textareaInput" bindinput="textareaInput" placeholder-class="textarea-placeholder" placeholder="请您填写取消报名的原因,提交后您无法参加本次活动"/> <textarea value="{{textareaValue}}" bindblur="textareaInput" bindinput="textareaInput" placeholder-class="textarea-placeholder" cursor-spacing="70" placeholder="请您填写取消报名的原因,提交后您无法参加本次活动"/>
</view> </view>
<view class="note" wx:if="{{tipVisible}}">{{tipValue}}</view> <view class="note" wx:if="{{tipVisible}}">{{tipValue}}</view>
<view class="footer"> <view class="footer">

2
subpages/heart/components/cancelSignupDialog/cancelSignupDialog.wxss

@ -17,7 +17,7 @@
background: #fff; background: #fff;
box-sizing: border-box; box-sizing: border-box;
padding: 0 30rpx; padding: 0 30rpx;
margin-top: -350rpx; /* margin-top: -350rpx; */
} }
.notice-verify .content .close { .notice-verify .content .close {
width: 100%; width: 100%;

161
subpages/heart/pages/clockIn/clockIn.js

@ -10,33 +10,33 @@ Page({
*/ */
data: { data: {
BASEURL: BASEURL(), BASEURL: BASEURL(),
qqmapsdk:"", qqmapsdk: "",
signin: {},//活动打卡地点详情 signin: {}, //活动打卡地点详情
actId: "",//活动ID actId: "", //活动ID
operationDesc: "",//打卡描述 operationDesc: "", //打卡描述
operationDesc_:"", operationDesc_: "",
locationLongitude: Number,//打卡位置经度 locationLongitude: Number, //打卡位置经度
locationLatitude: Number,// 打卡位置纬度 locationLatitude: Number, // 打卡位置纬度
operationAddress:"",//打卡地址 operationAddress: "", //打卡地址
images: [],//图片 images: [], //图片
clockType: Number,//打卡类型(0-打卡,1-更新打卡) clockType: Number, //打卡类型(0-打卡,1-更新打卡)
effectiveFlag: Number,//打卡是否有效(0-否,1-是) effectiveFlag: Number, //打卡是否有效(0-否,1-是)
phraseList:[],//常用于列表 phraseList: [], //常用于列表
phraseId:"",//常用语id phraseId: "", //常用语id
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function(options) {
const qqmapsdk = new QQMapWX({ const qqmapsdk = new QQMapWX({
key: 'CMJBZ-4DECI-JXGGN-5B4WU-QLV2H-B5BEJ' key: 'CMJBZ-4DECI-JXGGN-5B4WU-QLV2H-B5BEJ'
}) })
if (options.currentUserStatus == "4") {//0-打卡 if (options.currentUserStatus == "4") { //0-打卡
this.setData({ this.setData({
clockType: 0 clockType: 0
}) })
}else{//更新打卡 } else { //更新打卡
this.setData({ this.setData({
clockType: 1 clockType: 1
}) })
@ -44,22 +44,22 @@ Page({
this.setData({ this.setData({
qqmapsdk, qqmapsdk,
id: options.id, id: options.id,
effectiveFlag:1 effectiveFlag: 1
}) })
this.getPhraseList();//常用语列表 this.getPhraseList(); //常用语列表
this.getPosition(); this.getPosition();
this.clockAddressDetail(); this.clockAddressDetail();
}, },
getPhraseList(){ getPhraseList() {
let that = this; let that = this;
api.getPhraseList().then(function (res) {//常用语列表 api.getPhraseList().then(function(res) { //常用语列表
console.log('常用语列表:' + JSON.stringify(res.data)) console.log('常用语列表:' + JSON.stringify(res.data))
that.setData({ that.setData({
phraseList: res.data, phraseList: res.data,
}) })
}) })
}, },
toOperationDesc(phrase){//常用于点击事件 toOperationDesc(phrase) { //常用于点击事件
// console.log(phrase.currentTarget.dataset.phrase) // console.log(phrase.currentTarget.dataset.phrase)
this.setData({ this.setData({
operationDesc: this.data.operationDesc + phrase.currentTarget.dataset.phrase, operationDesc: this.data.operationDesc + phrase.currentTarget.dataset.phrase,
@ -78,8 +78,8 @@ Page({
this.reverseGeocoder(res) this.reverseGeocoder(res)
this.setData({ this.setData({
location: { location: {
locationLongitude: res.latitude, locationLongitude: res.longitude,
locationLatitude: res.longitude locationLatitude: res.latitude
} }
}) })
}, },
@ -95,7 +95,10 @@ Page({
}) })
}, },
// 逆地址解析 // 逆地址解析
reverseGeocoder({ latitude, longitude }) { reverseGeocoder({
latitude,
longitude
}) {
var that = this; var that = this;
that.data.qqmapsdk.reverseGeocoder({ that.data.qqmapsdk.reverseGeocoder({
location: { location: {
@ -189,8 +192,8 @@ Page({
}) })
}, },
/** /**
* 数据提交方法 * 数据提交方法
*/ */
submission() { submission() {
if (this.data.operationDesc === '') { if (this.data.operationDesc === '') {
wx.showToast({ wx.showToast({
@ -201,7 +204,7 @@ Page({
return false return false
} }
if (this.data.images.length==0){ if (this.data.images.length == 0) {
wx.showToast({ wx.showToast({
title: '请上传打卡图片', title: '请上传打卡图片',
icon: 'none', icon: 'none',
@ -211,63 +214,71 @@ Page({
} }
if (this.data.phraseId) { if (this.data.phraseId) {
api.sagenumAddOne(this.data.phraseId).then(function (res) { api.sagenumAddOne(this.data.phraseId).then(function(res) {
console.log('常用语言:' + res) console.log('常用语言:' + res)
}) })
} }
const signinLongitude = this.data.signin.signinLongitude;//经度 const signinLongitude = this.data.signin.signinLongitude; //经度
const signinLatitude = this.data.signin.signinLatitude;//纬度 const signinLatitude = this.data.signin.signinLatitude; //纬度
var clockLongitudeMy = 0;
const clockLongitude = this.data.location.locationLatitude;//经度 var clockLatitudeMy = 0;
const clockLatitude = this.data.location.locationLongitude;//纬度 if (this.data.location && this.data.location.locationLatitude && this.data.location.locationLongitude) {
clockLongitudeMy = this.data.location.locationLongitude; //经度
// console.log("signinLongitude" + signinLongitude + "signinLatitude" + signinLatitude) clockLatitudeMy = this.data.location.locationLatitude; //纬度
// console.log("clockLongitude" + clockLongitude + "clockLatitude" + clockLatitude)
// Lat1 Lung1 表示A点纬度和经度,Lat2 Lung2 表示B点纬度和经度;
// a = Lat1 – Lat2 为两点纬度之差 b = Lung1 - Lung2 为两点经度之差;
// 6378.137为地球半径,单位为公里;计算出来的结果单位为公里;
var radLat1 = this.Rad(signinLatitude);
var radLat2 = this.Rad(clockLatitudeMy);
var a = radLat1 - radLat2;
var b = this.Rad(signinLongitude) - this.Rad(clockLongitudeMy);
var s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) +
Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2)));
s = s * 6378.137; // EARTH_RADIUS;
s = Math.round(s * 10000) / 10000 * 1000;
//s=s.toFixed(4);
if (s > this.data.signin.clockRadius) {
this.setData({
effectiveFlag: 0
})
} else {
this.setData({
effectiveFlag: 1
})
}
} else {
this.setData({
clockLongitudeMy: 0,
clockLatitudeMy: 0,
effectiveFlag: 0
})
}
// Lat1 Lung1 表示A点纬度和经度,Lat2 Lung2 表示B点纬度和经度;
// a = Lat1 – Lat2 为两点纬度之差 b = Lung1 - Lung2 为两点经度之差;
// 6378.137为地球半径,单位为公里;计算出来的结果单位为公里;
var radLat1 = this.Rad(signinLatitude);
var radLat2 = this.Rad(clockLatitude);
var a = radLat1 - radLat2;
var b = this.Rad(signinLongitude) - this.Rad(clockLongitude);
var s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) +
Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2)));
s = s * 6378.137;// EARTH_RADIUS;
s = Math.round(s * 10000) / 10000 *1000;
//s=s.toFixed(4);
if (s > this.data.signin.clockRadius){ const params = {
this.setData({
effectiveFlag:0
})
}else{
this.setData({
effectiveFlag: 1
})
}
const params={
actId: this.data.id, actId: this.data.id,
clockDesc: this.data.operationDesc.substring(0, 500), clockDesc: this.data.operationDesc.substring(0, 500),
clockLongitude: this.data.location.locationLongitude, clockLongitude: clockLongitudeMy, //打卡位置经度
clockLatitude: this.data.location.locationLatitude, clockLatitude: clockLatitudeMy, //打卡位置纬度
clockAddress: this.data.operationAddress, clockAddress: this.data.operationAddress,
images: this.data.images, images: this.data.images,
clockType: this.data.clockType,//打卡类型(0-打卡,1-更新打卡) clockType: this.data.clockType, //打卡类型(0-打卡,1-更新打卡)
effectiveFlag: this.data.effectiveFlag//打卡是否有效(0-否,1-是) effectiveFlag: this.data.effectiveFlag //打卡是否有效(0-否,1-是)
} }
// console.log('~~~~~~~":::::' + JSON.stringify(params)) // console.log('~~~~~~~":::::' + JSON.stringify(params))
api.clock(params).then(function (res) { api.clock(params).then(function(res) {
if (res.code == 0) { if (res.code == 0) {
wx.showToast({ wx.showToast({
title: '打卡成功', title: '打卡成功',
icon: 'none', icon: 'none',
duration: 3000, duration: 3000,
complete: function () { complete: function() {
setTimeout(function () { setTimeout(function() {
wx.navigateBack() wx.navigateBack()
}, 1000); }, 1000);
} }
@ -276,14 +287,14 @@ Page({
}) })
}, },
Rad(d) {//经纬度转换成三角函数中度分表形式。 Rad(d) { //经纬度转换成三角函数中度分表形式。
return d * Math.PI / 180.0; return d * Math.PI / 180.0;
}, },
clockAddressDetail() {//活动打卡地点详情 clockAddressDetail() { //活动打卡地点详情
let that = this; let that = this;
const id = that.data.id; const id = that.data.id;
api.clockAddressDetail(id).then(function (res) { api.clockAddressDetail(id).then(function(res) {
if (res.code == 0) { if (res.code == 0) {
that.setData({ that.setData({
signin: res.data signin: res.data
@ -295,49 +306,49 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () { onReady: function() {
}, },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function() {
}, },
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () { onHide: function() {
}, },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () { onUnload: function() {
}, },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () { onPullDownRefresh: function() {
}, },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () { onReachBottom: function() {
}, },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () { onShareAppMessage: function() {
} }
}) })

8
subpages/heart/pages/heartDetail/heartDetail.wxml

@ -46,8 +46,14 @@
<image src="../../images/mdsz.png"></image> <image src="../../images/mdsz.png"></image>
<view class="info-font display-inline">活动名额</view> <view class="info-font display-inline">活动名额</view>
</view> </view>
<view class="info-right color" wx:if="{{detail.actQuotaCategory}}"> <!-- <view class="info-right color">
{{ detail.actQuotaCategory === 0 ? '不限名额' : detail.actQuota + '人'}} {{ detail.actQuotaCategory === 0 ? '不限名额' : detail.actQuota + '人'}}
</view> -->
<view class="info-right color" wx:if="{{detail.actQuotaCategory === 0}}">
不限名额
</view>
<view class="info-right color" wx:else>
{{detail.actQuota}}人
</view> </view>
<view class="clear"></view> <view class="clear"></view>
</view> </view>

2
subpages/heart/pages/leaderboard/leaderboard.wxml

@ -11,7 +11,7 @@
<view class="num">2</view> <view class="num">2</view>
</view> </view>
<view class="name" style="visibility: {{second.nickname ? 'visible' : 'hidden'}}">{{second.nickname}}</view> <view class="name" style="visibility: {{second.nickname ? 'visible' : 'hidden'}}">{{second.nickname}}</view>
<view class="time"style="visibility: {{second.kindnessTime ? 'visible' : 'hidden'}}">爱心时长{{second.kindnessTime}}小时</view> <view class="time"style="visibility: {{second.kindnessTime ? 'visible' : 'hidden'}}">爱心时长{{second.kindnessTime}}分钟</view>
<view class="times" style="visibility: {{second.participationNum ? 'visible' : 'hidden'}}">参加次数{{second.participationNum}}次</view> <view class="times" style="visibility: {{second.participationNum ? 'visible' : 'hidden'}}">参加次数{{second.participationNum}}次</view>
</view> </view>
<view class="first order"> <view class="first order">

80
subpages/heart/pages/volunteer/volunteer.js

@ -1,5 +1,7 @@
const api = require('../../../../utils/api') const api = require('../../../../utils/api')
import { $wuxDialog } from '../../../../dist/index' import {
$wuxDialog
} from '../../../../dist/index'
const app = getApp() const app = getApp()
Page({ Page({
@ -7,18 +9,18 @@ Page({
* 页面的初始数据 全部为必填项 * 页面的初始数据 全部为必填项
*/ */
data: { data: {
realName: '',//真实姓名 realName: '', //真实姓名
mobile: '',//手机号 mobile: '', //手机号
identityNo: '',//身份证号码 identityNo: '', //身份证号码
road: '',//所在道路 road: '', //所在道路
villageName: '',//小区名 villageName: '', //小区名
dwellingPlace: '',//住处(楼栋-单元-房间) dwellingPlace: '', //住处(楼栋-单元-房间)
gridId: Number,//居住网格id gridId: Number, //居住网格id
gridName:'', gridName: '',
wxCode: '',//用户unionId为空时 传入 wxCode: '', //用户unionId为空时 传入
encryptedData: '',//用户unionId为空时 传入 encryptedData: '', //用户unionId为空时 传入
iv: '',//用户unionId为空时 传入 iv: '', //用户unionId为空时 传入
introduce: '',//自我介绍 introduce: '', //自我介绍
unionIdStatus: '0', unionIdStatus: '0',
wait: 60, wait: 60,
smsCode: '', smsCode: '',
@ -30,53 +32,53 @@ Page({
getMobileType: 'wx', getMobileType: 'wx',
smsCodeText: '获取验证码' smsCodeText: '获取验证码'
}, },
onLoad: function (options) { onLoad: function(options) {
this.getPrepareComplete().then(res => { this.getPrepareComplete().then(res => {
this.getGridList() this.getGridList()
}) })
this.checkWxUnionId() this.checkWxUnionId()
this.getWxCode() this.getWxCode()
}, },
bindRealNameInput (e) { bindRealNameInput(e) {
this.setData({ this.setData({
realName: e.detail.value realName: e.detail.value
}) })
}, },
bindMobileInput (e) { bindMobileInput(e) {
this.setData({ this.setData({
mobile: e.detail.value mobile: e.detail.value
}) })
}, },
bindSmsCodeInput (e) { bindSmsCodeInput(e) {
this.setData({ this.setData({
smsCode: e.detail.value smsCode: e.detail.value
}) })
}, },
bindIdentityNoInput (e) { bindIdentityNoInput(e) {
this.setData({ this.setData({
identityNo: e.detail.value identityNo: e.detail.value
}) })
}, },
adInputStreet (e) { adInputStreet(e) {
this.setData({ this.setData({
road: e.detail.value road: e.detail.value
}) })
}, },
adInputCommunity (e) { adInputCommunity(e) {
this.setData({ this.setData({
villageName: e.detail.value villageName: e.detail.value
}) })
}, },
adInputBuilding (e) { adInputBuilding(e) {
this.setData({ this.setData({
dwellingPlace: e.detail.value dwellingPlace: e.detail.value
}) })
}, },
adInputIntroduce (e) { adInputIntroduce(e) {
this.setData({ this.setData({
introduce: e.detail.value introduce: e.detail.value
}) })
@ -112,9 +114,9 @@ Page({
encryptedData: e.detail.encryptedData, encryptedData: e.detail.encryptedData,
iv: e.detail.iv iv: e.detail.iv
}) })
if (e.detail.iv){ if (e.detail.iv) {
this.submission() this.submission()
}else{ } else {
wx.showToast({ wx.showToast({
title: '您拒绝了获取信息,无法完成认证', title: '您拒绝了获取信息,无法完成认证',
icon: 'none', icon: 'none',
@ -182,7 +184,7 @@ Page({
this.showToast('请输入身份证号') this.showToast('请输入身份证号')
return false return false
} }
if(this.data.getMobileType === 'wx') { if (this.data.getMobileType === 'wx') {
if (!this.data.mobile) { if (!this.data.mobile) {
this.showToast('请获取手机号') this.showToast('请获取手机号')
return false return false
@ -198,11 +200,11 @@ Page({
} }
} }
if (!this.data.road) { if (!this.data.road) {
this.showToast('请输入所在道路') this.showToast('请填写所在小区或所在道路')
return false return false
} }
if (this.data.road.length > 100) { if (this.data.road.length > 100) {
this.showToast('所在小区不能超过100个字') this.showToast('小区或所在道路不能超过100个字')
return false return false
} }
if (!this.data.introduce) { if (!this.data.introduce) {
@ -231,7 +233,7 @@ Page({
wx.showLoading({ wx.showLoading({
title: '正在提交', title: '正在提交',
}) })
api.authenticate(params).then( res => { api.authenticate(params).then(res => {
wx.hideLoading() wx.hideLoading()
let state = res.data.userState let state = res.data.userState
@ -248,12 +250,12 @@ Page({
}) })
}) })
}, },
confirmDialog () { confirmDialog() {
wx.navigateBack({ wx.navigateBack({
delta: 1 delta: 1
}) })
}, },
changeGetMobileType () { changeGetMobileType() {
let type = 'wx' let type = 'wx'
if (this.data.getMobileType === 'wx') { if (this.data.getMobileType === 'wx') {
type = 'self' type = 'self'
@ -265,7 +267,7 @@ Page({
}) })
}, },
// 获取验证码 // 获取验证码
getSmsCode () { getSmsCode() {
if (!this.data.mobile) { if (!this.data.mobile) {
this.showToast('请先输入手机号') this.showToast('请先输入手机号')
return false return false
@ -283,9 +285,9 @@ Page({
const timer = setInterval(() => { const timer = setInterval(() => {
if (num >= 1) { if (num >= 1) {
this.setData({ this.setData({
smsCodeText: `${num}s后重新获取` smsCodeText: `${num}s后重新获取`
}) })
--num --num
} else { } else {
clearInterval(timer) clearInterval(timer)
this.setData({ this.setData({
@ -293,7 +295,7 @@ Page({
}) })
} }
}, 1000) }, 1000)
}).catch(err =>{ }).catch(err => {
console.log(err) console.log(err)
this.setData({ this.setData({
smsCodeText: '获取验证码' smsCodeText: '获取验证码'
@ -301,7 +303,7 @@ Page({
}) })
}, },
// 获取手机号 // 获取手机号
getPhoneNumber (e) { getPhoneNumber(e) {
if (e.detail.errMsg === 'getPhoneNumber:ok') { if (e.detail.errMsg === 'getPhoneNumber:ok') {
const para = { const para = {
wxCode: '', wxCode: '',
@ -310,7 +312,7 @@ Page({
} }
const that = this const that = this
wx.login({ wx.login({
success (res) { success(res) {
para.wxCode = res.code para.wxCode = res.code
api.getWxPhone(para).then(data => { api.getWxPhone(para).then(data => {
console.log('获取微信手机号', data) console.log('获取微信手机号', data)
@ -325,7 +327,7 @@ Page({
} }
}, },
// 代码简化,弹窗统一封装 // 代码简化,弹窗统一封装
showToast (title) { showToast(title) {
wx.showToast({ wx.showToast({
title: title, title: title,
icon: 'none', icon: 'none',

47
subpages/heart/pages/volunteer/volunteer.wxml

@ -4,7 +4,7 @@
<image src="../../images/renzheng-bg.png" /> <image src="../../images/renzheng-bg.png" />
</view> </view>
<view class="position-absolute"> <view class="position-absolute">
<!-- 基本信息 --> <!-- 基本信息 -->
<view class="basic-info"> <view class="basic-info">
<view class="info-box"> <view class="info-box">
<view class="info-left header"> <view class="info-left header">
@ -21,15 +21,15 @@
<input confirm-type="next" bindblur="bindRealNameInput" bindinput="bindRealNameInput" value="{{realName}}" placeholder-class="placeholder-style" placeholder="请输入姓名" /> <input confirm-type="next" bindblur="bindRealNameInput" bindinput="bindRealNameInput" value="{{realName}}" placeholder-class="placeholder-style" placeholder="请输入姓名" />
</view> </view>
</view> </view>
<view class="list-item identity-no"> <view class="list-item identity-no">
<view class="left"> <view class="left">
<text class="must">*</text> <text class="must">*</text>
<view class="title">身份证号</view> <view class="title">身份证号</view>
</view> </view>
<view class="right"> <view class="right">
<input type="idcard" bindblur="bindIdentityNoInput" bindinput="bindIdentityNoInput" value="{{identityNo}}" placeholder-class="placeholder-style" placeholder="实名认证请输入身份证" /> <input type="idcard" bindblur="bindIdentityNoInput" bindinput="bindIdentityNoInput" value="{{identityNo}}" placeholder-class="placeholder-style" placeholder="实名认证请输入身份证" />
</view>
</view> </view>
</view>
<view class="list-item mobile" wx:if="{{getMobileType === 'wx'}}"> <view class="list-item mobile" wx:if="{{getMobileType === 'wx'}}">
<view class="left"> <view class="left">
<text class="must">*</text> <text class="must">*</text>
@ -45,7 +45,7 @@
<text class="must">*</text> <text class="must">*</text>
<view class="title">手机号</view> <view class="title">手机号</view>
</view> </view>
<view class="right" > <view class="right">
<input type="number" bindblur="bindMobileInput" bindinput="bindMobileInput" value="{{mobile}}" placeholder-class="placeholder-style" placeholder="请输入手机号" /> <input type="number" bindblur="bindMobileInput" bindinput="bindMobileInput" value="{{mobile}}" placeholder-class="placeholder-style" placeholder="请输入手机号" />
</view> </view>
</view> </view>
@ -61,7 +61,7 @@
</view> </view>
</view> </view>
<view class="note" bindtap="changeGetMobileType">{{getMobileType === 'wx' ? '*如若获取手机号异常,请点击切换至手机号/验证码注册方式' : '*点击可切回至从微信获取手机号注册方式'}}</view> <view class="note" bindtap="changeGetMobileType">{{getMobileType === 'wx' ? '*如若获取手机号异常,请点击切换至手机号/验证码注册方式' : '*点击可切回至从微信获取手机号注册方式'}}</view>
<!-- 居住地址 --> <!-- 居住地址 -->
<view class="info magin-top"> <view class="info magin-top">
<view class="info-box"> <view class="info-box">
@ -79,7 +79,7 @@
<view class="info-box"> <view class="info-box">
<view class="address name"> <view class="address name">
<input placeholder="请填写您所在的小区" controlled value="{{road}}" bind:change="adInputStreet"></input> <input placeholder="请输入所在小区或所在道路" controlled value="{{road}}" bind:change="adInputStreet"></input>
</view> </view>
<view class="clear"></view> <view class="clear"></view>
</view> </view>
@ -110,28 +110,21 @@
<view class="info-box-last"> <view class="info-box-last">
<view class="introduce"> <view class="introduce">
<textarea placeholder="请输入自我介绍、是否参加过公益活动、参加了哪些公益活动" bindblur="adInputIntroduce" bindinput="adInputIntroduce" maxlength="500"></textarea> <textarea placeholder="请输入自我介绍、是否参加过公益活动、参加了哪些公益活动" bindblur="adInputIntroduce" bindinput="adInputIntroduce" maxlength="500"></textarea>
</view> </view>
</view> </view>
</view> </view>
<view class="submit-btn" wx:if="{{unionIdStatus === '1'}}"> <view class="submit-btn" wx:if="{{unionIdStatus === '1'}}">
<button hover-class="hover-button" bindtap="submission">提交认证</button> <button hover-class="hover-button" bindtap="submission">提交认证</button>
</view> </view>
<view class="submit-btn" wx:elif="{{unionIdStatus === '0'}}"> <view class="submit-btn" wx:elif="{{unionIdStatus === '0'}}">
<button hover-class="hover-button" open-type="getUserInfo" bindgetuserinfo="getUserInfo">提交认证</button> <button hover-class="hover-button" open-type="getUserInfo" bindgetuserinfo="getUserInfo">提交认证</button>
</view> </view>
</view> </view>
</view> </view>
<coverview-dialog <coverview-dialog bind:close="confirmDialog" bind:confirm="confirmDialog" dialogVisible="{{dialogVisible}}" title="{{dialogTitle}}" content="{{dialogContent}}" confirmText="{{dialogConfirmText}}" cancelText="{{dialogCancelText}}">
bind:close="confirmDialog"
bind:confirm="confirmDialog"
dialogVisible="{{dialogVisible}}"
title="{{dialogTitle}}"
content="{{dialogContent}}"
confirmText="{{dialogConfirmText}}"
cancelText="{{dialogCancelText}}">
</coverview-dialog> </coverview-dialog>

82
subpages/integralCentre/pages/index/index.js

@ -50,10 +50,11 @@ Page({
this.setData({ this.setData({
pageIndex: 1, pageIndex: 1,
pageSize: 15, pageSize: 15,
loadMoreType: 'none', loadMoreType: 'loading',
loadMoreVisible: false, loadMoreVisible: true,
pointsRecordlist: [], pointsRecordlist: [],
pointsRankinglist: [], pointsRankinglist: [],
pointsRankingUser: {},//当前用户排名信息
selectTab: e.currentTarget.dataset.tab, selectTab: e.currentTarget.dataset.tab,
nodatapointsRecord: false, nodatapointsRecord: false,
nodatapointsRanking: false, nodatapointsRanking: false,
@ -81,76 +82,81 @@ Page({
pageIndex: 1, pageIndex: 1,
pageSize: 15, pageSize: 15,
timestamp: this.data.timestamp, timestamp: this.data.timestamp,
loadMoreType: 'none',
loadMoreVisible: false,
pointsRankinglist: [], pointsRankinglist: [],
nodatapointsRanking: false, nodatapointsRanking: false,
loadMoreType: 'loading',
loadMoreVisible: true,
}) })
that.pointsRankinglist() that.pointsRankinglist()
}, },
// 积分记录-积分排行接口
// 获取事件详情 pointsRankinglist() {
pointsRecordlist() {
let that = this let that = this
const para = { const para = {
pageIndex: this.data.pageIndex, pageIndex: 1,
pageSize: this.data.pageSize, pageSize: 10,
timestamp: this.data.timestamp, timestamp: this.data.timestamp,
rankingType: this.data.rankingType, //排名方式:0-周,1-月
} }
pointsRecordlist(para).then(res => { pointsRankinglist(para).then(res => {
that.setData({ that.setData({
pointsRecordlist: that.data.pointsRecordlist.concat(res.data), pointsRankingUser: res.data.pointsRankingUser,
loadMoreType: res.data.length === that.data.pageSize ? 'loading' : 'none', pointsRankinglist: that.data.pointsRankinglist.concat(res.data.pointsRankingTopTen),
}) })
if (that.data.pointsRecordlist.length > 0) { if (that.data.pointsRankinglist.length > 0) {
that.setData({ that.setData({
nodatapointsRecord: false, nodatapointsRanking: false,
loadMoreType: 'none',
}) })
} else { } else {
that.setData({ that.setData({
nodatapointsRecord: true, nodatapointsRanking: true,
loadMoreType: 'none',
loadMoreVisible: false,
}) })
} }
}).catch(err => { }).catch(err => {
that.setData({ that.setData({
pointsRankinglist: [],
nodatapointsRanking: true,
loadMoreType: 'none', loadMoreType: 'none',
pointsRecordlist: [], loadMoreVisible: false,
nodatapointsRecord: false,
}) })
console.log(err) console.log(err)
}) })
}, },
// 积分记录-积分排行接口 // 积分记录-积分记录接口
pointsRankinglist() { pointsRecordlist() {
let that = this let that = this
const para = { const para = {
pageIndex: this.data.pageIndex, pageIndex: this.data.pageIndex,
pageSize: this.data.pageSize, pageSize: this.data.pageSize,
timestamp: this.data.timestamp, timestamp: this.data.timestamp,
rankingType: this.data.rankingType, //排名方式:0-周,1-月
} }
pointsRankinglist(para).then(res => { pointsRecordlist(para).then(res => {
that.setData({ that.setData({
pointsRankinglist: that.data.pointsRankinglist.concat(res.data), pointsRecordlist: that.data.pointsRecordlist.concat(res.data),
loadMoreType: res.data.length === that.data.pageSize ? 'loading' : 'none', loadMoreType: res.data.length === that.data.pageSize ? 'loading' : 'none',
}) })
if (that.data.pointsRankinglist.length > 0) { if (that.data.pointsRecordlist.length > 0) {
that.setData({ that.setData({
nodatapointsRanking: false nodatapointsRecord: false,
}) })
} else { } else {
that.setData({ that.setData({
nodatapointsRanking: true nodatapointsRecord: true,
loadMoreVisible: false,
}) })
} }
}).catch(err => { }).catch(err => {
that.setData({ that.setData({
loadMoreType: 'none', loadMoreType: 'none',
pointsRankinglist: [], loadMoreVisible: false,
nodatapointsRanking: false pointsRecordlist: [],
nodatapointsRecord: true,
}) })
console.log(err) console.log(err)
}) })
@ -158,6 +164,7 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
@ -198,17 +205,18 @@ Page({
this.setData({ this.setData({
loadMoreVisible: true loadMoreVisible: true
}) })
if (this.data.loadMoreType === 'loading') {
this.setData({
pageIndex: this.data.pageIndex + 1,
pageSize: this.data.pageSize,
timestamp: this.data.timestamp,
nodatapointsRecord: false,
})
if (this.data.selectTab == 'tab1') { if (this.data.selectTab == 'tab1') {
this.pointsRankinglist(); //积分排行 // this.pointsRankinglist(); //积分排行
} else { } else {
if (this.data.loadMoreType === 'loading') {
this.setData({
pageIndex: this.data.pageIndex + 1,
pageSize: this.data.pageSize,
timestamp: this.data.timestamp,
nodatapointsRecord: false,
})
this.pointsRecordlist(); //初始化加载积分记录列表 this.pointsRecordlist(); //初始化加载积分记录列表
} }
} }

25
subpages/integralCentre/pages/index/index.wxml

@ -11,20 +11,34 @@
</view> </view>
<!-- 积分排行 --> <!-- 积分排行 -->
<block wx:if="{{selectTab === 'tab1'}}"> <block wx:if="{{selectTab === 'tab1'}}">
<view class="Top"></view>
<view class="tab-item"> <view class="tab-item">
<button wx:for="{{typeList}}" wx:key="index" wx:for-index="index" bindtap="onButtonChange" hover-class="hover-btn" data-type="{{item.type}}" id="item-{{ item.type }}" class="{{item.select ? 'font-w' : 'font-b'}}"> <button wx:for="{{typeList}}" wx:key="index" wx:for-index="index" bindtap="onButtonChange" hover-class="hover-btn" data-type="{{item.type}}" id="item-{{ item.type }}" class="{{item.select ? 'font-w' : 'font-b'}}">
{{item.name}} {{item.name}}
</button> </button>
</view> </view>
<view class="ph-list" wx:for-index="index" wx:for-item="item" wx:key="index" wx:for="{{pointsRankinglist}}" data-id="{{item.id}}"> <view class="ph-list">
<view class="left">
<!-- 左边图片 -->
<view class="left-img">
<view class="list-number_">{{pointsRankingUser.rank}}</view>
</view>
<!-- 名字 -->
<view class="list-name">{{pointsRankingUser.nickName}}</view>
</view>
<view class="right">{{pointsRankingUser.points}}</view>
</view>
<view class="marginTop"></view>
<view class="ph-list" wx:for-index="index" wx:for-item="item" wx:key="index" wx:for="{{pointsRankinglist}}">
<view class="left"> <view class="left">
<!-- 左边图片 --> <!-- 左边图片 -->
<view class="left-img"> <view class="left-img">
<image class="img-bg" wx:if="{{index == 0}}" src="../../images/first.png"></image> <image class="img-bg" wx:if="{{index == 0}}" src="../../images/first.png"></image>
<image class="img-bg" wx:elif="{{index == 1}}" src="../../images/second.png"></image> <image class="img-bg" wx:elif="{{index == 1}}" src="../../images/second.png"></image>
<image class="img-bg" wx:elif="{{index == 2}}" src="../../images/third.png"></image> <image class="img-bg" wx:elif="{{index == 2}}" src="../../images/third.png"></image>
<image class="img-bg" wx:else src="../../images/fourth.png"></image> <!-- <image class="img-bg" wx:else src="../../images/fourth.png"></image> -->
<view class="list-number">{{index+1}}</view> <view wx:if="{{index < 3}}" class="list-number">{{index+1}}</view>
<view wx:else class="list-number_">{{index+1}}</view>
</view> </view>
<!-- 名字 --> <!-- 名字 -->
<view class="list-name">{{item.nickName}}</view> <view class="list-name">{{item.nickName}}</view>
@ -36,14 +50,14 @@
</block> </block>
<!-- 积分记录 --> <!-- 积分记录 -->
<block wx:else> <block wx:else>
<view class="Top"></view>
<view class="jf-title"> <view class="jf-title">
<view class="jf-title-item">事件名称</view> <view class="jf-title-item">事件名称</view>
<view class="jf-title-item-two">积分</view> <view class="jf-title-item-two">积分</view>
<view class="jf-title-item-last">时间</view> <view class="jf-title-item-last">时间</view>
</view> </view>
<!-- 积分记录列表 --> <!-- 积分记录列表 -->
<view class="jf-list" wx:for-index="index" wx:for-item="item" wx:key="index" wx:for="{{pointsRecordlist}}" data-id="{{item.id}}"> <view class="jf-list" wx:for-index="index" wx:for-item="item" wx:key="index" wx:for="{{pointsRecordlist}}">
<view class="jf-list-li color1">{{item.ruleDesc}}</view> <view class="jf-list-li color1">{{item.ruleDesc}}</view>
<view class="jf-list-li-two color2"> <view class="jf-list-li-two color2">
<text wx:if="{{item.operationType == 0}}">-</text> <text wx:if="{{item.operationType == 0}}">-</text>
@ -52,7 +66,6 @@
</view> </view>
<no-data isShow="{{nodatapointsRecord}}"></no-data> <no-data isShow="{{nodatapointsRecord}}"></no-data>
</block> </block>
<!--加载更多提示--> <!--加载更多提示-->
<load-more loadMoreType="{{loadMoreType}}" loadMoreVisible="{{loadMoreVisible}}"></load-more> <load-more loadMoreType="{{loadMoreType}}" loadMoreVisible="{{loadMoreVisible}}"></load-more>
</view> </view>

30
subpages/integralCentre/pages/index/index.wxss

@ -1,3 +1,6 @@
page{
background: #f7f7f7;
}
.home { .home {
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -78,7 +81,6 @@
/* 积分记录 */ /* 积分记录 */
.jf-title { .jf-title {
margin-top: 20rpx;
background: #fff; background: #fff;
height: 80rpx; height: 80rpx;
width: calc(100% - 40rpx); width: calc(100% - 40rpx);
@ -157,9 +159,12 @@
} }
/* 积分排行 */ /* 积分排行 */
.Top{
height: 20rpx;
width: 100%;
background: #fff;
}
.tab-item { .tab-item {
margin-top: 20rpx;
background: #fff; background: #fff;
height: 80rpx; height: 80rpx;
width: calc(100% - 40rpx); width: calc(100% - 40rpx);
@ -217,6 +222,11 @@ button::after {
justify-content: space-between; justify-content: space-between;
} }
.marginTop {
background: #f7f7f7;
height: 10rpx;
}
.ph-list .left { .ph-list .left {
display: flex; display: flex;
align-items: center; align-items: center;
@ -248,6 +258,20 @@ button::after {
font-weight: 500; font-weight: 500;
color: rgba(255, 255, 255, 1); color: rgba(255, 255, 255, 1);
margin-top: 3rpx; margin-top: 3rpx;
margin-left: 1rpx;
}
.list-number_ {
position: relative;
z-index: 100;
width: 100%;
height: 38rpx;
line-height: 38rpx;
text-align: center;
font-size: 32rpx;
font-weight: bold;
font-style: italic;
color: rgba(51, 51, 51, 1);
} }
.left .list-name { .left .list-name {

Loading…
Cancel
Save