修改
@ -1,4 +1,10 @@
|
|||||||
import request from "../request.js"
|
import request from "../request.js"
|
||||||
|
export function appPersonal(patientId) {
|
||||||
|
return request({
|
||||||
|
url: `/nurseApp/login/appPersonal?patientId=${patientId}`,
|
||||||
|
method: 'GET'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export function orderCount(patientId) {
|
export function orderCount(patientId) {
|
||||||
return request({
|
return request({
|
||||||
@ -6,4 +12,3 @@ export function orderCount(patientId) {
|
|||||||
method: 'GET'
|
method: 'GET'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
import request from "../request.js"
|
|
||||||
export function appPersonal(patientId) {
|
|
||||||
return request({
|
|
||||||
url: `/nurseApp/login/appPersonal?patientId=${patientId}`,
|
|
||||||
method: 'GET'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
45
pages.json
@ -4,6 +4,13 @@
|
|||||||
},
|
},
|
||||||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
||||||
{
|
{
|
||||||
|
"path": "pages/coupon/coupon",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "优惠卷",
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"navigationBarBackgroundColor": "#ffffff"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
"path": "pages/Personal/Personal",
|
"path": "pages/Personal/Personal",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "个人中心",
|
"navigationBarTitleText": "个人中心",
|
||||||
@ -11,6 +18,20 @@
|
|||||||
"navigationBarBackgroundColor": "#ffffff",
|
"navigationBarBackgroundColor": "#ffffff",
|
||||||
"navigationStyle": "custom"
|
"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",
|
"path": "pages/startup/startup",
|
||||||
"style": {
|
"style": {
|
||||||
@ -62,13 +83,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/modify/modify",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "修改信息",
|
|
||||||
"enablePullDownRefresh": false,
|
|
||||||
"navigationBarBackgroundColor": "#ffffff" //背景颜色
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
"path": "pages/appointmenttime/appointmenttime",
|
"path": "pages/appointmenttime/appointmenttime",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "预约时间",
|
"navigationBarTitleText": "预约时间",
|
||||||
@ -108,15 +122,6 @@
|
|||||||
"enablePullDownRefresh": true //设置参数为true
|
"enablePullDownRefresh": true //设置参数为true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "pages/user/user",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "个人信息",
|
|
||||||
"enablePullDownRefresh": false,
|
|
||||||
"navigationBarBackgroundColor": "#4C7BC9", //背景颜色
|
|
||||||
"navigationBarTextStyle": "white"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/orderDetails/orderDetails",
|
"path": "pages/orderDetails/orderDetails",
|
||||||
"style": {
|
"style": {
|
||||||
@ -191,14 +196,6 @@
|
|||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "pages/order/order",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "我的订单",
|
|
||||||
"enablePullDownRefresh": false,
|
|
||||||
"navigationBarBackgroundColor": "#ffffff"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/menttimeorder/menttimeorder",
|
"path": "pages/menttimeorder/menttimeorder",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
<view class="item" @tap='show=true'>退款原因
|
<view class="item" @tap='show=true'>退款原因
|
||||||
<span v-if="dictname==''">请选择</span>
|
<span v-if="dictname==''">请选择</span>
|
||||||
<span v-else style='color: #000000;'>{{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>
|
||||||
<view class="priceinfo">退款金额
|
<view class="priceinfo">退款金额
|
||||||
<view class="priceback">¥{{order.totalPrice}}
|
<view class="priceback">¥{{order.totalPrice}}
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
<view class="content">
|
<view class="content">
|
||||||
{{updata.goodsAttributeName}}
|
{{updata.goodsAttributeName}}
|
||||||
</view>
|
</view>
|
||||||
<image src="../../static/jiantou.png" mode=""></image>
|
<image src="../../static/huijiantou.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="Discount common">
|
<view class="Discount common">
|
||||||
<view class="selected">
|
<view class="selected">
|
||||||
@ -28,7 +28,7 @@
|
|||||||
<!-- <view class="content">
|
<!-- <view class="content">
|
||||||
购买最多可获得3积分
|
购买最多可获得3积分
|
||||||
</view>
|
</view>
|
||||||
<image src="../../static/jiantou.png" mode=""></image> -->
|
<image src="../../static/huijiantou.png" mode=""></image> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="service common">
|
<view class="service common">
|
||||||
<view class="selected">
|
<view class="selected">
|
||||||
@ -40,7 +40,7 @@
|
|||||||
<view class="content" style="display: block;">
|
<view class="content" style="display: block;">
|
||||||
· 仅工作日发货
|
· 仅工作日发货
|
||||||
</view>
|
</view>
|
||||||
<!-- <image src="../../static/jiantou.png" mode=""></image> -->
|
<!-- <image src="../../static/huijiantou.png" mode=""></image> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="picture">
|
<view class="picture">
|
||||||
<view class="selected">
|
<view class="selected">
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
<view class="" v-if="total>0">
|
<view class="" v-if="total>0">
|
||||||
<view class="Apayment" v-for='(item,index) in orderlist' :key="index">
|
<view class="Apayment" v-for='(item,index) in orderlist' :key="index">
|
||||||
<view class="names">店铺名称
|
<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_PAY'">待付款</span>
|
||||||
<span v-if="item.orderStatus=='WAIT_REFUND'">退款中</span>
|
<span v-if="item.orderStatus=='WAIT_REFUND'">退款中</span>
|
||||||
<span v-if="item.orderStatus=='CANCEL'">已取消</span>
|
<span v-if="item.orderStatus=='CANCEL'">已取消</span>
|
||||||
|
|||||||
@ -60,18 +60,17 @@
|
|||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
}
|
}
|
||||||
.orderCount {
|
.orderCount {
|
||||||
background-color: red;
|
width: 38rpx;
|
||||||
color: #FFFFFF;
|
height: 38rpx;
|
||||||
border-radius: 50%;
|
background: #FFFFFF;
|
||||||
// padding: 0 5rpx ;
|
border: 3rpx solid #DC222F;
|
||||||
line-height: 30rpx;
|
|
||||||
width: 30rpx;
|
|
||||||
height: 30rpx;
|
|
||||||
font-size: 18rpx;
|
|
||||||
// display: inline-block;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -20rpx;
|
top: -20rpx;
|
||||||
right: 35rpx;
|
right: 35rpx;
|
||||||
|
font-size: 22rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
line-height: 35rpx;
|
||||||
|
color: #DC222F;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
健康档案
|
健康档案
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item" @tap='gointegral'>
|
||||||
<image src="../../static/jifen.png" mode=""></image>
|
<image src="../../static/jifen.png" mode=""></image>
|
||||||
<view class="text">
|
<view class="text">
|
||||||
积分
|
积分
|
||||||
@ -53,7 +53,8 @@
|
|||||||
<view class="orderCount" v-if="list.waitPayCount>0&&list.waitPayCount<100">
|
<view class="orderCount" v-if="list.waitPayCount>0&&list.waitPayCount<100">
|
||||||
{{list.waitPayCount}}
|
{{list.waitPayCount}}
|
||||||
</view>
|
</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+
|
99+
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -63,7 +64,8 @@
|
|||||||
<view class="orderCount" v-if="list.waitReceivedGoodsCount>0&&list.waitReceivedGoodsCount<100">
|
<view class="orderCount" v-if="list.waitReceivedGoodsCount>0&&list.waitReceivedGoodsCount<100">
|
||||||
{{list.waitReceivedGoodsCount}}
|
{{list.waitReceivedGoodsCount}}
|
||||||
</view>
|
</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+
|
99+
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -73,7 +75,8 @@
|
|||||||
<view class="orderCount" v-if="list.receivedGoodsCount>0&&list.receivedGoodsCount<100">
|
<view class="orderCount" v-if="list.receivedGoodsCount>0&&list.receivedGoodsCount<100">
|
||||||
{{list.receivedGoodsCount}}
|
{{list.receivedGoodsCount}}
|
||||||
</view>
|
</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+
|
99+
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -104,13 +107,11 @@
|
|||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
appPersonal,
|
appPersonal,
|
||||||
} from '@/api/user/user.js';
|
orderCount
|
||||||
|
} from '@/api/Personal/Personal.js';
|
||||||
import {
|
import {
|
||||||
existPatientInfo
|
existPatientInfo
|
||||||
} from '@/api/startup/index.js'
|
} from '@/api/startup/index.js'
|
||||||
import {
|
|
||||||
orderCount
|
|
||||||
} from '@/api/order/index.js'
|
|
||||||
import baseurl from '@/api/baseurl.js'
|
import baseurl from '@/api/baseurl.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@ -235,6 +236,12 @@
|
|||||||
url: '/pages/CommodityOrder/CommodityOrder'
|
url: '/pages/CommodityOrder/CommodityOrder'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
//积分页面
|
||||||
|
gointegral() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/integral/integral'
|
||||||
|
})
|
||||||
|
},
|
||||||
//已完成
|
//已完成
|
||||||
goEVALUATED(item) {
|
goEVALUATED(item) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
61
pages/coupon/coupon.vue
Normal 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
@ -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>
|
||||||
@ -2,10 +2,12 @@
|
|||||||
background-color: #F4F5F7;
|
background-color: #F4F5F7;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
padding-bottom: 50rpx;
|
padding: 15rpx 0 50rpx;
|
||||||
|
|
||||||
/deep/ .u-drawer {
|
/deep/ .u-drawer {
|
||||||
z-index: 0 !important;
|
z-index: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Agreement {
|
.Agreement {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: #F4F5F7;
|
background-color: #F4F5F7;
|
||||||
@ -14,6 +16,7 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 5%;
|
top: 5%;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
line-height: 100rpx;
|
line-height: 100rpx;
|
||||||
@ -23,12 +26,14 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.scroll-Y {
|
.scroll-Y {
|
||||||
height: 830rpx;
|
height: 830rpx;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
text-indent: 2em;
|
text-indent: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cancel {
|
.cancel {
|
||||||
height: 70rpx;
|
height: 70rpx;
|
||||||
line-height: 70rpx;
|
line-height: 70rpx;
|
||||||
@ -41,6 +46,7 @@
|
|||||||
width: 50%;
|
width: 50%;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.determine {
|
.determine {
|
||||||
height: 70rpx;
|
height: 70rpx;
|
||||||
line-height: 70rpx;
|
line-height: 70rpx;
|
||||||
@ -53,12 +59,14 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.radio-content {
|
.radio-content {
|
||||||
margin: 50rpx auto;
|
margin: 30rpx auto 0;
|
||||||
width: 70%;
|
width: 70%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.agreement {
|
.agreement {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
@ -66,6 +74,7 @@
|
|||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
color: #878987;
|
color: #878987;
|
||||||
}
|
}
|
||||||
|
|
||||||
.radio-right {
|
.radio-right {
|
||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
|
|
||||||
@ -79,6 +88,7 @@
|
|||||||
top: 50%;
|
top: 50%;
|
||||||
left: 5%;
|
left: 5%;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
|
|
||||||
.radio-active {
|
.radio-active {
|
||||||
width: 16rpx;
|
width: 16rpx;
|
||||||
height: 16rpx;
|
height: 16rpx;
|
||||||
@ -92,22 +102,25 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.finish {
|
.finish {
|
||||||
width: 25%;
|
width: 70%;
|
||||||
height: 68rpx;
|
height: 71rpx;
|
||||||
background: #4C7BC9;
|
background: #557BC2;
|
||||||
border-radius: 26rpx;
|
border-radius: 36rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 68rpx;
|
line-height: 71rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
margin-top: 50rpx;
|
margin: 30rpx auto 0;
|
||||||
margin-left: 65%;
|
font-size: 32rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.userinfo {
|
.userinfo {
|
||||||
width: 96%;
|
width: 96%;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
|
|
||||||
.disease {
|
.disease {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
@ -115,9 +128,13 @@
|
|||||||
line-height: 80rpx;
|
line-height: 80rpx;
|
||||||
border-bottom: 1rpx solid #D8D4D4;
|
border-bottom: 1rpx solid #D8D4D4;
|
||||||
position: relative;
|
position: relative;
|
||||||
view{
|
|
||||||
display: inline-block;
|
.title {
|
||||||
|
font-size: 30rpx;
|
||||||
|
display: block;
|
||||||
|
line-height: 120rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pictureA {
|
.pictureA {
|
||||||
width: 18rpx;
|
width: 18rpx;
|
||||||
height: 27rpx;
|
height: 27rpx;
|
||||||
@ -127,6 +144,23 @@
|
|||||||
transform: translateY(-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 {
|
.item {
|
||||||
width: 94%;
|
width: 94%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
@ -135,24 +169,7 @@
|
|||||||
border-bottom: 1rpx solid #D8D4D4;
|
border-bottom: 1rpx solid #D8D4D4;
|
||||||
position: relative;
|
position: relative;
|
||||||
font-size: 30rpx;
|
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 {
|
.address {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 25%;
|
left: 25%;
|
||||||
@ -167,12 +184,7 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
|
||||||
display: inline-block;
|
|
||||||
line-height: 120rpx;
|
|
||||||
height: 120rpx;
|
|
||||||
width: 25%;
|
|
||||||
}
|
|
||||||
|
|
||||||
::v-deep .u-input__input {
|
::v-deep .u-input__input {
|
||||||
height: 120rpx;
|
height: 120rpx;
|
||||||
|
|||||||
@ -1,10 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="app">
|
<view class="app">
|
||||||
<view class="userinfo">
|
<view class="userinfo">
|
||||||
<view class="item" style="height: 200rpx; " @tap='uploadImag'>
|
<view class="itemimgs">
|
||||||
<span style='height:200rpx;line-height: 200rpx;'>头像:</span>
|
<image class="picture" :src="img" mode="" v-if="img" @tap='uploadImag'></image>
|
||||||
<image class="picture" :src="img" mode=""></image>
|
<image class="picture" src="../../static/userl.png" mode="" v-else @tap='uploadImag'></image>
|
||||||
<image class="pictureA" src="../../static/jiantou.png" mode=""></image>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<span>姓名:</span>
|
<span>姓名:</span>
|
||||||
@ -40,24 +39,25 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="disease" style="border: none;" @tap="godisease">
|
<view class="disease" style="border: none;" @tap="godisease">
|
||||||
<view style="display: block;line-height: 120rpx;">疾病类型:</view>
|
<view class="title" style="">疾病类型:</view>
|
||||||
<image class="pictureA" src="../../static/jiantou.png" mode=""></image>
|
<image class="pictureA" src="../../static/huijiantou.png" mode=""></image>
|
||||||
<view class="" style="padding-right: 10rpx" v-for="(item,index) in patientDiseaseInfoList">
|
<view style="padding-right: 10rpx;display: inline-block;"
|
||||||
|
v-for="(item,index) in patientDiseaseInfoList">
|
||||||
{{item.diseaseName}}
|
{{item.diseaseName}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="radio-content">
|
<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" :class="radio == 2 ? 'radio-default':''">
|
||||||
<view :class="radio == 2 ? 'radio-active':''"></view>
|
<view :class="radio == 2 ? 'radio-active':''"></view>
|
||||||
</view>
|
</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>
|
style="color: #000000;border-bottom: 1rpx solid #000000;">《用户协议》</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="finish" @tap="informationinfo()">完成
|
<view class="finish" @tap="informationinfo()">确认修改
|
||||||
</view>
|
</view>
|
||||||
<u-toast ref="uToast" />
|
<u-toast ref="uToast" />
|
||||||
<!-- //用户协议 -->
|
<!-- //用户协议 -->
|
||||||
@ -96,7 +96,7 @@
|
|||||||
import baseurl from '@/api/baseurl.js'
|
import baseurl from '@/api/baseurl.js'
|
||||||
import {
|
import {
|
||||||
appPersonal,
|
appPersonal,
|
||||||
} from '@/api/user/user.js';
|
} from '@/api/Personal/Personal.js';
|
||||||
import {
|
import {
|
||||||
getSubordinateRegions,
|
getSubordinateRegions,
|
||||||
} from '@/api/modifyAddress/modifyAddress.js';
|
} from '@/api/modifyAddress/modifyAddress.js';
|
||||||
@ -148,7 +148,9 @@
|
|||||||
that.appPersonallist = Response.data
|
that.appPersonallist = Response.data
|
||||||
that.appPersonallist.homeLatitude = Number(that.appPersonallist.homeLatitude)
|
that.appPersonallist.homeLatitude = Number(that.appPersonallist.homeLatitude)
|
||||||
that.appPersonallist.homeLongitude = Number(that.appPersonallist.homeLongitude)
|
that.appPersonallist.homeLongitude = Number(that.appPersonallist.homeLongitude)
|
||||||
|
if (that.appPersonallist.headPictureUrl) {
|
||||||
that.img = baseurl + that.appPersonallist.headPictureUrl
|
that.img = baseurl + that.appPersonallist.headPictureUrl
|
||||||
|
}
|
||||||
if (that.appPersonallist.areaName) {
|
if (that.appPersonallist.areaName) {
|
||||||
that.address = that.appPersonallist.areaName
|
that.address = that.appPersonallist.areaName
|
||||||
}
|
}
|
||||||
|
|||||||
@ -53,7 +53,7 @@
|
|||||||
<!-- <view class="area" @tap='areashow=true'> -->
|
<!-- <view class="area" @tap='areashow=true'> -->
|
||||||
<u-field v-model="infolist.address" label="区域" placeholder="请选择" class="items" disabled>
|
<u-field v-model="infolist.address" label="区域" placeholder="请选择" class="items" disabled>
|
||||||
</u-field>
|
</u-field>
|
||||||
<image src="../../static/jiantou.png" mode=""></image>
|
<image src="../../static/huijiantou.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<u-field v-model="infolist.receiveAddress" label-width="170" label="详细地址" placeholder="如街道、门牌号、小区等"
|
<u-field v-model="infolist.receiveAddress" label-width="170" label="详细地址" placeholder="如街道、门牌号、小区等"
|
||||||
class="items" maxlength='50'>
|
class="items" maxlength='50'>
|
||||||
|
|||||||
@ -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>
|
|
||||||
@ -12,7 +12,7 @@
|
|||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="name">
|
<view class="name">
|
||||||
店铺名称
|
店铺名称
|
||||||
<image src="../../static/rowsright.png" mode=""></image>
|
<image src="../../static/huijiantou.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="details">
|
<view class="details">
|
||||||
<view class="detailslist">
|
<view class="detailslist">
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="name">
|
<view class="name">
|
||||||
店铺名称
|
店铺名称
|
||||||
<image src="../../static/rowsright.png" mode=""></image>
|
<image src="../../static/huijiantou.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="details">
|
<view class="details">
|
||||||
<view class="detailslist">
|
<view class="detailslist">
|
||||||
|
|||||||
@ -31,7 +31,7 @@
|
|||||||
<view>我要退款(无需退货)</view>
|
<view>我要退款(无需退货)</view>
|
||||||
<view class="text">没收到货</view>
|
<view class="text">没收到货</view>
|
||||||
</view>
|
</view>
|
||||||
<image class="picture pictures" src="../../static/rowsright.png" mode=""></image>
|
<image class="picture pictures" src="../../static/huijiantou.png" mode=""></image>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="myrefund" @tap='goApplforrefund(2)'>
|
<view class="myrefund" @tap='goApplforrefund(2)'>
|
||||||
@ -40,7 +40,7 @@
|
|||||||
<view>我要退货退款</view>
|
<view>我要退货退款</view>
|
||||||
<view class="text">已收到货,需要退还收到的货物</view>
|
<view class="text">已收到货,需要退还收到的货物</view>
|
||||||
</view>
|
</view>
|
||||||
<image class="picture" src="../../static/rowsright.png" mode=""></image>
|
<image class="picture" src="../../static/huijiantou.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -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
|
After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
BIN
static/jifenbeij.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
static/pic.png
|
Before Width: | Height: | Size: 729 B |
BIN
static/qiandao.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 638 B |
BIN
static/userl.png
Normal file
|
After Width: | Height: | Size: 6.0 KiB |
BIN
static/yaoqing.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |