This commit is contained in:
曹辉 2022-12-27 09:21:01 +08:00
parent 4da287b2bd
commit 9b14a11158
37 changed files with 970 additions and 320 deletions

View File

@ -1,8 +1,8 @@
import request from "../request.js"
export function goodsList(pageSize,pageNum,goodsCategoryId) {
export function goodsList(pageSize,pageNum,goodsCategoryId,goodsName) {
return request({
url: `/nurseApplet/nursingStationGoods/goodsList?pageSize=${pageSize}&pageNum=${pageNum}&goodsCategoryId=${goodsCategoryId}`,
url: `/nurseApplet/nursingStationGoods/goodsList?pageSize=${pageSize}&pageNum=${pageNum}&goodsCategoryId=${goodsCategoryId}&goodsName=${goodsName}`,
method: 'GET'
})
}

View File

@ -7,3 +7,13 @@ export function getAppointmentDetailsInfo(orderNo) {
method: 'GET'
})
}
//评价
export function addAppointmentEvaluate(data) {
return request({
url: `/nurseApp/orderEvaluate/addAppointmentEvaluate`,
method: 'POST',
data
})
}

View File

@ -6,4 +6,11 @@ export function appLoginpwd(phone, password) {
url: `/nurseApp/login/appLogin?phone=${phone}&password=${password}`,
method: 'POST'
})
}
}
export function createMobileToken() {
return request({
url: `/nurseApplet/authorization/createMobileToken`,
method: 'GET'
})
}

9
api/lookrate/index.js Normal file
View File

@ -0,0 +1,9 @@
import request from "../request.js"
// 修改信息
export function lookrate(orderNo) {
return request({
url: `/nurseApp/orderEvaluate/selectOrderEvaluate?orderNo=${orderNo}`,
method: 'GET'
})
}

View File

@ -10,33 +10,18 @@ var request = function(config) {
data: config.data,
method: config.method,
timeout: 10000,
// header: {
// token: uni.getStorageSync('token')
// },
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
success(res) {
// if (res.data.code == 20002) {
// uni.showModal({
// title: "登录提示",
// content: res.data.message,
// success(res1) {
// if (res1.confirm) {
// uni.navigateTo({
// url: '/pages/user/login/login'
// })
// }
// }
// })
// } else {
// if (res.data.success) {
if (res.data.code == 9999) {
uni.removeStorageSync('token');
uni.reLaunch({
url: '/pages/login/login'
})
}
uni.hideLoading();
resolve(res.data)
// } else {
// uni.showToast({
// title: res.data.message,
// icon: "none"
// })
// }
// }
},
fail(err) {
uni.hideLoading();

View File

@ -1,5 +1,5 @@
{
"name" : "NurseStationApp",
"name" : "泉医到家APP",
"appid" : "__UNI__D6F049F",
"description" : "",
"versionName" : "1.0.0",

View File

@ -9,58 +9,6 @@
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
}, {
"path": "pages/ProjectDetails/ProjectDetails",
"style": {
"navigationBarTitleText": "护理项目详情",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff" //
}
},
{
"path": "pages/Bodysatelliteintegration/Bodysatelliteintegration",
"style": {
"navigationBarTitleText": "体卫融合",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff" //
}
}, {
"path": "pages/Geriatricdisease/Geriatricdisease",
"style": {
"navigationBarTitleText": "老年病中心",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/diseasemanagement/diseasemanagement",
"style": {
"navigationBarTitleText": "专病管理",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/goodsorderRate/goodsorderRate",
"style": {
"navigationBarTitleText": "发表评价",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff" //
}
}, {
"path": "pages/appointmenttime/appointmenttime",
"style": {
"navigationBarTitleText": "预约时间",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff" //
}
}, {
"path": "pages/information/information",
"style": {
"navigationBarTitleText": "完善个人信息",
"navigationBarBackgroundColor": "#ffffff", //
"enablePullDownRefresh": false
}
},
{
"path": "pages/forgotPassword/forgotPassword",
@ -75,19 +23,139 @@
"navigationBarTitleText": "注册账号",
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/homepage/homepage",
},
{
"path": "pages/lookrate/lookrate",
"style": {
"navigationBarTitleText": "泉医到家",
"navigationBarTitleText": "查看评价",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/login/login",
"path": "pages/ServiceDetails/ServiceDetails",
"style": {
"navigationBarTitleText": "服务详情",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff" //
}
}, {
"path": "pages/ProjectDetails/ProjectDetails",
"style": {
"navigationBarTitleText": "护理项目详情",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff" //
}
}, {
"path": "pages/goodsorderRate/goodsorderRate",
"style": {
"navigationBarTitleText": "发表评价",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff" //
}
}, {
"path": "pages/Bodysatelliteintegration/Bodysatelliteintegration",
"style": {
"navigationBarTitleText": "体卫融合",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff" //
}
},
{
"path": "pages/modify/modify",
"style": {
"navigationBarTitleText": "修改信息",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff" //
}
}, {
"path": "pages/information/information",
"style": {
"navigationBarTitleText": "完善个人信息",
"navigationBarBackgroundColor": "#ffffff", //
"enablePullDownRefresh": false
}
}, {
"path": "pages/appointmenttime/appointmenttime",
"style": {
"navigationBarTitleText": "预约时间",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff" //
}
}, {
"path": "pages/paysuccess/paysuccess",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
// "enablePullDownRefresh": false
}
},
{
"path": "pages/ratesuccess/ratesuccess",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
}, {
"path": "pages/shopping/shopping", //
"style": {
"navigationBarTitleText": "医路优品",
"navigationBarBackgroundColor": "#ffffff",
"onReachBottomDistance": 40, // px
"enablePullDownRefresh": true //true
}
}, {
"path": "pages/CommodityOrder/CommodityOrder",
"style": {
"navigationBarTitleText": "商品订单",
"navigationBarBackgroundColor": "#ffffff",
"onReachBottomDistance": 40, // px
"enablePullDownRefresh": true //true
}
},
{
"path": "pages/user/user",
"style": {
"navigationBarTitleText": "个人信息",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#4C7BC9", //
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/orderDetails/orderDetails",
"style": {
"navigationBarTitleText": "订单详情",
"navigationBarBackgroundColor": "#ffffff",
"enablePullDownRefresh": false
}
},
{
"path": "pages/payorderDetails/payorderDetails",
"style": {
"navigationBarTitleText": "订单详情",
"navigationBarBackgroundColor": "#ffffff",
"enablePullDownRefresh": false
}
}, {
"path": "pages/Personal/Personal",
"style": {
"navigationBarTitleText": "个人中心",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
},
{
"path": "pages/login/login",
"style": {
"navigationBarTitleText": "登录",
// "navigationStyle": "custom"
"enablePullDownRefresh": false
}
},
{
@ -98,65 +166,25 @@
"navigationBarBackgroundColor": "#ffffff" //
}
},
{
"path": "pages/ServiceDetails/ServiceDetails",
"style": {
"navigationBarTitleText": "服务详情",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff" //
}
},
{
"path": "pages/Nursingstationserviceorder/Nursingstationserviceorder",
"style": {
"navigationBarTitleText": "护理站服务订单",
"navigationBarBackgroundColor": "#ffffff", //
"onReachBottomDistance": 20, // px
"onReachBottomDistance": 40, // px
"enablePullDownRefresh": true //true
}
},
{
"path": "pages/modify/modify",
"style": {
"navigationBarTitleText": "修改信息",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff" //
}
}, {
"path": "pages/Personal/Personal",
"style": {
"navigationBarTitleText": "个人中心",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/CommodityOrder/CommodityOrder",
"style": {
"navigationBarTitleText": "商品订单",
"navigationBarBackgroundColor": "#ffffff",
"onReachBottomDistance": 20, // px
"enablePullDownRefresh": true //true
}
}, {
"path": "pages/logistics/logistics",
"style": {
"navigationBarTitleText": "查看物流",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/user/user",
"style": {
"navigationBarTitleText": "个人信息",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#4C7BC9", //
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/Aftersalesdetails/Aftersalesdetails",
"style": {
@ -181,14 +209,8 @@
"enablePullDownRefresh": false
}
},
{
"path": "pages/orderDetails/orderDetails",
"style": {
"navigationBarTitleText": "订单详情",
"navigationBarBackgroundColor": "#ffffff",
"enablePullDownRefresh": false
}
}, {
"path": "pages/order/order",
"style": {
"navigationBarTitleText": "我的订单",
@ -197,14 +219,23 @@
}
},
{
"path": "pages/shopping/shopping", //
"path": "pages/menttimeorder/menttimeorder",
"style": {
"navigationBarTitleText": "医路优品",
"navigationBarBackgroundColor": "#ffffff",
"onReachBottomDistance": 20, // px
"enablePullDownRefresh": true //true
"navigationBarTitleText": "预约详情",
"enablePullDownRefresh": false
}
}, {
},
{
"path": "pages/homepage/homepage",
"style": {
"navigationBarTitleText": "泉医到家",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
},
{
"path": "pages/confirmOrder/confirmOrder",
"style": {
"navigationBarTitleText": "确认订单",
@ -229,13 +260,6 @@
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/InformationFilling/InformationFilling",
"style": {
"navigationBarTitleText": "信息确认与填写",
"navigationBarBackgroundColor": "#ffffff", //
"enablePullDownRefresh": false
}
},
{
"path": "pages/ProductList/ProductList", //
@ -243,17 +267,19 @@
"navigationBarTitleText": "医路优品",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff",
"onReachBottomDistance": 20, // px
"onReachBottomDistance": 40, // px
"enablePullDownRefresh": true //true
}
}, {
},
{
"path": "pages/CommodityDetails/CommodityDetails",
"style": {
"navigationBarTitleText": "商品详情",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
},
{
"path": "pages/nursestation/nursestation",
"style": {
"navigationBarTitleText": "护理站详情",
@ -262,30 +288,34 @@
"enablePullDownRefresh": true //true
}
}, {
},
{
"path": "pages/site/site",
"style": {
"navigationBarTitleText": "附近护理站",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff", //
"onReachBottomDistance": 20, // px
"onReachBottomDistance": 40, // px
"enablePullDownRefresh": true //true
}
}, {
},
{
"path": "pages/detail/detail",
"style": {
"navigationBarTitleText": "护理站简介",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff" //
}
}, {
},
{
"path": "pages/medicine/medicine",
"style": {
"navigationBarTitleText": "就医",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
},
{
"path": "pages/modifyAddress/modifyAddress",
"style": {
"navigationBarTitleText": "修改地址",
@ -302,13 +332,20 @@
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/paysuccess/paysuccess",
"path": "pages/Geriatricdisease/Geriatricdisease",
"style": {
"navigationBarTitleText": "",
"navigationBarTitleText": "老年病中心",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/diseasemanagement/diseasemanagement",
"style": {
"navigationBarTitleText": "专病管理",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}
],
"globalStyle": {

View File

@ -63,13 +63,13 @@
this.order.updateTime = null
refund(this.order).then(
res => {
console.log(res)
if (res.code == 500) {
this.$refs.uToast.show({
title: res.msg,
type: 'error'
})
} else {
uni.setStorageSync("Refresh", 'Refresh')
this.$refs.uToast.show({
title: '退款申请提交成功',
type: 'success',
@ -80,7 +80,7 @@
}
this.timer = setTimeout(e => {
uni.navigateBack({
delta: 3
delta: 4
});
}, 1500)
}
@ -94,7 +94,6 @@
},
//退
tapreason(item) {
console.log(item)
this.order.refundReasonDictId = item.dictCode
this.dictname = item.dictLabel
this.show = false;

View File

@ -296,8 +296,10 @@
//
goodsDetailsinfo(goodsInfoId) {
goodsDetails(goodsInfoId).then(res => {
res.data[0].goodsRemark = res.data[0].goodsRemark.replace(/\<img/gi,
"<br/> <img class='richPic'")
if (res.data[0].goodsRemark) {
res.data[0].goodsRemark = res.data[0].goodsRemark.replace(/\<img/gi,
"<br/> <img class='richPic'")
}
res.data[0].goodsPictureUrl = this.baseurl + res.data[0].goodsPictureUrl
this.image = res.data[0].goodsPictureUrl
var obj = {
@ -319,7 +321,6 @@
})
this.goodDetailsLists = res.data[0].goodDetailsLists
this.goodshow = true
console.log(this.goodDetailsLists)
}
this.goodsDetailslist = res.data[0]
this.updata.goodsName = this.goodsDetailslist.goodsName
@ -370,7 +371,6 @@
const value = uni.getStorageSync('patientId');
if (value) {
that.updata.patientId = value
console.log(that.updata.patientId)
that.goodsList()
} else {}
} catch (e) {

View File

@ -8,7 +8,7 @@
<view class="Apayment" v-for='(item,index) in orderlist' :key="index">
<view class="names">店铺名称
<image class="picture" src="/static/pic.png" mode=""></image>
<span v-if="item.orderStatus=='WAIT_PAY'">待付款</span>
<span v-if="item.orderStatus=='WAIT_PAY'&&item.timestamp>0">待付款</span>
<span v-if="item.orderStatus=='WAIT_PAY'&&item.timestamp<=0">订单已关闭</span>
<span v-if="item.orderStatus=='WAIT_REFUND'">退款中</span>
<span v-if="item.orderStatus=='CANCEL'">已取消</span>
@ -40,6 +40,8 @@
</view>
</view>
<view class="anniu">
<view class="logistics" v-if="item.orderStatus=='WAIT_REFUND'" style="background-color: coral;">退款中
</view>
<view class="logistics" v-if="item.orderStatus=='WAIT_RECEIVED_GOODS'" @tap='gologistics(item)'>查看物流
</view>
<view class="logistics harvest" v-if="item.orderStatus=='WAIT_PAY'&&item.timestamp>0"
@ -49,6 +51,8 @@
确认收货</view>
<view class="logistics harvest" @tap='rate(item)' v-if="item.orderStatus=='RECEIVED_GOODS'">
立即评价</view>
<view class="logistics harvest" v-if="item.orderStatus=='EVALUATED'" @tap='golookrate(item)'>
查看评价</view>
</view>
</view>
</view>
@ -104,10 +108,16 @@
}
},
methods: {
//
golookrate(item) {
uni.navigateTo({
url: `/pages/lookrate/lookrate?item=${JSON.stringify(item)}`
})
},
//
rate(item) {
uni.navigateTo({
url: `/pages/goodsorderRate/goodsorderRate?item=${JSON.stringify(item)}`
url: `/pages/goodsorderRate/goodsorderRate?item=${JSON.stringify(item)}&delta=${3}`
})
},
//
@ -122,11 +132,8 @@
this.show = false
setTimeout(e => {
uni.navigateTo({
url: `/pages/goodsorderRate/goodsorderRate?item=${JSON.stringify(this.orderNoitem)}`
url: `/pages/goodsorderRate/goodsorderRate?item=${JSON.stringify(this.orderNoitem)}&delta=${3}`
})
// uni.navigateTo({
// url: `/pages/orderDetails/orderDetails?goodsOrderId=${this.orderNoitem.goodsOrderId}`
// })
}, 1000)
} else {}
})
@ -141,7 +148,6 @@
payType: "WECHAT_PAY",
buySource: item.buySource,
}
console.log(obj)
},
//
gologistics(item) {
@ -188,25 +194,32 @@
});
},
onLoad(options) { //
this.baseurl = baseurl;
let that = this
try {
const value = uni.getStorageSync('patientId');
if (value) {
that.patientId = value
that.goodsOrderinfo();
if (options.orderStatus) {
that.orderStatus = options.orderStatus
if (options.orderStatus == 'WAIT_PAY') {
that.title = '待付款'
that.goodsOrderinfo();
} else if (options.orderStatus == 'WAIT_RECEIVED_GOODS') {
that.title = '待收货'
that.goodsOrderinfo();
} else if (options.orderStatus == 'RECEIVED_GOODS') {
that.title = '待评价'
that.goodsOrderinfo();
} else if (options.orderStatus == 'EVALUATED') {
that.title = '已完成'
that.goodsOrderinfo();
}
} else {
that.goodsOrderinfo();
}
}
} catch (e) {}
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

@ -1,6 +1,60 @@
.app {
padding: 2%;
.noorder{
.masks{
image{
position: absolute;
bottom:380rpx;
left:50%;
transform: translateX(-50%);
z-index: 999;
width: 250rpx;
border-radius: 25rpx;
height: 250rpx;
}
.ratetitle{
font-size: 34rpx;
position: absolute;
bottom:320rpx;
left:50%;
transform: translateX(-50%);
z-index: 999;
}
.mask{
position: absolute;
bottom:0;
width: 750rpx;
height: 703rpx;
background: #FFFFFF;
border-radius: 30rpx 30rpx 0px 0px;
display: flex;
justify-content: space-around;
.rateitem{
margin-top:200rpx;
width: 217rpx;
height: 222rpx;
line-height: 222rpx;
text-align: center;
color: #ffffff;
background: #BFBFBF;
font-size: 40rpx;
border-radius: 25rpx;
}
.lookrateitem{
font-size: 32rpx;
margin-top:440rpx;
width: 200rpx;
height: 200rpx;
line-height: 200rpx;
text-align: center;
color: #ffffff;
background: #BFBFBF;
border-radius: 25rpx;
}
}
}
.noorder{
margin-top: 20%;
image{
display: block;

View File

@ -32,11 +32,10 @@
v-if="item.orderStatus=='WAIT_PAY'&&item.timestamp>0">
去支付
</view>
<!-- <view class="submit" style="background-color: crimson;" v-if="item.orderStatus=='WAIT_REFUND'">退款进度</view> -->
<!-- <view class="submit"
v-if="item.orderStatus=='PAY'||item.orderStatus=='WAIT_DISPATCH'||item.orderStatus=='NOT_FINISH'">
确认完成
</view> -->
<view class="submit" v-if="item.orderStatus=='WAIT_REFUND'" style="background-color: coral;">退款中</view>
<view class="submit" v-if="item.orderStatus=='COMPLETE'" @tap='gorate(item)'
style="background-color: #60c5f1;">立即评价</view>
<view class="submit" v-if="item.orderStatus=='EVALUATED'" @tap='lookrate(item)'>查看评价</view>
</view>
</view>
<view class="noorder" v-else>
@ -45,26 +44,77 @@
暂无服务订单
</view>
</view>
<u-toast ref="uToast" />
<u-mask :show="rateshow" @tap="rateshow = false" class='masks'>
<view class="mask">
<view class="rateitem" @tap="taprate('SATISFIED')">
满意
</view>
<view class="rateitem" @tap="taprate('COMMONLY')">
一般
</view>
<view class="rateitem" @tap="taprate('DISSATISFIED')">
不满意
</view>
</view>
</u-mask>
<u-mask :show="lookrateshow" @tap="lookrateshow = false" class='masks'>
<image :src="baseurl+rateimgtitle.img" mode=""></image>
<view class="ratetitle">
{{rateimgtitle.title}}
</view>
<view class="mask">
<view class="lookrateitem" :style="ratelist.evaluateSatisfaction=='SATISFIED'?'background: #4C7BC9':''">
满意
</view>
<view class="lookrateitem" :style="ratelist.evaluateSatisfaction=='COMMONLY'?'background: #4C7BC9':''">
一般
</view>
<view class="lookrateitem"
:style="ratelist.evaluateSatisfaction=='DISSATISFIED'?'background: #4C7BC9':''">
不满意
</view>
</view>
</u-mask>
</view>
</template>
<script>
import baseurl from '@/api/baseurl.js'
import {
lookrate
} from '@/api/lookrate/index.js'
import {
appServiceOrder
} from '@/api/Nursingstationserviceorder/Nursingstationserviceorder.js'
import {
addAppointmentEvaluate
} from '@/api/ServiceDetails/ServiceDetails.js'
export default {
data() {
return {
rateimgtitle: {
img: null,
title: null,
},
ratelist: {
evaluateSatisfaction: '',
}, //list
rateshow: false, //
lookrateshow: false, //
baseurl: '',
patientId: null,
total: 0,
pageNum: 1,
total: 0,
pageSize: 10,
list: [],
orderNo: null,
timer: null,
}
},
onLoad() {
this.lookrateshow = false
this.rateshow = false
this.baseurl = baseurl
let that = this
try {
@ -79,8 +129,51 @@
//
buy(item) {
},
//
gorate(item) {
this.orderNo = item.orderNo
this.rateshow = true
},
//
lookrate(item) {
this.rateimgtitle.img = item.itemPictureUrl
this.rateimgtitle.title = item.nurseItemName
this.lookrateshow = true
lookrate(item.orderNo).then(res => {
this.ratelist = res.data
})
},
//
taprate(item) {
var obj = {
"patientId": this.patientId,
"openid": this.openid,
"orderNo": this.orderNo,
"evaluateChannel": "PHONE_APP",
"evaluateSatisfaction": item,
}
addAppointmentEvaluate(obj).then(res => {
if (res.code == 200) {
this.orderNo = null
this.$refs.uToast.show({
title: '评价成功',
type: 'success',
duration: '1500'
})
if (this.timer) {
clearTimeout(this.timer)
}
this.timer = setTimeout(e => {
uni.navigateTo({
url: `/pages/ratesuccess/ratesuccess`
})
}, 1500)
}
})
},
getinfo() {
this.pageNum = 1
appServiceOrder(this.patientId, this.pageSize, this.pageNum).then(res => {
this.list = res.rows;
this.total = res.total

View File

@ -1,5 +1,9 @@
<template>
<view class="app">
<view class="inputs">
<i class="icon"></i>
<input v-model="goodsName" type="text" name="" id="" class="input" placeholder="请输入商品名称">
</view>
<view class="productlist">
<view class="item" @tap='goCommodityDetails(item)' v-for="(item,index) in goodsList" :key="index">
<image :src="baseurl+item.goodsPictureUrl" mode=""></image>
@ -31,18 +35,28 @@
goodsCategoryId: '', //
goodsList: [], //list
total: 0, //list
goodsName: '',
};
},
watch: { //
goodsName() {
this.pageNum = 1;
goodsList(this.pageSize, this.pageNum, this.goodsCategoryId, this.goodsName).then(res => {
this.goodsList = res.rows
this.total = res.total
})
},
},
onLoad(options) { //
this.title = options.title //
this.goodsCategoryId = options.goodsCategoryId //id
this.baseurl = baseurl;
this.goodsListinfo(this.pageSize, this.pageNum, options.goodsCategoryId)
this.goodsListinfo()
},
methods: {
//
goodsListinfo(pageSize, pageNum, goodsCategoryId) {
goodsList(pageSize, pageNum, goodsCategoryId).then(res => {
goodsListinfo() {
goodsList(this.pageSize, this.pageNum, this.goodsCategoryId, this.goodsName).then(res => {
res.rows.forEach(e => {
this.goodsList.push(e)
})
@ -64,12 +78,12 @@
onReachBottom() { //
if (this.goodsList.length >= this.total) {} else {
this.pageNum++;
this.goodsListinfo(this.pageSize, this.pageNum, this.goodsCategoryId)
this.goodsListinfo()
}
},
onPullDownRefresh() { //
this.pageNum = 1;
goodsList(this.pageSize, this.pageNum, this.goodsCategoryId).then(res => {
goodsList(this.pageSize, this.pageNum, this.goodsCategoryId, this.goodsName).then(res => {
this.goodsList = res.rows
this.total = res.total
})
@ -83,6 +97,40 @@
<style lang="scss">
.app {
padding: 0;
.inputs {
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
border: 1px solid #f0f0f0;
width: 90%;
height: 65rpx;
margin: 10rpx 0 10rpx 50%;
transform: translateX(-50%);
border-radius: 20rpx;
background-color: #Ffffff;
z-index: 999;
.input {
margin: 0 auto;
position: absolute;
height: 65rpx;
// top: 8%;
left: 10%;
width: 90%;
font-size: 26rpx;
color: #000000;
}
.icon {
background: url(@/static/sousuo.png) no-repeat;
width: 30rpx;
height: 28rpx;
background-size: cover;
position: absolute;
top: 30%;
left: 3%;
}
}
.productlist {
width: 100%;
margin: 0 auto;

View File

@ -3,6 +3,7 @@
padding: 2% 2% 150rpx 2%;
padding-top: 10rpx;
font-size: 34rpx;
position: relative;
.mask {
.information {
width: 70%;

View File

@ -144,8 +144,10 @@
//
getlist(stationId, stationItemId, stationItemPriceId) {
getAppStationItemInfo(stationId, stationItemId, stationItemPriceId).then(res => {
res.data.nurseItemContent = res.data.nurseItemContent.replace(/\<img/gi,
"<br/> <img class='richPic'")
if (res.data.nurseItemContent) {
res.data.nurseItemContent = res.data.nurseItemContent.replace(/\<img/gi,
"<br/> <img class='richPic'")
}
res.data.itemPictureUrl = baseurl + res.data.itemPictureUrl
this.list = res.data
})

View File

@ -13,6 +13,25 @@
margin: 0 auto 10rpx;
border-radius: 20rpx;
}
.masks{
image{
position: absolute;
bottom:380rpx;
left:50%;
transform: translateX(-50%);
z-index: 999;
width: 250rpx;
border-radius: 25rpx;
height: 250rpx;
}
.ratetitle{
font-size: 34rpx;
position: absolute;
bottom:320rpx;
left:50%;
transform: translateX(-50%);
z-index: 999;
}
.mask{
position: absolute;
bottom:0;
@ -30,9 +49,23 @@
text-align: center;
color: #ffffff;
background: #BFBFBF;
font-size: 40rpx;
border-radius: 25rpx;
}
.lookrateitem{
font-size: 32rpx;
margin-top:440rpx;
width: 200rpx;
height: 200rpx;
line-height: 200rpx;
text-align: center;
color: #ffffff;
background: #BFBFBF;
border-radius: 25rpx;
}
}
}
.OrderStatus{
text-align: center;
width: 300rpx;

View File

@ -41,7 +41,7 @@
</view>
<view class="content">服务信息
<view class="contacts">·联系人{{list.patientName}}</view>
<view class="contacts">·电话:{{list.patientPhone}}</view>
<view class="contacts">·电话{{list.patientPhone}}</view>
<view class="contacts">·地址{{list.serviceAddress}}</view>
<view class="contacts">·时间{{list.serviceDate}} {{list.serviceStartTime}}-{{list.serviceEndTime}}</view>
</view>
@ -62,7 +62,7 @@
</view>
<view class="remarks">
<view>备注</view>
<input v-model='list.remark' :disabled="list.orderStatus=='PAY'?true :false">
<input v-model='list.remark' :disabled="list.orderStatus=='WAIT_PAY'?false :true">
</view>
<view class="evaluate">
<view class="price">
@ -71,16 +71,17 @@
<view class="cancelorder" @tap="cancelorderment()"
v-if="list.orderStatus=='PAY'||list.orderStatus=='WAIT_DISPATCH'||list.orderStatus=='NOT_FINISH'">取消订单
</view>
<!-- <view class="cancelorder " style="background: #4C7BC9;">评价</view> -->
<view class="cancelorder" @tap='buy' style="background-color: darkorange;"
v-if="list.orderStatus=='WAIT_PAY'&&timestamp>0">
去支付
</view>
<view class="cancelorder" style="background: #4C7BC9;" @tap='rateshow= true'
<view class="cancelorder" style="background: #4C7BC9;" v-if="list.orderStatus=='EVALUATED'" @tap='lookrate'>
查看评价</view>
<view class="cancelorder" style="background: #60c5f1;" @tap='rateshow= true'
v-if="list.orderStatus=='COMPLETE'">评价
</view>
</view>
<u-mask :show="rateshow" @tap="rateshow = false">
<u-mask :show="rateshow" @tap="rateshow = false" class='masks'>
<view class="mask">
<view class="rateitem" @tap="taprate('SATISFIED')">
满意
@ -93,6 +94,24 @@
</view>
</view>
</u-mask>
<u-mask :show="lookrateshow" @tap="lookrateshow = false" class='masks'>
<image :src="baseurl+list.itemPictureUrl" mode=""></image>
<view class="ratetitle">
{{list.nurseItemName}}
</view>
<view class="mask">
<view class="lookrateitem" :style="ratelist.evaluateSatisfaction=='SATISFIED'?'background: #4C7BC9':''">
满意
</view>
<view class="lookrateitem" :style="ratelist.evaluateSatisfaction=='COMMONLY'?'background: #4C7BC9':''">
一般
</view>
<view class="lookrateitem"
:style="ratelist.evaluateSatisfaction=='DISSATISFIED'?'background: #4C7BC9':''">
不满意
</view>
</view>
</u-mask>
<u-toast ref="uToast" />
</view>
</template>
@ -102,9 +121,20 @@
import {
getAppointmentDetailsInfo
} from '@/api/ServiceDetails/ServiceDetails.js'
import {
lookrate
} from '@/api/lookrate/index.js'
export default {
data() {
return {
rateimgtitle: {
img: null,
title: null,
},
ratelist: {
evaluateSatisfaction: '',
}, //list
lookrateshow: false, //
rateshow: false, //
baseurl: '',
list: {},
@ -115,14 +145,25 @@
}
},
onLoad(options) {
var that = this
try {
const value = uni.getStorageSync('patientId');
if (value) {
that.patientId = value
}
} catch (e) {}
this.orderNo = options.orderNo
this.baseurl = baseurl
this.getlist()
},
onShow() {
},
methods: {
//
lookrate() {
this.lookrateshow = true
lookrate(this.list.orderNo).then(res => {
this.ratelist = res.data
})
},
//
taprate(item) {
var obj = {
@ -143,7 +184,16 @@
}
this.timer = setTimeout(e => {
this.getlist();
uni.navigateTo({
url: `/pages/ratesuccess/ratesuccess?delta=${3}`
})
}, 1500)
} else {
this.$refs.uToast.show({
title: '评价失败',
type: 'error',
duration: '1500'
})
}
})
},
@ -170,7 +220,6 @@
var that = this
uni.getSystemInfo({
success: function(res) {
console.log(res)
if (res.platform == 'ios') {
uni.makePhoneCall({
phoneNumber: that.nursestationlist.phone //

View File

@ -274,17 +274,18 @@
margin: 40rpx 0 0;
position: relative;
}
span {
/deep/ .u-checkbox-group{
width: 100%;
}
/deep/ .u-checkbox__label{
width: 100%;
}
span {
display: inline-block;
font-size: 30rpx;
color: #D43953;
text-align: right;
position: absolute;
right: 5%;
top: 50%;
transform: translateY(-50%);
float: right;
}
}
}

View File

@ -57,7 +57,7 @@
</view>
<view class="remarks">
<span>备注</span>
<input placeholder="">
<input placeholder="请输入" v-model="orderlist.remark">
</view>
<view class="radio-content">
<view class="radio-right" @tap="changeRadio">

View File

@ -49,7 +49,7 @@
}
this.timer = setTimeout(e => {
uni.navigateBack({
delta: 1
delta: 3
})
}, 1500)
}

View File

@ -82,7 +82,6 @@
},
onLoad(options) { //
this.disease = JSON.parse(options.diseaseInfoList)
console.log(this.disease)
},
}
</script>

View File

@ -3,7 +3,8 @@
<view class="rate">
<view class="images">
<view class="itemimgs" v-for="(item,index) in file">
<image class="delimg" src="../../static/gb2.png" mode="" style="color: red;"></image>
<image class="delimg" src="../../static/gb2.png" mode="" style="color: red;" @tap='delimg(item)'>
</image>
<image class="itemimg" :src="item" mode=""></image>
</view>
<view class="shot item" @tap='updataImage'>
@ -53,37 +54,41 @@
file: [],
imgs: [],
patientId: null,
timer:null,
timer: null,
delta: null,
};
},
methods: {
async updata() {
let that = this
this.file.forEach(e => {
uni.uploadFile({
url: baseurl + '/nurseApp/orderEvaluate/uploadEvaluatePictureUrl',
filePath: e,
name: 'file',
formData: {
'orderNo': that.orderlist.goOrderNo
},
timeout: 5000,
header: {
'Content-type': 'application/json;charset=utf-8'
},
success(res) {
var img = {
evaluatePictureUrl: JSON.parse(res.data).imgUrl
}
that.imgs.push(img)
if (that.imgs.length == that.file.length) {
that.info();
}
}
})
})
delimg(item) {
this.file = this.file.filter(e => e != item)
},
updata() {
let that = this
if (this.file.length > 0) {
this.file.forEach(e => {
uni.uploadFile({
url: baseurl + '/nurseApp/orderEvaluate/uploadEvaluatePictureUrl',
filePath: e,
name: 'file',
formData: {
'orderNo': that.orderlist.goOrderNo
},
timeout: 5000,
success(res) {
var img = {
evaluatePictureUrl: JSON.parse(res.data).imgUrl
}
that.imgs.push(img)
if (that.imgs.length == that.file.length) {
that.info();
}
}
})
})
} else {
that.info();
}
},
info() {
var that = this
var obj = {
@ -106,8 +111,8 @@
}
that.timer = setTimeout(e => {
that.imgs = []
uni.navigateBack({
delta: 1
uni.navigateTo({
url: `/pages/ratesuccess/ratesuccess?delta=${that.delta}`
})
}, 1500)
} else {
@ -115,9 +120,6 @@
}
})
},
updataImage() {
var that = this;
uni.chooseImage({
@ -132,6 +134,7 @@
},
onLoad(options) {
this.orderlist = JSON.parse(options.item)
this.delta = options.delta
},
onShow() {
this.baseurl = baseurl
@ -222,6 +225,7 @@
top: 10rpx;
right: 10rpx;
width: 40rpx;
z-index: 999;
height: 40rpx;
}

View File

@ -218,10 +218,6 @@
this.maskshow = false;
},
},
onUnload() {
// nullgeLocation
chooseLocation.setLocation(null);
},
//
onLoad() {
let that = this
@ -254,7 +250,6 @@
} else {}
})
} else {
console.log(that.query.nurseTypeIdList)
that.medicalcarelist.forEach(e => {
that.query.nurseTypeIdList = that.query.nurseTypeIdList.filter(el => el != e.id)
})

View File

@ -10,7 +10,7 @@
<u-input class='code phone' placeholder="密码" maxlength="10" v-model="password" type="password"
:border="true" :password-icon="true" />
</view>
<view class="loginbtn" @tap='pwdlogin'>
<view class="loginbtn" @tap='login'>
登录
</view>
<view class="switch" @tap='goforgotPassword' style="left:10%">
@ -24,7 +24,8 @@
</template>
<script>
import {
appLoginpwd
appLoginpwd,
createMobileToken
} from '../../api/login/index.js'
export default {
data() {
@ -42,6 +43,13 @@
},
methods: {
//
login() {
var that = this
createMobileToken().then(res => {
uni.setStorageSync("token", res.data.token)
that.pwdlogin()
})
},
pwdlogin() {
appLoginpwd(this.phone, this.password).then(res => {
if (res.code == 200) {

View File

@ -68,7 +68,6 @@
queryLogisticsInfo(goOrderNo, expressNo) {
queryLogistics(goOrderNo, expressNo).then(res => {
this.expresslist = res.data
console.log(this.expresslist)
})
},
//
@ -108,7 +107,6 @@
let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes() : new Date().getMinutes();
let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds() : new Date().getSeconds();
that.gettime = yy + '/' + mm + '/' + dd + ' ' + hh + ':' + mf + ':' + ss;
console.log(that.gettime)
}
},
onLoad(options) {

View File

@ -0,0 +1,137 @@
.app {
padding: 0 0 50rpx 0;
.rate {
width: 95%;
margin: 0 auto;
height: 100%;
background: #FFFFFF;
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
border-radius: 20rpx 20rpx 0 0;
padding-bottom: 20rpx;
.itemimgs {
display: inline-block;
width: 30.5%;
height: 212rpx;
margin: 0 0 20rpx 2%;
position: relative;
padding-top: 20rpx;
.itemimg {
width: 100%;
height: 100%;
}
}
}
.score {
background-color: #FFFFFF;
width: 95%;
margin: 0 auto;
padding-top: 50rpx;
position: relative;
height: 500rpx;
border-radius: 0 0 20rpx 20rpx;
::v-deep .u-rate {
position: absolute;
top: 52rpx;
left: 200rpx;
}
.text {
margin-top: 20rpx;
::v-deep .uni-textarea-textarea {
width: 93%;
display: block;
margin: 0 20rpx;
}
::v-deep .u-input__textarea {
margin-left: 20rpx;
}
}
.title {
margin: 0 20rpx;
font-size: 36rpx;
color: #000000;
padding-bottom: 50rpx;
border-bottom: 1rpx solid #D8D4D4;
}
}
.content {
width: 95%;
background: #FFFFFF;
box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
border-radius: 20rpx;
margin: 30rpx auto;
position: relative;
padding-bottom: 130rpx;
.detailslist {
display: flex;
image {
width: 182rpx;
height: 182rpx;
margin: 20rpx 0 0 20rpx;
}
.model {
width: 70%;
margin: 30rpx 0 0 20rpx;
span {
font-size: 32rpx;
color: #000000;
}
span:nth-child(1) {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 70%;
}
span:nth-child(2) {
color: #969394;
float: right;
margin-right: 30rpx;
}
.bottom {
margin-top: 40rpx;
.box {
color: #969394;
font-size: 30rpx;
}
}
}
}
.payinfo {
width: 95%;
position: absolute;
left: 2.5%;
bottom: 20rpx;
.pay {
font-size: 30rpx;
color: #020000;
}
.price {
float: right;
font-size: 41rpx;
color: #D43953;
margin-right: 10rpx;
}
}
}
}

View File

@ -0,0 +1,65 @@
<template>
<view class="app" v-if="ratelist">
<view class="content">
<view class="detailslist">
<image :src="baseurl+order.attributePitureUrl" mode=""></image>
<view class="model">
<view class="top">
<span>{{order.goodsName}}</span>
<span>{{order.goodsPrice}}</span>
</view>
<view class="bottom">
<span class="box">型号{{order.goodsAttributeName}}</span>
<span class="box">X{{order.goodsCount}}</span>
</view>
</view>
</view>
<view class="payinfo">
<text class="pay">实付款</text>
<text class="price">{{order.totalPrice}}</text>
</view>
</view>
<view class="rate">
<view class="itemimgs" v-for="(item,index) in ratelist.orderEvaluatePictureInfoList">
<image class="itemimg" :src="baseurl+item.evaluatePictureUrl" mode=""></image>
</view>
</view>
<view class="score">
<view class="title">
综合评分
</view>
<u-rate :count="count" v-model="ratelist.compositeScore" size='46' :disabled="true"></u-rate>
<view class="text">
<u-input v-model="ratelist.evaluateContent" type="textarea" :clearable='false' :disabled="true" />
</view>
</view>
</view>
</template>
<script>
import {
lookrate
} from '@/api/lookrate/index.js'
import baseurl from '@/api/baseurl.js'
export default {
data() {
return {
baseurl: null,
order: null,
ratelist: null,
count: 5,
};
},
onLoad(options) {
this.baseurl = baseurl
this.order = JSON.parse(options.item)
lookrate(this.order.goOrderNo).then(res => {
this.ratelist = res.data
})
},
}
</script>
<style lang="scss">
@import './lookrate.scss';
</style>

View File

@ -275,16 +275,11 @@
})
},
},
onUnload() {
// nullgeLocation
chooseLocation.setLocation(null);
},
//
onShow() {
let that = this
uni.$on('disease', function(data) {
that.patientDiseaseInfoList = JSON.parse(data.disease)
console.log(that.patientDiseaseInfoList)
})
}
}

View File

@ -40,7 +40,8 @@
</view>
</view>
<view class="" v-if="servelist.length>0&&choicetab==false">
<view class="item" v-for="item in servelist" :key="" v-show='choicetab==false'>
<view class="item" v-for="item in servelist" :key="" v-show='choicetab==false'
@click.stop='goProjectDetails(item)'>
<image :src="item.itemPictureUrl"></image>
<view class="huanyao">{{item.nurseItemName}}
</view>
@ -48,7 +49,7 @@
<u-rate :count="5" value="2"></u-rate>
</view> -->
<view class="servicetime">服务时长:{{item.serveDurationUnit?item.serveDurationUnit:'0'}}</view>
<view class="appointment" @tap='goappointments(item)'>预约</view>
<view class="appointment" @tap.stop='goappointments(item)'>预约</view>
<view class="price">{{item.nurseItemPrice==null?'0':item.nurseItemPrice}}</view>
</view>
</view>
@ -128,13 +129,13 @@
},
onShow() {
this.usershow = false
},
onLoad(options) {
this.nurseStationId = options.nurseStationId
this.getInfo()
this.serveinfo()
this.productinfo()
},
onLoad(options) {
this.nurseStationId = options.nurseStationId
},
methods: {
goappointments(item) {
let that = this
@ -158,8 +159,10 @@
getInfo() {
introductionList(this.nurseStationId).then(res => {
res.data.stationIntroducePcitureUrl = baseurl + res.data.stationIntroducePcitureUrl
res.data.agencyIntroduce = res.data.agencyIntroduce.replace(/\<img/gi,
"<br/><img class='richPic'")
if (res.data.agencyIntroduce) {
res.data.agencyIntroduce = res.data.agencyIntroduce.replace(/\<img/gi,
"<br/><img class='richPic'")
}
this.list = res.data
if (res.data.nurseStationLabelList) {
this.nurseStationLabelList = res.data.nurseStationLabelList
@ -167,6 +170,7 @@
})
},
serveinfo() {
this.pageNum = 1
itemList(this.nurseStationId, this.pageSize, this.pageNum).then(res => {
res.rows.forEach(e => {
e.itemPictureUrl = baseurl + e.itemPictureUrl
@ -176,6 +180,7 @@
})
},
productinfo() {
this.pageNum = 1
productInformation(this.nurseStationId, this.pageNum, this.pageSize).then(res => {
res.rows.forEach(e => {
e.goodsPictureUrl = baseurl + e.goodsPictureUrl
@ -187,7 +192,6 @@
testTabClick(index) {
this.tabIndex = index
this.choicetab = this.tabIndex
console.log(this.choicetab)
},
//
goCommodityDetails(item) {
@ -201,11 +205,15 @@
url: '/pages/information/information'
})
},
goProjectDetails(item) {
uni.navigateTo({
url: `/pages/ProjectDetails/ProjectDetails?stationId=${item.stationId}&stationItemId=${item.stationItemId}&stationItemPriceId=${item.stationItemPriceId}`,
})
},
gophone() {
var that = this
uni.getSystemInfo({
success: function(res) {
// console.log(res)
if (res.platform == 'ios') {
uni.makePhoneCall({
phoneNumber: that.list.phone //
@ -215,15 +223,12 @@
itemList: ['呼叫', ],
success: function(res) {
if (res.tapIndex + 1 == 1) {
console.log(1)
uni.makePhoneCall({
phoneNumber: that.list.phone //
});
}
console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
},
fail: function(res) {
// console.log(res.errMsg);
}
});
}
@ -233,7 +238,6 @@
},
onReachBottom() { //
if (this.choicetab == 0) {
console.log(1)
if (this.servelist.length >= this.servetotal) {} else {
this.pageNum++
itemList(this.nurseStationId, this.pageSize, this.pageNum).then(res => {

View File

@ -1,4 +1,5 @@
.app {
padding: 0;
.time{
height: 80rpx;
width: 95%;

View File

@ -8,7 +8,7 @@
<view class="OrderStatus" v-if="order.orderStatus=='WAIT_PAY'&&timestamp<=0">
订单已关闭
</view>
<view class="OrderStatus" v-if="list.orderStatus=='REFUNDED'||list.orderStatus=='CANCEL'">
<view class="OrderStatus" v-if="order.orderStatus=='REFUNDED'||order.orderStatus=='CANCEL'">
订单已关闭
</view>
<view class="content">
@ -68,6 +68,17 @@
去支付
</view>
</view>
<view class="buy" v-if="order.orderStatus == 'EVALUATED'" @tap='golookrate'>
<view class="pay" style="background-color: #4C7BC9;">
查看评价
</view>
</view>
<view class="buy" v-if="order.orderStatus == 'RECEIVED_GOODS'" @tap='rate'>
<view class="pay" style="background-color: #60c5f1;">
去评价
</view>
</view>
<u-toast ref="uToast" />
</view>
</template>
@ -76,6 +87,9 @@
goodsOrder
} from '@/api/CommodityOrder/index.js'
import baseurl from '@/api/baseurl.js'
import {
appletGoodsOrderPay
} from '@/api/confirmOrder/index.js'
export default {
data() {
return {
@ -89,6 +103,18 @@
}
},
methods: {
//
golookrate() {
uni.navigateTo({
url: `/pages/lookrate/lookrate?item=${JSON.stringify(this.order)}`
})
},
//
rate() {
uni.navigateTo({
url: `/pages/goodsorderRate/goodsorderRate?item=${JSON.stringify(this.order)}&delta=${4}`
})
},
//退
gorefundType() {
uni.navigateTo({

View File

@ -0,0 +1,100 @@
<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 {
delta: null,
};
},
onLoad(options) {
this.delta = options.delta
},
methods: {
gos() {
var that = this
this.delta = Number(this.delta)
if (this.delta == 4) {
uni.navigateBack({
delta: 4
});
} else if (this.delta == 3) {
uni.navigateBack({
delta: 3
});
} else if (this.delta == 2) {
uni.navigateBack({
delta: 2
});
}else{
uni.navigateBack({
delta: 2
});
}
},
gohome() {
uni.switchTab({
url: '/pages/homepage/homepage'
});
},
},
}
</script>
<style lang="scss">
.app {
font-size: 30rpx;
height: 100vh;
.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

@ -59,7 +59,6 @@
//退
goApplforrefund(e) {
if (e == 1) {
console.log(e)
uni.navigateTo({
url: `/pages/Applforrefund/Applforrefund?typename=${'我要退款(无需退货)'}&order=${JSON.stringify(this.order)}`
})
@ -73,7 +72,6 @@
onLoad(options) {
this.baseurl = baseurl
this.order = JSON.parse(options.order)
console.log(this.order)
}
}
</script>

View File

@ -111,7 +111,6 @@
})
} else {
appRegister(this.patientName, this.phone, this.password, this.verification).then(res => {
console.log(res)
if (res.code == 200) {
this.$refs.uToast.show({
title: '注册成功,前往登录',
@ -231,7 +230,6 @@
// },
// fail: (e) => {
// uni.hideLoading()
// console.log('error');
// //UserList
// uni.setStorage({
// key: 'UserList',
@ -250,7 +248,6 @@
// }, 1000)
// },
// fail: function(e) {
// console.log('set error:' + JSON.stringify(e));
// }
// });
// }

View File

@ -3,9 +3,8 @@
<view class="cards">
<view class="item" :style="{background:listcolor[index]}" @tap='goProductList(item)'
v-for="(item,index) in goodsCategoryList" :key="index">
<image :style="index==4?'top:0;border-radius: 20rpx;width:100%;height: 300rpx;':''"
:src="item.goodsCategoryPicture" mode=""></image>
<view class="title" style="font-size:42rpx" v-if="index!=4">
<image :src="item.goodsCategoryPicture" mode=""></image>
<view class="title" style="font-size:42rpx">
{{item.goodsCategoryName}}
</view>
</view>
@ -50,7 +49,6 @@
methods: {
//
goProductList(item) {
console.log(item)
uni.navigateTo({
url: `/pages/ProductList/ProductList?title=${item.goodsCategoryName}&goodsCategoryId=${item.id}`
})
@ -62,7 +60,6 @@
e.goodsCategoryPicture = baseurl + e.goodsCategoryPicture
this.goodsCategoryList.push(e)
})
console.log(this.goodsCategoryList)
this.total = res.total
})
}

View File

@ -117,11 +117,9 @@
this.nursestationlist = res.rows
this.mask = false
this.total = res.total
// console.log(this.nursestationlist)
})
},
godetails(item) {
console.log(item)
uni.navigateTo({
url: `/pages/nursestation/nursestation?nurseStationId=${item.nurseStationId}`
})
@ -168,7 +166,7 @@
// this.requestinfo()
},
},
onLoad() {
onShow() {
var that = this
try {
const value = uni.getStorageSync('patientId');
@ -199,6 +197,7 @@
}
} catch (e) {}
},
onLoad() {},
}
</script>
<style lang="scss">

View File

@ -147,35 +147,26 @@
const value = uni.getStorageSync('patientId');
if (value) {
getExistPatientByPatientId(value).then(res => {
if (res.code == 200) {
if (res.msg == 'LOGIN') {
appPersonal(value).then(response => {
if (response.code == 200) {
that.appPersonallist = response.data
} else {
that.$refs.uToast.show({
title: '账号异常,请重新登录',
type: 'error',
duration: '1500'
})
that.removeS()
}
})
} else {
that.$refs.uToast.show({
title: '当前用户信息不存在,请重新登录',
type: 'error',
duration: '1500'
})
that.removeS()
}
if (res.code == 200 && res.msg == 'LOGIN') {
appPersonal(value).then(response => {
if (response.code == 200) {
that.appPersonallist = response.data
} else {
that.$refs.uToast.show({
title: '账号异常,请重新登录',
type: 'error',
duration: '1500'
})
that.removeS()
}
})
} else {
that.removeS()
that.$refs.uToast.show({
title: '登录异常,请重新登录',
type: 'error',
duration: '1500'
})
that.removeS()
}
})
}
@ -196,17 +187,13 @@
uni.removeStorageSync('patientId');
uni.removeStorageSync('phone');
uni.removeStorageSync('password');
that.$refs.uToast.show({
title: '退出账号成功',
type: 'success',
duration: '1000'
})
uni.removeStorageSync('token');
if (that.timer) {
clearTimeout(that.timer)
}
that.timer = setTimeout(e => {
uni.navigateBack({
delta: 1
uni.reLaunch({
url: "/pages/login/login"
})
}, 1000)
},
@ -217,7 +204,6 @@
}
},
onBackPress(options) {
console.log(options)
// if (options.from === 'navigateBack') {
// return false;
// }