修改
This commit is contained in:
parent
530f3a9ae1
commit
f39395a161
@ -1,8 +0,0 @@
|
|||||||
import request from "../request.js"
|
|
||||||
|
|
||||||
export function appRegister(patientName,phone, password,verification) {
|
|
||||||
return request({
|
|
||||||
url: `/nurseApp/login/appRegister?patientName=${patientName}&phone=${phone}&password=${password}&verification=${verification}`,
|
|
||||||
method: 'POST'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
9
api/store/index.js
Normal file
9
api/store/index.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import request from "../request.js"
|
||||||
|
|
||||||
|
export function insertSubscribeMessageRecord(data) {
|
||||||
|
return request({
|
||||||
|
url: `/nurseApplet/patientInfo/insertSubscribeMessageRecord`,
|
||||||
|
method: 'POST',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -25,7 +25,18 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="pointout">
|
<view class="pointout">
|
||||||
温馨提示:我们会尽快与您取得联系,您也可以进入“首页”-“在线客服”主动联系客服,谢谢!
|
<span class="">
|
||||||
|
【温馨提示】
|
||||||
|
</span>
|
||||||
|
<view class="">
|
||||||
|
1、下单后24h内我们会与您确认具体时间点,您也可以进入“首页”-“在线客服”联系客服
|
||||||
|
</view>
|
||||||
|
<view class="">
|
||||||
|
2、请提前准备好健康资料,以备专家参考
|
||||||
|
</view>
|
||||||
|
<view class="">
|
||||||
|
3、请提前下载“腾讯会议”APP
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="remarks">
|
<view class="remarks">
|
||||||
<span>咨询内容:</span>
|
<span>咨询内容:</span>
|
||||||
@ -215,10 +226,14 @@
|
|||||||
border-bottom: 1rpx solid #D8D4D4;
|
border-bottom: 1rpx solid #D8D4D4;
|
||||||
margin-left: 3%;
|
margin-left: 3%;
|
||||||
|
|
||||||
|
span:nth-child(1) {
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
.addition {
|
.addition {
|
||||||
color: #666666;
|
color: #666666;
|
||||||
line-height: 30rpx;
|
line-height: 30rpx;
|
||||||
font-size: 28rpx;
|
font-size: 32rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -253,12 +268,30 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.pointout{
|
|
||||||
|
.pointout {
|
||||||
color: #666666;
|
color: #666666;
|
||||||
width: 94%;
|
width: 94%;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
margin: 20rpx auto;
|
margin: 20rpx auto;
|
||||||
|
|
||||||
|
span {
|
||||||
|
color: black;
|
||||||
|
font-size: 34rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
view {
|
||||||
|
padding-left: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
view:nth-child(1) {
|
||||||
|
padding-top: 10rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.remarks {
|
.remarks {
|
||||||
width: 94%;
|
width: 94%;
|
||||||
margin: 10rpx auto;
|
margin: 10rpx auto;
|
||||||
@ -267,6 +300,9 @@
|
|||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
padding: 30rpx 0 0 30rpx;
|
padding: 30rpx 0 0 30rpx;
|
||||||
|
span {
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.bottomitem {
|
.bottomitem {
|
||||||
|
|||||||
@ -121,7 +121,7 @@
|
|||||||
this.getlist();
|
this.getlist();
|
||||||
},
|
},
|
||||||
goshoping() {
|
goshoping() {
|
||||||
uni.switchTab({
|
uni.navigateTo({
|
||||||
url: '/pages/shopping/shopping'
|
url: '/pages/shopping/shopping'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="app">
|
<view class="app">
|
||||||
<u-tabs :list="tabList" :current="tabcurrent" @change="change"></u-tabs>
|
<!--<u-tabs :list="tabList" :current="tabcurrent" @change="change"></u-tabs>
|
||||||
<view class="items">
|
<view class="items">
|
||||||
<view class="item" @tap='godiseasemanagement'>
|
<view class="item" @tap='godiseasemanagement'>
|
||||||
<image src="../../static/zbglzbgl.png" mode=""></image>
|
<image src="../../static/zbglzbgl.png" mode=""></image>
|
||||||
@ -14,8 +14,8 @@
|
|||||||
国家老年病中心
|
国家老年病中心
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view> -->
|
||||||
<!-- <view class="concent">
|
<view class="concent">
|
||||||
<view class="background">
|
<view class="background">
|
||||||
<image src="/static/logo.png" mode=""></image>
|
<image src="/static/logo.png" mode=""></image>
|
||||||
<view>
|
<view>
|
||||||
@ -28,7 +28,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@ -184,7 +184,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
goshoping() {
|
goshoping() {
|
||||||
uni.switchTab({
|
uni.navigateTo({
|
||||||
url: '/pages/shopping/shopping'
|
url: '/pages/shopping/shopping'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@ -163,15 +163,21 @@
|
|||||||
this.DepartmentpageNum = 1
|
this.DepartmentpageNum = 1
|
||||||
this.swiperImgUrls = []
|
this.swiperImgUrls = []
|
||||||
selectDepartment(this.DepartmentpageNum, this.DepartmentpageSize).then(res => {
|
selectDepartment(this.DepartmentpageNum, this.DepartmentpageSize).then(res => {
|
||||||
|
if (res.rows.length > 0) {
|
||||||
this.hospitalDepartmentList = res.rows
|
this.hospitalDepartmentList = res.rows
|
||||||
this.hospitalDepartmenttotal = res.total
|
this.hospitalDepartmenttotal = res.total
|
||||||
|
this.departmentId = this.hospitalDepartmentList[0].departmentId
|
||||||
|
this.selectHospitalPersonInfo();
|
||||||
|
if (res.rows[0].poserInfoList.length > 0) {
|
||||||
res.rows[0].poserInfoList.forEach(e => {
|
res.rows[0].poserInfoList.forEach(e => {
|
||||||
e.image = baseurl + e.posterPictureUrl
|
e.image = baseurl + e.posterPictureUrl
|
||||||
this.swiperImgUrls.push(e.image)
|
this.swiperImgUrls.push(e.image)
|
||||||
})
|
})
|
||||||
this.departmentId = this.hospitalDepartmentList[0].departmentId
|
} else {
|
||||||
this.selectHospitalPersonInfo();
|
var img = baseurl + '/profile/appletPicture/healthy.png'
|
||||||
if (this.swiperImgUrls.length == 0) {
|
this.swiperImgUrls.push(img)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
var img = baseurl + '/profile/appletPicture/healthy.png'
|
var img = baseurl + '/profile/appletPicture/healthy.png'
|
||||||
this.swiperImgUrls.push(img)
|
this.swiperImgUrls.push(img)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,15 +1,21 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
|
|
||||||
import Vuex from 'vuex'
|
import Vuex from 'vuex'
|
||||||
|
|
||||||
Vue.use(Vuex)
|
Vue.use(Vuex)
|
||||||
|
import {
|
||||||
|
insertSubscribeMessageRecord
|
||||||
|
} from '@/api/store/index.js'
|
||||||
const store = new Vuex.Store({
|
const store = new Vuex.Store({
|
||||||
state: {
|
state: {
|
||||||
//公共的变量,这里的变量不能随便修改,只能通过触发mutations的方法才能改变
|
//公共的变量,这里的变量不能随便修改,只能通过触发mutations的方法才能改变
|
||||||
},
|
},
|
||||||
mutations: {
|
mutations: {
|
||||||
//相当于同步的操作
|
//相当于同步的操作
|
||||||
|
//点击确认
|
||||||
|
subscribesuccess(state) {
|
||||||
|
insertSubscribeMessageRecord().then(res => {
|
||||||
|
console.log(res)
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
//相当于异步的操作,不能直接改变state的值,只能通过触发mutations的方法才能改变
|
//相当于异步的操作,不能直接改变state的值,只能通过触发mutations的方法才能改变
|
||||||
@ -20,10 +26,7 @@ const store = new Vuex.Store({
|
|||||||
withSubscriptions: true, // 是否获取用户订阅消息的订阅状态,默认false不返回
|
withSubscriptions: true, // 是否获取用户订阅消息的订阅状态,默认false不返回
|
||||||
success(res) {
|
success(res) {
|
||||||
console.log('res.authSetting', res.authSetting)
|
console.log('res.authSetting', res.authSetting)
|
||||||
if (res.authSetting['scope.subscribeMessage']) {
|
if (res.authSetting['scope.subscribeMessage']) {} else {
|
||||||
console.log('用户点击了“总是保持以上,不再询问”')
|
|
||||||
} else {
|
|
||||||
console.log('用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息')
|
|
||||||
//因为没有选择总是保持,所以需要调起授权弹窗再次授权
|
//因为没有选择总是保持,所以需要调起授权弹窗再次授权
|
||||||
wx.requestSubscribeMessage({
|
wx.requestSubscribeMessage({
|
||||||
tmplIds: [
|
tmplIds: [
|
||||||
@ -31,10 +34,16 @@ const store = new Vuex.Store({
|
|||||||
'e1JRZaw1OfTz2b6X9DTqqaJtV4rXEt7uhwXoZLDb_eA',
|
'e1JRZaw1OfTz2b6X9DTqqaJtV4rXEt7uhwXoZLDb_eA',
|
||||||
'nUB9HRbqQXOVuTpkKBIHMgzWlNq6touzxf5QYBiMkbU'
|
'nUB9HRbqQXOVuTpkKBIHMgzWlNq6touzxf5QYBiMkbU'
|
||||||
],
|
],
|
||||||
success(res) {},
|
success(res) {
|
||||||
fail(err) {},
|
console.log(res)
|
||||||
complete(scc) {
|
setTimeout(() => {
|
||||||
}
|
contxt.commit('subscribesuccess')
|
||||||
|
}, 1000)
|
||||||
|
},
|
||||||
|
fail(err) {
|
||||||
|
console.log(err)
|
||||||
|
},
|
||||||
|
complete(scc) {}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user