This commit is contained in:
曹辉 2022-12-28 12:08:50 +08:00
parent 7b1675dd3e
commit a7669df84d
26 changed files with 318 additions and 276 deletions

View File

@ -4,8 +4,8 @@ import App from './App'
import Vue from 'vue'
import uView from "uview-ui";
Vue.use(uView);
import share from './share.js'
Vue.mixin(share)
// import share from './share.js'
// Vue.mixin(share)
Vue.config.productionTip = false
App.mpType = 'app'

View File

@ -13,7 +13,7 @@
<view class="doctor">
<text>内科门诊-主任医师</text>
</view>
</view>
</view>
<view class="Apayment">
@ -39,7 +39,7 @@
<view class="doctor">
<text>内科门诊-主任医师</text>
</view>
</view>
</view>
<view class="Apayment">
@ -47,7 +47,6 @@
<text class="money">实付款:</text>
<text class="price">28.0</text>
</view>
<view class="result">
查看结果
</view>
@ -64,7 +63,19 @@
}
},
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>
@ -109,7 +120,7 @@
height: 230rpx;
// background-color: red;
margin: 0 auto;
display:flex;
display: flex;
.img {
width: 169rpx;
@ -120,21 +131,23 @@
}
.texts {
margin-top: 7%;
margin-top: 7%;
// width: 169rpx;
height: 171rpx;
margin-left: 6%;
// background: #BFBFBF;
.name{
.name {
height: 70rpx;
font-size: 38rpx;
color: #000000;
line-height: 70rpx;
}
.doctor{
.doctor {
height: 60rpx;
font-size: 35rpx;
color: #969394;
@ -142,12 +155,14 @@
}
}
}
.Apayment{
.Apayment {
width: 90%;
margin: 0 auto;
// background-color: red;
display: flex;
.money{
.money {
height: 29rpx;
font-size: 30rpx;
@ -155,7 +170,8 @@
line-height: 29rpx;
// margin-top: -40px;
}
.price{
.price {
font-family: Adobe Heiti Std;
font-weight: normal;
line-height: 29rpx;
@ -164,7 +180,8 @@
color: #000000;
line-height: 77rpx;
}
.result{
.result {
width: 217rpx;
height: 68rpx;
line-height: 68rpx;

View File

@ -21,7 +21,21 @@
return {
};
}
},
//1.
onShareAppMessage(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
//2.
onShareTimeline(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
}
</script>

View File

@ -63,9 +63,12 @@
<view class="image">
<image :src="updata.img" mode=""></image>
</view>
<view class="title">
<view class="title" v-if="goodsDetailslist.goodsName">
{{goodsDetailslist.goodsName}}
</view>
<view class="title">
暂无
</view>
<view class="price">
{{updata.goodsPrice}}
</view>
@ -383,6 +386,20 @@
this.usershow = false
this.goodsDetailsinfo(this.goodsInfoId)
},
//1.
onShareAppMessage(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
//2.
onShareTimeline(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
}
</script>

View File

@ -26,7 +26,21 @@
return {
};
}
},
//1.
onShareAppMessage(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
//2.
onShareTimeline(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
}
</script>

View File

@ -27,7 +27,21 @@
return {
};
}
},
//1.
onShareAppMessage(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
//2.
onShareTimeline(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
}
</script>

View File

@ -128,6 +128,20 @@
})
},
},
//1.
onShareAppMessage(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
//2.
onShareTimeline(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
}
</script>

View File

@ -123,7 +123,21 @@
setTimeout(function() {
uni.stopPullDownRefresh();
}, 1000);
}
},
//1.
onShareAppMessage(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
//2.
onShareTimeline(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
}
</script>

View File

@ -147,7 +147,21 @@
this.list = res.data
})
},
}
},
//1.
onShareAppMessage(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
//2.
onShareTimeline(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
}
</script>

View File

@ -141,7 +141,7 @@
personInfo: {}, //
patientId: null,
useritem: null, //optionsuser
consumableTotalPrice: null, //
consumableTotalPrice: 0, //
orderlist: {
orderCount: 1,
patientId: '',

View File

@ -28,7 +28,21 @@
data() {
return {}
},
methods: {}
methods: {},
//1.
onShareAppMessage(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
//2.
onShareTimeline(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
}
</script>

View File

@ -47,7 +47,21 @@
},
methods: {
}
},
//1.
onShareAppMessage(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
//2.
onShareTimeline(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
}
</script>

View File

@ -21,7 +21,21 @@
return {
};
}
},
//1.
onShareAppMessage(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
//2.
onShareTimeline(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
}
</script>

View File

@ -43,7 +43,21 @@
},
],
};
}
},
//1.
onShareAppMessage(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
//2.
onShareTimeline(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
}
</script>

View File

@ -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%;
}
}

View File

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

View File

@ -47,6 +47,20 @@
data() {
return {};
},
//1.
onShareAppMessage(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
//2.
onShareTimeline(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
methods: {
//
godiseasemanagement() {

View File

@ -32,6 +32,20 @@
uni.removeStorageSync('token');
uni.removeStorageSync('phone');
},
//1.
onShareAppMessage(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
//2.
onShareTimeline(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
methods: {
getPhoneNumberp(val) {
let that = this;

View File

@ -47,6 +47,20 @@
// })
},
},
//1.
onShareAppMessage(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
//2.
onShareTimeline(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
}
</script>

View File

@ -32,9 +32,12 @@
</view>
<view class="item" @tap='getAddress()'>
<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}}
</view>
<view class="address" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" v-else>
</view>
</view>
<view class="disease" style="border: none;" @tap="godisease">
<view style="display: block;line-height: 120rpx;">疾病类型:</view>
@ -302,7 +305,6 @@
const chooseLocation = requirePlugin('chooseLocation');
const location = chooseLocation.getLocation(); // null
if (location) {
console.log(location)
that.appPersonallist.locationName = location.address
that.appPersonallist.homeLongitude = location.longitude;
that.appPersonallist.homeLatitude = location.latitude;

View File

@ -325,6 +325,20 @@
uni.stopPullDownRefresh();
}, 1000);
},
//1.
onShareAppMessage(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
//2.
onShareTimeline(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
}
</script>

View File

@ -76,7 +76,21 @@
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>

View File

@ -44,6 +44,20 @@
], //
};
},
//1.
onShareAppMessage(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
//2.
onShareTimeline(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
//
onLoad(options) {},
onShow() {

View File

@ -232,6 +232,20 @@
} catch (e) {}
},
onLoad() {},
//1.
onShareAppMessage(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
//2.
onShareTimeline(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
}
</script>
<style lang="scss">

View File

@ -17,6 +17,20 @@
};
},
//1.
onShareAppMessage(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
//2.
onShareTimeline(res) {
return {
title: '泉医到家',
path: '/pages/startup/startup',
}
},
onShow() {
setTimeout(() => {
uni.reLaunch({

View File

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