修改
This commit is contained in:
parent
7b1675dd3e
commit
a7669df84d
4
main.js
4
main.js
@ -4,8 +4,8 @@ import App from './App'
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import uView from "uview-ui";
|
import uView from "uview-ui";
|
||||||
Vue.use(uView);
|
Vue.use(uView);
|
||||||
import share from './share.js'
|
// import share from './share.js'
|
||||||
Vue.mixin(share)
|
// Vue.mixin(share)
|
||||||
|
|
||||||
Vue.config.productionTip = false
|
Vue.config.productionTip = false
|
||||||
App.mpType = 'app'
|
App.mpType = 'app'
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
<view class="doctor">
|
<view class="doctor">
|
||||||
<text>内科门诊-主任医师</text>
|
<text>内科门诊-主任医师</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="Apayment">
|
<view class="Apayment">
|
||||||
@ -39,7 +39,7 @@
|
|||||||
<view class="doctor">
|
<view class="doctor">
|
||||||
<text>内科门诊-主任医师</text>
|
<text>内科门诊-主任医师</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="Apayment">
|
<view class="Apayment">
|
||||||
@ -47,7 +47,6 @@
|
|||||||
<text class="money">实付款:</text>
|
<text class="money">实付款:</text>
|
||||||
<text class="price">¥28.0</text>
|
<text class="price">¥28.0</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="result">
|
<view class="result">
|
||||||
查看结果
|
查看结果
|
||||||
</view>
|
</view>
|
||||||
@ -64,7 +63,19 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
return {
|
||||||
|
title: this.share.title,
|
||||||
|
path: this.share.path,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//2.分享到朋友圈
|
||||||
|
onShareTimeline(res) {
|
||||||
|
return {
|
||||||
|
title: this.share.title,
|
||||||
|
path: this.share.path,
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@ -109,7 +120,7 @@
|
|||||||
height: 230rpx;
|
height: 230rpx;
|
||||||
// background-color: red;
|
// background-color: red;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
display:flex;
|
display: flex;
|
||||||
|
|
||||||
.img {
|
.img {
|
||||||
width: 169rpx;
|
width: 169rpx;
|
||||||
@ -120,21 +131,23 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.texts {
|
.texts {
|
||||||
|
|
||||||
margin-top: 7%;
|
margin-top: 7%;
|
||||||
// width: 169rpx;
|
// width: 169rpx;
|
||||||
height: 171rpx;
|
height: 171rpx;
|
||||||
margin-left: 6%;
|
margin-left: 6%;
|
||||||
|
|
||||||
// background: #BFBFBF;
|
// background: #BFBFBF;
|
||||||
.name{
|
.name {
|
||||||
height: 70rpx;
|
height: 70rpx;
|
||||||
font-size: 38rpx;
|
font-size: 38rpx;
|
||||||
|
|
||||||
|
|
||||||
color: #000000;
|
color: #000000;
|
||||||
line-height: 70rpx;
|
line-height: 70rpx;
|
||||||
}
|
}
|
||||||
.doctor{
|
|
||||||
|
.doctor {
|
||||||
height: 60rpx;
|
height: 60rpx;
|
||||||
font-size: 35rpx;
|
font-size: 35rpx;
|
||||||
color: #969394;
|
color: #969394;
|
||||||
@ -142,12 +155,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.Apayment{
|
|
||||||
|
.Apayment {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
// background-color: red;
|
// background-color: red;
|
||||||
display: flex;
|
display: flex;
|
||||||
.money{
|
|
||||||
|
.money {
|
||||||
|
|
||||||
height: 29rpx;
|
height: 29rpx;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
@ -155,7 +170,8 @@
|
|||||||
line-height: 29rpx;
|
line-height: 29rpx;
|
||||||
// margin-top: -40px;
|
// margin-top: -40px;
|
||||||
}
|
}
|
||||||
.price{
|
|
||||||
|
.price {
|
||||||
font-family: Adobe Heiti Std;
|
font-family: Adobe Heiti Std;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
line-height: 29rpx;
|
line-height: 29rpx;
|
||||||
@ -164,7 +180,8 @@
|
|||||||
color: #000000;
|
color: #000000;
|
||||||
line-height: 77rpx;
|
line-height: 77rpx;
|
||||||
}
|
}
|
||||||
.result{
|
|
||||||
|
.result {
|
||||||
width: 217rpx;
|
width: 217rpx;
|
||||||
height: 68rpx;
|
height: 68rpx;
|
||||||
line-height: 68rpx;
|
line-height: 68rpx;
|
||||||
|
|||||||
@ -21,7 +21,21 @@
|
|||||||
return {
|
return {
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
},
|
||||||
|
//1.分享给朋友
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//2.分享到朋友圈
|
||||||
|
onShareTimeline(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -63,9 +63,12 @@
|
|||||||
<view class="image">
|
<view class="image">
|
||||||
<image :src="updata.img" mode=""></image>
|
<image :src="updata.img" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="title">
|
<view class="title" v-if="goodsDetailslist.goodsName">
|
||||||
{{goodsDetailslist.goodsName}}
|
{{goodsDetailslist.goodsName}}
|
||||||
</view>
|
</view>
|
||||||
|
<view class="title">
|
||||||
|
暂无
|
||||||
|
</view>
|
||||||
<view class="price">
|
<view class="price">
|
||||||
¥{{updata.goodsPrice}}
|
¥{{updata.goodsPrice}}
|
||||||
</view>
|
</view>
|
||||||
@ -383,6 +386,20 @@
|
|||||||
this.usershow = false
|
this.usershow = false
|
||||||
this.goodsDetailsinfo(this.goodsInfoId)
|
this.goodsDetailsinfo(this.goodsInfoId)
|
||||||
},
|
},
|
||||||
|
//1.分享给朋友
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//2.分享到朋友圈
|
||||||
|
onShareTimeline(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -26,7 +26,21 @@
|
|||||||
return {
|
return {
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
},
|
||||||
|
//1.分享给朋友
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//2.分享到朋友圈
|
||||||
|
onShareTimeline(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,21 @@
|
|||||||
return {
|
return {
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
},
|
||||||
|
//1.分享给朋友
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//2.分享到朋友圈
|
||||||
|
onShareTimeline(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -128,6 +128,20 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
//1.分享给朋友
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//2.分享到朋友圈
|
||||||
|
onShareTimeline(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -123,7 +123,21 @@
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
},
|
||||||
|
//1.分享给朋友
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//2.分享到朋友圈
|
||||||
|
onShareTimeline(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -147,7 +147,21 @@
|
|||||||
this.list = res.data
|
this.list = res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
|
//1.分享给朋友
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//2.分享到朋友圈
|
||||||
|
onShareTimeline(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -141,7 +141,7 @@
|
|||||||
personInfo: {}, //用户信息
|
personInfo: {}, //用户信息
|
||||||
patientId: null,
|
patientId: null,
|
||||||
useritem: null, //optionsuser信息
|
useritem: null, //optionsuser信息
|
||||||
consumableTotalPrice: null, //耗材包总价格
|
consumableTotalPrice: 0, //耗材包总价格
|
||||||
orderlist: {
|
orderlist: {
|
||||||
orderCount: 1,
|
orderCount: 1,
|
||||||
patientId: '',
|
patientId: '',
|
||||||
|
|||||||
@ -28,7 +28,21 @@
|
|||||||
data() {
|
data() {
|
||||||
return {}
|
return {}
|
||||||
},
|
},
|
||||||
methods: {}
|
methods: {},
|
||||||
|
//1.分享给朋友
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//2.分享到朋友圈
|
||||||
|
onShareTimeline(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -47,7 +47,21 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
}
|
},
|
||||||
|
//1.分享给朋友
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//2.分享到朋友圈
|
||||||
|
onShareTimeline(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -21,7 +21,21 @@
|
|||||||
return {
|
return {
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
},
|
||||||
|
//1.分享给朋友
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//2.分享到朋友圈
|
||||||
|
onShareTimeline(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -43,7 +43,21 @@
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
}
|
},
|
||||||
|
//1.分享给朋友
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//2.分享到朋友圈
|
||||||
|
onShareTimeline(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -1,73 +0,0 @@
|
|||||||
.app {
|
|
||||||
padding: 20rpx 0;
|
|
||||||
|
|
||||||
.item {
|
|
||||||
font-size: 34rpx;
|
|
||||||
margin: 0 auto 20rpx;
|
|
||||||
width: 94%;
|
|
||||||
height: 100rpx;
|
|
||||||
line-height: 100rpx;
|
|
||||||
background-color: #fff;
|
|
||||||
box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
|
|
||||||
border-radius: 20rpx;
|
|
||||||
position: relative;
|
|
||||||
|
|
||||||
.lefttext {
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
transform: translateY(-50%);
|
|
||||||
left: 3%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.righttext {
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
transform: translateY(-50%);
|
|
||||||
left: 18%;
|
|
||||||
height: 100rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.lefttext,
|
|
||||||
.righttext {
|
|
||||||
::v-deep .uni-input-input {
|
|
||||||
font-size: 34rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
::v-deep .uni-input-wrapper {
|
|
||||||
height: 100rpx;
|
|
||||||
line-height: 100rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
::v-deep .uni-input-placeholder {
|
|
||||||
line-height: 100rpx;
|
|
||||||
font-size: 34rpx;
|
|
||||||
font-weight: 400;
|
|
||||||
color: #C3C1C1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.obtaincode {
|
|
||||||
text-align: center;
|
|
||||||
font-size: 36rpx;
|
|
||||||
color: #4C7BC9;
|
|
||||||
line-height: 100rpx;
|
|
||||||
position: absolute;
|
|
||||||
right: 5%;
|
|
||||||
top: 0%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.loginbtn {
|
|
||||||
width: 80%;
|
|
||||||
height: 100rpx;
|
|
||||||
text-align: center;
|
|
||||||
line-height: 100rpx;
|
|
||||||
background: #4C7BC9;
|
|
||||||
border-radius: 51rpx;
|
|
||||||
font-size: 41rpx;
|
|
||||||
color: #FFFFFF;
|
|
||||||
position: absolute;
|
|
||||||
top: 40%;
|
|
||||||
left: 10%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,123 +0,0 @@
|
|||||||
<template>
|
|
||||||
<view class="app">
|
|
||||||
<view class="item">
|
|
||||||
<view class="lefttext">
|
|
||||||
输入新密码
|
|
||||||
</view>
|
|
||||||
<u-input class='righttext' style='left:30%' placeholder="请输入密码" maxlength="10" type="password"
|
|
||||||
:border="false" :password-icon="true" v-model="newpassword" />
|
|
||||||
</view>
|
|
||||||
<view class="item">
|
|
||||||
<view class="lefttext">
|
|
||||||
重复新密码
|
|
||||||
</view>
|
|
||||||
<u-input class='righttext' style='left:30%' placeholder="请再次输入密码" maxlength="10" type="password"
|
|
||||||
:border="false" :password-icon="true" v-model="password" />
|
|
||||||
</view>
|
|
||||||
<view class="item">
|
|
||||||
<view class="lefttext">
|
|
||||||
手机号
|
|
||||||
</view>
|
|
||||||
<input class="righttext" style='left:23%' type="text" placeholder="请输入" maxlength="11" v-model="phone"/>
|
|
||||||
</view>
|
|
||||||
<view class="item">
|
|
||||||
<view class="lefttext">
|
|
||||||
验证码
|
|
||||||
</view>
|
|
||||||
<input class="righttext" style='left:23%' type="text" placeholder="" maxlength="6" v-model="verification" />
|
|
||||||
<view class="obtaincode" :style="{'color':getCodeBtnColor}" @click.stop="getCode()">
|
|
||||||
{{getCodeText}}
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="loginbtn" @tap='pwdlogin'>
|
|
||||||
登录
|
|
||||||
</view>
|
|
||||||
<u-toast ref="uToast" />
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
<script>
|
|
||||||
import {
|
|
||||||
ForgotPassword
|
|
||||||
} from '../../api/forgotPassword/forgotPassword.js'
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
phone: '13678945620',
|
|
||||||
verification: '111111',
|
|
||||||
password: '',
|
|
||||||
newpassword: '',
|
|
||||||
getCodeText: '获取验证码', //获取验证码的文字
|
|
||||||
getCodeBtnColor: "#4C7BC9", //获取验证码的color
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
pwdlogin() {
|
|
||||||
ForgotPassword(this.phone, this.password, this.verification).then(res => {
|
|
||||||
if (this.password !== this.newpassword) {
|
|
||||||
this.$refs.uToast.show({
|
|
||||||
title: '密码输入不一致,请重新输入',
|
|
||||||
type: 'error',
|
|
||||||
duration: '1500'
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.$refs.uToast.show({
|
|
||||||
title: '密码修改成功',
|
|
||||||
type: 'success',
|
|
||||||
url: '/pages/login/login',
|
|
||||||
duration: '1500'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
//点击获取验证码
|
|
||||||
getCode() {
|
|
||||||
uni.hideKeyboard() //隐藏已经显示的软键盘,如果软键盘没有显示则不做任何操作。
|
|
||||||
if (this.getCodeisWaiting) { //是否在倒计时中
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!(/^1(3|4|5|6|7|8|9)\d{9}$/.test(this.phone))) { //校验手机号码是否有误
|
|
||||||
uni.showToast({
|
|
||||||
title: '请填写正确手机号码',
|
|
||||||
icon: "none"
|
|
||||||
});
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
this.getCodeText = "发送中..." //发送验证码
|
|
||||||
this.getCodeisWaiting = true;
|
|
||||||
this.getCodeBtnColor = "rgba(138,139,133,1)" //追加样式,修改颜色
|
|
||||||
//示例用定时器模拟请求效果
|
|
||||||
//setTimeout(()用于在指定的毫秒数后调用函数或计算表达式
|
|
||||||
setTimeout(() => {
|
|
||||||
uni.showToast({
|
|
||||||
title: '验证码已发送',
|
|
||||||
icon: "none"
|
|
||||||
}); //弹出提示框
|
|
||||||
// this.code = '1234'; //发送验证码,进行填入 示例默认1234,生产中请删除这一句。
|
|
||||||
this.setTimer(); //调用定时器方法
|
|
||||||
}, 1000)
|
|
||||||
},
|
|
||||||
//获取验证码的倒计时 setTimer: 需要每隔一段时间执行一件事的的时候就需要使用SetTimer函数
|
|
||||||
setTimer() {
|
|
||||||
let holdTime = 60; //定义变量并赋值
|
|
||||||
this.getCodeText = "重新获取(60)"
|
|
||||||
//setInterval()是一个实现定时调用的函数,可按照指定的周期(以毫秒计)来调用函数或计算表达式。
|
|
||||||
//setInterval方法会不停地调用函数,直到 clearInterval被调用或窗口被关闭。
|
|
||||||
this.Timer = setInterval(() => {
|
|
||||||
if (holdTime <= 0) {
|
|
||||||
this.getCodeisWaiting = false;
|
|
||||||
this.getCodeBtnColor = "#4C7BC9";
|
|
||||||
this.getCodeText = "获取验证码"
|
|
||||||
clearInterval(this.Timer); //清除该函数
|
|
||||||
return; //返回前面
|
|
||||||
}
|
|
||||||
this.getCodeText = "重新获取(" + holdTime + ")"
|
|
||||||
holdTime--;
|
|
||||||
}, 1000)
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss">
|
|
||||||
@import "./forgotPassword.scss";
|
|
||||||
</style>
|
|
||||||
@ -47,6 +47,20 @@
|
|||||||
data() {
|
data() {
|
||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
|
//1.分享给朋友
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//2.分享到朋友圈
|
||||||
|
onShareTimeline(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//专病管理
|
//专病管理
|
||||||
godiseasemanagement() {
|
godiseasemanagement() {
|
||||||
|
|||||||
@ -32,6 +32,20 @@
|
|||||||
uni.removeStorageSync('token');
|
uni.removeStorageSync('token');
|
||||||
uni.removeStorageSync('phone');
|
uni.removeStorageSync('phone');
|
||||||
},
|
},
|
||||||
|
//1.分享给朋友
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//2.分享到朋友圈
|
||||||
|
onShareTimeline(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getPhoneNumberp(val) {
|
getPhoneNumberp(val) {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
|||||||
@ -47,6 +47,20 @@
|
|||||||
// })
|
// })
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
//1.分享给朋友
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//2.分享到朋友圈
|
||||||
|
onShareTimeline(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -32,9 +32,12 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="item" @tap='getAddress()'>
|
<view class="item" @tap='getAddress()'>
|
||||||
<span>所在位置:</span>
|
<span>所在位置:</span>
|
||||||
<view class="address" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
|
<view class="address" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"
|
||||||
|
v-if="appPersonallist.locationName">
|
||||||
{{appPersonallist.locationName}}
|
{{appPersonallist.locationName}}
|
||||||
</view>
|
</view>
|
||||||
|
<view class="address" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" v-else>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="disease" style="border: none;" @tap="godisease">
|
<view class="disease" style="border: none;" @tap="godisease">
|
||||||
<view style="display: block;line-height: 120rpx;">疾病类型:</view>
|
<view style="display: block;line-height: 120rpx;">疾病类型:</view>
|
||||||
@ -302,7 +305,6 @@
|
|||||||
const chooseLocation = requirePlugin('chooseLocation');
|
const chooseLocation = requirePlugin('chooseLocation');
|
||||||
const location = chooseLocation.getLocation(); // 如果点击确认选点按钮,则返回选点结果对象,否则返回null
|
const location = chooseLocation.getLocation(); // 如果点击确认选点按钮,则返回选点结果对象,否则返回null
|
||||||
if (location) {
|
if (location) {
|
||||||
console.log(location)
|
|
||||||
that.appPersonallist.locationName = location.address
|
that.appPersonallist.locationName = location.address
|
||||||
that.appPersonallist.homeLongitude = location.longitude;
|
that.appPersonallist.homeLongitude = location.longitude;
|
||||||
that.appPersonallist.homeLatitude = location.latitude;
|
that.appPersonallist.homeLatitude = location.latitude;
|
||||||
|
|||||||
@ -325,6 +325,20 @@
|
|||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
},
|
},
|
||||||
|
//1.分享给朋友
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//2.分享到朋友圈
|
||||||
|
onShareTimeline(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -76,7 +76,21 @@
|
|||||||
url: `/pages/CommodityOrder/CommodityOrder?orderStatus=${item}`
|
url: `/pages/CommodityOrder/CommodityOrder?orderStatus=${item}`
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
|
//1.分享给朋友
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//2.分享到朋友圈
|
||||||
|
onShareTimeline(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -44,6 +44,20 @@
|
|||||||
], //颜色随动
|
], //颜色随动
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
//1.分享给朋友
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//2.分享到朋友圈
|
||||||
|
onShareTimeline(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
//初始化加载
|
//初始化加载
|
||||||
onLoad(options) {},
|
onLoad(options) {},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|||||||
@ -232,6 +232,20 @@
|
|||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
},
|
},
|
||||||
onLoad() {},
|
onLoad() {},
|
||||||
|
//1.分享给朋友
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//2.分享到朋友圈
|
||||||
|
onShareTimeline(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|||||||
@ -17,6 +17,20 @@
|
|||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
//1.分享给朋友
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//2.分享到朋友圈
|
||||||
|
onShareTimeline(res) {
|
||||||
|
return {
|
||||||
|
title: '泉医到家',
|
||||||
|
path: '/pages/startup/startup',
|
||||||
|
}
|
||||||
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
|
|||||||
50
share.js
50
share.js
@ -1,50 +0,0 @@
|
|||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
// 默认的全局分享内容
|
|
||||||
share: {
|
|
||||||
title: '泉医到家',
|
|
||||||
path: '/pages/startup/startup', // 全局分享的路径,比如 首页
|
|
||||||
// imageUrl: , // 全局分享的图片(可本地可网络)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 定义全局分享
|
|
||||||
// 1.发送给朋友
|
|
||||||
onShareAppMessage(res) {
|
|
||||||
// getCurrentPages() 函数用于获取当前页面栈的实例,以数组形式按栈的顺序给出,第一个元素为首页,最后一个元素为当前页面。
|
|
||||||
let pages = getCurrentPages();
|
|
||||||
let url = pages[pages.length - 1].$page.fullPath.split('?')[0]
|
|
||||||
if (url == '/pages/user/user' || url == '/pages/information/information' || url == '/pages/modify/modify') {
|
|
||||||
return {
|
|
||||||
title: this.share.title,
|
|
||||||
path: this.share.path,
|
|
||||||
imageUrl: '/static/192x192.png',
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return {
|
|
||||||
title: this.share.title,
|
|
||||||
path: this.share.path,
|
|
||||||
// imageUrl: this.share.imageUrl,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
//2.分享到朋友圈
|
|
||||||
onShareTimeline(res) {
|
|
||||||
let pages = getCurrentPages();
|
|
||||||
let url = pages[pages.length - 1].$page.fullPath.split('?')[0]
|
|
||||||
if (url == '/pages/user/user' || url == '/pages/information/information' || url == '/pages/modify/modify') {
|
|
||||||
return {
|
|
||||||
title: this.share.title,
|
|
||||||
path: this.share.path,
|
|
||||||
imageUrl: '/static/192x192.png',
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return {
|
|
||||||
title: this.share.title,
|
|
||||||
path: this.share.path,
|
|
||||||
// imageUrl: this.share.imageUrl,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user