diff --git a/teamwork/pages/my/finish.vue b/teamwork/pages/my/finish.vue
index 8f8d7fab0659f2366493fd8ec3007cc018c9bc3d..ce20b69b591763d3b25eeea31579dbbd4a95e2cb 100644
--- a/teamwork/pages/my/finish.vue
+++ b/teamwork/pages/my/finish.vue
@@ -9,43 +9,37 @@
diff --git a/teamwork/pages/my/my-running-record.vue b/teamwork/pages/my/my-running-record.vue
index 2ce1456256af4635dfb88f34a7bcc05df13b9472..7e03df38b175622b57ec0e0d85da63fadaaf9dac 100644
--- a/teamwork/pages/my/my-running-record.vue
+++ b/teamwork/pages/my/my-running-record.vue
@@ -8,7 +8,7 @@
-
+
@@ -46,8 +46,13 @@
},
methods: {
goBack() {
- uni.navigateBack({
- delta: 1, //返回层数,2则上上页
+ // uni.navigateBack({
+ // delta: 1, //返回层数,2则上上页
+ // })
+ uni.reLaunch({
+ url: '/pages/my/main',
+ animationType: 'pop-in',
+ animationDuration: 300
})
},
goToDetail(runningId) {
@@ -58,7 +63,7 @@
// })
//uni.setStorageSync('data-to-finish', item)
uni.reLaunch({
- url: '/pages/my/finish?runningId=' + runningId +'&type=' + this.type,
+ url: '/pages/my/finish?id=' + runningId +'&type=' + this.type,
animationType: 'pop-in',
animationDuration: 300
})
@@ -73,7 +78,7 @@
})
.then(res => {
- console.log(res);
+ //console.log(res);
this.runningrecordList = res.result.data.runningList;
this.runningrecordList.forEach((item, index) => {
@@ -192,6 +197,9 @@
height: 150rpx;
margin-top: 20rpx;
margin-left: 30rpx;
+ /* background-size:100% 100%;
+ background-image:url("/static/my/my-record/run.png");
+ background-repeat:no-repeat; */
float: left;
}
diff --git a/teamwork/pages/my/my-setting.vue b/teamwork/pages/my/my-setting.vue
index 3c02578e887bff820bce00d895631f3cc2905608..ca37dba7301d35d51e533d652b1f89ca3897154c 100644
--- a/teamwork/pages/my/my-setting.vue
+++ b/teamwork/pages/my/my-setting.vue
@@ -44,8 +44,13 @@
showCancel: true, //是否显示取消按钮
success: function (res) {
if (res.confirm) { //confirm为ture,代表用户点击确定
- uni.navigateTo({
- url: '/pages/login/login'
+ // uni.navigateTo({
+ // url: '/pages/login/login'
+ // })
+ uni.reLaunch({
+ url: '/pages/login/login',
+ animationType: 'pop-in',
+ animationDuration: 300
})
} else if (res.cancel) { //cancel为ture,代表用户点击取消
diff --git a/teamwork/pages/my/my-walking-record.vue b/teamwork/pages/my/my-walking-record.vue
index c6bd03342c99b276cdbc7cf827b12a955cb137a0..f5d62623047a7b2e4e14394fb6b200839f56f5be 100644
--- a/teamwork/pages/my/my-walking-record.vue
+++ b/teamwork/pages/my/my-walking-record.vue
@@ -6,28 +6,28 @@
-
+
- {{walkingrecord.distance.toFixed(2)}}公里
+ {{item.distance.toFixed(2)}}公里
- {{walkingrecord.duration}}
+ {{item.duration}}
- {{parseInt(walkingrecord.pace/60).toString().padStart(2,0)}}'{{parseInt(walkingrecord.pace%60).toString().padStart(2,0)}}''
+ {{parseInt(item.pace/60).toString().padStart(2,0)}}'{{parseInt(item.pace%60).toString().padStart(2,0)}}''
- {{walkingrecord.startDatetime}}
+ {{item.startDatetime}}
@@ -40,32 +40,41 @@
data() {
return {
walkingrecordList: [],
-
+ type:'健走',
}
},
methods: {
goBack() {
- uni.navigateBack({
- delta: 1, //返回层数,2则上上页
+ uni.reLaunch({
+ url: '/pages/my/main',
+ animationType: 'pop-in',
+ animationDuration: 300
+ })
+ },
+ goToDetail(walkingId) {
+
+ uni.reLaunch({
+ url: '/pages/my/finish?id=' + walkingId +'&type=' + this.type,
+ animationType: 'pop-in',
+ animationDuration: 300
})
},
getData() {
-
+ // console.log('a');
uniCloud.callFunction({
name: 'fe-my-walkingList',
data: {
- userId: '64573dbde766bb00857836fc'
+ userId: getApp().globalData.userId
}
})
.then(res => {
- console.log(res);
- // this.walkingrecordList = res.result.data.walkingList;
- // this.walkingrecordList.forEach((item, index) => {
- // item.duration = this.formatSeconds(item.duration);
- // //item.pace = this.formatPace(item.pace);
- // item.startDatetime = this.formatDate(item.startDatetime);
- // });
+ //console.log(res);
+ this.walkingrecordList = res.result.data.walkingList;
+ this.walkingrecordList.forEach((item, index) => {
+ item.duration = this.formatSeconds(item.duration);
+ item.startDatetime = this.formatDate(item.startDatetime);
+ });
});
},
formatDate(value){
diff --git a/teamwork/static/my/my-record/run.png b/teamwork/static/my/my-record/run.png
new file mode 100644
index 0000000000000000000000000000000000000000..6e8ace386fe83dd3876aa5319fc5f6af735d9df2
Binary files /dev/null and b/teamwork/static/my/my-record/run.png differ
diff --git a/teamwork/static/my/my-record/walk.png b/teamwork/static/my/my-record/walk.png
new file mode 100644
index 0000000000000000000000000000000000000000..8a0b12cb8fc44ab7dbe2037f3cbac33ae362a232
Binary files /dev/null and b/teamwork/static/my/my-record/walk.png differ