Compare commits

...

10 Commits

Author SHA1 Message Date
辉
c67cae7caf xg 2024-11-14 16:09:31 +08:00
辉
f6e690d7be xg 2024-11-13 15:03:50 +08:00
辉
b2204fb91b 修改 2024-09-26 15:18:01 +08:00
辉
1ea2ea6640 xg 2024-07-10 09:10:50 +08:00
辉
30f9144865 修改 2024-07-08 09:23:34 +08:00
辉
749e245824 xg 2024-07-02 17:09:37 +08:00
辉
e9553a77da 修改登录方式 2024-07-01 18:02:26 +08:00
辉
d70b5af884 修改 2024-06-26 10:36:59 +08:00
辉
6fffb0a624 加密 2024-06-25 18:25:50 +08:00
辉
49cc34fb07 xg 2024-06-17 16:33:34 +08:00
309 changed files with 16250 additions and 1024 deletions

View File

@ -6,7 +6,11 @@
createMobileToken createMobileToken
} from '@/api/pages/login/index.js' } from '@/api/pages/login/index.js'
export default { export default {
onLaunch: function() {}, onLaunch: function() {
createMobileToken().then(res => {
uni.setStorageSync("token", res.data.token)
})
},
methods: { methods: {
...mapMutations(['socketOpenfalse']), ...mapMutations(['socketOpenfalse']),
...mapMutations(['scoket']), ...mapMutations(['scoket']),
@ -15,9 +19,6 @@
if (uni.getStorageSync('patientId') && !this.$store.state.socketOpen) { if (uni.getStorageSync('patientId') && !this.$store.state.socketOpen) {
this.scoket(); this.scoket();
} }
createMobileToken().then(res => {
uni.setStorageSync("token", res.data.token)
})
}, },
onHide: function() { onHide: function() {
this.socketOpenfalse(); this.socketOpenfalse();

33
api/crypto.js Normal file
View File

@ -0,0 +1,33 @@
import CryptoJS from "@/questionnaire/crypto-js/crypto-js.js"
const CRYPTOJSKEY = "60afL1G1b39c5Z27";
function encrypt(plaintText) {
var options = {
mode: CryptoJS.mode.ECB,
padding: CryptoJS.pad.Pkcs7
};
var key = CryptoJS.enc.Utf8.parse(CRYPTOJSKEY);
var encryptedData = CryptoJS.AES.encrypt(plaintText, key, options);
var encryptedBase64Str = encryptedData.toString().replace(/\//g, "_");
encryptedBase64Str = encryptedBase64Str.replace(/\+/g, "-");
return encryptedBase64Str;
}
//解密
function decrypt(encryptedBase64Str) {
var vals = encryptedBase64Str.replace(/_/g, '/');
var options = {
mode: CryptoJS.mode.ECB,
padding: CryptoJS.pad.Pkcs7
};
var key = CryptoJS.enc.Utf8.parse(CRYPTOJSKEY);
var decryptedData = CryptoJS.AES.decrypt(vals, key, options);
var decryptedStr = CryptoJS.enc.Utf8.stringify(decryptedData);
return decryptedStr
}
export {
encrypt,
decrypt
}

View File

@ -12,7 +12,7 @@ export function getOpenId(code) {
} }
// 获取当前注册居民 // 获取当前注册居民
export function getCurrentUser(openid) { export function logingetCurrentUser(openid) {
return request({ return request({
url: `/applet/register/getCurrentResident/${openid}`, url: `/applet/register/getCurrentResident/${openid}`,
method: 'GET', method: 'GET',

View File

@ -22,9 +22,18 @@ export function getwxPhoneNumber(code) {
} }
// 判断是否注册 // 判断是否注册
export function isRegistered(logincode,phonecode) { export function isRegistered(logincode, phonecode) {
return request({ return request({
url: `/applet/register/login/${logincode}/${phonecode}`, url: `/applet/register/login/${logincode}/${phonecode}`,
method: 'GET' method: 'GET'
}) })
} }
//静默登录
export function login(loginCode) {
return request({
url: `/applet/register/login/${loginCode}`,
method: 'GET'
})
}

View File

@ -33,7 +33,7 @@ export function getFamilyList(openid, patientCode) {
export function registerdata(data) { export function registerdata(data) {
return request({ return request({
url: '/applet/register', url: '/applet/register',
method: 'POST', method: 'post',
data: data data: data
}) })
} }

View File

@ -4,7 +4,7 @@ import request from "../../request.js"
export function registerdata(data) { export function registerdata(data) {
return request({ return request({
url: '/applet/register', url: '/applet/register',
method: 'POST', method: 'post',
data: data data: data
}) })
} }

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
export function AppIdentification(patientId) { export function AppIdentification(patientId) {

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
//退款原因 //退款原因
export function refundReason() { export function refundReason() {
@ -14,7 +14,7 @@ export function refundReason() {
export function refund(data) { export function refund(data) {
return request({ return request({
url: `/nurseApplet/nursingOrder/edit`, url: `/nurseApplet/nursingOrder/edit`,
method: 'POST', method: 'post',
data, data,
header: { header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
export function scorelist(data) { export function scorelist(data) {
return request({ return request({

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
// 查询商品详细列表 // 查询商品详细列表
export function goodsDetails(goodsInfoId, patientId) { export function goodsDetails(goodsInfoId, patientId) {
return request({ return request({

View File

@ -1,11 +1,11 @@
import request from "../../request.js" import request from "@/api/request.js"
//收货 //收货
export function confirmReceipt(orderNo) { export function confirmReceipt(orderNo) {
return request({ return request({
url: `/nurseApplet/nursingStationGoods/confirmReceipt?orderNo=${orderNo}`, url: `/nurseApplet/nursingStationGoods/confirmReceipt?orderNo=${orderNo}`,
method: 'POST', method: 'post',
header: { header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
}, },

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
//支付成功调取 //支付成功调取
export function pushMeg(data) { export function pushMeg(data) {

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
//列表 //列表
export function cardPackagelist(data) { export function cardPackagelist(data) {

View File

@ -1,11 +1,12 @@
import request from "../../request.js" import request from "@/api/request.js"
export function getHeathHousingList(pageNum, pageSize) { export function getHeathHousingList(pageNum, pageSize) {
return request({ return request({
url: `/nurseApplet/nearbyNursingStation/getHeathHousingList?pageNum=${pageNum}&pageSize=${pageSize}&informationCategoryType=HEALTH_NOUS`, url: `/nurseApplet/nearbyNursingStation/getHeathHousingList?pageNum=${pageNum}&pageSize=${pageSize}&informationCategoryType=HEALTH_NOUS`,
method: 'get', method: 'get',
header: { header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'),
region: uni.getStorageSync('region'),
}, },
}) })
} }

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
export function appServiceOrder(id,pageSize,pageNum) { export function appServiceOrder(id,pageSize,pageNum) {
return request({ return request({
url: `/nurseApp/login/appServiceOrder?pageSize=${pageSize}&pageNum=${pageNum}&patientId=${id}`, url: `/nurseApp/login/appServiceOrder?pageSize=${pageSize}&pageNum=${pageNum}&patientId=${id}`,

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
export function prizelist(data) { export function prizelist(data) {
return request({ return request({

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
export function goodsList(pageSize, pageNum, goodsCategoryId, goodsName) { export function goodsList(pageSize, pageNum, goodsCategoryId, goodsName) {
return request({ return request({

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
export function getAppStationItemInfo(stationId, stationItemId, stationItemPriceId) { export function getAppStationItemInfo(stationId, stationItemId, stationItemPriceId) {
return request({ return request({

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
// 获取项目 // 获取项目
export function getAppointProject(patientId,identity) { export function getAppointProject(patientId,identity) {
return request({ return request({

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
export function getAppointmentDetailsInfo(orderNo) { export function getAppointmentDetailsInfo(orderNo) {
@ -14,7 +14,7 @@ export function getAppointmentDetailsInfo(orderNo) {
export function addAppointmentEvaluate(data) { export function addAppointmentEvaluate(data) {
return request({ return request({
url: `/nurseApp/orderEvaluate/addAppointmentEvaluate`, url: `/nurseApp/orderEvaluate/addAppointmentEvaluate`,
method: 'POST', method: 'post',
data, data,
header: { header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
export function getAppletOrderList(parentId,orderStatus,cardNo,region,pageNum,pageSize) { export function getAppletOrderList(parentId,orderStatus,cardNo,region,pageNum,pageSize) {
return request({ return request({
url: `/nurseApplet/nursingOrder/getAppletOrderList?parentId=${parentId}&orderStatus=${orderStatus}&cardNo=${cardNo}&region=${region}&pageNum=${pageNum}&pageSize=${pageSize}`, url: `/nurseApplet/nursingOrder/getAppletOrderList?parentId=${parentId}&orderStatus=${orderStatus}&cardNo=${cardNo}&region=${region}&pageNum=${pageNum}&pageSize=${pageSize}`,
@ -15,7 +15,7 @@ export function getAppletOrderList(parentId,orderStatus,cardNo,region,pageNum,pa
export function addAppointmentEvaluate(data) { export function addAppointmentEvaluate(data) {
return request({ return request({
url: `/nurseApp/orderEvaluate/addAppointmentEvaluate`, url: `/nurseApp/orderEvaluate/addAppointmentEvaluate`,
method: 'POST', method: 'post',
data, data,
header: { header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
@ -26,7 +26,7 @@ export function addAppointmentEvaluate(data) {
export function insertGoodsEvaluate(data) { export function insertGoodsEvaluate(data) {
return request({ return request({
url: `/nurseApp/orderEvaluate/insertGoodsEvaluate`, url: `/nurseApp/orderEvaluate/insertGoodsEvaluate`,
method: 'POST', method: 'post',
data, data,
header: { header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')

View File

@ -1,9 +1,9 @@
import request from "../../request.js" import request from "@/api/request.js"
export function approvalList(data) { export function approvalList(data) {
return request({ return request({
url: `/applet/score/prizeExchange/approvalList`, url: `/applet/score/prizeExchange/approvalList`,
method: 'POST', method: 'post',
data: data, data: data,
header: { header: {
region: uni.getStorageSync('region'), region: uni.getStorageSync('region'),

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
export function getAppPatientList(id) { export function getAppPatientList(id) {
return request({ return request({

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
export function cancellationOrder(appointmentOrderId,cancelAppointmentReason) { export function cancellationOrder(appointmentOrderId,cancelAppointmentReason) {
return request({ return request({

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
//确认支付 //确认支付
export function addStationGoodsOrder(data) { export function addStationGoodsOrder(data) {

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
export function getListByDoctor(doctorId) { export function getListByDoctor(doctorId) {
return request({ return request({
@ -14,7 +14,7 @@ export function getListByDoctor(doctorId) {
export function addHealthConsultationOrder(data) { export function addHealthConsultationOrder(data) {
return request({ return request({
url: `/nurseApp/healthConsultation/addHealthConsultationOrder`, url: `/nurseApp/healthConsultation/addHealthConsultationOrder`,
method: 'POST', method: 'post',
data, data,
header: { header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
export function selectCoupon(pageNum, pageSize, patientId, couponstatus) { export function selectCoupon(pageNum, pageSize, patientId, couponstatus) {

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
export function prizeExchangelist(data) { export function prizeExchangelist(data) {
return request({ return request({

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
// 获取家庭成员详情 // 获取家庭成员详情
export function getInfo(patientCode, openid) { export function getInfo(patientCode, openid) {
return request({ return request({

View File

@ -1,4 +1,11 @@
import baseurl from '../../baseurl.js' import baseurl from '@/api/baseurl.js'
import {
witch
} from "@/api/witch";
import {
encrypt,
decrypt
} from '@/api/crypto.js'
var request = function(config) { var request = function(config) {
return new Promise((resolve, rejected) => { return new Promise((resolve, rejected) => {
@ -9,6 +16,10 @@ var request = function(config) {
timeout: 60000, timeout: 60000,
header: config.header, header: config.header,
success(res) { success(res) {
if (witch == '1') {
res.data = decrypt(res.data)
res.data = JSON.parse(res.data)
}
resolve(res.data) resolve(res.data)
}, },
fail(err) { fail(err) {

View File

@ -1,9 +1,9 @@
import request from "../../request.js" import request from "@/api/request.js"
export function insertGoodsEvaluate(data) { export function insertGoodsEvaluate(data) {
return request({ return request({
url: `/nurseApp/orderEvaluate/insertGoodsEvaluate`, url: `/nurseApp/orderEvaluate/insertGoodsEvaluate`,
method: 'POST', method: 'post',
data, data,
header: { header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
@ -15,7 +15,7 @@ export function insertGoodsEvaluate(data) {
export function uploadEvaluatePictureUrl(data) { export function uploadEvaluatePictureUrl(data) {
return request({ return request({
url: `/nurseApp/orderEvaluate/uploadEvaluatePictureUrl`, url: `/nurseApp/orderEvaluate/uploadEvaluatePictureUrl`,
method: 'POST', method: 'post',
data, data,
header: { header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
//签到 //签到

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
export function accompanyingDiagnosis(data) { export function accompanyingDiagnosis(data) {

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
//区街道list //区街道list
export function getRegionAndStreetInfo() { export function getRegionAndStreetInfo() {

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
// 物流查询接口 // 物流查询接口
export function queryLogistics(orderNo,expressNo){ export function queryLogistics(orderNo,expressNo){
return request({ return request({

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
// 修改信息 // 修改信息
export function lookrate(orderNo) { export function lookrate(orderNo) {

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
//新人优惠券 //新人优惠券

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
//齐鲁名医 //齐鲁名医
export function selectDepartmentNoPage() { export function selectDepartmentNoPage() {

View File

@ -1,10 +1,10 @@
import request from "../../request.js" import request from "@/api/request.js"
// 修改信息 // 修改信息
export function updateInformation(data){ export function updateInformation(data){
return request({ return request({
url: '/nurseApp/login/updateInformation', url: '/nurseApp/login/updateInformation',
method: 'POST', method: 'post',
data, data,
header: { header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
// 根据被护理人id查询基本信息 // 根据被护理人id查询基本信息
export function goodPatientInfo(patientId) { export function goodPatientInfo(patientId) {
@ -14,7 +14,7 @@ export function goodPatientInfo(patientId) {
export function addnursingStation(data) { export function addnursingStation(data) {
return request({ return request({
url: '/nurseApplet/nursingStationGoods/add', url: '/nurseApplet/nursingStationGoods/add',
method: 'POST', method: 'post',
data, data,
header: { header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
@ -27,7 +27,7 @@ export function addnursingStation(data) {
export function updatenursingStation(data) { export function updatenursingStation(data) {
return request({ return request({
url: '/nurseApplet/nursingStationGoods/edit', url: '/nurseApplet/nursingStationGoods/edit',
method: 'POST', method: 'post',
data, data,
header: { header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
@ -98,7 +98,7 @@ export function getSubordinateInfo(id) {
export function updateDefaultAddress(data) { export function updateDefaultAddress(data) {
return request({ return request({
url: `/nurseApplet/nursingStationGoods/updateDefaultAddress`, url: `/nurseApplet/nursingStationGoods/updateDefaultAddress`,
method: 'POST', method: 'post',
data, data,
header: { header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
export function introductionList(id, longitude, latitude) { export function introductionList(id, longitude, latitude) {

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
// 获取预约列表 // 获取预约列表
export function getOrderList(patientId,identity,pageNum,pageSize) { export function getOrderList(patientId,identity,pageNum,pageSize) {
return request({ return request({

View File

@ -1,6 +1,5 @@
// import request from '../jsIndex'
import request from "../../request.js"
import request from "@/api/request.js"
// 济南 // 济南
// 预约 // 预约

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
// 获取筛查结果列表 // 获取筛查结果列表
export function screeningResultList(patientId,identity,pageNum,pageSize) { export function screeningResultList(patientId,identity,pageNum,pageSize) {
return request({ return request({

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
// 获取最新的筛查结果 // 获取最新的筛查结果
export function lastScreeningResult(identity,projectld) { export function lastScreeningResult(identity,projectld) {
return request({ return request({

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
export function goodsCategoryList(pageSize, pageNum) { export function goodsCategoryList(pageSize, pageNum) {
return request({ return request({

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
export function nearbyList(pageSize, pageNum, longitude, latitude,ClassifyInfoId,itemClassId,searchName) { export function nearbyList(pageSize, pageNum, longitude, latitude,ClassifyInfoId,itemClassId,searchName) {
return request({ return request({

View File

@ -1,4 +1,5 @@
import request from "@/api/request.js" import request from "@/api/request.js"
export function getUserSig(userId) { export function getUserSig(userId) {
return request({ return request({
url: '/nurseApplet/consultation/getUserSig/'+userId, url: '/nurseApplet/consultation/getUserSig/'+userId,

View File

@ -1,4 +1,4 @@
import request from "../../request.js" import request from "@/api/request.js"
export function riskWarning(identity) { export function riskWarning(identity) {
return request({ return request({

View File

@ -22,7 +22,7 @@ export function getSignProtocol(cardNo) {
} }
}) })
} }
export function getHospitalPersonInfo(personCode,status) { export function getHospitalPersonInfo(personCode) {
return request({ return request({
url: `/nurseApplet/consultationInfo/getHospitalPersonInfo?personCode=${personCode}&&status=${1}`, url: `/nurseApplet/consultationInfo/getHospitalPersonInfo?personCode=${personCode}&&status=${1}`,
method: 'get', method: 'get',

View File

@ -4,7 +4,7 @@ import request from "../../request.js"
export function list(data) { export function list(data) {
return request({ return request({
url: '/applet/service/apply/list', url: '/applet/service/apply/list',
method: 'POST', method: 'post',
data:data data:data
}) })
} }

View File

@ -23,7 +23,7 @@ export function getChatRecord(data) {
export function markRead(data) { export function markRead(data) {
return request({ return request({
url: `/nurseApplet/chatRecord/updateReadStatus`, url: `/nurseApplet/chatRecord/updateReadStatus`,
method: 'PUT', method: 'put',
data: data data: data
}) })
} }

View File

@ -1,4 +1,11 @@
import baseurl from './baseurl.js' import baseurl from './baseurl.js'
import {
encrypt,
decrypt
} from '@/api/crypto.js'
import {
witch
} from "@/api/witch";
var request = function(config) { var request = function(config) {
if (uni.getStorageSync('openid')) { if (uni.getStorageSync('openid')) {
@ -12,6 +19,16 @@ var request = function(config) {
appletType: '' appletType: ''
} }
} }
if (witch == '1') {
if (config.method == 'post' && config.url != '/applet/score/prizeExchange/approvalList') {
config.data = encrypt(JSON.stringify(config.data))
}
if (config.url == '/nurseApplet/chatRecord/updateReadStatus' || config.url ==
'/applet/register/editPrimaryAccountFlag') {
config.data = encrypt(JSON.stringify(config.data))
}
}
const urls = config.url.split('?')[0] const urls = config.url.split('?')[0]
if (config.url != '/nurseApplet/chatRecord/updateReadStatus' && config.url != if (config.url != '/nurseApplet/chatRecord/updateReadStatus' && config.url !=
"/nurseApplet/chatRecord/sendMessage" && config.url != "/nurseApplet/chatRecord/sendMessage" && config.url !=
@ -30,6 +47,14 @@ var request = function(config) {
header: config.header, header: config.header,
success(res) { success(res) {
uni.hideLoading(); uni.hideLoading();
if (witch == '1') {
if (config.url != '/applet/score/prizeExchange/approvalList' && urls !=
'/nurseApplet/nearbyNursingStation/getHeathHousingList') {
res.data = decrypt(res.data)
res.data = JSON.parse(res.data)
}
}
console.log(res.data)
resolve(res.data) resolve(res.data)
}, },
fail(err) { fail(err) {

View File

@ -1,9 +1,9 @@
var socketurl = "wss://hekou-nurse-api.xinyilu.cn/webSocket/"; var socketurl = "wss://hekou-nurse-api.xinyilu.cn/webSocket/";
// var socketurl = "wss://1608.xinelu.cn/webSocket/"; // var socketurl = "ws://192.168.16.250:8098/webSocket/";
var dzsocketurl = "wss://hekou-nurse-api.xinyilu.cn/fado/dz/webSocket/"; // SN码设备德州 // var socketurl = "ws://8.131.93.145:54088/webSocket/";
var dysocketurl = "wss://hekou-nurse-api.xinyilu.cn/fado/dy/webSocket/"; // SN码设备东营
export { export {
socketurl, socketurl,
dzsocketurl,
dysocketurl,
} }

4
api/witch.js Normal file
View File

@ -0,0 +1,4 @@
var witch = '1' //1加密 2不加密
export { witch }

View File

@ -7,10 +7,10 @@
"version": "1.3.1", "version": "1.3.1",
"description": "图片不失帧,保留原有画质,canvas方法扩展,暴露原生实例,可自行扩展,最好用的canvas插件", "description": "图片不失帧,保留原有画质,canvas方法扩展,暴露原生实例,可自行扩展,最好用的canvas插件",
"keywords": [ "keywords": [
"canvas", "canvas",
"画布生成图片", "画布生成图片",
"绘制图片", "绘制图片",
"商品海报", "商品海报",
"朋友圈海报" "朋友圈海报"
] ]
} }

View File

@ -9,6 +9,12 @@
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, {
"path": "pages/myinformation/myinformation",
"style": {
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
}, { }, {
"path": "pages/message/message", "path": "pages/message/message",
"style": { "style": {
@ -16,12 +22,6 @@
"onReachBottomDistance": 40, //距离底部多远时触发 单位为px "onReachBottomDistance": 40, //距离底部多远时触发 单位为px
"enablePullDownRefresh": true //设置参数为true "enablePullDownRefresh": true //设置参数为true
} }
}, {
"path": "pages/myinformation/myinformation",
"style": {
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
}, { }, {
"path": "pages/medicalservice/medicalservice", "path": "pages/medicalservice/medicalservice",
"style": { "style": {
@ -358,12 +358,6 @@
"onReachBottomDistance": 20, //距离底部多远时触发 单位为px "onReachBottomDistance": 20, //距离底部多远时触发 单位为px
"enablePullDownRefresh": true //设置参数为true "enablePullDownRefresh": true //设置参数为true
} }
}, {
"path": "cancel/cancel",
"style": {
"navigationBarTitleText": "取消订单",
"enablePullDownRefresh": false
}
}, { }, {
"path": "PointsMall/PointsMall", "path": "PointsMall/PointsMall",
"style": { "style": {
@ -804,7 +798,6 @@
"navigationBarTitleText": "健康自评历史记录", "navigationBarTitleText": "健康自评历史记录",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, { }, {
"path": "HistoryQuestionnaire/HistoryQuestionnaire", "path": "HistoryQuestionnaire/HistoryQuestionnaire",
"style": { "style": {

View File

@ -4,18 +4,18 @@
<view class="" v-if="Number(region)==2&&Number(userinfo.cityCode)==2"> <view class="" v-if="Number(region)==2&&Number(userinfo.cityCode)==2">
<image v-if="countyName=='东营港经济开发区'" :src="baseurl+ '/profile/weChatPicture/dygmainPage.png'" /> <image v-if="countyName=='东营港经济开发区'" :src="baseurl+ '/profile/weChatPicture/dygmainPage.png'" />
<image v-else-if="countyName=='东营经济开发区'" :src="baseurl+ '/profile/weChatPicture/dyjjmainPage.png'" /> <image v-else-if="countyName=='东营经济开发区'" :src="baseurl+ '/profile/weChatPicture/dyjjmainPage.png'" />
<image v-else-if="countyName=='东营区'" :src="baseurl+ '/profile/weChatPicture/dyqmainPage.png'" mode="" /> <image v-else-if="countyName=='东营区'" :src="baseurl+ '/profile/weChatPicture/dyqmainPage.png'" />
<image v-else-if="countyName=='广饶县'" :src="baseurl+ '/profile/weChatPicture/grgmainPage.png'" mode="" /> <image v-else-if="countyName=='广饶县'" :src="baseurl+ '/profile/weChatPicture/grgmainPage.png'" />
<image v-else-if="countyName=='河口区'" :src="baseurl+ '/profile/weChatPicture/hkmainPage.png'" mode="" /> <image v-else-if="countyName=='河口区'" :src="baseurl+ '/profile/weChatPicture/hkmainPage.png'" />
<image v-else-if="countyName=='垦利区'" :src="baseurl+ '/profile/weChatPicture/klgmainPage.png'" mode="" /> <image v-else-if="countyName=='垦利区'" :src="baseurl+ '/profile/weChatPicture/klgmainPage.png'" />
<image v-else-if="countyName=='利津县'" :src="baseurl+ '/profile/weChatPicture/ljgmainPage.png'" mode="" /> <image v-else-if="countyName=='利津县'" :src="baseurl+ '/profile/weChatPicture/ljgmainPage.png'" />
<image v-else :src="baseurl+ '/profile/weChatPicture/dysmainPage.png'" mode="" /> <image v-else :src="baseurl+ '/profile/weChatPicture/dysmainPage.png'" />
</view> </view>
<image v-else-if="Number(region)==2&&Number(userinfo.cityCode)!=2" <image v-else-if="Number(region)==2&&Number(userinfo.cityCode)!=2"
:src="baseurl+ '/profile/weChatPicture/dysmainPage.png'" mode="" /> :src="baseurl+ '/profile/weChatPicture/dysmainPage.png'" />
<image v-else :src="baseurl+ '/profile/weChatPicture/mainPage.png'" mode="" /> <image v-else :src="baseurl+ '/profile/weChatPicture/mainPage.png'" />
<view class="loginmount" @tap="city"> <view class="loginmount" @tap="city">
<image src="../../static/pages/address.png" mode=""></image> <image src="@/static/address.png" />
<text> <text>
{{address?address:'请选择城市'}} {{address?address:'请选择城市'}}
</text> </text>
@ -23,63 +23,63 @@
</view> </view>
<view class="contentcenter" :style="Number(region)==2?'height:450rpx':'height:500rpx'"> <view class="contentcenter" :style="Number(region)==2?'height:450rpx':'height:500rpx'">
<view class="home" @tap="goonline"> <view class="home" @tap="goonline">
<image v-if="Number(region)==2" src="@/static/hkqianyue.png" mode=""></image> <image v-if="Number(region)==2" src="@/static/hkqianyue.png" />
<image v-else src="@/static/qianyue.png" mode=""></image> <image v-else src="@/static/qianyue.png" />
<view class="name"> <view class="name">
家医签约 家医签约
</view> </view>
</view> </view>
<view class="home" @tap="goHealthrecords"> <view class="home" @tap="goHealthrecords">
<image v-if="Number(region)==2" src="@/static/hkhealth.png" mode=""></image> <image v-if="Number(region)==2" :src="baseurl+ '/profile/weChatPicture/hkhealth.png'" />
<image v-else src="@/static/health.png" mode=""></image> <image v-else src="@/static/health.png" />
<view class="name"> <view class="name">
健康档案 健康档案
</view> </view>
</view> </view>
<view class="home" @tap="goappoint" v-if="Number(region)!=2"> <view class="home" @tap="goappoint" v-if="Number(region)!=2">
<image src="@/static/serveappoint.png" mode=""></image> <image src="@/static/serveappoint.png" />
<view class="name"> <view class="name">
服务预约 服务预约
</view> </view>
</view> </view>
<view class="home" @tap="count" v-if='region==2'> <view class="home" @tap="count" v-if='region==2'>
<image src="@/static/dyexchange.png" mode=""></image> <image src="@/static/dyexchange.png" />
<view class="name"> <view class="name">
东营健康信用中心 东营健康信用中心
</view> </view>
</view> </view>
<view class="home" @tap="count" v-if='region!=2'> <view class="home" @tap="count" v-if='region!=2'>
<image src="@/static/exchange.png" mode=""></image> <image src="@/static/exchange.png" />
<view class="name"> <view class="name">
积分兑换 积分兑换
</view> </view>
</view> </view>
<view class="home" @tap="myappointment" v-if="Number(region)!=2"> <view class="home" @tap="myappointment" v-if="Number(region)!=2">
<image src="@/static/appointmen.png" mode=""></image> <image :src="baseurl + '/profile/weChatPicture/appointmen.png'" />
<view class="name"> <view class="name">
我的预约 我的预约
</view> </view>
</view> </view>
<view class="home" @tap="servicerecord" v-if="Number(region)!=2"> <view class="home" @tap="servicerecord" v-if="Number(region)!=2">
<image src="@/static/SERVERECOD.png" mode=""></image> <image src="@/static/SERVERECOD.png" />
<view class="name"> <view class="name">
服务记录 服务记录
</view> </view>
</view> </view>
<view class="home" @tap='gothreeHighsAndSixDiseases' v-if="Number(region)==2"> <view class="home" @tap='gothreeHighsAndSixDiseases' v-if="Number(region)==2">
<image src="@/static/threesix.png" mode=""></image> <image src="@/static/threesix.png" />
<view class="name"> <view class="name">
三高六病 三高六病
</view> </view>
</view> </view>
<view class="home" v-if="Number(region)==2" @tap='sign'> <view class="home" v-if="Number(region)==2" @tap='sign'>
<image src="@/static/zizhujiance.png" mode=""></image> <image src="@/static/zizhujiance.png" />
<view class="name"> <view class="name">
自主检测 自主检测
</view> </view>
</view> </view>
<view class="home" v-if="Number(region)==2" @tap="gothreeHundredAndSixty"> <view class="home" v-if="Number(region)==2" @tap="gothreeHundredAndSixty">
<image src="@/static/360.png" mode=""></image> <image src="@/static/360.png" />
<view class="name"> <view class="name">
360健康画像 360健康画像
</view> </view>
@ -91,11 +91,11 @@
</view> </view>
<view class="item"> <view class="item">
<view class="signmyself" @tap="sign" v-if="Number(region)!=2"> <view class="signmyself" @tap="sign" v-if="Number(region)!=2">
<image src="@/static/tizheng.png" mode=""></image> <image :src="baseurl+ '/profile/weChatPicture/tizheng.png'" />
</view> </view>
<view class="sign" :class="Number(region)==2?'notwo':''"> <view class="sign" :class="Number(region)==2?'notwo':''">
<image @tap="healthtest" src="@/static/healthmyself.png" mode=""></image> <image @tap="healthtest" src="@/static/healthmyself.png" />
<image @tap="gorecords" src="@/static/records.png" mode=""></image> <image @tap="gorecords" src="@/static/records.png" />
</view> </view>
</view> </view>
</view> </view>
@ -131,7 +131,11 @@
countyName: '', countyName: '',
} }
}, },
onLoad() {}, onLoad() {
if (uni.getStorageSync('userinfo')) {
this.wxSportDecryptinfo();
}
},
onShow() { onShow() {
this.baseurl = baseurl this.baseurl = baseurl
this.userinfo = uni.getStorageSync('userinfo') this.userinfo = uni.getStorageSync('userinfo')
@ -143,7 +147,6 @@
} }
if (uni.getStorageSync('userinfo')) { if (uni.getStorageSync('userinfo')) {
this.detailinfo(); this.detailinfo();
this.wxSportDecryptinfo();
} }
}, },
methods: { methods: {
@ -189,6 +192,19 @@
} }
} }
}); });
} else {
wx.showModal({
title: '提示',
content: '获取微信运动步数,需要开启此权限',
success: function(resp) {
if (resp.confirm) {
//跳转去设置
wx.openSetting({
success: function(respp) {}
})
}
}
})
} }
} }
}) })
@ -236,7 +252,6 @@
title: '您未登录,请前往我的页面进行登录', title: '您未登录,请前往我的页面进行登录',
type: 'error', type: 'error',
duration: '1000', duration: '1000',
// url: '/pagesB/login/login'
}) })
}, },
// 家医功能提示 // 家医功能提示
@ -472,4 +487,4 @@
<style lang="scss"> <style lang="scss">
@import "./homepage.scss"; @import "./homepage.scss";
</style> </style>

View File

@ -1,23 +1,23 @@
<template> <template>
<view class="app"> <view class="app">
<view class="address"> <view class="address">
<!-- <image src="../../static/pages/address.png" mode=""></image> <!-- <image src="@/static/address.png" mode=""></image>
<text> <text>
{{location?location:''}} {{location?location:''}}
</text> --> </text> -->
</view> </view>
<view class="topbar"> <view class="topbar">
<image mode="" :src="require('@/pagesB/images/wenzhenpingtai.png')" @tap="goconsultationplatform"></image> <image :src="baseurl+ '/profile/weChatPicture/wenzhenpingtai.png'" @tap=" goconsultationplatform" />
<image mode="" :src="require('@/pagesB/images/hulifuwu.png')" @tap="gosite"></image> <image :src="baseurl+ '/profile/weChatPicture/hulifuwu.png'" @tap="gosite" />
</view> </view>
<view class="title"> <view class="title">
常用服务 常用服务
</view> </view>
<view class="centerbar topbar"> <view class="centerbar topbar">
<image mode="" :src="require('@/pagesB/images/yuyueshaicha.png')" @tap="goAppointmentscreening"></image> <image :src="baseurl+ '/profile/weChatPicture/yuyueshaicha.png'" @tap="goAppointmentscreening" />
<image mode="" :src="require('@/pagesB/images/shaichajieguo.png')" @tap="result"></image> <image :src="baseurl+ '/profile/weChatPicture/shaichajieguo.png'" @tap="result" />
<image mode="" :src="require('@/pagesB/images/jiankangshangcheng.png')" @tap="goshopping"></image> <image :src="baseurl+ '/profile/weChatPicture/jiankangshangcheng.png'" @tap="goshopping" />
<image mode="" :src="require('@/pagesB/images/xinrenfuli.png')" @tap="gomaterialbenefits"></image> <image :src="baseurl+ '/profile/weChatPicture/xinrenfuli.png'" @tap="gomaterialbenefits" />
</view> </view>
<view class="title"> <view class="title">
<text>健康资讯</text> <text>健康资讯</text>
@ -25,7 +25,7 @@
<text> <text>
查看更多 查看更多
</text> </text>
<image src="../../static/huijiantou.png" mode=""></image> <image src="@/static/huijiantou.png" mode=""></image>
</view> </view>
</view> </view>
<view class="list"> <view class="list">
@ -56,6 +56,7 @@
export default { export default {
data() { data() {
return { return {
baseurl: '',
pageNum: 1, pageNum: 1,
pageSize: 5, pageSize: 5,
informationCategoryVOList: [], //咨询信息 informationCategoryVOList: [], //咨询信息
@ -73,6 +74,9 @@
this.location = uni.getStorageSync('location') this.location = uni.getStorageSync('location')
this.getHeathHousing(); this.getHeathHousing();
}, },
onLoad() {
this.baseurl = baseurl
},
methods: { methods: {
// 第一种 直接映射 // 第一种 直接映射
...mapActions(["openPopup"]), ...mapActions(["openPopup"]),
@ -81,20 +85,9 @@
setTimeout(e => { setTimeout(e => {
// 筛查预约 // 筛查预约
if (!this.userInfo) { if (!this.userInfo) {
uni.showModal({ this.$refs.uToast.show({
title: "提示", title: res.msg,
content: "您还未注册,是否去注册?", type: '您未登录,请前往我的页面进行登录',
confirmText: '是',
cancelText: '否',
success(res) {
if (res.confirm) {
uni.redirectTo({
url: "/pagesB/register/register"
})
} else {
wx.exitMiniProgram()
}
},
}) })
} else { } else {
getScreening(this.cardNo).then(res => { getScreening(this.cardNo).then(res => {
@ -132,7 +125,6 @@
title: '您未登录,请前往我的页面进行登录', title: '您未登录,请前往我的页面进行登录',
type: 'error', type: 'error',
duration: '1000', duration: '1000',
// url: '/pagesB/login/login'
}) })
} }
}, },
@ -164,7 +156,6 @@
title: '您未登录,请前往我的页面进行登录', title: '您未登录,请前往我的页面进行登录',
type: 'error', type: 'error',
duration: '1000', duration: '1000',
// url: '/pagesB/login/login'
}) })
} }
}, 0) }, 0)
@ -184,7 +175,6 @@
title: '您未登录,请前往我的页面进行登录', title: '您未登录,请前往我的页面进行登录',
type: 'error', type: 'error',
duration: '1000', duration: '1000',
// url: '/pagesB/login/login'
}) })
} }
}, 0) }, 0)
@ -202,7 +192,6 @@
title: '您未登录,请前往我的页面进行登录', title: '您未登录,请前往我的页面进行登录',
type: 'error', type: 'error',
duration: '1000', duration: '1000',
// url: '/pagesB/login/login'
}) })
} }
}, },
@ -221,7 +210,6 @@
title: '您未登录,请前往我的页面进行登录', title: '您未登录,请前往我的页面进行登录',
type: 'error', type: 'error',
duration: '1000', duration: '1000',
// url: '/pagesB/login/login'
}) })
} }
}, 50) }, 50)
@ -240,7 +228,6 @@
title: '您未登录,请前往我的页面进行登录', title: '您未登录,请前往我的页面进行登录',
type: 'error', type: 'error',
duration: '1000', duration: '1000',
// url: '/pagesB/login/login'
}) })
} }
}, 0) }, 0)
@ -260,7 +247,6 @@
title: '您未登录,请前往我的页面进行登录', title: '您未登录,请前往我的页面进行登录',
type: 'error', type: 'error',
duration: '1000', duration: '1000',
// url: '/pagesB/login/login'
}) })
} }
}, 0) }, 0)

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="app"> <view class="app">
<view class="item" @tap="gonotice(listone,'通知公告')"> <view class="item" @tap="gonotice(listone,'通知公告')">
<image src="../../static/pages/tongzhi.png" mode=""></image> <image src="@/static/tongzhi.png" mode=""></image>
<view class="title"> <view class="title">
通知公告 通知公告
</view> </view>
@ -18,7 +18,7 @@
</view> </view>
</view> </view>
<view class="item" @tap="gonotice(listtwo,'健康推送')"> <view class="item" @tap="gonotice(listtwo,'健康推送')">
<image src="../../static/pages/jiankang.png" mode=""></image> <image src="@/static/jiankang.png" mode=""></image>
<view class="title"> <view class="title">
健康推送 健康推送
</view> </view>
@ -35,7 +35,7 @@
</view> </view>
</view> </view>
<view class="item" @tap="gonotice(listfour,'服务推送')"> <view class="item" @tap="gonotice(listfour,'服务推送')">
<image src="../../static/pages/fuwu.png" mode=""></image> <image src="@/static/fuwu.png" mode=""></image>
<view class="title"> <view class="title">
服务推送 服务推送
</view> </view>
@ -52,7 +52,7 @@
</view> </view>
</view> </view>
<view class="item" v-for="item in listthree" v-if="listthree.length>0" @tap='goseekadvicefrom(item)'> <view class="item" v-for="item in listthree" v-if="listthree.length>0" @tap='goseekadvicefrom(item)'>
<image src="../../static/docHead.png" mode=""></image> <image :src="baseurl + '/profile/weChatPicture/docHead.png'" mode=""></image>
<view class="title"> <view class="title">
{{item.senderName}} {{item.senderName}}
</view> </view>
@ -79,9 +79,11 @@
import { import {
mapMutations mapMutations
} from "vuex"; } from "vuex";
import baseurl from '../../api/baseurl';
export default { export default {
data() { data() {
return { return {
baseurl: '',
listone: null, listone: null,
listtwo: null, listtwo: null,
listthree: [], listthree: [],
@ -97,6 +99,9 @@
this.messagescoket(); this.messagescoket();
} }
}, },
onLoad() {
this.baseurl = baseurl
},
methods: { methods: {
...mapMutations(['scoket']), ...mapMutations(['scoket']),
messagescoket() { messagescoket() {

View File

@ -160,7 +160,7 @@
position: relative; position: relative;
color: #FFFFFF; color: #FFFFFF;
margin-bottom: 50rpx; margin-bottom: 50rpx;
background-color: #26A888;
.btn { .btn {
position: absolute; position: absolute;
@ -184,20 +184,28 @@
.phone { .phone {
position: absolute; position: absolute;
top: 56%; top: 56%;
left: 30%; left: 32%;
font-size: 24rpx; font-size: 24rpx;
} }
.nologin{
padding:6rpx 12rpx;
border: 2rpx solid #fff;
border-radius: 5px;
display: inline-block;
font-size: 36rpx;
}
.namesigning { .namesigning {
position: absolute; position: absolute;
top: 38%; top: 40%;
left: 30%; left: 32%;
.name { .name {
display: inline-block; display: inline-block;
font-size: 36rpx; font-size: 36rpx;
} }
.signing { .signing {
text-align: center; text-align: center;
margin-left: 30rpx; margin-left: 30rpx;

View File

@ -4,29 +4,29 @@
<!-- <view class="title"> <!-- <view class="title">
我的 我的
</view> --> </view> -->
<image :src="baseurl + '/profile/weChatPicture/background.png'" mode="" class="userbanner"></image> <image :src="baseurl + '/profile/weChatPicture/background.png'" mode="" class="userbanner" />
<image src="/static/headsculpture.png" mode="" class="headsculpture" @tap='updatainfo' <image :src="baseurl+ '/profile/weChatPicture/headsculpture.png'" class="headsculpture" @tap='updatainfo'
v-if="!appPersonallist.headPictureUrl"> v-if="!appPersonallist.headPictureUrl" />
</image> <image :src="baseurl+appPersonallist.headPictureUrl" mode="" class="headsculpture" @tap='updatainfo'
<image :src="baseurl+appPersonallist.headPictureUrl" mode="" class="headsculpture" @tap='updatainfo' v-else> v-else />
</image> <view class="namesigning" @tap='updatainfo' v-if="appPersonallist.patientName">
<view class="namesigning" @tap='updatainfo'>
<span class="name"> <span class="name">
{{appPersonallist.patientName?appPersonallist.patientName:'点击登录'}} {{appPersonallist.patientName}}
</span> </span>
<span class="" v-show="appPersonallist.patientName"> <span class="signing" v-if="appPersonallist.signNo">
<span class="signing" v-if="appPersonallist.signNo"> 已签约
已签约
</span>
<span class="signing" v-else>
未签约
</span>
</span> </span>
<span class="signing" v-else>
未签约
</span>
</view>
<view class="nologin namesigning" @tap='updatainfo' v-else>
点击登录
</view> </view>
<view class="phone" v-if="appPersonallist.phone"> <view class="phone" v-if="appPersonallist.phone">
{{appPersonallist.phone}} {{appPersonallist.phone}}
</view> </view>
<view class="switch btn" @tap='homeshow'> <view class="switch btn" @tap='getpersnoal'>
切换家庭成员 切换家庭成员
</view> </view>
<view class="manage btn" @click="gomanagefamily"> <view class="manage btn" @click="gomanagefamily">
@ -35,7 +35,7 @@
</view> </view>
<view class="Threecategories"> <view class="Threecategories">
<view class="item" @tap="goBehaviorpoints"> <view class="item" @tap="goBehaviorpoints">
<image src="../../static/pages/jifen.png" mode=""></image> <image src="@/static/jifen.png" mode=""></image>
<view class="text"> <view class="text">
健康积分 健康积分
<span style="padding: 0 10rpx;"> {{appPersonallist.score>0?appPersonallist.score:0}}</span> <span style="padding: 0 10rpx;"> {{appPersonallist.score>0?appPersonallist.score:0}}</span>
@ -50,7 +50,7 @@
</view> </view>
</view> --> </view> -->
<view class="item" @tap='gocoupon'> <view class="item" @tap='gocoupon'>
<image src="../../static/pages/yhj.png" mode=""></image> <image src="@/static/yhj.png" mode=""></image>
<view class="text"> <view class="text">
优惠券 优惠券
<span <span
@ -65,11 +65,11 @@
</view> </view>
<view class="righttitle" @tap="goorder(0,'')"> <view class="righttitle" @tap="goorder(0,'')">
查看全部 查看全部
<image src="../../static/huijiantou.png" mode=""></image> <image src="@/static/huijiantou.png" mode=""></image>
</view> </view>
<view class="orderStatus"> <view class="orderStatus">
<view class="item" @tap="goorder(1,'WAIT_PAY')"> <view class="item" @tap="goorder(1,'WAIT_PAY')">
<image src="../../static/pages/daifukuan.png" mode=""></image> <image src="@/static/daifukuan.png" mode=""></image>
<view class="text"> <view class="text">
待付款 待付款
</view> </view>
@ -80,10 +80,9 @@
v-if="appPersonallist.waitPayCount>=100"> v-if="appPersonallist.waitPayCount>=100">
99+ 99+
</view> </view>
</view> </view>
<view class="item" @tap="goorder(2,'WAIT_RECEIVED_GOODS')"> <view class="item" @tap="goorder(2,'WAIT_RECEIVED_GOODS')">
<image src="../../static/pages/daishouhuo.png" mode=""></image> <image src="@/static/daishouhuo.png" mode=""></image>
<view class="text"> <view class="text">
待收货 待收货
</view> </view>
@ -97,7 +96,7 @@
</view> </view>
</view> </view>
<view class="item" @tap="goorder(3,'RECEIVED_GOODS')"> <view class="item" @tap="goorder(3,'RECEIVED_GOODS')">
<image src="../../static/pages/daipingjia.png" mode=""></image> <image src="@/static/daipingjia.png" mode=""></image>
<view class="text"> <view class="text">
待评价 待评价
</view> </view>
@ -111,7 +110,7 @@
</view> </view>
</view> </view>
<view class="item" @tap="goorder(4,'EVALUATED')"> <view class="item" @tap="goorder(4,'EVALUATED')">
<image src="../../static/pages/yiwancheng.png" mode=""></image> <image src="@/static/yiwancheng.png" mode=""></image>
<view class="text"> <view class="text">
已完成 已完成
</view> </view>
@ -130,19 +129,19 @@
</view> </view>
<view class="orderStatus"> <view class="orderStatus">
<!-- <view class="item" @tap='goHealthrecords'> <!-- <view class="item" @tap='goHealthrecords'>
<image src="../../static/pages/jiankangdangan.png" mode=""></image> <image :src="require('@/pagesC/images/jiankangdangan.png')"mode=""></image>
<view class="text"> <view class="text">
健康档案 健康档案
</view> </view>
</view> --> </view> -->
<view class="item" @tap="gomyappiont"> <view class="item" @tap="gomyappiont">
<image src="../../static/pages/wodeyuyue.png" mode=""></image> <image src="@/static/wodeyuyue.png" mode=""></image>
<view class="text"> <view class="text">
我的预约 我的预约
</view> </view>
</view> </view>
<view class="item" @tap="evaluation"> <view class="item" @tap="evaluation">
<image src="../../static/pages/fuwupingjia.png" mode=""></image> <image src="@/static/fuwupingjia.png" mode=""></image>
<view class="text"> <view class="text">
服务评价 服务评价
</view> </view>
@ -155,7 +154,7 @@
护理服务订单 护理服务订单
</view> </view>
<view class="righttitle"> <view class="righttitle">
<image src="../../static/huijiantou.png" mode=""></image> <image src="@/static/huijiantou.png" mode=""></image>
</view> </view>
</view> </view>
<view class="myorder titles" @tap="expertOrder"> <view class="myorder titles" @tap="expertOrder">
@ -163,7 +162,7 @@
专家咨询订单 专家咨询订单
</view> </view>
<view class="righttitle"> <view class="righttitle">
<image src="../../static/huijiantou.png" mode=""></image> <image src="@/static/huijiantou.png" mode=""></image>
</view> </view>
</view> </view>
<view class="myorder titles" @tap="Signing"> <view class="myorder titles" @tap="Signing">
@ -171,17 +170,17 @@
签约信息 签约信息
</view> </view>
<view class="righttitle"> <view class="righttitle">
<image src="../../static/huijiantou.png" mode=""></image> <image src="@/static/huijiantou.png" mode=""></image>
</view> </view>
</view> </view>
<!-- <view class="myorder titles" @tap="remove()"> <view class="myorder titles" @tap="remove()">
<view class="title"> <view class="title">
退出登录 退出登录
</view> </view>
<view class="righttitle"> <view class="righttitle">
<image src="../../static/huijiantou.png" mode=""></image> <image src="@/static/huijiantou.png" mode=""></image>
</view> </view>
</view> --> </view>
<view class="mask" @click.stop='showhome = false' v-if="showhome"> <view class="mask" @click.stop='showhome = false' v-if="showhome">
<view class="masktext" @click.stop=''> <view class="masktext" @click.stop=''>
<view class="maskcontent" v-if="familyList"> <view class="maskcontent" v-if="familyList">
@ -211,19 +210,26 @@
getCurrentUser, getCurrentUser,
switchResident switchResident
} from '@/api/pages/myinformation/myinformation.js'; } from '@/api/pages/myinformation/myinformation.js';
import {
logingetCurrentUser,
} from '@/api/pages/homepage/homepage.js'
import {
login
} from '@/api/pages/login/index.js'
import { import {
existPatientInfo existPatientInfo
} from '@/api/pages/startup/index.js' } from '@/api/pages/startup/index.js'
import {
createMobileToken
} from '@/api/pages/login/index.js'
import { import {
checkSignApply checkSignApply
} from '@/api/pages/homepage/homepage.js' } from '@/api/pages/homepage/homepage.js'
import {
mapMutations
} from "vuex";
import baseurl from '@/api/baseurl.js' import baseurl from '@/api/baseurl.js'
export default { export default {
data() { data() {
return { return {
timer: undefined,
baseurl: '', baseurl: '',
appPersonallist: null, //获取个人信息 appPersonallist: null, //获取个人信息
list: {}, list: {},
@ -235,12 +241,10 @@
}; };
}, },
onShow() { onShow() {
// this.bjimg = baseurl + '/profile/appletPicture/inviteFriendsOne.png'
this.appPersonallist = uni.getStorageSync('userinfo') this.appPersonallist = uni.getStorageSync('userinfo')
this.region = Number(uni.getStorageSync('region')) this.region = Number(uni.getStorageSync('region'))
this.baseurl = baseurl this.baseurl = baseurl
this.myInfo() this.myInfo()
this.getpersnoal()
if (this.appPersonallist && this.region != 3) { if (this.appPersonallist && this.region != 3) {
checkSignApply(this.appPersonallist.cardNo).then(res => { checkSignApply(this.appPersonallist.cardNo).then(res => {
if (res.data) { if (res.data) {
@ -248,7 +252,7 @@
this.infotitle = res.data.info this.infotitle = res.data.info
} }
}) })
} else {} }
}, },
methods: { methods: {
gomyappiont() { gomyappiont() {
@ -286,30 +290,40 @@
}) })
} }
}, },
// 获取成员 // 切换家庭成员
getpersnoal() { getpersnoal() {
const value = uni.getStorageSync('openid'); const value = uni.getStorageSync('userinfo');
if (value) { const value2 = uni.getStorageSync('patientId');
getCurrentUser(value).then(res => { if (value && value2) {
this.familyList = res.data const openid = uni.getStorageSync('openid');
}) if (openid) {
getCurrentUser(openid).then(res => {
this.familyList = res.data
this.showhome = true
})
}
// this.myInfo()
} else {
this.gologin();
} }
}, },
// 切换成员 // 切换成员
changeFamilyInfo(e) { changeFamilyInfo(e) {
const value = uni.getStorageSync('openid'); const value = uni.getStorageSync('openid');
if (value) { const value2 = uni.getStorageSync('patientId');
if (value && value2) {
switchResident(value, e.patientCode).then(res => { switchResident(value, e.patientCode).then(res => {
uni.setStorageSync('userinfo', res.data);
uni.setStorageSync('patientId', res.data.id);
this.appPersonallist = res.data
if (res.code == 200) { if (res.code == 200) {
this.appPersonallist = res.data
uni.setStorageSync('userinfo', res.data);
uni.setStorageSync('patientId', res.data.id);
uni.setStorageSync('phone', res.data.phone);
uni.setStorageSync('patientName', res.data.patientName);
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '切换成功', title: '切换成功',
type: 'success', type: 'success',
duration: '1000', duration: '1500',
}) })
this.myInfo()
clearInterval(this.$store.state.timeoutObj); clearInterval(this.$store.state.timeoutObj);
uni.closeSocket(); uni.closeSocket();
} else { } else {
@ -326,7 +340,7 @@
removes() { removes() {
this.appPersonallist = null this.appPersonallist = null
uni.removeStorageSync('patientId'); uni.removeStorageSync('patientId');
uni.removeStorageSync('openid'); // uni.removeStorageSync('openid');
uni.removeStorageSync('phone'); uni.removeStorageSync('phone');
uni.removeStorageSync('userinfo'); uni.removeStorageSync('userinfo');
}, },
@ -336,29 +350,80 @@
const value = uni.getStorageSync('openid'); const value = uni.getStorageSync('openid');
const value2 = uni.getStorageSync('patientId'); const value2 = uni.getStorageSync('patientId');
if (value && value2) { if (value && value2) {
existPatientInfo(value).then(res => { // existPatientInfo(value).then(res => {
if (res.code == 200 && res.msg == 'LOGIN') { // if (res.code == 200 && res.msg == 'LOGIN') {
appPersonal(value2).then(Response => { appPersonal(value2).then(Response => {
if (Response.code == 200) { if (Response.code == 200) {
uni.setStorageSync('userinfo', Response.data); uni.setStorageSync('userinfo', Response.data);
that.appPersonallist = Response.data that.appPersonallist = Response.data
that.appPersonallist.homeLatitude = Number(that.appPersonallist that.appPersonallist.homeLatitude = Number(that.appPersonallist
.homeLatitude) .homeLatitude)
that.appPersonallist.homeLongitude = Number(that.appPersonallist that.appPersonallist.homeLongitude = Number(that.appPersonallist
.homeLongitude) .homeLongitude)
} else {
that.removes();
}
})
} else { } else {
that.removes(); that.removes();
} }
}) })
} else {
that.removes();
} }
// })
// } else {
// that.removes();
// }
}, },
//获取当前位置
getAddress() {
let that = this;
uni.getLocation({
type: 'wgs84',
success: (res) => {
let location = res.latitude + ',' + res.longitude
//调用逆解析接口
uni.request({
url: 'https://apis.map.qq.com/ws/geocoder/v1/?location=location', //腾讯官方逆解析接口,可直接复制
data: {
location: location,
'key': "7Y7BZ-PVXRA-IPYKT-C6YKF-YS3VF-LMFWJ", //自己申请的Key
},
method: "GET",
success(res) {
if (!res.data.result) {
uni.setStorageSync("region", 2)
uni.setStorageSync("location", '东营市')
} else {
var address = res.data.result.address_component.city
if (address == '德州市') {
uni.setStorageSync("region", 1)
} else if (address == '东营市') {
uni.setStorageSync("region", 2)
} else if (address == '济南市') {
uni.setStorageSync("region", 3)
}
uni.setStorageSync('location', res.data.result.address_component
.city)
}
},
fail: res => {
console.log(res.errMsg, '解析失败返回的错误信息');
}
})
},
//失败
fail: (res) => {
uni.showToast({
icon: 'none',
title: '获取地址失败,请打开定位',
})
}
})
},
sportinfo() {
wx.getWeRunData({
success: function(res) {}
});
},
...mapMutations(['scoket']),
updatainfo() { updatainfo() {
let that = this;
const value = uni.getStorageSync('userinfo'); const value = uni.getStorageSync('userinfo');
const value2 = uni.getStorageSync('patientId'); const value2 = uni.getStorageSync('patientId');
if (value && value2) { if (value && value2) {
@ -366,11 +431,99 @@
url: `/pagesB/modify/modify` url: `/pagesB/modify/modify`
}) })
} else { } else {
uni.navigateTo({ if (!uni.getStorageSync('openid') && !value2) {
url: '/pagesB/login/login' if (!uni.getStorageSync('location') || !uni.getStorageSync('region')) {
}) that.getAddress()
}
that.sportinfo();
wx.login({
provider: 'weixin',
success: function(loginRes) {
login(loginRes.code).then(resp => {
if (!resp.data) {
that.$refs.uToast.show({
title: '登录失败',
type: 'error',
})
return
}
if (resp.data.code == '0') {
that.$refs.uToast.show({
title: '未注册,请先注册',
type: 'error',
duration: '1500',
})
if (that.timer) {
clearTimeout(that.timer)
}
that.timer = setTimeout(() => {
uni.navigateTo({
url: `/pagesB/register/register?openid=${resp.data.openid}`,
})
}, 1500)
} else if (resp.data.code == '2') {
that.$refs.uToast.show({
title: '已被其他人注册',
type: 'error',
duration: '1500',
})
} else if (resp.data.code == '1') {
if (resp.data.openid) {
uni.setStorageSync("openid", resp.data.openid)
}
that.outlogin(that, resp.data.openid)
} else {
that.$refs.uToast.show({
title: '登录失败',
type: 'error',
})
}
})
}
});
} else {
that.outlogin(that, uni.getStorageSync('openid'))
}
} }
}, },
outlogin(that, openid) {
logingetCurrentUser(openid).then(res => {
if (res.code == 200) {
if (res.data) {
that.appPersonallist = res.data
uni.setStorageSync('patientId', res.data.id);
uni.setStorageSync('userinfo', res.data);
uni.setStorageSync('phone', res.data
.phone);
that.scoket();
that.$refs.uToast.show({
title: '登录成功',
type: 'success',
back: 1
})
} else {
that.$refs.uToast.show({
title: '未查询到信息,请先去注册',
type: 'error',
duration: '1500',
})
if (that.timer) {
clearTimeout(that.timer)
}
that.timer = setTimeout(() => {
uni.navigateTo({
url: `/pagesB/register/register?openid=${uni.getStorageSync('openid')}`,
})
}, 1500)
}
} else {
that.$refs.uToast.show({
title: '登录失败',
type: 'error',
})
}
})
},
//护理站服务订单 //护理站服务订单
gonursestation() { gonursestation() {
const value = uni.getStorageSync('userinfo'); const value = uni.getStorageSync('userinfo');
@ -485,37 +638,34 @@
const value = uni.getStorageSync('userinfo'); const value = uni.getStorageSync('userinfo');
const value2 = uni.getStorageSync('patientId'); const value2 = uni.getStorageSync('patientId');
if (value && value2) { if (value && value2) {
if (uni.getStorageSync('region') == 3) { if (this.region == 3) {
this.$refs.uToast.show({ this.family()
title: '当前地区不支持,请选择其它地区',
type: 'error',
})
} else { } else {
uni.navigateTo({ if (this.checkSign == "0") {
url: '/pagesB/Behaviorpoints/Behaviorpoints' uni.navigateTo({
}) url: `/pagesC/Onlinesigning/Onlinesigning?checkSign=${this.checkSign}`,
})
} else if (this.checkSign == "01") {
this.$refs.uToast.show({
title: this.infotitle,
type: 'error',
})
} else {
uni.navigateTo({
url: '/pagesB/Behaviorpoints/Behaviorpoints'
})
}
} }
} else { } else {
this.gologin(); this.gologin();
} }
}, },
// 切换家庭成员
homeshow() {
const value = uni.getStorageSync('userinfo');
const value2 = uni.getStorageSync('patientId');
if (value && value2) {
this.showhome = true
this.getpersnoal()
// this.myInfo()
} else {
this.gologin();
}
},
//管理家庭成员 //管理家庭成员
gomanagefamily() { gomanagefamily() {
const value = uni.getStorageSync('userinfo'); const value = uni.getStorageSync('userinfo');
const value2 = uni.getStorageSync('patientId'); const value2 = uni.getStorageSync('patientId');
if (value && value2) { const value3 = uni.getStorageSync('openid');
if (value && value2 && value3) {
uni.navigateTo({ uni.navigateTo({
url: '/pagesB/managefamily/managefamily' url: '/pagesB/managefamily/managefamily'
}) })
@ -525,9 +675,12 @@
}, },
// 添加家庭成员 // 添加家庭成员
addFamilyItem() { addFamilyItem() {
uni.navigateTo({ if (uni.getStorageSync('openid')) {
url: '/pagesB/AddMembers/AddMembers' uni.navigateTo({
}) url: '/pagesB/AddMembers/AddMembers'
})
this.showhome = false
}
// if (!this.userInfo) { // if (!this.userInfo) {
// uni.showModal({ // uni.showModal({
// title: "提示", // title: "提示",
@ -536,9 +689,6 @@
// cancelText: '否', // cancelText: '否',
// success(res) { // success(res) {
// if (res.confirm) { // if (res.confirm) {
// uni.redirectTo({
// url: "/pagesB/login/login?mode=注册"
// })
// } else { // } else {
// wx.exitMiniProgram() // wx.exitMiniProgram()
// } // }
@ -546,9 +696,6 @@
// }) // })
// } else { // } else {
// this.getSetting() // this.getSetting()
// uni.navigateTo({
// url: '/pagesB/login/login'
// });
// } // }
}, },
//积分页面 //积分页面

View File

@ -6,7 +6,7 @@
</view> </view>
<view class="text_con"> <view class="text_con">
<view class="text_con_pic"> <view class="text_con_pic">
<image src="@/static/pagesB/shflt.png" mode=""></image> <image :src="require('@/pagesC/images/shflt.png')" mode=""></image>
</view> </view>
<view class="text_con_right"> <view class="text_con_right">
信息仅用于授权,您的资料将被严格保密 信息仅用于授权,您的资料将被严格保密
@ -20,7 +20,8 @@
<u-input v-model="form.cardNo" placeholder="请输入身份证号" @blur="searchfun_close" /> <u-input v-model="form.cardNo" placeholder="请输入身份证号" @blur="searchfun_close" />
<view class="idScan"> <view class="idScan">
<!-- <u-icon slot="right" name="arrow-right"></u-icon> --> <!-- <u-icon slot="right" name="arrow-right"></u-icon> -->
<image style="width: 28rpx;height: 28rpx;" src="@/static/pagesB/sweep.png" mode=""> <image style="width: 28rpx;height: 28rpx;" :src="require('@/pagesC/images/sweep.png')"
mode="">
</image> </image>
</view> </view>
</view> </view>
@ -51,7 +52,7 @@
<text v-if="!nation">请选择民族</text> <text v-if="!nation">请选择民族</text>
<!-- <text v-if="!householdRelationship">请选择与户主关系</text> --> <!-- <text v-if="!householdRelationship">请选择与户主关系</text> -->
<text v-else class="testitem">{{nation}}</text> <text v-else class="testitem">{{nation}}</text>
<image src="@/static/huijiantou.png" mode=""></image> <image :src="require('@/pagesC/images/huijiantou.png')" mode=""></image>
</view> </view>
</view> </view>
</u-form-item> </u-form-item>
@ -61,7 +62,7 @@
<view class="select" @tap='timeshow=true'> <view class="select" @tap='timeshow=true'>
<text v-if="form.birthDate==''">请选择出生日期</text> <text v-if="form.birthDate==''">请选择出生日期</text>
<text v-else class="testitem">{{form.birthDate}}</text> <text v-else class="testitem">{{form.birthDate}}</text>
<image src="@/static/huijiantou.png" mode=""></image> <image :src="require('@/pagesC/images/huijiantou.png')" mode=""></image>
</view> </view>
</view> </view>
</u-form-item> </u-form-item>
@ -92,7 +93,7 @@
<text v-if="!addressinfo">请选择所属区域</text> <text v-if="!addressinfo">请选择所属区域</text>
<text v-else class="testitem" <text v-else class="testitem"
style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{addressinfo}}</text> style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{addressinfo}}</text>
<!-- <image src="@/static/huijiantou.png" mode=""></image> --> <!-- <image :src="require('@/pagesC/images/huijiantou.png')" mode=""></image> -->
</view> </view>
</view> </view>
<view class="name"> <view class="name">
@ -692,7 +693,6 @@
that.userinfo = uni.getStorageSync('userinfo'); that.userinfo = uni.getStorageSync('userinfo');
that.form.openid = uni.getStorageSync('openid'); that.form.openid = uni.getStorageSync('openid');
that.form.cityCode = uni.getStorageSync('region'); that.form.cityCode = uni.getStorageSync('region');
console.log(that.form.cityCode, 'that.form.cityCode')
if (that.form.cityCode == "") { if (that.form.cityCode == "") {
that.form.cityCode = 2 that.form.cityCode = 2
} }
@ -701,7 +701,6 @@
} else if (that.form.sexname == '女') { } else if (that.form.sexname == '女') {
that.form.sex = 'FEMALE'; that.form.sex = 'FEMALE';
} }
console.log(that.form)
if (that.form.sex == "") { if (that.form.sex == "") {
that.$refs.uToast.show({ that.$refs.uToast.show({
title: '请选择性别', title: '请选择性别',

View File

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

View File

@ -5,12 +5,15 @@
<view class="title"> <view class="title">
{{title}} {{title}}
</view> </view>
<image mode="" :src="require('../images/putongka.png')" v-if='region==2&&score>=0&&score<800' /> <span v-if='region==2'>
<image mode="" :src="require('../images/yinka.png')" v-if='region==2&&score>=800&&score<1600' /> <image :src="baseurl+ '/profile/weChatPicture/putongka.png'" v-if='score>=0&&score<800' />
<image mode="" :src="require('../images/jinka.png')" v-if='region==2&&score>=1600&&score<2400' /> <image :src="baseurl+ '/profile/weChatPicture/yinka.png'" v-if='score>=800&&score<1600' />
<image mode="" :src="require('../images/bojinka.png')" v-if='region==2&&score>=2400&&score<3000' /> <image :src="baseurl+ '/profile/weChatPicture/jinka.png'" v-if='score>=1600&&score<2400' />
<image mode="" :src="require('../images/zuanshika.png')" v-if='region==2&&score>=3000' /> <image :src="baseurl+ '/profile/weChatPicture/bojinka.png'" v-if='score>=2400&&score<3000' />
<image src="@/static/pagesB/Behave.png" mode="" v-if='region!=2' :style="region!=2?'height:350rpx':''"> <image :src="baseurl+ '/profile/weChatPicture/zuanshika.png'" v-if='score>=3000' />
</span>
<image :src="require('@/pagesC/images/Behave.png')" mode="" v-if='region!=2'
:style="region!=2?'height:350rpx':''">
</image> </image>
<view class="name" v-if='region!=2'>我的积分 <view class="name" v-if='region!=2'>我的积分
</view> </view>
@ -20,7 +23,7 @@
{{score?score:0}} {{score?score:0}}
</span> </span>
</view> </view>
<view class="paiming" v-if="hkname=='河口'" @click='lookranking'> <view class="paiming" v-if="hkname=='河口'&&scoreranking" @click='lookranking'>
<span <span
:style="score>=0&&score<800?'color:#fff':score>=800&&score<1600?'color:#D3BC96':score>=1600&&score<2400?'color:#AD7600':score>=2400&&score<3000?'color:#FAEEDB':score>=3000?'color:#4864ED':''"> :style="score>=0&&score<800?'color:#fff':score>=800&&score<1600?'color:#D3BC96':score>=1600&&score<2400?'color:#AD7600':score>=2400&&score<3000?'color:#FAEEDB':score>=3000?'color:#4864ED':''">
积分榜排名:第{{scoreranking}}名 积分榜排名:第{{scoreranking}}名
@ -107,12 +110,14 @@
import { import {
detail, detail,
} from '@/api/pages/homepage/homepage.js' } from '@/api/pages/homepage/homepage.js'
import baseurl from '@/api/baseurl.js'
// import { // import {
// mapActions // mapActions
// } from "vuex"; // } from "vuex";
export default { export default {
data() { data() {
return { return {
baseurl: '',
query: { query: {
identity: uni.getStorageSync('userinfo').cardNo, identity: uni.getStorageSync('userinfo').cardNo,
pageNum: 1, pageNum: 1,
@ -127,7 +132,7 @@
hkname: '', hkname: '',
orgName: "", orgName: "",
patientName: "", patientName: "",
scoreranking: 0, scoreranking: undefined,
lookrankingshow: false, lookrankingshow: false,
}; };
}, },
@ -137,6 +142,9 @@
this.info(); this.info();
this.scoretotalinfo(); this.scoretotalinfo();
}, },
onLoad() {
this.baseurl = baseurl
},
onReady() { //更改导航栏文字 onReady() { //更改导航栏文字
if (uni.getStorageSync('region') == 2) { if (uni.getStorageSync('region') == 2) {
detail(this.query.identity).then(res => { detail(this.query.identity).then(res => {

View File

@ -16,7 +16,7 @@
<view class="content"> <view class="content">
{{updata.goodsAttributeName}} {{updata.goodsAttributeName}}
</view> </view>
<image src="@/static/huijiantou.png" mode=""></image> <image :src="require('@/pagesC/images/huijiantou.png')" mode=""></image>
</view> </view>
<view class="Discount common" @tap="goodsDetailslist.couponList.length>0?couponshow=true:''"> <view class="Discount common" @tap="goodsDetailslist.couponList.length>0?couponshow=true:''">
<view class="selected"> <view class="selected">
@ -25,7 +25,8 @@
<view class="content" v-if="coupon"> <view class="content" v-if="coupon">
已选择 {{coupon.couponTitle}} 已选择 {{coupon.couponTitle}}
</view> </view>
<image src="@/static/huijiantou.png" mode="" v-if="goodsDetailslist.couponList.length>0"></image> <image :src="require('@/pagesC/images/huijiantou.png')" mode=""
v-if="goodsDetailslist.couponList.length>0"></image>
</view> </view>
<view class="service common"> <view class="service common">
<view class="selected"> <view class="selected">
@ -53,7 +54,7 @@
</view> </view>
<u-mask :show="buyshow" @click="buyshow = false" class='mask'> <u-mask :show="buyshow" @click="buyshow = false" class='mask'>
<view class="PurchasePage" @click.stop=''> <view class="PurchasePage" @click.stop=''>
<image class="close" src="@/static/pagesB/gb.png" mode="" @tap='buyshow=false'></image> <image :src="require('@/pagesC/images/gb.png')" mode="" @tap='buyshow=false'></image>
</image> </image>
<view class="topcontent" style="width: 96%;height: 300rpx;"> <view class="topcontent" style="width: 96%;height: 300rpx;">
<view class="image"> <view class="image">
@ -79,7 +80,7 @@
@scrolltolower="lower" @scroll="scroll"> @scrolltolower="lower" @scroll="scroll">
<view class="bodys" @tap='upaddress()'> <view class="bodys" @tap='upaddress()'>
<view class="addressinfo"> <view class="addressinfo">
<image src="@/static/pagesB/locatinsmall.png" mode=""></image> <image :src="require('@/pagesC/images/locatinsmalltwo.png')" mode=""></image>
<span v-if="loginFlag"> <span v-if="loginFlag">
<view class="namephone" v-if='userid'> <view class="namephone" v-if='userid'>
{{updata.receiver}},{{updata.phone}} {{updata.receiver}},{{updata.phone}}
@ -150,7 +151,7 @@
支付方式 支付方式
</view> </view>
<view class="chat"> <view class="chat">
<image src="@/static/pagesB/chat.png" mode=""></image> <image :src="require('@/pagesC/images/chat.png')" mode=""></image>
<span>微信支付</span> <span>微信支付</span>
</view> </view>
</view> </view>
@ -165,7 +166,7 @@
<u-toast ref="uToast" /> <u-toast ref="uToast" />
<u-mask :show="usershow" class='mask'> <u-mask :show="usershow" class='mask'>
<view class="information"> <view class="information">
<image src="@/static/pagesB/information.png" mode=""></image> <image :src="require('@/pagesC/images/information.png')" mode=""></image>
<view class="title"> <view class="title">
请完善个人信息 请完善个人信息
</view> </view>
@ -179,7 +180,8 @@
</u-mask> </u-mask>
<u-mask :show="couponshow" class='mask' @click="couponshow = false"> <u-mask :show="couponshow" class='mask' @click="couponshow = false">
<view class="couponmask" @click.stop=''> <view class="couponmask" @click.stop=''>
<image class="close" src="@/static/pagesB/gb.png" mode="" @tap='couponshow=false'></image> <image class="close" :src="require('@/pagesC/images/gb.png')" mode="" @tap='couponshow=false'>
</image>
</image> </image>
<view class="titles"> <view class="titles">
选择优惠券 选择优惠券

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="app"> <view class="app">
<u-navbar :is-back="false" :background="background" class="u-navbar"> <u-navbar :is-back="false" :background="background" class="u-navbar">
<image src="@/static/fanhui.png" mode="" @tap="goprevious"></image> <image :src="require('@/pagesC/images/fanhui.png')" mode="" @tap="goprevious"></image>
<view class="title" @tap="goprevious"> <view class="title" @tap="goprevious">
商品订单 商品订单
</view> </view>
@ -16,7 +16,7 @@
<view class="" v-if="total>0" style="margin-top: 80rpx;padding: 3%;"> <view class="" v-if="total>0" style="margin-top: 80rpx;padding: 3%;">
<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">{{item.orderTime}} <view class="names">{{item.orderTime}}
<image class="picture" src="../../static/huijiantou.png" mode=""></image> <image class="picture" :src="require('@/pagesC/images/huijiantou.png')" mode=""></image>
<span v-if="item.orderStatus=='WAIT_PAY'">待付款</span> <span v-if="item.orderStatus=='WAIT_PAY'">待付款</span>
<span v-if="item.orderStatus=='WAIT_REFUND'">退款中</span> <span v-if="item.orderStatus=='WAIT_REFUND'">退款中</span>
<span v-if="item.orderStatus=='CANCEL'">已取消</span> <span v-if="item.orderStatus=='CANCEL'">已取消</span>
@ -35,7 +35,7 @@
<view class="detailslist"> <view class="detailslist">
<image :src="baseurl+item.personPictureUrl" mode="" <image :src="baseurl+item.personPictureUrl" mode=""
v-if="item.orderType =='HEALTH_CONSULTATION'&&item.personPictureUrl"></image> v-if="item.orderType =='HEALTH_CONSULTATION'&&item.personPictureUrl"></image>
<image src="../../static/headsculpture.png" mode="" <image :src="require('@/pagesC/images/headsculpture.png')"
v-if="item.orderType =='HEALTH_CONSULTATION'&&!item.personPictureUrl"></image> v-if="item.orderType =='HEALTH_CONSULTATION'&&!item.personPictureUrl"></image>
<image :src="baseurl+item.attributePitureUrl" mode="" <image :src="baseurl+item.attributePitureUrl" mode=""
v-if="item.orderType !='HEALTH_CONSULTATION'"></image> v-if="item.orderType !='HEALTH_CONSULTATION'"></image>
@ -379,4 +379,4 @@
<style lang="scss"> <style lang="scss">
@import "./CommodityOrder.scss"; @import "./CommodityOrder.scss";
</style> </style>

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="app"> <view class="app">
<u-navbar :is-back="false" :background="background" class="u-navbar"> <u-navbar :is-back="false" :background="background" class="u-navbar">
<image src="@/static/fanhui.png" mode="" @tap="goprevious"></image> <image :src="require('@/pagesC/images/fanhui.png')" mode="" @tap="goprevious"></image>
<view class="title" @tap="goprevious"> <view class="title" @tap="goprevious">
专家咨询订单 专家咨询订单
</view> </view>
@ -16,7 +16,7 @@
<view class="" v-if="total>0" style="margin-top: 80rpx;padding: 3%;"> <view class="" v-if="total>0" style="margin-top: 80rpx;padding: 3%;">
<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">{{item.orderTime}} <view class="names">{{item.orderTime}}
<image class="picture" src="../../static/huijiantou.png" mode=""></image> <image class="picture" :src="require('@/pagesC/images/huijiantou.png')" mode=""></image>
<span v-if="item.orderStatus=='WAIT_PAY'">待付款</span> <span v-if="item.orderStatus=='WAIT_PAY'">待付款</span>
<span v-if="item.orderStatus=='WAIT_REFUND'">退款中</span> <span v-if="item.orderStatus=='WAIT_REFUND'">退款中</span>
<span v-if="item.orderStatus=='CANCEL'">已取消</span> <span v-if="item.orderStatus=='CANCEL'">已取消</span>
@ -806,4 +806,4 @@
} }
} }
} }
</style> </style>

View File

@ -1,6 +1,5 @@
<template> <template>
<view class="app"> <view class="app">
<!-- <img src="../images/beijing.png" alt="" class="background-image" /> -->
<view class="health" v-if="healthdata"> <view class="health" v-if="healthdata">
<view class="health_top"> <view class="health_top">
<image v-if="healthdata.hiEva < 650" :src="require('../images/red.png')" /> <image v-if="healthdata.hiEva < 650" :src="require('../images/red.png')" />

View File

@ -191,4 +191,4 @@
} }
} }
} }
</style> </style>

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="app"> <view class="app">
<u-navbar :is-back="false" :background="background" class="u-navbar"> <u-navbar :is-back="false" :background="background" class="u-navbar">
<image src="@/static/fanhui.png" mode="" @tap="goprevious"></image> <image :src="require('@/pagesC/images/fanhui.png')" mode="" @tap="goprevious"></image>
<view class="title" @tap="goprevious"> <view class="title" @tap="goprevious">
健康商城 健康商城
</view> </view>
@ -15,7 +15,7 @@
<u-tabs :list="GoodsCategorychildrenlist" :current="tabIndex" @change="toggleTab" active-color='#26A888' <u-tabs :list="GoodsCategorychildrenlist" :current="tabIndex" @change="toggleTab" active-color='#26A888'
v-if="GoodsCategorychildrenlist.length>=2"></u-tabs> v-if="GoodsCategorychildrenlist.length>=2"></u-tabs>
<view class="fenlei" @tap='toggleTab(1111111111111)' v-if="GoodsCategorychildrenlist.length>=2"> <view class="fenlei" @tap='toggleTab(1111111111111)' v-if="GoodsCategorychildrenlist.length>=2">
<image src="@/static/pagesB/fenlei.png" mode=""></image> <image :src="require('@/pagesC/images/fenlei.png')" mode=""></image>
<view class=""> <view class="">
分类 分类
</view> </view>

View File

@ -47,7 +47,7 @@
<u-toast ref="uToast" /> <u-toast ref="uToast" />
<u-mask :show="usershow" class='mask'> <u-mask :show="usershow" class='mask'>
<view class="information"> <view class="information">
<image src="@/static/pagesB/information.png" mode=""></image> <image :src="require('@/pagesC/images/information.png')" mode=""></image>
<view class="title"> <view class="title">
请完善个人信息 请完善个人信息
</view> </view>
@ -247,4 +247,4 @@
<style lang="scss"> <style lang="scss">
@import './ProjectDetails.scss'; @import './ProjectDetails.scss';
</style> </style>

View File

@ -6,20 +6,22 @@
我的评价 我的评价
</view> </view>
<view class="righttitle"> <view class="righttitle">
<image src="../../static/huijiantou.png" mode=""></image> <image :src="require('@/pagesC/images/huijiantou.png')" mode=""></image>
</view> </view>
</view> </view>
<view class="" v-if="total >0"> <view class="" v-if="total >0">
<view class="orderitem" v-for="(item,index) in evaluatedata"> <view class="orderitem" v-for="(item,index) in evaluatedata">
<view class="tiemitem"> <view class="tiemitem">
</view> </view>
<view class="details"> <view class="details">
<image src="../../static/headsculpture.png" mode="" v-if="item.orderType== 'FAMILY_DOCTOR' "> <image :src="require('@/pagesC/images/headsculpture.png')" mode=""
v-if="item.orderType== 'FAMILY_DOCTOR' ">
</image>
<image :src="baseurl+item.pictureUrl" mode=""
v-if="item.orderType== 'INTEGRAL_EXCHANGE' || item.orderType== 'DIRECT_BUY' || item.orderType== 'APPOINTMENT_ORDER'">
</image>
<image :src="baseurl+item.personPictureUrl" mode="" v-if="item.orderType== 'HEALTH_CONSULTATION'">
</image> </image>
<image :src="baseurl+item.pictureUrl" mode="" v-if="item.orderType== 'INTEGRAL_EXCHANGE' || item.orderType== 'DIRECT_BUY' || item.orderType== 'APPOINTMENT_ORDER'" ></image>
<image :src="baseurl+item.personPictureUrl" mode="" v-if="item.orderType== 'HEALTH_CONSULTATION'" ></image>
</image> </image>
<!-- <image :src="baseurl+item.pictureUrl" mode="" v-else></image> --> <!-- <image :src="baseurl+item.pictureUrl" mode="" v-else></image> -->
<view class="ppointment"> <view class="ppointment">
@ -92,14 +94,13 @@
insertGoodsEvaluate, insertGoodsEvaluate,
} from '@/api/pagesB/Serviceevaluation/Serviceevaluation.js' } from '@/api/pagesB/Serviceevaluation/Serviceevaluation.js'
import { import {
add add
} from '@/api/pagesC/servicerecord/servicerecord.js' } from '@/api/pagesC/servicerecord/servicerecord.js'
import baseurl from '@/api/baseurl.js' import baseurl from '@/api/baseurl.js'
export default { export default {
data() { data() {
return { return {
baseurl:'', baseurl: '',
evaluateshow: false, //家医评价 evaluateshow: false, //家医评价
evaluatenurse: false, //护理站评价 evaluatenurse: false, //护理站评价
parentId: '', parentId: '',
@ -118,14 +119,11 @@
patientId: '', patientId: '',
openId: '', openId: '',
orderNo: '', orderNo: '',
evaluateChannel: 'WE_CHAT_APPLET', evaluateChannel: 'WE_CHAT_APPLET',
}, },
openId: '', openId: '',
orderType: '', orderType: '',
orderSource:'', orderSource: '',
} }
}, },
onShow() { onShow() {
@ -134,26 +132,17 @@
this.parentId = this.userinfo.id; this.parentId = this.userinfo.id;
this.region = uni.getStorageSync('region'); this.region = uni.getStorageSync('region');
this.openId = uni.getStorageSync('openid'); this.openId = uni.getStorageSync('openid');
// console.log(this.openId, '999')
// this.cardNo = '371402199404167019'; // this.cardNo = '371402199404167019';
// this.cardNo = '372926199812187720'; // this.cardNo = '372926199812187720';
// this.parentId = '83'; // this.parentId = '83';
this.getlist(); this.getlist();
}, },
onLoad(options) { onLoad(options) {
// this.list.patientId = uni.getStorageSync('patientId'); // this.list.patientId = uni.getStorageSync('patientId');
this.baseurl = baseurl; this.baseurl = baseurl;
}, },
onReachBottom() { //下滑加载 onReachBottom() { //下滑加载
if (this.evaluatedata.length >= this.total) { if (this.evaluatedata.length >= this.total) {
} else { } else {
this.pageNum++ this.pageNum++
getAppletOrderList(this.parentId, this.orderStatus, this.cardNo, this.region, this.pageNum, this getAppletOrderList(this.parentId, this.orderStatus, this.cardNo, this.region, this.pageNum, this
@ -163,12 +152,8 @@
this.evaluatedata.push(e) this.evaluatedata.push(e)
this.total = res.total this.total = res.total
}) })
} }
}) })
} }
}, },
watch: { //监听 watch: { //监听
@ -196,8 +181,6 @@
// 护理站评价 // 护理站评价
ratenurse() { ratenurse() {
this.evaluatenurse = true; this.evaluatenurse = true;
}, },
// 未评价 // 未评价
healthratenurse(item) { healthratenurse(item) {
@ -210,12 +193,10 @@
// 家医模块立即评价 // 家医模块立即评价
if (item.orderType == "FAMILY_DOCTOR") { if (item.orderType == "FAMILY_DOCTOR") {
this.evaluateshow = true; this.evaluateshow = true;
} }
// 健康咨询、护理服务满意度 // 健康咨询、护理服务满意度
if (item.orderType == "HEALTH_CONSULTATION" || item.orderType == "APPOINTMENT_ORDER") { if (item.orderType == "HEALTH_CONSULTATION" || item.orderType == "APPOINTMENT_ORDER") {
this.evaluatenurse = true; this.evaluatenurse = true;
} }
// 商品积分兑换、直接购买 // 商品积分兑换、直接购买
if (item.orderType == "INTEGRAL_EXCHANGE" || item.orderType == "DIRECT_BUY") { if (item.orderType == "INTEGRAL_EXCHANGE" || item.orderType == "DIRECT_BUY") {
@ -223,25 +204,20 @@
url: `/pagesB/evaluate/evaluate?item=${JSON.stringify(item)}&delta=${1}` url: `/pagesB/evaluate/evaluate?item=${JSON.stringify(item)}&delta=${1}`
// url: `/pagesB/goodsorderRate/goodsorderRate?item=${JSON.stringify(item)}&delta=${1}` // url: `/pagesB/goodsorderRate/goodsorderRate?item=${JSON.stringify(item)}&delta=${1}`
}) })
} }
this.orderType = item.orderType this.orderType = item.orderType
this.list.orderNo = item.orderNo this.list.orderNo = item.orderNo
// this.list.evaluateChanne = 'WE_CHAT_APPLET' // this.list.evaluateChanne = 'WE_CHAT_APPLET'
}, },
// 提交评价 // 提交评价
submit() { submit() {
this.list.patientId = this.parentId this.list.patientId = this.parentId
this.list.openId = uni.getStorageSync('openid') this.list.openId = uni.getStorageSync('openid')
console.log(this.list, '45')
if (this.orderType == "HEALTH_CONSULTATION" || this.orderType == "INTEGRAL_EXCHANGE" || this.orderType == if (this.orderType == "HEALTH_CONSULTATION" || this.orderType == "INTEGRAL_EXCHANGE" || this.orderType ==
"DIRECT_BUY" || this.orderType == "FAMILY_DOCTOR") { "DIRECT_BUY" || this.orderType == "FAMILY_DOCTOR") {
// this.list.evaluateSatisfaction=this.evaluateSatisfaction // this.list.evaluateSatisfaction=this.evaluateSatisfaction
this.list.compositeScore=this.rateval this.list.compositeScore = this.rateval
this.list.orderSource=this.orderSource this.list.orderSource = this.orderSource
insertGoodsEvaluate(this.list).then(res => { insertGoodsEvaluate(this.list).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.$refs.uToast.show({ this.$refs.uToast.show({
@ -288,15 +264,12 @@
}) })
} }
}) })
} }
}, },
// 取消 // 取消
cancel() { cancel() {
this.evaluateshow = false; this.evaluateshow = false;
this.evaluatenurse = false; this.evaluatenurse = false;
}, },
// 列表 // 列表
getlist() { getlist() {
@ -304,22 +277,15 @@
.pageSize).then(res => { .pageSize).then(res => {
this.evaluatedata = res.rows this.evaluatedata = res.rows
this.total = res.total this.total = res.total
}) })
}, },
// 跳转我的评价 // 跳转我的评价
expertOrder() { expertOrder() {
uni.navigateTo({ uni.navigateTo({
url: '/pagesB/myevaluation/myevaluation' url: '/pagesB/myevaluation/myevaluation'
}) })
}, },
}, },
} }
</script> </script>
@ -732,4 +698,4 @@
} }
} }
</style> </style>

View File

@ -317,4 +317,4 @@
} }
} }
} }
</style> </style>

View File

@ -86,4 +86,4 @@
::v-deep .utd { ::v-deep .utd {
color: #26A888 !important; color: #26A888 !important;
} }
</style> </style>

View File

@ -1,109 +0,0 @@
.app {
background-color: #F7F5F5;
height: 100vh;
width: 100%;
color: #000000;
padding-top: 20rpx;
.concent {
width: 95%;
height: 100%;
background: #FFFFFF;
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
border-radius: 5rpx;
margin: 0 auto;
.refund {
position: relative;
margin: 0 auto;
width: 95%;
height: 100rpx;
font-family: Source Han Sans CN;
border-bottom: 1rpx solid #E6E6E6;
span:nth-child(1) {
line-height: 100rpx;
display: inline-block;
margin-left: 3%;
font-size: 30rpx;
font-weight: 500;
color: #333333;
}
span:nth-child(2) {
color: #F44B2F;
position: absolute;
display: inline-block;
top: 53%;
transform: translateY(-50%);
right: 15%;
font-size: 20rpx;
}
span:nth-child(3) {
position: absolute;
color: #F44B2F;
display: inline-block;
top: 50%;
transform: translateY(-50%);
right: 5%;
}
span:nth-child(4) {
color: #F44B2F;
position: absolute;
display: inline-block;
top: 53%;
transform: translateY(-50%);
right: 0%;
font-size: 20rpx;
}
}
.reason {
position: relative;
margin: 0 auto;
width: 95%;
height: 100rpx;
font-family: Source Han Sans CN;
.reasondata {
position: relative;
display: block;
font-size: 30rpx;
font-weight: 500;
color: #333333;
margin-left: 3%;
margin-top: 4%;
}
.textarea {
position: relative;
top: 21%;
left: 3%;
letter-spacing: 0.2em;
::v-deep .uni-textarea-textarea{
font-size: 28rpx;
}
::v-deep .uni-textarea-compute, .uni-textarea-line, .uni-textarea-placeholder, .uni-textarea-textarea{
font-size: 28rpx;
}
font-size: 30rpx;
}
}
.bottom{
position: absolute;
width: 496rpx;
height: 61rpx;
background: #26A888;
border-radius: 5rpx;
text-align: center;
line-height: 61rpx;
color: #FFFFFF;
left: 50%;
transform: translateX(-50%);
bottom: 4%;
font-size: 31rpx;
}
}
}

View File

@ -1,57 +0,0 @@
<template>
<view class="app">
<view class="concent">
<view class="refund">
<span>退款金额</span>
<span>¥</span>
<!-- <span></span> -->
<span>{{list.totalPrice}}</span>
</view>
<view class="reason">
<view class="reasondata">原因</view>
<view class="textarea">
<textarea v-model="value" :type="type" :border="border" placeholder="请输入您的退款原因" />
</view>
</view>
<view class="bottom">
确认取消
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
list:[],
}
},
onLoad(options) {
console.log(options,'999')
this.list = JSON.parse(options.list)
console.log(this.list, '99')
// console.log(options,'88')
this.baseurl = baseurl
this.orderTypeList.goodsOrderId = options.goodsOrderId
let that = this
// const value = uni.getStorageSync('patientId');
// const value2 = uni.getStorageSync('openid');
// if (value && value2) {
// that.orderTypeList.patientId = value
// that.orderTypeList.openid = value2
// }
},
methods: {
}
}
</script>
<style lang="scss">
@import './cancel.scss'
</style>

View File

@ -118,4 +118,4 @@
} }
} }
</style> </style>

View File

@ -416,4 +416,4 @@
} }
} }
} }
</style> </style>

View File

@ -9,7 +9,7 @@
:style="address=='请选择所属地区'?'font-size:22rpx;font-weight: 400;color: #8E8E8E !important;':''"> :style="address=='请选择所属地区'?'font-size:22rpx;font-weight: 400;color: #8E8E8E !important;':''">
{{address}} {{address}}
</view> </view>
<image src="../../static/huijiantou.png" mode=""></image> <image :src="require('@/pagesC/images/huijiantou.png')" mode=""></image>
</view> </view>
<view class="text"> <view class="text">
患者姓名 患者姓名
@ -148,7 +148,7 @@
请选择支付方式 请选择支付方式
</view> </view>
<view class="chat"> <view class="chat">
<image src="@/static/pagesB/chat.png" mode=""></image> <image :src="require('@/pagesC/images/chat.png')" mode=""></image>
<span>微信支付</span> <span>微信支付</span>
</view> </view>
<view class="submits" @tap='buy'> <view class="submits" @tap='buy'>
@ -481,4 +481,4 @@
<style lang="scss"> <style lang="scss">
@import './confirmation.scss'; @import './confirmation.scss';
</style> </style>

View File

@ -4,13 +4,13 @@
<view class="card"> <view class="card">
<view class="topbar"> <view class="topbar">
<view class="item" @tap='goimagetextConsultation'> <view class="item" @tap='goimagetextConsultation'>
<image src="@/static/pagesB/tuwen.png" mode=""></image> <image :src="require('@/pagesC/images/tuwen.png')" mode=""></image>
<view class="text"> <view class="text">
图文问诊 图文问诊
</view> </view>
</view> </view>
<view class="item" @tap='gomedicine'> <view class="item" @tap='gomedicine'>
<image src="@/static/pagesB/zhuanjia.png" mode=""></image> <image :src="require('@/pagesC/images/zhuanjia.png')" mode=""></image>
<view class="text"> <view class="text">
专家问诊 专家问诊
</view> </view>
@ -24,7 +24,7 @@
<view class="list" v-if="HospitalPersonlist"> <view class="list" v-if="HospitalPersonlist">
<view class="item" @tap="godoctordetails" v-for="item in HospitalPersonlist"> <view class="item" @tap="godoctordetails" v-for="item in HospitalPersonlist">
<image v-if="item.personPictureUrl" :src="baseurl+item.personPictureUrl" mode=""></image> <image v-if="item.personPictureUrl" :src="baseurl+item.personPictureUrl" mode=""></image>
<image v-else src="@/static/docHead.png" mode=""></image> <image v-else :src="baseurl + '/profile/weChatPicture/docHead.png'" />
<view class="name"> <view class="name">
{{item.personName}} {{item.personName}}
</view> </view>
@ -145,12 +145,9 @@
} }
} }
}) })
} else { } else {
this.info() this.info()
} }
}, },
//医生详情 //医生详情
// godoctordetails() { // godoctordetails() {

View File

@ -1,20 +1,20 @@
<template> <template>
<view class="app"> <view class="app">
<u-navbar :is-back="false" :background="background" class="u-navbar"> <u-navbar :is-back="false" :background="background" class="u-navbar">
<image src="@/static/fanhui.png" mode="" @tap="goprevious"></image> <image :src="require('@/pagesC/images/fanhui.png')" mode="" @tap="goprevious"></image>
<view class="title" v-if="list.orderStatus=='WAIT_PAY'" @tap="goprevious">待付款</view> <view class="title" v-if="list.orderStatus=='WAIT_PAY'" @tap="goprevious">待付款</view>
<view class="title" v-if="list.orderStatus=='WAIT_REFUND'" @tap="goprevious">退款中</view> <view class="title" v-if="list.orderStatus=='WAIT_REFUND'" @tap="goprevious">退款中</view>
<view class="title" v-if="list.orderStatus=='CANCEL'" @tap="goprevious">已取消</view> <view class="title" v-if="list.orderStatus=='CANCEL'" @tap="goprevious">已取消</view>
<view class="title" v-if="list.orderStatus=='WAIT_RECEIVED_GOODS'" @tap="goprevious">待接单</view> <view class="title" v-if="list.orderStatus=='WAIT_RECEIVED_GOODS'" @tap="goprevious">待接单</view>
<view class="title" v-if="list.orderStatus=='COMPLETED'" @tap="goprevious">待评价</view> <view class="title" v-if="list.orderStatus=='COMPLETED'" @tap="goprevious">待评价</view>
<view class="title" v-if="list.orderStatus=='RECEIVED_GOODS'" @tap="goprevious">待服务</view> <view class="title" v-if="list.orderStatus=='RECEIVED_GOODS'" @tap="goprevious">待服务</view>
<view class="title" v-if="list.orderStatus=='EVALUATED'" @tap="goprevious">已评价</view> <view class="title" v-if="list.orderStatus=='EVALUATED'" @tap="goprevious">已评价</view>
<view class="title" v-if="list.orderStatus=='PAY'" @tap="goprevious">待发货</view> <view class="title" v-if="list.orderStatus=='PAY'" @tap="goprevious">待发货</view>
<view class="title" v-if="list.orderStatus=='REFUNDED'" @tap="goprevious">已退款</view> <view class="title" v-if="list.orderStatus=='REFUNDED'" @tap="goprevious">已退款</view>
<view class="title" v-if="list.orderStatus=='WAIT_RETURNED_GOODS'" @tap="goprevious">待退货</view> <view class="title" v-if="list.orderStatus=='WAIT_RETURNED_GOODS'" @tap="goprevious">待退货</view>
<view class="title" v-if="list.orderStatus=='RETURNED_GOODS'" @tap="goprevious">退款成功</view> <view class="title" v-if="list.orderStatus=='RETURNED_GOODS'" @tap="goprevious">退款成功</view>
</u-navbar> </u-navbar>
@ -30,7 +30,7 @@
<view class="content"> <view class="content">
<view class="service"> <view class="service">
<image src="@/static/pagesB/persone.png" mode=""></image> <image :src="require('@/pagesC/images/persone.png')" mode=""></image>
<span>医生服务</span> <span>医生服务</span>
</view> </view>
<view class="orderitem"> <view class="orderitem">
@ -138,7 +138,7 @@
<span>订单金额</span><span>¥{{list.totalPrice}}</span> <span>订单金额</span><span>¥{{list.totalPrice}}</span>
</view> </view>
<!-- <view class="amount"> <!-- <view class="amount">
<span>预约日期</span><span>¥{{list.appointmentDate}}</span> <span>预约日期</span><span>¥{{list.appointmentDate}}</span>
</view> --> </view> -->
@ -201,7 +201,7 @@
export default { export default {
data() { data() {
return { return {
baseurl:'', baseurl: '',
timestamp: 0, timestamp: 0,
countvalue: 0, countvalue: 0,
list: [], list: [],
@ -211,7 +211,7 @@
}, },
evaluateshow: false, evaluateshow: false,
orderTypeList: { orderTypeList: {
orderNo:'', orderNo: '',
}, },
order: [], order: [],
@ -328,4 +328,4 @@
</script> </script>
<style lang="scss"> <style lang="scss">
@import './consulted.scss' @import './consulted.scss'
</style> </style>

View File

@ -153,4 +153,4 @@
<style lang="scss"> <style lang="scss">
@import "./coupon.scss"; @import "./coupon.scss";
</style> </style>

View File

@ -19,7 +19,7 @@
<view class="inputtext" v-if="address"> <view class="inputtext" v-if="address">
{{address}} {{address}}
</view> </view>
<image src="../../static/huijiantou.png" mode=""></image> <image :src="require('@/pagesC/images/huijiantou.png')" mode=""></image>
</view> </view>
<view class="text"> <view class="text">
患者姓名 患者姓名
@ -48,7 +48,7 @@
<view class="select" @tap='gochoosedoctor'> <view class="select" @tap='gochoosedoctor'>
<text v-if="!doctorName">请选择医生</text> <text v-if="!doctorName">请选择医生</text>
<text v-else style="font-size: 26rpx;color: #303133;">{{doctorName}}</text> <text v-else style="font-size: 26rpx;color: #303133;">{{doctorName}}</text>
<image src="../../static/huijiantou.png" mode=""></image> <image :src="require('@/pagesC/images/huijiantou.png')" mode=""></image>
</view> </view>
</view> </view>
<view class="title"> <view class="title">
@ -327,7 +327,7 @@
this.formdata.address = this.address this.formdata.address = this.address
} }
if (res.code == 200) { if (res.code == 200) {
getHospitalPersonInfo(res.data.dutyDoctorNo, '1').then(res => { getHospitalPersonInfo(res.data.dutyDoctorNo).then(res => {
this.doctorName = res.data.personName this.doctorName = res.data.personName
this.doctorId = res.data.id this.doctorId = res.data.id
this.doctorlist = res.data this.doctorlist = res.data
@ -352,4 +352,4 @@
<style lang="scss"> <style lang="scss">
@import './createnewconsultation.scss'; @import './createnewconsultation.scss';
</style> </style>

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="app"> <view class="app">
<image src="../../static/headsculpture.png" mode=""></image> <image :src="require('@/pagesC/images/headsculpture.png')" mode=""></image>
<view class="name"> <view class="name">
张三 张三
</view> </view>

View File

@ -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/pagesB/gb2.png" mode="" style="color: red;" @tap='delimg(item)'> <image class="delimg" :src="require('@/pagesC/images/gb2.png')" mode="" style="color: red;"
@tap='delimg(item)'>
</image> </image>
<image class="itemimg" :src="item" mode=""></image> <image class="itemimg" :src="item" mode=""></image>
</view> </view>
@ -14,7 +15,7 @@
</view> </view>
</view> </view>
<!-- <view class="videotape item"> <!-- <view class="videotape item">
<image src="../../static/video.png" mode=""></image> <image :src="require('@/pagesC/images/video.png')"mode=""></image>
<view class="title"> <view class="title">
录像 录像
</view> </view>

View File

@ -41,6 +41,7 @@
}; };
}, },
onLoad() { onLoad() {
this.list = []
this.info() this.info()
}, },
methods: { methods: {
@ -77,6 +78,7 @@
} }
}, },
onPullDownRefresh() { //下拉刷新 onPullDownRefresh() { //下拉刷新
this.list = []
this.query.pageNum = 1; this.query.pageNum = 1;
this.info(); this.info();
setTimeout(function() { setTimeout(function() {

View File

@ -210,12 +210,7 @@
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1
}) })
// uni.navigateTo({
// url:`/pagesB/register/register?headPictureUrl=${this.tempImg}`
// })
}, },
// 点击 - 取消上传 // 点击 - 取消上传
handleCancelClick() { handleCancelClick() {
console.log(this.tempImg) console.log(this.tempImg)

View File

@ -4,7 +4,7 @@
<view class="title"> <view class="title">
签约时出示二维码 签约时出示二维码
</view> </view>
<image src="@/static/pagesB/ma2x.png" mode=""></image> <image :src="require('@/pagesC/images/ma2x.png')" mode=""></image>
</view> </view>
<view class="item"> <view class="item">
<view class="lefttext"> <view class="lefttext">
@ -76,7 +76,7 @@
duration: 1000 duration: 1000
}); });
uni.removeStorageSync('patientId'); uni.removeStorageSync('patientId');
uni.removeStorageSync('openid'); // uni.removeStorageSync('openid');
uni.removeStorageSync('phone'); uni.removeStorageSync('phone');
uni.removeStorageSync('userinfo'); uni.removeStorageSync('userinfo');
setTimeout(function() { setTimeout(function() {

View File

@ -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/pagesB/gb2.png" mode="" style="color: red;" @tap='delimg(item)'> <image class="delimg" :src="require('@/pagesC/images/gb2.png')" mode="" style="color: red;"
@tap='delimg(item)'>
</image> </image>
<image class="itemimg" :src="item" mode=""></image> <image class="itemimg" :src="item" mode=""></image>
</view> </view>
@ -14,7 +15,7 @@
</view> </view>
</view> </view>
<!-- <view class="videotape item"> <!-- <view class="videotape item">
<image src="../../static/video.png" mode=""></image> <image :src="require('@/pagesC/images/video.png')" mode=""></image>
<view class="title"> <view class="title">
录像 录像
</view> </view>
@ -142,9 +143,9 @@
}, },
}, },
onLoad(options) { onLoad(options) {
console.log(options,'4') console.log(options, '4')
this.orderlist = JSON.parse(options.item) this.orderlist = JSON.parse(options.item)
console.log(this.orderlist,'47') console.log(this.orderlist, '47')
this.delta = options.delta this.delta = options.delta
}, },
onShow() { onShow() {
@ -164,4 +165,4 @@
<style lang="scss"> <style lang="scss">
@import './goodsorderRate.scss'; @import './goodsorderRate.scss';
</style> </style>

View File

@ -1,12 +1,12 @@
<template> <template>
<view class="app"> <view class="app">
<view class="vacancies"> <view class="vacancies">
<image src="@/static/pagesB/Behave.png" mode=""></image> <image :src="require('@/pagesC/images/Behave.png')" mode=""></image>
<view class="lefttext"> <view class="lefttext">
健康豆余额 健康豆余额
</view> </view>
<view class="righttext"> <view class="righttext">
<!-- <image src="../../static/jfgz.png" mode=""></image> <!-- <image :src="require('@/pagesC/images/jfgz.png')"mode=""></image>
<view class=""> <view class="">
积分规则 积分规则
</view> --> </view> -->
@ -48,14 +48,15 @@
</view> </view>
<u-mask :show="gainshow" @click="gainshow = false"> <u-mask :show="gainshow" @click="gainshow = false">
<view class="mask" @click.stop=""> <view class="mask" @click.stop="">
<image class="close" src="@/static/pagesB/gb.png" mode="" @tap='gainshow=false'></image> <image class="close" :src="require('@/pagesC/images/gb.png')" mode="" @tap='gainshow=false'>
</image>
</image> </image>
<view class="title"> <view class="title">
获取方式 获取方式
</view> </view>
<view class="maskitems"> <view class="maskitems">
<view class="item"> <view class="item">
<image src="@/static/pagesB/qiandao.png" mode=""></image> <image :src="require('@/pagesC/images/qiandao.png')" mode=""></image>
<view class="titletext"> <view class="titletext">
累计签到 累计签到
<span style='padding: 0 5rpx;' v-if="list.totalSignInDays"> {{list.totalSignInDays}}</span> <span style='padding: 0 5rpx;' v-if="list.totalSignInDays"> {{list.totalSignInDays}}</span>
@ -78,7 +79,7 @@
</view> </view>
</view> </view>
<!-- <view class="item" style="background-color: #F44B2F;"> <!-- <view class="item" style="background-color: #F44B2F;">
<image src="@/static/pagesB/yaoqing.png" mode=""></image> <image :src="require('@/pagesC/images/yaoqing.png')" mode=""></image>
<view class="titletext"> <view class="titletext">
每邀请 每邀请
<span style='padding: 0 5rpx;'> 1</span> <span style='padding: 0 5rpx;'> 1</span>
@ -99,7 +100,8 @@
</u-mask> </u-mask>
<u-mask :show="buyshow" @click="buyshow = false"> <u-mask :show="buyshow" @click="buyshow = false">
<view class="PurchasePage" @click.stop=''> <view class="PurchasePage" @click.stop=''>
<image class="close" src="@/static/pagesB/gb.png" mode="" @tap='buyshow=false'></image> <image class="close" :src="require('@/pagesC/images/gb.png')" mode="" @tap='buyshow=false'>
</image>
</image> </image>
<view class="topcontent" style="width: 96%;"> <view class="topcontent" style="width: 96%;">
<view class="image"> <view class="image">
@ -119,7 +121,7 @@
</view> </view>
<view class="bodys" @tap='upaddress()'> <view class="bodys" @tap='upaddress()'>
<view class="addressinfo"> <view class="addressinfo">
<image src="@/static/pagesB/locatinsmall.png" mode=""></image> <image :src="require('@/pagesC/images/locatinsmalltwo.png')" mode=""></image>
<span v-if="loginFlag"> <span v-if="loginFlag">
<view class="namephone" v-if='userid'> <view class="namephone" v-if='userid'>
{{updata.receiver}},{{updata.phone}} {{updata.receiver}},{{updata.phone}}
@ -167,7 +169,7 @@
</u-popup> </u-popup>
<u-mask :show="usershow" class='masks'> <u-mask :show="usershow" class='masks'>
<view class="information"> <view class="information">
<image src="@/static/pagesB/information.png" mode=""></image> <image :src="require('@/pagesC/images/information.png')" mode=""></image>
<view class="title"> <view class="title">
请完善个人信息 请完善个人信息
</view> </view>
@ -259,7 +261,6 @@
this.baseurl = baseurl this.baseurl = baseurl
this.pageNum = 1 this.pageNum = 1
this.selectExchangeGoodsinfo(); this.selectExchangeGoodsinfo();
this.baseurl = baseurl
this.yapqingbeijingimg = baseurl + '/profile/appletPicture/inviteFriendsTwo.png' this.yapqingbeijingimg = baseurl + '/profile/appletPicture/inviteFriendsTwo.png'
var that = this var that = this
const value = uni.getStorageSync('patientId'); const value = uni.getStorageSync('patientId');
@ -655,4 +656,4 @@
<style lang="scss"> <style lang="scss">
@import "./healthybeans.scss"; @import "./healthybeans.scss";
</style> </style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 258 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

Some files were not shown because too many files have changed in this diff Show More