提示新用户完善个人信息

This commit is contained in:
qcl_123 2025-12-29 14:17:58 +08:00
parent c5c2535cce
commit 022b1b3a37
9 changed files with 33 additions and 34 deletions

View File

@ -68,7 +68,7 @@
aud_id: that.user.aud_id,
page: that.page,
}).then(res => {
if (res) {
if (res.code == 0) {
that.infoList = that.infoList.concat(res.content_list)
that.lastPage = res.page_total
}

View File

@ -65,7 +65,7 @@
<picker mode="selector" @change="changeClickType" :range="activityLevel" range-key="name"
:value="levelInd">
<view>
{{levelInd?activityLevel[levelInd].name:'请选择'}}
{{memInfo.activity_level?activityLevel[levelInd].name:'请选择'}}
<icon class="iconfont icon-arrow-down"></icon>
</view>
</picker>

View File

@ -209,19 +209,19 @@ export default {
},
getMyLogList(param) { // 饮食列表
return http.post("/kitchenscale2/get_log_list", param).then(res => {
let pkList = {
list: [],
Dlist: []
}
if (res.code == 0) {
for (var i = 0; i < res.data.content_list.length; i++) {
pkList.list.push(res.data.content_list[i])
if (!pkList.Dlist.includes(res.data.content_list[i].time)) { //includes 检测数组是否有某个值
pkList.Dlist.push(res.data.content_list[i].time);
}
}
}
res.data.pkList = pkList
// let pkList = {
// list: [],
// Dlist: []
// }
// if (res.code == 0) {
// for (var i = 0; i < res.data.content_list.length; i++) {
// pkList.list.push(res.data.content_list[i])
// if (!pkList.Dlist.includes(res.data.content_list[i].time)) { //includes 检测数组是否有某个值
// pkList.Dlist.push(res.data.content_list[i].time);
// }
// }
// }
// res.data.pkList = pkList
return res.data
})
},

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -28509,20 +28509,19 @@ var _default = (_getonlogin$getSendCo = {
getMyLogList: function getMyLogList(param) {
// 饮食列表
return _https.default.post("/kitchenscale2/get_log_list", param).then(function (res) {
var pkList = {
list: [],
Dlist: []
};
if (res.code == 0) {
for (var i = 0; i < res.data.content_list.length; i++) {
pkList.list.push(res.data.content_list[i]);
if (!pkList.Dlist.includes(res.data.content_list[i].time)) {
//includes 检测数组是否有某个值
pkList.Dlist.push(res.data.content_list[i].time);
}
}
}
res.data.pkList = pkList;
// let pkList = {
// list: [],
// Dlist: []
// }
// if (res.code == 0) {
// for (var i = 0; i < res.data.content_list.length; i++) {
// pkList.list.push(res.data.content_list[i])
// if (!pkList.Dlist.includes(res.data.content_list[i].time)) { //includes 检测数组是否有某个值
// pkList.Dlist.push(res.data.content_list[i].time);
// }
// }
// }
// res.data.pkList = pkList
return res.data;
});
}

View File

@ -218,7 +218,7 @@ var _default = {
aud_id: that.user.aud_id,
page: that.page
}).then(function (res) {
if (res) {
if (res.code == 0) {
that.infoList = that.infoList.concat(res.content_list);
that.lastPage = res.page_total;
}

View File

@ -1 +1 @@
<view class="content data-v-0838061c"><view class="lanBox data-v-0838061c"><view class="headbox data-v-0838061c"><block wx:if="{{user.head_pic}}"><view class="touxiang data-v-0838061c"><image class="headimage data-v-0838061c" src="{{user.head_pic}}"></image></view></block><block wx:else><view class="touxiang data-v-0838061c"><image class="headimage data-v-0838061c" src="/static/tou.png"></image></view></block></view><view class="lan border-bottom data-v-0838061c"><view class="left data-v-0838061c">昵称</view><view class="right data-v-0838061c"><input class="name data-v-0838061c" name="name" type="text" placeholder="请输入" data-event-opts="{{[['input',[['__set_model',['$0','nickname','$event',[]],['memInfo']]]]]}}" value="{{memInfo.nickname}}" bindinput="__e"/><block wx:if="{{!memInfo.nickname}}"><icon class="iconfont icon-bianji data-v-0838061c"></icon></block><block wx:else><icon data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="iconfont icon-error data-v-0838061c" bindtap="__e"></icon></block></view></view><view class="lan border-bottom data-v-0838061c"><view class="left data-v-0838061c">性别</view><view class="right data-v-0838061c"><picker mode="selector" range="{{sexItem}}" data-event-opts="{{[['change',[['onsexArr',['$event']]]]]}}" bindchange="__e" class="data-v-0838061c"><view class="uni-input data-v-0838061c">{{memInfo.gender==0?'请选择':memInfo.gender==1?'男':'女'}}</view><icon class="iconfont icon-arrow-down data-v-0838061c"></icon></picker></view></view><view class="lan border-bottom data-v-0838061c"><view class="left data-v-0838061c">出生日期</view><view class="right data-v-0838061c"><picker mode="date" end="{{endDate}}" value="{{memInfo.birthday?memInfo.birthday:endDate}}" data-event-opts="{{[['change',[['maskClick',['$event']]]]]}}" bindchange="__e" class="data-v-0838061c"><view class="uni-input data-v-0838061c">{{memInfo.birthday?memInfo.birthday:"请选择"}}</view><icon class="iconfont icon-arrow-down data-v-0838061c"></icon></picker></view></view><view class="lan border-bottom data-v-0838061c"><view class="left data-v-0838061c">身高</view><view class="right data-v-0838061c"><input type="digit" placeholder="请输入" data-event-opts="{{[['input',[['__set_model',['$0','height','$event',[]],['memInfo']]]]]}}" value="{{memInfo.height}}" bindinput="__e" class="data-v-0838061c"/><text class="data-v-0838061c">cm</text></view></view><view class="lan border-bottom data-v-0838061c"><view class="left data-v-0838061c">体重</view><view class="right data-v-0838061c"><input type="digit" placeholder="请输入" data-event-opts="{{[['input',[['__set_model',['$0','weight','$event',[]],['memInfo']]]]]}}" value="{{memInfo.weight}}" bindinput="__e" class="data-v-0838061c"/><text class="data-v-0838061c">kg</text></view></view><view class="lan border-bottom data-v-0838061c"><view class="left data-v-0838061c">活动系数</view><view class="right data-v-0838061c"><picker mode="selector" range="{{activityLevel}}" range-key="name" value="{{levelInd}}" data-event-opts="{{[['change',[['changeClickType',['$event']]]]]}}" bindchange="__e" class="data-v-0838061c"><view class="data-v-0838061c">{{''+(levelInd?activityLevel[levelInd].name:'请选择')+''}}<icon class="iconfont icon-arrow-down data-v-0838061c"></icon></view></picker></view></view></view><view data-event-opts="{{[['tap',[['confirmInfo',['$event']]]]]}}" class="btn data-v-0838061c" bindtap="__e">提交</view></view>
<view class="content data-v-0838061c"><view class="lanBox data-v-0838061c"><view class="headbox data-v-0838061c"><block wx:if="{{user.head_pic}}"><view class="touxiang data-v-0838061c"><image class="headimage data-v-0838061c" src="{{user.head_pic}}"></image></view></block><block wx:else><view class="touxiang data-v-0838061c"><image class="headimage data-v-0838061c" src="/static/tou.png"></image></view></block></view><view class="lan border-bottom data-v-0838061c"><view class="left data-v-0838061c">昵称</view><view class="right data-v-0838061c"><input class="name data-v-0838061c" name="name" type="text" placeholder="请输入" data-event-opts="{{[['input',[['__set_model',['$0','nickname','$event',[]],['memInfo']]]]]}}" value="{{memInfo.nickname}}" bindinput="__e"/><block wx:if="{{!memInfo.nickname}}"><icon class="iconfont icon-bianji data-v-0838061c"></icon></block><block wx:else><icon data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="iconfont icon-error data-v-0838061c" bindtap="__e"></icon></block></view></view><view class="lan border-bottom data-v-0838061c"><view class="left data-v-0838061c">性别</view><view class="right data-v-0838061c"><picker mode="selector" range="{{sexItem}}" data-event-opts="{{[['change',[['onsexArr',['$event']]]]]}}" bindchange="__e" class="data-v-0838061c"><view class="uni-input data-v-0838061c">{{memInfo.gender==0?'请选择':memInfo.gender==1?'男':'女'}}</view><icon class="iconfont icon-arrow-down data-v-0838061c"></icon></picker></view></view><view class="lan border-bottom data-v-0838061c"><view class="left data-v-0838061c">出生日期</view><view class="right data-v-0838061c"><picker mode="date" end="{{endDate}}" value="{{memInfo.birthday?memInfo.birthday:endDate}}" data-event-opts="{{[['change',[['maskClick',['$event']]]]]}}" bindchange="__e" class="data-v-0838061c"><view class="uni-input data-v-0838061c">{{memInfo.birthday?memInfo.birthday:"请选择"}}</view><icon class="iconfont icon-arrow-down data-v-0838061c"></icon></picker></view></view><view class="lan border-bottom data-v-0838061c"><view class="left data-v-0838061c">身高</view><view class="right data-v-0838061c"><input type="digit" placeholder="请输入" data-event-opts="{{[['input',[['__set_model',['$0','height','$event',[]],['memInfo']]]]]}}" value="{{memInfo.height}}" bindinput="__e" class="data-v-0838061c"/><text class="data-v-0838061c">cm</text></view></view><view class="lan border-bottom data-v-0838061c"><view class="left data-v-0838061c">体重</view><view class="right data-v-0838061c"><input type="digit" placeholder="请输入" data-event-opts="{{[['input',[['__set_model',['$0','weight','$event',[]],['memInfo']]]]]}}" value="{{memInfo.weight}}" bindinput="__e" class="data-v-0838061c"/><text class="data-v-0838061c">kg</text></view></view><view class="lan border-bottom data-v-0838061c"><view class="left data-v-0838061c">活动系数</view><view class="right data-v-0838061c"><picker mode="selector" range="{{activityLevel}}" range-key="name" value="{{levelInd}}" data-event-opts="{{[['change',[['changeClickType',['$event']]]]]}}" bindchange="__e" class="data-v-0838061c"><view class="data-v-0838061c">{{''+(memInfo.activity_level?activityLevel[levelInd].name:'请选择')+''}}<icon class="iconfont icon-arrow-down data-v-0838061c"></icon></view></picker></view></view></view><view data-event-opts="{{[['tap',[['confirmInfo',['$event']]]]]}}" class="btn data-v-0838061c" bindtap="__e">提交</view></view>