This commit is contained in:
曹辉 2023-03-16 09:14:57 +08:00
parent 530f3a9ae1
commit f39395a161
8 changed files with 90 additions and 38 deletions

View File

@ -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
View File

@ -0,0 +1,9 @@
import request from "../request.js"
export function insertSubscribeMessageRecord(data) {
return request({
url: `/nurseApplet/patientInfo/insertSubscribeMessageRecord`,
method: 'POST',
data
})
}

View File

@ -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 {

View File

@ -121,7 +121,7 @@
this.getlist();
},
goshoping() {
uni.switchTab({
uni.navigateTo({
url: '/pages/shopping/shopping'
})
},

View File

@ -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>

View File

@ -184,7 +184,7 @@
})
},
goshoping() {
uni.switchTab({
uni.navigateTo({
url: '/pages/shopping/shopping'
})
},

View File

@ -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)
}

View File

@ -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) {}
})
}
}