提交 f4a3980c 编写于 作者: Y yyt

运动感受接口连接修改

上级 c46cd6a5
......@@ -44,14 +44,15 @@
<script>
export default {
onLoad() {
this.username=getApp().globalData.name
this.icon=getApp().globalData.icon
this.username = getApp().globalData.name
this.icon = getApp().globalData.icon
uni.$on('information', (res) => {
this.type = res.type
this.startTime = res.startTime
this.distance = res.distance
this.duration = res.duration
this.pace = res.pace
this.id = res.id
})
},
onUnload() {
......@@ -59,6 +60,7 @@
},
data() {
return {
id: '',
username: '不知道叫啥',
icon: '/static/sport/icon.jpg',
type: '',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册