签约 拍照+资讯+签约信息
This commit is contained in:
parent
1ed2e63c82
commit
06397a1b37
@ -175,14 +175,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
openCamera() {
|
openCamera() {
|
||||||
|
|
||||||
let that = this
|
let that = this
|
||||||
that.meimage=''
|
that.meimage=''
|
||||||
uni.chooseImage({
|
uni.chooseImage({
|
||||||
sizeType: ['compressed'],
|
sizeType: ['compressed'],
|
||||||
sourceType: ['camera'],
|
sourceType: ['camera'],
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
console.log(res,'000')
|
|
||||||
that.meimage = res.tempFilePaths[0]
|
that.meimage = res.tempFilePaths[0]
|
||||||
uni.saveImageToPhotosAlbum({
|
uni.saveImageToPhotosAlbum({
|
||||||
filePath: that.meimage,
|
filePath: that.meimage,
|
||||||
@ -199,8 +197,7 @@
|
|||||||
success(respp) {
|
success(respp) {
|
||||||
that.signatureshow = false
|
that.signatureshow = false
|
||||||
that.$emit('residentAutographPathlist', {
|
that.$emit('residentAutographPathlist', {
|
||||||
residentAutographPath: JSON.parse(res
|
residentAutographPath: JSON.parse(respp.data).imgUrl,
|
||||||
.data).imgUrl,
|
|
||||||
image: that.meimage
|
image: that.meimage
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -213,7 +210,6 @@
|
|||||||
// //签名
|
// //签名
|
||||||
userSignaturePicture(data) {
|
userSignaturePicture(data) {
|
||||||
let that = this
|
let that = this
|
||||||
console.log(data,'9999')
|
|
||||||
that.meimage = data
|
that.meimage = data
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: baseurl + '/applet/sign/apply/residentSignatureUpload',
|
url: baseurl + '/applet/sign/apply/residentSignatureUpload',
|
||||||
@ -306,4 +302,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
<image src="../../static/pages/xinrenfuli.png" mode="" @tap="gomaterialbenefits"></image>
|
<image src="../../static/pages/xinrenfuli.png" mode="" @tap="gomaterialbenefits"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="title">
|
<view class="title">
|
||||||
<text>健康咨询</text>
|
<text>健康资讯</text>
|
||||||
<view class="" @tap='gohealth'>
|
<view class="" @tap='gohealth'>
|
||||||
<text>
|
<text>
|
||||||
查看更多
|
查看更多
|
||||||
@ -271,7 +271,7 @@
|
|||||||
title: '请重新选择区域',
|
title: '请重新选择区域',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
duration: '1000',
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -300,4 +300,4 @@
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import "./medicalservice.scss";
|
@import "./medicalservice.scss";
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -220,6 +220,9 @@
|
|||||||
import {
|
import {
|
||||||
createMobileToken
|
createMobileToken
|
||||||
} from '@/api/pages/login/index.js'
|
} from '@/api/pages/login/index.js'
|
||||||
|
import {
|
||||||
|
checkSignApply
|
||||||
|
} from '@/api/pages/homepage/homepage.js'
|
||||||
import baseurl from '@/api/baseurl.js'
|
import baseurl from '@/api/baseurl.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@ -230,14 +233,25 @@
|
|||||||
list: {},
|
list: {},
|
||||||
showhome: false, //切换
|
showhome: false, //切换
|
||||||
familyList: null, //切换列表
|
familyList: null, //切换列表
|
||||||
|
region:'',//城市
|
||||||
|
infotitle: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
// this.bjimg = baseurl + '/profile/appletPicture/inviteFriendsOne.png'
|
// this.bjimg = baseurl + '/profile/appletPicture/inviteFriendsOne.png'
|
||||||
this.appPersonallist = uni.getStorageSync('userinfo')
|
this.appPersonallist = uni.getStorageSync('userinfo')
|
||||||
|
this.region = uni.getStorageSync('region')
|
||||||
this.baseurl = baseurl
|
this.baseurl = baseurl
|
||||||
this.myInfo()
|
this.myInfo()
|
||||||
this.getpersnoal()
|
this.getpersnoal()
|
||||||
|
if (this.appPersonallist && this.region != 3) {
|
||||||
|
checkSignApply(this.appPersonallist.cardNo).then(res => {
|
||||||
|
if (res.data) {
|
||||||
|
this.checkSign = res.data.code
|
||||||
|
this.infotitle = res.data.info
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
gomyappiont() {
|
gomyappiont() {
|
||||||
@ -382,18 +396,58 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
// 签约信息
|
// 签约信息
|
||||||
Signing() {
|
// Signing() {
|
||||||
if (uni.getStorageSync('region') == 3) {
|
// if (uni.getStorageSync('region') == 3) {
|
||||||
this.$refs.uToast.show({
|
// this.$refs.uToast.show({
|
||||||
title: '当前地区不支持,请选择其它地区',
|
// title: '当前地区不支持,请选择其它地区',
|
||||||
type: 'error',
|
// type: 'error',
|
||||||
})
|
// })
|
||||||
} else {
|
// } else {
|
||||||
uni.navigateTo({
|
// uni.navigateTo({
|
||||||
url: '/pagesB/mysigning/mysigning'
|
// url: '/pagesB/mysigning/mysigning'
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
// },
|
||||||
|
// 家医功能提示
|
||||||
|
family() {
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: '当前绑定地市不支持',
|
||||||
|
type: 'error',
|
||||||
|
duration: '3000',
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
// 签约信息
|
||||||
|
Signing() {
|
||||||
|
if (!this.appPersonallist) {
|
||||||
|
this.gologin();
|
||||||
|
} else if (this.appPersonallist) {
|
||||||
|
if (this.region == 3) {
|
||||||
|
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()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//去登陆
|
//去登陆
|
||||||
gologin() {
|
gologin() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user