This commit is contained in:
2023-10-16 11:28:16 +08:00
parent 619abedc69
commit dff68c1684
15 changed files with 40 additions and 30 deletions

View File

@ -22,7 +22,7 @@ export function getCurrentUser(openid, cityCode) {
}) })
} }
// 获取签约信息 // 获取签约信息
export function detail(identity, region) { export function detail(identity) {
return request({ return request({
url: `/applet/signinfo/detail/${identity}`, url: `/applet/signinfo/detail/${identity}`,
method: 'GET', method: 'GET',
@ -34,7 +34,7 @@ export function detail(identity, region) {
} }
//是否注册 //是否注册
export function checkSignApply(identity, region) { export function checkSignApply(identity) {
return request({ return request({
url: `/applet/sign/apply/checkSignApply/${identity}`, url: `/applet/sign/apply/checkSignApply/${identity}`,
method: 'GET', method: 'GET',

View File

@ -0,0 +1,12 @@
import request from "../../request.js"
export function prizeExchangelist(data) {
return request({
url: `/applet/score/prizeExchange/list`,
method: 'get',
data: data,
header: {
region: uni.getStorageSync('region'),
}
})
}

View File

@ -1,7 +1,7 @@
import request from "@/api/request.js" import request from "@/api/request.js"
export function getDoctorListtwo(pageNum, pageSize, teamNo, region,realname) { export function getDoctorListtwo(pageNum, pageSize, teamNo,realname) {
return request({ return request({
url: `/applet/signinfo/getDoctorList?pageNum=${pageNum}&pageSize=${pageSize}&teamNo=${teamNo}&realname=${realname}`, url: `/applet/signinfo/getDoctorList?pageNum=${pageNum}&pageSize=${pageSize}&teamNo=${teamNo}&realname=${realname}`,
method: 'get', method: 'get',

View File

@ -1,6 +1,6 @@
import request from "@/api/request.js" import request from "@/api/request.js"
//解约 //解约
export function rescindapplysave(data, region) { export function rescindapplysave(data) {
return request({ return request({
url: `/applet/rescind/apply/save`, url: `/applet/rescind/apply/save`,
method: 'post', method: 'post',

View File

@ -1,7 +1,7 @@
import request from "@/api/request.js" import request from "@/api/request.js"
export function getPerformance(identity, region) { export function getPerformance(identity) {
return request({ return request({
url: `/applet/signinfo/getPerformance/${identity}`, url: `/applet/signinfo/getPerformance/${identity}`,
method: 'get', method: 'get',

View File

@ -1,7 +1,7 @@
import request from "../../request.js" import request from "../../request.js"
// 服务预约 // 服务预约
export function getForm(identity,region,projectName) { export function getForm(identity,projectName) {
return request({ return request({
url: `/applet/service/apply/getForm/${identity}?projectName=${projectName}`, url: `/applet/service/apply/getForm/${identity}?projectName=${projectName}`,
method: 'GET', method: 'GET',

View File

@ -1,7 +1,7 @@
import request from "@/api/request.js" import request from "@/api/request.js"
// 获取医生列表 // 获取医生列表
export function getDoctorList(pageNum, orgNo, region,realname) { export function getDoctorList(pageNum, orgNo,realname) {
return request({ return request({
url: `/applet/signinfo/getDoctorList?pageNum=${pageNum}&orgNo=${orgNo}&realname=${realname}`, url: `/applet/signinfo/getDoctorList?pageNum=${pageNum}&orgNo=${orgNo}&realname=${realname}`,
method: 'get', method: 'get',

View File

@ -1,7 +1,7 @@
import request from "@/api/request.js" import request from "@/api/request.js"
export function getContent(userNo, region) { export function getContent(userNo) {
return request({ return request({
url: `/applet/signinfo/getContent/${userNo}`, url: `/applet/signinfo/getContent/${userNo}`,
method: 'get', method: 'get',
@ -13,7 +13,7 @@ export function getContent(userNo, region) {
export function getSignProtocol(cardNo, region) { export function getSignProtocol(cardNo) {
return request({ return request({
url: `/applet/signinfo/getSignProtocol/${cardNo}`, url: `/applet/signinfo/getSignProtocol/${cardNo}`,
method: 'get', method: 'get',

View File

@ -1,25 +1,25 @@
import request from "@/api/request.js" import request from "@/api/request.js"
export function getCounty(data, region) { export function getCounty(data) {
return request({ return request({
url: `/applet/signinfo/getCounty`, url: `/applet/signinfo/getCounty`,
method: 'post', method: 'post',
data: data, data: data,
header: { header: {
region: region region: uni.getStorageSync('region'),
} }
}) })
} }
export function getNearbyOrg(data, region) { export function getNearbyOrg(data) {
return request({ return request({
url: `/applet/signinfo/getNearbyOrg`, url: `/applet/signinfo/getNearbyOrg`,
method: 'get', method: 'get',
data: data, data: data,
header: { header: {
region: region region: uni.getStorageSync('region'),
} }
}) })
} }

View File

@ -182,7 +182,7 @@
filePath: that.meimage, filePath: that.meimage,
name: 'file', name: 'file',
header: { header: {
region: '1' region: uni.getStorageSync('region'),
}, },
timeout: 60000, timeout: 60000,
success(respp) { success(respp) {
@ -208,7 +208,7 @@
filePath: data, filePath: data,
name: 'file', name: 'file',
header: { header: {
region: '1' region: uni.getStorageSync('region'),
}, },
timeout: 60000, timeout: 60000,
success(res) { success(res) {

View File

@ -47,7 +47,7 @@
}, },
methods: { methods: {
info() { info() {
getDoctorListtwo(this.pageNum, this.pageSize, this.teamNo, '1', this.realname).then(res => { getDoctorListtwo(this.pageNum, this.pageSize, this.teamNo, this.realname).then(res => {
this.list = res.rows this.list = res.rows
this.total = res.total this.total = res.total
}) })
@ -62,7 +62,7 @@
onReachBottom() { // onReachBottom() { //
if (this.list.length >= this.total) {} else { if (this.list.length >= this.total) {} else {
this.pageNum++; this.pageNum++;
getDoctorListtwo(this.pageNum, this.pageSize, this.teamNo, '1').then(res => { getDoctorListtwo(this.pageNum, this.pageSize, this.teamNo, this.realname).then(res => {
res.rows.forEach(e => { res.rows.forEach(e => {
this.list.push(e) this.list.push(e)
}) })
@ -82,4 +82,4 @@
<style lang="scss"> <style lang="scss">
@import './myfamilydoctorteam.scss'; @import './myfamilydoctorteam.scss';
</style> </style>

View File

@ -549,7 +549,7 @@
that.query.userNo = item.userNo that.query.userNo = item.userNo
that.query.teamNo = item.teamNo that.query.teamNo = item.teamNo
that.query.teamName = item.teamName that.query.teamName = item.teamName
getDoctorListtwo(1, 20, item.teamNo, '1').then(res => { getDoctorListtwo(1, 20, item.teamNo).then(res => {
that.query.DoctorList = res.rows that.query.DoctorList = res.rows
}) })
uni.$off('doctordata') uni.$off('doctordata')
@ -559,4 +559,4 @@
</script> </script>
<style lang="scss"> <style lang="scss">
@import "./Onlinesigning.scss"; @import "./Onlinesigning.scss";
</style> </style>

View File

@ -39,7 +39,6 @@
}, },
projectName: '', projectName: '',
identity: '', identity: '',
region: '',
listinfo: [], listinfo: [],
appointlist: [], appointlist: [],
packageNo: '', packageNo: '',
@ -59,9 +58,8 @@
methods: { methods: {
getlist() { getlist() {
this.userinfo = uni.getStorageSync('userinfo'); this.userinfo = uni.getStorageSync('userinfo');
this.identity=this.userinfo.cardNo this.identity = this.userinfo.cardNo
this.region = this.userinfo.cityCode; getForm(this.identity, this.projectName).then(res => {
getForm(this.identity, this.region, this.projectName).then(res => {
this.listinfo = res.data this.listinfo = res.data
}) })
}, },

View File

@ -56,12 +56,12 @@
methods: { methods: {
getDoctorListinfo() { getDoctorListinfo() {
if (this.orgNo) { if (this.orgNo) {
getDoctorList(this.pageNum, this.orgNo, '1', this.realname).then(res => { getDoctorList(this.pageNum, this.orgNo, this.realname).then(res => {
this.doctorlist = res.rows this.doctorlist = res.rows
this.doctortotal = res.total this.doctortotal = res.total
}) })
} else { } else {
getDoctorListtwo(this.pageNum, 10, this.teamNo, '1', this.realname).then(res => { getDoctorListtwo(this.pageNum, 10, this.teamNo, this.realname).then(res => {
this.doctorlist = res.rows this.doctorlist = res.rows
this.doctortotal = res.total this.doctortotal = res.total
}) })
@ -90,14 +90,14 @@
if (this.doctorlist.length >= this.doctortotal) {} else { if (this.doctorlist.length >= this.doctortotal) {} else {
this.pageNum++; this.pageNum++;
if (this.orgNo) { if (this.orgNo) {
getDoctorList(this.pageNum, this.orgNo, '1', this.realname).then(res => { getDoctorList(this.pageNum, this.orgNo, this.realname).then(res => {
res.rows.forEach(e => { res.rows.forEach(e => {
this.doctorlist.push(e) this.doctorlist.push(e)
}) })
this.doctortotal = res.total this.doctortotal = res.total
}) })
} else { } else {
getDoctorListtwo(this.pageNum, 10, this.teamNo, '1', this.realname).then(res => { getDoctorListtwo(this.pageNum, 10, this.teamNo, this.realname).then(res => {
res.rows.forEach(e => { res.rows.forEach(e => {
this.doctorlist.push(e) this.doctorlist.push(e)
}) })
@ -118,4 +118,4 @@
<style lang="scss"> <style lang="scss">
@import './choosedoctor.scss'; @import './choosedoctor.scss';
</style> </style>

View File

@ -170,7 +170,7 @@
filePath: tempFilePath, filePath: tempFilePath,
name: 'file', name: 'file',
header: { header: {
region: '1' region: uni.getStorageSync('region'),
}, },
timeout: 10000, timeout: 10000,
success(respp) { success(respp) {