Browse Source

no message

featrue/v4.5
xpz2018 4 years ago
parent
commit
4cc53dbaf0
8 changed files with 3 additions and 294 deletions
  1. 1
      app.json
  2. 118
      pages/home/business-license/index.js
  3. 5
      pages/home/business-license/index.json
  4. 32
      pages/home/business-license/index.wxml
  5. 58
      pages/home/business-license/index.wxss
  6. 5
      pages/home/info/index.js
  7. 37
      submodel/pages/home/enterprise/index.js
  8. 41
      submodel/pages/html/personal/index.js

1
app.json

@ -15,7 +15,6 @@
"pages/home/tab5/index", "pages/home/tab5/index",
"pages/home/tab6/index", "pages/home/tab6/index",
"pages/home/attention-paper/index", "pages/home/attention-paper/index",
"pages/home/business-license/index",
"pages/shop/create/index", "pages/shop/create/index",
"pages/shop/detail/index", "pages/shop/detail/index",
"pages/shop/order/index", "pages/shop/order/index",

118
pages/home/business-license/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
}]
})
})
}
})

5
pages/home/business-license/index.json

@ -1,5 +0,0 @@
{
"usingComponents": {
"wux-uploader": "/components/uploader/index"
}
}

32
pages/home/business-license/index.wxml

@ -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>

58
pages/home/business-license/index.wxss

@ -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;
}

5
pages/home/info/index.js

@ -293,11 +293,6 @@ Page({
} }
}) })
}, },
toBusinessLicense: function () {
wx.navigateTo({
url: '/pages/home/business-license/index'
})
},
toTab4: function () { toTab4: function () {
wx.navigateTo({ wx.navigateTo({
url: '/pages/home/tab4/index' url: '/pages/home/tab4/index'

37
submodel/pages/home/enterprise/index.js

@ -352,42 +352,7 @@ Page({
this.data.form['locDistrictId'] = e.detail.value[2] this.data.form['locDistrictId'] = e.detail.value[2]
this.data.form['locDistrictName'] = e.detail.options[2].label this.data.form['locDistrictName'] = e.detail.options[2].label
} }
this.setData({
picking: false
})
},
toBusinessLicense: function () {
wx.navigateTo({
url: '/pages/home/business-license/index'
})
},
toTab4: function () {
wx.navigateTo({
url: '/pages/home/tab4/index'
})
},
toTab5: function () {
wx.navigateTo({
url: '/pages/home/tab5/index'
})
},
toTab6: function () {
wx.navigateTo({
url: '/pages/home/tab6/index'
})
},
toTab3: function () {
wx.navigateTo({
url: '/pages/home/tab3/index'
})
},
toTab2: function () {
wx.navigateTo({
url: '/pages/home/tab2/index'
})
},
toTab1: function () {
wx.navigateTo({ url: '/pages/home/tab1/index' })
this.setData({ picking: false })
}, },
onShow: function () { onShow: function () {
tdsdk.Page.onShow() tdsdk.Page.onShow()

41
submodel/pages/html/personal/index.js

@ -380,44 +380,7 @@ Page({
this.data.form['locDistrictId'] = e.detail.value[2] this.data.form['locDistrictId'] = e.detail.value[2]
this.data.form['locDistrictName'] = e.detail.options[2].label this.data.form['locDistrictName'] = e.detail.options[2].label
} }
this.setData({
picking: false
})
},
toBusinessLicense: function () {
wx.navigateTo({
url: '/pages/home/business-license/index'
})
},
toTab4: function () {
wx.navigateTo({
url: '/pages/home/tab4/index'
})
},
toTab5: function () {
wx.navigateTo({
url: '/pages/home/tab5/index'
})
},
toTab6: function () {
wx.navigateTo({
url: '/pages/home/tab6/index'
})
},
toTab3: function () {
wx.navigateTo({
url: '/pages/home/tab3/index'
})
},
toTab2: function () {
wx.navigateTo({
url: '/pages/home/tab2/index'
})
},
toTab1: function () {
wx.navigateTo({
url: '/pages/home/tab1/index'
})
},
this.setData({ picking: false })
}
}) })
Loading…
Cancel
Save