登录后直接进入到聊天室
This commit is contained in:
parent
e431980fee
commit
69da027c23
75
pages.json
75
pages.json
|
@ -721,6 +721,81 @@
|
|||
},
|
||||
// #endif
|
||||
// #ifndef H5
|
||||
{
|
||||
"path": "pages/publicTwo/login",
|
||||
"style": {
|
||||
"navigationBarTitleText": "登录",
|
||||
"app-plus": {
|
||||
"titleNView": false
|
||||
}
|
||||
}
|
||||
},
|
||||
// #endif
|
||||
{
|
||||
"path": "pages/publicTwo/bind",
|
||||
"style": {
|
||||
"navigationBarTitleText": "绑定手机号",
|
||||
"app-plus": {
|
||||
"titleNView": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/publicTwo/forgetPwd",
|
||||
"style": {
|
||||
"navigationBarTitleText": "重置密码",
|
||||
"app-plus": {
|
||||
"titleNView": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"path": "pages/publicTwo/loginphone",
|
||||
"style": {
|
||||
"navigationBarTitleText": "登录",
|
||||
"app-plus": {
|
||||
"titleNView": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/publicTwo/loginmsg",
|
||||
"style": {
|
||||
"navigationBarTitleText": "登录",
|
||||
"app-plus": {
|
||||
"titleNView": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/publicTwo/pwd",
|
||||
"style": {
|
||||
"navigationBarTitleText": "修改密码",
|
||||
"navigationStyle": "custom",
|
||||
"app-plus": {
|
||||
"titleNView": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/publicTwo/register",
|
||||
"style": {
|
||||
"navigationBarTitleText": "注册"
|
||||
}
|
||||
},
|
||||
// #ifdef H5
|
||||
{
|
||||
"path": "pages/public/login",
|
||||
"style": {
|
||||
"navigationBarTitleText": "登录",
|
||||
"app-plus": {
|
||||
"titleNView": false
|
||||
}
|
||||
}
|
||||
},
|
||||
// #endif
|
||||
// #ifndef H5
|
||||
{
|
||||
"path": "pages/public/login",
|
||||
"style": {
|
||||
|
|
|
@ -239,6 +239,10 @@
|
|||
</view>
|
||||
</view>
|
||||
<view style="width: 100%;height: 700px;"></view>
|
||||
<view class="kefu" @click="goMsg">
|
||||
<image src="../../static/kefu.png" mode=""></image>
|
||||
<!--<span>联系客服</span>-->
|
||||
</view>
|
||||
<!-- 经验筛选 -->
|
||||
<u-select v-model="Cityshow" style="height: auto;" :list="cityList" @confirm="getCity"></u-select>
|
||||
<uni-popup style="width: 100%;height: 100vh;" type="center" ref="pinglun" @touchmove.stop.prevent="moveHandle">
|
||||
|
@ -538,6 +542,23 @@
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
goMsg() { //客服聊天
|
||||
let data = {
|
||||
userId: uni.getStorageSync('userId'),
|
||||
focusedUserId: '0',
|
||||
// userName:this.order.userName
|
||||
}
|
||||
// app/chat/insertChatConversation
|
||||
this.$Request.postJson('/app/chat/insertChatConversation', data).then(res => {
|
||||
if (res.data) {
|
||||
let id = this.ordersId == res.data.userId ? res.data.focusedUserId : this.ordersId
|
||||
uni.navigateTo({
|
||||
url: '/pages/msg/im?chatConversationId=' + res.data.chatConversationId +
|
||||
'&byUserId=' + res.data.userId
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
selectCity(longitude, latitude) {
|
||||
var that=this;
|
||||
var longitude = that.longitude;
|
||||
|
@ -1160,6 +1181,29 @@
|
|||
</script>
|
||||
|
||||
<style scoped>
|
||||
.kefu span {
|
||||
font-size: 14px;
|
||||
color: #1296db;
|
||||
}
|
||||
|
||||
.kefu image {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
.kefu {
|
||||
width: 75px;
|
||||
height: 75px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
margin-bottom: 20%;
|
||||
margin-right: 20px;
|
||||
}
|
||||
.popup-view /deep/.uni-popup__wrapper-box{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
|
@ -0,0 +1,189 @@
|
|||
<template>
|
||||
<view class="container">
|
||||
<view class="cu-form-group"
|
||||
style="margin: 30upx;border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<view class="title">手机号</view>
|
||||
<input type="number" :value="mobile" placeholder="请输入手机号" maxlength="11" data-key="mobile"
|
||||
@input="inputChange" />
|
||||
</view>
|
||||
<view class="cu-form-group"
|
||||
style="margin: 30upx;border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<text class="title">验证码</text>
|
||||
<input type="number" :value="code" placeholder="请输入验证码" maxlength="6" data-key="code" @input="inputChange"
|
||||
@confirm="toLogin" />
|
||||
<button class="send-msg" @click="sendMsg" :disabled="sending">{{ sendTime }}</button>
|
||||
</view>
|
||||
|
||||
<button class="confirm-btn" @click="toLogin" :disabled="logining">立即绑定</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import listCell from '@/components/com-input';
|
||||
export default {
|
||||
components: {
|
||||
listCell
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
mobile: '',
|
||||
code: '',
|
||||
logining: false,
|
||||
sending: false,
|
||||
sendTime: '获取验证码',
|
||||
count: 60,
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
inputChange(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
navBack() {
|
||||
uni.navigateBack();
|
||||
},
|
||||
countDown() {
|
||||
const {
|
||||
count
|
||||
} = this;
|
||||
if (count === 1) {
|
||||
this.count = 60;
|
||||
this.sending = false;
|
||||
this.sendTime = '获取验证码'
|
||||
} else {
|
||||
this.count = count - 1;
|
||||
this.sending = true;
|
||||
this.sendTime = count - 1 + '秒后重新获取';
|
||||
setTimeout(this.countDown.bind(this), 1000);
|
||||
}
|
||||
},
|
||||
sendMsg() {
|
||||
const {
|
||||
mobile
|
||||
} = this;
|
||||
if (!mobile) {
|
||||
this.$queue.showToast("请输入手机号");
|
||||
} else if (mobile.length !== 11) {
|
||||
this.$queue.showToast("请输入正确的手机号");
|
||||
} else {
|
||||
this.$queue.showLoading("正在发送验证码...");
|
||||
this.$Request.getT('/app/Login/sendMsg/' + mobile + '/gzg').then(res => {
|
||||
if (res.code === 0) {
|
||||
this.sending = true;
|
||||
this.$queue.showToast('验证码发送成功请注意查收');
|
||||
this.countDown();
|
||||
uni.hideLoading();
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '短信发送失败',
|
||||
content: res.msg ? res.msg : '请一分钟后再获取验证码'
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
toLogin() {
|
||||
const {
|
||||
mobile,
|
||||
code
|
||||
} = this;
|
||||
let userId = this.$queue.getData("userId");
|
||||
if (!mobile) {
|
||||
this.$queue.showToast("请输入手机号");
|
||||
} else if (mobile.length !== 11) {
|
||||
this.$queue.showToast("请输入正确的手机号");
|
||||
} else if (!code) {
|
||||
this.$queue.showToast("请输入验证码");
|
||||
} else {
|
||||
this.$queue.showLoading("正在绑定中...");
|
||||
let openId = this.$queue.getData('openid') ? this.$queue.getData('openid') : '';
|
||||
let openidnickname = this.$queue.getData('openidnickname') ? this.$queue.getData('openidnickname') : '';
|
||||
let openidheadimgurl = this.$queue.getData('openidheadimgurl') ? this.$queue.getData('openidheadimgurl') : '';
|
||||
let invitation = this.$queue.getData('inviterCode') ? this.$queue.getData('inviterCode') : '';
|
||||
this.$Request.post(`/app/Login/registerCode`, {
|
||||
phone: mobile,
|
||||
openId: openId,
|
||||
inviterCode: invitation,
|
||||
avatar: openidheadimgurl,
|
||||
userName: openidnickname,
|
||||
msg: code
|
||||
}).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.$queue.setData("token", res.token);
|
||||
this.$queue.setData('userId', res.user.userId);
|
||||
this.$queue.setData('userName', res.user.userName);
|
||||
this.$queue.setData('phone', res.user.phone);
|
||||
this.$queue.setData('avatar', res.user.avatar ? res.user.avatar :
|
||||
'../../static/logo.png');
|
||||
this.$queue.showToast('绑定成功');
|
||||
setTimeout(function() {
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
})
|
||||
}, 1000)
|
||||
} else {
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '绑定失败',
|
||||
content: res.msg,
|
||||
});
|
||||
}
|
||||
uni.hideLoading();
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
.send-msg {
|
||||
color: #096f4b;
|
||||
height: 30px;
|
||||
font-size: 29rpx;
|
||||
line-height: 30px;
|
||||
}
|
||||
uni-button:after{
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
.container {
|
||||
top: 0;
|
||||
padding-top: 32upx;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: #ffffff;
|
||||
}
|
||||
.cu-form-group{
|
||||
background-color: #f7f7f7;
|
||||
}
|
||||
.cu-form-group .title{
|
||||
font-size: 29rpx;
|
||||
color: #333;
|
||||
}
|
||||
.cu-form-group uni-input{
|
||||
font-size: 29rpx;
|
||||
color: #999999;
|
||||
}
|
||||
.confirm-btn {
|
||||
width: 600upx;
|
||||
height: 80upx;
|
||||
line-height: 80upx;
|
||||
border-radius: 60upx;
|
||||
margin-top: 32upx;
|
||||
background: linear-gradient(to right, #019c88, #31c194);
|
||||
color: #fff;
|
||||
font-size: 30upx;
|
||||
|
||||
&:after {
|
||||
border-radius: 60px;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,93 @@
|
|||
.content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content:center;
|
||||
/* margin-top: 128upx; */
|
||||
}
|
||||
|
||||
/* 头部 logo */
|
||||
.header {
|
||||
text-align: center;
|
||||
|
||||
width:161upx;
|
||||
height:161upx;
|
||||
box-shadow:0upx 0upx 60upx 0upx rgba(0,0,0,0.1);
|
||||
border-radius:50%;
|
||||
background: -moz-linear-gradient(left, #F15B6C, #e10a07 100%);
|
||||
background: -webkit-gradient(linear, left top, left right, color-stop(0, #F15B6C), color-stop(100%, #e10a07));
|
||||
background: -webkit-linear-gradient(left, #F15B6C 0, #e10a07 100%);
|
||||
background: -o-linear-gradient(left, #F15B6C 0, #e10a07 100%);
|
||||
background: -ms-linear-gradient(left, #F15B6C 0, #e10a07 100%);
|
||||
background: linear-gradient(to left, #F15B6C 0, #e10a07 100%);
|
||||
margin-top: 180upx;
|
||||
margin-bottom: 72upx;
|
||||
font-size: 60upx;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
padding-top: 32upx;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.header image{
|
||||
width:161upx;
|
||||
height:161upx;
|
||||
border-radius:50%;
|
||||
}
|
||||
|
||||
/* 主体 */
|
||||
.main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding-left: 70upx;
|
||||
padding-right: 70upx;
|
||||
}
|
||||
.tips {
|
||||
color: #999999;
|
||||
font-size: 28upx;
|
||||
margin-top: 64upx;
|
||||
margin-left: 48upx;
|
||||
}
|
||||
|
||||
/* 其他登录方式 */
|
||||
.other_login{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-top: 256upx;
|
||||
text-align: center;
|
||||
}
|
||||
.login_icon{
|
||||
border: none;
|
||||
font-size: 64upx;
|
||||
margin: 0 64upx 0 64upx;
|
||||
color: rgba(0,0,0,0.7)
|
||||
}
|
||||
.wechat_color{
|
||||
color: #83DC42;
|
||||
}
|
||||
.weibo_color{
|
||||
color: #F9221D;
|
||||
}
|
||||
.github_color{
|
||||
color: #24292E;
|
||||
}
|
||||
|
||||
/* 底部 */
|
||||
.footer{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 28upx;
|
||||
margin-top: 64upx;
|
||||
color: rgba(0,0,0,0.7);
|
||||
text-align: center;
|
||||
height: 40upx;
|
||||
line-height: 40upx;
|
||||
}
|
||||
.footer text{
|
||||
font-size: 24upx;
|
||||
margin-left: 15upx;
|
||||
margin-right: 15upx;
|
||||
}
|
|
@ -0,0 +1,201 @@
|
|||
<template>
|
||||
<view class="container">
|
||||
<view class="wrapper">
|
||||
<view class="input-content">
|
||||
<view class="cu-form-group" style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<view class="title text-black">手机号</view>
|
||||
<input type="number" :value="phone" placeholder="请输入手机号" maxlength="11" data-key="phone" @input="inputChange" />
|
||||
</view>
|
||||
<view class="cu-form-group" style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<text class="title text-black">验证码</text>
|
||||
<input type="number" :value="code" placeholder="请输入验证码" maxlength="6" data-key="code" @input="inputChange"
|
||||
@confirm="toLogin" />
|
||||
<button class="send-msg" @click="sendMsg" :disabled="sending">{{sendTime}}</button>
|
||||
</view>
|
||||
<view class="cu-form-group" style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<text class="title text-black">设置密码</text>
|
||||
<input type="password" :value="password" placeholder="请设置新密码" placeholder-class="input-empty" maxlength="20"
|
||||
minlength="6" data-key="password" @input="inputChange" @confirm="toLogin" />
|
||||
</view>
|
||||
</view>
|
||||
<button class="confirm-btn" @click="toLogin">立即找回</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
code: '',
|
||||
phone: '',
|
||||
password: '',
|
||||
sending: false,
|
||||
sendTime: '获取验证码',
|
||||
count: 60,
|
||||
logining: false
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
sendMsg() {
|
||||
const {
|
||||
phone
|
||||
} = this;
|
||||
if (!phone) {
|
||||
this.$queue.showToast("请输入手机号");
|
||||
} else if (phone.length !== 11) {
|
||||
this.$queue.showToast("请输入正确的手机号");
|
||||
} else {
|
||||
this.$queue.showLoading("正在发送验证码...");
|
||||
this.$Request.getT("/app/Login/sendMsg/" + phone + "/forget").then(res => {
|
||||
if (res.code === 0) {
|
||||
this.sending = true;
|
||||
this.$queue.showToast('验证码发送成功请注意查收');
|
||||
this.countDown();
|
||||
uni.hideLoading();
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '短信发送失败',
|
||||
content: res.msg ? res.msg : '请一分钟后再获取验证码'
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
countDown() {
|
||||
const {
|
||||
count
|
||||
} = this;
|
||||
if (count === 1) {
|
||||
this.count = 60;
|
||||
this.sending = false;
|
||||
this.sendTime = '获取验证码'
|
||||
} else {
|
||||
this.count = count - 1;
|
||||
this.sending = true;
|
||||
this.sendTime = count - 1 + '秒后重新获取';
|
||||
setTimeout(this.countDown.bind(this), 1000);
|
||||
}
|
||||
},
|
||||
inputChange(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
navBack() {
|
||||
uni.navigateBack();
|
||||
},
|
||||
|
||||
|
||||
navTo(url) {
|
||||
uni.navigateTo({
|
||||
url
|
||||
})
|
||||
},
|
||||
toLogin() {
|
||||
const {
|
||||
phone,
|
||||
password,
|
||||
code
|
||||
} = this;
|
||||
if (!phone) {
|
||||
this.$queue.showToast("请输入手机号");
|
||||
} else if (!password) {
|
||||
this.$queue.showToast("请设置密码");
|
||||
} else if (password.length < 6) {
|
||||
this.$queue.showToast("密码位数必须大于六位");
|
||||
} else {
|
||||
this.logining = true;
|
||||
this.$queue.showLoading("正在修改密码中...");
|
||||
this.$Request.post("/app/Login/forgetPwd", {
|
||||
pwd: password,
|
||||
phone: phone,
|
||||
msg: code
|
||||
}).then(res => {
|
||||
uni.hideLoading();
|
||||
if (res.code === 0) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/publicTwo/loginphone'
|
||||
});
|
||||
} else {
|
||||
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '密码找回失败',
|
||||
content: res.msg,
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
page {
|
||||
background: #FFFFFF !important;
|
||||
}
|
||||
|
||||
.send-msg {
|
||||
color: #019c88;
|
||||
height: 30px;
|
||||
font-size: 29rpx;
|
||||
line-height: 30px;
|
||||
padding: 0 !important;
|
||||
}
|
||||
uni-button:after{
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding-top: 32upx;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: #FFFFFF;
|
||||
}
|
||||
.cu-form-group{
|
||||
background-color: #f7f7f7;
|
||||
}
|
||||
.cu-form-group .title{
|
||||
font-size: 29rpx;
|
||||
color: #333;
|
||||
}
|
||||
.cu-form-group uni-input{
|
||||
font-size: 29rpx;
|
||||
color: #999999;
|
||||
}
|
||||
.wrapper {
|
||||
position: relative;
|
||||
z-index: 90;
|
||||
background: #FFFFFF;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
|
||||
.input-content {
|
||||
padding: 32upx 80upx;
|
||||
}
|
||||
|
||||
|
||||
.confirm-btn {
|
||||
width: 600upx;
|
||||
height: 80upx;
|
||||
line-height: 80upx;
|
||||
border-radius: 60upx;
|
||||
margin-top: 32upx;
|
||||
background: linear-gradient(to right, #019c88, #2ebf93);
|
||||
color: #fff;
|
||||
font-size: 30upx;
|
||||
|
||||
&:after {
|
||||
border-radius: 60px;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
|
@ -0,0 +1,735 @@
|
|||
<template>
|
||||
<view class="container">
|
||||
<!-- <image @click="navBack" src="../../static/images/index/close.png" style="width: 32upx;height: 32upx;margin-left: 46upx;"></image> -->
|
||||
<!-- 小程序状态下登录 -->
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<view class="mp_wxBox">
|
||||
<view>
|
||||
<view class="headers">
|
||||
<image src="../../static/logo.png" style="border-radius: 50%;"></image>
|
||||
</view>
|
||||
<view class="content">
|
||||
<view>申请获取以下权限</view>
|
||||
<text>获得你的公开信息(昵称,头像、地区等)</text>
|
||||
</view>
|
||||
<button v-show="weixinPhone" style="background: #096f4b;color: #FFFFFF;" class="bottom"
|
||||
open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">
|
||||
授权手机号
|
||||
</button>
|
||||
<button v-show="!weixinPhone" style="background: #096f4b;color: #FFFFFF;" class='bottom'
|
||||
bindtap="getUserProfile" @tap="wxGetUserInfo">
|
||||
授权登录
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
<view style="text-align: center;">
|
||||
<view class="footer">
|
||||
<image v-if="showAgree" @tap="isShowAgree"
|
||||
src="../../static/duihao.png"
|
||||
style="width: 30upx;height: 30upx;"></image>
|
||||
<image v-else @tap="isShowAgree"
|
||||
src="https://api.shengqianxiong.com.cn/img/20201112/1e9102fc891f4d86a13c7b2ba6921cba.png"
|
||||
style="width: 30upx;height: 30upx;"></image>
|
||||
<text style="margin-left: 10upx;margin-right: 0;">同意</text>
|
||||
<!-- 协议地址 -->
|
||||
<navigator url="/my/setting/mimi" open-type="navigate">《隐私政策》</navigator>
|
||||
和
|
||||
<navigator url="/my/setting/xieyi" open-type="navigate">《用户协议》</navigator>
|
||||
</view>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
<!-- #ifndef MP-WEIXIN -->
|
||||
<!-- <view style="font-size: 44upx;margin: 32upx;color: #333333;">欢迎登录盛安到家</view> -->
|
||||
<view style="text-align: center;">
|
||||
<image style="width: 200upx;height: 200upx;margin-top: 200upx;"
|
||||
src="../../static/logo.png"></image>
|
||||
<view style="font-size: 34upx;margin: 30upx;color: #333333;font-weight: 500;">盛安到家专业 O2O服务平台</view>
|
||||
<!-- #ifdef APP-PLUS -->
|
||||
<button v-if="weixinLogin" class="confirm-btn" @click="weixinLo">微信登录</button>
|
||||
<button v-if="weixinLogin" class='confirm-btn-weixin' @click="register">手机号登录</button>
|
||||
<!-- <button v-if="!weixinLogin" class='confirm-btn' @click="register">手机号登录</button> -->
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef H5 -->
|
||||
<button class='confirm-btn' v-if="isopen" @click="bingwx">微信一键登录</button>
|
||||
<button v-if="!isopen" class='confirm-btn' @click="register">登录</button>
|
||||
<!-- <button class='confirm-btn' @click="register">登录</button> -->
|
||||
<!-- #endif -->
|
||||
<view v-if="!isopen"
|
||||
style="width: 100%;text-align: center;margin-top: 20upx; font-size: 12px;color: #019c88;text-decoration:underline;"
|
||||
@tap="msgRegister">验证码登录</view>
|
||||
<!-- 底部信息 -->
|
||||
<view class="footer">
|
||||
<image v-if="showAgree" @tap="isShowAgree"
|
||||
src="../../static/duihao.png"
|
||||
style="width: 30upx;height: 30upx;"></image>
|
||||
<image v-else @tap="isShowAgree"
|
||||
src="https://api.shengqianxiong.com.cn/img/20201112/1e9102fc891f4d86a13c7b2ba6921cba.png"
|
||||
style="width: 30upx;height: 30upx;"></image>
|
||||
<text style="margin-left: 10upx;margin-right: 0;">同意</text>
|
||||
<!-- 协议地址 -->
|
||||
<navigator url="/my/setting/mimi" open-type="navigate" style="color: #019c88;">《隐私政策》</navigator>
|
||||
和
|
||||
<navigator url="/my/setting/xieyi" open-type="navigate" style="color: #019c88;">《用户协议》</navigator>
|
||||
</view>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
mobile: '',
|
||||
code: '',
|
||||
showAgree: false, //协议是否选择
|
||||
isopen: false,
|
||||
weixinLogin: false,
|
||||
sending: false,
|
||||
sendTime: '获取验证码',
|
||||
count: 60,
|
||||
weixinPhone: false,
|
||||
sendDataList: {},
|
||||
sessionkey: '',
|
||||
phoneNum: false,
|
||||
};
|
||||
},
|
||||
onLoad(e) {
|
||||
if (e.inviterCode) {
|
||||
this.$queue.setData('inviterCode', e.inviterCode);
|
||||
}
|
||||
if (e.bindingConsortiaId) {
|
||||
this.$queue.setData('bindingConsortiaId', e.bindingConsortiaId);
|
||||
}
|
||||
this.$Request.get('/app/common/type/237').then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.data && res.data.value && res.data.value == '是') {
|
||||
// #ifdef H5
|
||||
let ua = navigator.userAgent.toLowerCase();
|
||||
if (ua.indexOf('micromessenger') !== -1) {
|
||||
this.isopen = true;
|
||||
} else {
|
||||
this.isopen = false;
|
||||
}
|
||||
// #endif
|
||||
}
|
||||
}
|
||||
});
|
||||
//微信登录开启
|
||||
this.$Request.getT('/app/common/type/53').then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.data && res.data.value && res.data.value == '是') {
|
||||
// this.weixinLogin = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
this.$Request.getT('/app/common/type/188').then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.data && res.data.value && res.data.value == '是') {
|
||||
this.phoneNum = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
// #ifdef H5
|
||||
this.selbindwx();
|
||||
// #endif
|
||||
},
|
||||
methods: {
|
||||
isShowAgree() {
|
||||
//是否选择协议
|
||||
this.showAgree = !this.showAgree;
|
||||
},
|
||||
selbindwx() {
|
||||
let ua = navigator.userAgent.toLowerCase();
|
||||
if (ua.indexOf('micromessenger') !== -1) {
|
||||
let openid = uni.getStorageSync('openid');
|
||||
let userId = uni.getStorageSync('userId');
|
||||
let that = this;
|
||||
if (window.location.href.indexOf('?code=') !== -1 || window.location.href.indexOf('&code=') !==
|
||||
-1) {
|
||||
let code;
|
||||
if (window.location.href.indexOf('?code=') !== -1) {
|
||||
code = window.location.href.split('?code=')[1].split('&')[0];
|
||||
} else {
|
||||
code = window.location.href.split('&code=')[1].split('&')[0];
|
||||
}
|
||||
this.$Request.get('/app/Login/getOpenId?code=' + code).then(ret => {
|
||||
uni.setStorageSync('openid', ret.data.openid)
|
||||
uni.setStorageSync('openidheadimgurl', ret.data.headimgurl)
|
||||
uni.setStorageSync('openidnickname', ret.data.nickname)
|
||||
|
||||
this.$Request.get('/app/Login/openid/login?openId=' + ret.data.openid).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$queue.setData("phone", res.user.phone);
|
||||
this.$queue.setData("userId", res.user.userId);
|
||||
this.$queue.setData("token", res.token);
|
||||
this.$queue.setData("userName", res.user.userName);
|
||||
this.$queue.setData("avatar", res.user.avatar);
|
||||
this.$queue.setData("invitationCode", res.user.invitationCode);
|
||||
this.$queue.setData("inviterCode", res.user.inviterCode);
|
||||
this.$queue.setData("bindingConsortiaId", res.user.bindingConsortiaId);
|
||||
let data = {
|
||||
userId: res.user.userId,
|
||||
focusedUserId: '0',
|
||||
// userName:this.order.userName
|
||||
}
|
||||
// app/chat/insertChatConversation
|
||||
this.$Request.postJson('/app/chat/insertChatConversation', data).then(res => {
|
||||
if (res.data) {
|
||||
let id = this.ordersId == res.data.userId ? res.data.focusedUserId : this.ordersId
|
||||
uni.navigateTo({
|
||||
url: '/pages/msg/im?chatConversationId=' + res.data.chatConversationId +
|
||||
'&byUserId=' + res.data.userId
|
||||
})
|
||||
}
|
||||
})
|
||||
// uni.switchTab({
|
||||
// url: '/pages/index/index'
|
||||
// })
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/publicTwo/bind'
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
bingwx() {
|
||||
if (this.showAgree == false) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
position: 'bottom',
|
||||
title: '请同意《用户协议》和《隐私政策》'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
let ua = navigator.userAgent.toLowerCase();
|
||||
if (ua.indexOf('micromessenger') !== -1) {
|
||||
let openid = uni.getStorageSync('openid');
|
||||
let userId = uni.getStorageSync('userId');
|
||||
let that = this;
|
||||
if (!openid) {
|
||||
if (window.location.href.indexOf('?code=') !== -1 || window.location.href.indexOf('&code=') !==
|
||||
-1) {
|
||||
let code;
|
||||
if (window.location.href.indexOf('?code=') !== -1) {
|
||||
code = window.location.href.split('?code=')[1].split('&')[0];
|
||||
} else {
|
||||
code = window.location.href.split('&code=')[1].split('&')[0];
|
||||
}
|
||||
this.$Request.get('/app/Login/getOpenId?code=' + code).then(ret => {
|
||||
uni.setStorageSync('openid', ret.data.openid)
|
||||
uni.setStorageSync('openidheadimgurl', ret.data.headimgurl)
|
||||
uni.setStorageSync('openidnickname', ret.data.nickname)
|
||||
|
||||
this.$Request.get('/app/Login/openid/login?openId=' + ret.data.openid).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$queue.setData("phone", res.user.phone);
|
||||
this.$queue.setData("userId", res.user.userId);
|
||||
this.$queue.setData("token", res.token);
|
||||
this.$queue.setData("userName", res.user.userName);
|
||||
this.$queue.setData("avatar", res.user.avatar);
|
||||
this.$queue.setData("invitationCode", res.user.invitationCode);
|
||||
this.$queue.setData("inviterCode", res.user.inviterCode);
|
||||
this.$queue.setData("bindingConsortiaId", res.user.bindingConsortiaId);
|
||||
let data = {
|
||||
userId: res.user.userId,
|
||||
focusedUserId: '0',
|
||||
}
|
||||
this.$Request.postJson('/app/chat/insertChatConversation', data).then(res => {
|
||||
if (res.data) {
|
||||
let id = this.ordersId == res.data.userId ? res.data.focusedUserId : this.ordersId
|
||||
uni.navigateTo({
|
||||
url: '/pages/msg/im?chatConversationId=' + res.data.chatConversationId +
|
||||
'&byUserId=' + res.data.userId
|
||||
})
|
||||
}
|
||||
})
|
||||
// uni.switchTab({
|
||||
// url: '/pages/index/index'
|
||||
// })
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/publicTwo/bind'
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
} else {
|
||||
window.location.href =
|
||||
'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' +
|
||||
that.$queue.getWxAppid() +
|
||||
'&redirect_uri=' +
|
||||
window.location.href.split('#')[0] +
|
||||
'&response_type=code&scope=snsapi_userinfo#wechat_redirect';
|
||||
}
|
||||
} else {
|
||||
this.$Request.get('/app/Login/openid/login?openId=' + openid).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$queue.setData("phone", res.user.phone);
|
||||
this.$queue.setData("userId", res.user.userId);
|
||||
this.$queue.setData("token", res.token);
|
||||
this.$queue.setData("userName", res.user.userName);
|
||||
this.$queue.setData("avatar", res.user.avatar);
|
||||
this.$queue.setData("invitationCode", res.user.invitationCode);
|
||||
this.$queue.setData("inviterCode", res.user.inviterCode);
|
||||
let data = {
|
||||
userId: res.user.userId,
|
||||
focusedUserId: '0',
|
||||
}
|
||||
this.$Request.postJson('/app/chat/insertChatConversation', data).then(res => {
|
||||
if (res.data) {
|
||||
let id = this.ordersId == res.data.userId ? res.data.focusedUserId : this.ordersId
|
||||
uni.navigateTo({
|
||||
url: '/pages/msg/im?chatConversationId=' + res.data.chatConversationId +
|
||||
'&byUserId=' + res.data.userId
|
||||
})
|
||||
}
|
||||
})
|
||||
// uni.switchTab({
|
||||
// url: '/pages/index/index'
|
||||
// })
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/publicTwo/bind'
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
wxGetUserInfo(e) {
|
||||
if (this.showAgree == false) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
position: 'bottom',
|
||||
title: '请同意《用户协议》和《隐私政策》'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
wx.getUserProfile({
|
||||
desc: '业务需要',
|
||||
success: infoRes => {
|
||||
console.log("infoRes.encryptedData__________:" + JSON.stringify(infoRes.userInfo))
|
||||
let nickName = infoRes.userInfo.nickName; //昵称
|
||||
let avatarUrl = infoRes.userInfo.avatarUrl; //头像
|
||||
let sex = infoRes.userInfo.gender; //头像
|
||||
try {
|
||||
this.$queue.showLoading('正在登录中...');
|
||||
this.login(nickName, avatarUrl, sex);
|
||||
} catch (e) {}
|
||||
}
|
||||
})
|
||||
},
|
||||
//登录
|
||||
login(nickName, avatarUrl, sex) {
|
||||
if (this.showAgree == false) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
position: 'bottom',
|
||||
title: '请同意《用户协议》和《隐私政策》'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
let that = this;
|
||||
// 1.wx获取登录用户code
|
||||
uni.login({
|
||||
provider: 'weixin',
|
||||
success: function(loginRes) {
|
||||
console.log(loginRes, '************')
|
||||
let data = {
|
||||
code: loginRes.code,
|
||||
}
|
||||
that.$Request.get('/app/Login/wxLogin', data).then(res => {
|
||||
if (res.code == 0) {
|
||||
uni.hideLoading()
|
||||
uni.setStorageSync('openId', res.data.open_id)
|
||||
uni.setStorageSync('unionId', res.data.unionId)
|
||||
that.sessionkey = res.data.session_key;
|
||||
|
||||
let inviterCode = '';
|
||||
if (uni.getStorageSync('inviterCode')) {
|
||||
inviterCode = uni.getStorageSync('inviterCode')
|
||||
}
|
||||
let bindingConsortiaId = '';
|
||||
if (uni.getStorageSync('bindingConsortiaId')) {
|
||||
bindingConsortiaId = uni.getStorageSync('bindingConsortiaId')
|
||||
}
|
||||
let sendData = {
|
||||
openId: uni.getStorageSync('openId'),
|
||||
unionId: uni.getStorageSync('unionId'),
|
||||
userName: nickName,
|
||||
avatar: avatarUrl,
|
||||
sex: sex, //性别
|
||||
inviterCode: inviterCode, //别人登录进来携带你的邀请码
|
||||
bindingConsortiaId: bindingConsortiaId,
|
||||
};
|
||||
that.sendDataList = sendData;
|
||||
that.flag = res.data.flag;
|
||||
// 第一次登录获取手机号
|
||||
console.log(that.phoneNum)
|
||||
if (that.flag == '1' && that.phoneNum) {
|
||||
that.weixinPhone = true;
|
||||
} else {
|
||||
that.getWeixinInfo(sendData);
|
||||
}
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: res.msg,
|
||||
duration: 2000
|
||||
});
|
||||
console.log(res, '失败')
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
//小程序微信登录后获取手机号
|
||||
getPhoneNumber: function(e) {
|
||||
if (e.detail.errMsg == 'getPhoneNumber:fail user deny') {
|
||||
console.log('用户拒绝提供手机号');
|
||||
} else {
|
||||
console.log('用户同意提供手机号');
|
||||
console.log(e)
|
||||
this.setPhoneByInsert(e.detail.encryptedData, e.detail.iv);
|
||||
}
|
||||
},
|
||||
//小程序微信登录后获取手机号
|
||||
setPhoneByInsert(decryptData, iv) {
|
||||
let data = {
|
||||
decryptData: decryptData,
|
||||
key: this.sessionkey,
|
||||
iv: iv
|
||||
};
|
||||
|
||||
this.$Request.postJson('/app/Login/selectPhone', data).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.phone = res.data.phoneNumber;
|
||||
this.getWeixinInfo(this.sendDataList);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
//获取个人信息
|
||||
getWeixinInfo(sendData) {
|
||||
let that = this;
|
||||
uni.showLoading({
|
||||
title: '登录中...'
|
||||
});
|
||||
let postData = {
|
||||
openId: sendData.openId, //小程序openId
|
||||
unionId: sendData.unionId, //unionId
|
||||
userName: sendData.userName, //微信名称
|
||||
avatar: sendData.avatar, //头像
|
||||
sex: sendData.sex, //性别
|
||||
phone: that.phone,
|
||||
inviterCode: sendData.inviterCode,
|
||||
bindingConsortiaId: sendData.bindingConsortiaId,
|
||||
};
|
||||
that.$Request.postJson('/app/Login/insertWxUser', postData).then(res => {
|
||||
uni.hideLoading();
|
||||
if (res.code == 0) {
|
||||
uni.setStorageSync('token', res.token)
|
||||
uni.setStorageSync('userName', res.user.userName)
|
||||
uni.setStorageSync('avatar', res.user.avatar)
|
||||
uni.setStorageSync('phone', res.user.phone)
|
||||
uni.setStorageSync('invitationCode', res.user.invitationCode)
|
||||
uni.setStorageSync('sex', res.user.sex)
|
||||
uni.setStorageSync('userId', res.user.userId)
|
||||
uni.setStorageSync('openId', res.user.openId)
|
||||
|
||||
this.$Request.get("/app/UserVip/isUserVip").then(res => {
|
||||
if (res.code == 0 && res.data && res.data.isVip == 2) {
|
||||
uni.setStorageSync('isVIP', true)
|
||||
} else {
|
||||
uni.setStorageSync('isVIP', false)
|
||||
}
|
||||
});
|
||||
uni.navigateBack();
|
||||
} else {
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '登录失败',
|
||||
content: res.msg,
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
weixinLo() {
|
||||
let that = this;
|
||||
uni.login({
|
||||
provider: 'weixin',
|
||||
success: function(loginRes) {
|
||||
that.$queue.showLoading('正在登录中...');
|
||||
console.error(loginRes.authResult);
|
||||
that.$queue.setData('weixinToken', loginRes.authResult.access_token);
|
||||
that.$queue.setData('unionid', loginRes.authResult.unionid);
|
||||
that.$queue.setData('weixinOpenid', loginRes.authResult.openid);
|
||||
that.$Request.postJson('/app/login/loginApp', {
|
||||
token: loginRes.authResult.access_token,
|
||||
unionid: loginRes.authResult.unionid,
|
||||
openid: loginRes.authResult.openid
|
||||
}).then(res => {
|
||||
console.log(JSON.stringify(res))
|
||||
if (res.code === 0) {
|
||||
if (uni.getSystemInfoSync().platform == "android") {
|
||||
let clientid = plus.push.getClientInfo().clientid;
|
||||
that.$Request.postT('/app/login/updateClientId?clientId=' +
|
||||
clientid + '&userId=' + res.userId).then(res => {
|
||||
|
||||
});
|
||||
}
|
||||
that.$queue.setData("token", res.uuid);
|
||||
that.$queue.setData("userId", res.userId);
|
||||
that.getUserInfo(res.userId, res.token);
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.navigateTo({
|
||||
url: '/pages/publicTwo/wxmobile'
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
forget() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/publicTwo/pwd'
|
||||
});
|
||||
},
|
||||
msgRegister() {
|
||||
if (this.showAgree == false) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
position: 'bottom',
|
||||
title: '请同意《用户协议》和《隐私政策》'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/publicTwo/loginmsg'
|
||||
});
|
||||
},
|
||||
register() {
|
||||
if (this.showAgree == false) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
position: 'bottom',
|
||||
title: '请同意《用户协议》和《隐私政策》'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/publicTwo/loginphone'
|
||||
});
|
||||
},
|
||||
inputChange(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
navBack() {
|
||||
uni.navigateBack();
|
||||
},
|
||||
|
||||
getUserInfo(userId, token) {
|
||||
this.$Request.postJson('/app/selectUserById?userId=' + userId).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.$queue.setData('token', res.data.uuid);
|
||||
this.$queue.setData('image_url', res.data.imageUrl ? res.data.imageUrl :
|
||||
'/static/img/common/logo.jpg');
|
||||
this.$queue.setData('inviterCode', res.data.inviterCode);
|
||||
this.$queue.setData('invitationCode', res.data.invitationCode);
|
||||
this.$queue.setData('bindingConsortiaId', res.data.bindingConsortiaId);
|
||||
this.$queue.setData('grade', res.data.grade);
|
||||
this.$queue.setData('mobile', res.data.mobile);
|
||||
this.$queue.setData('isInvitation', res.data.isInvitation);
|
||||
this.$queue.setData('nickName', res.data.nickName ? res.data.nickName : res.data.phone);
|
||||
let data = {
|
||||
userId: userId,
|
||||
focusedUserId: '0',
|
||||
}
|
||||
this.$Request.postJson('/app/chat/insertChatConversation', data).then(res => {
|
||||
if (res.data) {
|
||||
let id = this.ordersId == res.data.userId ? res.data.focusedUserId : this.ordersId
|
||||
uni.navigateTo({
|
||||
url: '/pages/msg/im?chatConversationId=' + res.data.chatConversationId +
|
||||
'&byUserId=' + res.data.userId
|
||||
})
|
||||
}
|
||||
})
|
||||
this.$queue.setData('gender', parseInt(res.data.gender));
|
||||
// uni.switchTab({
|
||||
// url: '/pages/index/index'
|
||||
// });
|
||||
// } else {
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '登录失败',
|
||||
content: res.msg
|
||||
});
|
||||
this.$queue.logout();
|
||||
}
|
||||
uni.hideLoading();
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
page {
|
||||
height: 100%;
|
||||
background: #FFFFFF !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.container {
|
||||
top: 0;
|
||||
padding-top: 50px;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: #fcfcfc !important;
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.confirm-btn-weixin {
|
||||
width: 200px;
|
||||
height: 80upx;
|
||||
line-height: 80upx;
|
||||
border-radius: 60px;
|
||||
margin-top: 100upx;
|
||||
background: linear-gradient(to right, #019c88, #31c194);
|
||||
color: #fff;
|
||||
font-size: 30upx;
|
||||
|
||||
&:after {
|
||||
border-radius: 60px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.headers {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.headers>image {
|
||||
width: 400upx;
|
||||
height: 400upx;
|
||||
}
|
||||
|
||||
|
||||
.footer {
|
||||
margin-top: 17px;
|
||||
font-size: 12px;
|
||||
color: #666666;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
align-items: inherit;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
bottom: 32px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
page {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.send-msg {
|
||||
border-radius: 30px;
|
||||
color: black;
|
||||
background: white;
|
||||
height: 30px;
|
||||
font-size: 14px;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.container {
|
||||
top: 0;
|
||||
padding-top: 32upx;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: #f3f3f3;
|
||||
color: #FFF;
|
||||
|
||||
.mp_wxBox {
|
||||
.headers {
|
||||
margin: 35% auto 50rpx;
|
||||
text-align: center;
|
||||
border-radius: 60rpx;
|
||||
width: 650rpx;
|
||||
height: 300rpx;
|
||||
line-height: 450rpx;
|
||||
|
||||
image {
|
||||
width: 300rpx;
|
||||
height: 300rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
text {
|
||||
display: block;
|
||||
color: #9d9d9d;
|
||||
margin-top: 40rpx;
|
||||
}
|
||||
|
||||
.bottom {
|
||||
line-height: 80upx;
|
||||
border-radius: 80upx;
|
||||
margin: 70rpx 50rpx;
|
||||
height: 80upx;
|
||||
font-size: 35rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
position: relative;
|
||||
z-index: 90;
|
||||
background: #fff;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.input-content {
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.confirm-btn {
|
||||
width: 500rpx;
|
||||
height: 80upx;
|
||||
line-height: 80upx;
|
||||
border-radius: 10px;
|
||||
margin-top: 300rpx;
|
||||
border-radius: 60px;
|
||||
font-size: 32rpx;
|
||||
background: linear-gradient(to right, #019c88, #31c194);
|
||||
color: #fff;
|
||||
// font-size: $font-lg;
|
||||
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,246 @@
|
|||
<template>
|
||||
<view class="container">
|
||||
<!-- <view class="cu-form-group" style="margin: 30upx;border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<view class="title">手机号</view>
|
||||
<input type="number" :value="mobile" placeholder="请输入手机号" maxlength="11" data-key="mobile" @input="inputChange" />
|
||||
</view>
|
||||
<view class="cu-form-group" style="margin: 30upx;border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<text class="title">验证码</text>
|
||||
<input type="number" :value="code" placeholder="请输入验证码" maxlength="6" data-key="code" @input="inputChange"
|
||||
@confirm="toLogin" />
|
||||
<button class="send-msg" @click="sendMsg" :disabled="sending">{{ sendTime }}</button>
|
||||
</view> -->
|
||||
|
||||
<view class="input-content">
|
||||
<!-- <view class="" style="font-size: 40upx;margin: 30upx 0 50upx 0;font-weight: bold;">验证码登录</view> -->
|
||||
<view class="cu-form-group"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<view class="title text-black">手机号</view>
|
||||
<input type="number" :value="mobile" placeholder="请输入手机号" maxlength="11" data-key="mobile"
|
||||
@input="inputChange" />
|
||||
</view>
|
||||
<view class="cu-form-group" style="border: 2upx solid whitesmoke;border-radius: 30px">
|
||||
<view class="title text-black">验证码</view>
|
||||
<input type="number" placeholder="请输入验证码" maxlength="6" :value="code" data-key="code"
|
||||
@input="inputChange" @confirm="toLogin" />
|
||||
<button class="send-msg" @click="sendMsg" :disabled="sending">{{ sendTime }}</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<button class="confirm-btn" @click="toLogin" :disabled="logining">登录</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import listCell from '@/components/com-input';
|
||||
export default {
|
||||
components: {
|
||||
listCell
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
mobile: '',
|
||||
code: '',
|
||||
logining: false,
|
||||
sending: false,
|
||||
sendTime: '获取验证码',
|
||||
count: 60,
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
inputChange(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
navBack() {
|
||||
uni.navigateBack();
|
||||
},
|
||||
countDown() {
|
||||
const {
|
||||
count
|
||||
} = this;
|
||||
if (count === 1) {
|
||||
this.count = 60;
|
||||
this.sending = false;
|
||||
this.sendTime = '获取验证码'
|
||||
} else {
|
||||
this.count = count - 1;
|
||||
this.sending = true;
|
||||
this.sendTime = count - 1 + '秒后重新获取';
|
||||
setTimeout(this.countDown.bind(this), 1000);
|
||||
}
|
||||
},
|
||||
sendMsg() {
|
||||
const {
|
||||
mobile
|
||||
} = this;
|
||||
if (!mobile) {
|
||||
this.$queue.showToast("请输入手机号");
|
||||
} else if (mobile.length !== 11) {
|
||||
this.$queue.showToast("请输入正确的手机号");
|
||||
} else {
|
||||
this.$queue.showLoading("正在发送验证码...");
|
||||
this.$Request.getT('/app/Login/sendMsg/' + mobile + '/gzg').then(res => {
|
||||
if (res.code === 0) {
|
||||
this.sending = true;
|
||||
this.$queue.showToast('验证码发送成功请注意查收');
|
||||
this.countDown();
|
||||
uni.hideLoading();
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '短信发送失败',
|
||||
content: res.msg ? res.msg : '请一分钟后再获取验证码'
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
toLogin() {
|
||||
const {
|
||||
mobile,
|
||||
code
|
||||
} = this;
|
||||
let userId = this.$queue.getData("userId");
|
||||
if (!mobile) {
|
||||
this.$queue.showToast("请输入手机号");
|
||||
} else if (mobile.length !== 11) {
|
||||
this.$queue.showToast("请输入正确的手机号");
|
||||
} else if (!code) {
|
||||
this.$queue.showToast("请输入验证码");
|
||||
} else {
|
||||
this.$queue.showLoading("正在登录中...");
|
||||
let openId = this.$queue.getData('openid') ? this.$queue.getData('openid') : '';
|
||||
let invitation = this.$queue.getData('inviterCode') ? this.$queue.getData('inviterCode') : '';
|
||||
this.$Request.post(`/app/Login/registerCode`, {
|
||||
phone: mobile,
|
||||
openId: openId,
|
||||
inviterCode: invitation,
|
||||
msg: code
|
||||
}).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.$queue.setData("token", res.token);
|
||||
this.$queue.setData('userId', res.user.userId);
|
||||
this.$queue.setData('userName', res.user.userName);
|
||||
this.$queue.setData('phone', res.user.phone);
|
||||
this.$queue.setData('avatar', res.user.avatar?res.user.avatar: '../../static/logo.png');
|
||||
this.$queue.showToast('登录成功');
|
||||
this.getIsVip('624')
|
||||
let data = {
|
||||
userId: res.user.userId,
|
||||
focusedUserId: '0',
|
||||
// userName:this.order.userName
|
||||
}
|
||||
// app/chat/insertChatConversation
|
||||
this.$Request.postJson('/app/chat/insertChatConversation', data).then(res => {
|
||||
if (res.data) {
|
||||
let id = this.ordersId == res.data.userId ? res.data.focusedUserId : this.ordersId
|
||||
uni.navigateTo({
|
||||
url: '/pages/msg/im?chatConversationId=' + res.data.chatConversationId +
|
||||
'&byUserId=' + res.data.userId
|
||||
})
|
||||
}
|
||||
})
|
||||
// setTimeout(function() {
|
||||
// uni.switchTab({
|
||||
// url:'/pages/index/index'
|
||||
// })
|
||||
// },1000)
|
||||
} else {
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '登录失败',
|
||||
content: res.msg,
|
||||
});
|
||||
}
|
||||
uni.hideLoading();
|
||||
});
|
||||
}
|
||||
},
|
||||
getIsVip(id) {
|
||||
var data={
|
||||
userId:id
|
||||
}
|
||||
this.$Request.get("/app/VipDetails/getVipDetailByUser",data).then(res => {
|
||||
if (res.code == 0) {
|
||||
// this.isVip = res.data
|
||||
// this.$queue.setData("isVip", res.data);
|
||||
this.$queue.setData("vipName", res.data.vipName);
|
||||
this.$queue.setData("rate", res.data.rate);
|
||||
this.$queue.setData("rate", res.data.endTime);
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
|
||||
.send-msg {
|
||||
color: #096f4b;
|
||||
height: 30px;
|
||||
font-size: 29rpx;
|
||||
line-height: 30px;
|
||||
padding: 0 !important;
|
||||
}
|
||||
uni-button:after{
|
||||
border: 0 !important;
|
||||
}
|
||||
.container {
|
||||
top: 0;
|
||||
padding-top: 32upx;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: #FFFFFF !important;
|
||||
}
|
||||
.cu-form-group{
|
||||
background-color: #f7f7f7;
|
||||
}
|
||||
.cu-form-group .title{
|
||||
font-size: 29rpx;
|
||||
color: #333;
|
||||
}
|
||||
.cu-form-group uni-input{
|
||||
font-size: 29rpx;
|
||||
color: #999999;
|
||||
}
|
||||
.wrapper {
|
||||
position: relative;
|
||||
z-index: 90;
|
||||
background: #FFFFFF;
|
||||
padding-bottom: 32upx;
|
||||
}
|
||||
|
||||
|
||||
.input-content {
|
||||
/* margin-top: 300upx; */
|
||||
/* padding-top: 300upx; */
|
||||
padding: 32upx 80upx;
|
||||
|
||||
}
|
||||
|
||||
|
||||
.confirm-btn {
|
||||
width: 600upx;
|
||||
height: 80upx;
|
||||
line-height: 80upx;
|
||||
border-radius: 60upx;
|
||||
margin-top: 32upx;
|
||||
background: linear-gradient(to right, #019c88, #31c194);
|
||||
color: #fff;
|
||||
font-size: 30upx;
|
||||
|
||||
&:after {
|
||||
border-radius: 60px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</style>
|
|
@ -0,0 +1,206 @@
|
|||
<template>
|
||||
<view class="container">
|
||||
<view class="wrapper">
|
||||
<!-- <view style="text-align: center;">
|
||||
<image src="../../static/logo.png" style="border-radius: 64upx;"></image>
|
||||
</view>
|
||||
-->
|
||||
<view class="input-content">
|
||||
<view class="cu-form-group"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<view class="title text-black">账号</view>
|
||||
<input type="number" :value="phone" placeholder="请输入手机号" maxlength="11" data-key="phone"
|
||||
@input="inputChange" />
|
||||
</view>
|
||||
<view class="cu-form-group" style="border: 2upx solid whitesmoke;border-radius: 30px">
|
||||
<view class="title text-black">密码</view>
|
||||
<input type="password" placeholder="请输入密码" maxlength="20" :value="password" data-key="password"
|
||||
@input="inputChange" @confirm="toLogin" />
|
||||
<text class="send-msg" @click="forget">忘记密码</text>
|
||||
</view>
|
||||
</view>
|
||||
<button class="confirm-btn" @click="toLogin">登录</button>
|
||||
|
||||
<view style="margin-top: 32rpx;text-align: center">
|
||||
<view><text style="font-size: 28upx;">没有账号?</text>
|
||||
<text style="color: #019c88" @click="register()">立即注册</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
phone: '',
|
||||
password: '',
|
||||
banners: [],
|
||||
invitation: '',
|
||||
loginName: '',
|
||||
sending: false,
|
||||
sendTime: '获取验证码',
|
||||
count: 60,
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
|
||||
forget() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/publicTwo/forgetPwd'
|
||||
});
|
||||
},
|
||||
register() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/publicTwo/register'
|
||||
});
|
||||
},
|
||||
inputChange(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
navBack() {
|
||||
uni.navigateBack();
|
||||
},
|
||||
toLogin() {
|
||||
this.$queue.loginClear();
|
||||
let openid = this.$queue.getData("openid");
|
||||
const {
|
||||
phone,
|
||||
password
|
||||
} = this;
|
||||
if (!phone) {
|
||||
this.$queue.showToast("请输入手机号");
|
||||
} else if (phone.length != 11) {
|
||||
this.$queue.showToast("请输入正确的手机号");
|
||||
} else if (!password) {
|
||||
this.$queue.showToast("请输入密码");
|
||||
} else {
|
||||
this.$queue.showLoading("正在登录中...");
|
||||
this.$Request.post("/app/Login/loginApp", {
|
||||
password: password,
|
||||
phone: phone,
|
||||
openId: this.$queue.getData('openid') ? this.$queue.getData('openid') : ''
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$queue.setData("userId", res.user.userId);
|
||||
this.$queue.setData("token", res.token);
|
||||
this.$queue.setData("phone", res.user.phone);
|
||||
this.$queue.setData("userName", res.user.userName);
|
||||
this.$queue.setData("avatar", res.user.avatar);
|
||||
this.$queue.setData("invitationCode", res.user.invitationCode);
|
||||
this.$queue.setData("inviterCode", res.user.inviterCode);
|
||||
|
||||
this.getIsVip('624')
|
||||
uni.hideLoading();
|
||||
let data = {
|
||||
userId: res.user.userId,
|
||||
focusedUserId: '0',
|
||||
// userName:this.order.userName
|
||||
}
|
||||
// app/chat/insertChatConversation
|
||||
this.$Request.postJson('/app/chat/insertChatConversation', data).then(res => {
|
||||
if (res.data) {
|
||||
let id = this.ordersId == res.data.userId ? res.data.focusedUserId : this.ordersId
|
||||
uni.navigateTo({
|
||||
url: '/pages/msg/im?chatConversationId=' + res.data.chatConversationId +
|
||||
'&byUserId=' + res.data.userId
|
||||
})
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
this.$queue.showToast(res.msg);
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
getIsVip(id) {
|
||||
var data={
|
||||
userId:id
|
||||
}
|
||||
this.$Request.get("/app/VipDetails/getVipDetailByUser",data).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.isVipData = res.data
|
||||
this.$queue.setData("isVIP", this.isVipData);
|
||||
console.log("isVIP",this.$queue.getData('isVIP'))
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
page {
|
||||
height: 100%;
|
||||
background: #F5F5F5 !important;
|
||||
}
|
||||
|
||||
.bg {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
.send-msg {
|
||||
color: #000000;
|
||||
height: 30px;
|
||||
font-size: 14px;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.container {
|
||||
top: 0;
|
||||
padding-top: 32upx;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: #FFFFFF !important;
|
||||
}
|
||||
.cu-form-group{
|
||||
background-color: #f7f7f7;
|
||||
}
|
||||
.cu-form-group .title{
|
||||
font-size: 29rpx;
|
||||
color: #333;
|
||||
}
|
||||
.cu-form-group uni-input{
|
||||
font-size: 29rpx;
|
||||
color: #999999;
|
||||
}
|
||||
.wrapper {
|
||||
position: relative;
|
||||
z-index: 90;
|
||||
background: #FFFFFF;
|
||||
padding-bottom: 32upx;
|
||||
}
|
||||
|
||||
|
||||
.input-content {
|
||||
/* margin-top: 300upx; */
|
||||
/* padding-top: 300upx; */
|
||||
padding: 32upx 80upx;
|
||||
|
||||
}
|
||||
|
||||
|
||||
.confirm-btn {
|
||||
width: 600upx;
|
||||
height: 80upx;
|
||||
line-height: 80upx;
|
||||
border-radius: 60upx;
|
||||
margin-top: 32upx;
|
||||
background: linear-gradient(to right, #019c88, #31c194);
|
||||
color: #fff;
|
||||
font-size: 30upx;
|
||||
|
||||
&:after {
|
||||
border-radius: 60px;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,188 @@
|
|||
<template>
|
||||
<view class="container">
|
||||
<view class="wrapper">
|
||||
<view class="input-content">
|
||||
<view class="cu-form-group" style="padding: 30rpx 0;border-bottom: 1px #f7f7f7 solid;">
|
||||
<text class="title">旧密码</text>
|
||||
<input type="password" :value="oldPwd" placeholder="请输入旧密码" placeholder-class="input-empty" maxlength="20"
|
||||
minlength="6" data-key="oldpassword" @input="inputChange" @confirm="toLogin" />
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group" style="padding: 30rpx 0;">
|
||||
<text class="title">新密码</text>
|
||||
<input type="password" :value="pwd" placeholder="请设置新密码" placeholder-class="input-empty" maxlength="20"
|
||||
minlength="6" data-key="password" @input="inputChange" @confirm="toLogin" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="pwd-btn">
|
||||
<button class="confirm-btn" @click="toLogin">修改密码</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
code: '',
|
||||
phone: '',
|
||||
password: '',
|
||||
oldpassword: '',
|
||||
sending: false,
|
||||
sendTime: '获取验证码',
|
||||
count: 60,
|
||||
logining: false,
|
||||
oldPwd: '',
|
||||
pwd: ''
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
sendMsg() {
|
||||
const {
|
||||
phone
|
||||
} = this;
|
||||
if (!phone) {
|
||||
this.$queue.showToast("请输入手机号");
|
||||
} else if (phone.length !== 11) {
|
||||
this.$queue.showToast("请输入正确的手机号");
|
||||
} else {
|
||||
this.$queue.showLoading("正在发送验证码...");
|
||||
this.$Request.getT('/appLogin/sendMsg/' + mobile + '/forget').then(res => {
|
||||
if (res.code === 0) {
|
||||
this.sending = true;
|
||||
this.$queue.showToast('验证码发送成功请注意查收');
|
||||
this.countDown();
|
||||
uni.hideLoading();
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '短信发送失败',
|
||||
content: res.msg ? res.msg : '请一分钟后再获取验证码'
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
countDown() {
|
||||
const {
|
||||
count
|
||||
} = this;
|
||||
if (count === 1) {
|
||||
this.count = 60;
|
||||
this.sending = false;
|
||||
this.sendTime = '获取验证码'
|
||||
} else {
|
||||
this.count = count - 1;
|
||||
this.sending = true;
|
||||
this.sendTime = count - 1 + '秒后重新获取';
|
||||
setTimeout(this.countDown.bind(this), 1000);
|
||||
}
|
||||
},
|
||||
inputChange(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
navBack() {
|
||||
uni.navigateBack();
|
||||
},
|
||||
|
||||
toLogin() {
|
||||
const {
|
||||
password,
|
||||
oldpassword
|
||||
} = this;
|
||||
if (!oldpassword) {
|
||||
this.$queue.showToast("请输入旧密码");
|
||||
} else if (oldpassword.length < 6) {
|
||||
this.$queue.showToast("旧密码位数必须大于六位");
|
||||
} else if (!password) {
|
||||
this.$queue.showToast("请设置新密码");
|
||||
} else if (password.length < 6) {
|
||||
this.$queue.showToast("新密码位数必须大于六位");
|
||||
} else {
|
||||
this.logining = true;
|
||||
this.$queue.showLoading("正在修改密码中...");
|
||||
this.$Request.post("/app/user/updatePwd", {
|
||||
pwd : password,
|
||||
oldPwd : oldpassword,
|
||||
}).then(res => {
|
||||
uni.hideLoading();
|
||||
if (res.code === 0) {
|
||||
this.$queue.showToast('密码修改成功!下次请使用新密码登录!')
|
||||
setTimeout(function(){
|
||||
uni.navigateBack()
|
||||
},1000)
|
||||
} else {
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '密码修改失败',
|
||||
content: res.msg,
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
.pwd-btn{
|
||||
position: fixed;
|
||||
bottom: 0rpx;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: #FFFFFF;
|
||||
height: 110rpx;
|
||||
line-height: 110rpx;
|
||||
z-index: 999;
|
||||
}
|
||||
page {
|
||||
height: 100%;
|
||||
background: #f7f7f7;
|
||||
}
|
||||
|
||||
.container {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
position: relative;
|
||||
z-index: 90;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
|
||||
.input-content {
|
||||
padding: 0 30rpx;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
|
||||
.confirm-btn {
|
||||
background: linear-gradient(90deg, #019C88, #0FA78B, #35C495);
|
||||
color: #FFFFFF;
|
||||
margin: 16rpx 30upx;
|
||||
position: fixed;
|
||||
bottom: 0upx;
|
||||
width: 90%;
|
||||
border-radius: 50rpx;
|
||||
height: 78rpx;
|
||||
line-height: 78rpx;
|
||||
font-size: 32rpx;
|
||||
|
||||
&:after {
|
||||
border-radius: 60px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</style>
|
|
@ -0,0 +1,400 @@
|
|||
<template>
|
||||
<view class="container">
|
||||
<view class="wrapper">
|
||||
<view class="input-content">
|
||||
<!-- <view class="cu-form-group"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<view class="title text-black">用户名</view>
|
||||
<input :value="userName" placeholder="请输入用户名" data-key="userName" @input="inputChange" />
|
||||
</view> -->
|
||||
<view class="cu-form-group"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<view class="title text-black">手机号</view>
|
||||
<input type="number" :value="phone" placeholder="请输入手机号" maxlength="11" data-key="phone"
|
||||
@input="inputChange" />
|
||||
</view>
|
||||
<view class="cu-form-group padding-right-xs"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<text class="title text-black">验证码</text>
|
||||
<input type="number" :value="code" placeholder="请输入验证码" maxlength="6" data-key="code"
|
||||
@input="inputChange" @confirm="toLogin" />
|
||||
<button class="send-msg" @click="sendMsg" :disabled="sending">{{ sendTime }}</button>
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<text class="title text-black">设置密码</text>
|
||||
<input type="password" :value="password" placeholder="请设置密码" placeholder-class="input-empty"
|
||||
maxlength="20" minlength="6" data-key="password" @input="inputChange" @confirm="toLogin" />
|
||||
</view>
|
||||
<view class="cu-form-group"
|
||||
style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<text class="title text-black">邀请码</text>
|
||||
<input type="" maxlength="6" :value="invitation" placeholder="请填写邀请码(选填)" data-key="invitation"
|
||||
@input="inputChange" @confirm="toLogin" />
|
||||
</view>
|
||||
<view hidden class="cu-form-group" style="border: 2upx solid whitesmoke;margin-bottom: 20px;border-radius: 30px">
|
||||
<text class="title text-black">绑定商家ID</text>
|
||||
<input type="" disabled maxlength="6" :value="bindingConsortiaId" placeholder="绑定商家" data-key="bindingConsortiaId" @input="inputChange" @confirm="toLogin" />
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<button class="confirm-btn" @click="toLogin">立即注册</button>
|
||||
<view class="footer">
|
||||
<text @tap="isShowAgree" class="cuIcon"
|
||||
:class="showAgree ? 'cuIcon-radiobox' : 'cuIcon-round'">同意</text>
|
||||
<!-- 协议地址 -->
|
||||
<navigator url="/my/setting/mimi" open-type="navigate">《隐私政策》</navigator>
|
||||
和
|
||||
<navigator url="/my/setting/xieyi" open-type="navigate">《用户协议》</navigator>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
userName: '',
|
||||
showAgree: false,
|
||||
code: '',
|
||||
phone: '',
|
||||
password: '',
|
||||
required: '否',
|
||||
sending: false,
|
||||
sendTime: '获取验证码',
|
||||
count: 60,
|
||||
relation: "",
|
||||
state: '',
|
||||
invitation: '',
|
||||
platform: '',
|
||||
scanning_channel: '',
|
||||
bindingConsortiaId: '',
|
||||
};
|
||||
},
|
||||
onLoad(e) {
|
||||
this.bindingConsortiaId = this.$queue.getData('bindingConsortiaId') ? this.$queue.getData('bindingConsortiaId') : '';
|
||||
this.invitation = this.$queue.getData('inviterCode') ? this.$queue.getData('inviterCode') : '';
|
||||
// #ifdef APP-PLUS
|
||||
this.platform = 'app'
|
||||
//#endif
|
||||
//#ifdef H5
|
||||
this.platform = 'H5'
|
||||
// #endif
|
||||
if (e.scanningChannel) {
|
||||
this.scanning_channel = e.scanningChannel;
|
||||
document.querySelector('.uni-page-head-hd').style.display = 'none'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
showMa() {
|
||||
//查询官方邀请码
|
||||
this.$Request.getT('/app/common/type/4').then(res => {
|
||||
if (res.code == 0) {
|
||||
this.invitationCode = res.data.value;
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
// 注册邀请码必填
|
||||
invitationMa() {
|
||||
this.$Request.getT('/app/common/type/3').then(res => {
|
||||
if (res.code == 0) {
|
||||
this.required = res.data.value;
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
// 获取新用户优惠券数量
|
||||
newMa() {
|
||||
this.$Request.getT('/app/common/type/119').then(res => {
|
||||
if (res.code == 0) {
|
||||
this.amount = res.data.value;
|
||||
}
|
||||
});
|
||||
},
|
||||
isShowAgree() {
|
||||
//是否选择协议
|
||||
this.showAgree = !this.showAgree;
|
||||
},
|
||||
sendMsg() {
|
||||
const {
|
||||
phone
|
||||
} = this;
|
||||
if (!phone) {
|
||||
this.$queue.showToast('请输入手机号');
|
||||
} else if (phone.length !== 11) {
|
||||
this.$queue.showToast('请输入正确的手机号');
|
||||
} else {
|
||||
this.$queue.showLoading('正在发送验证码...');
|
||||
this.$Request.getT('/app/Login/sendMsg/' + phone + '/gzg').then(res => {
|
||||
if (res.code === 0) {
|
||||
this.sending = true;
|
||||
this.$queue.showToast('验证码发送成功请注意查收');
|
||||
this.countDown();
|
||||
uni.hideLoading();
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '短信发送失败',
|
||||
content: res.msg ? res.msg : '请一分钟后再获取验证码'
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
countDown() {
|
||||
const {
|
||||
count
|
||||
} = this;
|
||||
if (count === 1) {
|
||||
this.count = 60;
|
||||
this.sending = false;
|
||||
this.sendTime = '获取验证码';
|
||||
} else {
|
||||
this.count = count - 1;
|
||||
this.sending = true;
|
||||
this.sendTime = count - 1 + '秒后重新获取';
|
||||
setTimeout(this.countDown.bind(this), 1000);
|
||||
}
|
||||
},
|
||||
inputChange(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
this[key] = e.detail.value;
|
||||
},
|
||||
navBack() {
|
||||
uni.navigateBack();
|
||||
},
|
||||
|
||||
navTo(url) {
|
||||
uni.navigateTo({
|
||||
url
|
||||
});
|
||||
},
|
||||
toLogin() {
|
||||
const {
|
||||
scanning_channel,
|
||||
userName,
|
||||
phone,
|
||||
password,
|
||||
code,
|
||||
showAgree,
|
||||
invitation,
|
||||
} = this;
|
||||
// if (!userName) {
|
||||
// this.$queue.showToast('请输入用户名');
|
||||
// } else
|
||||
if (!phone) {
|
||||
this.$queue.showToast('请输入手机号');
|
||||
} else if (!code) {
|
||||
this.$queue.showToast('请输入验证码');
|
||||
} else if (!password) {
|
||||
this.$queue.showToast('请设置密码');
|
||||
} else if (password.length < 6) {
|
||||
this.$queue.showToast('密码位数必须大于六位');
|
||||
} else if (!showAgree) {
|
||||
this.$queue.showToast('请同意《用户协议》和《隐私政策》');
|
||||
} else {
|
||||
|
||||
|
||||
|
||||
let postData = {
|
||||
userName: userName,
|
||||
password: password,
|
||||
phone: phone,
|
||||
openId: this.$queue.getData('openid') ? this.$queue.getData('openid') : '',
|
||||
inviterCode: this.invitation,
|
||||
bindingConsortiaId: this.bindingConsortiaId,
|
||||
platform: this.platform,
|
||||
msg: code
|
||||
}
|
||||
|
||||
console.log(postData);
|
||||
|
||||
if (scanning_channel) {
|
||||
this.$set(postData, 'scanningChannel', scanning_channel);
|
||||
}
|
||||
|
||||
console.log(postData);
|
||||
|
||||
this.logining = true;
|
||||
this.$queue.showLoading('注册中...');
|
||||
this.$Request.post(`/app/Login/registerCode`,postData).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.$queue.showToast('注册成功');
|
||||
|
||||
this.$queue.setData("token", res.token);
|
||||
this.$queue.setData('userId', res.user.userId);
|
||||
this.$queue.setData('userName', res.user.userName);
|
||||
this.$queue.setData('phone', res.user.phone);
|
||||
this.$queue.setData('avatar', res.user.avatar ? res.user.avatar :
|
||||
'../../static/logo.png');
|
||||
this.getUserInfo()
|
||||
let data = {
|
||||
userId: res.user.userId,
|
||||
focusedUserId: '0',
|
||||
// userName:this.order.userName
|
||||
}
|
||||
// app/chat/insertChatConversation
|
||||
this.$Request.postJson('/app/chat/insertChatConversation', data).then(res => {
|
||||
if (res.data) {
|
||||
let id = this.ordersId == res.data.userId ? res.data.focusedUserId : this.ordersId
|
||||
uni.navigateTo({
|
||||
url: '/pages/msg/im?chatConversationId=' + res.data.chatConversationId +
|
||||
'&byUserId=' + res.data.userId
|
||||
})
|
||||
}
|
||||
})
|
||||
// setTimeout(function() {
|
||||
// uni.switchTab({
|
||||
// url: '/pages/index/index'
|
||||
// })
|
||||
// }, 1000)
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '注册失败',
|
||||
content: res.msg
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
//获取用户信息
|
||||
getUserInfo() {
|
||||
this.$Request.get("/app/user/selectUserById").then(res => {
|
||||
if (res.code == 0) {
|
||||
uni.hideLoading()
|
||||
this.$queue.setData('avatar', res.data.avatar ? res.data.avatar : '../../static/logo.png');
|
||||
this.$queue.setData('userId', res.data.userId);
|
||||
this.$queue.setData('userName', res.data.userName);
|
||||
this.$queue.setData('phone', res.data.phone);
|
||||
this.$queue.setData("invitationCode", res.user.invitationCode);
|
||||
this.$queue.setData("inviterCode", res.user.inviterCode);
|
||||
|
||||
this.userName = res.data.userName
|
||||
this.invitationCode = res.data.invitationCode
|
||||
uni.setStorageSync('invitationCode', res.data.invitationCode)
|
||||
let data = {
|
||||
userId: res.user.userId,
|
||||
focusedUserId: '0',
|
||||
}
|
||||
this.$Request.postJson('/app/chat/insertChatConversation', data).then(res => {
|
||||
if (res.data) {
|
||||
let id = this.ordersId == res.data.userId ? res.data.focusedUserId : this.ordersId
|
||||
uni.navigateTo({
|
||||
url: '/pages/msg/im?chatConversationId=' + res.data.chatConversationId +
|
||||
'&byUserId=' + res.data.userId
|
||||
})
|
||||
|
||||
}
|
||||
})
|
||||
// setTimeout(function() {
|
||||
// uni.switchTab({
|
||||
// url: '/pages/index/index'
|
||||
// })
|
||||
// }, 1000)
|
||||
} else {
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '登录失败',
|
||||
content: res.msg
|
||||
});
|
||||
this.$queue.logout();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
page {
|
||||
height: 100%;
|
||||
background: #FFFFFF !important;
|
||||
}
|
||||
|
||||
|
||||
.footer {
|
||||
margin-top: 32upx;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.send-msg {
|
||||
color: #019c88;
|
||||
height: 30px;
|
||||
font-size: 29rpx;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
uni-button:after {
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
.cuIcon-round:before {
|
||||
margin-right: 10rpx;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
|
||||
.cuIcon-radiobox:before {
|
||||
color: #096f4b;
|
||||
margin-right: 10rpx;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding-top: 32upx;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: #ffffff !important;
|
||||
}
|
||||
|
||||
.cu-form-group {
|
||||
background-color: #f7f7f7;
|
||||
}
|
||||
|
||||
.cu-form-group .title {
|
||||
font-size: 29rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.cu-form-group uni-input {
|
||||
font-size: 29rpx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
position: relative;
|
||||
z-index: 90;
|
||||
background: #ffffff;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
|
||||
.input-content {
|
||||
padding: 32upx 80upx;
|
||||
}
|
||||
|
||||
|
||||
.confirm-btn {
|
||||
width: 600upx;
|
||||
height: 80upx;
|
||||
line-height: 80upx;
|
||||
border-radius: 60upx;
|
||||
margin-top: 32upx;
|
||||
background: linear-gradient(to right, #019c88, #31c194);
|
||||
color: #fff;
|
||||
font-size: 30upx;
|
||||
|
||||
&:after {
|
||||
border-radius: 60px;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,986 @@
|
|||
<template>
|
||||
<view class="content">
|
||||
<view class="content-head">
|
||||
<view class="padding-top-sm flex align-center" style="padding-bottom: 9px;">
|
||||
<u-search class="flex-sub" placeholder="请输入技师名字" :focus="false" shape="square" v-model="artificerName"
|
||||
:show-action="true" :animation="true" bg-color="#f5f5f5" color="#1A1A1A" @search="onSearch()"
|
||||
action-text="搜索" @custom="onSearch()"></u-search>
|
||||
</view>
|
||||
</view>
|
||||
<view class="liebiao">
|
||||
<view v-if="orderList.length" class="flex text-center flex-wrap list-view">
|
||||
<view class="margin-bottom-sm radius touxiang-left">
|
||||
<view class="flex align-center touxiang-left-view" v-if="item.status=='1'" v-for="(item, index) in orderList" :key='index'
|
||||
@click="goOrder(item)">
|
||||
<view class="touxiang-left-content">
|
||||
<image class="touxiang-left-content-img" :src="item.artificerImg ? item.artificerImg : '../../static/logo.png'"
|
||||
@click.stop="saveImgs(item.artificerImg)" mode="aspectFill"></image>
|
||||
<image class="touxiang-frame" :src="item.technicianType=='3'?'../../static/vip/grade1.gif':item.technicianType=='4'?'../../static/vip/grade2.gif':'../../static/vip/grade3.gif'"></image>
|
||||
|
||||
</view>
|
||||
<view class="list-right">
|
||||
<view class="flex align-center" style="justify-content: start;">
|
||||
<view class="flex align-center list-right-top">
|
||||
<view class="list-right-top-view">
|
||||
<view class="list-right-top-name">
|
||||
{{ item.artificerName }}
|
||||
</view>
|
||||
<view class="list-right-top-name">
|
||||
{{ item.artificerClassifyList[0].classifyName }}
|
||||
</view>
|
||||
<view class="keyuyue">
|
||||
<view class="flex">
|
||||
<view class="timea-fu">{{item.status == 1?"可服务":"休息中"}}</view>
|
||||
<view class="timea-time" v-if="item.status == 1">{{item.time}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<!--<view class="keyuyue">
|
||||
<view>
|
||||
{{item.state == 1?"可服务":item.state == 2?"今日可约":"休息中"}}
|
||||
</view>
|
||||
<view v-if="item.status == 1 && item.time">{{ item.time
|
||||
}}</view>
|
||||
-->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="therapist-mian">
|
||||
<view class="therapist-mian-top">
|
||||
<view class="therap-pin">
|
||||
<!--<image src="../../static/dituzhaoren3.png" mode="">
|
||||
</image>-->
|
||||
<span>评论</span>
|
||||
<span class="therapist-mian-view-text">
|
||||
{{ item.commentCount ? item.commentCount : 0 }}
|
||||
</span>
|
||||
</view>
|
||||
<view class="therap-pin" >
|
||||
<!--<image src="../../static/dituzhaoren4.png" mode="">
|
||||
</image>-->
|
||||
<span>收藏</span>
|
||||
<span class="therapist-mian-view-text">
|
||||
{{ item.collectCount ? item.collectCount : 0 }}
|
||||
</span>
|
||||
</view>
|
||||
</view>
|
||||
<view class="therapist-mian-bottom">
|
||||
<view class="flex align-center">
|
||||
<image class="therapist-bottom-dingwei" src="../../static/dituzhaoren6.png"></image>
|
||||
<view class="therapist-bottom-dingwei-text">
|
||||
{{ item.distance }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex flex-wrap align-center" v-if="item.consortiaName">
|
||||
<image class="therapist-bottom-img" src="../../static/dituzhaoren5.png">
|
||||
</image>
|
||||
<view class="therapist-mian-bottom-text">{{item.consortiaName}}</view>
|
||||
</view>
|
||||
<view>
|
||||
<view class="terap-button" v-if="item.status == 1" @click.stop="goOrder(item)">
|
||||
确认
|
||||
</view>
|
||||
<view class="text-center text-sm" @click.stop="showTips()" v-else
|
||||
style="background: #d9d9d9;color: #ffffff;width: 100%;border-radius: 30upx;height: 60upx;line-height: 60upx;margin-top: 10rpx;">
|
||||
确认
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<empty v-if="orderList.length == 0"></empty>
|
||||
</view>
|
||||
<!-- 经验筛选 -->
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import empty from '@/components/empty.vue'
|
||||
export default {
|
||||
components: {
|
||||
empty,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
artificerName: '',
|
||||
loading: true, // 是否显示骨架屏组件
|
||||
value2: '',
|
||||
value3: '',
|
||||
game: [],
|
||||
defaultIndex: [0, 0, 0],
|
||||
|
||||
listIndex: 0,
|
||||
city: '请选择城市',
|
||||
orderList: [],
|
||||
page: 1,
|
||||
limit: 10,
|
||||
token: '',
|
||||
XCXIsSelect: '否',
|
||||
isVip: false,
|
||||
showModal: true,
|
||||
arr: [],
|
||||
tab: '',
|
||||
cityList: [],
|
||||
tablist: [],
|
||||
tabIndex: 0,
|
||||
orderIndex: 0,
|
||||
current: 0,
|
||||
|
||||
myId: uni.getStorageSync('userId') ? uni.getStorageSync('userId') : '',
|
||||
//地图相关
|
||||
latitude: '43.86487',
|
||||
longitude: '',
|
||||
address: '',
|
||||
marker: null,
|
||||
dataIndex:'',
|
||||
technicianType:'',
|
||||
classifyId:''
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
let that = this
|
||||
that.technicianType=e.technicianType
|
||||
that.massageTypeId=e.massageTypeId
|
||||
that.longitude=e.longitude
|
||||
that.latitude=e.latitude
|
||||
that.classifyId=e.classifyId
|
||||
that.city=e.city
|
||||
uni.getStorage({
|
||||
key: 'taocanDd',
|
||||
success: (res) => {
|
||||
that.dataIndex = res.data;
|
||||
}
|
||||
});
|
||||
that.getlist()
|
||||
},
|
||||
onShow() {
|
||||
let that = this
|
||||
that.XCXIsSelect = this.$queue.getData("XCXIsSelect");
|
||||
that.city = uni.getStorageSync('city') ? uni.getStorageSync('city') : '请选择城市'
|
||||
that.token = uni.getStorageSync('token')
|
||||
that.myId = uni.getStorageSync('userId')
|
||||
},
|
||||
methods: {
|
||||
// 跳转订单
|
||||
goOrder(e) {
|
||||
console.log('授权', uni.getStorageSync('sendMsg'))
|
||||
if (uni.getStorageSync('sendMsg')) {
|
||||
console.log('授权+1')
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: this.arr,
|
||||
success(re) {
|
||||
var datas = JSON.stringify(re);
|
||||
if (datas.indexOf("accept") != -1) {
|
||||
console.log(re)
|
||||
}
|
||||
},
|
||||
fail: (res) => {
|
||||
console.log(res)
|
||||
}
|
||||
})
|
||||
}else if (!this.token) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/public/login'
|
||||
});
|
||||
} else if(this.dataIndex=='待支付'){
|
||||
this.$queue.setData('getJishi',e);
|
||||
uni.reLaunch({
|
||||
url:'/my/order/payModifyDzhifu'
|
||||
})
|
||||
|
||||
}else if(this.dataIndex=='支付'){
|
||||
this.$queue.setData('getJishi',e);
|
||||
uni.reLaunch({
|
||||
url:'/my/order/payModify'
|
||||
})
|
||||
}else if(this.dataIndex=='充值'){
|
||||
this.$queue.setData('getJishi',e);
|
||||
uni.reLaunch({
|
||||
url:'/my/wallet/index?artificerId='+e.artificerId+'&text='+'my'
|
||||
})
|
||||
}else if(this.dataIndex=='订单支付'){
|
||||
this.$queue.setData('getJishi',e);
|
||||
uni.reLaunch({
|
||||
url:'/my/order/payModifyDd?artificerId='+e.artificerId+'&text='+'my'
|
||||
})
|
||||
}else if(this.dataIndex=='修改'){
|
||||
this.$queue.setData('getJishi',e);
|
||||
uni.reLaunch({
|
||||
url:'/my/order/payModifyDzhifu?artificerId='+e.artificerId+'&text='+'my'
|
||||
})
|
||||
}else if(this.dataIndex=='我的套餐'){
|
||||
this.$queue.setData('getJishi',e);
|
||||
uni.reLaunch({
|
||||
url:'/my/order/payModifyTcMy?artificerId='+e.artificerId+'&text='+'my'
|
||||
})
|
||||
}
|
||||
},
|
||||
saveImgss(imgs, index) {
|
||||
console.log(imgs, index)
|
||||
// let that = this
|
||||
let imgArr = imgs
|
||||
// this.imgArr.push(imgs);
|
||||
// console.log(this.imgArr)
|
||||
// //预览图片
|
||||
uni.previewImage({
|
||||
urls: imgArr,
|
||||
current: imgArr[index]
|
||||
});
|
||||
},
|
||||
saveImgs(imgs) {
|
||||
let imgArr = [];
|
||||
imgArr.push(imgs);
|
||||
// //预览图片
|
||||
uni.previewImage({
|
||||
urls: imgArr,
|
||||
current: 0
|
||||
});
|
||||
},
|
||||
getTypeList() {
|
||||
this.$Request.get("/app/dict/list", {
|
||||
type: '服务类型'
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.data) {
|
||||
this.tablist = res.data
|
||||
this.tabIndex = res.data[0].id;
|
||||
this.page = 1;
|
||||
// this.getlist()
|
||||
//开启地图线程
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
onSearch(e) {
|
||||
// this.artificerName = e;
|
||||
this.page = 1;
|
||||
this.getlist()
|
||||
},
|
||||
getlist() {
|
||||
let index = 2
|
||||
let data = {
|
||||
// id: curTab,
|
||||
artificerName: this.artificerName,
|
||||
classifyId: this.classifyId,
|
||||
page: this.page,
|
||||
limit: this.limit,
|
||||
massageTypeId: this.massageTypeId,
|
||||
// condition: this.value1, //智能优选
|
||||
// authentication: this.value2, //不限男女
|
||||
by: index, //价格
|
||||
latitude: this.latitude,
|
||||
longitude: this.longitude,
|
||||
city: this.city,
|
||||
technicianType:this.technicianType
|
||||
}
|
||||
this.$Request.get("/app/artificer/selectArtificerList", data).then(res => {
|
||||
this.loading = false;
|
||||
if (res.code == 0) {
|
||||
for (var i = 0; i < res.data.list.length; i++) {
|
||||
if (res.data.list[i].lifePhoto) {
|
||||
res.data.list[i].lifePhoto = res.data.list[i].lifePhoto.split(',')
|
||||
}
|
||||
if (res.data.list[i].distance > 1000) {
|
||||
res.data.list[i].distance = (res.data.list[i].distance / 1000).toFixed(1) +
|
||||
'km'
|
||||
} else {
|
||||
res.data.list[i].distance = (res.data.list[i].distance).toFixed(1) + 'm'
|
||||
}
|
||||
|
||||
}
|
||||
if (this.page == 1) {
|
||||
this.orderList = res.data.list
|
||||
} else {
|
||||
this.orderList = [...this.orderList, ...res.data.list]
|
||||
}
|
||||
// for (var i = 0; i < this.orderList.length; i++) {
|
||||
// if (this.orderList[i].status!='1') {
|
||||
// this.orderList=[]
|
||||
// }
|
||||
|
||||
|
||||
// }
|
||||
}
|
||||
uni.stopPullDownRefresh();
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
// 筛选
|
||||
change(index) {
|
||||
|
||||
// this.value2 = e[1][0].value
|
||||
// this.value3 = e[2][0].value
|
||||
this.listIndex = index
|
||||
this.page = 1
|
||||
this.getlist()
|
||||
},
|
||||
|
||||
|
||||
getBusinessId() {
|
||||
return this.tabIndex;
|
||||
},
|
||||
|
||||
},
|
||||
onReachBottom: function() {
|
||||
this.page = this.page + 1;
|
||||
this.getlist()
|
||||
},
|
||||
onPullDownRefresh: function() {
|
||||
this.page = 1;
|
||||
this.getlist()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
/deep/.u-drawer,/deep/.u-mask-show{
|
||||
z-index:11 !important;
|
||||
}
|
||||
/deep/.u-drawer-content-visible{
|
||||
z-index:99 !important;
|
||||
}
|
||||
.item-view-jianjie{
|
||||
font-weight: 400;
|
||||
font-size: 22rpx;
|
||||
color: #848484;
|
||||
margin:5px 0px;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2; /* 显示的行数,可以根据需要修改 */
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
text-align: left;
|
||||
}
|
||||
.touxiang-frame{
|
||||
position: absolute;
|
||||
width: 100rpx;
|
||||
height: 38rpx;
|
||||
left: 44rpx;
|
||||
top:140rpx;
|
||||
}
|
||||
.dituList{
|
||||
width: 85%;
|
||||
height: 173px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
}
|
||||
.liebiao{
|
||||
height: 100vh;
|
||||
margin-top: 55px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.content-head{
|
||||
position: fixed;
|
||||
top: 0rpx;
|
||||
z-index: 999;
|
||||
width: 100%;
|
||||
background: #fff;
|
||||
//background-image: url('../../static/topimg.png');
|
||||
// background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), #f7f7f7), url('../../static/background-img.png');
|
||||
// background-position: center center;
|
||||
// background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
// overflow: auto;
|
||||
}
|
||||
.therapist-bottom-dingwei-text{
|
||||
font-size: 29rpx;
|
||||
color: #848485;
|
||||
}
|
||||
.therapist-bottom-dingwei{
|
||||
width: 17.36rpx;
|
||||
height: 20.14rpx;
|
||||
margin-right:3px;
|
||||
}
|
||||
.therapist-bottom-img{
|
||||
width: 22.22rpx;
|
||||
height: 22.22rpx;
|
||||
margin-right:3px;
|
||||
}
|
||||
.therapist-mian-bottom-text{
|
||||
font-weight: bold;
|
||||
font-size: 30rpx;
|
||||
color: #222222;
|
||||
white-space: pre-wrap;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 1;
|
||||
overflow: hidden;
|
||||
width:60px;
|
||||
}
|
||||
.therapist-mian-bottom{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin: 5px 0px 3px 0px;
|
||||
}
|
||||
.therapist-mian-view-text span{
|
||||
font-weight: 500;
|
||||
font-size: 26rpx;
|
||||
color: #222222;
|
||||
}
|
||||
.therapist-mian-view span{
|
||||
font-weight: 400;
|
||||
font-size: 26rpx;
|
||||
color: #7C8187;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.therapist-mian-view image{
|
||||
width: 28rpx;
|
||||
height: 28rpx;
|
||||
margin-right: 2px;
|
||||
}
|
||||
.therapist-mian-view{
|
||||
display: flex;
|
||||
flex-direction:row;
|
||||
align-items: center;
|
||||
}
|
||||
.therapist-mian-top{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction:row;
|
||||
}
|
||||
.therapist-mian{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction:column;
|
||||
}
|
||||
.list-right-top-bottom{
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
font-weight: 400;
|
||||
font-size: 25rpx;
|
||||
color: #333333;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2; /* 显示的行数,可以根据需要修改 */
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.list-right-top-name{
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
text-align: left;
|
||||
font-weight: bold;
|
||||
font-size: 32rpx;
|
||||
color: #13141A;
|
||||
}
|
||||
.keyuyue{
|
||||
padding: 0rpx 10rpx;
|
||||
height: 44rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
background: #eefdf8;
|
||||
border-radius: 30rpx 20rpx 20rpx 30rpx ;
|
||||
color:#8d500f;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
.timea-img{
|
||||
background:#2dbe93 url('../../static/timea.png') 2rpx 1rpx;
|
||||
background-size: 28rpx 28rpx;
|
||||
background-repeat: no-repeat;
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
border-radius:8rpx;
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
.timea-fu{
|
||||
font-size: 24rpx;
|
||||
color: #2dbe93;
|
||||
line-height: 44rpx;
|
||||
margin-left: 8rpx;
|
||||
margin-right: 5rpx;
|
||||
}
|
||||
.timea-time{
|
||||
font-size: 25rpx;
|
||||
color: #2dbe93;
|
||||
line-height: 44rpx;
|
||||
padding-right: 10rpx;
|
||||
}
|
||||
.keyuyue .keyuyue-btn{
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
font-weight: 400;
|
||||
font-size: 17rpx;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.keyuyue-jinri{
|
||||
border-top-left-radius: 7rpx;
|
||||
border-bottom-left-radius: 7rpx;
|
||||
border-radius: 7rpx;
|
||||
color: #fff;
|
||||
background: linear-gradient(90deg, #019C88, #28BA92, #35C495);
|
||||
}
|
||||
.keyuyue-time{
|
||||
border-top-right-radius: 7rpx;
|
||||
border-bottom-right-radius: 7rpx;
|
||||
color: #039E89;
|
||||
background: #EBEBEB;
|
||||
}
|
||||
.list-right-top-view image{
|
||||
width: 168.75rpx;
|
||||
height: 40.97rpx;
|
||||
}
|
||||
.list-right-top-view{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.list-right-top{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.list-right{
|
||||
width: 72%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-evenly;
|
||||
padding: 16rpx;
|
||||
}
|
||||
.zpmore_view {
|
||||
position: absolute;
|
||||
bottom: -20rpx;
|
||||
left: 14rpx;
|
||||
color: #f9f3d3;
|
||||
background: linear-gradient(to right, #0a0c16, #4d4d53);
|
||||
width: 130upx;
|
||||
text-align: center;
|
||||
border-radius: 30rpx;
|
||||
height: 42rpx;
|
||||
line-height: 42rpx;
|
||||
font-size: 24rpx;
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
.zpmore_view_left{
|
||||
width: 68.75rpx;
|
||||
height: 29.86rpx;
|
||||
}
|
||||
.img-span{
|
||||
padding: 1px 5px;
|
||||
font-weight: 400;
|
||||
font-size: 8px;
|
||||
color: #FFFFFF;
|
||||
background: linear-gradient(-90deg, #FF6F48, #FF9E69);
|
||||
border-radius: 7px 0px 7px 0px;
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
right: 0;
|
||||
margin-bottom: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
// .zpmore_view_left image{
|
||||
// position: absolute;
|
||||
// bottom: 0px;
|
||||
// right: 0px;
|
||||
// margin: 0px 5px -16px 0px;
|
||||
// width: 68.75rpx;
|
||||
// height: 29.86rpx;
|
||||
// }
|
||||
.touxiang{
|
||||
width: 202.08rpx;
|
||||
height: 306.94rpx;
|
||||
}
|
||||
.touxiang-left-content{
|
||||
width: 180rpx;
|
||||
//width: 235.08rpx;
|
||||
height: auto;
|
||||
border-radius: 10rpx;
|
||||
position: relative;
|
||||
}
|
||||
.touxiang-left-content-img{
|
||||
width: 150rpx;
|
||||
height: 150rpx;
|
||||
border-radius:120rpx;
|
||||
margin: 14rpx 22rpx;
|
||||
}
|
||||
.touxiang-left-view{
|
||||
width: 100%;
|
||||
height: 126px;
|
||||
border-radius: 18rpx;
|
||||
align-items: flex-start;
|
||||
background: #fff;
|
||||
margin-bottom: 12px;
|
||||
padding-bottom: 10px;
|
||||
justify-content: space-between;
|
||||
padding: 10rpx;
|
||||
}
|
||||
|
||||
.touxiang-left{
|
||||
width: 100%;
|
||||
/* padding: 10px; */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
// justify-content: space-between;
|
||||
align-items: baseline;
|
||||
}
|
||||
.list-view{
|
||||
// margin-top: 52px;
|
||||
padding: 0 20rpx;
|
||||
height: 100%;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
/deep/.justify-between{
|
||||
// width: 100px;
|
||||
// height: 32px;
|
||||
line-height: 32px;
|
||||
border-radius: 4px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
.padding-top-sm{
|
||||
width: 95%;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
/deep/.page-box{
|
||||
background: none !important;
|
||||
}
|
||||
/deep/.u-action{
|
||||
display: none;
|
||||
}
|
||||
.content{
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
// overflow: auto;
|
||||
}
|
||||
/deep/.u-content{
|
||||
border-radius: 30px !important;
|
||||
}
|
||||
.flex-sub{
|
||||
width: 353rpx;
|
||||
height: 63rpx !important;
|
||||
}
|
||||
.localName{
|
||||
margin-left: 4rpx;
|
||||
font-weight: bold;
|
||||
font-size: 33rpx;
|
||||
color: #333333;
|
||||
}
|
||||
.dingwei-img{
|
||||
width:33.33rpx;
|
||||
height:37.5rpx;
|
||||
}
|
||||
page {
|
||||
background-color: #F7F7F7;
|
||||
}
|
||||
|
||||
.jishi_name {
|
||||
max-width: 80rpx;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.zz_view {
|
||||
color: #333333;
|
||||
font-size: 24rpx;
|
||||
padding: 6rpx 10rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.zpmore_view {
|
||||
position: absolute;
|
||||
bottom: -20rpx;
|
||||
left: 14rpx;
|
||||
color: #f9f3d3;
|
||||
background: linear-gradient(to right, #0a0c16, #4d4d53);
|
||||
width: 130upx;
|
||||
text-align: center;
|
||||
border-radius: 30rpx;
|
||||
height: 42rpx;
|
||||
line-height: 42rpx;
|
||||
font-size: 24rpx;
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
|
||||
.byy_view {
|
||||
background: #ebebeb;
|
||||
width: 100upx;
|
||||
text-align: center;
|
||||
border-radius: 50rpx;
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
font-size: 24rpx;
|
||||
color: #000000;
|
||||
// border: 3upx solid #999999;
|
||||
margin-top: 6rpx;
|
||||
margin-left: 40rpx;
|
||||
}
|
||||
|
||||
.kfw_view {
|
||||
background: #ffaa00;
|
||||
width: 100upx;
|
||||
text-align: center;
|
||||
border-radius: 50rpx;
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
font-size: 24rpx;
|
||||
color: #FFFFFF;
|
||||
margin-top: 6rpx;
|
||||
margin-left: 40rpx;
|
||||
}
|
||||
|
||||
.kyy_view {
|
||||
background: #096f4b;
|
||||
width: 100upx;
|
||||
text-align: center;
|
||||
border-radius: 50rpx;
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
font-size: 24rpx;
|
||||
color: #FFFFFF;
|
||||
margin-top: 6rpx;
|
||||
margin-left: 40rpx;
|
||||
}
|
||||
|
||||
.bg {
|
||||
background: #FFFFFF;
|
||||
}
|
||||
|
||||
.ytp_view {
|
||||
background: #e3e3e3;
|
||||
width: 400rpx;
|
||||
border-radius: 10rpx;
|
||||
font-size: 28rpx;
|
||||
text-align: center;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
color: #848484;
|
||||
margin-top: 40rpx;
|
||||
}
|
||||
|
||||
.tp_view {
|
||||
background: #ee6c54;
|
||||
width: 400rpx;
|
||||
border-radius: 10rpx;
|
||||
font-size: 28rpx;
|
||||
text-align: center;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
color: #FFFFFF;
|
||||
margin-top: 40rpx;
|
||||
}
|
||||
|
||||
.sticky-tabs {
|
||||
z-index: 990;
|
||||
position: sticky;
|
||||
top: var(--window-top);
|
||||
// background-color: #fff;
|
||||
}
|
||||
|
||||
/* // 使用mescroll-uni,则top为0 */
|
||||
.mescroll-uni,
|
||||
/deep/.mescroll-uni {
|
||||
.sticky-tabs {
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.demo-tip {
|
||||
padding: 18upx;
|
||||
font-size: 24upx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.line_s {
|
||||
display: inline-flex;
|
||||
width: 10rpx;
|
||||
height: 10rpx;
|
||||
background: #1AD566;
|
||||
border-radius: 50%;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
|
||||
.line_x {
|
||||
display: inline-flex;
|
||||
width: 10rpx;
|
||||
height: 10rpx;
|
||||
background: #000000;
|
||||
border-radius: 50%;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
|
||||
.box {
|
||||
// border: 3rpx solid #005dff;
|
||||
background: #E8FAE1;
|
||||
color: #096f4b;
|
||||
padding: 5rpx 15rpx;
|
||||
font-size: 26rpx;
|
||||
letter-spacing: 2rpx;
|
||||
border-radius: 8rpx;
|
||||
// margin-top: 10rpx;
|
||||
margin-right: 8upx;
|
||||
}
|
||||
|
||||
.actve {
|
||||
font-size: 30rpx;
|
||||
font-family: PingFang SC;
|
||||
font-weight: 800;
|
||||
color: #20C675;
|
||||
}
|
||||
|
||||
.tabview1 {
|
||||
// width: 686upx;
|
||||
// height: 100upx;
|
||||
background: #FFFFFF;
|
||||
// z-index: 99;
|
||||
// display: flex;
|
||||
// line-height: 100upx;
|
||||
|
||||
.tabview {
|
||||
// width: 686upx;
|
||||
// // height: 100upx;
|
||||
border-radius: 24rpx 24rpx 0 0;
|
||||
// margin-top: -50upx;
|
||||
// z-index: 99;
|
||||
display: flex;
|
||||
line-height: 100upx;
|
||||
|
||||
.tabItem_sel {
|
||||
font-size: 32upx;
|
||||
font-family: PingFang SC;
|
||||
font-weight: 800;
|
||||
color: #ffffff;
|
||||
background: linear-gradient(to right, #223845, #00a85b);
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.tabItem {
|
||||
font-size: 32upx;
|
||||
font-family: PingFang SC;
|
||||
color: #333333;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.tabsx {
|
||||
width: 686upx;
|
||||
border-radius: 24rpx;
|
||||
padding-bottom: 10rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 20rpx 30rpx;
|
||||
font-size: 26rpx;
|
||||
|
||||
.active {
|
||||
color: #20C675;
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.aa {
|
||||
background: linear-gradient(to right, #223845, #00a85b);
|
||||
width: 46px;
|
||||
text-align: center;
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
margin-left: 4px;
|
||||
color: #ffffff;
|
||||
box-shadow: 0 0 3px #dddddd;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.bb {
|
||||
width: 46px;
|
||||
text-align: center;
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
margin-left: 4px;
|
||||
color: #666666;
|
||||
border-radius: 4px;
|
||||
background-color: #f7f7f7;
|
||||
}
|
||||
|
||||
//地图标点样式
|
||||
/deep/.custom-content-marker {
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
|
||||
|
||||
.marker_border {
|
||||
//border: black solid;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
padding: 5px;
|
||||
background: white;
|
||||
box-shadow: 0px 5px 10px #888888;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.marker_foot {
|
||||
// height: 50px;
|
||||
// width: 50px;
|
||||
// background: black;
|
||||
// transform: rotate(45deg);
|
||||
// position: absolute;
|
||||
// top: 50px;
|
||||
// overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
/deep/.custom-content-marker img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.make-now{
|
||||
background: linear-gradient(90deg, rgb(1, 156, 136), rgb(15, 167, 139), rgb(53, 196, 149));
|
||||
color: rgb(255, 255, 255);
|
||||
width: 200rpx;
|
||||
border-radius: 15px;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.therap-pin{
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
.therap-pin span:nth-child(2){
|
||||
color: #019c88;
|
||||
}
|
||||
.therap-pin span:nth-child(1){
|
||||
color: #666;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
.terap-button{
|
||||
background: linear-gradient(90deg, #019C88, #0FA78B, #35C495);
|
||||
color: #ffffff;
|
||||
width:130rpx;
|
||||
height: 60rpx;
|
||||
border-radius: 10upx;
|
||||
line-height: 58rpx;
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue