【开发】 标协会员
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
// pages/standardBasicInfo/standardBasicInfo.js
|
||||
import {getStandardBasicInfo} from '../../assets/js/http/standardApi'
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
secretariatInfo:{},// 秘书处信息
|
||||
companyInfo:{} // 本企业信息
|
||||
},
|
||||
// 获取基本信息
|
||||
getBasicInfo(){
|
||||
getStandardBasicInfo().then(res => {
|
||||
console.log(res);
|
||||
if(res.success){
|
||||
this.setData({
|
||||
secretariatInfo:res.result,
|
||||
companyInfo:res.result
|
||||
})
|
||||
}
|
||||
}).catch(err => {
|
||||
console.log(err,'err');
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
this.getBasicInfo()
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "基本信息",
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
<!--pages/standardBasicInfo/standardBasicInfo.wxml-->
|
||||
<view>
|
||||
<!-- 秘书处信息begin -->
|
||||
<view class="basic-info mishu">
|
||||
<view class="title">
|
||||
<text>秘书处信息:</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>地址:</text>
|
||||
<text>{{secretariatInfo.address}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>联系人:</text>
|
||||
<text>{{secretariatInfo.contract}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>联系人电话:</text>
|
||||
<text>{{secretariatInfo.phone}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>联系人邮箱:</text>
|
||||
<text>{{secretariatInfo.email}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 秘书处信息end -->
|
||||
<!-- 本企业信息begin -->
|
||||
<view class="basic-info company mishu">
|
||||
|
||||
<view class="title">
|
||||
<text>本企业信息:</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>企业名称:</text>
|
||||
<text>{{companyInfo.name}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>企业管理员:</text>
|
||||
<text>{{companyInfo.email}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>管理员电话:</text>
|
||||
<text>{{companyInfo.phone}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>管理人邮箱:</text>
|
||||
<text>{{companyInfo.email}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>会员有效期:</text>
|
||||
<text>{{companyInfo.email}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 本企业信息end' -->
|
||||
</view>
|
||||
@@ -0,0 +1,38 @@
|
||||
/* pages/standardBasicInfo/standardBasicInfo.wxss */
|
||||
page{
|
||||
padding: 10px;
|
||||
box-sizing: border-box;
|
||||
background-color: #F5F5F5;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.basic-info .title text{
|
||||
border-left: 3px solid #069F99;
|
||||
height: 14px;
|
||||
padding-left: 10px;
|
||||
border-radius: 2px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: #333;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.mishu {
|
||||
padding: 30rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 10px;
|
||||
height: auto;
|
||||
}
|
||||
.mishu view{
|
||||
display: flex;
|
||||
padding: 14rpx;
|
||||
font-size: 14px;
|
||||
}
|
||||
.mishu view text:nth-child(1){
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.company {
|
||||
margin-top: 20px;
|
||||
}
|
||||
Reference in New Issue
Block a user