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