fuint-uniapp-master/pages/user/setting.vue
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<template>
<view class="container">
<view class="info-list">
<view class="info-item">
<view class="contacts">
<text class="name">姓名</text>
<input class="value" type="text" v-model="userInfo.name" placeholder="请输入称呼"/>
</view>
</view>
<view class="info-item">
<view class="contacts">
<text class="name">手机</text>
<button class="button btn-normal value" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">
<text v-if="userInfo.mobile">{{ userInfo.mobile }}</text>
<text style="color: #f9211c;margin-left: 2px;">更换手机号</text>
</button>
</view>
</view>
<view class="info-item">
<view class="contacts">
<text class="name">性别</text>
<view class="value">
<radio-group @change="genderChange">
<label class="radio"><radio value="1" color="#00acac" :checked="userInfo.sex == '1' ? true : false"/>男</label>
<label class="radio second"><radio value="0" color="#00acac" :checked="userInfo.sex == '0' ? true: false"/>女</label>
</radio-group>
</view>
</view>
</view>
<view class="info-item">
<view class="contacts">
<text class="name">生日</text>
<input class="value" type="text" v-model="userInfo.birthday" placeholder="生日,如1999-01-01"/>
</view>
</view>
</view>
<!-- 底部操作按钮 -->
<view class="footer-fixed" v-if="userInfo.id">
<view class="btn-wrapper">
<view class="btn-item btn-item-main" @click="save()">保存信息</view>
</view>
<view class="btn-wrapper">
<view class="btn-item btn-item-out" @click="logout()">退出登录</view>
</view>
</view>
</view>
</template>
<script>
import * as UserApi from '@/api/user'
import store from '@/store'
export default {
data() {
return {
//当前页面参数
options: {},
// 正在加载
isLoading: true,
userInfo: {},
后面还有 160 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。