Browse Source

数据调试

master
xuxubarca 4 years ago
parent
commit
af53b893e4
  1. 3
      models/user.js
  2. 34
      pages/service/myService/myService.wxml
  3. 12
      pages/service/myService/myService.wxs
  4. 8
      pages/service/myService/myService.wxss
  5. 3
      pages/service/vipCard/vipCard.js
  6. 4
      pages/service/vipCard/vipCard.wxml
  7. 13
      pages/service/vipCard/vipCard.wxss
  8. 7
      pages/user/index.js
  9. 8
      pages/user/index.wxml
  10. 9
      project.config.json

3
models/user.js

@ -10,7 +10,8 @@ const UserConst = {
user_updateUserInfo_url:'/api/miniuser/updateMiniUser', // 更新用户信息 user_updateUserInfo_url:'/api/miniuser/updateMiniUser', // 更新用户信息
user_sendUserInfo_url:'/api/miniuser/updateUserInfo', // 上传用户信息 user_sendUserInfo_url:'/api/miniuser/updateUserInfo', // 上传用户信息
user_register_url:'/api/miniuser/wxregister', // 微信注册 // user_register_url:'/api/miniuser/wxregister', // 微信注册
user_register_url:'/api/miniuser/wxNewRegister', // 微信注册
user_myWhistle_url:'/api/whistle/getMyWhistleList',// 我的吹哨 user_myWhistle_url:'/api/whistle/getMyWhistleList',// 我的吹哨
user_whistleDetail_url:'/api/whistle/getWhistleById', // 吹哨详情 user_whistleDetail_url:'/api/whistle/getWhistleById', // 吹哨详情

34
pages/service/myService/myService.wxml

@ -6,7 +6,7 @@
<view style="font-size:15px;font-weight: bold">{{detail.server_name}}</view> <view style="font-size:15px;font-weight: bold">{{detail.server_name}}</view>
<!-- <view>{{detail.departName}}</view> --> <!-- <view>{{detail.departName}}</view> -->
</view> </view>
<view style="color:{{myService.getColor(detail.status)}}">{{detail.progress}}</view> <view style="color:{{myService.getColor(detail.progress)}}">{{detail.progress}}</view>
</view> </view>
<view class="content"> <view class="content">
@ -29,8 +29,8 @@
</block> </block>
<block wx:if="{{detail.invoice_prove}}"> <block wx:if="{{detail.invoice_prove}}">
<view class="date">发票证明</view> <view class="date">发票证明:</view>
<view class="image-show"> <view class="image-show2">
<block wx:for="{{detail.invoiceArr}}"> <block wx:for="{{detail.invoiceArr}}">
<!-- <view class="img-box"> --> <!-- <view class="img-box"> -->
<block wx:if="{{item}}"> <block wx:if="{{item}}">
@ -41,8 +41,8 @@
</view> </view>
</block> </block>
<block wx:if="{{detail.business_license}}"> <block wx:if="{{detail.business_license}}">
<view class="date">企业执照</view> <view class="date">企业执照:</view>
<view class="image-show"> <view class="image-show2">
<block wx:for="{{detail.licenseArr}}"> <block wx:for="{{detail.licenseArr}}">
<!-- <view class="img-box"> --> <!-- <view class="img-box"> -->
<block wx:if="{{item}}"> <block wx:if="{{item}}">
@ -53,8 +53,8 @@
</view> </view>
</block> </block>
<block wx:if="{{detail.post_prove}}"> <block wx:if="{{detail.post_prove}}">
<view class="date">到岗证明</view> <view class="date">到岗证明:</view>
<view class="image-show"> <view class="image-show2">
<block wx:for="{{detail.postArr}}"> <block wx:for="{{detail.postArr}}">
<!-- <view class="img-box"> --> <!-- <view class="img-box"> -->
<block wx:if="{{item}}"> <block wx:if="{{item}}">
@ -65,8 +65,8 @@
</view> </view>
</block> </block>
<block wx:if="{{detail.contract_prove}}"> <block wx:if="{{detail.contract_prove}}">
<view class="date">合同证明</view> <view class="date">合同证明:</view>
<view class="image-show"> <view class="image-show2">
<block wx:for="{{detail.contractArr}}"> <block wx:for="{{detail.contractArr}}">
<!-- <view class="img-box"> --> <!-- <view class="img-box"> -->
<block wx:if="{{item}}"> <block wx:if="{{item}}">
@ -77,8 +77,8 @@
</view> </view>
</block> </block>
<block wx:if="{{detail.salary_prove}}"> <block wx:if="{{detail.salary_prove}}">
<view class="date">薪酬证明</view> <view class="date">薪酬证明:</view>
<view class="image-show"> <view class="image-show2">
<block wx:for="{{detail.salaryArr}}"> <block wx:for="{{detail.salaryArr}}">
<!-- <view class="img-box"> --> <!-- <view class="img-box"> -->
<block wx:if="{{item}}"> <block wx:if="{{item}}">
@ -90,10 +90,10 @@
</block> </block>
<block wx:if="{{detail.education_experience_prove}}"> <block wx:if="{{detail.education_experience_prove}}">
<view class="date"> <view class="date">
<block wx:if="{{detail.server_code_small == 'zzxljy'}}">入学证明</block> <block wx:if="{{detail.server_code_small == 'zzxljy'}}">入学证明:</block>
<block wx:if="{{detail.server_code_small == 'jypxxsjl'}}">参加活动证明</block> <block wx:if="{{detail.server_code_small == 'jypxxsjl'}}">参加活动证明:</block>
</view> </view>
<view class="image-show"> <view class="image-show2">
<block wx:for="{{detail.experienceArr}}"> <block wx:for="{{detail.experienceArr}}">
<!-- <view class="img-box"> --> <!-- <view class="img-box"> -->
<block wx:if="{{item}}"> <block wx:if="{{item}}">
@ -105,10 +105,10 @@
</block> </block>
<block wx:if="{{detail.education_cost_prove}}"> <block wx:if="{{detail.education_cost_prove}}">
<view class="date"> <view class="date">
<block wx:if="{{detail.server_code_small == 'zzxljy'}}">学费证明</block> <block wx:if="{{detail.server_code_small == 'zzxljy'}}">学费证明:</block>
<block wx:if="{{detail.server_code_small == 'jypxxsjl'}}">费用证明</block> <block wx:if="{{detail.server_code_small == 'jypxxsjl'}}">费用证明:</block>
</view> </view>
<view class="image-show"> <view class="image-show2">
<block wx:for="{{detail.costArr}}"> <block wx:for="{{detail.costArr}}">
<!-- <view class="img-box"> --> <!-- <view class="img-box"> -->
<block wx:if="{{item}}"> <block wx:if="{{item}}">

12
pages/service/myService/myService.wxs

@ -45,14 +45,10 @@ var myService = {
getColor:function(status){ getColor:function(status){
if (status == '处理中') { if (status == '处理中') {
var color = '#ff8a0e'; var color = 'rgb(255,135,25)';
} else if (status == '1') { } else if (status == '已答复') {
var color = '#f41414'; var color = 'rgb(242,7,7)';
} else if (status == '2') { } else{
var color = '#1131e4';
} else if (status == '3') {
var color = '#463c59';
}else{
color = '' color = ''
} }

8
pages/service/myService/myService.wxss

@ -56,6 +56,14 @@ page{
margin-top:30rpx; margin-top:30rpx;
} }
.image-show2{
height: 220rpx;
width:95%;
overflow-x:scroll;
white-space:nowrap;
margin-top:10rpx;
}
.img-box{ .img-box{
margin-right:15rpx; margin-right:15rpx;
width:220rpx; width:220rpx;

3
pages/service/vipCard/vipCard.js

@ -7,7 +7,8 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
detail:{} detail:{},
card:"../../../images/card.png"
}, },
/** /**

4
pages/service/vipCard/vipCard.wxml

@ -1,5 +1,7 @@
<!--pages/service/vipCard/vipCard.wxml--> <!--pages/service/vipCard/vipCard.wxml-->
<view class="card" style="background:url(../../../../../images/card.png) center no-repeat;background-size:100% 100%;"> <!-- <view class="card" style="background:url(../../../../../images/card.png) center no-repeat;background-size:100% 100%;"> -->
<view class="card">
<image src="{{card}}" class="bg"></image>
<view class="title">{{detail.cardName}}</view> <view class="title">{{detail.cardName}}</view>
<view class="name">{{detail.name}}</view> <view class="name">{{detail.name}}</view>
<view class="type">{{detail.talentsType}}</view> <view class="type">{{detail.talentsType}}</view>

13
pages/service/vipCard/vipCard.wxss

@ -14,6 +14,7 @@ page{
height:350rpx; height:350rpx;
border-radius: 4px; border-radius: 4px;
margin-top: 20px; margin-top: 20px;
position: relative;
} }
.title{ .title{
@ -28,6 +29,7 @@ page{
margin: 0 0 2rpx 40rpx; margin: 0 0 2rpx 40rpx;
font-size: 50rpx; font-size: 50rpx;
font-weight: bold; font-weight: bold;
z-index: 20;
} }
.type{ .type{
@ -35,12 +37,14 @@ page{
margin: 0 0 2rpx 40rpx; margin: 0 0 2rpx 40rpx;
font-size: 36rpx; font-size: 36rpx;
font-weight: bold; font-weight: bold;
z-index: 20;
} }
.number{ .number{
color: white; color: white;
margin: 0 0 0 40rpx; margin: 0 0 0 40rpx;
font-size: 24rpx; font-size: 24rpx;
z-index: 999;
} }
.explain-tit{ .explain-tit{
@ -53,4 +57,11 @@ page{
.explain{ .explain{
width: 85%; width: 85%;
font-size: 12px; font-size: 12px;
} }
.bg{
width: 100%;
height:100%;
position: absolute;
z-index: -200;
}

7
pages/user/index.js

@ -46,7 +46,8 @@ Page({
{id:20,name:'机关停车'}, {id:20,name:'机关停车'},
] ]
] ],
talentsType:0
}, },
@ -75,7 +76,6 @@ Page({
service:service service:service
}) })
}) })
}, },
onShow: function () { onShow: function () {
if (store.hasBindUserInfo()) { if (store.hasBindUserInfo()) {
@ -113,6 +113,8 @@ Page({
// url: '/pages/weChatAuth/index', // url: '/pages/weChatAuth/index',
// }) // })
} }
}, },
// 获取用户信息 // 获取用户信息
@ -131,6 +133,7 @@ Page({
avatarUrl: res.result.avatarUrl, avatarUrl: res.result.avatarUrl,
nickName: res.result.nickName, nickName: res.result.nickName,
isAuth:true, isAuth:true,
talentsType:res.result.talentsType
},()=>{ },()=>{
if (store.hasPhone()) { if (store.hasPhone()) {
//console.log('已经绑定手机号码') //console.log('已经绑定手机号码')

8
pages/user/index.wxml

@ -13,13 +13,13 @@
</view> </view>
</mp-cell> </mp-cell>
</mp-cells> --> </mp-cells> -->
<view class="header"> <view class="header" wx:if="{{isAuth}}">
<view class="column"> <view class="column">
<view class="user_hd" wx:if="{{avatarUrl && nickName}}"> <view class="user_hd" wx:if="{{avatarUrl && nickName}}">
<image slot="icon" class="user_logo" src="{{avatarUrl}}"/> <image slot="icon" class="user_logo" src="{{avatarUrl}}"/>
<view slot="title" class="user_name"> <view slot="title" class="user_name">
<view>{{nickName}}</view> <view>{{nickName}}</view>
<view bindtap="vip"> <view bindtap="vip" wx:if="{{talentsType != 0}}">
<van-tag type="primary" size="medium" round color="rgb(230,208,68)" style="margin-left:5px;">市北区高层次人才 <text class="fa fa-angle-right fa-lg" style="margin-left:5px;"></text></van-tag> <van-tag type="primary" size="medium" round color="rgb(230,208,68)" style="margin-left:5px;">市北区高层次人才 <text class="fa fa-angle-right fa-lg" style="margin-left:5px;"></text></van-tag>
</view> </view>
</view> </view>
@ -30,13 +30,13 @@
</view> </view>
</view> </view>
<view class="title-cell"> <view class="title-cell" wx:if="{{talentsType != 0}}">
<view class="con"> <view class="con">
<view class="t">人才服务</view> <view class="t">人才服务</view>
<view class="t2" bindtap="service"><text>我的服务</text><text class="fa fa-angle-right fa-lg" style="margin-left:5px;margin-bottom:1px;color:rgb(178,178,178)"></text></view> <view class="t2" bindtap="service"><text>我的服务</text><text class="fa fa-angle-right fa-lg" style="margin-left:5px;margin-bottom:1px;color:rgb(178,178,178)"></text></view>
</view> </view>
</view> </view>
<swiper class="nav" indicator-dots="{{true}}" indicator-color="rgb(217,217,217)" indicator-active-color="rgb(230,208,68)"> <swiper class="nav" indicator-dots="{{true}}" indicator-color="rgb(217,217,217)" indicator-active-color="rgb(230,208,68)" wx:if="{{talentsType != 0}}">
<block wx:for="{{service}}"> <block wx:for="{{service}}">
<swiper-item> <swiper-item>
<van-grid column-num="5" border="{{false}}"> <van-grid column-num="5" border="{{false}}">

9
project.config.json

@ -21,8 +21,8 @@
"checkSiteMap": true, "checkSiteMap": true,
"uploadWithSourceMap": true, "uploadWithSourceMap": true,
"compileHotReLoad": false, "compileHotReLoad": false,
"useMultiFrameRuntime": false, "useMultiFrameRuntime": true,
"useApiHook": false, "useApiHook": true,
"useApiHostProcess": false, "useApiHostProcess": false,
"babelSetting": { "babelSetting": {
"ignore": [], "ignore": [],
@ -31,12 +31,11 @@
}, },
"enableEngineNative": false, "enableEngineNative": false,
"useIsolateContext": true, "useIsolateContext": true,
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false,
"userConfirmedBundleSwitch": false, "userConfirmedBundleSwitch": false,
"packNpmManually": false, "packNpmManually": false,
"packNpmRelationList": [], "packNpmRelationList": [],
"minifyWXSS": true "minifyWXSS": true,
"showES6CompileOption": false
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.8.1", "libVersion": "2.8.1",

Loading…
Cancel
Save