修改
This commit is contained in:
parent
1c8404ffd8
commit
54af0a0bd0
@ -77,6 +77,9 @@
|
|||||||
detail,
|
detail,
|
||||||
checkSignApply
|
checkSignApply
|
||||||
} from '@/api/pages/homepage/homepage.js'
|
} from '@/api/pages/homepage/homepage.js'
|
||||||
|
import {
|
||||||
|
mapActions
|
||||||
|
} from "vuex";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -104,6 +107,7 @@
|
|||||||
} else {}
|
} else {}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
...mapActions(["openPopup"]),
|
||||||
//跳转选择地址
|
//跳转选择地址
|
||||||
city() {
|
city() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@ -134,34 +138,37 @@
|
|||||||
},
|
},
|
||||||
// 家医签约
|
// 家医签约
|
||||||
goonline() {
|
goonline() {
|
||||||
if (!this.userinfo) {
|
this.openPopup();
|
||||||
this.gologin();
|
setTimeout(e => {
|
||||||
} else if (this.userinfo) {
|
if (!this.userinfo) {
|
||||||
if (this.region == 3) {
|
this.gologin();
|
||||||
this.family()
|
} else if (this.userinfo) {
|
||||||
} else {
|
if (this.region == 3) {
|
||||||
if (this.region == 1 || this.region == 2) {
|
|
||||||
if (this.checkSign == "0") {
|
|
||||||
this.$refs.uToast.show({
|
|
||||||
title: '未签约,请先签约',
|
|
||||||
type: 'error',
|
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
|
||||||
})
|
|
||||||
} else if (this.checkSign == "01") {
|
|
||||||
this.$refs.uToast.show({
|
|
||||||
title: this.infotitle,
|
|
||||||
type: 'error',
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: "/pagesB/mysigning/mysigning"
|
|
||||||
})
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.family()
|
this.family()
|
||||||
|
} else {
|
||||||
|
if (this.region == 1 || this.region == 2) {
|
||||||
|
if (this.checkSign == "0") {
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: '未签约,请先签约',
|
||||||
|
type: 'error',
|
||||||
|
url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
|
})
|
||||||
|
} else if (this.checkSign == "01") {
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: this.infotitle,
|
||||||
|
type: 'error',
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pagesB/mysigning/mysigning"
|
||||||
|
})
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.family()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}, 50)
|
||||||
},
|
},
|
||||||
// 积分兑换
|
// 积分兑换
|
||||||
count() {
|
count() {
|
||||||
@ -242,34 +249,37 @@
|
|||||||
},
|
},
|
||||||
// 服务预约
|
// 服务预约
|
||||||
goappoint() {
|
goappoint() {
|
||||||
if (!this.userinfo) {
|
this.openPopup();
|
||||||
this.gologin();
|
setTimeout(e => {
|
||||||
} else {
|
if (!this.userinfo) {
|
||||||
if (this.region == 3) {
|
this.gologin();
|
||||||
this.family()
|
|
||||||
} else {
|
} else {
|
||||||
if (this.region == 1 || this.region == 2) {
|
if (this.region == 3) {
|
||||||
if (this.checkSign == "0") {
|
|
||||||
this.$refs.uToast.show({
|
|
||||||
title: '未签约,请先签约',
|
|
||||||
type: 'error',
|
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
|
||||||
})
|
|
||||||
} else if (this.checkSign == "01") {
|
|
||||||
this.$refs.uToast.show({
|
|
||||||
title: this.infotitle,
|
|
||||||
type: 'error',
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: "/pagesC/ServiceAppointment/ServiceAppointment"
|
|
||||||
})
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.family()
|
this.family()
|
||||||
|
} else {
|
||||||
|
if (this.region == 1 || this.region == 2) {
|
||||||
|
if (this.checkSign == "0") {
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: '未签约,请先签约',
|
||||||
|
type: 'error',
|
||||||
|
url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
|
})
|
||||||
|
} else if (this.checkSign == "01") {
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: this.infotitle,
|
||||||
|
type: 'error',
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pagesC/ServiceAppointment/ServiceAppointment"
|
||||||
|
})
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.family()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}, 50)
|
||||||
},
|
},
|
||||||
// 服务记录
|
// 服务记录
|
||||||
servicerecord() {
|
servicerecord() {
|
||||||
|
|||||||
@ -43,7 +43,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
mapState,
|
|
||||||
mapActions
|
mapActions
|
||||||
} from "vuex";
|
} from "vuex";
|
||||||
import {
|
import {
|
||||||
@ -73,48 +72,45 @@
|
|||||||
this.getHeathHousing();
|
this.getHeathHousing();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 第一种 直接映射
|
||||||
|
...mapActions(["openPopup"]),
|
||||||
goAppointmentscreening() {
|
goAppointmentscreening() {
|
||||||
// 筛查预约
|
this.openPopup();
|
||||||
|
setTimeout(e => {
|
||||||
if (!this.userInfo) {
|
// 筛查预约
|
||||||
uni.showModal({
|
if (!this.userInfo) {
|
||||||
title: "提示",
|
uni.showModal({
|
||||||
content: "您还未注册,是否去注册?",
|
title: "提示",
|
||||||
confirmText: '是',
|
content: "您还未注册,是否去注册?",
|
||||||
cancelText: '否',
|
confirmText: '是',
|
||||||
success(res) {
|
cancelText: '否',
|
||||||
if (res.confirm) {
|
success(res) {
|
||||||
uni.redirectTo({
|
if (res.confirm) {
|
||||||
url: "/pages/register/register"
|
uni.redirectTo({
|
||||||
})
|
url: "/pages/register/register"
|
||||||
} else {
|
})
|
||||||
wx.exitMiniProgram()
|
} else {
|
||||||
|
wx.exitMiniProgram()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
getScreening(this.patientId).then(res => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
let userinfo = JSON.stringify(this.userInfo)
|
||||||
|
if (!res.data || res.data == null) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pagesB/screenorder/screenorder?userinfo=${userinfo}`
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pagesB/orderlist/orderlist?userinfo=${userinfo}`
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
})
|
||||||
})
|
}
|
||||||
}
|
}, 0)
|
||||||
else {
|
|
||||||
getScreening(this.patientId).then(res => {
|
|
||||||
if (res.code == 200) {
|
|
||||||
let userinfo = JSON.stringify(this.userInfo)
|
|
||||||
if (!res.data || res.data == null) {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: `/pagesB/screenorder/screenorder?userinfo=${userinfo}`
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: `/pagesB/orderlist/orderlist?userinfo=${userinfo}`
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
// uni.navigateTo({
|
|
||||||
// url: '/pagesB/screenorder/screenorder'
|
|
||||||
// })
|
|
||||||
// uni.navigateTo({
|
|
||||||
// url: '/pagesB/orderlist/orderlist'
|
|
||||||
// })
|
|
||||||
},
|
},
|
||||||
//跳转健康常识item
|
//跳转健康常识item
|
||||||
gohealthitem(item) {
|
gohealthitem(item) {
|
||||||
@ -132,7 +128,6 @@
|
|||||||
url: '/pages/login/login'
|
url: '/pages/login/login'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
// 健康常识
|
// 健康常识
|
||||||
getHeathHousing() {
|
getHeathHousing() {
|
||||||
@ -146,8 +141,6 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
//新人福利
|
//新人福利
|
||||||
// 第一种 直接映射
|
|
||||||
...mapActions(["openPopup"]),
|
|
||||||
gomaterialbenefits() {
|
gomaterialbenefits() {
|
||||||
// 第二种引入
|
// 第二种引入
|
||||||
// this.$store.dispatch("openPopup");
|
// this.$store.dispatch("openPopup");
|
||||||
@ -188,7 +181,6 @@
|
|||||||
url: '/pages/login/login'
|
url: '/pages/login/login'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
}, 0)
|
}, 0)
|
||||||
},
|
},
|
||||||
//健康常识
|
//健康常识
|
||||||
@ -207,31 +199,29 @@
|
|||||||
url: '/pages/login/login'
|
url: '/pages/login/login'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
// 筛查结果
|
// 筛查结果
|
||||||
result() {
|
result() {
|
||||||
const value = uni.getStorageSync('openid');
|
this.openPopup();
|
||||||
const value2 = uni.getStorageSync('patientId');
|
setTimeout(e => {
|
||||||
if (value && value2) {
|
const value = uni.getStorageSync('openid');
|
||||||
uni.navigateTo({
|
const value2 = uni.getStorageSync('patientId');
|
||||||
url: '/pagesB/SelectItem/SelectItem'
|
if (value && value2) {
|
||||||
})
|
uni.navigateTo({
|
||||||
} else {
|
url: '/pagesB/SelectItem/SelectItem'
|
||||||
this.$refs.uToast.show({
|
})
|
||||||
title: '您未登录,请先登录',
|
} else {
|
||||||
type: 'error',
|
this.$refs.uToast.show({
|
||||||
duration: '1000',
|
title: '您未登录,请先登录',
|
||||||
url: '/pages/login/login'
|
type: 'error',
|
||||||
})
|
duration: '1000',
|
||||||
}
|
url: '/pages/login/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}, 50)
|
||||||
},
|
},
|
||||||
//跳转商城
|
//跳转商城
|
||||||
goshopping() {
|
goshopping() {
|
||||||
// this.openPopup();
|
|
||||||
setTimeout(e => {
|
setTimeout(e => {
|
||||||
const value = uni.getStorageSync('openid');
|
const value = uni.getStorageSync('openid');
|
||||||
const value2 = uni.getStorageSync('patientId');
|
const value2 = uni.getStorageSync('patientId');
|
||||||
@ -247,34 +237,27 @@
|
|||||||
url: '/pages/login/login'
|
url: '/pages/login/login'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
}, 0)
|
}, 0)
|
||||||
},
|
},
|
||||||
//问诊平台
|
//问诊平台
|
||||||
goconsultationplatform() {
|
goconsultationplatform() {
|
||||||
const value = uni.getStorageSync('openid');
|
this.openPopup();
|
||||||
const value2 = uni.getStorageSync('patientId');
|
setTimeout(e => {
|
||||||
const value3 = uni.getStorageSync('region');
|
const value = uni.getStorageSync('openid');
|
||||||
if (value && value2 &&value3!=3) {
|
const value2 = uni.getStorageSync('patientId');
|
||||||
uni.navigateTo({
|
if (value && value2) {
|
||||||
url: '/pagesB/consultationplatform/consultationplatform',
|
uni.navigateTo({
|
||||||
})
|
url: '/pagesB/consultationplatform/consultationplatform',
|
||||||
} else if(!value && !value2) {
|
})
|
||||||
this.$refs.uToast.show({
|
} else {
|
||||||
title: '您未登录,请先登录',
|
this.$refs.uToast.show({
|
||||||
type: 'error',
|
title: '您未登录,请先登录',
|
||||||
duration: '1000',
|
type: 'error',
|
||||||
url: '/pages/login/login'
|
duration: '1000',
|
||||||
})
|
url: '/pages/login/login'
|
||||||
}else if(value3==3){
|
})
|
||||||
this.$refs.uToast.show({
|
}
|
||||||
title: '请重新选择区域',
|
}, 0)
|
||||||
type: 'error',
|
|
||||||
duration: '1000',
|
|
||||||
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
//1.分享给朋友
|
//1.分享给朋友
|
||||||
@ -300,4 +283,4 @@
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import "./medicalservice.scss";
|
@import "./medicalservice.scss";
|
||||||
</style>
|
</style>
|
||||||
@ -204,9 +204,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
|
||||||
mapActions
|
|
||||||
} from "vuex";
|
|
||||||
import {
|
import {
|
||||||
appPersonal,
|
appPersonal,
|
||||||
getFamilyList,
|
getFamilyList,
|
||||||
@ -233,7 +230,7 @@
|
|||||||
list: {},
|
list: {},
|
||||||
showhome: false, //切换
|
showhome: false, //切换
|
||||||
familyList: null, //切换列表
|
familyList: null, //切换列表
|
||||||
region:'',//城市
|
region: '', //城市
|
||||||
infotitle: null,
|
infotitle: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -417,7 +414,7 @@
|
|||||||
duration: '3000',
|
duration: '3000',
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
// 签约信息
|
// 签约信息
|
||||||
Signing() {
|
Signing() {
|
||||||
if (!this.appPersonallist) {
|
if (!this.appPersonallist) {
|
||||||
@ -562,17 +559,13 @@
|
|||||||
// }
|
// }
|
||||||
},
|
},
|
||||||
//积分页面
|
//积分页面
|
||||||
...mapActions(["integralopenPopup"]),
|
|
||||||
gointegral() {
|
gointegral() {
|
||||||
const value = uni.getStorageSync('userinfo');
|
const value = uni.getStorageSync('userinfo');
|
||||||
const value2 = uni.getStorageSync('patientId');
|
const value2 = uni.getStorageSync('patientId');
|
||||||
if (value && value2) {
|
if (value && value2) {
|
||||||
this.integralopenPopup();
|
uni.navigateTo({
|
||||||
setTimeout(e => {
|
url: `/pagesB/healthybeans/healthybeans?integral=${this.appPersonallist.integral}`
|
||||||
uni.navigateTo({
|
})
|
||||||
url: `/pagesB/healthybeans/healthybeans?integral=${this.appPersonallist.integral}`
|
|
||||||
})
|
|
||||||
}, 0)
|
|
||||||
} else {
|
} else {
|
||||||
this.gologin();
|
this.gologin();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,22 +8,22 @@ const store = new Vuex.Store({
|
|||||||
mutations: {
|
mutations: {
|
||||||
//相当于同步的操作
|
//相当于同步的操作
|
||||||
//点击确认
|
//点击确认
|
||||||
subscribesuccess(state) {
|
integralsubscribesuccess(state) {
|
||||||
wx.requestSubscribeMessage({
|
wx.requestSubscribeMessage({
|
||||||
tmplIds: [
|
tmplIds: [
|
||||||
'-IxZeEkkXFhoSwGtBHbipKQ6kjEmkdTkswKeOypSsNQ',
|
// 'S_c9bR4znSWpXg-6ACIMn7AkaR11dzo113XM8w4CKz0'
|
||||||
'e1JRZaw1OfTz2b6X9DTqqaJtV4rXEt7uhwXoZLDb_eA',
|
|
||||||
'nUB9HRbqQXOVuTpkKBIHMgzWlNq6touzxf5QYBiMkbU',
|
|
||||||
],
|
],
|
||||||
success(res) {},
|
success(res) {},
|
||||||
fail(err) {},
|
fail(err) {},
|
||||||
complete(scc) {}
|
complete(scc) {}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
integralsubscribesuccess(state) {
|
subscribesuccess(state) {
|
||||||
wx.requestSubscribeMessage({
|
wx.requestSubscribeMessage({
|
||||||
tmplIds: [
|
tmplIds: [
|
||||||
'S_c9bR4znSWpXg-6ACIMn7AkaR11dzo113XM8w4CKz0'
|
'8InV9jXDT5sMj9OWfXEvlLQGlw2UaWfZ9OBMFxufmfk',
|
||||||
|
'2wn1BssReKjZasxKKZRWxBN0VqSmGmkuhc3AhTr18I0',
|
||||||
|
'MSSKCxOdtMUkY1ACu-u3itz8Vh_w5xDkO2llAOGwElU',
|
||||||
],
|
],
|
||||||
success(res) {},
|
success(res) {},
|
||||||
fail(err) {},
|
fail(err) {},
|
||||||
@ -60,4 +60,4 @@ const store = new Vuex.Store({
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
export default store
|
export default store
|
||||||
Loading…
Reference in New Issue
Block a user