8 changed files with 3 additions and 294 deletions
Split View
Diff Options
-
1app.json
-
118pages/home/business-license/index.js
-
5pages/home/business-license/index.json
-
32pages/home/business-license/index.wxml
-
58pages/home/business-license/index.wxss
-
5pages/home/info/index.js
-
37submodel/pages/home/enterprise/index.js
-
41submodel/pages/html/personal/index.js
@ -1,118 +0,0 @@ |
|||
// pages/home/businessLicense/index.js
|
|||
import { updateUserInfo, getBaseInfo } from '../../../api/ztb' |
|||
const util = require('../../../utils/util') |
|||
Page({ |
|||
|
|||
/** |
|||
* 页面的初始数据 |
|||
*/ |
|||
data: { |
|||
fileList: [], |
|||
imgLength: 0, |
|||
form: { |
|||
imgList: '' |
|||
} |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面加载 |
|||
*/ |
|||
onLoad: function (options) { |
|||
this.getUerInfoFct() |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面初次渲染完成 |
|||
*/ |
|||
onReady: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面显示 |
|||
*/ |
|||
onShow: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面隐藏 |
|||
*/ |
|||
onHide: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面卸载 |
|||
*/ |
|||
onUnload: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面相关事件处理函数--监听用户下拉动作 |
|||
*/ |
|||
onPullDownRefresh: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面上拉触底事件的处理函数 |
|||
*/ |
|||
onReachBottom: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 用户点击右上角分享 |
|||
*/ |
|||
onShareAppMessage: function () { |
|||
|
|||
}, |
|||
// 分享至朋友圈
|
|||
onShareTimeline: function () { |
|||
|
|||
}, |
|||
onImageChange: function (e) { |
|||
var that = this |
|||
if (e.detail) { |
|||
var list = [] |
|||
e.detail.forEach(element => { |
|||
if (!util.isEmpty(element.url)) { |
|||
list.push(element.url) |
|||
} |
|||
}) |
|||
that.data.form['imgList'] = list |
|||
that.updateUserInfoFct({ |
|||
businessLicenseUrl: e.detail[0].url |
|||
}) |
|||
that.setData({ |
|||
imgLength: list.length |
|||
}) |
|||
|
|||
} |
|||
}, |
|||
updateUserInfoFct: function (model) { |
|||
console.log(model) |
|||
updateUserInfo(model).then(result => {}).catch(err => {}) |
|||
}, |
|||
getUerInfoFct: function () { |
|||
var that = this |
|||
getBaseInfo().then(res => { |
|||
that.data.form['imgList'] = res.data.businessLicenseUrl |
|||
var list = [] |
|||
if (res.data.businessLicenseUrl) { |
|||
list.push(res.data.businessLicenseUrl) |
|||
} |
|||
that.setData({ |
|||
imgLength: list.length, |
|||
fileList: [{ |
|||
url: res.data.businessLicenseUrl, |
|||
status: 8 |
|||
}] |
|||
}) |
|||
}) |
|||
} |
|||
}) |
|||
@ -1,5 +0,0 @@ |
|||
{ |
|||
"usingComponents": { |
|||
"wux-uploader": "/components/uploader/index" |
|||
} |
|||
} |
|||
@ -1,32 +0,0 @@ |
|||
<!--pages/home/businessLicense/index.wxml--> |
|||
<cu-custom bgColor="bg-white" isBack="{{true}}"> |
|||
<view slot="content">营业执照</view> |
|||
</cu-custom> |
|||
|
|||
<view class="bj"> |
|||
<view style="width:100%;height:130rpx;padding-top:10rpx;padding-right:10rpx"> |
|||
<button class="cu-btn bg-red round shadow-blur vip-btn" bindtap="toMyInfo">跳出</button> |
|||
</view> |
|||
<view class="top"> |
|||
<view class="topText"> |
|||
<text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text> |
|||
</view> |
|||
<view style="width:310rpx;height:258rpx;float:right"> |
|||
<image src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/tabBj.png?sign=20dc0a73aab123a0c36d3a984250cac1&t=1631627591" style="width:310rpx;height:258rpx"></image> |
|||
</view> |
|||
</view> |
|||
<view class="mid"> |
|||
<text>你的营业执照是?</text> |
|||
|
|||
|
|||
<view style="display:{{!focus ? 'block' : 'none'}}"> |
|||
<view class="cu-bar bg-white margin-top"> |
|||
<view class="action text-bold" style="color:#333333">{{!disabled?'营业执照(上传1张)':'营业执照'}}</view> |
|||
<view class="action text-sg">{{imgLength}}{{!disabled? '/1':'张'}}</view> |
|||
</view> |
|||
<wux-uploader count="1" fileList="{{fileList}}" bindcustomevent="onImageChange"></wux-uploader> |
|||
</view> |
|||
|
|||
</view> |
|||
|
|||
</view> |
|||
@ -1,58 +0,0 @@ |
|||
/* pages/home/businessLicense/index.wxss */ |
|||
page{ |
|||
background-color: white; |
|||
} |
|||
.bj { |
|||
background-color: white; |
|||
min-height: 900rpx; |
|||
} |
|||
|
|||
.vip-btn { |
|||
/* height: 90rpx; */ |
|||
width: 180rpx; |
|||
background: #F5F5F5; |
|||
float: right; |
|||
color: rgba(0, 0, 0, 0.45); |
|||
font-size: 28rpx; |
|||
} |
|||
|
|||
.top { |
|||
height: 258rpx; |
|||
width: 100%; |
|||
} |
|||
|
|||
.topText { |
|||
width: 440rpx; |
|||
height: 258rpx; |
|||
float: left; |
|||
padding-left: 48rpx; |
|||
padding-top: 60rpx; |
|||
font-size: 44rpx; |
|||
color: #000000; |
|||
font-family: PingFangSC-Medium; |
|||
} |
|||
|
|||
.mid { |
|||
height: 150rpx; |
|||
padding-top: 100rpx; |
|||
padding-left: 48rpx; |
|||
font-family: PingFangSC-Medium; |
|||
font-size: 36rpx; |
|||
color: #000000; |
|||
letter-spacing: 2px; |
|||
} |
|||
|
|||
.bottom { |
|||
height: 410rpx; |
|||
padding: 48rpx; |
|||
} |
|||
|
|||
.wux-badge { |
|||
position: absolute; |
|||
width: 120px; |
|||
height: 120px; |
|||
opacity: 0.8; |
|||
right: 0; |
|||
bottom: 0; |
|||
z-index: 10; |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save