|
|
|
|
<template>
|
|
|
|
|
<!-- 背景 -->
|
|
|
|
|
<view class="background">
|
|
|
|
|
|
|
|
|
|
<!-- 人物 -->
|
|
|
|
|
<image class="human" src="/static/information/girl_height/pictures/human.png"></image>
|
|
|
|
|
<!-- 滚动条 -->
|
|
|
|
|
<image class="roll" @click="go_to_roll" src="/static/information/girl_height/pictures/roll.png"></image>
|
|
|
|
|
<!-- 按钮 -->
|
|
|
|
|
<image class="button" @click="go_to_purpose" src="/static/information/girl_height/pictures/button.png"></image>
|
|
|
|
|
<!-- 进度条 -->
|
|
|
|
|
<image class="progress" src="/static/information/girl_height/pictures/progress.png"></image>
|
|
|
|
|
<!-- 文本-->
|
|
|
|
|
<text class="text" @click="go_to_roll()">175 cm</text>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
methods: {
|
|
|
|
|
navigateTo(page) {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: page
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
go_to_purpose() {
|
|
|
|
|
const app=getApp();
|
|
|
|
|
console.log(app.globalData.token);
|
|
|
|
|
console.log(app.globalData.fit_journey_basic_address);
|
|
|
|
|
// 向后端发送请求
|
|
|
|
|
uni.request({
|
|
|
|
|
url: app.globalData.fit_journey_basic_address + '/height/write_user_hight',
|
|
|
|
|
method: 'POST',
|
|
|
|
|
header: {
|
|
|
|
|
'content-type': 'application/x-www-form-urlencoded',
|
|
|
|
|
'Authorization': app.globalData.token // TODO:暂时写为临时的token 后期替换
|
|
|
|
|
},
|
|
|
|
|
data: {
|
|
|
|
|
weight: 175, // 发送数字类型
|
|
|
|
|
},
|
|
|
|
|
success: (res) => {
|
|
|
|
|
console.log("请求成功!请求数据是", res);
|
|
|
|
|
// 如果成功则跳转到使用的目的界面
|
|
|
|
|
this.navigateTo('/pages/information/purpose/purpose');
|
|
|
|
|
},
|
|
|
|
|
error: (res) => {
|
|
|
|
|
console.log("请求失败!请求数据是", res);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
go_to_roll() {
|
|
|
|
|
this.navigateTo('/pages/information/girl_height_roll/girl_height_roll');
|
|
|
|
|
height:''
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
@import "@/static/information/girl_height/css/girl_height_start.scss";
|
|
|
|
|
</style>
|