Compare commits
10 Commits
3ec0cbd5c8
...
c67cae7caf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c67cae7caf | ||
|
|
f6e690d7be | ||
|
|
b2204fb91b | ||
|
|
1ea2ea6640 | ||
|
|
30f9144865 | ||
|
|
749e245824 | ||
|
|
e9553a77da | ||
|
|
d70b5af884 | ||
|
|
6fffb0a624 | ||
|
|
49cc34fb07 |
9
App.vue
@ -6,7 +6,11 @@
|
||||
createMobileToken
|
||||
} from '@/api/pages/login/index.js'
|
||||
export default {
|
||||
onLaunch: function() {},
|
||||
onLaunch: function() {
|
||||
createMobileToken().then(res => {
|
||||
uni.setStorageSync("token", res.data.token)
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
...mapMutations(['socketOpenfalse']),
|
||||
...mapMutations(['scoket']),
|
||||
@ -15,9 +19,6 @@
|
||||
if (uni.getStorageSync('patientId') && !this.$store.state.socketOpen) {
|
||||
this.scoket();
|
||||
}
|
||||
createMobileToken().then(res => {
|
||||
uni.setStorageSync("token", res.data.token)
|
||||
})
|
||||
},
|
||||
onHide: function() {
|
||||
this.socketOpenfalse();
|
||||
|
||||
33
api/crypto.js
Normal 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
|
||||
}
|
||||
@ -12,7 +12,7 @@ export function getOpenId(code) {
|
||||
}
|
||||
|
||||
// 获取当前注册居民
|
||||
export function getCurrentUser(openid) {
|
||||
export function logingetCurrentUser(openid) {
|
||||
return request({
|
||||
url: `/applet/register/getCurrentResident/${openid}`,
|
||||
method: 'GET',
|
||||
|
||||
@ -22,9 +22,18 @@ export function getwxPhoneNumber(code) {
|
||||
}
|
||||
|
||||
// 判断是否注册
|
||||
export function isRegistered(logincode,phonecode) {
|
||||
export function isRegistered(logincode, phonecode) {
|
||||
return request({
|
||||
url: `/applet/register/login/${logincode}/${phonecode}`,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//静默登录
|
||||
export function login(loginCode) {
|
||||
return request({
|
||||
url: `/applet/register/login/${loginCode}`,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
@ -33,7 +33,7 @@ export function getFamilyList(openid, patientCode) {
|
||||
export function registerdata(data) {
|
||||
return request({
|
||||
url: '/applet/register',
|
||||
method: 'POST',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
@ -4,7 +4,7 @@ import request from "../../request.js"
|
||||
export function registerdata(data) {
|
||||
return request({
|
||||
url: '/applet/register',
|
||||
method: 'POST',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
|
||||
export function AppIdentification(patientId) {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
//退款原因
|
||||
export function refundReason() {
|
||||
@ -14,7 +14,7 @@ export function refundReason() {
|
||||
export function refund(data) {
|
||||
return request({
|
||||
url: `/nurseApplet/nursingOrder/edit`,
|
||||
method: 'POST',
|
||||
method: 'post',
|
||||
data,
|
||||
header: {
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
export function scorelist(data) {
|
||||
return request({
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
// 查询商品详细列表
|
||||
export function goodsDetails(goodsInfoId, patientId) {
|
||||
return request({
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
|
||||
//收货
|
||||
export function confirmReceipt(orderNo) {
|
||||
return request({
|
||||
url: `/nurseApplet/nursingStationGoods/confirmReceipt?orderNo=${orderNo}`,
|
||||
method: 'POST',
|
||||
method: 'post',
|
||||
header: {
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
},
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
//支付成功调取
|
||||
export function pushMeg(data) {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
//列表
|
||||
export function cardPackagelist(data) {
|
||||
|
||||
@ -1,11 +1,12 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
export function getHeathHousingList(pageNum, pageSize) {
|
||||
return request({
|
||||
url: `/nurseApplet/nearbyNursingStation/getHeathHousingList?pageNum=${pageNum}&pageSize=${pageSize}&informationCategoryType=HEALTH_NOUS`,
|
||||
method: 'get',
|
||||
header: {
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'),
|
||||
region: uni.getStorageSync('region'),
|
||||
},
|
||||
})
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
export function appServiceOrder(id,pageSize,pageNum) {
|
||||
return request({
|
||||
url: `/nurseApp/login/appServiceOrder?pageSize=${pageSize}&pageNum=${pageNum}&patientId=${id}`,
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
export function prizelist(data) {
|
||||
return request({
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
export function goodsList(pageSize, pageNum, goodsCategoryId, goodsName) {
|
||||
return request({
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
export function getAppStationItemInfo(stationId, stationItemId, stationItemPriceId) {
|
||||
return request({
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
// 获取项目
|
||||
export function getAppointProject(patientId,identity) {
|
||||
return request({
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
|
||||
export function getAppointmentDetailsInfo(orderNo) {
|
||||
@ -14,7 +14,7 @@ export function getAppointmentDetailsInfo(orderNo) {
|
||||
export function addAppointmentEvaluate(data) {
|
||||
return request({
|
||||
url: `/nurseApp/orderEvaluate/addAppointmentEvaluate`,
|
||||
method: 'POST',
|
||||
method: 'post',
|
||||
data,
|
||||
header: {
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
export function getAppletOrderList(parentId,orderStatus,cardNo,region,pageNum,pageSize) {
|
||||
return request({
|
||||
url: `/nurseApplet/nursingOrder/getAppletOrderList?parentId=${parentId}&orderStatus=${orderStatus}&cardNo=${cardNo}®ion=${region}&pageNum=${pageNum}&pageSize=${pageSize}`,
|
||||
@ -15,7 +15,7 @@ export function getAppletOrderList(parentId,orderStatus,cardNo,region,pageNum,pa
|
||||
export function addAppointmentEvaluate(data) {
|
||||
return request({
|
||||
url: `/nurseApp/orderEvaluate/addAppointmentEvaluate`,
|
||||
method: 'POST',
|
||||
method: 'post',
|
||||
data,
|
||||
header: {
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
@ -26,7 +26,7 @@ export function addAppointmentEvaluate(data) {
|
||||
export function insertGoodsEvaluate(data) {
|
||||
return request({
|
||||
url: `/nurseApp/orderEvaluate/insertGoodsEvaluate`,
|
||||
method: 'POST',
|
||||
method: 'post',
|
||||
data,
|
||||
header: {
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
export function approvalList(data) {
|
||||
return request({
|
||||
url: `/applet/score/prizeExchange/approvalList`,
|
||||
method: 'POST',
|
||||
method: 'post',
|
||||
data: data,
|
||||
header: {
|
||||
region: uni.getStorageSync('region'),
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
export function getAppPatientList(id) {
|
||||
return request({
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
export function cancellationOrder(appointmentOrderId,cancelAppointmentReason) {
|
||||
return request({
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
//确认支付
|
||||
export function addStationGoodsOrder(data) {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
export function getListByDoctor(doctorId) {
|
||||
return request({
|
||||
@ -14,7 +14,7 @@ export function getListByDoctor(doctorId) {
|
||||
export function addHealthConsultationOrder(data) {
|
||||
return request({
|
||||
url: `/nurseApp/healthConsultation/addHealthConsultationOrder`,
|
||||
method: 'POST',
|
||||
method: 'post',
|
||||
data,
|
||||
header: {
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
|
||||
export function selectCoupon(pageNum, pageSize, patientId, couponstatus) {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
export function prizeExchangelist(data) {
|
||||
return request({
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
// 获取家庭成员详情
|
||||
export function getInfo(patientCode, openid) {
|
||||
return request({
|
||||
|
||||
@ -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) {
|
||||
return new Promise((resolve, rejected) => {
|
||||
@ -9,6 +16,10 @@ var request = function(config) {
|
||||
timeout: 60000,
|
||||
header: config.header,
|
||||
success(res) {
|
||||
if (witch == '1') {
|
||||
res.data = decrypt(res.data)
|
||||
res.data = JSON.parse(res.data)
|
||||
}
|
||||
resolve(res.data)
|
||||
},
|
||||
fail(err) {
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
export function insertGoodsEvaluate(data) {
|
||||
return request({
|
||||
url: `/nurseApp/orderEvaluate/insertGoodsEvaluate`,
|
||||
method: 'POST',
|
||||
method: 'post',
|
||||
data,
|
||||
header: {
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
@ -15,7 +15,7 @@ export function insertGoodsEvaluate(data) {
|
||||
export function uploadEvaluatePictureUrl(data) {
|
||||
return request({
|
||||
url: `/nurseApp/orderEvaluate/uploadEvaluatePictureUrl`,
|
||||
method: 'POST',
|
||||
method: 'post',
|
||||
data,
|
||||
header: {
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
|
||||
//签到
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
|
||||
export function accompanyingDiagnosis(data) {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
//区街道list
|
||||
export function getRegionAndStreetInfo() {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
// 物流查询接口
|
||||
export function queryLogistics(orderNo,expressNo){
|
||||
return request({
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
// 修改信息
|
||||
export function lookrate(orderNo) {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
|
||||
//新人优惠券
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
//齐鲁名医
|
||||
export function selectDepartmentNoPage() {
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
// 修改信息
|
||||
export function updateInformation(data){
|
||||
return request({
|
||||
url: '/nurseApp/login/updateInformation',
|
||||
method: 'POST',
|
||||
method: 'post',
|
||||
data,
|
||||
header: {
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
// 根据被护理人id查询基本信息
|
||||
export function goodPatientInfo(patientId) {
|
||||
@ -14,7 +14,7 @@ export function goodPatientInfo(patientId) {
|
||||
export function addnursingStation(data) {
|
||||
return request({
|
||||
url: '/nurseApplet/nursingStationGoods/add',
|
||||
method: 'POST',
|
||||
method: 'post',
|
||||
data,
|
||||
header: {
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
@ -27,7 +27,7 @@ export function addnursingStation(data) {
|
||||
export function updatenursingStation(data) {
|
||||
return request({
|
||||
url: '/nurseApplet/nursingStationGoods/edit',
|
||||
method: 'POST',
|
||||
method: 'post',
|
||||
data,
|
||||
header: {
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
@ -98,7 +98,7 @@ export function getSubordinateInfo(id) {
|
||||
export function updateDefaultAddress(data) {
|
||||
return request({
|
||||
url: `/nurseApplet/nursingStationGoods/updateDefaultAddress`,
|
||||
method: 'POST',
|
||||
method: 'post',
|
||||
data,
|
||||
header: {
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
|
||||
export function introductionList(id, longitude, latitude) {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
// 获取预约列表
|
||||
export function getOrderList(patientId,identity,pageNum,pageSize) {
|
||||
return request({
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
// import request from '../jsIndex'
|
||||
import request from "../../request.js"
|
||||
|
||||
import request from "@/api/request.js"
|
||||
|
||||
// 济南
|
||||
// 预约
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
// 获取筛查结果列表
|
||||
export function screeningResultList(patientId,identity,pageNum,pageSize) {
|
||||
return request({
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
// 获取最新的筛查结果
|
||||
export function lastScreeningResult(identity,projectld) {
|
||||
return request({
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
export function goodsCategoryList(pageSize, pageNum) {
|
||||
return request({
|
||||
|
||||
@ -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) {
|
||||
return request({
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import request from "@/api/request.js"
|
||||
|
||||
export function getUserSig(userId) {
|
||||
return request({
|
||||
url: '/nurseApplet/consultation/getUserSig/'+userId,
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import request from "../../request.js"
|
||||
import request from "@/api/request.js"
|
||||
|
||||
export function riskWarning(identity) {
|
||||
return request({
|
||||
|
||||
@ -22,7 +22,7 @@ export function getSignProtocol(cardNo) {
|
||||
}
|
||||
})
|
||||
}
|
||||
export function getHospitalPersonInfo(personCode,status) {
|
||||
export function getHospitalPersonInfo(personCode) {
|
||||
return request({
|
||||
url: `/nurseApplet/consultationInfo/getHospitalPersonInfo?personCode=${personCode}&&status=${1}`,
|
||||
method: 'get',
|
||||
|
||||
@ -4,7 +4,7 @@ import request from "../../request.js"
|
||||
export function list(data) {
|
||||
return request({
|
||||
url: '/applet/service/apply/list',
|
||||
method: 'POST',
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ export function getChatRecord(data) {
|
||||
export function markRead(data) {
|
||||
return request({
|
||||
url: `/nurseApplet/chatRecord/updateReadStatus`,
|
||||
method: 'PUT',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
@ -1,4 +1,11 @@
|
||||
import baseurl from './baseurl.js'
|
||||
import {
|
||||
encrypt,
|
||||
decrypt
|
||||
} from '@/api/crypto.js'
|
||||
import {
|
||||
witch
|
||||
} from "@/api/witch";
|
||||
|
||||
var request = function(config) {
|
||||
if (uni.getStorageSync('openid')) {
|
||||
@ -12,6 +19,16 @@ var request = function(config) {
|
||||
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]
|
||||
if (config.url != '/nurseApplet/chatRecord/updateReadStatus' && config.url !=
|
||||
"/nurseApplet/chatRecord/sendMessage" && config.url !=
|
||||
@ -30,6 +47,14 @@ var request = function(config) {
|
||||
header: config.header,
|
||||
success(res) {
|
||||
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)
|
||||
},
|
||||
fail(err) {
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
var socketurl = "wss://hekou-nurse-api.xinyilu.cn/webSocket/";
|
||||
// var socketurl = "wss://1608.xinelu.cn/webSocket/";
|
||||
var dzsocketurl = "wss://hekou-nurse-api.xinyilu.cn/fado/dz/webSocket/"; // SN码设备德州
|
||||
var dysocketurl = "wss://hekou-nurse-api.xinyilu.cn/fado/dy/webSocket/"; // SN码设备东营
|
||||
// var socketurl = "ws://192.168.16.250:8098/webSocket/";
|
||||
// var socketurl = "ws://8.131.93.145:54088/webSocket/";
|
||||
|
||||
|
||||
|
||||
export {
|
||||
socketurl,
|
||||
dzsocketurl,
|
||||
dysocketurl,
|
||||
}
|
||||
4
api/witch.js
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
var witch = '1' //1加密 2不加密
|
||||
|
||||
export { witch }
|
||||
10
package.json
@ -7,10 +7,10 @@
|
||||
"version": "1.3.1",
|
||||
"description": "图片不失帧,保留原有画质,canvas方法扩展,暴露原生实例,可自行扩展,最好用的canvas插件",
|
||||
"keywords": [
|
||||
"canvas",
|
||||
"画布生成图片",
|
||||
"绘制图片",
|
||||
"商品海报",
|
||||
"朋友圈海报"
|
||||
"canvas",
|
||||
"画布生成图片",
|
||||
"绘制图片",
|
||||
"商品海报",
|
||||
"朋友圈海报"
|
||||
]
|
||||
}
|
||||
|
||||
19
pages.json
@ -9,6 +9,12 @@
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}, {
|
||||
"path": "pages/myinformation/myinformation",
|
||||
"style": {
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}, {
|
||||
"path": "pages/message/message",
|
||||
"style": {
|
||||
@ -16,12 +22,6 @@
|
||||
"onReachBottomDistance": 40, //距离底部多远时触发 单位为px
|
||||
"enablePullDownRefresh": true //设置参数为true
|
||||
}
|
||||
}, {
|
||||
"path": "pages/myinformation/myinformation",
|
||||
"style": {
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}, {
|
||||
"path": "pages/medicalservice/medicalservice",
|
||||
"style": {
|
||||
@ -358,12 +358,6 @@
|
||||
"onReachBottomDistance": 20, //距离底部多远时触发 单位为px
|
||||
"enablePullDownRefresh": true //设置参数为true
|
||||
}
|
||||
}, {
|
||||
"path": "cancel/cancel",
|
||||
"style": {
|
||||
"navigationBarTitleText": "取消订单",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
}, {
|
||||
"path": "PointsMall/PointsMall",
|
||||
"style": {
|
||||
@ -804,7 +798,6 @@
|
||||
"navigationBarTitleText": "健康自评历史记录",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
}, {
|
||||
"path": "HistoryQuestionnaire/HistoryQuestionnaire",
|
||||
"style": {
|
||||
|
||||
@ -4,18 +4,18 @@
|
||||
<view class="" v-if="Number(region)==2&&Number(userinfo.cityCode)==2">
|
||||
<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/dyqmainPage.png'" mode="" />
|
||||
<image v-else-if="countyName=='广饶县'" :src="baseurl+ '/profile/weChatPicture/grgmainPage.png'" mode="" />
|
||||
<image v-else-if="countyName=='河口区'" :src="baseurl+ '/profile/weChatPicture/hkmainPage.png'" mode="" />
|
||||
<image v-else-if="countyName=='垦利区'" :src="baseurl+ '/profile/weChatPicture/klgmainPage.png'" mode="" />
|
||||
<image v-else-if="countyName=='利津县'" :src="baseurl+ '/profile/weChatPicture/ljgmainPage.png'" mode="" />
|
||||
<image v-else :src="baseurl+ '/profile/weChatPicture/dysmainPage.png'" mode="" />
|
||||
<image v-else-if="countyName=='东营区'" :src="baseurl+ '/profile/weChatPicture/dyqmainPage.png'" />
|
||||
<image v-else-if="countyName=='广饶县'" :src="baseurl+ '/profile/weChatPicture/grgmainPage.png'" />
|
||||
<image v-else-if="countyName=='河口区'" :src="baseurl+ '/profile/weChatPicture/hkmainPage.png'" />
|
||||
<image v-else-if="countyName=='垦利区'" :src="baseurl+ '/profile/weChatPicture/klgmainPage.png'" />
|
||||
<image v-else-if="countyName=='利津县'" :src="baseurl+ '/profile/weChatPicture/ljgmainPage.png'" />
|
||||
<image v-else :src="baseurl+ '/profile/weChatPicture/dysmainPage.png'" />
|
||||
</view>
|
||||
<image v-else-if="Number(region)==2&&Number(userinfo.cityCode)!=2"
|
||||
:src="baseurl+ '/profile/weChatPicture/dysmainPage.png'" mode="" />
|
||||
<image v-else :src="baseurl+ '/profile/weChatPicture/mainPage.png'" mode="" />
|
||||
:src="baseurl+ '/profile/weChatPicture/dysmainPage.png'" />
|
||||
<image v-else :src="baseurl+ '/profile/weChatPicture/mainPage.png'" />
|
||||
<view class="loginmount" @tap="city">
|
||||
<image src="../../static/pages/address.png" mode=""></image>
|
||||
<image src="@/static/address.png" />
|
||||
<text>
|
||||
{{address?address:'请选择城市'}}
|
||||
</text>
|
||||
@ -23,63 +23,63 @@
|
||||
</view>
|
||||
<view class="contentcenter" :style="Number(region)==2?'height:450rpx':'height:500rpx'">
|
||||
<view class="home" @tap="goonline">
|
||||
<image v-if="Number(region)==2" src="@/static/hkqianyue.png" mode=""></image>
|
||||
<image v-else src="@/static/qianyue.png" mode=""></image>
|
||||
<image v-if="Number(region)==2" src="@/static/hkqianyue.png" />
|
||||
<image v-else src="@/static/qianyue.png" />
|
||||
<view class="name">
|
||||
家医签约
|
||||
</view>
|
||||
</view>
|
||||
<view class="home" @tap="goHealthrecords">
|
||||
<image v-if="Number(region)==2" src="@/static/hkhealth.png" mode=""></image>
|
||||
<image v-else src="@/static/health.png" mode=""></image>
|
||||
<image v-if="Number(region)==2" :src="baseurl+ '/profile/weChatPicture/hkhealth.png'" />
|
||||
<image v-else src="@/static/health.png" />
|
||||
<view class="name">
|
||||
健康档案
|
||||
</view>
|
||||
</view>
|
||||
<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>
|
||||
</view>
|
||||
<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>
|
||||
</view>
|
||||
<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>
|
||||
</view>
|
||||
<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>
|
||||
</view>
|
||||
<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>
|
||||
</view>
|
||||
<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>
|
||||
</view>
|
||||
<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>
|
||||
</view>
|
||||
<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">
|
||||
360健康画像
|
||||
</view>
|
||||
@ -91,11 +91,11 @@
|
||||
</view>
|
||||
<view class="item">
|
||||
<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 class="sign" :class="Number(region)==2?'notwo':''">
|
||||
<image @tap="healthtest" src="@/static/healthmyself.png" mode=""></image>
|
||||
<image @tap="gorecords" src="@/static/records.png" mode=""></image>
|
||||
<image @tap="healthtest" src="@/static/healthmyself.png" />
|
||||
<image @tap="gorecords" src="@/static/records.png" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -131,7 +131,11 @@
|
||||
countyName: '',
|
||||
}
|
||||
},
|
||||
onLoad() {},
|
||||
onLoad() {
|
||||
if (uni.getStorageSync('userinfo')) {
|
||||
this.wxSportDecryptinfo();
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.baseurl = baseurl
|
||||
this.userinfo = uni.getStorageSync('userinfo')
|
||||
@ -143,7 +147,6 @@
|
||||
}
|
||||
if (uni.getStorageSync('userinfo')) {
|
||||
this.detailinfo();
|
||||
this.wxSportDecryptinfo();
|
||||
}
|
||||
},
|
||||
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: '您未登录,请前往我的页面进行登录',
|
||||
type: 'error',
|
||||
duration: '1000',
|
||||
// url: '/pagesB/login/login'
|
||||
})
|
||||
},
|
||||
// 家医功能提示
|
||||
@ -472,4 +487,4 @@
|
||||
|
||||
<style lang="scss">
|
||||
@import "./homepage.scss";
|
||||
</style>
|
||||
</style>
|
||||
@ -1,23 +1,23 @@
|
||||
<template>
|
||||
<view class="app">
|
||||
<view class="address">
|
||||
<!-- <image src="../../static/pages/address.png" mode=""></image>
|
||||
<!-- <image src="@/static/address.png" mode=""></image>
|
||||
<text>
|
||||
{{location?location:''}}
|
||||
</text> -->
|
||||
</view>
|
||||
<view class="topbar">
|
||||
<image mode="" :src="require('@/pagesB/images/wenzhenpingtai.png')" @tap="goconsultationplatform"></image>
|
||||
<image mode="" :src="require('@/pagesB/images/hulifuwu.png')" @tap="gosite"></image>
|
||||
<image :src="baseurl+ '/profile/weChatPicture/wenzhenpingtai.png'" @tap=" goconsultationplatform" />
|
||||
<image :src="baseurl+ '/profile/weChatPicture/hulifuwu.png'" @tap="gosite" />
|
||||
</view>
|
||||
<view class="title">
|
||||
常用服务
|
||||
</view>
|
||||
<view class="centerbar topbar">
|
||||
<image mode="" :src="require('@/pagesB/images/yuyueshaicha.png')" @tap="goAppointmentscreening"></image>
|
||||
<image mode="" :src="require('@/pagesB/images/shaichajieguo.png')" @tap="result"></image>
|
||||
<image mode="" :src="require('@/pagesB/images/jiankangshangcheng.png')" @tap="goshopping"></image>
|
||||
<image mode="" :src="require('@/pagesB/images/xinrenfuli.png')" @tap="gomaterialbenefits"></image>
|
||||
<image :src="baseurl+ '/profile/weChatPicture/yuyueshaicha.png'" @tap="goAppointmentscreening" />
|
||||
<image :src="baseurl+ '/profile/weChatPicture/shaichajieguo.png'" @tap="result" />
|
||||
<image :src="baseurl+ '/profile/weChatPicture/jiankangshangcheng.png'" @tap="goshopping" />
|
||||
<image :src="baseurl+ '/profile/weChatPicture/xinrenfuli.png'" @tap="gomaterialbenefits" />
|
||||
</view>
|
||||
<view class="title">
|
||||
<text>健康资讯</text>
|
||||
@ -25,7 +25,7 @@
|
||||
<text>
|
||||
查看更多
|
||||
</text>
|
||||
<image src="../../static/huijiantou.png" mode=""></image>
|
||||
<image src="@/static/huijiantou.png" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="list">
|
||||
@ -56,6 +56,7 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
baseurl: '',
|
||||
pageNum: 1,
|
||||
pageSize: 5,
|
||||
informationCategoryVOList: [], //咨询信息
|
||||
@ -73,6 +74,9 @@
|
||||
this.location = uni.getStorageSync('location')
|
||||
this.getHeathHousing();
|
||||
},
|
||||
onLoad() {
|
||||
this.baseurl = baseurl
|
||||
},
|
||||
methods: {
|
||||
// 第一种 直接映射
|
||||
...mapActions(["openPopup"]),
|
||||
@ -81,20 +85,9 @@
|
||||
setTimeout(e => {
|
||||
// 筛查预约
|
||||
if (!this.userInfo) {
|
||||
uni.showModal({
|
||||
title: "提示",
|
||||
content: "您还未注册,是否去注册?",
|
||||
confirmText: '是',
|
||||
cancelText: '否',
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.redirectTo({
|
||||
url: "/pagesB/register/register"
|
||||
})
|
||||
} else {
|
||||
wx.exitMiniProgram()
|
||||
}
|
||||
},
|
||||
this.$refs.uToast.show({
|
||||
title: res.msg,
|
||||
type: '您未登录,请前往我的页面进行登录',
|
||||
})
|
||||
} else {
|
||||
getScreening(this.cardNo).then(res => {
|
||||
@ -132,7 +125,6 @@
|
||||
title: '您未登录,请前往我的页面进行登录',
|
||||
type: 'error',
|
||||
duration: '1000',
|
||||
// url: '/pagesB/login/login'
|
||||
})
|
||||
}
|
||||
},
|
||||
@ -164,7 +156,6 @@
|
||||
title: '您未登录,请前往我的页面进行登录',
|
||||
type: 'error',
|
||||
duration: '1000',
|
||||
// url: '/pagesB/login/login'
|
||||
})
|
||||
}
|
||||
}, 0)
|
||||
@ -184,7 +175,6 @@
|
||||
title: '您未登录,请前往我的页面进行登录',
|
||||
type: 'error',
|
||||
duration: '1000',
|
||||
// url: '/pagesB/login/login'
|
||||
})
|
||||
}
|
||||
}, 0)
|
||||
@ -202,7 +192,6 @@
|
||||
title: '您未登录,请前往我的页面进行登录',
|
||||
type: 'error',
|
||||
duration: '1000',
|
||||
// url: '/pagesB/login/login'
|
||||
})
|
||||
}
|
||||
},
|
||||
@ -221,7 +210,6 @@
|
||||
title: '您未登录,请前往我的页面进行登录',
|
||||
type: 'error',
|
||||
duration: '1000',
|
||||
// url: '/pagesB/login/login'
|
||||
})
|
||||
}
|
||||
}, 50)
|
||||
@ -240,7 +228,6 @@
|
||||
title: '您未登录,请前往我的页面进行登录',
|
||||
type: 'error',
|
||||
duration: '1000',
|
||||
// url: '/pagesB/login/login'
|
||||
})
|
||||
}
|
||||
}, 0)
|
||||
@ -260,7 +247,6 @@
|
||||
title: '您未登录,请前往我的页面进行登录',
|
||||
type: 'error',
|
||||
duration: '1000',
|
||||
// url: '/pagesB/login/login'
|
||||
})
|
||||
}
|
||||
}, 0)
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="app">
|
||||
<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>
|
||||
@ -18,7 +18,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<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>
|
||||
@ -35,7 +35,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<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>
|
||||
@ -52,7 +52,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<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">
|
||||
{{item.senderName}}
|
||||
</view>
|
||||
@ -79,9 +79,11 @@
|
||||
import {
|
||||
mapMutations
|
||||
} from "vuex";
|
||||
import baseurl from '../../api/baseurl';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
baseurl: '',
|
||||
listone: null,
|
||||
listtwo: null,
|
||||
listthree: [],
|
||||
@ -97,6 +99,9 @@
|
||||
this.messagescoket();
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.baseurl = baseurl
|
||||
},
|
||||
methods: {
|
||||
...mapMutations(['scoket']),
|
||||
messagescoket() {
|
||||
|
||||
@ -160,7 +160,7 @@
|
||||
position: relative;
|
||||
color: #FFFFFF;
|
||||
margin-bottom: 50rpx;
|
||||
|
||||
background-color: #26A888;
|
||||
|
||||
.btn {
|
||||
position: absolute;
|
||||
@ -184,20 +184,28 @@
|
||||
.phone {
|
||||
position: absolute;
|
||||
top: 56%;
|
||||
left: 30%;
|
||||
left: 32%;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.nologin{
|
||||
padding:6rpx 12rpx;
|
||||
border: 2rpx solid #fff;
|
||||
border-radius: 5px;
|
||||
display: inline-block;
|
||||
font-size: 36rpx;
|
||||
}
|
||||
|
||||
.namesigning {
|
||||
position: absolute;
|
||||
top: 38%;
|
||||
left: 30%;
|
||||
top: 40%;
|
||||
left: 32%;
|
||||
|
||||
.name {
|
||||
display: inline-block;
|
||||
font-size: 36rpx;
|
||||
}
|
||||
|
||||
|
||||
.signing {
|
||||
text-align: center;
|
||||
margin-left: 30rpx;
|
||||
|
||||
@ -4,29 +4,29 @@
|
||||
<!-- <view class="title">
|
||||
我的
|
||||
</view> -->
|
||||
<image :src="baseurl + '/profile/weChatPicture/background.png'" mode="" class="userbanner"></image>
|
||||
<image src="/static/headsculpture.png" mode="" class="headsculpture" @tap='updatainfo'
|
||||
v-if="!appPersonallist.headPictureUrl">
|
||||
</image>
|
||||
<image :src="baseurl+appPersonallist.headPictureUrl" mode="" class="headsculpture" @tap='updatainfo' v-else>
|
||||
</image>
|
||||
<view class="namesigning" @tap='updatainfo'>
|
||||
<image :src="baseurl + '/profile/weChatPicture/background.png'" mode="" class="userbanner" />
|
||||
<image :src="baseurl+ '/profile/weChatPicture/headsculpture.png'" class="headsculpture" @tap='updatainfo'
|
||||
v-if="!appPersonallist.headPictureUrl" />
|
||||
<image :src="baseurl+appPersonallist.headPictureUrl" mode="" class="headsculpture" @tap='updatainfo'
|
||||
v-else />
|
||||
<view class="namesigning" @tap='updatainfo' v-if="appPersonallist.patientName">
|
||||
<span class="name">
|
||||
{{appPersonallist.patientName?appPersonallist.patientName:'点击登录'}}
|
||||
{{appPersonallist.patientName}}
|
||||
</span>
|
||||
<span class="" v-show="appPersonallist.patientName">
|
||||
<span class="signing" v-if="appPersonallist.signNo">
|
||||
已签约
|
||||
</span>
|
||||
<span class="signing" v-else>
|
||||
未签约
|
||||
</span>
|
||||
<span class="signing" v-if="appPersonallist.signNo">
|
||||
已签约
|
||||
</span>
|
||||
<span class="signing" v-else>
|
||||
未签约
|
||||
</span>
|
||||
</view>
|
||||
<view class="nologin namesigning" @tap='updatainfo' v-else>
|
||||
点击登录
|
||||
</view>
|
||||
<view class="phone" v-if="appPersonallist.phone">
|
||||
{{appPersonallist.phone}}
|
||||
</view>
|
||||
<view class="switch btn" @tap='homeshow'>
|
||||
<view class="switch btn" @tap='getpersnoal'>
|
||||
切换家庭成员
|
||||
</view>
|
||||
<view class="manage btn" @click="gomanagefamily">
|
||||
@ -35,7 +35,7 @@
|
||||
</view>
|
||||
<view class="Threecategories">
|
||||
<view class="item" @tap="goBehaviorpoints">
|
||||
<image src="../../static/pages/jifen.png" mode=""></image>
|
||||
<image src="@/static/jifen.png" mode=""></image>
|
||||
<view class="text">
|
||||
健康积分
|
||||
<span style="padding: 0 10rpx;"> {{appPersonallist.score>0?appPersonallist.score:0}}</span>
|
||||
@ -50,7 +50,7 @@
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="item" @tap='gocoupon'>
|
||||
<image src="../../static/pages/yhj.png" mode=""></image>
|
||||
<image src="@/static/yhj.png" mode=""></image>
|
||||
<view class="text">
|
||||
优惠券
|
||||
<span
|
||||
@ -65,11 +65,11 @@
|
||||
</view>
|
||||
<view class="righttitle" @tap="goorder(0,'')">
|
||||
查看全部
|
||||
<image src="../../static/huijiantou.png" mode=""></image>
|
||||
<image src="@/static/huijiantou.png" mode=""></image>
|
||||
</view>
|
||||
<view class="orderStatus">
|
||||
<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>
|
||||
@ -80,10 +80,9 @@
|
||||
v-if="appPersonallist.waitPayCount>=100">
|
||||
99+
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<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>
|
||||
@ -97,7 +96,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<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>
|
||||
@ -111,7 +110,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<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>
|
||||
@ -130,19 +129,19 @@
|
||||
</view>
|
||||
<view class="orderStatus">
|
||||
<!-- <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>
|
||||
</view> -->
|
||||
<view class="item" @tap="gomyappiont">
|
||||
<image src="../../static/pages/wodeyuyue.png" mode=""></image>
|
||||
<image src="@/static/wodeyuyue.png" mode=""></image>
|
||||
<view class="text">
|
||||
我的预约
|
||||
</view>
|
||||
</view>
|
||||
<view class="item" @tap="evaluation">
|
||||
<image src="../../static/pages/fuwupingjia.png" mode=""></image>
|
||||
<image src="@/static/fuwupingjia.png" mode=""></image>
|
||||
<view class="text">
|
||||
服务评价
|
||||
</view>
|
||||
@ -155,7 +154,7 @@
|
||||
护理服务订单
|
||||
</view>
|
||||
<view class="righttitle">
|
||||
<image src="../../static/huijiantou.png" mode=""></image>
|
||||
<image src="@/static/huijiantou.png" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="myorder titles" @tap="expertOrder">
|
||||
@ -163,7 +162,7 @@
|
||||
专家咨询订单
|
||||
</view>
|
||||
<view class="righttitle">
|
||||
<image src="../../static/huijiantou.png" mode=""></image>
|
||||
<image src="@/static/huijiantou.png" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="myorder titles" @tap="Signing">
|
||||
@ -171,17 +170,17 @@
|
||||
签约信息
|
||||
</view>
|
||||
<view class="righttitle">
|
||||
<image src="../../static/huijiantou.png" mode=""></image>
|
||||
<image src="@/static/huijiantou.png" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="myorder titles" @tap="remove()">
|
||||
<view class="myorder titles" @tap="remove()">
|
||||
<view class="title">
|
||||
退出登录
|
||||
</view>
|
||||
<view class="righttitle">
|
||||
<image src="../../static/huijiantou.png" mode=""></image>
|
||||
<image src="@/static/huijiantou.png" mode=""></image>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="mask" @click.stop='showhome = false' v-if="showhome">
|
||||
<view class="masktext" @click.stop=''>
|
||||
<view class="maskcontent" v-if="familyList">
|
||||
@ -211,19 +210,26 @@
|
||||
getCurrentUser,
|
||||
switchResident
|
||||
} from '@/api/pages/myinformation/myinformation.js';
|
||||
import {
|
||||
logingetCurrentUser,
|
||||
} from '@/api/pages/homepage/homepage.js'
|
||||
import {
|
||||
login
|
||||
} from '@/api/pages/login/index.js'
|
||||
import {
|
||||
existPatientInfo
|
||||
} from '@/api/pages/startup/index.js'
|
||||
import {
|
||||
createMobileToken
|
||||
} from '@/api/pages/login/index.js'
|
||||
import {
|
||||
checkSignApply
|
||||
} from '@/api/pages/homepage/homepage.js'
|
||||
import {
|
||||
mapMutations
|
||||
} from "vuex";
|
||||
import baseurl from '@/api/baseurl.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
timer: undefined,
|
||||
baseurl: '',
|
||||
appPersonallist: null, //获取个人信息
|
||||
list: {},
|
||||
@ -235,12 +241,10 @@
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
// this.bjimg = baseurl + '/profile/appletPicture/inviteFriendsOne.png'
|
||||
this.appPersonallist = uni.getStorageSync('userinfo')
|
||||
this.region = Number(uni.getStorageSync('region'))
|
||||
this.baseurl = baseurl
|
||||
this.myInfo()
|
||||
this.getpersnoal()
|
||||
if (this.appPersonallist && this.region != 3) {
|
||||
checkSignApply(this.appPersonallist.cardNo).then(res => {
|
||||
if (res.data) {
|
||||
@ -248,7 +252,7 @@
|
||||
this.infotitle = res.data.info
|
||||
}
|
||||
})
|
||||
} else {}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
gomyappiont() {
|
||||
@ -286,30 +290,40 @@
|
||||
})
|
||||
}
|
||||
},
|
||||
// 获取成员
|
||||
// 切换家庭成员
|
||||
getpersnoal() {
|
||||
const value = uni.getStorageSync('openid');
|
||||
if (value) {
|
||||
getCurrentUser(value).then(res => {
|
||||
this.familyList = res.data
|
||||
})
|
||||
const value = uni.getStorageSync('userinfo');
|
||||
const value2 = uni.getStorageSync('patientId');
|
||||
if (value && value2) {
|
||||
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) {
|
||||
const value = uni.getStorageSync('openid');
|
||||
if (value) {
|
||||
const value2 = uni.getStorageSync('patientId');
|
||||
if (value && value2) {
|
||||
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) {
|
||||
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({
|
||||
title: '切换成功',
|
||||
type: 'success',
|
||||
duration: '1000',
|
||||
duration: '1500',
|
||||
})
|
||||
this.myInfo()
|
||||
clearInterval(this.$store.state.timeoutObj);
|
||||
uni.closeSocket();
|
||||
} else {
|
||||
@ -326,7 +340,7 @@
|
||||
removes() {
|
||||
this.appPersonallist = null
|
||||
uni.removeStorageSync('patientId');
|
||||
uni.removeStorageSync('openid');
|
||||
// uni.removeStorageSync('openid');
|
||||
uni.removeStorageSync('phone');
|
||||
uni.removeStorageSync('userinfo');
|
||||
},
|
||||
@ -336,29 +350,80 @@
|
||||
const value = uni.getStorageSync('openid');
|
||||
const value2 = uni.getStorageSync('patientId');
|
||||
if (value && value2) {
|
||||
existPatientInfo(value).then(res => {
|
||||
if (res.code == 200 && res.msg == 'LOGIN') {
|
||||
appPersonal(value2).then(Response => {
|
||||
if (Response.code == 200) {
|
||||
uni.setStorageSync('userinfo', Response.data);
|
||||
that.appPersonallist = Response.data
|
||||
that.appPersonallist.homeLatitude = Number(that.appPersonallist
|
||||
.homeLatitude)
|
||||
that.appPersonallist.homeLongitude = Number(that.appPersonallist
|
||||
.homeLongitude)
|
||||
} else {
|
||||
that.removes();
|
||||
}
|
||||
})
|
||||
// existPatientInfo(value).then(res => {
|
||||
// if (res.code == 200 && res.msg == 'LOGIN') {
|
||||
appPersonal(value2).then(Response => {
|
||||
if (Response.code == 200) {
|
||||
uni.setStorageSync('userinfo', Response.data);
|
||||
that.appPersonallist = Response.data
|
||||
that.appPersonallist.homeLatitude = Number(that.appPersonallist
|
||||
.homeLatitude)
|
||||
that.appPersonallist.homeLongitude = Number(that.appPersonallist
|
||||
.homeLongitude)
|
||||
} else {
|
||||
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() {
|
||||
let that = this;
|
||||
const value = uni.getStorageSync('userinfo');
|
||||
const value2 = uni.getStorageSync('patientId');
|
||||
if (value && value2) {
|
||||
@ -366,11 +431,99 @@
|
||||
url: `/pagesB/modify/modify`
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pagesB/login/login'
|
||||
})
|
||||
if (!uni.getStorageSync('openid') && !value2) {
|
||||
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() {
|
||||
const value = uni.getStorageSync('userinfo');
|
||||
@ -485,37 +638,34 @@
|
||||
const value = uni.getStorageSync('userinfo');
|
||||
const value2 = uni.getStorageSync('patientId');
|
||||
if (value && value2) {
|
||||
if (uni.getStorageSync('region') == 3) {
|
||||
this.$refs.uToast.show({
|
||||
title: '当前地区不支持,请选择其它地区',
|
||||
type: 'error',
|
||||
})
|
||||
if (this.region == 3) {
|
||||
this.family()
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pagesB/Behaviorpoints/Behaviorpoints'
|
||||
})
|
||||
if (this.checkSign == "0") {
|
||||
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 {
|
||||
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() {
|
||||
const value = uni.getStorageSync('userinfo');
|
||||
const value2 = uni.getStorageSync('patientId');
|
||||
if (value && value2) {
|
||||
const value3 = uni.getStorageSync('openid');
|
||||
if (value && value2 && value3) {
|
||||
uni.navigateTo({
|
||||
url: '/pagesB/managefamily/managefamily'
|
||||
})
|
||||
@ -525,9 +675,12 @@
|
||||
},
|
||||
// 添加家庭成员
|
||||
addFamilyItem() {
|
||||
uni.navigateTo({
|
||||
url: '/pagesB/AddMembers/AddMembers'
|
||||
})
|
||||
if (uni.getStorageSync('openid')) {
|
||||
uni.navigateTo({
|
||||
url: '/pagesB/AddMembers/AddMembers'
|
||||
})
|
||||
this.showhome = false
|
||||
}
|
||||
// if (!this.userInfo) {
|
||||
// uni.showModal({
|
||||
// title: "提示",
|
||||
@ -536,9 +689,6 @@
|
||||
// cancelText: '否',
|
||||
// success(res) {
|
||||
// if (res.confirm) {
|
||||
// uni.redirectTo({
|
||||
// url: "/pagesB/login/login?mode=注册"
|
||||
// })
|
||||
// } else {
|
||||
// wx.exitMiniProgram()
|
||||
// }
|
||||
@ -546,9 +696,6 @@
|
||||
// })
|
||||
// } else {
|
||||
// this.getSetting()
|
||||
// uni.navigateTo({
|
||||
// url: '/pagesB/login/login'
|
||||
// });
|
||||
// }
|
||||
},
|
||||
//积分页面
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
</view>
|
||||
<view class="text_con">
|
||||
<view class="text_con_pic">
|
||||
<image src="@/static/pagesB/shflt.png" mode=""></image>
|
||||
<image :src="require('@/pagesC/images/shflt.png')" mode=""></image>
|
||||
</view>
|
||||
<view class="text_con_right">
|
||||
信息仅用于授权,您的资料将被严格保密
|
||||
@ -20,7 +20,8 @@
|
||||
<u-input v-model="form.cardNo" placeholder="请输入身份证号" @blur="searchfun_close" />
|
||||
<view class="idScan">
|
||||
<!-- <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>
|
||||
</view>
|
||||
</view>
|
||||
@ -51,7 +52,7 @@
|
||||
<text v-if="!nation">请选择民族</text>
|
||||
<!-- <text v-if="!householdRelationship">请选择与户主关系</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>
|
||||
</u-form-item>
|
||||
@ -61,7 +62,7 @@
|
||||
<view class="select" @tap='timeshow=true'>
|
||||
<text v-if="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>
|
||||
</u-form-item>
|
||||
@ -92,7 +93,7 @@
|
||||
<text v-if="!addressinfo">请选择所属区域</text>
|
||||
<text v-else class="testitem"
|
||||
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 class="name">
|
||||
@ -692,7 +693,6 @@
|
||||
that.userinfo = uni.getStorageSync('userinfo');
|
||||
that.form.openid = uni.getStorageSync('openid');
|
||||
that.form.cityCode = uni.getStorageSync('region');
|
||||
console.log(that.form.cityCode, 'that.form.cityCode')
|
||||
if (that.form.cityCode == "") {
|
||||
that.form.cityCode = 2
|
||||
}
|
||||
@ -701,7 +701,6 @@
|
||||
} else if (that.form.sexname == '女') {
|
||||
that.form.sex = 'FEMALE';
|
||||
}
|
||||
console.log(that.form)
|
||||
if (that.form.sex == "") {
|
||||
that.$refs.uToast.show({
|
||||
title: '请选择性别',
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
<view class="item" @tap='show=true'>退款原因
|
||||
<span v-if="dictname==''">请选择</span>
|
||||
<span v-else style='color: #000000;'>{{dictname}}</span>
|
||||
<image src="@/static/huijiantou.png" mode=""></image>
|
||||
<image :src="require('@/pagesC/images/huijiantou.png')" mode=""></image>
|
||||
</view>
|
||||
<view class="priceinfo">
|
||||
<span v-if="order.orderType=='DIRECT_BUY'||order.orderType =='HEALTH_CONSULTATION'">退款金额</span>
|
||||
|
||||
@ -5,12 +5,15 @@
|
||||
<view class="title">
|
||||
{{title}}
|
||||
</view>
|
||||
<image mode="" :src="require('../images/putongka.png')" v-if='region==2&&score>=0&&score<800' />
|
||||
<image mode="" :src="require('../images/yinka.png')" v-if='region==2&&score>=800&&score<1600' />
|
||||
<image mode="" :src="require('../images/jinka.png')" v-if='region==2&&score>=1600&&score<2400' />
|
||||
<image mode="" :src="require('../images/bojinka.png')" v-if='region==2&&score>=2400&&score<3000' />
|
||||
<image mode="" :src="require('../images/zuanshika.png')" v-if='region==2&&score>=3000' />
|
||||
<image src="@/static/pagesB/Behave.png" mode="" v-if='region!=2' :style="region!=2?'height:350rpx':''">
|
||||
<span v-if='region==2'>
|
||||
<image :src="baseurl+ '/profile/weChatPicture/putongka.png'" v-if='score>=0&&score<800' />
|
||||
<image :src="baseurl+ '/profile/weChatPicture/yinka.png'" v-if='score>=800&&score<1600' />
|
||||
<image :src="baseurl+ '/profile/weChatPicture/jinka.png'" v-if='score>=1600&&score<2400' />
|
||||
<image :src="baseurl+ '/profile/weChatPicture/bojinka.png'" v-if='score>=2400&&score<3000' />
|
||||
<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>
|
||||
<view class="name" v-if='region!=2'>我的积分
|
||||
</view>
|
||||
@ -20,7 +23,7 @@
|
||||
{{score?score:0}}
|
||||
</span>
|
||||
</view>
|
||||
<view class="paiming" v-if="hkname=='河口'" @click='lookranking'>
|
||||
<view class="paiming" v-if="hkname=='河口'&&scoreranking" @click='lookranking'>
|
||||
<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':''">
|
||||
积分榜排名:第{{scoreranking}}名
|
||||
@ -107,12 +110,14 @@
|
||||
import {
|
||||
detail,
|
||||
} from '@/api/pages/homepage/homepage.js'
|
||||
import baseurl from '@/api/baseurl.js'
|
||||
// import {
|
||||
// mapActions
|
||||
// } from "vuex";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
baseurl: '',
|
||||
query: {
|
||||
identity: uni.getStorageSync('userinfo').cardNo,
|
||||
pageNum: 1,
|
||||
@ -127,7 +132,7 @@
|
||||
hkname: '',
|
||||
orgName: "",
|
||||
patientName: "",
|
||||
scoreranking: 0,
|
||||
scoreranking: undefined,
|
||||
lookrankingshow: false,
|
||||
};
|
||||
},
|
||||
@ -137,6 +142,9 @@
|
||||
this.info();
|
||||
this.scoretotalinfo();
|
||||
},
|
||||
onLoad() {
|
||||
this.baseurl = baseurl
|
||||
},
|
||||
onReady() { //更改导航栏文字
|
||||
if (uni.getStorageSync('region') == 2) {
|
||||
detail(this.query.identity).then(res => {
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
<view class="content">
|
||||
{{updata.goodsAttributeName}}
|
||||
</view>
|
||||
<image src="@/static/huijiantou.png" mode=""></image>
|
||||
<image :src="require('@/pagesC/images/huijiantou.png')" mode=""></image>
|
||||
</view>
|
||||
<view class="Discount common" @tap="goodsDetailslist.couponList.length>0?couponshow=true:''">
|
||||
<view class="selected">
|
||||
@ -25,7 +25,8 @@
|
||||
<view class="content" v-if="coupon">
|
||||
已选择 {{coupon.couponTitle}}
|
||||
</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 class="service common">
|
||||
<view class="selected">
|
||||
@ -53,7 +54,7 @@
|
||||
</view>
|
||||
<u-mask :show="buyshow" @click="buyshow = false" class='mask'>
|
||||
<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>
|
||||
<view class="topcontent" style="width: 96%;height: 300rpx;">
|
||||
<view class="image">
|
||||
@ -79,7 +80,7 @@
|
||||
@scrolltolower="lower" @scroll="scroll">
|
||||
<view class="bodys" @tap='upaddress()'>
|
||||
<view class="addressinfo">
|
||||
<image src="@/static/pagesB/locatinsmall.png" mode=""></image>
|
||||
<image :src="require('@/pagesC/images/locatinsmalltwo.png')" mode=""></image>
|
||||
<span v-if="loginFlag">
|
||||
<view class="namephone" v-if='userid'>
|
||||
{{updata.receiver}},{{updata.phone}}
|
||||
@ -150,7 +151,7 @@
|
||||
支付方式
|
||||
</view>
|
||||
<view class="chat">
|
||||
<image src="@/static/pagesB/chat.png" mode=""></image>
|
||||
<image :src="require('@/pagesC/images/chat.png')" mode=""></image>
|
||||
<span>微信支付</span>
|
||||
</view>
|
||||
</view>
|
||||
@ -165,7 +166,7 @@
|
||||
<u-toast ref="uToast" />
|
||||
<u-mask :show="usershow" class='mask'>
|
||||
<view class="information">
|
||||
<image src="@/static/pagesB/information.png" mode=""></image>
|
||||
<image :src="require('@/pagesC/images/information.png')" mode=""></image>
|
||||
<view class="title">
|
||||
请完善个人信息
|
||||
</view>
|
||||
@ -179,7 +180,8 @@
|
||||
</u-mask>
|
||||
<u-mask :show="couponshow" class='mask' @click="couponshow = false">
|
||||
<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>
|
||||
<view class="titles">
|
||||
选择优惠券
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="app">
|
||||
<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>
|
||||
@ -16,7 +16,7 @@
|
||||
<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="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_REFUND'">退款中</span>
|
||||
<span v-if="item.orderStatus=='CANCEL'">已取消</span>
|
||||
@ -35,7 +35,7 @@
|
||||
<view class="detailslist">
|
||||
<image :src="baseurl+item.personPictureUrl" mode=""
|
||||
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>
|
||||
<image :src="baseurl+item.attributePitureUrl" mode=""
|
||||
v-if="item.orderType !='HEALTH_CONSULTATION'"></image>
|
||||
@ -379,4 +379,4 @@
|
||||
|
||||
<style lang="scss">
|
||||
@import "./CommodityOrder.scss";
|
||||
</style>
|
||||
</style>
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="app">
|
||||
<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>
|
||||
@ -16,7 +16,7 @@
|
||||
<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="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_REFUND'">退款中</span>
|
||||
<span v-if="item.orderStatus=='CANCEL'">已取消</span>
|
||||
@ -806,4 +806,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
@ -1,6 +1,5 @@
|
||||
<template>
|
||||
<view class="app">
|
||||
<!-- <img src="../images/beijing.png" alt="" class="background-image" /> -->
|
||||
<view class="health" v-if="healthdata">
|
||||
<view class="health_top">
|
||||
<image v-if="healthdata.hiEva < 650" :src="require('../images/red.png')" />
|
||||
|
||||
@ -191,4 +191,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="app">
|
||||
<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>
|
||||
@ -15,7 +15,7 @@
|
||||
<u-tabs :list="GoodsCategorychildrenlist" :current="tabIndex" @change="toggleTab" active-color='#26A888'
|
||||
v-if="GoodsCategorychildrenlist.length>=2"></u-tabs>
|
||||
<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>
|
||||
|
||||
@ -47,7 +47,7 @@
|
||||
<u-toast ref="uToast" />
|
||||
<u-mask :show="usershow" class='mask'>
|
||||
<view class="information">
|
||||
<image src="@/static/pagesB/information.png" mode=""></image>
|
||||
<image :src="require('@/pagesC/images/information.png')" mode=""></image>
|
||||
<view class="title">
|
||||
请完善个人信息
|
||||
</view>
|
||||
@ -247,4 +247,4 @@
|
||||
|
||||
<style lang="scss">
|
||||
@import './ProjectDetails.scss';
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -6,20 +6,22 @@
|
||||
我的评价
|
||||
</view>
|
||||
<view class="righttitle">
|
||||
<image src="../../static/huijiantou.png" mode=""></image>
|
||||
<image :src="require('@/pagesC/images/huijiantou.png')" mode=""></image>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<view class="" v-if="total >0">
|
||||
<view class="orderitem" v-for="(item,index) in evaluatedata">
|
||||
<view class="tiemitem">
|
||||
</view>
|
||||
<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 :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-else></image> -->
|
||||
<view class="ppointment">
|
||||
@ -92,14 +94,13 @@
|
||||
insertGoodsEvaluate,
|
||||
} from '@/api/pagesB/Serviceevaluation/Serviceevaluation.js'
|
||||
import {
|
||||
|
||||
add
|
||||
} from '@/api/pagesC/servicerecord/servicerecord.js'
|
||||
import baseurl from '@/api/baseurl.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
baseurl:'',
|
||||
baseurl: '',
|
||||
evaluateshow: false, //家医评价
|
||||
evaluatenurse: false, //护理站评价
|
||||
parentId: '',
|
||||
@ -118,14 +119,11 @@
|
||||
patientId: '',
|
||||
openId: '',
|
||||
orderNo: '',
|
||||
|
||||
evaluateChannel: 'WE_CHAT_APPLET',
|
||||
},
|
||||
openId: '',
|
||||
orderType: '',
|
||||
orderSource:'',
|
||||
|
||||
|
||||
orderSource: '',
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
@ -134,26 +132,17 @@
|
||||
this.parentId = this.userinfo.id;
|
||||
this.region = uni.getStorageSync('region');
|
||||
this.openId = uni.getStorageSync('openid');
|
||||
// console.log(this.openId, '999')
|
||||
|
||||
// this.cardNo = '371402199404167019';
|
||||
// this.cardNo = '372926199812187720';
|
||||
// this.parentId = '83';
|
||||
|
||||
|
||||
this.getlist();
|
||||
|
||||
},
|
||||
onLoad(options) {
|
||||
// this.list.patientId = uni.getStorageSync('patientId');
|
||||
|
||||
this.baseurl = baseurl;
|
||||
|
||||
},
|
||||
onReachBottom() { //下滑加载
|
||||
|
||||
if (this.evaluatedata.length >= this.total) {
|
||||
|
||||
} else {
|
||||
this.pageNum++
|
||||
getAppletOrderList(this.parentId, this.orderStatus, this.cardNo, this.region, this.pageNum, this
|
||||
@ -163,12 +152,8 @@
|
||||
this.evaluatedata.push(e)
|
||||
this.total = res.total
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
},
|
||||
watch: { //监听
|
||||
@ -196,8 +181,6 @@
|
||||
// 护理站评价
|
||||
ratenurse() {
|
||||
this.evaluatenurse = true;
|
||||
|
||||
|
||||
},
|
||||
// 未评价
|
||||
healthratenurse(item) {
|
||||
@ -210,12 +193,10 @@
|
||||
// 家医模块立即评价
|
||||
if (item.orderType == "FAMILY_DOCTOR") {
|
||||
this.evaluateshow = true;
|
||||
|
||||
}
|
||||
// 健康咨询、护理服务满意度
|
||||
if (item.orderType == "HEALTH_CONSULTATION" || item.orderType == "APPOINTMENT_ORDER") {
|
||||
this.evaluatenurse = true;
|
||||
|
||||
}
|
||||
// 商品积分兑换、直接购买
|
||||
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/goodsorderRate/goodsorderRate?item=${JSON.stringify(item)}&delta=${1}`
|
||||
})
|
||||
|
||||
}
|
||||
this.orderType = item.orderType
|
||||
this.list.orderNo = item.orderNo
|
||||
|
||||
|
||||
// this.list.evaluateChanne = 'WE_CHAT_APPLET'
|
||||
|
||||
},
|
||||
// 提交评价
|
||||
submit() {
|
||||
this.list.patientId = this.parentId
|
||||
this.list.openId = uni.getStorageSync('openid')
|
||||
console.log(this.list, '45')
|
||||
if (this.orderType == "HEALTH_CONSULTATION" || this.orderType == "INTEGRAL_EXCHANGE" || this.orderType ==
|
||||
"DIRECT_BUY" || this.orderType == "FAMILY_DOCTOR") {
|
||||
// this.list.evaluateSatisfaction=this.evaluateSatisfaction
|
||||
this.list.compositeScore=this.rateval
|
||||
this.list.orderSource=this.orderSource
|
||||
// this.list.evaluateSatisfaction=this.evaluateSatisfaction
|
||||
this.list.compositeScore = this.rateval
|
||||
this.list.orderSource = this.orderSource
|
||||
insertGoodsEvaluate(this.list).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.$refs.uToast.show({
|
||||
@ -288,15 +264,12 @@
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
// 取消
|
||||
cancel() {
|
||||
this.evaluateshow = false;
|
||||
this.evaluatenurse = false;
|
||||
|
||||
},
|
||||
// 列表
|
||||
getlist() {
|
||||
@ -304,22 +277,15 @@
|
||||
.pageSize).then(res => {
|
||||
this.evaluatedata = res.rows
|
||||
this.total = res.total
|
||||
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
// 跳转我的评价
|
||||
expertOrder() {
|
||||
uni.navigateTo({
|
||||
url: '/pagesB/myevaluation/myevaluation'
|
||||
})
|
||||
|
||||
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -732,4 +698,4 @@
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
@ -317,4 +317,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -86,4 +86,4 @@
|
||||
::v-deep .utd {
|
||||
color: #26A888 !important;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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>
|
||||
@ -118,4 +118,4 @@
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -416,4 +416,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
:style="address=='请选择所属地区'?'font-size:22rpx;font-weight: 400;color: #8E8E8E !important;':''">
|
||||
{{address}}
|
||||
</view>
|
||||
<image src="../../static/huijiantou.png" mode=""></image>
|
||||
<image :src="require('@/pagesC/images/huijiantou.png')" mode=""></image>
|
||||
</view>
|
||||
<view class="text">
|
||||
患者姓名
|
||||
@ -148,7 +148,7 @@
|
||||
请选择支付方式
|
||||
</view>
|
||||
<view class="chat">
|
||||
<image src="@/static/pagesB/chat.png" mode=""></image>
|
||||
<image :src="require('@/pagesC/images/chat.png')" mode=""></image>
|
||||
<span>微信支付</span>
|
||||
</view>
|
||||
<view class="submits" @tap='buy'>
|
||||
@ -481,4 +481,4 @@
|
||||
|
||||
<style lang="scss">
|
||||
@import './confirmation.scss';
|
||||
</style>
|
||||
</style>
|
||||
@ -4,13 +4,13 @@
|
||||
<view class="card">
|
||||
<view class="topbar">
|
||||
<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>
|
||||
</view>
|
||||
<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>
|
||||
@ -24,7 +24,7 @@
|
||||
<view class="list" v-if="HospitalPersonlist">
|
||||
<view class="item" @tap="godoctordetails" v-for="item in HospitalPersonlist">
|
||||
<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">
|
||||
{{item.personName}}
|
||||
</view>
|
||||
@ -145,12 +145,9 @@
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
} else {
|
||||
this.info()
|
||||
}
|
||||
|
||||
},
|
||||
//医生详情
|
||||
// godoctordetails() {
|
||||
|
||||
@ -1,20 +1,20 @@
|
||||
<template>
|
||||
<view class="app">
|
||||
<u-navbar :is-back="false" :background="background" class="u-navbar">
|
||||
<image src="@/static/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_REFUND'" @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>
|
||||
<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_REFUND'" @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=='COMPLETED'" @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=='COMPLETED'" @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=='PAY'" @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=='RETURNED_GOODS'" @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=='WAIT_RETURNED_GOODS'" @tap="goprevious">待退货</view>
|
||||
<view class="title" v-if="list.orderStatus=='RETURNED_GOODS'" @tap="goprevious">退款成功</view>
|
||||
|
||||
</u-navbar>
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
|
||||
<view class="content">
|
||||
<view class="service">
|
||||
<image src="@/static/pagesB/persone.png" mode=""></image>
|
||||
<image :src="require('@/pagesC/images/persone.png')" mode=""></image>
|
||||
<span>医生服务</span>
|
||||
</view>
|
||||
<view class="orderitem">
|
||||
@ -138,7 +138,7 @@
|
||||
<span>订单金额</span><span>¥{{list.totalPrice}}</span>
|
||||
|
||||
</view>
|
||||
<!-- <view class="amount">
|
||||
<!-- <view class="amount">
|
||||
<span>预约日期</span><span>¥{{list.appointmentDate}}</span>
|
||||
|
||||
</view> -->
|
||||
@ -201,7 +201,7 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
baseurl:'',
|
||||
baseurl: '',
|
||||
timestamp: 0,
|
||||
countvalue: 0,
|
||||
list: [],
|
||||
@ -211,7 +211,7 @@
|
||||
},
|
||||
evaluateshow: false,
|
||||
orderTypeList: {
|
||||
orderNo:'',
|
||||
orderNo: '',
|
||||
|
||||
},
|
||||
order: [],
|
||||
@ -328,4 +328,4 @@
|
||||
</script>
|
||||
<style lang="scss">
|
||||
@import './consulted.scss'
|
||||
</style>
|
||||
</style>
|
||||
@ -153,4 +153,4 @@
|
||||
|
||||
<style lang="scss">
|
||||
@import "./coupon.scss";
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
<view class="inputtext" v-if="address">
|
||||
{{address}}
|
||||
</view>
|
||||
<image src="../../static/huijiantou.png" mode=""></image>
|
||||
<image :src="require('@/pagesC/images/huijiantou.png')" mode=""></image>
|
||||
</view>
|
||||
<view class="text">
|
||||
患者姓名
|
||||
@ -48,7 +48,7 @@
|
||||
<view class="select" @tap='gochoosedoctor'>
|
||||
<text v-if="!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 class="title">
|
||||
@ -327,7 +327,7 @@
|
||||
this.formdata.address = this.address
|
||||
}
|
||||
if (res.code == 200) {
|
||||
getHospitalPersonInfo(res.data.dutyDoctorNo, '1').then(res => {
|
||||
getHospitalPersonInfo(res.data.dutyDoctorNo).then(res => {
|
||||
this.doctorName = res.data.personName
|
||||
this.doctorId = res.data.id
|
||||
this.doctorlist = res.data
|
||||
@ -352,4 +352,4 @@
|
||||
|
||||
<style lang="scss">
|
||||
@import './createnewconsultation.scss';
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="app">
|
||||
<image src="../../static/headsculpture.png" mode=""></image>
|
||||
<image :src="require('@/pagesC/images/headsculpture.png')" mode=""></image>
|
||||
<view class="name">
|
||||
张三
|
||||
</view>
|
||||
|
||||
@ -3,7 +3,8 @@
|
||||
<view class="rate">
|
||||
<view class="images">
|
||||
<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 class="itemimg" :src="item" mode=""></image>
|
||||
</view>
|
||||
@ -14,7 +15,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="videotape item">
|
||||
<image src="../../static/video.png" mode=""></image>
|
||||
<image :src="require('@/pagesC/images/video.png')"mode=""></image>
|
||||
<view class="title">
|
||||
录像
|
||||
</view>
|
||||
|
||||
@ -41,6 +41,7 @@
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
this.list = []
|
||||
this.info()
|
||||
},
|
||||
methods: {
|
||||
@ -77,6 +78,7 @@
|
||||
}
|
||||
},
|
||||
onPullDownRefresh() { //下拉刷新
|
||||
this.list = []
|
||||
this.query.pageNum = 1;
|
||||
this.info();
|
||||
setTimeout(function() {
|
||||
|
||||
@ -210,12 +210,7 @@
|
||||
uni.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
|
||||
// uni.navigateTo({
|
||||
// url:`/pagesB/register/register?headPictureUrl=${this.tempImg}`
|
||||
// })
|
||||
},
|
||||
|
||||
// 点击 - 取消上传
|
||||
handleCancelClick() {
|
||||
console.log(this.tempImg)
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
<view class="title">
|
||||
签约时出示二维码
|
||||
</view>
|
||||
<image src="@/static/pagesB/ma2x.png" mode=""></image>
|
||||
<image :src="require('@/pagesC/images/ma2x.png')" mode=""></image>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="lefttext">
|
||||
@ -76,7 +76,7 @@
|
||||
duration: 1000
|
||||
});
|
||||
uni.removeStorageSync('patientId');
|
||||
uni.removeStorageSync('openid');
|
||||
// uni.removeStorageSync('openid');
|
||||
uni.removeStorageSync('phone');
|
||||
uni.removeStorageSync('userinfo');
|
||||
setTimeout(function() {
|
||||
|
||||
@ -3,7 +3,8 @@
|
||||
<view class="rate">
|
||||
<view class="images">
|
||||
<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 class="itemimg" :src="item" mode=""></image>
|
||||
</view>
|
||||
@ -14,7 +15,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="videotape item">
|
||||
<image src="../../static/video.png" mode=""></image>
|
||||
<image :src="require('@/pagesC/images/video.png')" mode=""></image>
|
||||
<view class="title">
|
||||
录像
|
||||
</view>
|
||||
@ -142,9 +143,9 @@
|
||||
},
|
||||
},
|
||||
onLoad(options) {
|
||||
console.log(options,'4')
|
||||
console.log(options, '4')
|
||||
this.orderlist = JSON.parse(options.item)
|
||||
console.log(this.orderlist,'47')
|
||||
console.log(this.orderlist, '47')
|
||||
this.delta = options.delta
|
||||
},
|
||||
onShow() {
|
||||
@ -164,4 +165,4 @@
|
||||
|
||||
<style lang="scss">
|
||||
@import './goodsorderRate.scss';
|
||||
</style>
|
||||
</style>
|
||||
@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<view class="app">
|
||||
<view class="vacancies">
|
||||
<image src="@/static/pagesB/Behave.png" mode=""></image>
|
||||
<image :src="require('@/pagesC/images/Behave.png')" mode=""></image>
|
||||
<view class="lefttext">
|
||||
健康豆余额
|
||||
</view>
|
||||
<view class="righttext">
|
||||
<!-- <image src="../../static/jfgz.png" mode=""></image>
|
||||
<!-- <image :src="require('@/pagesC/images/jfgz.png')"mode=""></image>
|
||||
<view class="">
|
||||
积分规则
|
||||
</view> -->
|
||||
@ -48,14 +48,15 @@
|
||||
</view>
|
||||
<u-mask :show="gainshow" @click="gainshow = false">
|
||||
<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>
|
||||
<view class="title">
|
||||
获取方式
|
||||
</view>
|
||||
<view class="maskitems">
|
||||
<view class="item">
|
||||
<image src="@/static/pagesB/qiandao.png" mode=""></image>
|
||||
<image :src="require('@/pagesC/images/qiandao.png')" mode=""></image>
|
||||
<view class="titletext">
|
||||
累计签到
|
||||
<span style='padding: 0 5rpx;' v-if="list.totalSignInDays"> {{list.totalSignInDays}}</span>
|
||||
@ -78,7 +79,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<!-- <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">
|
||||
每邀请
|
||||
<span style='padding: 0 5rpx;'> 1</span>
|
||||
@ -99,7 +100,8 @@
|
||||
</u-mask>
|
||||
<u-mask :show="buyshow" @click="buyshow = false">
|
||||
<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>
|
||||
<view class="topcontent" style="width: 96%;">
|
||||
<view class="image">
|
||||
@ -119,7 +121,7 @@
|
||||
</view>
|
||||
<view class="bodys" @tap='upaddress()'>
|
||||
<view class="addressinfo">
|
||||
<image src="@/static/pagesB/locatinsmall.png" mode=""></image>
|
||||
<image :src="require('@/pagesC/images/locatinsmalltwo.png')" mode=""></image>
|
||||
<span v-if="loginFlag">
|
||||
<view class="namephone" v-if='userid'>
|
||||
{{updata.receiver}},{{updata.phone}}
|
||||
@ -167,7 +169,7 @@
|
||||
</u-popup>
|
||||
<u-mask :show="usershow" class='masks'>
|
||||
<view class="information">
|
||||
<image src="@/static/pagesB/information.png" mode=""></image>
|
||||
<image :src="require('@/pagesC/images/information.png')" mode=""></image>
|
||||
<view class="title">
|
||||
请完善个人信息
|
||||
</view>
|
||||
@ -259,7 +261,6 @@
|
||||
this.baseurl = baseurl
|
||||
this.pageNum = 1
|
||||
this.selectExchangeGoodsinfo();
|
||||
this.baseurl = baseurl
|
||||
this.yapqingbeijingimg = baseurl + '/profile/appletPicture/inviteFriendsTwo.png'
|
||||
var that = this
|
||||
const value = uni.getStorageSync('patientId');
|
||||
@ -655,4 +656,4 @@
|
||||
|
||||
<style lang="scss">
|
||||
@import "./healthybeans.scss";
|
||||
</style>
|
||||
</style>
|
||||
|
||||
|
Before Width: | Height: | Size: 258 KiB |
|
Before Width: | Height: | Size: 59 KiB |
|
Before Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 89 KiB |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 8.2 KiB |