This commit is contained in:
曹辉 2023-02-24 14:35:29 +08:00
parent d63d8c1802
commit 997bf30524
27 changed files with 502 additions and 729 deletions

View File

@ -1,4 +1,10 @@
import request from "../request.js"
export function appPersonal(patientId) {
return request({
url: `/nurseApp/login/appPersonal?patientId=${patientId}`,
method: 'GET'
})
}
export function orderCount(patientId) {
return request({
@ -6,4 +12,3 @@ export function orderCount(patientId) {
method: 'GET'
})
}

View File

@ -1,7 +0,0 @@
import request from "../request.js"
export function appPersonal(patientId) {
return request({
url: `/nurseApp/login/appPersonal?patientId=${patientId}`,
method: 'GET'
})
}

View File

@ -4,6 +4,13 @@
},
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
{
"path": "pages/coupon/coupon",
"style": {
"navigationBarTitleText": "优惠卷",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/Personal/Personal",
"style": {
"navigationBarTitleText": "个人中心",
@ -11,7 +18,21 @@
"navigationBarBackgroundColor": "#ffffff",
"navigationStyle": "custom"
}
},{
}, {
"path": "pages/integral/integral",
"style": {
"navigationBarTitleText": "积分",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/modify/modify",
"style": {
"navigationBarTitleText": "修改信息",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff" //
}
}, {
"path": "pages/startup/startup",
"style": {
"navigationBarTitleText": "",
@ -62,13 +83,6 @@
}
},
{
"path": "pages/modify/modify",
"style": {
"navigationBarTitleText": "修改信息",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff" //
}
}, {
"path": "pages/appointmenttime/appointmenttime",
"style": {
"navigationBarTitleText": "预约时间",
@ -96,7 +110,7 @@
"navigationBarTitleText": "医路优品",
"navigationBarBackgroundColor": "#ffffff",
"onReachBottomDistance": 40, // px
"enablePullDownRefresh": true ,//true
"enablePullDownRefresh": true, //true
"navigationStyle": "custom"
}
}, {
@ -108,15 +122,6 @@
"enablePullDownRefresh": true //true
}
},
{
"path": "pages/user/user",
"style": {
"navigationBarTitleText": "个人信息",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#4C7BC9", //
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/orderDetails/orderDetails",
"style": {
@ -132,7 +137,7 @@
"navigationBarBackgroundColor": "#ffffff",
"enablePullDownRefresh": false
}
},
},
{
"path": "pages/login/login",
"style": {
@ -191,14 +196,6 @@
"enablePullDownRefresh": false
}
},
{
"path": "pages/order/order",
"style": {
"navigationBarTitleText": "我的订单",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
},
{
"path": "pages/menttimeorder/menttimeorder",
"style": {

View File

@ -7,7 +7,7 @@
<view class="item" @tap='show=true'>退款原因
<span v-if="dictname==''">请选择</span>
<span v-else style='color: #000000;'>{{dictname}}</span>
<image src="../../static/pic.png" mode=""></image>
<image src="../../static/huijiantou.png" mode=""></image>
</view>
<view class="priceinfo">退款金额
<view class="priceback">{{order.totalPrice}}

View File

@ -19,7 +19,7 @@
<view class="content">
{{updata.goodsAttributeName}}
</view>
<image src="../../static/jiantou.png" mode=""></image>
<image src="../../static/huijiantou.png" mode=""></image>
</view>
<view class="Discount common">
<view class="selected">
@ -28,7 +28,7 @@
<!-- <view class="content">
购买最多可获得3积分
</view>
<image src="../../static/jiantou.png" mode=""></image> -->
<image src="../../static/huijiantou.png" mode=""></image> -->
</view>
<view class="service common">
<view class="selected">
@ -40,7 +40,7 @@
<view class="content" style="display: block;">
· 仅工作日发货
</view>
<!-- <image src="../../static/jiantou.png" mode=""></image> -->
<!-- <image src="../../static/huijiantou.png" mode=""></image> -->
</view>
<view class="picture">
<view class="selected">

View File

@ -7,7 +7,7 @@
<view class="" v-if="total>0">
<view class="Apayment" v-for='(item,index) in orderlist' :key="index">
<view class="names">店铺名称
<image class="picture" src="/static/pic.png" mode=""></image>
<image class="picture" src="../../static/huijiantou.png" mode=""></image>
<span v-if="item.orderStatus=='WAIT_PAY'">待付款</span>
<span v-if="item.orderStatus=='WAIT_REFUND'">退款中</span>
<span v-if="item.orderStatus=='CANCEL'">已取消</span>

View File

@ -60,18 +60,17 @@
transform: translateX(-50%);
}
.orderCount {
background-color: red;
color: #FFFFFF;
border-radius: 50%;
// padding: 0 5rpx ;
line-height: 30rpx;
width: 30rpx;
height: 30rpx;
font-size: 18rpx;
// display: inline-block;
width: 38rpx;
height: 38rpx;
background: #FFFFFF;
border: 3rpx solid #DC222F;
position: absolute;
top: -20rpx;
right: 35rpx;
font-size: 22rpx;
border-radius: 50%;
line-height: 35rpx;
color: #DC222F;
}
}
}

View File

@ -23,7 +23,7 @@
健康档案
</view>
</view>
<view class="item">
<view class="item" @tap='gointegral'>
<image src="../../static/jifen.png" mode=""></image>
<view class="text">
积分
@ -53,7 +53,8 @@
<view class="orderCount" v-if="list.waitPayCount>0&&list.waitPayCount<100">
{{list.waitPayCount}}
</view>
<view class="orderCount" style="font-size :14rpx;" v-if="list.waitPayCount>=100">
<view class="orderCount" style="width: 57rpx;border-radius: 17rpx;right:25rpx"
v-if="list.waitPayCount>=100">
99+
</view>
</view>
@ -63,7 +64,8 @@
<view class="orderCount" v-if="list.waitReceivedGoodsCount>0&&list.waitReceivedGoodsCount<100">
{{list.waitReceivedGoodsCount}}
</view>
<view class="orderCount" style="font-size :14rpx;" v-if="list.waitReceivedGoodsCount>=100">
<view class="orderCount" style="width: 57rpx;border-radius: 17rpx;right:25rpx"
v-if="list.waitReceivedGoodsCount>=100">
99+
</view>
</view>
@ -73,7 +75,8 @@
<view class="orderCount" v-if="list.receivedGoodsCount>0&&list.receivedGoodsCount<100">
{{list.receivedGoodsCount}}
</view>
<view class="orderCount" style="font-size :14rpx;" v-if="list.receivedGoodsCount>=100">
<view class="orderCount" style="width: 57rpx;border-radius: 17rpx;right:25rpx"
v-if="list.receivedGoodsCount>=100">
99+
</view>
</view>
@ -104,13 +107,11 @@
<script>
import {
appPersonal,
} from '@/api/user/user.js';
orderCount
} from '@/api/Personal/Personal.js';
import {
existPatientInfo
} from '@/api/startup/index.js'
import {
orderCount
} from '@/api/order/index.js'
import baseurl from '@/api/baseurl.js'
export default {
data() {
@ -235,6 +236,12 @@
url: '/pages/CommodityOrder/CommodityOrder'
})
},
//
gointegral() {
uni.navigateTo({
url: '/pages/integral/integral'
})
},
//
goEVALUATED(item) {
uni.navigateTo({

61
pages/coupon/coupon.vue Normal file
View File

@ -0,0 +1,61 @@
<template>
<view class="app">
<view class="tabs">
<view class="tab-item">
<view class="title">
</view>
<view class="text">
2
</view>
</view>
</view>
<view class="">
</view>
</view>
</template>
<script>
export default {
data() {
return {
};
}
}
</script>
<style lang="scss">
.app {
padding: 0;
.tabs {
width: 100%;
.tab-item {
margin: 20rpx 0 0 24rpx;
text-align: center;
width: 20%;
.text {
width: 70%;
margin-left: 15%;
height: 30rpx;
background: #F44B2F;
border-radius: 9rpx;
color: #fff;
font-size: 24rpx;
line-height: 30rpx;
}
.title {
font-size: 40rpx;
font-family: Source Han Sans CN;
font-weight: 500;
color: #F44B2F;
line-height: 59rpx;
}
}
}
}
</style>

282
pages/integral/integral.vue Normal file
View File

@ -0,0 +1,282 @@
<template>
<view class="app">
<view class="vacancies">
<image src="../../static/jifenbeij.png" mode=""></image>
<view class="lefttext">
积分余额
</view>
<view class="righttext">
<image src="../../static/jfgz.png" mode=""></image>
<view class="">
积分规则
</view>
</view>
<view class="title">
1000
</view>
<view class="centertext">
20积分将于2022.01.01过期
</view>
<view class="bottombutton" @tap='gainshow=true'>
获取积分
</view>
</view>
<view class="titles">
积分兑换
</view>
<view class="items">
<view class="item">
<image src="../../static/kefu.png" mode=""></image>
<view class="title">
维生素1盒
</view>
<view class="jifen">
需使用1000积分兑换
</view>
<view class="btn">
立即兑换
</view>
</view>
</view>
<u-mask :show="gainshow" @tap="gainshow = false">
<view class="mask" @click.stop="">
<view class="title">
获取方式
</view>
<view class="maskitems">
<view class="item">
<image src="../../static/qiandao.png" mode=""></image>
<view class="titletext">
累计签到24天
</view>
<view class="text">
+30积分
</view>
<view class="btn">
签到
</view>
</view>
<view class="item" style="background-color: #F44B2F;">
<image src="../../static/yaoqing.png" mode=""></image>
<view class="titletext">
每邀请1位好友
</view>
<view class="text">
20积分
</view>
<view class="btn" style="color: #F44B2F;">
去完成
</view>
</view>
</view>
</view>
</u-mask>
</view>
</template>
<script>
export default {
data() {
return {
gainshow: false,
};
},
methods: {},
}
</script>
<style lang="scss">
.app {
.mask {
position: fixed;
bottom: 0;
height: 600rpx;
width: 100%;
background-color: #fff;
.maskitems {
color: #fff;
width: 90%;
margin:60rpx auto 0;
.item {
background: #557BC2;
width: 100%;
margin: 0 auto 20rpx;
height: 150rpx;
position: relative;
font-size: 26rpx;
.btn {
text-align: center;
width: 121rpx;
height: 44rpx;
background: #FFFFFF;
border-radius: 22rpx;
position: absolute;
right: 30rpx;
top: 58rpx;
line-height: 44rpx;
font-size: 22rpx;
color: #557BC2;
}
.text {
position: absolute;
left: 150rpx;
top: 90rpx;
}
.titletext {
position: absolute;
left: 150rpx;
top: 48rpx;
}
image {
margin: 49rpx 0 0 43rpx;
width: 66rpx;
height: 66rpx;
}
}
}
.title {
padding-top: 10rpx;
font-size: 38rpx;
font-weight: 600;
text-align: center;
width: 100%;
}
}
.items {
margin-top: 30rpx;
.item {
width: 92%;
margin: 0 auto 12rpx;
background-color: #FFFFFF;
height: 220rpx;
position: relative;
.btn {
position: absolute;
right: 40rpx;
top: 50%;
transform: translateY(-50%);
width: 139rpx;
height: 44rpx;
background: #557BC2;
border-radius: 22rpx;
color: #fff;
text-align: center;
font-size: 22rpx;
color: #FFFFFF;
line-height: 44rpx;
}
.jifen {
position: absolute;
left: 220rpx;
top: 140rpx;
font-size: 26rpx;
color: #666666;
}
.title {
font-size: 34rpx;
font-weight: 600;
position: absolute;
left: 220rpx;
top: 60rpx;
}
image {
margin: 15rpx 0 0 15rpx;
width: 180rpx;
height: 180rpx;
}
}
}
.titles {
margin: 38rpx 0 0 31rpx;
font-size: 30rpx;
}
.vacancies {
width: 92%;
height: 330rpx;
margin: 0 auto;
position: relative;
color: #fff;
.bottombutton {
position: absolute;
top: 230rpx;
left: 50%;
font-size: 32rpx;
color: #557BC2;
line-height: 72rpx;
text-align: center;
transform: translateX(-50%);
width: 440rpx;
height: 72rpx;
background: #FFFFFF;
border-radius: 36rpx;
}
.centertext {
position: absolute;
top: 160rpx;
width: 100%;
text-align: center;
font-size: 28rpx;
opacity: 0.8;
}
.title {
position: absolute;
left: 50%;
font-size: 60rpx;
top: 70rpx;
transform: translateX(-50%);
}
.righttext {
position: absolute;
top: 32rpx;
right: 31rpx;
font-size: 24rpx;
line-height: 28rpx;
width: 130rpx;
height: 28rpx;
image {
position: absolute;
left: 0;
width: 28rpx;
height: 28rpx;
}
view {
opacity: 0.6;
position: absolute;
right: 0;
}
}
.lefttext {
position: absolute;
top: 32rpx;
left: 33rpx;
font-size: 30rpx;
line-height: 33rpx;
}
image {
width: 100%;
height: 100%;
}
}
}
</style>

View File

@ -2,19 +2,22 @@
background-color: #F4F5F7;
width: 100%;
color: #000000;
padding-bottom: 50rpx;
/deep/ .u-drawer{
padding: 15rpx 0 50rpx;
/deep/ .u-drawer {
z-index: 0 !important;
}
.Agreement{
.Agreement {
width: 100%;
background-color: #F4F5F7;
text-align: center;
height: 1000rpx;
position: absolute;
top:5%;
top: 5%;
font-size: 30rpx;
.title{
.title {
height: 100rpx;
line-height: 100rpx;
border-bottom: 1px solid #eeeeee;
@ -23,52 +26,58 @@
width: 100%;
text-align: center;
}
.scroll-Y{
height:830rpx ;
overflow-y:scroll;
.scroll-Y {
height: 830rpx;
overflow-y: scroll;
text-align: left;
text-indent: 2em;
}
.cancel {
height:70rpx;
height: 70rpx;
line-height: 70rpx;
font-size: 32rpx;
background-color: #F4F5F7;
position: absolute;
border-top: 1rpx solid #000000;
bottom:0;
right:0;
bottom: 0;
right: 0;
width: 50%;
color: #000000;
}
.determine {
height:70rpx;
height: 70rpx;
line-height: 70rpx;
font-size: 32rpx;
width: 50%;
color: #F4F5F7;
background: #4C7BC9;
position: absolute;
bottom:0;
left:0;
bottom: 0;
left: 0;
}
}
.radio-content {
margin: 50rpx auto;
margin: 30rpx auto 0;
width: 70%;
text-align: center;
font-size: 28rpx;
position: relative;
.agreement {
position: absolute;
top:50%;
left:20%;
top: 50%;
left: 20%;
transform: translateY(-50%);
color: #878987;
}
}
.radio-right {
height: 100rpx;
.radio {
display: inline-block;
width: 35rpx;
@ -76,57 +85,82 @@
border-radius: 70%;
border: 2rpx solid #178ffb;
position: absolute;
top:50%;
left:5%;
top: 50%;
left: 5%;
transform: translateY(-50%);
.radio-active {
width: 16rpx;
height: 16rpx;
border-radius: 50%;
background-color: #178ffb;
position: absolute;
top:50%;
left:50%;
transform: translate(-50%,-50%);
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
}
}
.finish{
width: 25%;
height: 68rpx;
background: #4C7BC9;
border-radius: 26rpx;
.finish {
width: 70%;
height: 71rpx;
background: #557BC2;
border-radius: 36rpx;
text-align: center;
line-height: 68rpx;
line-height: 71rpx;
color: #fff;
margin-top: 50rpx;
margin-left: 65%;
margin: 30rpx auto 0;
font-size: 32rpx;
}
.userinfo {
width: 96%;
background-color: #fff;
margin: 0 auto;
border-radius: 20rpx;
.disease{
.disease {
width: 100%;
margin: 0 auto;
padding: 0 6% 0 3%;
line-height: 80rpx;
border-bottom: 1rpx solid #D8D4D4;
position: relative;
view{
display: inline-block;
.title {
font-size: 30rpx;
display: block;
line-height: 120rpx;
}
.pictureA {
width: 18rpx;
height: 27rpx;
position: absolute;
right:30rpx;
top:50%;
right: 30rpx;
top: 50%;
transform: translateY(-50%);
}
}
.itemimgs {
width: 100%;
height: 400rpx;
border-bottom: 1rpx solid #D8D4D4;
position: relative;
.picture {
width: 200rpx;
height: 200rpx;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
.item {
width: 94%;
margin: 0 auto;
@ -135,44 +169,22 @@
border-bottom: 1rpx solid #D8D4D4;
position: relative;
font-size: 30rpx;
.picture {
vertical-align: middle;
width: 180rpx;
height: 180rpx;
position: absolute;
top:10rpx;
right:80rpx;
}
.pictureA {
margin-left: 3%;
width: 18rpx;
height: 27rpx;
position: absolute;
right:20rpx;
top:50%;
transform: translateY(-50%);
}
.address {
position: absolute;
left:25%;
top:50%;
left: 25%;
top: 50%;
width: 75%;
transform: translateY(-50%);
display: inline-block;
height: 120rpx;
line-height: 120rpx;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
span {
display: inline-block;
line-height: 120rpx;
height: 120rpx;
width: 25%;
}
::v-deep .u-input__input {
height: 120rpx;
@ -190,8 +202,8 @@
line-height: 120rpx;
width: 75%;
position: absolute;
left:25%;
top:50%;
left: 25%;
top: 50%;
transform: translateY(-50%);
}
}

View File

@ -1,10 +1,9 @@
<template>
<view class="app">
<view class="userinfo">
<view class="item" style="height: 200rpx; " @tap='uploadImag'>
<span style='height:200rpx;line-height: 200rpx;'>头像:</span>
<image class="picture" :src="img" mode=""></image>
<image class="pictureA" src="../../static/jiantou.png" mode=""></image>
<view class="itemimgs">
<image class="picture" :src="img" mode="" v-if="img" @tap='uploadImag'></image>
<image class="picture" src="../../static/userl.png" mode="" v-else @tap='uploadImag'></image>
</view>
<view class="item">
<span>姓名:</span>
@ -40,24 +39,25 @@
</view>
</view>
<view class="disease" style="border: none;" @tap="godisease">
<view style="display: block;line-height: 120rpx;">疾病类型:</view>
<image class="pictureA" src="../../static/jiantou.png" mode=""></image>
<view class="" style="padding-right: 10rpx" v-for="(item,index) in patientDiseaseInfoList">
<view class="title" style="">疾病类型:</view>
<image class="pictureA" src="../../static/huijiantou.png" mode=""></image>
<view style="padding-right: 10rpx;display: inline-block;"
v-for="(item,index) in patientDiseaseInfoList">
{{item.diseaseName}}
</view>
</view>
</view>
<view class="radio-content">
<view class="radio-right" @tap="changeRadio">
<view class="radio-right" @click='changeRadio'>
<view class="radio" :class="radio == 2 ? 'radio-default':''">
<view :class="radio == 2 ? 'radio-active':''"></view>
</view>
</view>
<view class="agreement">我已阅读并同意<text @tap='maskshow=true'
<view class="agreement" @click.stop='changeRadio'>我已阅读并同意<text @click.stop='maskshow=true'
style="color: #000000;border-bottom: 1rpx solid #000000;">用户协议</text>
</view>
</view>
<view class="finish" @tap="informationinfo()">完成
<view class="finish" @tap="informationinfo()">确认修改
</view>
<u-toast ref="uToast" />
<!-- // -->
@ -96,7 +96,7 @@
import baseurl from '@/api/baseurl.js'
import {
appPersonal,
} from '@/api/user/user.js';
} from '@/api/Personal/Personal.js';
import {
getSubordinateRegions,
} from '@/api/modifyAddress/modifyAddress.js';
@ -148,7 +148,9 @@
that.appPersonallist = Response.data
that.appPersonallist.homeLatitude = Number(that.appPersonallist.homeLatitude)
that.appPersonallist.homeLongitude = Number(that.appPersonallist.homeLongitude)
that.img = baseurl + that.appPersonallist.headPictureUrl
if (that.appPersonallist.headPictureUrl) {
that.img = baseurl + that.appPersonallist.headPictureUrl
}
if (that.appPersonallist.areaName) {
that.address = that.appPersonallist.areaName
}
@ -177,7 +179,7 @@
} else if (e.length == 1) {
this.address = e[0].localName
this.appPersonallist.areaCode = e[0].id
}else {
} else {
this.address = ''
this.appPersonallist.areaCode = ''
}

View File

@ -53,7 +53,7 @@
<!-- <view class="area" @tap='areashow=true'> -->
<u-field v-model="infolist.address" label="区域" placeholder="请选择" class="items" disabled>
</u-field>
<image src="../../static/jiantou.png" mode=""></image>
<image src="../../static/huijiantou.png" mode=""></image>
</view>
<u-field v-model="infolist.receiveAddress" label-width="170" label="详细地址" placeholder="如街道、门牌号、小区等"
class="items" maxlength='50'>

View File

@ -1,220 +0,0 @@
<template>
<view class="app">
<view class="content">
<view class="CommodityOrder" @tap="goorder">商品订单
<image class="picture" src="../../static/jiantou.png" mode=""></image>
</view>
<view class="center">
<view class="OrderStatus" @tap="gopaid('WAIT_PAY')">
<image src="/static/Tobepaid.png" mode=""></image>
<span>待付款</span>
<view class="orderCount" v-if="list.waitPayCount>0&&list.waitPayCount<100">
{{list.waitPayCount}}
</view>
<view class="orderCount" v-if="list.waitPayCount>=100">
99+
</view>
</view>
<view class="OrderStatus" @tap="goreceive('WAIT_RECEIVED_GOODS')">
<image src="/static/received.png" mode=""></image>
<span>待收货</span>
<view class="orderCount" v-if="list.waitReceivedGoodsCount>0&&list.waitReceivedGoodsCount<100">
{{list.waitReceivedGoodsCount}}
</view>
<view class="orderCount" v-if="list.waitReceivedGoodsCount>=100">
99+
</view>
</view>
<view class="OrderStatus" @tap="gocompleted('RECEIVED_GOODS')">
<image src="/static/evaluated.png" mode=""></image>
<span>待评价</span>
<view class="orderCount" v-if="list.receivedGoodsCount>0&&list.receivedGoodsCount<100">
{{list.receivedGoodsCount}}
</view>
<view class="orderCount" v-if="list.receivedGoodsCount>=100">
99+
</view>
</view>
<view class="OrderStatus" @tap="goEVALUATED('EVALUATED')">
<image src="/static/finished.png" mode=""></image>
<span>已完成</span>
<!-- <view class="orderCount" v-if="list.evaluatedCount>0&&list.evaluatedCount<100">
{{list.evaluatedCount}}
</view>
<view class="orderCount" v-if="list.evaluatedCount>=100">
99+
</view> -->
</view>
</view>
</view>
<view class="service" @tap="gonursestation">
<view class="serviceorder">护理站服务订单</view>
<view class="pictures">
<image src="../../static/jiantou.png" mode=""></image>
</view>
</view>
<u-toast ref="uToast" />
</view>
</template>
<script>
import {
orderCount
} from '@/api/order/index.js'
export default {
data() {
return {
list: null,
}
},
onShow() {
let that = this
const value = uni.getStorageSync('patientId');
if (value) {
orderCount(value).then(res => {
this.list = res.data
})
} else {
that.$refs.uToast.show({
title: '请登录',
type: 'error',
duration: '1000',
url: '/pages/login/login'
})
}
},
methods: {
//
gonursestation() {
uni.navigateTo({
url: '/pages/Nursingstationserviceorder/Nursingstationserviceorder'
})
},
//
goreceive(item) {
uni.navigateTo({
url: `/pages/CommodityOrder/CommodityOrder?orderStatus=${item}`
})
},
//
goorder() {
uni.navigateTo({
url: '/pages/CommodityOrder/CommodityOrder'
})
},
//
goEVALUATED(item) {
uni.navigateTo({
url: `/pages/CommodityOrder/CommodityOrder?orderStatus=${item}`
})
},
//
gocompleted(item) {
uni.navigateTo({
url: `/pages/CommodityOrder/CommodityOrder?orderStatus=${item}`
})
},
//
gopaid(item) {
uni.navigateTo({
url: `/pages/CommodityOrder/CommodityOrder?orderStatus=${item}`
})
},
},
}
</script>
<style lang="scss">
.app {
background-color: #F4F5F7;
width: 100%;
color: #000000;
padding: 3%;
font-size: 36rpx;
span {
display: block;
}
.service {
width: 99%;
height: 105rpx;
background: #FFFFFF;
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
border-radius: 20rpx;
margin-top: 3%;
.pictures {
display: inline-block;
margin-left: 48%;
image {
width: 18rpx;
height: 27rpx;
}
}
.serviceorder {
line-height: 100rpx;
margin-left: 5%;
display: inline-block;
}
}
.content {
width: 99%;
height: 344rpx;
background: #FFFFFF;
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
border-radius: 20rpx;
.center {
display: flex;
justify-content: space-around;
image {
width: 100rpx;
height: 80rpx;
margin-left: 50%;
transform: translateX(-50%);
}
.OrderStatus {
padding-top: 50rpx;
position: relative;
.orderCount {
background-color: red;
color: #FFFFFF;
border-radius: 50%;
text-align: center;
// padding: 0 5rpx ;
line-height: 40rpx;
width: 40rpx;
height: 40rpx;
font-size: 20rpx;
// display: inline-block;
position: absolute;
top: 30rpx;
right: -20rpx;
}
}
}
.picture {
margin-left: 70%;
width: 18rpx;
height: 27rpx;
}
.CommodityOrder {
display: inline-block;
width: 90%;
height: 110rpx;
line-height: 100rpx;
margin-left: 5%;
border-bottom: 1rpx solid #D8D4D4;
}
}
}
</style>

View File

@ -12,7 +12,7 @@
<view class="content">
<view class="name">
店铺名称
<image src="../../static/rowsright.png" mode=""></image>
<image src="../../static/huijiantou.png" mode=""></image>
</view>
<view class="details">
<view class="detailslist">

View File

@ -12,7 +12,7 @@
<view class="content">
<view class="name">
店铺名称
<image src="../../static/rowsright.png" mode=""></image>
<image src="../../static/huijiantou.png" mode=""></image>
</view>
<view class="details">
<view class="detailslist">

View File

@ -31,7 +31,7 @@
<view>我要退款(无需退货)</view>
<view class="text">没收到货</view>
</view>
<image class="picture pictures" src="../../static/rowsright.png" mode=""></image>
<image class="picture pictures" src="../../static/huijiantou.png" mode=""></image>
</view>
<view class="myrefund" @tap='goApplforrefund(2)'>
@ -40,7 +40,7 @@
<view>我要退货退款</view>
<view class="text">已收到货需要退还收到的货物</view>
</view>
<image class="picture" src="../../static/rowsright.png" mode=""></image>
<image class="picture" src="../../static/huijiantou.png" mode=""></image>
</view>
</view>
</view>

View File

@ -1,145 +0,0 @@
.app {
font-size: 35rpx;
padding: 0 0 200rpx 0;
position: relative;
.signout{
// position: absolute;
// bottom: 60rpx;
// width: 94%;
background: #FFFFFF;
margin-top: 50rpx;
height: 80rpx;
line-height: 80rpx;
// left:3%;
border-radius: 20rpx;
text-align: center;
}
.External {
width: 94%;
height: 100rpx;
line-height: 100rpx;
margin: 20rpx auto;
padding-left: 5%;
background: #FFFFFF;
box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
border-radius: 20rpx;
position: relative;
.righttext {
position: absolute;
right: 12%;
top: 50%;
color: #969394;
transform: translateY(-50%);
}
image {
width: 18rpx;
height: 27rpx;
position: absolute;
right: 5%;
top: 50%;
transform: translateY(-50%);
}
.lefttext,
.righttext {
display: inline-block;
}
}
.information {
width: 94%;
border-radius: 20rpx;
position: absolute;
top: 250rpx;
left: 3%;
color: #000000;
padding:0 0 0 0;
overflow: hidden;
font-size: 32rpx;
.disease{
box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
line-height: 60rpx;
padding:0 0 40rpx 5%;
background: #FFFFFF;
border-radius: 0 0 20rpx 20rpx;
}
.addressitem {
box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
// height: 110rpx;
line-height: 80rpx;
border-bottom: 1rpx solid #D8D4D4;
background: #FFFFFF;
.address{
line-height: 50rpx;font-size: 28rpx;width: 90%;margin: 0 auto;
}
}
.item {
box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
// height: 110rpx;
line-height: 110rpx;
border-bottom: 1rpx solid #D8D4D4;
padding:0 0 0 5%;
background: #FFFFFF;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
// .address {
// position: absolute;
// top:50%;
// transform: translateY(-50%);
// // font-size: 30rpx;
// display: inline-block;
// width: 80%;
// overflow: hidden;
// text-overflow: ellipsis;
// white-space: nowrap;
// }
}
}
.user {
width: 100%;
height: 500rpx;
background: #4C7BC9;
position: relative;
color: #FFFFFF;
.modify {
font-size: 32rpx;
position: absolute;
right: 3%;
top: 22%;
}
.nickname {
position: absolute;
top: 26%;
left: 33%;
}
.phone {
position: absolute;
top: 13%;
left: 33%;
}
.img {
width: 150rpx;
height: 150rpx;
border-radius: 50%;
background: #F6F6F6;
position: absolute;
top: 10%;
left: 8%;
image {
width: 100rpx;
margin-left: 50%;
margin-top: 50%;
transform: translate(-50%, -50%);
height: 100rpx;
}
}
}
}

View File

@ -1,220 +0,0 @@
<template>
<view class="app">
<view class="user">
<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>
</view>
<view class="phone" v-if="appPersonallist.patientName">
{{appPersonallist.patientName}}
</view>
<view class="nickname">
<!-- {{appPersonallist.phone}} -->
</view>
<view class="modify" @tap='updatainfo()'>
修改信息
<u-icon name="arrow-right" color="#ffffff" size="32"></u-icon>
</view>
</view>
<view class="information">
<view class="item" v-if="appPersonallist.patientName">
姓名{{appPersonallist.patientName}}
</view>
<view class="item" v-else>
姓名
</view>
<view class="item" v-if="appPersonallist.phone">
电话{{appPersonallist.phone}}
</view>
<view class="item" v-else>
电话
</view>
<view class="item" v-if="appPersonallist.cardNo">
身份证{{appPersonallist.cardNo}}
</view>
<view class="item" v-else>
身份证
</view>
<view class="addressitem" v-if="appPersonallist.areaName">
<view class="" style="padding-left: 5%;">
区域
</view>
<view class="address" style="">
{{appPersonallist.areaName}}
</view>
</view>
<view class="addressitem" v-else>
<view class="" style="padding-left: 5%;">
区域
</view>
<view class="address" style="">
</view>
</view>
<view class="addressitem" style="height:100%" v-if="appPersonallist.address">
<view class="" style="padding-left: 5%;">
地址
</view>
<view class="address" style="">
{{appPersonallist.address}}
</view>
</view>
<view class="addressitem" style="height:100%" v-else>
<view class="" style="padding-left: 5%;">
地址
</view>
</view>
<view class="disease" style="border:none;">
<view class="" style="line-height: 110rpx;">
疾病类型:
</view>
<span style="padding-right: 15rpx;font-size: 30rpx;"
v-for="(item,index) in appPersonallist.patientDiseaseInfoList"
:key="index">{{item.diseaseName}}</span>
</view>
<view class="signout" @tap='remove'>
退出账号
</view>
</view>
<!-- <view class="External" style="margin: 200rpx auto 0;">
<view class="lefttext">
积分:
</view>
<view class="righttext">
{{appPersonallist.integral}}
</view>
<image src="../../static/jiantou.png" mode=""></image>
</view>
<view class="External">
<view class="lefttext">
健康档案
</view>
<view class="righttext">
</view>
<image src="../../static/jiantou.png" mode=""></image>
</view>
<view class="External">
<view class="lefttext">
我的设备
</view>
<view class="righttext">
</view>
<image src="../../static/jiantou.png" mode=""></image>
</view> -->
<u-toast ref="uToast" />
</view>
</template>
<script>
import {
appPersonal,
} from '@/api/user/user.js';
import {
existPatientInfo
} from '@/api/startup/index.js'
import baseurl from '@/api/baseurl.js'
export default {
data() {
return {
baseurl: '',
appPersonallist: [], //
timer: null,
}
},
onShow() {
this.baseurl = baseurl
this.myInfo()
},
onLoad(options) {},
methods: {
remove() {
let that = this
uni.showModal({
title: '提示',
content: '确认要退出此账号吗',
success: function(res) {
if (res.confirm) {
uni.removeStorageSync('patientId');
uni.removeStorageSync('openid');
uni.removeStorageSync('phone');
uni.removeStorageSync('token');
that.$refs.uToast.show({
title: '退出账号成功',
type: 'success',
duration: '1000'
})
if (that.timer) {
clearTimeout(that.timer)
}
that.timer = setTimeout(e => {
uni.navigateBack({
delta: 1
})
}, 1000)
} else if (res.cancel) {
that.$refs.uToast.show({
title: '退出账号失败',
type: 'error',
duration: '1000'
})
}
}
});
},
removes() {
uni.removeStorageSync('patientId');
uni.removeStorageSync('openid');
uni.removeStorageSync('phone');
uni.removeStorageSync('Refresh');
uni.removeStorageSync('token');
uni.navigateBack({
delta: 1
})
},
//
myInfo() {
var that = this
const value = uni.getStorageSync('openid');
const value2 = uni.getStorageSync('patientId');
if (value && value2) {
existPatientInfo(value).then(res => {
if (res.code == 200 && res.msg == 'LOGIN') {
appPersonal(value2).then(Response => {
if (Response.code == 200) {
that.appPersonallist = Response.data
that.appPersonallist.homeLatitude = Number(that.appPersonallist
.homeLatitude)
that.appPersonallist.homeLongitude = Number(that.appPersonallist
.homeLongitude)
} else if (Response.code == 9999) {} else {
that.removes();
}
})
} else {
that.removes();
}
})
} else {
that.removes();
}
},
updatainfo() {
uni.navigateTo({
// url: `/pages/modify/modify?appPersonallist=${JSON.stringify(this.appPersonallist)}`
url: `/pages/modify/modify`
})
}
},
onBackPress(options) {
// if (options.from === 'navigateBack') {
// return false;
// }
// this.back();
// return true;
},
}
</script>
<style lang="scss">
@import "./user.scss";
</style>

BIN
static/jfgz.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

BIN
static/jifenbeij.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 729 B

BIN
static/qiandao.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 638 B

BIN
static/userl.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

BIN
static/yaoqing.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB