Browse Source

no message

featrue/v4.5
xpz2018 4 years ago
parent
commit
e1075342aa
6 changed files with 7 additions and 196 deletions
  1. 6
      pages/home/enterprise/enterprise.wxml
  2. 94
      pages/home/info/index.js
  3. 3
      pages/home/info/index.json
  4. 24
      pages/home/info/index.wxml
  5. 70
      pages/home/info/index.wxss
  6. 6
      pages/home/personal/index.wxml

6
pages/home/enterprise/enterprise.wxml

@ -3,12 +3,6 @@
<view slot="content">企业信息</view> <view slot="content">企业信息</view>
</cu-custom> </cu-custom>
<!-- <view class="bg-white flex flex-center flex-column" style="padding:48rpx">
<view style="width: 120px;height: 120px;position: relative" bindtap="chooseImage">
<wux-image width="{{120}}" height="{{120}}" wux-class="image" shape="circle" src="{{avatarUrl}}" />
<image class="wux-badge" src="/assets/image/icon_carmera.png"></image>
</view>
</view> -->
<wux-cell-group> <wux-cell-group>
<!-- <wux-cell> <!-- <wux-cell>
<view slot="header" class="text-gray">姓名</view> <view slot="header" class="text-gray">姓名</view>

94
pages/home/info/index.js

@ -11,72 +11,6 @@ Page({
backStatus: true, backStatus: true,
nickName: '', //用户昵称 nickName: '', //用户昵称
avatarUrl: '', //用户头像 avatarUrl: '', //用户头像
banckCardList: [{
id: 1,
name: '个体回收户'
},
{
id: 2,
name: '打包厂'
},
{
id: 3,
name: '废品站'
},
{
id: 4,
name: '印刷'
},
{
id: 6,
name: '包装厂'
},
{
id: 7,
name: '纸箱纸板厂'
},
{
id: 8,
name: '后加工'
},
{
id: 5,
name: '其他'
}
],
cardList: [{
value: '1',
text: '个体回收户'
},
{
value: '2',
text: '打包厂'
},
{
value: '3',
text: '废品站'
},
{
value: '4',
text: '印刷'
},
{
value: '6',
text: '包装厂'
},
{
value: '7',
text: '纸箱纸板厂'
},
{
value: '8',
text: '后加工'
},
{
value: '5',
text: '其他'
}
],
userInfo: null, userInfo: null,
userType: 1, userType: 1,
srcList: null, srcList: null,
@ -100,8 +34,6 @@ Page({
bizUserName:res.data.bizUserName, bizUserName:res.data.bizUserName,
}) })
}) })
this.cascaderView = this.cascaderView || this.selectComponent('#wux-cascader')
this.pickerView = this.pickerView || this.selectComponent('#picker-view')
}, },
uploadFile: function (path) { uploadFile: function (path) {
var that = this var that = this
@ -371,32 +303,6 @@ Page({
} }
}) })
}, },
showRegion: function () {
if (this.data.disabled) {
return
}
this.cascaderView.showPicker(this.data.region)
this.setData({
picking: true
})
},
onRegionChange: function (e) {
if (e.detail && e.detail.options) {
this.setData({
['form.areaStr']: e.detail.options.map((n) => n.label).join(' '),
region: e.detail.value
})
this.data.form['locProvinceId'] = e.detail.value[0]
this.data.form['locProvinceName'] = e.detail.options[0].label
this.data.form['locCityId'] = e.detail.value[1]
this.data.form['locCityName'] = e.detail.options[1].label
this.data.form['locDistrictId'] = e.detail.value[2]
this.data.form['locDistrictName'] = e.detail.options[2].label
}
this.setData({
picking: false
})
},
toBusinessLicense: function () { toBusinessLicense: function () {
wx.navigateTo({ wx.navigateTo({
url: '/pages/home/business-license/index' url: '/pages/home/business-license/index'

3
pages/home/info/index.json

@ -5,7 +5,6 @@
"wux-cell": "/components/cell/index", "wux-cell": "/components/cell/index",
"wux-image": "/components/image/index", "wux-image": "/components/image/index",
"wux-dialog": "/components/dialog/index", "wux-dialog": "/components/dialog/index",
"wux-cropper": "/components/image-cropper/index",
"wux-cascader": "/components/cascader/index"
"wux-cropper": "/components/image-cropper/index"
} }
} }

24
pages/home/info/index.wxml

@ -3,24 +3,15 @@
<view slot="content">个人中心</view> <view slot="content">个人中心</view>
</cu-custom> </cu-custom>
<!-- <view class="bg-white flex flex-center flex-column" style="padding:48rpx">
<view style="width: 120px;height: 120px;position: relative" bindtap="chooseImage">
<wux-image width="{{120}}" height="{{120}}" wux-class="image" shape="circle" src="{{avatarUrl}}" />
<image class="wux-badge" src="/assets/image/icon_carmera.png"></image>
</view>
</view> -->
<view class="header-box flex flex-justify" style="padding:32rpx"> <view class="header-box flex flex-justify" style="padding:32rpx">
<view class="flex"> <view class="flex">
<view bindtap="chooseImage"> <view bindtap="chooseImage">
<wux-image width="{{65}}" height="{{65}}" wux-class="image" shape="circle" src="{{avatarUrl}}" />
<image class="wux-badge2" src="/assets/image/icon_carmera.png"></image>
<wux-image width="{{130}}" height="{{130}}" nuit="rpx" wux-class="image" shape="circle" src="{{avatarUrl}}" />
<image class="wux-badge" src="/assets/image/icon_carmera.png"></image>
</view> </view>
<view class="flex flex-column flex-center" style="margin-left:24rpx;align-items:flex-start"> <view class="flex flex-column flex-center" style="margin-left:24rpx;align-items:flex-start">
<view class="flex flex-center"> <view class="flex flex-center">
<text class="text-black" style="white-space: nowrap">姓名:{{linkman || ''}}</text> <text class="text-black" style="white-space: nowrap">姓名:{{linkman || ''}}</text>
<!-- <image class="img-auth2" src="{{userInfo.isAuth == 1 ? '/assets/image/icon_author.png' : '/assets/image/icon_unauthor.png'}}"></image>
<text class="{{userInfo.isAuth == 1 ? 'text-blue' : 'text-gray'}}">{{userInfo.isAuth == 1 ? '已认证' : '未实名认证'}}</text> -->
</view> </view>
<view class="flex flex-center" style="font-size:13px;margin-top:10rpx"> <view class="flex flex-center" style="font-size:13px;margin-top:10rpx">
<text class="text-black" style="white-space: nowrap;float:right">联系电话:{{linkPhone}}</text> <text class="text-black" style="white-space: nowrap;float:right">联系电话:{{linkPhone}}</text>
@ -31,10 +22,6 @@
</view> </view>
<view style="height:20rpx;"></view> <view style="height:20rpx;"></view>
<wux-cell-group> <wux-cell-group>
<!-- <wux-cell>
<view slot="header" class="text-gray">姓名</view>
<view slot="footer">{{linkman || ''}}</view>
</wux-cell> -->
<wux-cell title="公司名称" wx:if="{{userType == 2}}"> <wux-cell title="公司名称" wx:if="{{userType == 2}}">
<view slot="header" class="text-gray">公司名称</view> <view slot="header" class="text-gray">公司名称</view>
<view slot="footer">{{realName || ''}}</view> <view slot="footer">{{realName || ''}}</view>
@ -43,10 +30,6 @@
<view slot="header" class="text-gray">公司性质</view> <view slot="header" class="text-gray">公司性质</view>
<view slot="footer">{{identityStr}}</view> <view slot="footer">{{identityStr}}</view>
</wux-cell> </wux-cell>
<!-- <wux-cell>
<view slot="header" class="text-gray">联系电话</view>
<view slot="footer">{{linkPhone}}</view>
</wux-cell> -->
<wux-cell wx:if="{{userType == 2}}"> <wux-cell wx:if="{{userType == 2}}">
<view slot="header" class="text-gray">公司地址</view> <view slot="header" class="text-gray">公司地址</view>
<view slot="footer" style="width:500rpx">{{companyAddress}}</view> <view slot="footer" style="width:500rpx">{{companyAddress}}</view>
@ -71,5 +54,4 @@
</wux-cell-group> </wux-cell-group>
<wux-cropper wx:if="{{visible}}" srcList="{{srcList}}" bindclose="closeCallback" bindcroped="onCropback"></wux-cropper> <wux-cropper wx:if="{{visible}}" srcList="{{srcList}}" bindclose="closeCallback" bindcroped="onCropback"></wux-cropper>
<wux-dialog id="wux-dialog" />
<wux-cascader id="wux-cascader" value="{{region}}" options="{{ options }}" bind:close="onRegionChange" />
<wux-dialog id="wux-dialog" />

70
pages/home/info/index.wxss

@ -1,80 +1,16 @@
/* pages/home/info/index.wxss */ /* pages/home/info/index.wxss */
.wux-badge { .wux-badge {
position: absolute;
width: 120px;
height: 120px;
opacity: 0.8;
right: 0;
bottom: 0;
z-index: 10;
}
.wux-badge2 {
width: 120rpx;
height: 120rpx;
width: 130rpx;
height: 130rpx;
position: absolute; position: absolute;
z-index: 10; z-index: 10;
left: 32rpx; left: 32rpx;
} }
.header-bg {
margin-top: 0px;
width: 100%;
height: 80px;
background: linear-gradient(314deg, rgba(50, 107, 250, 1) 0%, rgba(0, 138, 255, 1) 100%);
border-bottom-left-radius: 64rpx;
border-bottom-right-radius: 64rpx;
}
.header-box { .header-box {
width: 100%; width: 100%;
background: rgba(255, 255, 255, 1); background: rgba(255, 255, 255, 1);
/* box-shadow: 0px 0px 15px -6px rgba(0, 0, 0, 0.32); /* box-shadow: 0px 0px 15px -6px rgba(0, 0, 0, 0.32);
border-radius: 6px; */ border-radius: 6px; */
} }
.userinfo-avatar {
overflow: hidden;
width: 120rpx;
height: 120rpx;
border-radius: 12rpx;
border: 2px solid #fff;
box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}
.account-bg {
background: linear-gradient(314deg, rgba(50, 107, 250, 1) 0%, rgba(0, 138, 255, 1) 100%);
border-radius: 6px;
}
.money {
font-size: 44rpx;
font-family: SFProDisplay-Semibold, SFProDisplay;
font-weight: 600;
color: rgba(255, 255, 255, 1);
}
.label {
font-size: 24rpx;
font-family: PingFang-SC-Regular, PingFang-SC;
font-weight: 400;
color: rgba(255, 255, 255, 1);
}
.img-auth {
width: 32rpx;
height: 32rpx;
margin-left: 24rpx;
margin-right: 12rpx
}
.img-auth2 {
width: 32rpx;
height: 32rpx;
margin-right: 12rpx
}
.realName {
max-width: 100px;
white-space: nowrap;
}

6
pages/home/personal/index.wxml

@ -3,12 +3,6 @@
<view slot="content">从业信息</view> <view slot="content">从业信息</view>
</cu-custom> </cu-custom>
<!-- <view class="bg-white flex flex-center flex-column" style="padding:48rpx">
<view style="width: 120px;height: 120px;position: relative" bindtap="chooseImage">
<wux-image width="{{120}}" height="{{120}}" wux-class="image" shape="circle" src="{{avatarUrl}}" />
<image class="wux-badge" src="/assets/image/icon_carmera.png"></image>
</view>
</view> -->
<wux-cell-group> <wux-cell-group>
<!-- <wux-cell> <!-- <wux-cell>
<view slot="header" class="text-gray">姓名</view> <view slot="header" class="text-gray">姓名</view>

Loading…
Cancel
Save