命令行提交
This commit is contained in:
+32
-30
@@ -161,7 +161,7 @@
|
||||
</view>
|
||||
<view class="bar"></view>
|
||||
<view class="detail" v-if="info.exchange_vote && info.exchange_vote.vote_title">
|
||||
<view class="votebox" v-if="info.exchange_vote.is_have_voted!=1">
|
||||
<view class="votebox" v-if="info.exchange_vote.is_have_voted==0 ">
|
||||
<view class="name">在线投票</view>
|
||||
<view class="title" >{{ info.exchange_vote.vote_title }}</view>
|
||||
<view class="group">
|
||||
@@ -179,10 +179,10 @@
|
||||
</up-radio>
|
||||
</view>
|
||||
</up-radio-group>
|
||||
<view class="btn" @click="addVote">投票</view>
|
||||
<view class="btn" @click="addVote()">投票</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="votebox" v-else>
|
||||
<view class="votebox" v-if="info.exchange_vote.is_enabled==0 || info.exchange_vote.is_have_voted==1 ">
|
||||
<view class="name">在线投票</view>
|
||||
<view class="title">{{ info.exchange_vote.vote_title }}</view>
|
||||
<view class="options">
|
||||
@@ -582,7 +582,6 @@
|
||||
placeholder="请输入打赏积分"
|
||||
type="number"
|
||||
border="surround"
|
||||
@change="inputPoint"
|
||||
v-model="givePointValue"
|
||||
></up-input>
|
||||
<view class="add" @click="changePoint('add')">+</view>
|
||||
@@ -666,7 +665,7 @@ const comment_doctorId=ref('');
|
||||
const commentTextarea=ref(null)
|
||||
const isLock=ref(false);
|
||||
const confirmGive = () => {
|
||||
showGive.value = false;
|
||||
//showGive.value = false;
|
||||
givePoint();
|
||||
};
|
||||
const oldScrollTop=ref(0)
|
||||
@@ -711,31 +710,6 @@ const scrolltolower=(rootId)=>{
|
||||
}
|
||||
|
||||
}
|
||||
const inputPoint=(val)=>{
|
||||
console.log(val);
|
||||
if (givePointValue.value <=1) {
|
||||
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "每次打赏积分必须大于0",
|
||||
});
|
||||
setTimeout(()=>{
|
||||
givePointValue.value =1;
|
||||
})
|
||||
};
|
||||
|
||||
if(!(/^[1-9]\d*$/.test(val))){
|
||||
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "每次打赏积分必须是大于0的整数",
|
||||
});
|
||||
setTimeout(()=>{
|
||||
givePointValue.value = 5;
|
||||
})
|
||||
}
|
||||
|
||||
};
|
||||
const changePoint = (type) => {
|
||||
if (type == 'minus') {
|
||||
if (givePointValue.value >5) {
|
||||
@@ -805,6 +779,33 @@ const getUserPoint=()=>{
|
||||
})
|
||||
}
|
||||
const givePoint=()=>{
|
||||
if(givePointValue.value==null){
|
||||
//givePointValue.value =1;
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "每次打赏积分必须大于0",
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (givePointValue.value <=1) {
|
||||
givePointValue.value =1;
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "每次打赏积分必须大于0",
|
||||
});
|
||||
return false;
|
||||
};
|
||||
|
||||
if(!(/^[1-9]\d*$/.test(givePointValue.value))){
|
||||
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "每次打赏积分必须是大于0的整数",
|
||||
});
|
||||
givePointValue.value = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
if(point.value<givePointValue.value){
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
@@ -830,6 +831,7 @@ const givePoint=()=>{
|
||||
icon:'none',
|
||||
title:'打赏成功!'
|
||||
})
|
||||
givePointValue.value = 5;
|
||||
showGive.value=false;
|
||||
})
|
||||
}
|
||||
|
||||
+179
-7
@@ -155,6 +155,19 @@
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
<up-overlay :show="showModal" :mask-click-able="false">
|
||||
<view class="zanboxpop">
|
||||
<view class="zanwraper">
|
||||
<view class="title">提示</view>
|
||||
<view class="content">{{reason}} </view>
|
||||
|
||||
<view class="btnbox" style="justify-content: center;">
|
||||
<view class="cancle" @click="showModal = false">取消</view>
|
||||
<view class="ok" @click="goPrefect">去完善</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</up-overlay>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
@@ -164,8 +177,10 @@ import api from "@/api/api";
|
||||
import auth from "@/utils/auth";
|
||||
const code = ref('');
|
||||
const phone = ref(null);
|
||||
const showModal=ref(false)
|
||||
const isPwdPic = ref(false);
|
||||
const isPhoneLogin = ref(true);
|
||||
const reason=ref('');
|
||||
const customStyle = reactive({
|
||||
height: "90rpx",
|
||||
fontSize: "36rpx",
|
||||
@@ -260,15 +275,31 @@ const getPhoneNumber = (e) => {
|
||||
doctor_id:result.doctor_id,
|
||||
});
|
||||
goPage()
|
||||
}).catch((err)=>{
|
||||
uni.showToast({
|
||||
title: err,
|
||||
icon: "none",
|
||||
});
|
||||
});
|
||||
}).catch(err=>{
|
||||
let err_result=err.data;
|
||||
if(err_result.code==10007){
|
||||
showModal.value=true;
|
||||
reason.value=err_result.message;
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
const goPrefect=()=>{
|
||||
showModal.value=false;
|
||||
const { envVersion } = uni.getAccountInfoSync().miniProgram;
|
||||
let src =''
|
||||
if (envVersion == "release") {
|
||||
src = "https://wx.igandan.com/hcp/perfect?mobile="+phone.value+"&fromType=weChat";
|
||||
} else {
|
||||
src = "https://dev-wx.igandan.com/hcp/perfect?mobile="+phone.value+"&fromType=weChat";
|
||||
}
|
||||
uni.navigateTo({
|
||||
url:'/pages/register/register?src='+encodeURIComponent(src)
|
||||
})
|
||||
}
|
||||
const phoneLogin = () => {
|
||||
if (!isPhoneNum(phone.value)) return;
|
||||
if (!code.value){
|
||||
@@ -308,7 +339,15 @@ const phoneLogin = () => {
|
||||
doctor_id:result.doctor_id,
|
||||
});
|
||||
goPage()
|
||||
});
|
||||
}).catch(err=>{
|
||||
let err_result=err.data;
|
||||
if(err_result.code==10007){
|
||||
showModal.value=true;
|
||||
reason.value=err_result.message;
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -470,4 +509,137 @@ const start = () => {
|
||||
}
|
||||
}
|
||||
}
|
||||
.zanboxpop {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
.zanwraper {
|
||||
width: 630rpx;
|
||||
margin: 0 auto;
|
||||
padding-bottom: 50rpx;
|
||||
background: #f5f6f9;
|
||||
border-radius: 16rpx;
|
||||
.title {
|
||||
margin-top: 48rpx;
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
font-size: 36rpx;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
}
|
||||
.content {
|
||||
padding: 30rpx 0;
|
||||
background: #f5f6f9;
|
||||
text-align: center;
|
||||
:deep(.imgstyle){
|
||||
max-width: 100%!important;
|
||||
}
|
||||
:deep(._block){
|
||||
text-align: left!important;
|
||||
}
|
||||
}
|
||||
.count {
|
||||
margin-top: 24rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
.num {
|
||||
color: #ff0000;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
.earn {
|
||||
font-size: 32rpx;
|
||||
color: #3cc7c0;
|
||||
}
|
||||
}
|
||||
.countbox {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
margin: 30rpx 0px 40rpx;
|
||||
padding: 0 40rpx;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
.minus {
|
||||
flex-shrink: 0;
|
||||
margin-left: 10rp;
|
||||
width: 90rpx;
|
||||
height: 90rpx;
|
||||
font-size: 60rpx;
|
||||
color: #333;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #ffffff;
|
||||
border-radius: 12rpx;
|
||||
border: 2rpx solid #e9e9e9;
|
||||
}
|
||||
.add {
|
||||
flex-shrink: 0;
|
||||
width: 90rpx;
|
||||
margin-left: 10rpx;
|
||||
height: 90rpx;
|
||||
font-size: 60rpx;
|
||||
color: #333;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #fff;
|
||||
background: #3cc7c0;
|
||||
border-radius: 12rpx;
|
||||
border: 2rpx solid #3cc7c0;
|
||||
}
|
||||
:deep(.u-input__content__field-wrapper__field) {
|
||||
height: 60rpx;
|
||||
|
||||
font-size: 34rpx !important;
|
||||
text-align: center !important;
|
||||
}
|
||||
:deep(.u-input) {
|
||||
background: #f2f2f2;
|
||||
width: 200rpx !important;
|
||||
flex: none;
|
||||
}
|
||||
:deep(.u-input--radius) {
|
||||
border-radius: 24rrpx;
|
||||
}
|
||||
}
|
||||
.btnbox {
|
||||
margin: 0px 40rpx 0px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
.cancle {
|
||||
color: rgba(0, 0, 0, 0.3);
|
||||
width: 256rpx;
|
||||
height: 88rpx;
|
||||
background: #f5f6f9;
|
||||
border-radius: 25px;
|
||||
border: 2rpx solid rgba(0, 0, 0, 0.15);
|
||||
font-weight: 500;
|
||||
margin-right: 18rpx;
|
||||
font-size: 32rpx;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.ok {
|
||||
color: #fff;
|
||||
width: 256rpx;
|
||||
height: 88rpx;
|
||||
background: #3cc7c0;
|
||||
border-radius: 25px;
|
||||
border: 2rpx solid #3cc7c0;
|
||||
font-weight: 500;
|
||||
font-size: 32rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1669,7 +1669,13 @@ onLoad((options) => {
|
||||
);
|
||||
}
|
||||
.namebox {
|
||||
/* #ifdef H5 */
|
||||
padding-top: 51rpx;
|
||||
/* #endif */
|
||||
/* #ifdef MP-WEIXIN */
|
||||
padding-top: 102rpx;
|
||||
/* #endif */
|
||||
|
||||
justify-content: center;
|
||||
margin: 0rpx 30rpx 0rpx;
|
||||
position: relative;
|
||||
|
||||
@@ -137,11 +137,12 @@ const end = () => {
|
||||
const start = () => {
|
||||
customCode.opacity = 0.5;
|
||||
};
|
||||
onLoad(() => {
|
||||
onLoad((options) => {
|
||||
const { envVersion } = uni.getAccountInfoSync().miniProgram;
|
||||
|
||||
if(options.src){
|
||||
src.value=options.src
|
||||
console.log(decodeURIComponent(options.src))
|
||||
src.value=decodeURIComponent(options.src);
|
||||
}else{
|
||||
if (envVersion == "release") {
|
||||
src.value = "https://wx.igandan.com/hcp/toRegister?fromType=weChat";
|
||||
|
||||
Reference in New Issue
Block a user