This commit is contained in:
曹辉 2022-11-09 16:38:05 +08:00
parent 5e7a2230bb
commit 816957d70a
36 changed files with 607 additions and 273 deletions

View File

@ -9,20 +9,28 @@
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
}, {
},
{
"path": "pages/forgotPassword/forgotPassword",
"style": {
"navigationBarTitleText": "忘记密码",
"navigationBarBackgroundColor": "#ffffff"
}
},
{
"path": "pages/register/register",
"style": {
"navigationBarTitleText": "注册账号",
"navigationBarBackgroundColor": "#ffffff"
}
},{
}, {
"path": "pages/homepage/homepage",
"style": {
"navigationBarTitleText": "泉医到家",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
}, {
"path": "pages/login/login",
"style": {
"navigationBarTitleText": "",
@ -72,7 +80,7 @@
"navigationBarBackgroundColor": "#ffffff", //
"enablePullDownRefresh": false
}
},{
}, {
"path": "pages/Personal/Personal",
"style": {
"navigationBarTitleText": "个人中心",
@ -255,6 +263,14 @@
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/paysuccess/paysuccess",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
}
],
"globalStyle": {

View File

@ -67,13 +67,23 @@
this.goodsOrderId = options.goodsOrderId
this.baseurl = baseurl
let that = this
uni.getStorage({
key: 'patientId',
success: function(res) {
that.patientId = res.data
try {
const value = uni.getStorageSync('patientId');
if (value) {
that.patientId = value
that.goodsOrderinfo();
}
});
} catch (e) {
// error
}
// uni.getStorage({
// key: 'patientId',
// success: function(res) {
// that.patientId = res.data
// that.goodsOrderinfo();
// }
// });
}
}
</script>

View File

@ -59,6 +59,7 @@
methods: {
//退
refundinfo() {
this.order.updateTime = null
refund(this.order).then(
res => {
console.log(res)
@ -73,14 +74,11 @@
type: 'success',
duration: '1500'
})
setTimeout(() => {
// uni.navigateTo({
// url: '/pages/Aftersalesdetails/Aftersalesdetails'
// })
uni.navigateTo({
url: '/pages/CommodityOrder/CommodityOrder'
})
}, 1500);
setTimeout(e => {
uni.navigateBack({
delta: 3
});
}, 1500)
}
})
},

View File

@ -124,6 +124,9 @@
import {
AppIdentification
} from '@/api/AppIdentification/index.js'
import {
goodPatientInfo
} from '@/api/modifyAddress/modifyAddress.js';
import baseurl from '@/api/baseurl.js'
export default {
data() {
@ -164,43 +167,61 @@
methods: {
//
goinformation() {
this.usershow = false
uni.navigateTo({
url: '/pages/information/information'
})
},
//
tapbuy() {
AppIdentification(this.updata.patientId).then(res => {
console.log(res)
if (res.data.loginFlag) {
if (this.goodshow == true) {
if (this.updata.goodsAttributeName == '') {
this.$refs.uToast.show({
title: '未选择商品',
type: 'error'
})
} else if (this.updata.goodsStock == 0) {
this.$refs.uToast.show({
title: '库存数量不足,无法购买',
type: 'error'
})
} else {
this.updata.totalPrice = (this.updata.goodsPrice * this.updata.goodsCount).toFixed(
2)
uni.navigateTo({
url: `/pages/confirmOrder/confirmOrder?updata=${JSON.stringify(this.updata)}`
})
}
} else {
uni.navigateTo({
url: `/pages/confirmOrder/confirmOrder?updata=${JSON.stringify(this.updata)}`
})
this.buyshow = false
let that = this
try {
const value = uni.getStorageSync('patientId');
if (value) {
if (!that.updata.patientId) {
that.goodsList()
}
that.updata.patientId = value
AppIdentification(value).then(res => {
if (res.data.loginFlag) {
if (that.goodshow == true) {
if (that.updata.goodsAttributeName == '') {
that.$refs.uToast.show({
title: '未选择商品',
type: 'error'
})
} else if (that.updata.goodsStock == 0) {
that.$refs.uToast.show({
title: '库存数量不足,无法购买',
type: 'error'
})
} else {
that.updata.totalPrice = (that.updata.goodsPrice * that.updata
.goodsCount).toFixed(
2)
uni.navigateTo({
url: `/pages/confirmOrder/confirmOrder?updata=${JSON.stringify(that.updata)}`
})
}
} else {
uni.navigateTo({
url: `/pages/confirmOrder/confirmOrder?updata=${JSON.stringify(that.updata)}`
})
}
} else {
that.buyshow = false
that.usershow = true
}
})
} else {
this.buyshow = false
this.usershow = true
uni.navigateTo({
url: '/pages/login/login'
})
}
})
} catch (e) {
// error
}
},
// tapbuy() {
// this.goodsDetailslist.goodDetailsLists.forEach(e => {
@ -237,7 +258,6 @@
this.updata.goodsStock = item.goodsStock
this.updata.goodsAttributeId = item.goodsAttributeId
this.updata.goodsAttributeDetailsId = item.attributeDetailsId
this.updata.img = this.baseurl + item.attributePitureUrl
}
},
@ -287,6 +307,7 @@
this.goodsDetailslist = res.data[0]
this.updata.goodsName = this.goodsDetailslist.goodsName
this.updata.nurseStationId = this.goodsDetailslist.nurseStationId
this.updata.img = res.data[0].goodsPictureUrl
this.goodDetailsLists = res.data[0].goodDetailsLists
// res.data[0].goodDetailsLists.forEach(e => {
// e.goodAttributeDetailsLists.forEach(el => {
@ -301,22 +322,40 @@
// this.goodDetailsLists = res.data[0].goodDetailsLists
})
},
//
goodsList() {
goodPatientInfo(this.updata.patientId).then(res => {
res.data.forEach(e => {
e.address = e.provinceName + e.cityName + e.regionName + e.streetName + e
.receiveAddress
})
this.updata.receiver = res.data[0].receiveName
this.updata.receiveAddress = res.data[0].address
this.updata.phone = res.data[0].receivePhone
})
},
},
onLoad(options) { //
this.updata.buySource = options.buySource
this.usershow = false
let that = this
uni.getStorage({
key: 'patientId',
success: function(res) {
that.updata.patientId = res.data
console.log(that.updata)
}
});
this.goodsPrice = options.goodsPrice //
this.baseurl = baseurl;
this.goodsDetailsinfo(options.goodsInfoId)
},
onShow() {
this.baseurl = baseurl
this.usershow = false
this.baseurl = baseurl;
let that = this
try {
const value = uni.getStorageSync('patientId');
if (value) {
that.updata.patientId = value
console.log(that.updata.patientId)
that.goodsList()
} else {}
} catch (e) {
// error
}
},
}
</script>

View File

@ -74,7 +74,7 @@
export default {
data() {
return {
title:'商品订单',//
title: '商品订单', //
baseurl: '', //url
orderlist: [], //list
total: 0, //list
@ -127,26 +127,28 @@
title: this.title,
});
},
onLoad(options) { //
if (options.orderStatus) {
this.orderStatus = options.orderStatus
if(options.orderStatus=='WAIT_PAY'){
this.title='待付款'
}else if(options.orderStatus=='WAIT_RECEIVED_GOODS'){
this.title='待收货'
}else if(options.orderStatus=='RECEIVED_GOODS'){
this.title='已完成'
}
}
onShow() {
let that = this
uni.getStorage({
key: 'patientId',
success: function(res) {
that.patientId = res.data
try {
const value = uni.getStorageSync('patientId');
if (value) {
that.patientId = value
that.goodsOrderinfo();
}
});
} catch (e) {}
},
onLoad(options) { //
this.baseurl = baseurl;
if (options.orderStatus) {
this.orderStatus = options.orderStatus
if (options.orderStatus == 'WAIT_PAY') {
this.title = '待付款'
} else if (options.orderStatus == 'WAIT_RECEIVED_GOODS') {
this.title = '待收货'
} else if (options.orderStatus == 'RECEIVED_GOODS') {
this.title = '已完成'
}
}
},
onReachBottom() { //
if (this.orderlist.length >= this.total) {} else {

View File

@ -52,17 +52,18 @@
list: [],
}
},
onLoad() {
onShow() {
this.baseurl = baseurl
let that = this
uni.getStorage({
key: 'patientId',
success: function(res) {
that.patientId = res.data
try {
const value = uni.getStorageSync('patientId');
if (value) {
that.patientId = value
that.getinfo()
}
});
} catch (e) {}
},
onLoad() {},
methods: {
//
buy(item) {

View File

@ -176,7 +176,7 @@
.model {
position: absolute;
left:35%;
top:20%;
top:8%;
width: 65%;
.top,.bottom{
view {
@ -186,6 +186,7 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-break:break-all;
}
}

View File

@ -51,7 +51,7 @@
</view>
<view class="remarks">
<view>备注</view>
<input placeholder="" v-model='userinfo.remark'>
<input placeholder="请输入" v-model='userinfo.remark'>
</view>
<view class="evaluate">
<view class="cancelorder" @tap="cancelorderment()"
@ -93,6 +93,9 @@
this.getinfo()
this.getlist()
this.getPatientInfo()
},
onShow(){
},
methods: {
gophone() {
@ -129,7 +132,8 @@
//
getlist() {
introductionList(this.stationId).then(res => {
this.nursestationlist = res[0];
this.nursestationlist = res.data;
console.log(this.nursestationlist)
})
},
//

View File

@ -105,23 +105,32 @@
consumableTotalPrice: '',
totalPrice: '',
remark: "",
orderConsumableList: []
orderConsumableList: [],
},
}
},
onShow() {
let that = this
uni.$on('updata', function(data) {
if (data.updata) {
that.orderlist = JSON.parse(data.updata)
}
if (data.useritem) {
that.useritem = JSON.parse(data.useritem)
that.orderlist.serviceAddress = that.useritem.address
that.personInfo.patientName = that.useritem.receiveName
that.personInfo.phone = that.useritem.receivePhone
that.personInfo.address = that.useritem.address
} else {}
})
setTimeout(e => {
if (!that.useritem) {
that.userinfo();
}
}, 500)
},
onLoad(options) {
if (options.updata) {
this.orderlist = JSON.parse(options.updata)
}
if (options.useritem) {
let useritem = JSON.parse(options.useritem)
this.orderlist.serviceAddress = useritem.address
this.personInfo.patientName = useritem.receiveName
this.personInfo.phone = useritem.receivePhone
this.personInfo.address = useritem.address
} else {
this.userinfo();
}
//
this.getPatientInfo(options.stationId, options.stationItemId, options.stationItemPriceId)
},
@ -129,13 +138,12 @@
userinfo() {
//patientId
var that = this
uni.getStorage({
key: 'patientId',
success: function(res) {
that.patientId = res.data
console.log(that.patientId)
try {
const value = uni.getStorageSync('patientId');
if (value) {
that.patientId = value
//
getAppPatientList(that.patientId).then(response => {
getAppPatientList(value).then(response => {
that.personInfo = response.data
that.personInfo.address = response.data.provinceName + response.data
.cityName + response.data.regionName + response.data.streetName +
@ -145,8 +153,29 @@
.cityName + response.data.regionName + response.data.streetName +
response.data.address
})
console.log(that.orderlist)
}
});
} catch (e) {
// error
}
// uni.getStorage({
// key: 'patientId',
// success: function(res) {
// that.patientId = res.data
// //
// getAppPatientList(that.patientId).then(response => {
// that.personInfo = response.data
// that.personInfo.address = response.data.provinceName + response.data
// .cityName + response.data.regionName + response.data.streetName +
// response.data.address
// that.orderlist.patientId = response.data.patientId
// that.orderlist.serviceAddress = response.data.provinceName + response.data
// .cityName + response.data.regionName + response.data.streetName +
// response.data.address
// })
// }
// });
},
//
getPatientInfo(stationId, stationItemId, stationItemPriceId) {
@ -165,7 +194,10 @@
type: 'error',
})
} else {
this.orderlist.orderChannel = "MOBILE_APP"
this.orderlist.buySource = "NURSE_STATION"
this.orderlist.orderCount = 1;
console.log(this.orderlist)
submitAppointment(this.orderlist).then(res => {
if (res.code == 500) {
this.$refs.uToast.show({
@ -176,17 +208,12 @@
this.$refs.uToast.show({
title: '预约成功',
type: 'success',
url:'/pages/paysuccess/paysuccess',
toast: 1500
})
setTimeout(() => {
uni.reLaunch({
url: `/pages/Personal/Personal`
})
}, 1500)
}
})
}
},
changeRadio() {
if (this.radio == 1) {

View File

@ -42,9 +42,13 @@
} else if (res.code == 200) {
this.$refs.uToast.show({
title: '取消成功',
type: 'success',
url: '/pages/Nursingstationserviceorder/Nursingstationserviceorder'
type: 'success'
})
setTimeout(e => {
uni.navigateBack({
delta: 2
});
}, 1500)
}
})
}

View File

@ -126,6 +126,10 @@
title: res.msg,
type: 'error'
})
} else {
uni.navigateTo({
url: `/pages/paysuccess/paysuccess`
})
}
})
},
@ -144,7 +148,8 @@
goodsList() {
goodPatientInfo(this.updata.patientId).then(res => {
res.data.forEach(e => {
e.address = e.provinceName + e.cityName + e.regionName + e.streetName + e.receiveAddress
e.address = e.provinceName + e.cityName + e.regionName + e.streetName + e
.receiveAddress
})
this.updata.receiver = res.data[0].receiveName
this.updata.receiveAddress = res.data[0].address
@ -154,16 +159,20 @@
},
onLoad(options) {
this.updata = JSON.parse(options.updata)
if (options.useritem) {
let useritem = JSON.parse(options.useritem)
this.updata.receiver = useritem.receiveName
this.updata.phone = useritem.receivePhone
this.updata.receiveAddress = useritem.address
} else {
this.goodsList()
}
console.log(this.updata)
}
},
onShow() {
var that = this
let useritem = null
uni.$on('updata', function(data) {
that.updata = JSON.parse(data.updata)
if (data.useritem) {
useritem = JSON.parse(data.useritem)
that.updata.receiver = useritem.receiveName
that.updata.phone = useritem.receivePhone
that.updata.receiveAddress = useritem.address
}
})
},
}
</script>

View File

@ -3,7 +3,7 @@
<view class="app">
<view class="concent">
<view class="background">
<image src="/static/启动页.png" mode=""></image>
<image src="/static/logo.png" mode=""></image>
<view>
<view class="detailed">
<view>护理站是以维护社区人群健康满足社区 人群基本医疗护理需求为宗旨以护士为核心 的各类护理人员组成的团队在一定社区范围 为长期卧床老人患者残疾人临终患

View File

@ -18,7 +18,7 @@
<view class="lefttext">
手机号
</view>
<input class="righttext" style='left:23%' type="text" placeholder="请输入" maxlength="11" v-model="phone"/>
<input class="righttext" style='left:23%' type="text" placeholder="请输入" maxlength="11" v-model="phone" />
</view>
<view class="item">
<view class="lefttext">
@ -52,22 +52,30 @@
},
methods: {
pwdlogin() {
ForgotPassword(this.phone, this.password, this.verification).then(res => {
if (this.password !== this.newpassword) {
this.$refs.uToast.show({
title: '密码输入不一致,请重新输入',
type: 'error',
duration: '1500'
})
} else {
this.$refs.uToast.show({
title: '密码修改成功',
type: 'success',
url: '/pages/login/login',
duration: '1500'
})
}
})
if (this.password !== this.newpassword) {
this.$refs.uToast.show({
title: '密码输入不一致,请重新输入',
type: 'error',
duration: '1500'
})
} else {
ForgotPassword(this.phone, this.password, this.verification).then(res => {
if (res.code == 200) {
this.$refs.uToast.show({
title: '密码修改成功',
type: 'success',
url: '/pages/login/login',
duration: '1500'
})
} else {
this.$refs.uToast.show({
title: res.msg,
type: 'error',
duration: '1500'
})
}
})
}
},
//
getCode() {

View File

@ -21,17 +21,25 @@
height: 70rpx;
border-radius: 26rpx;
margin: 0 20rpx 20rpx 0;
padding: 0 10rpx ;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.choice {
display: inline-block;
text-align: center;
line-height: 70rpx;
padding: 0 10rpx ;
width: 190rpx;
height: 70rpx;
background: #BFBFBF;
border-radius: 26rpx;
margin: 0 20rpx 20rpx 0;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
}

View File

@ -163,12 +163,21 @@
//
onLoad() {
let that = this
uni.getStorage({
key: 'patientId',
success: function(res) {
that.query.patientId = res.data
try {
const value = uni.getStorageSync('patientId');
if (value) {
that.query.patientId = value
}
});
} catch (e) {
// error
}
// uni.getStorage({
// key: 'patientId',
// success: function(res) {
// that.query.patientId = res.data
// }
// });
this.areaInfo()
this.getNurseTypeInfo();
},

View File

@ -8,8 +8,7 @@
height: 100rpx;
color: #46ABD7;
position: absolute;
top: 67%;
left: 10%;
top: 70%;
}
.loginbtn {

View File

@ -13,7 +13,10 @@
<view class="loginbtn" @tap='pwdlogin'>
登录
</view>
<view class="switch" @tap='goregister' style="left:55%">
<view class="switch" @tap='goforgotPassword' style="left:10%">
忘记密码
</view>
<view class="switch" @tap='goregister' style="right:10%">
没有账号,请先注册
</view>
<u-toast ref="uToast" />
@ -38,13 +41,14 @@
appLoginpwd(this.phone, this.password).then(res => {
if (res.code == 200) {
if (res.data.registerFlag == false) {
uni.setStorage({
key: 'patientId',
data: res.data.patientId,
success: function() {
console.log('patientId保存成功');
}
});
uni.setStorageSync("patientId", res.data.patientId)
// uni.setStorage({
// key: 'patientId',
// data: res.data.patientId,
// success: function() {
// console.log('patientId');
// }
// });
this.$refs.uToast.show({
title: res.data.message,
type: 'success',
@ -75,6 +79,12 @@
url: '/pages/register/register'
})
},
//
goforgotPassword() {
uni.navigateTo({
url: "/pages/forgotPassword/forgotPassword"
})
},
},
toLogin() {
// uni.hideKeyboard() //

View File

@ -63,6 +63,7 @@
arealist: [],
areashow: false,
chooseLocation: '',
img: null,
appPersonallist: {
patientName: "",
cardNo: "",
@ -88,47 +89,63 @@
this.patientDiseaseInfoList.forEach(e => {
e.id = e.diseaseId
})
this.chooseLocation = '东经:' + this.appPersonallist.homeLongitude + '度' + ' 北纬:' + this.appPersonallist
.homeLatitude + '度';
this.chooseLocation = '东经:' + this.appPersonallist.homeLongitude + ' 北纬:' + this.appPersonallist
.homeLatitude
},
methods: {
//+
informationinfo() {
//
var that = this
uni.uploadFile({
url: baseurl + '/nurseApplet/uploadFile/uploadHeadPictureUrl',
filePath: that.appPersonallist.headPictureUrl,
name: 'file',
formData: {
'patientId': that.appPersonallist.patientId
},
timeout: 5000,
success(res) {
that.appPersonallist.headPictureUrl = JSON.parse(res.data).imgUrl
//
// that.appPersonallist.homeLongitude = '1'
// that.appPersonallist.homeLatitude = '1'
that.appPersonallist.diseaseInfoList = that.patientDiseaseInfoList
console.log(that.appPersonallist)
information(that.appPersonallist).then(res => {
if (res.code == 200) {
that.$refs.uToast.show({
title: '修改信息成功',
type: 'success',
url: '/pages/user/user',
duration: '1500'
})
} else if (res.code == 500) {
that.$refs.uToast.show({
title: res.msg,
type: 'error',
url: ''
})
}
})
}
})
if (this.img) {
uni.uploadFile({
url: baseurl + '/nurseApplet/uploadFile/uploadHeadPictureUrl',
filePath: that.appPersonallist.headPictureUrl,
name: 'file',
formData: {
'patientId': that.appPersonallist.patientId
},
timeout: 5000,
success(res) {
that.appPersonallist.headPictureUrl = JSON.parse(res.data).imgUrl
that.appPersonallist.diseaseInfoList = that.patientDiseaseInfoList
information(that.appPersonallist).then(res => {
if (res.code == 200) {
that.$refs.uToast.show({
title: '修改信息成功',
type: 'success',
url: '/pages/user/user',
duration: '1500'
})
} else if (res.code == 500) {
that.$refs.uToast.show({
title: res.msg,
type: 'error',
url: ''
})
}
})
}
})
} else {
that.appPersonallist.diseaseInfoList = that.patientDiseaseInfoList
information(that.appPersonallist).then(res => {
if (res.code == 200) {
that.$refs.uToast.show({
title: '修改信息成功',
type: 'success',
url: '/pages/user/user',
duration: '1500'
})
} else if (res.code == 500) {
that.$refs.uToast.show({
title: res.msg,
type: 'error',
url: ''
})
}
})
}
},
//
uploadImag() {
@ -139,7 +156,7 @@
sourceType: ['album'],
success(res) {
that.appPersonallist.headPictureUrl = res.tempFilePaths[0]
console.log(that.appPersonallist.headPictureUrl)
that.img = res.tempFilePaths[0]
}
})
},

View File

@ -3,7 +3,7 @@
background-color: #F4F5F7;
width: 100%;
position: relative;
height: 100vh;
height: 100%;
padding: 4%;
padding-bottom: 100rpx;
background-image: linear-gradient(to bottom, #F4F5F7, #ffffff);

View File

@ -96,7 +96,6 @@
},
onLoad(options) {
let that = this
console.log(options)
this.url = options.url
this.updata = JSON.parse(options.updata)
//
@ -106,24 +105,31 @@
methods: {
//
goorder(item) {
if (this.url == "appointmenttime") {
uni.navigateTo({
url: `/pages/appointmenttime/appointmenttime?updata=${JSON.stringify(this.updata)}&useritem=${JSON.stringify(item)}`
})
} else {
uni.navigateTo({
url: `/pages/confirmOrder/confirmOrder?updata=${JSON.stringify(this.updata)}&useritem=${JSON.stringify(item)}`
})
}
// if (this.url == "appointmenttime") {
uni.$emit('updata', {
updata: JSON.stringify(this.updata),
useritem: JSON.stringify(item)
})
uni.navigateBack({
delta: 1
});
// uni.navigateTo({
// url: `/pages/appointmenttime/appointmenttime?updata=${JSON.stringify(this.updata)}&useritem=${JSON.stringify(item)}`
// })
// } else {
// uni.navigateTo({
// url: `/pages/confirmOrder/confirmOrder?updata=${JSON.stringify(this.updata)}&useritem=${JSON.stringify(item)}`
// })
// }
},
//
goodsList() {
let that = this
uni.getStorage({
key: 'patientId',
success: function(res) {
that.patientId = res.data
that.infolist.patientId = res.data
try {
const value = uni.getStorageSync('patientId');
if (value) {
that.patientId = value
that.infolist.patientId = value
goodPatientInfo(that.patientId).then(res => {
res.data.forEach(e => {
e.address = e.provinceName + e.cityName + e.regionName + e
@ -132,7 +138,21 @@
that.goodPatient = res.data
})
}
});
} catch (e) {}
// uni.getStorage({
// key: 'patientId',
// success: function(res) {
// that.patientId = res.data
// that.infolist.patientId = res.data
// goodPatientInfo(that.patientId).then(res => {
// res.data.forEach(e => {
// e.address = e.provinceName + e.cityName + e.regionName + e
// .streetName + e.receiveAddress
// })
// that.goodPatient = res.data
// })
// }
// });
},
//
submit() {
@ -160,7 +180,6 @@
setTimeout(e => {
that.goodsList()
}, 1500)
})
}
},

View File

@ -1,8 +1,8 @@
.app{
height: 100vh;
padding:0;
background-image: linear-gradient(to bottom, #F4F5F7, #ffffff);
}
.app{
height: 100%;
padding:10rpx 0 0 0;
background-image: linear-gradient(to bottom, #F4F5F7, #ffffff);
}
.mask {
.information {
width: 70%;
@ -49,7 +49,7 @@
}
}
.content {
.content {
font-size: 36rpx;
padding-bottom: 10rpx;
.tive {
@ -58,7 +58,7 @@
margin: 0 auto;
margin-top: 20rpx;
border-radius: 11px;
// padding-bottom: 60rpx;
padding-bottom: 60rpx;
.item {
width: 100%;
height: 100%;
@ -153,6 +153,7 @@
}
.Nursestationconfiguration {
width: 94%;
height: 100%;
background: #FFFFFF;
border-radius: 20rpx;
padding-bottom: 30rpx;
@ -162,11 +163,11 @@
color: #333333;
padding: 3%;
.text {
margin-top: 32rpx;
display: inline;
margin-top: 10rpx;
display: inline-block;
padding: 10rpx 20rpx;
margin-right: 28rpx;
line-height: 50rpx;
margin-right: 18rpx;
line-height: 40rpx;
background-color: #f6f6f6;
border-radius: 34rpx;
font-size: 24rpx;
@ -177,6 +178,7 @@
.detail {
position: relative;
width: 94%;
height: 100%;
margin: 0 auto;
background: #FFFFFF;
border-radius: 20rpx;
@ -185,6 +187,7 @@
padding: 3%;
padding-bottom: 50rpx;
.textInfo {
word-break:break-all;
font-size: 29rpx;
text-indent: 2rem;
line-height: 42rpx;
@ -202,10 +205,10 @@
.righttext {
position: relative;
width: 94%;
height: 252rpx;
background-color: #ffffff;
border-radius: 20rpx;
margin: 10px auto;
padding-bottom: 20rpx;
.picture {
position: absolute;
width: 170rpx;
@ -217,6 +220,9 @@
margin-left: 35%;
line-height: 49px;
font-size: 33rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.call {
// display: flex;
@ -268,6 +274,10 @@
margin-left: 35%;
color: #999999;
line-height: 37rpx;
word-break:break-all;
// overflow: hidden;
// text-overflow: ellipsis;
// white-space: nowrap;
}
}
}

View File

@ -113,12 +113,14 @@
onLoad(options) {
this.usershow = false
let that = this
uni.getStorage({
key: 'patientId',
success: function(res) {
that.patientId = res.data
try {
const value = uni.getStorageSync('patientId');
if (value) {
that.patientId = value
}
});
} catch (e) {
// error
}
this.nurseStationId = options.nurseStationId
this.getInfo()
this.serveinfo()

View File

@ -45,11 +45,12 @@
<span>收货信息<text>{{order.receiver}},{{order.phone}},{{order.receiveAddress}}</text></span>
<span>订单编号<text>{{order.goOrderNo}}</text></span>
<!-- <span>获得积分<text>30点积分</text></span> -->
<span>付款时间<text>{{order.orderTime}}</text></span>
<span>下单时间<text>{{order.orderTime}}</text></span>
<span v-if="order.orderStatus=='REFUNDED'">退款时间<text>{{order.updateTime}}</text></span>
<!-- <span>发货时间<text>2022-10-28 113126</text></span> -->
<!-- <span>成交时间<text>2022-10-28 113126</text></span> -->
</view>
<view class=" buy" v-if="order.orderStatus == 'WAIT_PAY'">
<view class="buy" v-if="order.orderStatus == 'WAIT_PAY'">
<view class="pay">
去支付
</view>
@ -95,13 +96,23 @@
onLoad(options) {
this.baseurl = baseurl
let that = this
uni.getStorage({
key: 'patientId',
success: function(res) {
that.patientId = res.data
try {
const value = uni.getStorageSync('patientId');
if (value) {
that.patientId = value
that.goodsOrderinfo(options.goodsOrderId)
}
});
} catch (e) {
// error
}
/* uni.getStorage({
key: 'patientId',
success: function(res) {
that.patientId = res.data
that.goodsOrderinfo(options.goodsOrderId)
}
}); */
}
}
</script>

View File

@ -0,0 +1,81 @@
<template>
<view class="app">
<image src="../../static/paysuccess.png" mode=""></image>
<view class="success">
支付成功
</view>
<view class="goshopping" @tap='gos'>
返回上一页
</view>
<view class="gohomepage" @tap='gohome'>
去首页
</view>
</view>
</template>
<script>
export default {
data() {
return {
};
},
methods: {
gos() {
uni.navigateBack({
delta: 2
});
},
gohome() {
uni.switchTab({
url: '/pages/homepage/homepage'
});
},
},
}
</script>
<style lang="scss">
.app {
height: 100vh;
font-size: 30rpx;
.goshopping,
.gohomepage {
padding: 0 30rpx;
height: 70rpx;
line-height: 65rpx;
text-align: center;
position: absolute;
top: 50%;
color: #4C7BC9;
border: 1rpx solid #4C7BC9;
border-radius: 30rpx;
}
.goshopping {
left: 10%;
}
.gohomepage {
right: 10%;
}
.success {
font-size: 42rpx;
position: absolute;
top: 35%;
left: 50%;
transform: translateX(-50%);
}
image {
width: 230rpx;
height: 230rpx;
position: absolute;
top: 8%;
left: 50%;
transform: translateX(-50%);
}
}
</style>

View File

@ -50,16 +50,18 @@
}
}
.radio-content {
margin: 0 auto;
width: 70%;
text-align: center;
padding-top: 50rpx;
height: 80rpx;
line-height: 11rpx;
font-size: 28rpx;
.agreement {
color: #878987;
margin-left: 25%;
}
.radio-right {
margin-left: 20%;
margin-left: 30rpx;
.radio-default {
border: 2rpx solid #0fbda6;
}
@ -69,7 +71,7 @@
border-radius: 70%;
border: 2rpx solid #178ffb;
margin: 6px 25px -20rpx -5rpx;
.radio-active {
width: 16rpx;
height: 16rpx;

View File

@ -17,7 +17,7 @@
<view class="lefttext">
重复密码
</view>
<u-input class='righttext' style='left:30%' placeholder="请再次输入密码" maxlength="10" v-model="password"
<u-input class='righttext' style='left:30%' placeholder="请再次输入密码" maxlength="10" v-model="newpassword"
type="password" :border="false" :password-icon="true" />
</view>
<view class="item">
@ -64,6 +64,7 @@
patientName: '',
phone: '13645678913',
password: '123456',
newpassword: '123456',
verification: '111111',
getCodeText: '获取验证码', //
getCodeBtnColor: "#4C7BC9", //color
@ -73,23 +74,30 @@
methods: {
//
register() {
console.log(this.patientName)
appRegister(this.patientName, this.phone, this.password, this.verification).then(res => {
console.log(res)
if (res.code == 200) {
this.$refs.uToast.show({
title: '注册成功,前往登录',
type: 'success',
url: '/pages/login/login',
duration: '1500'
})
} else {
this.$refs.uToast.show({
title: res.msg,
type: 'error'
})
}
})
if (this.password !== this.newpassword) {
this.$refs.uToast.show({
title: '密码输入不一致,请重新输入',
type: 'error',
duration: '1500'
})
} else {
appRegister(this.patientName, this.phone, this.password, this.verification).then(res => {
console.log(res)
if (res.code == 200) {
this.$refs.uToast.show({
title: '注册成功,前往登录',
type: 'success',
url: '/pages/login/login',
duration: '1500'
})
} else {
this.$refs.uToast.show({
title: res.msg,
type: 'error'
})
}
})
}
},
//
gologin() {

View File

@ -6,8 +6,7 @@
</view>
<view class="map" style="height:35vh;">
<map style="width:100%; height:100%" scale="17" :latitude="latitude" :longitude="longitude"
:markers="markers"
></map>
:markers="markers"></map>
</view>
<view class="conNew">
<view class="addressContent" v-for="(item,index) in nursestationlist" :key="index">

View File

@ -1,6 +1,6 @@
<template>
<view class="app">
<image src="../../static/启动页.png" mode=""></image>
<image src="../../static/logo.png" mode=""></image>
<view class="title">
泉医到家
</view>
@ -16,23 +16,45 @@
},
onLoad() {
let that = this
uni.getStorage({
key: 'patientId',
success: function(res) {
try {
const value = uni.getStorageSync('patientId');
if (value) {
setTimeout(() => {
uni.reLaunch({
url: '/pages/homepage/homepage'
});
}, 2000);
},
fail() {
} else {
setTimeout(() => {
uni.reLaunch({
url: '/pages/login/login'
});
}, 2000);
}
});
} catch (e) {
setTimeout(() => {
uni.reLaunch({
url: '/pages/login/login'
});
}, 2000);
}
// uni.getStorage({
// key: 'patientId',
// success: function(res) {
// setTimeout(() => {
// uni.reLaunch({
// url: '/pages/homepage/homepage'
// });
// }, 2000);
// },
// fail() {
// setTimeout(() => {
// uni.reLaunch({
// url: '/pages/login/login'
// });
// }, 2000);
// }
// });
},
methods: {},
}

View File

@ -48,7 +48,7 @@
color: #000000;
padding:0 0 50rpx 5%;
overflow: hidden;
font-size: 35rpx;
font-size: 32rpx;
.disease{
line-height: 60rpx;
}

View File

@ -1,8 +1,8 @@
<template>
<view class="app">
<view class="user">
<view class="img" v-if="appPersonallist.headPictureUrl">
<image :src="baseurl+appPersonallist.headPictureUrl" mode=""></image>
<view v-if="appPersonallist.headPictureUrl">
<image class="img" :src="baseurl+appPersonallist.headPictureUrl" mode=""></image>
</view>
<view class="img" v-else>
<image src="../../static/users.png" mode=""></image>
@ -56,7 +56,7 @@
位置:
</view>
<view class="address" v-if="appPersonallist.homeLatitude&&appPersonallist.homeLongitude">
东经:{{appPersonallist.homeLongitude}}--北纬:{{ appPersonallist.homeLatitude}}
东经:{{appPersonallist.homeLongitude}}--北纬:{{ appPersonallist.homeLatitude}}
</view>
</view>
<view class="disease" style="border:none;">
@ -117,21 +117,39 @@
//
myInfo() {
var that = this
uni.getStorage({
key: 'patientId',
success: function(res) {
appPersonal(res.data).then(res => {
try {
const value = uni.getStorageSync('patientId');
if (value) {
appPersonal(value).then(res => {
that.appPersonallist = res.data
})
}
});
} catch (e) {
// error
}
// uni.getStorage({
// key: 'patientId',
// success: function(res) {
// appPersonal(res.data).then(res => {
// that.appPersonallist = res.data
// })
// }
// });
},
updatainfo() {
uni.navigateTo({
url: `/pages/modify/modify?appPersonallist=${JSON.stringify(this.appPersonallist)}`
})
}
}
},
onBackPress(options) {
console.log(options)
// if (options.from === 'navigateBack') {
// return false;
// }
// this.back();
// return true;
},
}
</script>
<style lang="scss">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

BIN
static/paysuccess.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
static/sp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
static/yyss.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
static/znsb.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB