Browse Source

修改问题

dev
396316021 1 year ago
parent
commit
778c985b2c
  1. 41
      components/AdvisorPage/index.vue
  2. 12
      pages/Index/components/HomePage/index.vue
  3. 2
      pages/Index/components/UserPage/index.vue
  4. 23
      pages/Join/index.vue
  5. 10
      pages/Project/index.vue
  6. 2
      uni_modules/mz-card/changelog.md
  7. 58
      uni_modules/mz-card/components/mz-card/mz-card.vue
  8. 17
      uni_modules/mz-card/components/mz-card/props.js
  9. 83
      uni_modules/mz-card/package.json
  10. 3
      uni_modules/mz-card/readme.md

41
components/AdvisorPage/index.vue

@ -16,7 +16,7 @@
</view>
</button>
</u-form-item>
<u-form-item :custom-style="{
<u-form-item required :custom-style="{
padding:'36rpx 0'
}" label="主体" prop="userInfo.body" borderBottom>
<u-radio-group v-model="model.userInfo.principal_part" placement="row" @change="bodyChange">
@ -26,13 +26,13 @@
</u-radio>
</u-radio-group>
</u-form-item>
<u-form-item :custom-style="{
<u-form-item required :custom-style="{
padding:'36rpx 0'
}" label="姓名" prop="userInfo.name" borderBottom>
}" :label="model.userInfo.principal_part === 2?'联系人':'姓名'" prop="userInfo.name" borderBottom>
<u-input fontSize="28" placeholder="请填写您的真实姓名" v-model="model.userInfo.name"
border="none"></u-input>
</u-form-item>
<u-form-item :custom-style="{
<u-form-item required :custom-style="{
padding:'36rpx 0'
}" label="性别" prop="userInfo.sex" borderBottom>
<u-radio-group v-model="model.userInfo.sex" placement="row" @change="sexChange">
@ -42,36 +42,36 @@
</u-radio>
</u-radio-group>
</u-form-item>
<u-form-item v-if="model.userInfo.principal_part === 2" :custom-style="{
<u-form-item required v-if="model.userInfo.principal_part === 2" :custom-style="{
padding:'36rpx 0'
}" label="公司名称" prop="userInfo.company" borderBottom>
<u-input fontSize="28" placeholder="请填写公司称" v-model="model.userInfo.company"
<u-input fontSize="28" placeholder="请填写公司称" v-model="model.userInfo.company"
border="none"></u-input>
</u-form-item>
<u-form-item :custom-style="{
<u-form-item required :custom-style="{
padding:'36rpx 0'
}" label="手机号码" prop="userInfo.phone" borderBottom>
<u-input fontSize="28" placeholder="请输入" v-model="model.userInfo.phone" border="none"></u-input>
</u-form-item>
<u-form-item :custom-style="{
<u-form-item required :custom-style="{
padding:'36rpx 0'
}" label="现住地" prop="userInfo.address" borderBottom>
<u-input fontSize="28" placeholder="请输入" v-model="model.userInfo.address"
border="none"></u-input>
</u-form-item>
<u-form-item :custom-style="{
<u-form-item required :custom-style="{
padding:'36rpx 0'
}" label="邮箱" prop="userInfo.email" borderBottom>
<u-input fontSize="28" placeholder="请输入" v-model="model.userInfo.email" border="none"></u-input>
</u-form-item>
<u-form-item :custom-style="{
<u-form-item required :custom-style="{
padding:'36rpx 0'
}" label="所属街道" prop="userInfo.street_id" borderBottom>
<u-text @click="openStreetPicker" :text="model.userInfo.street_name||'请选择'" size="28"
:color="model.userInfo.street_name?'#020B18':'#AFB5BE'" suffixIcon="arrow-right"
:icon-style="{color:(model.userInfo.street_name?'#020B18':'#AFB5BE')}"></u-text>
</u-form-item>
<u-form-item :custom-style="{
<u-form-item required :custom-style="{
padding:'36rpx 0'
}" label="所属社区" prop="userInfo.community" borderBottom>
<u-text @click="openCommunityPicker" :text="model.userInfo.community_name||'请选择'" size="28"
@ -79,7 +79,7 @@
:icon-style="{color:(model.userInfo.community_name?'#020B18':'#AFB5BE')}"></u-text>
</u-form-item>
<u-form-item :custom-style="{
<u-form-item required :custom-style="{
padding:'36rpx 0'
}" label="顾问类别" prop="userInfo.advisor_type " borderBottom>
<view class="advisorType">
@ -103,8 +103,14 @@
<u-form-item :custom-style="{
padding:'36rpx 0'
}" prop="userInfo.infomation" borderBottom>
<view class="" style="margin-bottom:22rpx;"><u-text text="顾问介绍" size="32"
color="#020B18"></u-text></view>
<view class="row" style="margin-bottom:22rpx;">
<view style="max-width:25px;">
<u-text text="*" size="20px"
color="#f56c6c"></u-text>
</view>
<u-text text="顾问介绍" size="32"
color="#020B18"></u-text>
</view>
<u-textarea v-model="model.userInfo.infomation" border="none" placeholder="请输入个人履历及服务擅长项"
height="220" :custom-style="{
backgroundColor:'#FAFAFA',
@ -112,7 +118,12 @@
}"></u-textarea>
</u-form-item>
<u-form-item prop="userInfo.sex" :custom-style="{padding:'34rpx 0'}">
<view class="" style="margin-bottom:22rpx;"><u-text text="资料上传" size="32"
<view class="row" style="margin-bottom:22rpx;">
<view style="max-width:25px;">
<u-text text="*" size="20px"
color="#f56c6c"></u-text>
</view>
<u-text text="资料上传" size="32"
color="#020B18"></u-text></view>
<uv-upload width="160ropx" height="160rpx" :fileList="images.aptitude" name="1" multiple
:maxCount="10" uploadIcon="plus" @delete="(res) => {uploadDel(res,'aptitude')}"

12
pages/Index/components/HomePage/index.vue

@ -128,7 +128,7 @@
<view class="cell-two-container row">
<view class="cell-border"></view>
<view class="cell-title">
暖新
暖新
</view>
</view>
</template>
@ -290,17 +290,17 @@ export default {
url: '/pages/Authentication/index',
title:'丰行侠认证',
disabled:false
},{
image: imghost + '/index-five-2.png',
url: '/pages/Consultant/index',
title:'顾问认证',
disabled:false
},{
image: imghost + '/index-five-3.png',
url: '/pages/Line/index',
title:'线索上传',
disabled:false
},{
image: imghost + '/index-five-2.png',
url: '/pages/Consultant/index',
title:'顾问认证',
disabled:false
},{
image: imghost + '/index-five-4.png',
url: '/pages/ConsultantLib/index',
title:'社区顾问库',

2
pages/Index/components/UserPage/index.vue

@ -28,7 +28,7 @@
<view class="top-left">
<view class="user-nickname-group row">
<view class="user-nickname" v-if="userInfo">
{{ userInfo.nickname }}
{{ userInfo.name || userInfo.nickname }}
</view>
<view class="user-nickname" @click="navTo('/pages/Login/index')" v-else>
登录

23
pages/Join/index.vue

@ -254,21 +254,28 @@ export default {
},
// 1=,2=
initForm() {
let user = {};
if (uni.getStorageSync('user')) {
let joinCache = uni.getStorageSync('join-form');
if(joinCache){
this.model.userInfo = joinCache;
}else{
let user = {};
if (uni.getStorageSync('user')) {
user = uni.getStorageSync('user');
} else {
userDetail().then((res) => {
user = res.data;
})
} else {
userDetail().then((res) => {
user = res.data;
})
}
this.model.userInfo.user_name = user.name;
this.model.userInfo.phone = user.phone;
this.model.userInfo.address = user.advisor?.id ? user.advisor.address :'';
}
this.model.userInfo.name = user.name;
this.model.userInfo.phone = user.phone;
},
submit() {
// this.$refs.userInfo.validate().then(res => {
userJoin(this.model.userInfo).then((res) => {
if (res.code === 200) {
uni.setStorageSync('join-form',this.model.userInfo);
uni.$u.toast('报名成功')
let name = this.model.userInfo.name;
let type = this.model.userInfo.user_type === 1?'people':'advisor';

10
pages/Project/index.vue

@ -196,6 +196,16 @@
</view>
</view>
</view>
<view class="info-item row">
<view class="label">
<u-text text="附件:" color="#90A0AF" size="32" line-height="54"></u-text>
</view>
<view class="content row col">
<view class="col-12" v-for="item in detail.upload_file">
<u-text mode="link" :text="item.name" :href="item.url" line-height="54" color="#020B18" size="32"></u-text>
</view>
</view>
</view>
</view>
<view class="remark-container">

2
uni_modules/mz-card/changelog.md

@ -0,0 +1,2 @@
## 1.0.0
mz-sticky 吸顶

58
uni_modules/mz-card/components/mz-card/mz-card.vue

@ -0,0 +1,58 @@
<template>
<view class="safe-area" :style="{height:safeHeight,display:((type !== 'sticky') ?'block': 'none')}"></view>
<view class="mz-sticky-container" :style="{top:(offsetTop === '0')?offSetDefault:offsetTop,position:type}">
<slot></slot>
</view>
</template>
<script>
import props from './props.js';
/**
* Sticky 吸顶
* @description 警告提示展现需要关注的信息
*
* @property {String} title 显示的文字
*/
export default {
name: 'mz-sticky',
mixins: [props],
data() {
return {
show: true,
safeHeight:0
}
},
computed: {
offSetDefault(){
return uni.getSystemInfoSync().statusBarHeight+44+'px';
},
},
methods: {
getSafeHeight(){
new Promise((resolve,reject) => {
setTimeout(()=>{
const info = uni.createSelectorQuery().in(this).select('.mz-sticky-container');
info.boundingClientRect(function (data) {
resolve(data.height);
}).exec(function (res) {});
},50)
}).then((height) => {
this.safeHeight = height+'px';
})
},
},
mounted() {
this.getSafeHeight();
},
}
</script>
<style lang="scss" scoped>
.safe-area{
width:100%;
}
.mz-sticky-container{
width:100%;
z-index: 997;
}
</style>

17
uni_modules/mz-card/components/mz-card/props.js

@ -0,0 +1,17 @@
export default {
props: {
// 是否占位
safeArea: {
type: Boolean,
default: true
},
type: {
type: String,
default: 'fixed'
},
offsetTop: {
type: String,
default: '0'
},
}
}

83
uni_modules/mz-card/package.json

@ -0,0 +1,83 @@
{
"id": "mz-card",
"displayName": "mz-card 卡片",
"version": "1.0.1",
"description": "mz-card",
"keywords": [
"卡片"
],
"repository": "",
"engines": {
"HBuilderX": "^3.1.0"
},
"dcloudext": {
"type": "component-vue",
"sale": {
"regular": {
"price": "0.00"
},
"sourcecode": {
"price": "0.00"
}
},
"contact": {
"qq": ""
},
"declaration": {
"ads": "无",
"data": "插件不采集任何数据",
"permissions": "无"
},
"npmurl": ""
},
"uni_modules": {
"dependencies": [
],
"encrypt": [],
"platforms": {
"cloud": {
"tcb": "y",
"aliyun": "y"
},
"client": {
"Vue": {
"vue2": "y",
"vue3": "y"
},
"App": {
"app-vue": "y",
"app-nvue": "y"
},
"H5-mobile": {
"Safari": "y",
"Android Browser": "y",
"微信浏览器(Android)": "y",
"QQ浏览器(Android)": "y"
},
"H5-pc": {
"Chrome": "y",
"IE": "y",
"Edge": "y",
"Firefox": "y",
"Safari": "y"
},
"小程序": {
"微信": "y",
"阿里": "y",
"百度": "y",
"字节跳动": "y",
"QQ": "y",
"钉钉": "u",
"快手": "u",
"飞书": "u",
"京东": "u"
},
"快应用": {
"华为": "u",
"联盟": "u"
}
}
}
}
}

3
uni_modules/mz-card/readme.md

@ -0,0 +1,3 @@
## Sticky 吸顶
> **组件名:mz-sticky**
Loading…
Cancel
Save