Merge branch 'master' of https://git.yuzhankeji.cn/TmOct5/dou_fire
This commit is contained in:
@@ -74,9 +74,9 @@ const perfectBase = orderId => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 提交基础资料信息
|
// 提交基础资料信息
|
||||||
const updPerfectBase = (orderId, data) => {
|
const updPerfectBase = (orderUserId, data) => {
|
||||||
return request({
|
return request({
|
||||||
url : 'business/' + orderId + '/user/base',
|
url : 'business/' + orderUserId + '/user/base',
|
||||||
method : 'POST',
|
method : 'POST',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -23,13 +23,20 @@ const code = () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 用户信息
|
// 用户基础信息
|
||||||
const info = () => {
|
const info = () => {
|
||||||
return request({
|
return request({
|
||||||
url : 'app/user/info'
|
url : 'app/user/info'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取用户信息
|
||||||
|
const userInfo = () => {
|
||||||
|
return request({
|
||||||
|
url : 'user'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 更新用户资料
|
// 更新用户资料
|
||||||
const updInfo = (key, value) => {
|
const updInfo = (key, value) => {
|
||||||
return request({
|
return request({
|
||||||
@@ -76,6 +83,7 @@ export {
|
|||||||
relations,
|
relations,
|
||||||
code,
|
code,
|
||||||
info,
|
info,
|
||||||
|
userInfo,
|
||||||
updInfo,
|
updInfo,
|
||||||
certified,
|
certified,
|
||||||
certification,
|
certification,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name" : "抖火",
|
"name" : "抖火",
|
||||||
"appid" : "__UNI__C305C03",
|
"appid" : "__UNI__C305C03",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.0.3",
|
"versionName" : "1.0.4",
|
||||||
"versionCode" : "100",
|
"versionCode" : "100",
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
|
|||||||
19
pages.json
19
pages.json
@@ -377,6 +377,25 @@
|
|||||||
"navigationBarBackgroundColor": "#446EFE",
|
"navigationBarBackgroundColor": "#446EFE",
|
||||||
"navigationBarTextStyle": "white"
|
"navigationBarTextStyle": "white"
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
"path": "pages/work/perfectBasisInfo",
|
||||||
|
"auth": true,
|
||||||
|
"name": "OrderPerfectBasisInfo",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "基础资料信息",
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"navigationBarBackgroundColor": "#ffffff"
|
||||||
|
}
|
||||||
|
|
||||||
|
}, {
|
||||||
|
"path": "pages/work/perfectInstitutionsInfo",
|
||||||
|
"auth": true,
|
||||||
|
"name": "OrderPerfectInstitutionsInfo",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "机构资料信息",
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"navigationBarBackgroundColor": "#ffffff"
|
||||||
|
}
|
||||||
}],
|
}],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
"navigationBarTextStyle": "black",
|
"navigationBarTextStyle": "black",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="registered-content">
|
<view class="registered-content">
|
||||||
<view class="title">你好,欢迎使用抖火法律</view>
|
<view class="title">你好,欢迎使用抖火法律</view>
|
||||||
<view class="submit-title">请填写账号信息</view>
|
<view class="submit-title">请填信息,请设置8位以上密码并包含大小写</view>
|
||||||
<view class="from">
|
<view class="from">
|
||||||
<view class="from-inpus from-input-phoen">
|
<view class="from-inpus from-input-phoen">
|
||||||
<label>+86</label>
|
<label>+86</label>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="btns">
|
<view class="btns">
|
||||||
<button @click="$Router.push({name: 'CollegeResults', params: {id: item.answer.last_answer_id}})" v-if="item.answer.is_finish">查看成绩</button>
|
<button @click="$Router.push({name: 'CollegeResults', params: {id: item.answer.last_answer_id}})" v-if="item.answer.is_finish">查看成绩</button>
|
||||||
<button @click="$Router.push({name: 'CollegeAnswer', params: {id: item.evaluation_id}})" v-else>开始答题</button>
|
<button @click="onAnswer(item.evaluation_id, item.canDo)" v-else>开始答题</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
@@ -39,6 +39,30 @@
|
|||||||
icon : 'none'
|
icon : 'none'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
onAnswer(id, isTo){
|
||||||
|
if(!isTo){
|
||||||
|
uni.showModal({
|
||||||
|
title : '提示',
|
||||||
|
content : '暂未完成实名认证,完成后才可以申请参加考试',
|
||||||
|
cancelText : '稍后认证',
|
||||||
|
confirmText : '立即认证',
|
||||||
|
success : res => {
|
||||||
|
if(res.confirm){
|
||||||
|
this.$Router.push({ name: 'UserCertification' })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.$Router.push({
|
||||||
|
name : 'CollegeAnswer',
|
||||||
|
params : {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,27 +1,112 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view class="content">
|
||||||
<button @click="onLogout()">退出登录</button>
|
<view class="set-nav-block">
|
||||||
|
<view class="set-nav" @click="onNav('UserCertification')">
|
||||||
|
<label>实名认证</label>
|
||||||
|
<view class="value nowrap">
|
||||||
|
{{certification ? certification_data.id_card : '未认证'}}<uni-icons type="right" color="gray"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="border-solid-empty"></view>
|
||||||
|
<view class="set-nav"@click="onNav('UserInfo')">
|
||||||
|
<label>手机号码</label>
|
||||||
|
<view class="value nowrap">
|
||||||
|
{{username}}<uni-icons type="right" color="gray"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="set-nav-block">
|
||||||
|
<view class="set-nav" @click="onNav('ResetPassword')">
|
||||||
|
<label>修改密码</label>
|
||||||
|
<view class="value nowrap">
|
||||||
|
<uni-icons type="right" color="gray"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="border-solid-empty"></view>
|
||||||
|
<view class="set-nav" @click="onNav()">
|
||||||
|
<label>账户信息</label>
|
||||||
|
<view class="value nowrap">
|
||||||
|
<uni-icons type="right" color="gray"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="set-nav-block">
|
||||||
|
<view class="set-nav" @click="onLogout">
|
||||||
|
<label>退出登录</label>
|
||||||
|
<view class="value nowrap">
|
||||||
|
<uni-icons type="right" color="gray"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { userInfo } from '@/apis/interfaces/user.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
username : '',
|
||||||
|
certification : false,
|
||||||
|
certification_data : {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
onShow() {
|
||||||
|
uni.showLoading({
|
||||||
|
title: '加载中...'
|
||||||
|
})
|
||||||
|
userInfo().then(res => {
|
||||||
|
let { username, certification, certification_data } = res
|
||||||
|
this.username = username
|
||||||
|
this.certification = certification
|
||||||
|
this.certification_data = certification_data
|
||||||
|
uni.hideLoading()
|
||||||
|
}).catch(err => {
|
||||||
|
uni.showToast({
|
||||||
|
title: err.message,
|
||||||
|
icon : 'none'
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onLogout(){
|
onLogout(){
|
||||||
this.$store.commit('setToken', '');
|
this.$store.commit('setToken', '');
|
||||||
this.$Router.replaceAll({
|
this.$Router.replaceAll({
|
||||||
name: 'Auth'
|
name: 'Auth'
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
onNav(name){
|
||||||
|
this.$Router.push({name})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
.content{
|
||||||
|
padding-top: 30rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
.set-nav-block{
|
||||||
|
padding-bottom: 30rpx;
|
||||||
|
.set-nav{
|
||||||
|
background: white;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 32rpx;
|
||||||
|
position: relative;
|
||||||
|
label{
|
||||||
|
width: 200rpx;
|
||||||
|
font-size: 32rpx;
|
||||||
|
line-height: 40rpx;
|
||||||
|
}
|
||||||
|
.value{
|
||||||
|
line-height: 40rpx;
|
||||||
|
width: calc(100% - 200rpx);
|
||||||
|
text-align: right;
|
||||||
|
font-size: 30rpx;
|
||||||
|
color: gray;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="order-items">
|
<view class="order-items">
|
||||||
<view class="order-items-flex" v-for="(item, index) in items" :key="index" @click="$Router.push({ name: 'OrderSchemes', params: { id: item.business_order_item_id }})">
|
<view class="order-items-flex" v-for="(item, index) in items" :key="index" @click="$Router.push({ name: 'OrderSchemes', params: { id: item.business_order_item_id }})">
|
||||||
<label>{{item.institution.title}}({{item.business_type.title}})</label>
|
<label class="nowrap">{{item.institution.title}}({{item.business_type.title}})</label>
|
||||||
<view class="order-items-type nowrap">¥{{item.price}}<uni-icons type="right" color="gray" size="14px"></uni-icons></view>
|
<view class="order-items-type nowrap">¥{{item.price}}<uni-icons type="right" color="gray" size="14px"></uni-icons></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -63,6 +63,7 @@
|
|||||||
<view class="btns-item btns-border" v-if="item.status.value == 4 && item.is_my" @click="onSign(item.business_order_id)">签约</view>
|
<view class="btns-item btns-border" v-if="item.status.value == 4 && item.is_my" @click="onSign(item.business_order_id)">签约</view>
|
||||||
<view class="btns-item btns-border" v-if="item.status.value == 3" @click="$Router.push({name: 'Pay', params: {orderId: item.business_order_id, type: 'acting', paytype: 'price'}})">缴费</view>
|
<view class="btns-item btns-border" v-if="item.status.value == 3" @click="$Router.push({name: 'Pay', params: {orderId: item.business_order_id, type: 'acting', paytype: 'price'}})">缴费</view>
|
||||||
<view class="btns-item btns-border" v-if="item.status.value == 5" @click="$Router.push({name: 'WorkPerfectChoose', params: {orderId: item.business_order_id, type: 'perfect'}})">完善</view>
|
<view class="btns-item btns-border" v-if="item.status.value == 5" @click="$Router.push({name: 'WorkPerfectChoose', params: {orderId: item.business_order_id, type: 'perfect'}})">完善</view>
|
||||||
|
<view class="btns-item btns-border" v-if="item.status.value == 6" @click="$Router.push({name: 'WorkPerfectChoose', params: {orderId: item.business_order_id, type: 'perfect'}})">查看资料</view>
|
||||||
<view class="btns-item" @click="$Router.push({name: 'OrderInfo', params: {orderId: item.business_order_id}})">查看</view>
|
<view class="btns-item" @click="$Router.push({name: 'OrderInfo', params: {orderId: item.business_order_id}})">查看</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -116,14 +116,12 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loding : true,
|
loding : true,
|
||||||
orderId : '',
|
|
||||||
baseInfo : {},
|
baseInfo : {},
|
||||||
cityPicker : [],
|
cityPicker : [],
|
||||||
isCheck : false
|
isCheck : false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.orderId = this.$Route.query.orderId
|
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '加载中...',
|
title: '加载中...',
|
||||||
mask : true
|
mask : true
|
||||||
@@ -141,17 +139,10 @@
|
|||||||
methods: {
|
methods: {
|
||||||
// 获取用户基础信息
|
// 获取用户基础信息
|
||||||
getPerfectBase(){
|
getPerfectBase(){
|
||||||
perfectBase(this.orderId).then(res => {
|
perfectBase(this.$Route.query.orderId).then(res => {
|
||||||
let { base, province } = res;
|
let { base, province } = res;
|
||||||
console.log(res)
|
|
||||||
|
|
||||||
console.log(base.check_params.toString() != '')
|
|
||||||
|
|
||||||
this.baseInfo = base;
|
this.baseInfo = base;
|
||||||
this.isCheck = base.check_params.toString() != ''
|
this.isCheck = base.check_params.toString() != ''
|
||||||
|
|
||||||
console.log(base.check_params)
|
|
||||||
|
|
||||||
this.loding = false;
|
this.loding = false;
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
@@ -181,7 +172,19 @@
|
|||||||
city_id : this.baseInfo.city_id,
|
city_id : this.baseInfo.city_id,
|
||||||
district_id : this.baseInfo.province_id
|
district_id : this.baseInfo.province_id
|
||||||
}
|
}
|
||||||
updPerfectBase(this.orderId, data).then(res => {
|
uni.showModal({
|
||||||
|
title : '提示',
|
||||||
|
content : '请确认资料无误,提交后在审核期间不可更改',
|
||||||
|
cancelText : '稍后',
|
||||||
|
confirmText : '确认无误',
|
||||||
|
success : ModalRes => {
|
||||||
|
if(ModalRes.confirm){
|
||||||
|
uni.showLoading({
|
||||||
|
title: '提交中...',
|
||||||
|
mask : true
|
||||||
|
})
|
||||||
|
updPerfectBase(this.baseInfo.business_order_user_id, data).then(res => {
|
||||||
|
uni.hideLoading()
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title : '提示',
|
title : '提示',
|
||||||
content : '资料已保存',
|
content : '资料已保存',
|
||||||
@@ -196,6 +199,9 @@
|
|||||||
icon : 'none'
|
icon : 'none'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 修改提示信息
|
// 修改提示信息
|
||||||
modifyToast(text){
|
modifyToast(text){
|
||||||
|
|||||||
110
pages/work/perfectBasisInfo.vue
Normal file
110
pages/work/perfectBasisInfo.vue
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
<template>
|
||||||
|
<view v-if="base.name">
|
||||||
|
<view class="item-flex">
|
||||||
|
<label>姓名</label>
|
||||||
|
<view class="value">{{base.name || '-'}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-flex">
|
||||||
|
<label>性别</label>
|
||||||
|
<view class="value">{{base.sex || '-'}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-flex">
|
||||||
|
<label>年龄</label>
|
||||||
|
<view class="value">{{base.age || '-'}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-flex">
|
||||||
|
<label>属相</label>
|
||||||
|
<view class="value">{{base.zodiak || '-'}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-flex">
|
||||||
|
<label>婚姻</label>
|
||||||
|
<view class="value">{{base.marriages[base.marriage] || '-'}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-flex">
|
||||||
|
<label>配偶姓名</label>
|
||||||
|
<view class="value">{{base.mate || '-'}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-flex">
|
||||||
|
<label>学历</label>
|
||||||
|
<view class="value">{{base.educations[base.education] || '-'}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-flex">
|
||||||
|
<label>毕业院校</label>
|
||||||
|
<view class="value">{{base.school || '-'}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-flex">
|
||||||
|
<label>身份证号</label>
|
||||||
|
<view class="value">{{base.id_card || '-'}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-flex">
|
||||||
|
<label>身份证地址</label>
|
||||||
|
<view class="value">{{base.address || '-'}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-flex">
|
||||||
|
<label>联系电话</label>
|
||||||
|
<view class="value">{{base.mobile || '-'}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-flex">
|
||||||
|
<label>联系地址</label>
|
||||||
|
<view class="value">{{base.contact_address || '-'}}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { perfectBase } from '@/apis/interfaces/order.js'
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
base: {}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
uni.showLoading({
|
||||||
|
title: '加载中...',
|
||||||
|
mask : true
|
||||||
|
})
|
||||||
|
perfectBase(this.$Route.query.orderId).then(res => {
|
||||||
|
let { base } = res;
|
||||||
|
this.base = base
|
||||||
|
uni.hideLoading()
|
||||||
|
}).catch(err => {
|
||||||
|
uni.showToast({
|
||||||
|
title: err.message,
|
||||||
|
icon : 'none'
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.item-flex{
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 30rpx;
|
||||||
|
position: relative;
|
||||||
|
line-height: 40rpx;
|
||||||
|
align-items: center;
|
||||||
|
label{
|
||||||
|
width: 200rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
color: gray;
|
||||||
|
@extend .nowrap;
|
||||||
|
}
|
||||||
|
.value{
|
||||||
|
text-align: right;
|
||||||
|
width: calc( 100% - 200rpx );
|
||||||
|
font-size: 30rpx;
|
||||||
|
}
|
||||||
|
&::after{
|
||||||
|
position: absolute;
|
||||||
|
left: 30rpx;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
height: 1rpx;
|
||||||
|
content: " ";
|
||||||
|
background: #f6f6f6;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -1,10 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="perfect">
|
<view class="perfect">
|
||||||
<view class="perfect-header">
|
<view class="perfect-header">
|
||||||
<text v-if="isFinish == 0">完善订单资料</text>
|
<text v-if="isFinish == 0">订单资料完善中</text>
|
||||||
<text v-if="isFinish == 1">订单资料审核中</text>
|
<text v-if="isFinish == 1">订单资料审核中</text>
|
||||||
<text v-if="isFinish == 2">修改订单资料</text>
|
<text v-if="isFinish == 2">修改订单资料</text>
|
||||||
|
|
||||||
<image class="cover" src="@/static/background/info_back.png" mode="widthFix"></image>
|
<image class="cover" src="@/static/background/info_back.png" mode="widthFix"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="perfect-list">
|
<view class="perfect-list">
|
||||||
@@ -82,12 +81,17 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 资料导航
|
// 资料导航
|
||||||
onPerfect(name, finish, id){
|
onPerfect(name, finish, itemId){
|
||||||
if(finish == 1) return
|
if(finish == 1) {
|
||||||
|
if(name === 'WorkPerfectBasis') this.$Router.push({name: 'OrderPerfectBasisInfo', params: {orderId: this.orderId} })
|
||||||
|
if(name === 'WorkPerfectInstitutions') this.$Router.push({name: 'OrderPerfectInstitutionsInfo', params: { itemId } })
|
||||||
|
return
|
||||||
|
}
|
||||||
this.$Router.push({
|
this.$Router.push({
|
||||||
name,
|
name,
|
||||||
params: {
|
params: {
|
||||||
orderId: id
|
itemId : itemId,
|
||||||
|
orderId: this.orderId
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
v-if="item.pre_key != null ? isShowBlock(params, item): true"
|
v-if="item.pre_key != null ? isShowBlock(params, item): true"
|
||||||
>
|
>
|
||||||
<view class="from-item" :class="item.flex == 50 ? 'from-item-50': 'from-item-100'">
|
<view class="from-item" :class="item.flex == 50 ? 'from-item-50': 'from-item-100'">
|
||||||
<block v-if="item.type == 'price' || item.type == 'number' || item.type == 'text' || item.type == 'region'">
|
<block v-if="item.type == 'text' || item.type == 'region'">
|
||||||
<label>
|
<label>
|
||||||
<text v-if="item.is_required === 1">*</text>{{item.title}}
|
<text v-if="item.is_required === 1">*</text>{{item.title}}
|
||||||
<uni-icons v-if="item.reason.description" class="from-icon" type="info" size="18" color="red" @click="modifyToast(item.reason.description)"></uni-icons>
|
<uni-icons v-if="item.reason.description" class="from-icon" type="info" size="18" color="red" @click="modifyToast(item.reason.description)"></uni-icons>
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
<input class="from-input" v-model="item.value" :type="item.type" :placeholder="item.placeholder || '请输入'">
|
<input class="from-input" v-model="item.value" :type="item.type" :placeholder="item.placeholder || '请输入'">
|
||||||
</block>
|
</block>
|
||||||
<!-- mobile -->
|
<!-- mobile -->
|
||||||
<block v-if="item.type == 'mobile'">
|
<block v-if="item.type == 'price' || item.type == 'number' || item.type == 'mobile'">
|
||||||
<label>
|
<label>
|
||||||
<text v-if="item.is_required === 1">*</text>{{item.title}}
|
<text v-if="item.is_required === 1">*</text>{{item.title}}
|
||||||
<uni-icons v-if="item.reason.description" class="from-icon" type="info" size="18" color="red" @click="modifyToast(item.reason.description)"></uni-icons>
|
<uni-icons v-if="item.reason.description" class="from-icon" type="info" size="18" color="red" @click="modifyToast(item.reason.description)"></uni-icons>
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
</label>
|
</label>
|
||||||
<picker class="from-picker" mode="date" :value="item.value" @change="item.value = $event.detail.value">
|
<picker class="from-picker" mode="date" :value="item.value" @change="item.value = $event.detail.value">
|
||||||
<view class="from-picker-text">
|
<view class="from-picker-text">
|
||||||
<view class="text nowrap">{{item.value || '选择日期'}}</view>
|
<view class="text nowrap" :class="{'text-gray': item.value == ''}">{{item.value || '选择日期'}}</view>
|
||||||
<u-icon class="icon" name="calendar" color="#999" size="20"></u-icon>
|
<u-icon class="icon" name="calendar" color="#999" size="20"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
</picker>
|
</picker>
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
</label>
|
</label>
|
||||||
<picker class="from-picker" :range="item.options" :value="item.value" @change="item.value = $event.detail.value">
|
<picker class="from-picker" :range="item.options" :value="item.value" @change="item.value = $event.detail.value">
|
||||||
<view class="from-picker-text">
|
<view class="from-picker-text">
|
||||||
<view class="nowrap">{{item.options[item.value]}}</view>
|
<view class="nowrap" :class="{'text-gray': item.value == 0}">{{item.options[item.value]}}</view>
|
||||||
<u-icon class="icon" name="arrow-down-fill" color="#999" size="10"></u-icon>
|
<u-icon class="icon" name="arrow-down-fill" color="#999" size="10"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
</picker>
|
</picker>
|
||||||
@@ -97,7 +97,10 @@
|
|||||||
<text v-if="item.is_required === 1">*</text>{{item.title}}
|
<text v-if="item.is_required === 1">*</text>{{item.title}}
|
||||||
<uni-icons v-if="item.reason.description" class="from-icon" type="info" size="18" color="red" @click="modifyToast(item.reason.description)"></uni-icons>
|
<uni-icons v-if="item.reason.description" class="from-icon" type="info" size="18" color="red" @click="modifyToast(item.reason.description)"></uni-icons>
|
||||||
</label>
|
</label>
|
||||||
<textarea class="from-textarea" v-model="item.value" :placeholder="item.placeholder"></textarea>
|
<view class="from-textarea">
|
||||||
|
<textarea v-model="item.value" :maxlength="item.number" :placeholder="item.placeholder"></textarea>
|
||||||
|
<view class="from-number">{{item.value.length}}/{{item.number}}</view>
|
||||||
|
</view>
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
@@ -115,6 +118,7 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
submitId: '',
|
||||||
baseInfo: {
|
baseInfo: {
|
||||||
cover: '',
|
cover: '',
|
||||||
title: '',
|
title: '',
|
||||||
@@ -151,10 +155,10 @@
|
|||||||
title: '加载中...',
|
title: '加载中...',
|
||||||
mask : true
|
mask : true
|
||||||
})
|
})
|
||||||
baseBase(this.$Route.query.orderId).then(res => {
|
baseBase(this.$Route.query.itemId).then(res => {
|
||||||
let { item, params } = res;
|
let { item, params, business_order_user_bank_id } = res;
|
||||||
uni.getStorage({
|
uni.getStorage({
|
||||||
key : 'institutions' + this.$Route.query.orderId,
|
key : 'institutions' + this.$Route.query.itemId,
|
||||||
success : StorageRes => {
|
success : StorageRes => {
|
||||||
let { data } = StorageRes
|
let { data } = StorageRes
|
||||||
let storageParams = []
|
let storageParams = []
|
||||||
@@ -177,6 +181,7 @@
|
|||||||
title: item.institution.title,
|
title: item.institution.title,
|
||||||
type : item.business_type.title
|
type : item.business_type.title
|
||||||
}
|
}
|
||||||
|
this.submitId = business_order_user_bank_id
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -202,7 +207,7 @@
|
|||||||
}
|
}
|
||||||
if(type === 'local'){
|
if(type === 'local'){
|
||||||
uni.setStorage({
|
uni.setStorage({
|
||||||
key : 'institutions' + this.$Route.query.orderId,
|
key : 'institutions' + this.$Route.query.itemId,
|
||||||
data : subData,
|
data : subData,
|
||||||
success : res => {
|
success : res => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -213,6 +218,18 @@
|
|||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// 提交数据提示
|
||||||
|
uni.showModal({
|
||||||
|
title : '提示',
|
||||||
|
content : '请确认资料无误,提交后在审核期间不可更改',
|
||||||
|
cancelText : '稍后',
|
||||||
|
confirmText : '确认无误',
|
||||||
|
success : ModalRes => {
|
||||||
|
if(ModalRes.confirm){
|
||||||
|
uni.showLoading({
|
||||||
|
title: '提交中...',
|
||||||
|
mask : true
|
||||||
|
})
|
||||||
// 组织提交数据
|
// 组织提交数据
|
||||||
for(let key in subData){
|
for(let key in subData){
|
||||||
dataArr.push({
|
dataArr.push({
|
||||||
@@ -220,7 +237,7 @@
|
|||||||
value: subData[key]
|
value: subData[key]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
updBaseBase(this.$Route.query.orderId, {
|
updBaseBase(this.submitId, {
|
||||||
data: dataArr
|
data: dataArr
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
@@ -228,18 +245,20 @@
|
|||||||
content : '机构资料已保存',
|
content : '机构资料已保存',
|
||||||
showCancel : false,
|
showCancel : false,
|
||||||
success : ModalRes => {
|
success : ModalRes => {
|
||||||
uni.removeStorageSync('institutions' + this.$Route.query.orderId)
|
uni.removeStorageSync('institutions' + this.$Route.query.itemId)
|
||||||
this.$Router.back()
|
this.$Router.back()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log(err)
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: err.message,
|
title: err.message,
|
||||||
icon : 'none'
|
icon : 'none'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 修改提示信息
|
// 修改提示信息
|
||||||
modifyToast(text){
|
modifyToast(text){
|
||||||
@@ -335,9 +354,19 @@
|
|||||||
background: #F6F6F6;
|
background: #F6F6F6;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
textarea{
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
line-height: 50rpx;
|
line-height: 50rpx;
|
||||||
border-radius: 10rpx;
|
height: 150rpx;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.from-number{
|
||||||
|
padding-top: 20rpx;
|
||||||
|
text-align: right;
|
||||||
|
font-size: 30rpx;
|
||||||
|
color: gray;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// radio
|
// radio
|
||||||
.from-radio{
|
.from-radio{
|
||||||
@@ -378,6 +407,9 @@
|
|||||||
& > .text{
|
& > .text{
|
||||||
width: calc(100% - 80rpx);
|
width: calc(100% - 80rpx);
|
||||||
}
|
}
|
||||||
|
& > .text-gray{
|
||||||
|
color: gray;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// checkbox
|
// checkbox
|
||||||
|
|||||||
66
pages/work/perfectInstitutionsInfo.vue
Normal file
66
pages/work/perfectInstitutionsInfo.vue
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
<view class="item-flex" v-for="(item, index) in params" :key="index">
|
||||||
|
<label>{{item.title}}</label>
|
||||||
|
<view class="value">{{item.value_text || '-'}}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { baseBase } from '@/apis/interfaces/order.js'
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
params: []
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
uni.showLoading({
|
||||||
|
title: '加载中...',
|
||||||
|
mask : true
|
||||||
|
})
|
||||||
|
baseBase(this.$Route.query.itemId).then(res => {
|
||||||
|
let { params } = res;
|
||||||
|
this.params = params
|
||||||
|
uni.hideLoading()
|
||||||
|
}).catch(err => {
|
||||||
|
uni.showToast({
|
||||||
|
title: err.message,
|
||||||
|
icon : 'none'
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.item-flex{
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 30rpx;
|
||||||
|
position: relative;
|
||||||
|
line-height: 40rpx;
|
||||||
|
align-items: center;
|
||||||
|
label{
|
||||||
|
width: 300rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
color: gray;
|
||||||
|
@extend .nowrap;
|
||||||
|
}
|
||||||
|
.value{
|
||||||
|
text-align: right;
|
||||||
|
width: calc( 100% - 300rpx );
|
||||||
|
font-size: 30rpx;
|
||||||
|
}
|
||||||
|
&::after{
|
||||||
|
position: absolute;
|
||||||
|
left: 30rpx;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
height: 1rpx;
|
||||||
|
content: " ";
|
||||||
|
background: #f6f6f6;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -39,7 +39,17 @@
|
|||||||
</block>
|
</block>
|
||||||
<view class="schemes-tips">
|
<view class="schemes-tips">
|
||||||
<view class="schemes-tips-title">须知:</view>
|
<view class="schemes-tips-title">须知:</view>
|
||||||
|
<u-read-more
|
||||||
|
:toggle="true"
|
||||||
|
showHeight="200rpx"
|
||||||
|
:shadowStyle="shadowStyle"
|
||||||
|
closeText="阅读全文"
|
||||||
|
color="#446EFE"
|
||||||
|
textIndent="0em"
|
||||||
|
>
|
||||||
<text>{{scheme.business_type.notic}}</text>
|
<text>{{scheme.business_type.notic}}</text>
|
||||||
|
</u-read-more>
|
||||||
|
<!-- <rich-text :nodes="content"></rich-text> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -57,6 +67,11 @@
|
|||||||
return {
|
return {
|
||||||
user : { name : '', sex: '' },
|
user : { name : '', sex: '' },
|
||||||
scheme: '',
|
scheme: '',
|
||||||
|
shadowStyle: {
|
||||||
|
backgroundImage: "linear-gradient(-180deg, rgba(255, 255, 255, 0) 0%, #F6F6F6 80%)",
|
||||||
|
paddingTop: "50px",
|
||||||
|
marginTop: "-50px",
|
||||||
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -186,6 +201,9 @@
|
|||||||
color: #111;
|
color: #111;
|
||||||
padding-bottom: 20rpx;
|
padding-bottom: 20rpx;
|
||||||
}
|
}
|
||||||
|
text{
|
||||||
|
line-height: 40rpx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -193,6 +193,13 @@
|
|||||||
},
|
},
|
||||||
// 提交保存服务
|
// 提交保存服务
|
||||||
onSubmitService(){
|
onSubmitService(){
|
||||||
|
uni.showModal({
|
||||||
|
title : '提示',
|
||||||
|
content : '是否确认提交服务包配置给客户,提交后不可修改',
|
||||||
|
cancelText : '稍后',
|
||||||
|
confirmText : '提交',
|
||||||
|
success : ModalRes => {
|
||||||
|
if(ModalRes.confirm){
|
||||||
wx.showLoading({
|
wx.showLoading({
|
||||||
title: '保存中...',
|
title: '保存中...',
|
||||||
mask : true
|
mask : true
|
||||||
@@ -216,6 +223,9 @@
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onNavigationBarButtonTap() {
|
onNavigationBarButtonTap() {
|
||||||
this.institutionsShow = true
|
this.institutionsShow = true
|
||||||
|
|||||||
Reference in New Issue
Block a user