修改
This commit is contained in:
parent
4da287b2bd
commit
9b14a11158
@ -1,8 +1,8 @@
|
|||||||
import request from "../request.js"
|
import request from "../request.js"
|
||||||
|
|
||||||
export function goodsList(pageSize,pageNum,goodsCategoryId) {
|
export function goodsList(pageSize,pageNum,goodsCategoryId,goodsName) {
|
||||||
return request({
|
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'
|
method: 'GET'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -7,3 +7,13 @@ export function getAppointmentDetailsInfo(orderNo) {
|
|||||||
method: 'GET'
|
method: 'GET'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//评价
|
||||||
|
export function addAppointmentEvaluate(data) {
|
||||||
|
return request({
|
||||||
|
url: `/nurseApp/orderEvaluate/addAppointmentEvaluate`,
|
||||||
|
method: 'POST',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -6,4 +6,11 @@ export function appLoginpwd(phone, password) {
|
|||||||
url: `/nurseApp/login/appLogin?phone=${phone}&password=${password}`,
|
url: `/nurseApp/login/appLogin?phone=${phone}&password=${password}`,
|
||||||
method: 'POST'
|
method: 'POST'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function createMobileToken() {
|
||||||
|
return request({
|
||||||
|
url: `/nurseApplet/authorization/createMobileToken`,
|
||||||
|
method: 'GET'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
9
api/lookrate/index.js
Normal file
9
api/lookrate/index.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import request from "../request.js"
|
||||||
|
|
||||||
|
// 修改信息
|
||||||
|
export function lookrate(orderNo) {
|
||||||
|
return request({
|
||||||
|
url: `/nurseApp/orderEvaluate/selectOrderEvaluate?orderNo=${orderNo}`,
|
||||||
|
method: 'GET'
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -10,33 +10,18 @@ var request = function(config) {
|
|||||||
data: config.data,
|
data: config.data,
|
||||||
method: config.method,
|
method: config.method,
|
||||||
timeout: 10000,
|
timeout: 10000,
|
||||||
// header: {
|
header: {
|
||||||
// token: uni.getStorageSync('token')
|
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||||
// },
|
},
|
||||||
success(res) {
|
success(res) {
|
||||||
// if (res.data.code == 20002) {
|
if (res.data.code == 9999) {
|
||||||
// uni.showModal({
|
uni.removeStorageSync('token');
|
||||||
// title: "登录提示",
|
uni.reLaunch({
|
||||||
// content: res.data.message,
|
url: '/pages/login/login'
|
||||||
// success(res1) {
|
})
|
||||||
// if (res1.confirm) {
|
}
|
||||||
// uni.navigateTo({
|
|
||||||
// url: '/pages/user/login/login'
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// } else {
|
|
||||||
// if (res.data.success) {
|
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
resolve(res.data)
|
resolve(res.data)
|
||||||
// } else {
|
|
||||||
// uni.showToast({
|
|
||||||
// title: res.data.message,
|
|
||||||
// icon: "none"
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
},
|
},
|
||||||
fail(err) {
|
fail(err) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name" : "NurseStationApp",
|
"name" : "泉医到家APP",
|
||||||
"appid" : "__UNI__D6F049F",
|
"appid" : "__UNI__D6F049F",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.0.0",
|
"versionName" : "1.0.0",
|
||||||
|
|||||||
295
pages.json
295
pages.json
@ -9,58 +9,6 @@
|
|||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"navigationStyle": "custom"
|
"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",
|
"path": "pages/forgotPassword/forgotPassword",
|
||||||
@ -75,19 +23,139 @@
|
|||||||
"navigationBarTitleText": "注册账号",
|
"navigationBarTitleText": "注册账号",
|
||||||
"navigationBarBackgroundColor": "#ffffff"
|
"navigationBarBackgroundColor": "#ffffff"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
"path": "pages/homepage/homepage",
|
{
|
||||||
|
"path": "pages/lookrate/lookrate",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "泉医到家",
|
"navigationBarTitleText": "查看评价",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarBackgroundColor": "#ffffff"
|
"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": {
|
"style": {
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
"navigationStyle": "custom"
|
"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" //背景颜色
|
"navigationBarBackgroundColor": "#ffffff" //背景颜色
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "pages/ServiceDetails/ServiceDetails",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "服务详情",
|
|
||||||
"enablePullDownRefresh": false,
|
|
||||||
"navigationBarBackgroundColor": "#ffffff" //背景颜色
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/Nursingstationserviceorder/Nursingstationserviceorder",
|
"path": "pages/Nursingstationserviceorder/Nursingstationserviceorder",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "护理站服务订单",
|
"navigationBarTitleText": "护理站服务订单",
|
||||||
"navigationBarBackgroundColor": "#ffffff", //背景颜色
|
"navigationBarBackgroundColor": "#ffffff", //背景颜色
|
||||||
"onReachBottomDistance": 20, //距离底部多远时触发 单位为px
|
"onReachBottomDistance": 40, //距离底部多远时触发 单位为px
|
||||||
"enablePullDownRefresh": true //设置参数为true
|
"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",
|
"path": "pages/logistics/logistics",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "查看物流",
|
"navigationBarTitleText": "查看物流",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarBackgroundColor": "#ffffff"
|
"navigationBarBackgroundColor": "#ffffff"
|
||||||
}
|
}
|
||||||
}, {
|
|
||||||
"path": "pages/user/user",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "个人信息",
|
|
||||||
"enablePullDownRefresh": false,
|
|
||||||
"navigationBarBackgroundColor": "#4C7BC9", //背景颜色
|
|
||||||
"navigationBarTextStyle": "white"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"path": "pages/Aftersalesdetails/Aftersalesdetails",
|
"path": "pages/Aftersalesdetails/Aftersalesdetails",
|
||||||
"style": {
|
"style": {
|
||||||
@ -181,14 +209,8 @@
|
|||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"path": "pages/orderDetails/orderDetails",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "订单详情",
|
|
||||||
"navigationBarBackgroundColor": "#ffffff",
|
|
||||||
"enablePullDownRefresh": false
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
"path": "pages/order/order",
|
"path": "pages/order/order",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "我的订单",
|
"navigationBarTitleText": "我的订单",
|
||||||
@ -197,14 +219,23 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/shopping/shopping", //商城
|
"path": "pages/menttimeorder/menttimeorder",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "医路优品",
|
"navigationBarTitleText": "预约详情",
|
||||||
"navigationBarBackgroundColor": "#ffffff",
|
"enablePullDownRefresh": false
|
||||||
"onReachBottomDistance": 20, //距离底部多远时触发 单位为px
|
|
||||||
"enablePullDownRefresh": true //设置参数为true
|
|
||||||
}
|
}
|
||||||
}, {
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/homepage/homepage",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "泉医到家",
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"navigationBarBackgroundColor": "#ffffff"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
"path": "pages/confirmOrder/confirmOrder",
|
"path": "pages/confirmOrder/confirmOrder",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "确认订单",
|
"navigationBarTitleText": "确认订单",
|
||||||
@ -229,13 +260,6 @@
|
|||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarBackgroundColor": "#ffffff"
|
"navigationBarBackgroundColor": "#ffffff"
|
||||||
}
|
}
|
||||||
}, {
|
|
||||||
"path": "pages/InformationFilling/InformationFilling",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "信息确认与填写",
|
|
||||||
"navigationBarBackgroundColor": "#ffffff", //背景颜色
|
|
||||||
"enablePullDownRefresh": false
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/ProductList/ProductList", //商品列表
|
"path": "pages/ProductList/ProductList", //商品列表
|
||||||
@ -243,17 +267,19 @@
|
|||||||
"navigationBarTitleText": "医路优品",
|
"navigationBarTitleText": "医路优品",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarBackgroundColor": "#ffffff",
|
"navigationBarBackgroundColor": "#ffffff",
|
||||||
"onReachBottomDistance": 20, //距离底部多远时触发 单位为px
|
"onReachBottomDistance": 40, //距离底部多远时触发 单位为px
|
||||||
"enablePullDownRefresh": true //设置参数为true
|
"enablePullDownRefresh": true //设置参数为true
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "pages/CommodityDetails/CommodityDetails",
|
"path": "pages/CommodityDetails/CommodityDetails",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "商品详情",
|
"navigationBarTitleText": "商品详情",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarBackgroundColor": "#ffffff"
|
"navigationBarBackgroundColor": "#ffffff"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "pages/nursestation/nursestation",
|
"path": "pages/nursestation/nursestation",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "护理站详情",
|
"navigationBarTitleText": "护理站详情",
|
||||||
@ -262,30 +288,34 @@
|
|||||||
"enablePullDownRefresh": true //设置参数为true
|
"enablePullDownRefresh": true //设置参数为true
|
||||||
}
|
}
|
||||||
|
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "pages/site/site",
|
"path": "pages/site/site",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "附近护理站",
|
"navigationBarTitleText": "附近护理站",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarBackgroundColor": "#ffffff", //背景颜色
|
"navigationBarBackgroundColor": "#ffffff", //背景颜色
|
||||||
"onReachBottomDistance": 20, //距离底部多远时触发 单位为px
|
"onReachBottomDistance": 40, //距离底部多远时触发 单位为px
|
||||||
"enablePullDownRefresh": true //设置参数为true
|
"enablePullDownRefresh": true //设置参数为true
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "pages/detail/detail",
|
"path": "pages/detail/detail",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "护理站简介",
|
"navigationBarTitleText": "护理站简介",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarBackgroundColor": "#ffffff" //背景颜色
|
"navigationBarBackgroundColor": "#ffffff" //背景颜色
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "pages/medicine/medicine",
|
"path": "pages/medicine/medicine",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "就医",
|
"navigationBarTitleText": "就医",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarBackgroundColor": "#ffffff"
|
"navigationBarBackgroundColor": "#ffffff"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "pages/modifyAddress/modifyAddress",
|
"path": "pages/modifyAddress/modifyAddress",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "修改地址",
|
"navigationBarTitleText": "修改地址",
|
||||||
@ -302,13 +332,20 @@
|
|||||||
"navigationBarBackgroundColor": "#ffffff"
|
"navigationBarBackgroundColor": "#ffffff"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/paysuccess/paysuccess",
|
"path": "pages/Geriatricdisease/Geriatricdisease",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "老年病中心",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationStyle": "custom"
|
"navigationBarBackgroundColor": "#ffffff"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}, {
|
||||||
|
"path": "pages/diseasemanagement/diseasemanagement",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "专病管理",
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"navigationBarBackgroundColor": "#ffffff"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
|
|||||||
@ -63,13 +63,13 @@
|
|||||||
this.order.updateTime = null
|
this.order.updateTime = null
|
||||||
refund(this.order).then(
|
refund(this.order).then(
|
||||||
res => {
|
res => {
|
||||||
console.log(res)
|
|
||||||
if (res.code == 500) {
|
if (res.code == 500) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
type: 'error'
|
type: 'error'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
uni.setStorageSync("Refresh", 'Refresh')
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '退款申请提交成功',
|
title: '退款申请提交成功',
|
||||||
type: 'success',
|
type: 'success',
|
||||||
@ -80,7 +80,7 @@
|
|||||||
}
|
}
|
||||||
this.timer = setTimeout(e => {
|
this.timer = setTimeout(e => {
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 3
|
delta: 4
|
||||||
});
|
});
|
||||||
}, 1500)
|
}, 1500)
|
||||||
}
|
}
|
||||||
@ -94,7 +94,6 @@
|
|||||||
},
|
},
|
||||||
//点击退款原因
|
//点击退款原因
|
||||||
tapreason(item) {
|
tapreason(item) {
|
||||||
console.log(item)
|
|
||||||
this.order.refundReasonDictId = item.dictCode
|
this.order.refundReasonDictId = item.dictCode
|
||||||
this.dictname = item.dictLabel
|
this.dictname = item.dictLabel
|
||||||
this.show = false;
|
this.show = false;
|
||||||
|
|||||||
@ -296,8 +296,10 @@
|
|||||||
// 查询商品详细信息
|
// 查询商品详细信息
|
||||||
goodsDetailsinfo(goodsInfoId) {
|
goodsDetailsinfo(goodsInfoId) {
|
||||||
goodsDetails(goodsInfoId).then(res => {
|
goodsDetails(goodsInfoId).then(res => {
|
||||||
res.data[0].goodsRemark = res.data[0].goodsRemark.replace(/\<img/gi,
|
if (res.data[0].goodsRemark) {
|
||||||
"<br/> <img class='richPic'")
|
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
|
res.data[0].goodsPictureUrl = this.baseurl + res.data[0].goodsPictureUrl
|
||||||
this.image = res.data[0].goodsPictureUrl
|
this.image = res.data[0].goodsPictureUrl
|
||||||
var obj = {
|
var obj = {
|
||||||
@ -319,7 +321,6 @@
|
|||||||
})
|
})
|
||||||
this.goodDetailsLists = res.data[0].goodDetailsLists
|
this.goodDetailsLists = res.data[0].goodDetailsLists
|
||||||
this.goodshow = true
|
this.goodshow = true
|
||||||
console.log(this.goodDetailsLists)
|
|
||||||
}
|
}
|
||||||
this.goodsDetailslist = res.data[0]
|
this.goodsDetailslist = res.data[0]
|
||||||
this.updata.goodsName = this.goodsDetailslist.goodsName
|
this.updata.goodsName = this.goodsDetailslist.goodsName
|
||||||
@ -370,7 +371,6 @@
|
|||||||
const value = uni.getStorageSync('patientId');
|
const value = uni.getStorageSync('patientId');
|
||||||
if (value) {
|
if (value) {
|
||||||
that.updata.patientId = value
|
that.updata.patientId = value
|
||||||
console.log(that.updata.patientId)
|
|
||||||
that.goodsList()
|
that.goodsList()
|
||||||
} else {}
|
} else {}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
<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/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_PAY'&&item.timestamp<=0">订单已关闭</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>
|
||||||
@ -40,6 +40,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="anniu">
|
<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 class="logistics" v-if="item.orderStatus=='WAIT_RECEIVED_GOODS'" @tap='gologistics(item)'>查看物流
|
||||||
</view>
|
</view>
|
||||||
<view class="logistics harvest" v-if="item.orderStatus=='WAIT_PAY'&&item.timestamp>0"
|
<view class="logistics harvest" v-if="item.orderStatus=='WAIT_PAY'&&item.timestamp>0"
|
||||||
@ -49,6 +51,8 @@
|
|||||||
确认收货</view>
|
确认收货</view>
|
||||||
<view class="logistics harvest" @tap='rate(item)' v-if="item.orderStatus=='RECEIVED_GOODS'">
|
<view class="logistics harvest" @tap='rate(item)' v-if="item.orderStatus=='RECEIVED_GOODS'">
|
||||||
立即评价</view>
|
立即评价</view>
|
||||||
|
<view class="logistics harvest" v-if="item.orderStatus=='EVALUATED'" @tap='golookrate(item)'>
|
||||||
|
查看评价</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -104,10 +108,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//查看评价
|
||||||
|
golookrate(item) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/lookrate/lookrate?item=${JSON.stringify(item)}`
|
||||||
|
})
|
||||||
|
},
|
||||||
//评价
|
//评价
|
||||||
rate(item) {
|
rate(item) {
|
||||||
uni.navigateTo({
|
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
|
this.show = false
|
||||||
setTimeout(e => {
|
setTimeout(e => {
|
||||||
uni.navigateTo({
|
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)
|
}, 1000)
|
||||||
} else {}
|
} else {}
|
||||||
})
|
})
|
||||||
@ -141,7 +148,6 @@
|
|||||||
payType: "WECHAT_PAY",
|
payType: "WECHAT_PAY",
|
||||||
buySource: item.buySource,
|
buySource: item.buySource,
|
||||||
}
|
}
|
||||||
console.log(obj)
|
|
||||||
},
|
},
|
||||||
//物流页面
|
//物流页面
|
||||||
gologistics(item) {
|
gologistics(item) {
|
||||||
@ -188,25 +194,32 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
onLoad(options) { //开局调用
|
onLoad(options) { //开局调用
|
||||||
|
this.baseurl = baseurl;
|
||||||
let that = this
|
let that = this
|
||||||
try {
|
try {
|
||||||
const value = uni.getStorageSync('patientId');
|
const value = uni.getStorageSync('patientId');
|
||||||
if (value) {
|
if (value) {
|
||||||
that.patientId = 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) {}
|
} 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() { //下滑加载
|
onReachBottom() { //下滑加载
|
||||||
if (this.orderlist.length >= this.total) {} else {
|
if (this.orderlist.length >= this.total) {} else {
|
||||||
|
|||||||
@ -1,6 +1,60 @@
|
|||||||
.app {
|
.app {
|
||||||
padding: 2%;
|
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%;
|
margin-top: 20%;
|
||||||
image{
|
image{
|
||||||
display: block;
|
display: block;
|
||||||
|
|||||||
@ -32,11 +32,10 @@
|
|||||||
v-if="item.orderStatus=='WAIT_PAY'&&item.timestamp>0">
|
v-if="item.orderStatus=='WAIT_PAY'&&item.timestamp>0">
|
||||||
去支付
|
去支付
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="submit" style="background-color: crimson;" v-if="item.orderStatus=='WAIT_REFUND'">退款进度</view> -->
|
<view class="submit" v-if="item.orderStatus=='WAIT_REFUND'" style="background-color: coral;">退款中</view>
|
||||||
<!-- <view class="submit"
|
<view class="submit" v-if="item.orderStatus=='COMPLETE'" @tap='gorate(item)'
|
||||||
v-if="item.orderStatus=='PAY'||item.orderStatus=='WAIT_DISPATCH'||item.orderStatus=='NOT_FINISH'">
|
style="background-color: #60c5f1;">立即评价</view>
|
||||||
确认完成
|
<view class="submit" v-if="item.orderStatus=='EVALUATED'" @tap='lookrate(item)'>查看评价</view>
|
||||||
</view> -->
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="noorder" v-else>
|
<view class="noorder" v-else>
|
||||||
@ -45,26 +44,77 @@
|
|||||||
暂无服务订单
|
暂无服务订单
|
||||||
</view>
|
</view>
|
||||||
</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>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import baseurl from '@/api/baseurl.js'
|
import baseurl from '@/api/baseurl.js'
|
||||||
|
import {
|
||||||
|
lookrate
|
||||||
|
} from '@/api/lookrate/index.js'
|
||||||
import {
|
import {
|
||||||
appServiceOrder
|
appServiceOrder
|
||||||
} from '@/api/Nursingstationserviceorder/Nursingstationserviceorder.js'
|
} from '@/api/Nursingstationserviceorder/Nursingstationserviceorder.js'
|
||||||
|
import {
|
||||||
|
addAppointmentEvaluate
|
||||||
|
} from '@/api/ServiceDetails/ServiceDetails.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
rateimgtitle: {
|
||||||
|
img: null,
|
||||||
|
title: null,
|
||||||
|
},
|
||||||
|
ratelist: {
|
||||||
|
evaluateSatisfaction: '',
|
||||||
|
}, //评价list
|
||||||
|
rateshow: false, //评价
|
||||||
|
lookrateshow: false, //查看评价
|
||||||
baseurl: '',
|
baseurl: '',
|
||||||
patientId: null,
|
patientId: null,
|
||||||
total: 0,
|
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
|
total: 0,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
list: [],
|
list: [],
|
||||||
|
orderNo: null,
|
||||||
|
timer: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
this.lookrateshow = false
|
||||||
|
this.rateshow = false
|
||||||
this.baseurl = baseurl
|
this.baseurl = baseurl
|
||||||
let that = this
|
let that = this
|
||||||
try {
|
try {
|
||||||
@ -79,8 +129,51 @@
|
|||||||
//支付
|
//支付
|
||||||
buy(item) {
|
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() {
|
getinfo() {
|
||||||
|
this.pageNum = 1
|
||||||
appServiceOrder(this.patientId, this.pageSize, this.pageNum).then(res => {
|
appServiceOrder(this.patientId, this.pageSize, this.pageNum).then(res => {
|
||||||
this.list = res.rows;
|
this.list = res.rows;
|
||||||
this.total = res.total
|
this.total = res.total
|
||||||
|
|||||||
@ -1,5 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="app">
|
<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="productlist">
|
||||||
<view class="item" @tap='goCommodityDetails(item)' v-for="(item,index) in goodsList" :key="index">
|
<view class="item" @tap='goCommodityDetails(item)' v-for="(item,index) in goodsList" :key="index">
|
||||||
<image :src="baseurl+item.goodsPictureUrl" mode=""></image>
|
<image :src="baseurl+item.goodsPictureUrl" mode=""></image>
|
||||||
@ -31,18 +35,28 @@
|
|||||||
goodsCategoryId: '', //请求值
|
goodsCategoryId: '', //请求值
|
||||||
goodsList: [], //商品列表list
|
goodsList: [], //商品列表list
|
||||||
total: 0, //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) { //获取传值
|
onLoad(options) { //获取传值
|
||||||
this.title = options.title //导航栏标题
|
this.title = options.title //导航栏标题
|
||||||
this.goodsCategoryId = options.goodsCategoryId //请求id
|
this.goodsCategoryId = options.goodsCategoryId //请求id
|
||||||
this.baseurl = baseurl;
|
this.baseurl = baseurl;
|
||||||
this.goodsListinfo(this.pageSize, this.pageNum, options.goodsCategoryId)
|
this.goodsListinfo()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 查询商品列表
|
// 查询商品列表
|
||||||
goodsListinfo(pageSize, pageNum, goodsCategoryId) {
|
goodsListinfo() {
|
||||||
goodsList(pageSize, pageNum, goodsCategoryId).then(res => {
|
goodsList(this.pageSize, this.pageNum, this.goodsCategoryId, this.goodsName).then(res => {
|
||||||
res.rows.forEach(e => {
|
res.rows.forEach(e => {
|
||||||
this.goodsList.push(e)
|
this.goodsList.push(e)
|
||||||
})
|
})
|
||||||
@ -64,12 +78,12 @@
|
|||||||
onReachBottom() { //下滑加载
|
onReachBottom() { //下滑加载
|
||||||
if (this.goodsList.length >= this.total) {} else {
|
if (this.goodsList.length >= this.total) {} else {
|
||||||
this.pageNum++;
|
this.pageNum++;
|
||||||
this.goodsListinfo(this.pageSize, this.pageNum, this.goodsCategoryId)
|
this.goodsListinfo()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onPullDownRefresh() { //下拉刷新
|
onPullDownRefresh() { //下拉刷新
|
||||||
this.pageNum = 1;
|
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.goodsList = res.rows
|
||||||
this.total = res.total
|
this.total = res.total
|
||||||
})
|
})
|
||||||
@ -83,6 +97,40 @@
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.app {
|
.app {
|
||||||
padding: 0;
|
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 {
|
.productlist {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
padding: 2% 2% 150rpx 2%;
|
padding: 2% 2% 150rpx 2%;
|
||||||
padding-top: 10rpx;
|
padding-top: 10rpx;
|
||||||
font-size: 34rpx;
|
font-size: 34rpx;
|
||||||
|
position: relative;
|
||||||
.mask {
|
.mask {
|
||||||
.information {
|
.information {
|
||||||
width: 70%;
|
width: 70%;
|
||||||
|
|||||||
@ -144,8 +144,10 @@
|
|||||||
// 信息
|
// 信息
|
||||||
getlist(stationId, stationItemId, stationItemPriceId) {
|
getlist(stationId, stationItemId, stationItemPriceId) {
|
||||||
getAppStationItemInfo(stationId, stationItemId, stationItemPriceId).then(res => {
|
getAppStationItemInfo(stationId, stationItemId, stationItemPriceId).then(res => {
|
||||||
res.data.nurseItemContent = res.data.nurseItemContent.replace(/\<img/gi,
|
if (res.data.nurseItemContent) {
|
||||||
"<br/> <img class='richPic'")
|
res.data.nurseItemContent = res.data.nurseItemContent.replace(/\<img/gi,
|
||||||
|
"<br/> <img class='richPic'")
|
||||||
|
}
|
||||||
res.data.itemPictureUrl = baseurl + res.data.itemPictureUrl
|
res.data.itemPictureUrl = baseurl + res.data.itemPictureUrl
|
||||||
this.list = res.data
|
this.list = res.data
|
||||||
})
|
})
|
||||||
|
|||||||
@ -13,6 +13,25 @@
|
|||||||
margin: 0 auto 10rpx;
|
margin: 0 auto 10rpx;
|
||||||
border-radius: 20rpx;
|
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{
|
.mask{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom:0;
|
bottom:0;
|
||||||
@ -30,9 +49,23 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
background: #BFBFBF;
|
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;
|
border-radius: 25rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
.OrderStatus{
|
.OrderStatus{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 300rpx;
|
width: 300rpx;
|
||||||
|
|||||||
@ -41,7 +41,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="content">服务信息
|
<view class="content">服务信息
|
||||||
<view class="contacts">·联系人:{{list.patientName}}</view>
|
<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.serviceAddress}}</view>
|
||||||
<view class="contacts">·时间:{{list.serviceDate}} {{list.serviceStartTime}}-{{list.serviceEndTime}}</view>
|
<view class="contacts">·时间:{{list.serviceDate}} {{list.serviceStartTime}}-{{list.serviceEndTime}}</view>
|
||||||
</view>
|
</view>
|
||||||
@ -62,7 +62,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="remarks">
|
<view class="remarks">
|
||||||
<view>备注:</view>
|
<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>
|
||||||
<view class="evaluate">
|
<view class="evaluate">
|
||||||
<view class="price">
|
<view class="price">
|
||||||
@ -71,16 +71,17 @@
|
|||||||
<view class="cancelorder" @tap="cancelorderment()"
|
<view class="cancelorder" @tap="cancelorderment()"
|
||||||
v-if="list.orderStatus=='PAY'||list.orderStatus=='WAIT_DISPATCH'||list.orderStatus=='NOT_FINISH'">取消订单
|
v-if="list.orderStatus=='PAY'||list.orderStatus=='WAIT_DISPATCH'||list.orderStatus=='NOT_FINISH'">取消订单
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="cancelorder " style="background: #4C7BC9;">评价</view> -->
|
|
||||||
<view class="cancelorder" @tap='buy' style="background-color: darkorange;"
|
<view class="cancelorder" @tap='buy' style="background-color: darkorange;"
|
||||||
v-if="list.orderStatus=='WAIT_PAY'&×tamp>0">
|
v-if="list.orderStatus=='WAIT_PAY'&×tamp>0">
|
||||||
去支付
|
去支付
|
||||||
</view>
|
</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'">评价
|
v-if="list.orderStatus=='COMPLETE'">评价
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-mask :show="rateshow" @tap="rateshow = false">
|
<u-mask :show="rateshow" @tap="rateshow = false" class='masks'>
|
||||||
<view class="mask">
|
<view class="mask">
|
||||||
<view class="rateitem" @tap="taprate('SATISFIED')">
|
<view class="rateitem" @tap="taprate('SATISFIED')">
|
||||||
满意
|
满意
|
||||||
@ -93,6 +94,24 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</u-mask>
|
</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" />
|
<u-toast ref="uToast" />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@ -102,9 +121,20 @@
|
|||||||
import {
|
import {
|
||||||
getAppointmentDetailsInfo
|
getAppointmentDetailsInfo
|
||||||
} from '@/api/ServiceDetails/ServiceDetails.js'
|
} from '@/api/ServiceDetails/ServiceDetails.js'
|
||||||
|
import {
|
||||||
|
lookrate
|
||||||
|
} from '@/api/lookrate/index.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
rateimgtitle: {
|
||||||
|
img: null,
|
||||||
|
title: null,
|
||||||
|
},
|
||||||
|
ratelist: {
|
||||||
|
evaluateSatisfaction: '',
|
||||||
|
}, //评价list
|
||||||
|
lookrateshow: false, //查看评价
|
||||||
rateshow: false, //评价
|
rateshow: false, //评价
|
||||||
baseurl: '',
|
baseurl: '',
|
||||||
list: {},
|
list: {},
|
||||||
@ -115,14 +145,25 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
var that = this
|
||||||
|
try {
|
||||||
|
const value = uni.getStorageSync('patientId');
|
||||||
|
if (value) {
|
||||||
|
that.patientId = value
|
||||||
|
}
|
||||||
|
} catch (e) {}
|
||||||
this.orderNo = options.orderNo
|
this.orderNo = options.orderNo
|
||||||
this.baseurl = baseurl
|
this.baseurl = baseurl
|
||||||
this.getlist()
|
this.getlist()
|
||||||
},
|
|
||||||
onShow() {
|
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//查看评价
|
||||||
|
lookrate() {
|
||||||
|
this.lookrateshow = true
|
||||||
|
lookrate(this.list.orderNo).then(res => {
|
||||||
|
this.ratelist = res.data
|
||||||
|
})
|
||||||
|
},
|
||||||
//评价
|
//评价
|
||||||
taprate(item) {
|
taprate(item) {
|
||||||
var obj = {
|
var obj = {
|
||||||
@ -143,7 +184,16 @@
|
|||||||
}
|
}
|
||||||
this.timer = setTimeout(e => {
|
this.timer = setTimeout(e => {
|
||||||
this.getlist();
|
this.getlist();
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/ratesuccess/ratesuccess?delta=${3}`
|
||||||
|
})
|
||||||
}, 1500)
|
}, 1500)
|
||||||
|
} else {
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: '评价失败',
|
||||||
|
type: 'error',
|
||||||
|
duration: '1500'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -170,7 +220,6 @@
|
|||||||
var that = this
|
var that = this
|
||||||
uni.getSystemInfo({
|
uni.getSystemInfo({
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
console.log(res)
|
|
||||||
if (res.platform == 'ios') {
|
if (res.platform == 'ios') {
|
||||||
uni.makePhoneCall({
|
uni.makePhoneCall({
|
||||||
phoneNumber: that.nursestationlist.phone //仅为示例
|
phoneNumber: that.nursestationlist.phone //仅为示例
|
||||||
|
|||||||
@ -274,17 +274,18 @@
|
|||||||
margin: 40rpx 0 0;
|
margin: 40rpx 0 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
/deep/ .u-checkbox-group{
|
||||||
span {
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
}
|
||||||
|
/deep/ .u-checkbox__label{
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
span {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: #D43953;
|
color: #D43953;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
position: absolute;
|
float: right;
|
||||||
right: 5%;
|
|
||||||
top: 50%;
|
|
||||||
transform: translateY(-50%);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -57,7 +57,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="remarks">
|
<view class="remarks">
|
||||||
<span>备注:</span>
|
<span>备注:</span>
|
||||||
<input placeholder="">
|
<input placeholder="请输入" v-model="orderlist.remark">
|
||||||
</view>
|
</view>
|
||||||
<view class="radio-content">
|
<view class="radio-content">
|
||||||
<view class="radio-right" @tap="changeRadio">
|
<view class="radio-right" @tap="changeRadio">
|
||||||
|
|||||||
@ -49,7 +49,7 @@
|
|||||||
}
|
}
|
||||||
this.timer = setTimeout(e => {
|
this.timer = setTimeout(e => {
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 1
|
delta: 3
|
||||||
})
|
})
|
||||||
}, 1500)
|
}, 1500)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -82,7 +82,6 @@
|
|||||||
},
|
},
|
||||||
onLoad(options) { //传参接受
|
onLoad(options) { //传参接受
|
||||||
this.disease = JSON.parse(options.diseaseInfoList)
|
this.disease = JSON.parse(options.diseaseInfoList)
|
||||||
console.log(this.disease)
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -3,7 +3,8 @@
|
|||||||
<view class="rate">
|
<view class="rate">
|
||||||
<view class="images">
|
<view class="images">
|
||||||
<view class="itemimgs" v-for="(item,index) in file">
|
<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>
|
<image class="itemimg" :src="item" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="shot item" @tap='updataImage'>
|
<view class="shot item" @tap='updataImage'>
|
||||||
@ -53,37 +54,41 @@
|
|||||||
file: [],
|
file: [],
|
||||||
imgs: [],
|
imgs: [],
|
||||||
patientId: null,
|
patientId: null,
|
||||||
timer:null,
|
timer: null,
|
||||||
|
delta: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async updata() {
|
delimg(item) {
|
||||||
let that = this
|
this.file = this.file.filter(e => e != item)
|
||||||
this.file.forEach(e => {
|
},
|
||||||
uni.uploadFile({
|
updata() {
|
||||||
url: baseurl + '/nurseApp/orderEvaluate/uploadEvaluatePictureUrl',
|
let that = this
|
||||||
filePath: e,
|
if (this.file.length > 0) {
|
||||||
name: 'file',
|
this.file.forEach(e => {
|
||||||
formData: {
|
uni.uploadFile({
|
||||||
'orderNo': that.orderlist.goOrderNo
|
url: baseurl + '/nurseApp/orderEvaluate/uploadEvaluatePictureUrl',
|
||||||
},
|
filePath: e,
|
||||||
timeout: 5000,
|
name: 'file',
|
||||||
header: {
|
formData: {
|
||||||
'Content-type': 'application/json;charset=utf-8'
|
'orderNo': that.orderlist.goOrderNo
|
||||||
},
|
},
|
||||||
success(res) {
|
timeout: 5000,
|
||||||
var img = {
|
success(res) {
|
||||||
evaluatePictureUrl: JSON.parse(res.data).imgUrl
|
var img = {
|
||||||
}
|
evaluatePictureUrl: JSON.parse(res.data).imgUrl
|
||||||
that.imgs.push(img)
|
}
|
||||||
if (that.imgs.length == that.file.length) {
|
that.imgs.push(img)
|
||||||
that.info();
|
if (that.imgs.length == that.file.length) {
|
||||||
}
|
that.info();
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
that.info();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
info() {
|
info() {
|
||||||
var that = this
|
var that = this
|
||||||
var obj = {
|
var obj = {
|
||||||
@ -106,8 +111,8 @@
|
|||||||
}
|
}
|
||||||
that.timer = setTimeout(e => {
|
that.timer = setTimeout(e => {
|
||||||
that.imgs = []
|
that.imgs = []
|
||||||
uni.navigateBack({
|
uni.navigateTo({
|
||||||
delta: 1
|
url: `/pages/ratesuccess/ratesuccess?delta=${that.delta}`
|
||||||
})
|
})
|
||||||
}, 1500)
|
}, 1500)
|
||||||
} else {
|
} else {
|
||||||
@ -115,9 +120,6 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
updataImage() {
|
updataImage() {
|
||||||
var that = this;
|
var that = this;
|
||||||
uni.chooseImage({
|
uni.chooseImage({
|
||||||
@ -132,6 +134,7 @@
|
|||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.orderlist = JSON.parse(options.item)
|
this.orderlist = JSON.parse(options.item)
|
||||||
|
this.delta = options.delta
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.baseurl = baseurl
|
this.baseurl = baseurl
|
||||||
@ -222,6 +225,7 @@
|
|||||||
top: 10rpx;
|
top: 10rpx;
|
||||||
right: 10rpx;
|
right: 10rpx;
|
||||||
width: 40rpx;
|
width: 40rpx;
|
||||||
|
z-index: 999;
|
||||||
height: 40rpx;
|
height: 40rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -218,10 +218,6 @@
|
|||||||
this.maskshow = false;
|
this.maskshow = false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
onUnload() {
|
|
||||||
// 页面卸载时设置插件选点数据为null,防止再次进入页面,geLocation返回的是上次选点结果
|
|
||||||
chooseLocation.setLocation(null);
|
|
||||||
},
|
|
||||||
//进入界面加载
|
//进入界面加载
|
||||||
onLoad() {
|
onLoad() {
|
||||||
let that = this
|
let that = this
|
||||||
@ -254,7 +250,6 @@
|
|||||||
} else {}
|
} else {}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
console.log(that.query.nurseTypeIdList)
|
|
||||||
that.medicalcarelist.forEach(e => {
|
that.medicalcarelist.forEach(e => {
|
||||||
that.query.nurseTypeIdList = that.query.nurseTypeIdList.filter(el => el != e.id)
|
that.query.nurseTypeIdList = that.query.nurseTypeIdList.filter(el => el != e.id)
|
||||||
})
|
})
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
<u-input class='code phone' placeholder="密码" maxlength="10" v-model="password" type="password"
|
<u-input class='code phone' placeholder="密码" maxlength="10" v-model="password" type="password"
|
||||||
:border="true" :password-icon="true" />
|
:border="true" :password-icon="true" />
|
||||||
</view>
|
</view>
|
||||||
<view class="loginbtn" @tap='pwdlogin'>
|
<view class="loginbtn" @tap='login'>
|
||||||
登录
|
登录
|
||||||
</view>
|
</view>
|
||||||
<view class="switch" @tap='goforgotPassword' style="left:10%">
|
<view class="switch" @tap='goforgotPassword' style="left:10%">
|
||||||
@ -24,7 +24,8 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
appLoginpwd
|
appLoginpwd,
|
||||||
|
createMobileToken
|
||||||
} from '../../api/login/index.js'
|
} from '../../api/login/index.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@ -42,6 +43,13 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//密码登录
|
//密码登录
|
||||||
|
login() {
|
||||||
|
var that = this
|
||||||
|
createMobileToken().then(res => {
|
||||||
|
uni.setStorageSync("token", res.data.token)
|
||||||
|
that.pwdlogin()
|
||||||
|
})
|
||||||
|
},
|
||||||
pwdlogin() {
|
pwdlogin() {
|
||||||
appLoginpwd(this.phone, this.password).then(res => {
|
appLoginpwd(this.phone, this.password).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
|||||||
@ -68,7 +68,6 @@
|
|||||||
queryLogisticsInfo(goOrderNo, expressNo) {
|
queryLogisticsInfo(goOrderNo, expressNo) {
|
||||||
queryLogistics(goOrderNo, expressNo).then(res => {
|
queryLogistics(goOrderNo, expressNo).then(res => {
|
||||||
this.expresslist = res.data
|
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 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();
|
let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds() : new Date().getSeconds();
|
||||||
that.gettime = yy + '/' + mm + '/' + dd + ' ' + hh + ':' + mf + ':' + ss;
|
that.gettime = yy + '/' + mm + '/' + dd + ' ' + hh + ':' + mf + ':' + ss;
|
||||||
console.log(that.gettime)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
|||||||
137
pages/lookrate/lookrate.scss
Normal file
137
pages/lookrate/lookrate.scss
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
65
pages/lookrate/lookrate.vue
Normal file
65
pages/lookrate/lookrate.vue
Normal 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>
|
||||||
@ -275,16 +275,11 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
onUnload() {
|
|
||||||
// 页面卸载时设置插件选点数据为null,防止再次进入页面,geLocation返回的是上次选点结果
|
|
||||||
chooseLocation.setLocation(null);
|
|
||||||
},
|
|
||||||
//带参返回
|
//带参返回
|
||||||
onShow() {
|
onShow() {
|
||||||
let that = this
|
let that = this
|
||||||
uni.$on('disease', function(data) {
|
uni.$on('disease', function(data) {
|
||||||
that.patientDiseaseInfoList = JSON.parse(data.disease)
|
that.patientDiseaseInfoList = JSON.parse(data.disease)
|
||||||
console.log(that.patientDiseaseInfoList)
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -40,7 +40,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="" v-if="servelist.length>0&&choicetab==false">
|
<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>
|
<image :src="item.itemPictureUrl"></image>
|
||||||
<view class="huanyao">{{item.nurseItemName}}
|
<view class="huanyao">{{item.nurseItemName}}
|
||||||
</view>
|
</view>
|
||||||
@ -48,7 +49,7 @@
|
|||||||
<u-rate :count="5" value="2"></u-rate>
|
<u-rate :count="5" value="2"></u-rate>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="servicetime">服务时长:{{item.serveDurationUnit?item.serveDurationUnit:'0'}}</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 class="price">¥{{item.nurseItemPrice==null?'0':item.nurseItemPrice}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -128,13 +129,13 @@
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.usershow = false
|
this.usershow = false
|
||||||
},
|
|
||||||
onLoad(options) {
|
|
||||||
this.nurseStationId = options.nurseStationId
|
|
||||||
this.getInfo()
|
this.getInfo()
|
||||||
this.serveinfo()
|
this.serveinfo()
|
||||||
this.productinfo()
|
this.productinfo()
|
||||||
},
|
},
|
||||||
|
onLoad(options) {
|
||||||
|
this.nurseStationId = options.nurseStationId
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goappointments(item) {
|
goappointments(item) {
|
||||||
let that = this
|
let that = this
|
||||||
@ -158,8 +159,10 @@
|
|||||||
getInfo() {
|
getInfo() {
|
||||||
introductionList(this.nurseStationId).then(res => {
|
introductionList(this.nurseStationId).then(res => {
|
||||||
res.data.stationIntroducePcitureUrl = baseurl + res.data.stationIntroducePcitureUrl
|
res.data.stationIntroducePcitureUrl = baseurl + res.data.stationIntroducePcitureUrl
|
||||||
res.data.agencyIntroduce = res.data.agencyIntroduce.replace(/\<img/gi,
|
if (res.data.agencyIntroduce) {
|
||||||
"<br/><img class='richPic'")
|
res.data.agencyIntroduce = res.data.agencyIntroduce.replace(/\<img/gi,
|
||||||
|
"<br/><img class='richPic'")
|
||||||
|
}
|
||||||
this.list = res.data
|
this.list = res.data
|
||||||
if (res.data.nurseStationLabelList) {
|
if (res.data.nurseStationLabelList) {
|
||||||
this.nurseStationLabelList = res.data.nurseStationLabelList
|
this.nurseStationLabelList = res.data.nurseStationLabelList
|
||||||
@ -167,6 +170,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
serveinfo() {
|
serveinfo() {
|
||||||
|
this.pageNum = 1
|
||||||
itemList(this.nurseStationId, this.pageSize, this.pageNum).then(res => {
|
itemList(this.nurseStationId, this.pageSize, this.pageNum).then(res => {
|
||||||
res.rows.forEach(e => {
|
res.rows.forEach(e => {
|
||||||
e.itemPictureUrl = baseurl + e.itemPictureUrl
|
e.itemPictureUrl = baseurl + e.itemPictureUrl
|
||||||
@ -176,6 +180,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
productinfo() {
|
productinfo() {
|
||||||
|
this.pageNum = 1
|
||||||
productInformation(this.nurseStationId, this.pageNum, this.pageSize).then(res => {
|
productInformation(this.nurseStationId, this.pageNum, this.pageSize).then(res => {
|
||||||
res.rows.forEach(e => {
|
res.rows.forEach(e => {
|
||||||
e.goodsPictureUrl = baseurl + e.goodsPictureUrl
|
e.goodsPictureUrl = baseurl + e.goodsPictureUrl
|
||||||
@ -187,7 +192,6 @@
|
|||||||
testTabClick(index) {
|
testTabClick(index) {
|
||||||
this.tabIndex = index
|
this.tabIndex = index
|
||||||
this.choicetab = this.tabIndex
|
this.choicetab = this.tabIndex
|
||||||
console.log(this.choicetab)
|
|
||||||
},
|
},
|
||||||
//跳转商品详情页
|
//跳转商品详情页
|
||||||
goCommodityDetails(item) {
|
goCommodityDetails(item) {
|
||||||
@ -201,11 +205,15 @@
|
|||||||
url: '/pages/information/information'
|
url: '/pages/information/information'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
goProjectDetails(item) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/ProjectDetails/ProjectDetails?stationId=${item.stationId}&stationItemId=${item.stationItemId}&stationItemPriceId=${item.stationItemPriceId}`,
|
||||||
|
})
|
||||||
|
},
|
||||||
gophone() {
|
gophone() {
|
||||||
var that = this
|
var that = this
|
||||||
uni.getSystemInfo({
|
uni.getSystemInfo({
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
// console.log(res)
|
|
||||||
if (res.platform == 'ios') {
|
if (res.platform == 'ios') {
|
||||||
uni.makePhoneCall({
|
uni.makePhoneCall({
|
||||||
phoneNumber: that.list.phone //仅为示例
|
phoneNumber: that.list.phone //仅为示例
|
||||||
@ -215,15 +223,12 @@
|
|||||||
itemList: ['呼叫', ],
|
itemList: ['呼叫', ],
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
if (res.tapIndex + 1 == 1) {
|
if (res.tapIndex + 1 == 1) {
|
||||||
console.log(1)
|
|
||||||
uni.makePhoneCall({
|
uni.makePhoneCall({
|
||||||
phoneNumber: that.list.phone //仅为示例
|
phoneNumber: that.list.phone //仅为示例
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
|
|
||||||
},
|
},
|
||||||
fail: function(res) {
|
fail: function(res) {
|
||||||
// console.log(res.errMsg);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -233,7 +238,6 @@
|
|||||||
},
|
},
|
||||||
onReachBottom() { //下滑加载
|
onReachBottom() { //下滑加载
|
||||||
if (this.choicetab == 0) {
|
if (this.choicetab == 0) {
|
||||||
console.log(1)
|
|
||||||
if (this.servelist.length >= this.servetotal) {} else {
|
if (this.servelist.length >= this.servetotal) {} else {
|
||||||
this.pageNum++
|
this.pageNum++
|
||||||
itemList(this.nurseStationId, this.pageSize, this.pageNum).then(res => {
|
itemList(this.nurseStationId, this.pageSize, this.pageNum).then(res => {
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
.app {
|
.app {
|
||||||
|
padding: 0;
|
||||||
.time{
|
.time{
|
||||||
height: 80rpx;
|
height: 80rpx;
|
||||||
width: 95%;
|
width: 95%;
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
<view class="OrderStatus" v-if="order.orderStatus=='WAIT_PAY'&×tamp<=0">
|
<view class="OrderStatus" v-if="order.orderStatus=='WAIT_PAY'&×tamp<=0">
|
||||||
订单已关闭
|
订单已关闭
|
||||||
</view>
|
</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>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
@ -68,6 +68,17 @@
|
|||||||
去支付
|
去支付
|
||||||
</view>
|
</view>
|
||||||
</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>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -76,6 +87,9 @@
|
|||||||
goodsOrder
|
goodsOrder
|
||||||
} from '@/api/CommodityOrder/index.js'
|
} from '@/api/CommodityOrder/index.js'
|
||||||
import baseurl from '@/api/baseurl.js'
|
import baseurl from '@/api/baseurl.js'
|
||||||
|
import {
|
||||||
|
appletGoodsOrderPay
|
||||||
|
} from '@/api/confirmOrder/index.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -89,6 +103,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
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() {
|
gorefundType() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
100
pages/ratesuccess/ratesuccess.vue
Normal file
100
pages/ratesuccess/ratesuccess.vue
Normal 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>
|
||||||
@ -59,7 +59,6 @@
|
|||||||
//退款页面
|
//退款页面
|
||||||
goApplforrefund(e) {
|
goApplforrefund(e) {
|
||||||
if (e == 1) {
|
if (e == 1) {
|
||||||
console.log(e)
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/Applforrefund/Applforrefund?typename=${'我要退款(无需退货)'}&order=${JSON.stringify(this.order)}`
|
url: `/pages/Applforrefund/Applforrefund?typename=${'我要退款(无需退货)'}&order=${JSON.stringify(this.order)}`
|
||||||
})
|
})
|
||||||
@ -73,7 +72,6 @@
|
|||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.baseurl = baseurl
|
this.baseurl = baseurl
|
||||||
this.order = JSON.parse(options.order)
|
this.order = JSON.parse(options.order)
|
||||||
console.log(this.order)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -111,7 +111,6 @@
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
appRegister(this.patientName, this.phone, this.password, this.verification).then(res => {
|
appRegister(this.patientName, this.phone, this.password, this.verification).then(res => {
|
||||||
console.log(res)
|
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '注册成功,前往登录',
|
title: '注册成功,前往登录',
|
||||||
@ -231,7 +230,6 @@
|
|||||||
// },
|
// },
|
||||||
// fail: (e) => {
|
// fail: (e) => {
|
||||||
// uni.hideLoading()
|
// uni.hideLoading()
|
||||||
// console.log('error');
|
|
||||||
// //新建UserList
|
// //新建UserList
|
||||||
// uni.setStorage({
|
// uni.setStorage({
|
||||||
// key: 'UserList',
|
// key: 'UserList',
|
||||||
@ -250,7 +248,6 @@
|
|||||||
// }, 1000)
|
// }, 1000)
|
||||||
// },
|
// },
|
||||||
// fail: function(e) {
|
// fail: function(e) {
|
||||||
// console.log('set error:' + JSON.stringify(e));
|
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
|
|||||||
@ -3,9 +3,8 @@
|
|||||||
<view class="cards">
|
<view class="cards">
|
||||||
<view class="item" :style="{background:listcolor[index]}" @tap='goProductList(item)'
|
<view class="item" :style="{background:listcolor[index]}" @tap='goProductList(item)'
|
||||||
v-for="(item,index) in goodsCategoryList" :key="index">
|
v-for="(item,index) in goodsCategoryList" :key="index">
|
||||||
<image :style="index==4?'top:0;border-radius: 20rpx;width:100%;height: 300rpx;':''"
|
<image :src="item.goodsCategoryPicture" mode=""></image>
|
||||||
:src="item.goodsCategoryPicture" mode=""></image>
|
<view class="title" style="font-size:42rpx">
|
||||||
<view class="title" style="font-size:42rpx" v-if="index!=4">
|
|
||||||
{{item.goodsCategoryName}}
|
{{item.goodsCategoryName}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -50,7 +49,6 @@
|
|||||||
methods: {
|
methods: {
|
||||||
//跳转到商品列表页面
|
//跳转到商品列表页面
|
||||||
goProductList(item) {
|
goProductList(item) {
|
||||||
console.log(item)
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/ProductList/ProductList?title=${item.goodsCategoryName}&goodsCategoryId=${item.id}`
|
url: `/pages/ProductList/ProductList?title=${item.goodsCategoryName}&goodsCategoryId=${item.id}`
|
||||||
})
|
})
|
||||||
@ -62,7 +60,6 @@
|
|||||||
e.goodsCategoryPicture = baseurl + e.goodsCategoryPicture
|
e.goodsCategoryPicture = baseurl + e.goodsCategoryPicture
|
||||||
this.goodsCategoryList.push(e)
|
this.goodsCategoryList.push(e)
|
||||||
})
|
})
|
||||||
console.log(this.goodsCategoryList)
|
|
||||||
this.total = res.total
|
this.total = res.total
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -117,11 +117,9 @@
|
|||||||
this.nursestationlist = res.rows
|
this.nursestationlist = res.rows
|
||||||
this.mask = false
|
this.mask = false
|
||||||
this.total = res.total
|
this.total = res.total
|
||||||
// console.log(this.nursestationlist)
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
godetails(item) {
|
godetails(item) {
|
||||||
console.log(item)
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/nursestation/nursestation?nurseStationId=${item.nurseStationId}`
|
url: `/pages/nursestation/nursestation?nurseStationId=${item.nurseStationId}`
|
||||||
})
|
})
|
||||||
@ -168,7 +166,7 @@
|
|||||||
// this.requestinfo()
|
// this.requestinfo()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
onLoad() {
|
onShow() {
|
||||||
var that = this
|
var that = this
|
||||||
try {
|
try {
|
||||||
const value = uni.getStorageSync('patientId');
|
const value = uni.getStorageSync('patientId');
|
||||||
@ -199,6 +197,7 @@
|
|||||||
}
|
}
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
},
|
},
|
||||||
|
onLoad() {},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|||||||
@ -147,35 +147,26 @@
|
|||||||
const value = uni.getStorageSync('patientId');
|
const value = uni.getStorageSync('patientId');
|
||||||
if (value) {
|
if (value) {
|
||||||
getExistPatientByPatientId(value).then(res => {
|
getExistPatientByPatientId(value).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200 && res.msg == 'LOGIN') {
|
||||||
if (res.msg == 'LOGIN') {
|
appPersonal(value).then(response => {
|
||||||
appPersonal(value).then(response => {
|
if (response.code == 200) {
|
||||||
if (response.code == 200) {
|
that.appPersonallist = response.data
|
||||||
that.appPersonallist = response.data
|
} else {
|
||||||
} else {
|
that.$refs.uToast.show({
|
||||||
that.$refs.uToast.show({
|
title: '账号异常,请重新登录',
|
||||||
title: '账号异常,请重新登录',
|
type: 'error',
|
||||||
type: 'error',
|
duration: '1500'
|
||||||
duration: '1500'
|
})
|
||||||
})
|
that.removeS()
|
||||||
that.removeS()
|
}
|
||||||
}
|
})
|
||||||
})
|
|
||||||
} else {
|
|
||||||
that.$refs.uToast.show({
|
|
||||||
title: '当前用户信息不存在,请重新登录',
|
|
||||||
type: 'error',
|
|
||||||
duration: '1500'
|
|
||||||
})
|
|
||||||
that.removeS()
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
that.removeS()
|
|
||||||
that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
title: '登录异常,请重新登录',
|
title: '登录异常,请重新登录',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1500'
|
duration: '1500'
|
||||||
})
|
})
|
||||||
|
that.removeS()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -196,17 +187,13 @@
|
|||||||
uni.removeStorageSync('patientId');
|
uni.removeStorageSync('patientId');
|
||||||
uni.removeStorageSync('phone');
|
uni.removeStorageSync('phone');
|
||||||
uni.removeStorageSync('password');
|
uni.removeStorageSync('password');
|
||||||
that.$refs.uToast.show({
|
uni.removeStorageSync('token');
|
||||||
title: '退出账号成功',
|
|
||||||
type: 'success',
|
|
||||||
duration: '1000'
|
|
||||||
})
|
|
||||||
if (that.timer) {
|
if (that.timer) {
|
||||||
clearTimeout(that.timer)
|
clearTimeout(that.timer)
|
||||||
}
|
}
|
||||||
that.timer = setTimeout(e => {
|
that.timer = setTimeout(e => {
|
||||||
uni.navigateBack({
|
uni.reLaunch({
|
||||||
delta: 1
|
url: "/pages/login/login"
|
||||||
})
|
})
|
||||||
}, 1000)
|
}, 1000)
|
||||||
},
|
},
|
||||||
@ -217,7 +204,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onBackPress(options) {
|
onBackPress(options) {
|
||||||
console.log(options)
|
|
||||||
// if (options.from === 'navigateBack') {
|
// if (options.from === 'navigateBack') {
|
||||||
// return false;
|
// return false;
|
||||||
// }
|
// }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user