Commit 5c60d0f3 by sunchao

部分bug修复

parent 2ddbecb6
<template>
<view class="search">
<input class="searchInput" type="text" name="" id="" v-model="queryName"/>
<text class="iconfont icon-sousuo" @click="searchBtn()"></text>
<form action="" style="width: 98%;" @submit="searchBtn()">
<input class="searchInput" type="text" name="" id="" v-model="queryName" />
<text class="iconfont icon-sousuo" @click="searchBtn()"></text>
</form>
<text class="iconfont icon-xiaoxi"></text>
<text class="system_msg" @click="jumpToSystemMsg()">{{messageUnreadCount}}</text>
</view>
......@@ -74,11 +76,13 @@
display: flex;
margin: 30rpx auto;
align-items: center;
form{
width: 95%;
margin-right: 20rpx;
}
.searchInput{
border-radius: 60rpx;
width: 95%;
background: linear-gradient(to right,#E6F5FC,#FDE9F2);
margin-right: 20rpx;
padding: 15rpx;
}
.icon-sousuo{
......
......@@ -64,8 +64,8 @@
"sdkConfigs" : {
"share" : {
"weixin" : {
"appid" : "wxec09b9be6cff4eb3",
"UniversalLinks" : "https://mcffp.anjibao.cn/uni-universallinks/__UNI__ED34740/"
"appid" : "wxb591d0034cdcf0cd",
"UniversalLinks" : "https://mcffp.anjibao.cn/app/"
}
},
"ad" : {},
......@@ -75,14 +75,14 @@
},
"weixin" : {
"__platform__" : [ "ios", "android" ],
"appid" : "wxec09b9be6cff4eb3",
"UniversalLinks" : "https://mcffp.anjibao.cn/uni-universallinks/__UNI__ED34740/"
"appid" : "wxb591d0034cdcf0cd",
"UniversalLinks" : "https://mcffp.anjibao.cn/app/"
}
},
"oauth" : {
"weixin" : {
"appid" : "wxec09b9be6cff4eb3",
"UniversalLinks" : "https://mcffp.anjibao.cn/uni-universallinks/__UNI__ED34740/"
"appid" : "wxb591d0034cdcf0cd",
"UniversalLinks" : "https://mcffp.anjibao.cn/app/"
}
}
},
......
......@@ -268,6 +268,14 @@
},
saveInfo(){
if(this.applyParam.approvalStatus== 0 || this.applyParam.approvalStatus == 2){
if(!this.applyParam.areaId){
uni.showToast({
title: '请选择所属组织',
duration: 2000,
icon: 'none'
})
return;
}
if(!this.applyParam.name){
uni.showToast({
title: '请输入姓名',
......
......@@ -44,8 +44,8 @@
</view>
</view>
<!-- 提交申请 -->
<view class="submitApply" @click="submit()">
<text>提交申请</text>
<view class="submitApply" @click="submit()" >
<text :class="{'gray':readonlyFlag}" >提交申请</text>
</view>
<!-- 弹窗 -->
<uni-popup ref="popup" type="bottom" background-color="#fff">
......@@ -85,7 +85,8 @@
userId: uni.getStorageSync('cffp_userId'),
dropInfo:{},
dropIndex:0,
dropReasons:['']
dropReasons:[''],
readonlyFlag:false
};
},
methods:{
......@@ -117,28 +118,33 @@
},
// 提交申请
submit(){
const param = {
orderNo:this.dropInfo.orderNo,
paymentMethod:this.dropInfo.paymentMethod,
userId:this.userId,
totalFee:this.dropInfo.orderPrice,
refundFee:this.dropInfo.refundFee,
integralExchange:this.dropInfo.integralExchange,
refundIntegralExchange:this.dropInfo.refundIntegralExchange,
refundReason:this.dropReasons[this.dropIndex]['dropOptionName']
}
api.unifiedRefund(param).then(res=>{
if(res['success']){
uni.navigateTo({
url:`/pages/afterSaleDetail/afterSaleDetail?orderNo=${this.dropInfo.orderNo}&afterSalesFlag=3`
})
}else{
uni.showToast({
title: res['message'],
duration: 2000
});
if(!this.readonlyFlag){
//提交按钮置灰
this.readonlyFlag = true;
const param = {
orderNo:this.dropInfo.orderNo,
paymentMethod:this.dropInfo.paymentMethod,
userId:this.userId,
totalFee:this.dropInfo.orderPrice,
refundFee:this.dropInfo.refundFee,
integralExchange:this.dropInfo.integralExchange,
refundIntegralExchange:this.dropInfo.refundIntegralExchange,
refundReason:this.dropReasons[this.dropIndex]['dropOptionName']
}
})
api.unifiedRefund(param).then(res=>{
if(res['success']){
uni.navigateTo({
url:`/pages/afterSaleDetail/afterSaleDetail?orderNo=${this.dropInfo.orderNo}&afterSalesFlag=3`
})
}else{
uni.showToast({
title: res['message'],
duration: 2000
});
}
this.readonlyFlag = false;
})
}
},
// 退款原因
dropOptionsQuery(){
......@@ -202,7 +208,11 @@
margin: 0 auto;
}
text.gray{
background: #666;
}
}
.popup-content{
view{
font-size: 30rpx;
......
......@@ -79,7 +79,7 @@
})
return false
}
api.oneKeyRead({systemType:1,userId:2}).then((res)=>{
api.oneKeyRead({systemType:1,userId:uni.getStorageSync('cffp_userId')}).then((res)=>{
if(res['success']){
uni.showToast({
title: '已清除所有未读信息',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment