wewe
This commit is contained in:
parent
06d1892f9d
commit
5a5f3b080e
@ -36,6 +36,10 @@ function request(url, method = 'GET', data = {}) {
|
|||||||
}
|
}
|
||||||
reject(res.data);
|
reject(res.data);
|
||||||
}
|
}
|
||||||
|
wx.showToast({
|
||||||
|
title: res.data.message,
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
reject(res.data);
|
reject(res.data);
|
||||||
} else {
|
} else {
|
||||||
resolve(res.data);
|
resolve(res.data);
|
||||||
|
|||||||
@ -45,7 +45,7 @@ Page({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getDetail(id){
|
async getDetail(id){
|
||||||
const res = await request('doctor/patient/questionnaire_info', 'post', {patient_id: 1, questionnaire_id: id})
|
const res = await request('doctor/patient/questionnaire_info', 'post', {patient_id: Number(this.userId), questionnaire_id: id})
|
||||||
res.liver_function_image = res.liver_function_image ? res.liver_function_image.split(',') : []
|
res.liver_function_image = res.liver_function_image ? res.liver_function_image.split(',') : []
|
||||||
res.coagulation_function_image = res.coagulation_function_image ? res.coagulation_function_image.split(',') : []
|
res.coagulation_function_image = res.coagulation_function_image ? res.coagulation_function_image.split(',') : []
|
||||||
res.blood_routine_image = res.blood_routine_image ? res.blood_routine_image.split(',') : []
|
res.blood_routine_image = res.blood_routine_image ? res.blood_routine_image.split(',') : []
|
||||||
|
|||||||
@ -4,10 +4,7 @@ import aesCryptoJS from '~/utils/aesCryptoJS.js';
|
|||||||
|
|
||||||
Page({
|
Page({
|
||||||
data: {
|
data: {
|
||||||
code: '',
|
|
||||||
phoneNumber: '',
|
|
||||||
timer: null,
|
|
||||||
getCodeText: '获取验证码',
|
|
||||||
mobile: '',//13888888888
|
mobile: '',//13888888888
|
||||||
password: '',//doctor2025
|
password: '',//doctor2025
|
||||||
showPassword: false,
|
showPassword: false,
|
||||||
|
|||||||
@ -13,13 +13,13 @@
|
|||||||
<view class="section_1">
|
<view class="section_1">
|
||||||
<view class="image-text_1">
|
<view class="image-text_1">
|
||||||
<text class="iconfont icon-shouji thumbnail_1"></text>
|
<text class="iconfont icon-shouji thumbnail_1"></text>
|
||||||
<input bindchange="bindKeyInput" lines="1" type="number" class="text-group_2" maxlength="11" placeholder="请输入手机号" data-mode="mobile" value="{{mobile}}"></input>
|
<input bindinput="bindKeyInput" lines="1" type="number" class="text-group_2" maxlength="11" placeholder="请输入手机号" data-mode="mobile" value="{{mobile}}"></input>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="section_2">
|
<view class="section_2">
|
||||||
<view class="image-text_2">
|
<view class="image-text_2">
|
||||||
<text class="iconfont icon-mima1 thumbnail_2"></text>
|
<text class="iconfont icon-mima1 thumbnail_2"></text>
|
||||||
<input bindchange="bindKeyInput" lines="1" type="text" class="text-group_3" placeholder="请输入密码" data-mode="password" password="{{!showPassword}}" value="{{password}}"></input>
|
<input bindinput="bindKeyInput" lines="1" type="text" class="text-group_3" placeholder="请输入密码" data-mode="password" password="{{!showPassword}}" value="{{password}}"></input>
|
||||||
<text class="iconfont icon-yanjing_yincang yanjing" wx:if="{{!showPassword}}" bindtap="togglePassword"></text>
|
<text class="iconfont icon-yanjing_yincang yanjing" wx:if="{{!showPassword}}" bindtap="togglePassword"></text>
|
||||||
<text class="iconfont icon-yanjing-xianshi yanjing" wx:if="{{showPassword}}" bindtap="togglePassword"></text>
|
<text class="iconfont icon-yanjing-xianshi yanjing" wx:if="{{showPassword}}" bindtap="togglePassword"></text>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user