Browse Source
Merge branch 'featrue/v4.2' of http://git.qniao.cn/libo/ztb-mini into featrue/v4.2
featrue/v4.2
Merge branch 'featrue/v4.2' of http://git.qniao.cn/libo/ztb-mini into featrue/v4.2
featrue/v4.2
30 changed files with 1373 additions and 154 deletions
Split View
Diff Options
-
4app.json
-
BINassets/image/dbcicon.png
-
BINassets/image/fzcicon.png
-
BINassets/image/qticon.png
-
BINassets/image/tabBj.png
-
BINassets/image/zzcicon.png
-
137pages/agent/factory/index.js
-
4pages/agent/factory/index.wxml
-
71pages/agent/index/index.js
-
34pages/agent/index/index.wxml
-
182pages/home/info/index.js
-
26pages/home/info/index.wxml
-
88pages/home/tab1/index.js
-
3pages/home/tab1/index.json
-
61pages/home/tab1/index.wxml
-
94pages/home/tab1/index.wxss
-
129pages/home/tab2/index.js
-
5pages/home/tab2/index.json
-
31pages/home/tab2/index.wxml
-
91pages/home/tab2/index.wxss
-
95pages/home/tab3/index.js
-
3pages/home/tab3/index.json
-
43pages/home/tab3/index.wxml
-
79pages/home/tab3/index.wxss
-
76pages/home/tab4/index.js
-
3pages/home/tab4/index.json
-
25pages/home/tab4/index.wxml
-
46pages/home/tab4/index.wxss
-
5pages/index/index.js
-
192pages/login/index.js
@ -0,0 +1,88 @@ |
|||
// pages/home/tab1/index.js
|
|||
const storage = require('../../../utils/storage') |
|||
Page({ |
|||
|
|||
/** |
|||
* 页面的初始数据 |
|||
*/ |
|||
data: { |
|||
bidType:1 |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面加载 |
|||
*/ |
|||
onLoad: function (options) { |
|||
|
|||
}, |
|||
toNextTab:function(){ |
|||
wx.redirectTo({ url: '/pages/home/tab2/index' }) |
|||
}, |
|||
toMyInfo:function(){ |
|||
storage.put('userIsLoginFirst', '1') |
|||
wx.redirectTo({ url: '/pages/index/index' }) |
|||
}, |
|||
/** |
|||
* 生命周期函数--监听页面初次渲染完成 |
|||
*/ |
|||
onReady: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面显示 |
|||
*/ |
|||
onShow: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面隐藏 |
|||
*/ |
|||
onHide: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面卸载 |
|||
*/ |
|||
onUnload: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面相关事件处理函数--监听用户下拉动作 |
|||
*/ |
|||
onPullDownRefresh: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面上拉触底事件的处理函数 |
|||
*/ |
|||
onReachBottom: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 用户点击右上角分享 |
|||
*/ |
|||
onShareAppMessage: function () { |
|||
|
|||
}, |
|||
backspace: function () { |
|||
return |
|||
|
|||
}, |
|||
onTabChangeTop: function (e) { |
|||
if (this.data.bidType == Number(e.currentTarget.dataset.index)) { |
|||
return |
|||
} |
|||
var tabIndex = Number(e.currentTarget.dataset.index) |
|||
this.data.firstCategoryId = '' |
|||
this.setData({ |
|||
['bidType']: tabIndex |
|||
}) |
|||
}, |
|||
}) |
|||
@ -0,0 +1,3 @@ |
|||
{ |
|||
"usingComponents": {} |
|||
} |
|||
@ -0,0 +1,61 @@ |
|||
<!--pages/home/tab1/index.wxml--> |
|||
<cu-custom bgColor="bg-white" isBack="{{true}}" intercept="{{true}}" bindcustomevent="backspace"> |
|||
<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> |
|||
<button class="cu-btn bg-red round shadow-blur vip-btn" bindtap="toNextTab">下一页</button> |
|||
</view> |
|||
<view class="top"> |
|||
<view class="topText"> |
|||
<text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text> |
|||
</view> |
|||
<view style="width:310rpx;height:258rpx;float:right"> |
|||
<image src="/assets/image/tabBj.png" style="width:310rpx;height:258rpx"></image> |
|||
</view> |
|||
</view> |
|||
<view class="mid"> |
|||
<text>你的从业身份是?</text> |
|||
</view> |
|||
<view class="bottom"> |
|||
<view class="btson1" style="color:{{bidType == 1 ? '#008AFF' : '#333'}};border-color:{{bidType == 1 ? '#008AFF' : '#D8D8D8'}};" data-index="1" bindtap="onTabChangeTop"> |
|||
<view style="width:48rpx;height:48rpx;float:left"> |
|||
<image style="width:48rpx;height:48rpx;" src="/assets/image/dbcicon.png"></image> |
|||
</view> |
|||
<view style="width:114rpx;height:50rpx;float:right"> |
|||
<text>打包站</text> |
|||
</view> |
|||
</view> |
|||
<view class="btson2" style="color:{{bidType == 2 ? '#008AFF' : '#333'}};border-color:{{bidType == 2 ? '#008AFF' : '#D8D8D8'}};" data-index="2" bindtap="onTabChangeTop"> |
|||
<view style="width:183rpx;height:50rpx;background: #FFFFFF;"> |
|||
<view style="width:48rpx;height:48rpx;float:left"> |
|||
<image style="width:48rpx;height:48rpx;" src="/assets/image/fzcicon.png"></image> |
|||
</view> |
|||
<view style="width:114rpx;height:50rpx;float:right"> |
|||
<text>废品站</text> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
<view class="btson3" style="color:{{bidType == 3 ? '#008AFF' : '#333'}};border-color:{{bidType == 3 ? '#008AFF' : '#D8D8D8'}};" data-index="3" bindtap="onTabChangeTop"> |
|||
<view style="width:48rpx;height:48rpx;float:left"> |
|||
<image style="width:48rpx;height:48rpx;" src="/assets/image/zzcicon.png"></image> |
|||
</view> |
|||
<view style="width:114rpx;height:50rpx;float:right"> |
|||
<text>造纸厂</text> |
|||
</view> |
|||
</view> |
|||
<view class="btson4" style="color:{{bidType == 4 ? '#008AFF' : '#333'}};border-color:{{bidType == 4 ? '#008AFF' : '#D8D8D8'}};" data-index="4" bindtap="onTabChangeTop"> |
|||
<view style="width:48rpx;height:48rpx;float:left"> |
|||
<image style="width:48rpx;height:48rpx;" src="/assets/image/qticon.png"></image> |
|||
</view> |
|||
<view style="width:114rpx;height:50rpx;float:right"> |
|||
<text>其他</text> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
<view class="otherInpt" wx:if="{{bidType == 4}}" > |
|||
<input placeholder="请输入你的身份" bindinput="bindinput" /> |
|||
</view> |
|||
</view> |
|||
@ -0,0 +1,94 @@ |
|||
/* pages/home/tab1/index.wxss */ |
|||
.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; |
|||
} |
|||
|
|||
.btson1 { |
|||
height: 147rpx; |
|||
width: 315rpx; |
|||
float: left; |
|||
overflow: hidden; |
|||
border: 3rpx solid #D8D8D8; |
|||
border-radius: 10rpx; |
|||
border-radius: 10rpx; |
|||
padding: 22px 33px 22px 33px; |
|||
} |
|||
|
|||
.btson2 { |
|||
height: 147rpx; |
|||
width: 315rpx; |
|||
float: right; |
|||
overflow: hidden; |
|||
border: 3rpx solid #D8D8D8; |
|||
border-radius: 10rpx; |
|||
border-radius: 10rpx; |
|||
padding: 22px 33px 22px 33px; |
|||
} |
|||
|
|||
.btson3 { |
|||
height: 147rpx; |
|||
width: 315rpx; |
|||
float: left; |
|||
margin-top: 20rpx; |
|||
overflow: hidden; |
|||
border: 3rpx solid #D8D8D8; |
|||
border-radius: 10rpx; |
|||
border-radius: 10rpx; |
|||
padding: 22px 33px 22px 33px; |
|||
} |
|||
|
|||
.btson4 { |
|||
height: 147rpx; |
|||
width: 315rpx; |
|||
float: right; |
|||
margin-top: 20rpx; |
|||
overflow: hidden; |
|||
border: 3rpx solid #D8D8D8; |
|||
border-radius: 10rpx; |
|||
border-radius: 10rpx; |
|||
padding: 22px 33px 22px 33px; |
|||
} |
|||
.otherInpt{ |
|||
padding-left: 48rpx; |
|||
} |
|||
@ -0,0 +1,129 @@ |
|||
// pages/home/tab2/index.js
|
|||
const storage = require('../../../utils/storage') |
|||
import regions from '../../../utils/region' |
|||
Page({ |
|||
|
|||
/** |
|||
* 页面的初始数据 |
|||
*/ |
|||
data: { |
|||
options: regions, |
|||
region: [440000, '', ''], |
|||
form: { |
|||
bidType: 1, |
|||
imgList: [], |
|||
secondCategoryId: null, |
|||
stock: null, |
|||
dopantRate: null, |
|||
waterRate: null |
|||
}, |
|||
cateName: '', |
|||
dopantName: '', |
|||
waterName: '', |
|||
intervalName: '', |
|||
sumAmount: 0, |
|||
keyboard: 0, |
|||
toView: '', |
|||
focus: false, |
|||
picking: false |
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面加载 |
|||
*/ |
|||
onLoad: function (options) { |
|||
this.cascaderView = this.cascaderView || this.selectComponent('#wux-cascader') |
|||
this.pickerView = this.pickerView || this.selectComponent('#picker-view') |
|||
|
|||
}, |
|||
toNextTab: function () { |
|||
wx.redirectTo({ |
|||
url: '/pages/home/tab3/index' |
|||
}) |
|||
}, |
|||
toMyInfo: function () { |
|||
storage.put('userIsLoginFirst', '1') |
|||
wx.redirectTo({ |
|||
url: '/pages/index/index' |
|||
}) |
|||
}, |
|||
/** |
|||
* 生命周期函数--监听页面初次渲染完成 |
|||
*/ |
|||
onReady: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面显示 |
|||
*/ |
|||
onShow: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面隐藏 |
|||
*/ |
|||
onHide: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面卸载 |
|||
*/ |
|||
onUnload: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面相关事件处理函数--监听用户下拉动作 |
|||
*/ |
|||
onPullDownRefresh: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面上拉触底事件的处理函数 |
|||
*/ |
|||
onReachBottom: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 用户点击右上角分享 |
|||
*/ |
|||
onShareAppMessage: function () { |
|||
|
|||
}, |
|||
backspace: function () { |
|||
console.log('点击返回被触发2') |
|||
wx.redirectTo({ |
|||
url: '/pages/home/tab1/index' |
|||
}) |
|||
|
|||
}, |
|||
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 }) |
|||
}, |
|||
}) |
|||
@ -0,0 +1,5 @@ |
|||
{ |
|||
"usingComponents": { |
|||
"wux-cascader": "/components/cascader/index" |
|||
} |
|||
} |
|||
@ -0,0 +1,31 @@ |
|||
<!--pages/home/tab2/index.wxml--> |
|||
<cu-custom bgColor="bg-white" isBack="{{true}}" intercept="{{true}}" bindcustomevent="backspace"> |
|||
<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> |
|||
<button class="cu-btn bg-red round shadow-blur vip-btn" bindtap="toNextTab">下一页</button> |
|||
</view> |
|||
<view class="top"> |
|||
<view class="topText"> |
|||
<text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text> |
|||
</view> |
|||
<view style="width:310rpx;height:258rpx;float:right"> |
|||
<image src="/assets/image/tabBj.png" style="width:310rpx;height:258rpx"></image> |
|||
</view> |
|||
</view> |
|||
<view class="mid"> |
|||
<text>你所在的城市是?</text> |
|||
</view> |
|||
<view class="bottomPCC"> |
|||
</view> |
|||
<view class="bottom" bindtap="showRegion"> |
|||
<view class="text-sg {{form.areaStr?'text-blue':'input-grey'}}">{{form.areaStr||'请选择所在地区'}}</view> |
|||
</view> |
|||
</view> |
|||
|
|||
<wux-cascader id="wux-cascader" value="{{region}}" options="{{ options }}" bind:close="onRegionChange" /> |
|||
<!-- <wux-cascader visible="{{ visible }}" controlled value="{{ cateValue }}" options="{{ cateList }}" |
|||
bind:close="onCategory" bind:load="onLoadOptions" /> --> |
|||
@ -0,0 +1,91 @@ |
|||
/* pages/home/tab1/index.wxss */ |
|||
.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; |
|||
} |
|||
|
|||
.btson1 { |
|||
height: 147rpx; |
|||
width: 315rpx; |
|||
float: left; |
|||
overflow: hidden; |
|||
border: 3rpx solid #D8D8D8; |
|||
border-radius: 10rpx; |
|||
border-radius: 10rpx; |
|||
padding: 22px 33px 22px 33px; |
|||
} |
|||
|
|||
.btson2 { |
|||
height: 147rpx; |
|||
width: 315rpx; |
|||
float: right; |
|||
overflow: hidden; |
|||
border: 3rpx solid #D8D8D8; |
|||
border-radius: 10rpx; |
|||
border-radius: 10rpx; |
|||
padding: 22px 33px 22px 33px; |
|||
} |
|||
|
|||
.btson3 { |
|||
height: 147rpx; |
|||
width: 315rpx; |
|||
float: left; |
|||
margin-top: 20rpx; |
|||
overflow: hidden; |
|||
border: 3rpx solid #D8D8D8; |
|||
border-radius: 10rpx; |
|||
border-radius: 10rpx; |
|||
padding: 22px 33px 22px 33px; |
|||
} |
|||
|
|||
.btson4 { |
|||
height: 147rpx; |
|||
width: 315rpx; |
|||
float: right; |
|||
margin-top: 20rpx; |
|||
overflow: hidden; |
|||
border: 3rpx solid #D8D8D8; |
|||
border-radius: 10rpx; |
|||
border-radius: 10rpx; |
|||
padding: 22px 33px 22px 33px; |
|||
} |
|||
@ -0,0 +1,95 @@ |
|||
// pages/home/tab3/index.js
|
|||
const storage = require('../../../utils/storage') |
|||
Page({ |
|||
|
|||
/** |
|||
* 页面的初始数据 |
|||
*/ |
|||
data: { |
|||
bidType: 1 |
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面加载 |
|||
*/ |
|||
onLoad: function (options) { |
|||
|
|||
}, |
|||
toNextTab: function () { |
|||
wx.redirectTo({ |
|||
url: '/pages/home/tab4/index' |
|||
}) |
|||
}, |
|||
toMyInfo: function () { |
|||
storage.put('userIsLoginFirst', '1') |
|||
wx.redirectTo({ |
|||
url: '/pages/index/index' |
|||
}) |
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面初次渲染完成 |
|||
*/ |
|||
onReady: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面显示 |
|||
*/ |
|||
onShow: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面隐藏 |
|||
*/ |
|||
onHide: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面卸载 |
|||
*/ |
|||
onUnload: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面相关事件处理函数--监听用户下拉动作 |
|||
*/ |
|||
onPullDownRefresh: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面上拉触底事件的处理函数 |
|||
*/ |
|||
onReachBottom: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 用户点击右上角分享 |
|||
*/ |
|||
onShareAppMessage: function () { |
|||
|
|||
}, |
|||
backspace: function () { |
|||
console.log('点击返回被触发3') |
|||
wx.redirectTo({ |
|||
url: '/pages/home/tab2/index' |
|||
}) |
|||
|
|||
}, |
|||
onTabChangeTop: function (e) { |
|||
if (this.data.bidType == Number(e.currentTarget.dataset.index)) { |
|||
return |
|||
} |
|||
var tabIndex = Number(e.currentTarget.dataset.index) |
|||
this.data.firstCategoryId = '' |
|||
this.setData({ |
|||
['bidType']: tabIndex |
|||
}) |
|||
}, |
|||
}) |
|||
@ -0,0 +1,3 @@ |
|||
{ |
|||
"usingComponents": {} |
|||
} |
|||
@ -0,0 +1,43 @@ |
|||
<!--pages/home/tab3/index.wxml--> |
|||
<cu-custom bgColor="bg-white" isBack="{{true}}" intercept="{{true}}" bindcustomevent="backspace"> |
|||
<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> |
|||
<button class="cu-btn bg-red round shadow-blur vip-btn" bindtap="toNextTab">下一页</button> |
|||
</view> |
|||
<view class="top"> |
|||
<view class="topText"> |
|||
<text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text> |
|||
</view> |
|||
<view style="width:310rpx;height:258rpx;float:right"> |
|||
<image src="/assets/image/tabBj.png" style="width:310rpx;height:258rpx"></image> |
|||
</view> |
|||
</view> |
|||
<view class="mid"> |
|||
<text>你的从业经验是?</text> |
|||
</view> |
|||
<view class="bottom"> |
|||
<view class="btson1" style="color:{{bidType == 1 ? '#008AFF' : '#333'}};border-color:{{bidType == 1 ? '#008AFF' : '#D8D8D8'}};" data-index="1" bindtap="onTabChangeTop"> |
|||
<view style="width:162rpx;height:50rpx;padding-left:20rpx;float:right"> |
|||
<text>1年以下</text> |
|||
</view> |
|||
</view> |
|||
<view class="btson2" style="color:{{bidType == 2 ? '#008AFF' : '#333'}};border-color:{{bidType == 2 ? '#008AFF' : '#D8D8D8'}};" data-index="2" bindtap="onTabChangeTop"> |
|||
<view style="width:183rpx;height:50rpx;background: #FFFFFF;"> |
|||
<view style="width:162rpx;height:50rpx;padding-left:20rpx;float:right"> |
|||
<text>1~5年</text> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
<view class="btson3" style="color:{{bidType == 3 ? '#008AFF' : '#333'}};border-color:{{bidType == 3 ? '#008AFF' : '#D8D8D8'}};" data-index="3" bindtap="onTabChangeTop"> |
|||
<view style="width:162rpx;height:50rpx;padding-left:20rpx;float:right"> |
|||
<text>5年以上</text> |
|||
</view> |
|||
</view> |
|||
|
|||
|
|||
</view> |
|||
</view> |
|||
@ -0,0 +1,79 @@ |
|||
/* pages/home/tab1/index.wxss */ |
|||
.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; |
|||
} |
|||
|
|||
.btson1 { |
|||
height: 147rpx; |
|||
width: 315rpx; |
|||
float: left; |
|||
overflow: hidden; |
|||
border: 3rpx solid #D8D8D8; |
|||
border-radius: 10rpx; |
|||
border-radius: 10rpx; |
|||
padding: 22px 35px 22px 35px; |
|||
} |
|||
|
|||
.btson2 { |
|||
height: 147rpx; |
|||
width: 315rpx; |
|||
float: right; |
|||
overflow: hidden; |
|||
border: 3rpx solid #D8D8D8; |
|||
border-radius: 10rpx; |
|||
border-radius: 10rpx; |
|||
padding: 22px 35px 22px 35px; |
|||
} |
|||
|
|||
.btson3 { |
|||
height: 147rpx; |
|||
width: 315rpx; |
|||
float: left; |
|||
margin-top: 20rpx; |
|||
overflow: hidden; |
|||
border: 3rpx solid #D8D8D8; |
|||
border-radius: 10rpx; |
|||
border-radius: 10rpx; |
|||
padding: 22px 35px 22px 35px; |
|||
} |
|||
@ -0,0 +1,76 @@ |
|||
// pages/home/tab4/index.js
|
|||
const storage = require('../../../utils/storage') |
|||
Page({ |
|||
|
|||
/** |
|||
* 页面的初始数据 |
|||
*/ |
|||
data: { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面加载 |
|||
*/ |
|||
onLoad: function (options) { |
|||
|
|||
}, |
|||
toMyInfo:function(){ |
|||
storage.put('userIsLoginFirst', '1') |
|||
wx.redirectTo({ url: '/pages/index/index' }) |
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面初次渲染完成 |
|||
*/ |
|||
onReady: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面显示 |
|||
*/ |
|||
onShow: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面隐藏 |
|||
*/ |
|||
onHide: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面卸载 |
|||
*/ |
|||
onUnload: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面相关事件处理函数--监听用户下拉动作 |
|||
*/ |
|||
onPullDownRefresh: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面上拉触底事件的处理函数 |
|||
*/ |
|||
onReachBottom: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 用户点击右上角分享 |
|||
*/ |
|||
onShareAppMessage: function () { |
|||
|
|||
}, |
|||
backspace:function(){ |
|||
// console.log('点击返回被触发4')
|
|||
wx.redirectTo({ url: '/pages/home/tab3/index' }) |
|||
|
|||
}, |
|||
}) |
|||
@ -0,0 +1,3 @@ |
|||
{ |
|||
"usingComponents": {} |
|||
} |
|||
@ -0,0 +1,25 @@ |
|||
<!--pages/home/tab4/index.wxml--> |
|||
<cu-custom bgColor="bg-white" isBack="{{true}}" intercept="{{true}}" bindcustomevent="backspace"> |
|||
<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> |
|||
<button class="cu-btn bg-red round shadow-blur vip-btn" bindtap="toNextTab">下一页</button> |
|||
</view> |
|||
<view class="top"> |
|||
<view class="topText"> |
|||
<text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text> |
|||
</view> |
|||
<view style="width:310rpx;height:258rpx;float:right"> |
|||
<image src="/assets/image/tabBj.png" style="width:310rpx;height:258rpx"></image> |
|||
</view> |
|||
</view> |
|||
<view class="mid"> |
|||
<text>你希望采购的品类是?</text> |
|||
</view> |
|||
<view class="bottom"> |
|||
|
|||
</view> |
|||
</view> |
|||
@ -0,0 +1,46 @@ |
|||
/* pages/home/tab1/index.wxss */ |
|||
.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; |
|||
} |
|||
|
|||
Write
Preview
Loading…
Cancel
Save