From 55ea3d5de0c128d82bbc85551b3f52b917abbd68 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 22 八月 2025 20:58:18 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/jinkuai
---
small-program/pages/employment-certification/employment-certification.vue | 61 +++++++++++++++++-------------
1 files changed, 34 insertions(+), 27 deletions(-)
diff --git a/small-program/pages/employment-certification/employment-certification.vue b/small-program/pages/employment-certification/employment-certification.vue
index 61d1915..6f91d16 100644
--- a/small-program/pages/employment-certification/employment-certification.vue
+++ b/small-program/pages/employment-certification/employment-certification.vue
@@ -1,6 +1,12 @@
<template>
<view class="box">
- <view class="box-head" :style="{ backgroundImage: 'url(' + bgImg + ')' }">
+ <view class="box-head">
+ <!-- 鐢ㄥ伐 -->
+ <image class="box-head-bg" src="@/static/image/bg_renzheng_yonggong@2x.png" mode="widthFix" v-if="title === '鐢ㄥ伐璁よ瘉'"></image>
+ <!-- 璐ц繍 -->
+ <image class="box-head-bg" src="@/static/image/bg_renzheng_huoyun@2x.png" mode="widthFix" v-if="title === '璐ц繍璁よ瘉'"></image>
+ <!-- 鐢ㄩ -->
+ <image class="box-head-bg" src="@/static/image/bg_renzheng_gongcan@2x.png" mode="widthFix" v-if="title === '渚涢璁よ瘉'"></image>
<view class="box-head-info">
<text>{{title}}</text>
<text>璇锋寜瑕佹眰濉啓璁よ瘉淇℃伅</text>
@@ -205,17 +211,13 @@
},
data() {
return {
- bgImg: require('@/static/image/bg_renzheng_yonggong@2x.png'),
+ bgImg: null,
title: '鐢ㄦ埛璁よ瘉',
flag: null,
-<<<<<<< HEAD
- isCompany: false,
- loading: false,
-=======
+
isCompany:false,
loading:false,
- info: {},
->>>>>>> 66fcf61061d6d275c1848df5d3f8e0082f6b02ba
+ info: {},
form: {
"companyName": "",
authType: 0,
@@ -246,12 +248,8 @@
var flag = options.flag
this.flag = flag
this.initFormData()
-<<<<<<< HEAD
- switch (flag) {
-=======
this.getApplyData()
- switch(flag){
->>>>>>> 66fcf61061d6d275c1848df5d3f8e0082f6b02ba
+ switch(flag){
case '1':
this.title = '璐ц繍璁よ瘉'
this.bgImg = require('@/static/image/bg_renzheng_huoyun@2x.png')
@@ -284,6 +282,7 @@
return false
},
applySubmit() {
+ console.log(this.loading)
if (this.loading) {
return
}
@@ -294,6 +293,7 @@
this.inNullParam(this.form.lgt) ||
this.inNullParam(this.form.location) ||
this.inNullParam(this.form.telephone)) {
+
uni.showToast({
title: '瀵逛笉璧凤紝璇锋寜瑕佹眰濉啓鐢宠淇℃伅1锛�',
icon: "none",
@@ -348,23 +348,26 @@
param.img2 = this.form.img21
}
uni.requestSubscribeMessage({
- tmplIds: ['4H9ztG4E9BxJLwMuYSZ6oiM7yb4KX7u7bYhkhYJP0-Y'],
+ tmplIds: ['VJho7-lf-4_WZFfOzenDndgwNDIA0EvCiE6vqBnExpQ'],
success(res) {
console.log('鎻愪氦鍙傛暟锛�', param)
- this.$u.api.applyForIdentity(param).then(res => {
+ that.$u.api.applyForIdentity(param).then(res => {
if (res.code === 200) {
uni.showToast({
title: res.message || '鐢宠鎴愬姛 ',
icon: "none",
duration: 2000
});
- uni.navigateBack({
- delta: 1
+ uni.switchTab({
+ url:'/pages/mine/mine'
});
}
}).finally(() => {
that.loading = false
})
+ },
+ fail(err) {
+ console.log(err)
}
})
},
@@ -441,11 +444,7 @@
})
}
})
- },
-<<<<<<< HEAD
- uploadImg(index) {
- var that = this
-=======
+ },
getApplyData(){
var that = this
var param ={ type:that.flag}
@@ -472,13 +471,11 @@
that.form.img21Full = that.info.imgList.length>1?that.info.imgList[1]:null
}
}
-
}
})
},
uploadImg(index){
- var that =this
->>>>>>> 66fcf61061d6d275c1848df5d3f8e0082f6b02ba
+ var that =this
uni.chooseImage({
count: 1, // 榛樿9
sizeType: ['original', 'compressed'],
@@ -592,8 +589,18 @@
height: 300rpx;
padding: 34rpx 40rpx 0 40rpx;
box-sizing: border-box;
- background-repeat: no-repeat;
- background-size: 100% 100%;
+ // background-repeat: no-repeat;
+ // background-size: 100% 100%;
+ position: relative;
+
+ .box-head-bg {
+ width: 100%;
+ height: 300rpx;
+ position: absolute;
+ top: 0;
+ left: 0;
+ z-index: -1;
+ }
.box-head-botton {
width: 100%;
--
Gitblit v1.9.3