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