no message
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
},
|
||||
methods: {
|
||||
onCancel(){
|
||||
this.$emit('click');
|
||||
this.$emit('cancel');
|
||||
},
|
||||
onOk(){
|
||||
this.$emit('ok');
|
||||
@@ -82,7 +82,9 @@
|
||||
flex-direction: column;
|
||||
background-color: rgba(0,0,0,0.3);
|
||||
position: fixed;
|
||||
z-index: 2000;
|
||||
left:0;
|
||||
top:0;
|
||||
z-index: 10000;
|
||||
.down-panel{
|
||||
width:100%;
|
||||
height:764rpx;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<Header title="查看合同" />
|
||||
<view class="contract-view">
|
||||
<view class="top-info flex-r-lr">
|
||||
<image src="../../static/logo.png"></image>
|
||||
<image src="@/static/new/he.png"></image>
|
||||
<view class="right-view">
|
||||
<text class="text-36 text-zu">消费型合伙人协议</text>
|
||||
<view class="bottom-panel">
|
||||
@@ -32,6 +32,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<up-toast ref="uToastRef"></up-toast>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -3,12 +3,14 @@
|
||||
<TopSafe></TopSafe>
|
||||
<Header title="我的合同" />
|
||||
<view class="contract-view">
|
||||
<ContractItem :type="obj && obj.state" :text="obj && obj.signatureName" :time="obj && obj.time" class="mt-24"
|
||||
<ContractItem :type="type" :text="obj && obj.signatureName" :time="obj && obj.time" class="mt-24"
|
||||
@click="onBtn"></ContractItem>
|
||||
</view>
|
||||
|
||||
<down-popup :show="downShow" @ok="onSignContract" @click="downShow = false" />
|
||||
|
||||
<u-modal :show="tipsShow" :showCancelButton="true" confirmText="去认证"
|
||||
@cancel="onTipsCancel" @confirm="onConfirm" confirmColor="#7934F6"
|
||||
title="提示" content='签署合同需要进行实名认证,请先完成实名认证'></u-modal>
|
||||
<DownPopup :show="downShow" @ok="onSignContract" @cancel="onCancel" />
|
||||
<up-toast ref="uToastRef"></up-toast>
|
||||
<!-- 腾讯电子签H5 → 集成到UniApp -->
|
||||
<web-view v-if="signUrl" :src="signUrl" @message="handleMessage"></web-view>
|
||||
</view>
|
||||
@@ -34,20 +36,48 @@ export default {
|
||||
signUrl: null,
|
||||
downShow: false,
|
||||
selectItem: null,
|
||||
tipsShow:false,
|
||||
userInfo:null
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
},
|
||||
onLoad(){
|
||||
this.init();
|
||||
this.userinfo();
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
// this.isSignContract()
|
||||
this.getSignContract()
|
||||
this.isSignContract()
|
||||
|
||||
},
|
||||
userinfo(){
|
||||
getUserInfo().then(res=>{
|
||||
if(res.bizcode == 100){
|
||||
this.userInfo = res.data;
|
||||
}
|
||||
console.log('res',res)
|
||||
})
|
||||
},
|
||||
onConfirm(){
|
||||
this.onTipsCancel();
|
||||
uni.navigateTo({
|
||||
url:'/pages/mine_package/mine_authentication/mine_authentication'
|
||||
})
|
||||
},
|
||||
onTipsCancel(){
|
||||
this.tipsShow =false;
|
||||
},
|
||||
onCancel(){
|
||||
this.downShow = false;
|
||||
},
|
||||
isSignContract() {
|
||||
signContract().then(res => {
|
||||
if (res.bizcode == 100) {
|
||||
this.type = res.data;
|
||||
if(this.type){
|
||||
this.getSignContract()
|
||||
}
|
||||
} else {
|
||||
this.$refs.uToastRef.show({
|
||||
type: 'error',
|
||||
@@ -58,7 +88,7 @@ export default {
|
||||
},
|
||||
getSignContract() {
|
||||
getContractList().then(res => {
|
||||
if (res.bizcode == 100) {
|
||||
if (res.bizcode == 100 && res.data.length) {
|
||||
this.obj = res.data[0];
|
||||
this.obj.time = func.formatDate(new Date(res.data[0].signatureTime), 3)
|
||||
} else {
|
||||
@@ -82,6 +112,18 @@ export default {
|
||||
},
|
||||
// 发起合同签章
|
||||
async onSignContract() {
|
||||
if(this.userInfo.certStatus == 0){
|
||||
this.downShow = false;
|
||||
this.tipsShow = true;
|
||||
return;
|
||||
}else if(this.userInfo.certStatus == 1){
|
||||
this.downShow = false;
|
||||
this.$refs.uToastRef.show({
|
||||
type: 'success',
|
||||
message: '请耐心等待审核通过',
|
||||
});
|
||||
return;
|
||||
}
|
||||
const params = {
|
||||
// 需要的参数
|
||||
orderId: this.selectItem.id,
|
||||
|
||||
@@ -189,20 +189,25 @@
|
||||
|
||||
<!-- 腾讯电子签H5 → 集成到UniApp -->
|
||||
<web-view v-if="signUrl" :src="signUrl" @message="handleMessage"></web-view>
|
||||
<down-popup :show="downShow" @ok="onSignContract" @click="downShow = false" />
|
||||
<u-modal :show="tipsShow" :showCancelButton="true" confirmText="去认证"
|
||||
@cancel="onTipsCancel" @confirm="onConfirm" confirmColor="#7934F6"
|
||||
title="提示" content='签署合同需要进行实名认证,请先完成实名认证'></u-modal>
|
||||
<DownPopup :show="downShow" @ok="onSignContract" @cancel="onCancel" />
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { MINE_ORDER_TYPE, ORDER_TYPE, ORDER_STATUS, getValue } from '@/utils/enumUtils.js';
|
||||
import { ORDER_STATUS_CSS } from '@/utils/enumCssUtils.js';
|
||||
import downPopup from '@/components/common/down-popup.vue'
|
||||
import DownPopup from '@/components/common/down-popup.vue'
|
||||
import { getOrderList, confirmReceipt, getSignUrl, signContract, isSignContract, getMiniProgramSignUrl } from '@/api/order.js';
|
||||
import dayjs from 'dayjs';
|
||||
import { formatDate1, copyData } from '@/utils/index.js'
|
||||
import {getUserInfo} from '@/api/auth.js'
|
||||
|
||||
export default {
|
||||
components: { downPopup },
|
||||
components: { DownPopup },
|
||||
computed: {
|
||||
MINE_ORDER_TYPE() {
|
||||
return MINE_ORDER_TYPE;
|
||||
@@ -280,6 +285,7 @@ export default {
|
||||
signUrl: null,
|
||||
downShow: false,
|
||||
selectItem: null,
|
||||
userInfo:null
|
||||
|
||||
}
|
||||
},
|
||||
@@ -291,12 +297,33 @@ export default {
|
||||
if (this.form.type === MINE_ORDER_TYPE.NOT_RECEIVE) {
|
||||
this.checkSigned();
|
||||
}
|
||||
this.userinfo();
|
||||
},
|
||||
methods: {
|
||||
dayjs,
|
||||
getValue,
|
||||
formatDate1,
|
||||
copyData,
|
||||
onTipsCancel(){
|
||||
this.tipsShow =false;
|
||||
},
|
||||
userinfo(){
|
||||
getUserInfo().then(res=>{
|
||||
if(res.bizcode == 100){
|
||||
this.userInfo = res.data;
|
||||
}
|
||||
console.log('res',res)
|
||||
})
|
||||
},
|
||||
onCancel(){
|
||||
this.downShow = false;
|
||||
},
|
||||
onConfirm(){
|
||||
this.onTipsCancel();
|
||||
uni.navigateTo({
|
||||
url:'/pages/mine_package/mine_authentication/mine_authentication'
|
||||
})
|
||||
},
|
||||
copyMobile(mobile) {
|
||||
copyData(mobile);
|
||||
this.afterShow = false;
|
||||
@@ -412,7 +439,9 @@ export default {
|
||||
*/
|
||||
confirmReceiptOk(item) {
|
||||
const then = this;
|
||||
if (!isCheckSigne.value) {
|
||||
|
||||
if (!this.isCheckSigne) {
|
||||
|
||||
this.selectItem = item;
|
||||
this.downShow = true;
|
||||
return;
|
||||
@@ -449,6 +478,19 @@ export default {
|
||||
|
||||
// 发起合同签章
|
||||
async onSignContract() {
|
||||
if(this.userInfo.certStatus == 0){
|
||||
this.downShow = false;
|
||||
this.tipsShow = true;
|
||||
return;
|
||||
}else if(this.userInfo.certStatus == 1){
|
||||
this.downShow = false;
|
||||
this.$refs.uToastRef.show({
|
||||
type: 'success',
|
||||
message: '请耐心等待审核通过',
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
const params = {
|
||||
// 需要的参数
|
||||
orderId: this.selectItem.id,
|
||||
@@ -538,6 +580,7 @@ export default {
|
||||
background-color: $app-bj;
|
||||
padding: 100rpx 30rpx 30rpx;
|
||||
overflow-y: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.order_header {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
<view class="purse_item_title-right">
|
||||
<view v-for="(btn, index) in getOperationButtons(item)" :key="index" :type="btn.type" class="button"
|
||||
:class="btn.type + '_button'" @click="jumpInfo(item, btn.type)">{{ btn.text }}</view>
|
||||
:class="btn.type + '_button'" @click.stop="jumpInfo(item, btn.type)">{{ btn.text }}</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
Reference in New Issue
Block a user