提交 a65ca9f0 编写于 作者: Y yyt

运动模块全局变量连接

上级 7cc82a05
......@@ -61,6 +61,9 @@
}
}
}
},
"uniStatistics" : {
"enable" : true
}
},
/* 快应用特有相关 */
......@@ -83,7 +86,8 @@
"usingComponents" : true
},
"uniStatistics" : {
"enable" : false
"enable" : false,
"version" : "2"
},
"vueVersion" : "2"
}
......@@ -206,7 +206,6 @@
height: 200px;
margin: 0px;
padding: 0px;
border-radius: 15px;
}
.activity-production{
margin-top: 10px;
......
......@@ -87,7 +87,6 @@
getApp().globalData.type=res.result.data.type
getApp().globalData.icon=res.result.data.icon
console.log(res)
console.log(getApp().globalData.type)
uni.showToast({
title: '登录成功',
icon: 'success'
......
......@@ -142,6 +142,7 @@
}
})
.then(res => {
console.log(res)
if (res.result.code === 200) {
uni.showToast({
title: '注册成功',
......@@ -154,7 +155,7 @@
})
} else {
uni.showToast({
title: '注册失败',
title: '手机号已存在',
icon: 'error'
})
}
......
......@@ -38,11 +38,11 @@
},
range: [{
value: '跑步',
text: '跑步'
text: ' '
},
{
value: '健走',
text: '健走'
text: ' '
}
]
};
......@@ -82,6 +82,7 @@
}
},
onLoad() {
this.userId=getApp().globalData.userId
uniCloud.callFunction({
name: 'fe-sport-index',
data: {
......
......@@ -47,6 +47,8 @@
}
},
onReady() {
this.username = getApp().globalData.name
this.icon = getApp().globalData.icon
var data = uni.getStorageSync('data-to-ranking')
var res = JSON.parse(data)
this.type = res.type
......
......@@ -44,6 +44,8 @@
<script>
export default {
onLoad() {
this.username=getApp().globalData.name
this.icon=getApp().globalData.icon
uni.$on('information', (res) => {
this.type = res.type
this.startTime = res.startTime
......
......@@ -347,6 +347,7 @@
}
.uni-select {
background-color: #f1992d;
font-size: 14px;
border: 1px solid $uni-border-3;
box-sizing: border-box;
......@@ -494,7 +495,10 @@
.uni-select__input-text {
// width: 280px;
width: 100%;
color: $uni-main-color;
// color: $uni-main-color;
color: white;
font-size: 20px;
font-weight: 600;
white-space: nowrap;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册