页面修改

This commit is contained in:
zmj 2023-11-13 17:59:22 +08:00
parent 4408ac20dd
commit c4f9c1f7d8
2 changed files with 710 additions and 699 deletions

View File

@ -23,7 +23,9 @@
</view>
</view>
<view class="need_contract" v-else>
<button v-if="shareholder.check_status==0" class="btns" style="width: 694rpx;height: 90rpx; margin: 0 auto;border-radius: 54rpx;overflow: hidden;background-color: #0122c7;color: #fff;" @click="clickContract(1)">
<button v-if="shareholder.check_status==0" class="btns"
style="width: 694rpx;height: 90rpx; margin: 0 auto;border-radius: 54rpx;overflow: hidden;background-color: #0122c7;color: #fff;"
@click="clickContract(1)">
<u-icon name="../../static/img/company/HT.png" size="20" style="margin-right: 10rpx;"></u-icon>
发起合同
</button>
@ -108,14 +110,19 @@
</view> -->
<view class="button">
<view class="retreat" @click="retreat">退股</view>
<view class="hand" :class="{'disable': !shareholder.is_done_task || !shareholder.is_contract }" @click="hand">上交</view>
<view class="hand" :class="{'disable': !shareholder.is_done_task || !shareholder.is_contract }"
@click="hand">上交</view>
</view>
<u-modal :show="modelShow" title="提醒" :content="modelType==1?'确定要生成合同吗':'请确认合同无误后再发送'" closeOnClickOverlay showCancelButton cancel-text="取消" confirm-text="确认" close="modelShow=false" @cancel="modelShow=false" @confirm="modelType==1?createContract():addContract();modelShow=false"></u-modal>
<u-modal :show="modelShow" title="提醒" :content="modelType==1?'确定要生成合同吗':'请确认合同无误后再发送'" closeOnClickOverlay
showCancelButton cancel-text="取消" confirm-text="确认" close="modelShow=false" @cancel="modelShow=false"
@confirm="modelType==1?createContract():addContract();modelShow=false"></u-modal>
</view>
</template>
<script>
import { Toast } from '../../libs/uniApi';
import {
Toast
} from '../../libs/uniApi';
import {
download_file
} from "@/api/junziqian.js"
@ -196,7 +203,7 @@
this.list = [];
await this.loadList();
},
async loadList(){
async loadList() {
if (this.loadConfig.status == "nomore") return;
this.loadConfig.status = "loading";
let res = await companyAccountLog({
@ -239,15 +246,18 @@
Toast('暂无内容')
},
hand() {
if(!this.shareholder.is_done_task || !this.shareholder.is_contract) return Toast('暂时无法上交');
if (!this.shareholder.is_done_task || !this.shareholder.is_contract) return Toast('暂时无法上交');
this.handShare();
},
async handShare(){
async handShare() {
await companyPayShareCapital();
Toast('上交成功!');
setTimeout(() => {
uni.navigateBack();
}, 1000)
},
clickContract(e){
clickContract(e) {
this.modelType = e;
this.modelShow = true;
},
@ -317,7 +327,7 @@
}, 1000);
},
navTo(url) {
if(url){
if (url) {
uni.showLoading({
title: '加载中',
mask: true
@ -328,7 +338,7 @@
uni.hideLoading()
}
})
}else Toast('暂未开放')
} else Toast('暂未开放')
},
}
}
@ -636,6 +646,7 @@
color: #eee;
}
}
.btns {
color: white;
background-color: $theme-oa-color;

View File

@ -60,7 +60,7 @@ function baseRequestTwo(url, method, data, {
if (noVerify)
reslove(res.data);
else if (res.data.code == -1) {
if(onReLogin) {
if (onReLogin) {
store.commit('LOGOUT');
return reject();
}
@ -73,9 +73,9 @@ function baseRequestTwo(url, method, data, {
noAuth,
noVerify
}
}).then((e)=>{
}).then((e) => {
reslove(e);
}).catch((err)=>{
}).catch((err) => {
reject(res.data);
})
// store.commit("SET_REQUEST", false);