Commit b6320375 authored by 黄奎's avatar 黄奎

Merge branch 'master' of http://gitlab.oytour.com/viitto/mallapp

parents b2a220f1 d2da39e3
{ {
"easycom": { "easycom": {
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
}, },
"pages": [{ "pages": [{
"path": "pages/index/index", "path": "pages/index/index",
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/cart/cart" "path": "pages/cart/cart"
}, },
{ {
"path": "pages/search/search" "path": "pages/search/search"
}, },
{ {
"path": "pages/cats/cats" "path": "pages/cats/cats"
}, },
{ {
"path": "pages/foot/index/index" "path": "pages/foot/index/index"
}, },
{ {
"path": "pages/favorite/favorite" "path": "pages/favorite/favorite"
}, },
{ {
"path": "pages/card/index/index" "path": "pages/card/index/index"
}, },
{ {
"path": "pages/cash-detail/cash-detail" "path": "pages/cash-detail/cash-detail"
}, },
{ {
"path": "pages/webbox/webbox" "path": "pages/webbox/webbox"
} }
,{ ,{
"path" : "components/navpage/category", "path" : "components/navpage/category",
"style" : "style" :
{ {
"navigationBarTitleText": "", "navigationBarTitleText": "",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
} }
], ],
"subPackages": [{ "subPackages": [{
"root": "pages/goods", "root": "pages/goods",
"pages": [{ "pages": [{
"path": "goods", "path": "goods",
"style": {} "style": {}
}, },
{ {
"path": "comment-list" "path": "comment-list"
}, },
{ {
"path": "list" "path": "list"
}, },
{ {
"path": "draw" "path": "draw"
} }
] ]
}, },
// { // {
// "root": "pages/member", // "root": "pages/member",
// "pages": [{ // "pages": [{
// "path": "index/index" // "path": "index/index"
// }, // },
// { // {
// "path": "privilege" // "path": "privilege"
// } // }
// ] // ]
// }, // },
{ {
"root": "pages/balance", "root": "pages/balance",
"pages": [{ "pages": [{
"path": "recharge" "path": "recharge"
}, },
{ {
"path": "balance" "path": "balance"
}, },
{ {
"path": "detail" "path": "detail"
}, { }, {
"path": "rules" "path": "rules"
} }
] ]
}, },
{ {
"root": "pages/live", "root": "pages/live",
// "plugins": { // "plugins": {
// "live-player-plugin": { // "live-player-plugin": {
// "version": "1.2.5", // "version": "1.2.5",
// "provider": "wx2b03c6e691cd7370" // "provider": "wx2b03c6e691cd7370"
// } // }
// }, // },
"pages": [{ "pages": [{
"path": "index" "path": "index"
}, { }, {
"path": "share" "path": "share"
}] }]
}, },
{ {
"root": "pages/user-center", "root": "pages/user-center",
"pages": [{ "pages": [{
"path": "integral-detail/integral-detail" "path": "integral-detail/integral-detail"
}, },
{ {
"path": "user-center", "path": "user-center",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
} }
] ]
}, },
{ {
"root": "pages/mySupplier", "root": "pages/mySupplier",
"pages": [{ "pages": [{
"path": "index/index", "path": "index/index",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, { }, {
"path": "myBill" "path": "myBill"
}, { }, {
"path": "billDetails" "path": "billDetails"
}, { }, {
"path": "mySupplierList" "path": "mySupplierList"
}, { }, {
"path": "myProduct" "path": "myProduct"
}, { }, {
"path": "supplierOrder" "path": "supplierOrder"
} }
] ]
}, },
{ {
"root": "pages/share", "root": "pages/share",
"pages": [{ "pages": [{
"path": "index/index", "path": "index/index",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "add/add" "path": "add/add"
}, },
{ {
"path": "cash/cash" "path": "cash/cash"
}, },
{ {
"path": "level/level" "path": "level/level"
}, },
{ {
"path": "level/level_t" "path": "level/level_t"
}, },
{ {
"path": "examine" "path": "examine"
}, },
{ {
"path": "buyVip/index" "path": "buyVip/index"
}, },
{ {
"path": "vipBuyCommission/vipBuyCommission" "path": "vipBuyCommission/vipBuyCommission"
}, },
{ {
"path": "buyRecord/index" "path": "buyRecord/index"
}, },
{ {
"path": "buyInterest/index" "path": "buyInterest/index"
} }
] ]
}, },
{ {
"root": "pages/share-team", "root": "pages/share-team",
"pages": [{ "pages": [{
"path": "share-team" "path": "share-team"
},{ },{
"path" : "share-detail", "path" : "share-detail",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}] }]
}, },
{ {
"root": "pages/share-order", "root": "pages/share-order",
"pages": [{ "pages": [{
"path": "share-order" "path": "share-order"
}] }]
}, },
{ {
"root": "pages/share-qrcode", "root": "pages/share-qrcode",
"pages": [{ "pages": [{
"path": "share-qrcode" "path": "share-qrcode"
}] }]
}, },
{ {
"root": "pages/share-money", "root": "pages/share-money",
"pages": [{ "pages": [{
"path": "share-money" "path": "share-money"
}] }]
}, },
{ {
"root": "pages/coupon", "root": "pages/coupon",
"pages": [{ "pages": [{
"path": "list/list" "path": "list/list"
}, },
{ {
"path": "details/details" "path": "details/details"
}, },
{ {
"path": "index/index" "path": "index/index"
} }
] ]
}, },
{ {
"root": "pages/order-submit", "root": "pages/order-submit",
"pages": [{ "pages": [{
"path": "pay-success" "path": "pay-success"
}, },
{ {
"path": "order-submit" "path": "order-submit"
},{ },{
"path":"education-submit" "path":"education-submit"
},{ },{
"path":"education-success" "path":"education-success"
} }
] ]
}, },
{ {
"root": "pages/address", "root": "pages/address",
"pages": [{ "pages": [{
"path": "address" "path": "address"
}, },
{ {
"path": "address_chosen" "path": "address_chosen"
}, },
{ {
"path": "AddAddress" "path": "AddAddress"
} }
] ]
}, },
{ {
"root": "pages/order", "root": "pages/order",
"pages": [{ "pages": [{
"path": "index/index" "path": "index/index"
}, },
{ {
"path": "after-sale/refunds-list" "path": "after-sale/refunds-list"
}, },
{ {
"path": "order-detail", "path": "order-detail",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "after-sale/refunds-detail" "path": "after-sale/refunds-detail"
}, },
{ {
"path": "after-sale/refunds" "path": "after-sale/refunds"
}, },
{ {
"path": "after-sale/index" "path": "after-sale/index"
}, },
{ {
"path": "index" "path": "index"
}, },
{ {
"path": "express" "path": "express"
}, },
{ {
"path": "order-commit" "path": "order-commit"
}, },
{ {
"path": "order-commit-details" "path": "order-commit-details"
}, },
//代付订单 //代付订单
{ {
"path": "payment-order", "path": "payment-order",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path":"educationO-detail",//教育详情 "path":"educationO-detail",//教育详情
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
} }
] ]
}, },
{ {
"root": "pages/microShop", "root": "pages/microShop",
"pages": [{ "pages": [{
"path": "index/index", "path": "index/index",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "myClients/myClients" "path": "myClients/myClients"
}, },
{ {
"path": "wdWithdrawal" "path": "wdWithdrawal"
}, },
{ {
"path": "wdOrder" "path": "wdOrder"
}, },
{ {
"path": "wdCase" "path": "wdCase"
}, },
{ {
"path": "shopSettings" "path": "shopSettings"
}, },
{ {
"path": "storeManagement/storeManagement" "path": "storeManagement/storeManagement"
}, },
{ {
"path": "storeManagement/goodsEdit" "path": "storeManagement/goodsEdit"
}, },
{ {
"path": "storeManagement/addGoods" "path": "storeManagement/addGoods"
}, },
{ {
"path": "storeManagement/index" "path": "storeManagement/index"
} }
] ]
}, },
//司导模块 //司导模块
{ {
"root": "pages/guidecar", "root": "pages/guidecar",
"pages": [{ "pages": [{
"path": "index", "path": "index",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},{ },{
"path":"pickcarcity" "path":"pickcarcity"
},{ },{
"path":"guidecarList" "path":"guidecarList"
},{ },{
"path": "orderList" "path": "orderList"
},{ },{
"path": "orderDetail" "path": "orderDetail"
},{ },{
"path":"guidecarGoodsdetails" "path":"guidecarGoodsdetails"
},{ },{
"path":"guidedetails" "path":"guidedetails"
},{ },{
"path":"place_order" "path":"place_order"
},{ },{
"path":"rili" "path":"rili"
},{ },{
"path":"order-commit" "path":"order-commit"
},{ },{
"path":"order-commit-detail" "path":"order-commit-detail"
},{ },{
"path":"components/guidecarDraw" "path":"components/guidecarDraw"
},{ },{
"path":"guidercarCommentList" "path":"guidercarCommentList"
}] }]
}, },
{ {
"root": "pages/quick_share", "root": "pages/quick_share",
"pages": [{ "pages": [{
"path": "index" "path": "index"
}] }]
}, },
//教育列表 //教育列表
{ {
"root": "pages/school", "root": "pages/school",
"pages": [{ "pages": [{
"path": "courseList" "path": "courseList"
},{ },{
"path": "courseInfo" "path": "courseInfo"
},{ },{
"path":"courseContent" "path":"courseContent"
// "style": { // "style": {
// "navigationStyle": "custom" // "navigationStyle": "custom"
// } // }
},{ },{
"path":"teacherDetails", "path":"teacherDetails",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},{ },{
"path":"articleList" "path":"articleList"
},{ },{
"path":"articleDetails" "path":"articleDetails"
},{ },{
"path":"commentPageList" "path":"commentPageList"
},{ },{
"path":"course-submit" "path":"course-submit"
},{ },{
"path":"components/schoolDraw" "path":"components/schoolDraw"
},{ },{
"path":"personal/followTeacher" "path":"personal/followTeacher"
},{ },{
"path":"personal/studycard" "path":"personal/studycard"
},{ },{
"path":"personal/cardList"//学习卡中心 "path":"personal/cardList"//学习卡中心
},{ },{
"path":"mystudy/mystudy", "path":"mystudy/mystudy",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},{ },{
"path":"mystudy/studyrecord", "path":"mystudy/studyrecord",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},{ },{
"path":"mystudy/orderStudy" "path":"mystudy/orderStudy"
},{ },{
"path":"personal/mycollection" "path":"personal/mycollection"
},{ },{
"path":"personal/orderList" "path":"personal/orderList"
},{ },{
"path":"personal/orderDetail" "path":"personal/orderDetail"
},{ },{
"path":"personal/order-commit"//课程待评价 "path":"personal/order-commit"//课程待评价
},{ },{
"path":"personal/order-commit-details"//发表评论 "path":"personal/order-commit-details"//发表评论
},{ },{
"path": "personal/payment-order"//课程代付 "path": "personal/payment-order"//课程代付
},{ },{
"path":"investigation" "path":"investigation"
}] }]
}, },
//线下服务 //线下服务
{ {
"root": "pages/reserve", "root": "pages/reserve",
"pages": [ "pages": [
{ {
"path":"storeList" "path":"storeList"
},{ },{
"path":"storeDetails", "path":"storeDetails",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},{ },{
"path":"personalList" "path":"personalList"
},{ },{
"path":"subscribe" "path":"subscribe"
},{ },{
"path":"personal/couponDetail" "path":"personal/couponDetail"
},{ },{
"path":"designerDetail" "path":"designerDetail"
},{ },{
"path":"goodsDetails" "path":"goodsDetails"
},{ },{
"path":"personal/orderlist" "path":"personal/orderlist"
},{ },{
"path":"personal/orderDetails", "path":"personal/orderDetails",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},{ },{
"path":"personal/cardList" "path":"personal/cardList"
},{ },{
"path":"personal/receivecard" "path":"personal/receivecard"
},{ },{
"path":"personal/order-commit" "path":"personal/order-commit"
},{ },{
"path":"personal/order-commit-details" "path":"personal/order-commit-details"
},{ },{
"path":"commentList" "path":"commentList"
},{ },{
"path":"share_qrcode" "path":"share_qrcode"
},{ },{
"path":"offline-success", "path":"offline-success",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},{ },{
"path":"draw" "path":"draw"
},{ },{
"path":"personal/myVipList" "path":"personal/myVipList"
},{ },{
"path":"personal/vipDetail" "path":"personal/vipDetail"
} }
] ]
}, },
//朋友圈 //朋友圈
{ {
"root": "pages/friendcircle", "root": "pages/friendcircle",
"pages": [{ "pages": [{
"path": "release"//发布页面 "path": "release"//发布页面
},{ },{
"path":"my-news"//我的动态 "path":"my-news"//我的动态
},{ },{
"path":"enlargevideo"//视频放大 "path":"enlargevideo"//视频放大
},{ },{
"path":"mydetails"//动态详情 "path":"mydetails"//动态详情
},{ },{
"path":"friendcircle"//朋友圈 "path":"friendcircle"//朋友圈
},{ },{
"path":"medynamic"//我的互动消息 "path":"medynamic"//我的互动消息
},{ },{
"path":"activitylist"//活动列表 不想多建一个分包就放在朋友圈里了 "path":"activitylist"//活动列表 不想多建一个分包就放在朋友圈里了
},{ },{
"path":"myreward" //活动列表 我的奖励 "path":"myreward" //活动列表 我的奖励
},{ },{
"path":"activeContent" //活动列表 活动内容 "path":"activeContent" //活动列表 活动内容
}] }]
}, },
//约课 //约课
{ {
"root": "pages/appointment", "root": "pages/appointment",
// "plugins": { // "plugins": {
// "live-player-plugin": { // "live-player-plugin": {
// "version": "1.2.5", // "version": "1.2.5",
// "provider": "wx2b03c6e691cd7370" // "provider": "wx2b03c6e691cd7370"
// } // }
// }, // },
"pages": [{ "pages": [{
"path": "appointment"//约课 "path": "appointment"//约课
},{ },{
"path": "personal/pointBalance"//点数余额 "path": "personal/pointBalance"//点数余额
},{ },{
"path": "personal/pointRecharge"//充值点数 "path": "personal/pointRecharge"//充值点数
},{ },{
"path":"personal/studentAppointmentList" //学生约课列表 "path":"personal/studentAppointmentList" //学生约课列表
},{ },{
"path":"personal/studentAppointmentInfo" //学生约课详情 "path":"personal/studentAppointmentInfo" //学生约课详情
},{ },{
"path": "appointmentList"//约课列表 "path": "appointmentList"//约课列表
},{ },{
"path": "confirmAppointment"//预约课程 "path": "confirmAppointment"//预约课程
// "style":{ // "style":{
// "usingComponents": { // "usingComponents": {
// "subscribe": "plugin-private://wx2b03c6e691cd7370/components/subscribe/subscribe" // "subscribe": "plugin-private://wx2b03c6e691cd7370/components/subscribe/subscribe"
// } // }
// } // }
},{ },{
"path": "traineeList"//预约的学员列表 "path": "traineeList"//预约的学员列表
},{ },{
"path": "order-success"//预约成功页面 "path": "order-success"//预约成功页面
},{ },{
"path": "personal/teacherOrderList" //约课列表-老师 "path": "personal/teacherOrderList" //约课列表-老师
},{ },{
"path": "personal/teacherOrderInfo" //约课列表-老师详情 "path": "personal/teacherOrderInfo" //约课列表-老师详情
} }
] ]
}, },
//抖音商品短视频 //抖音商品短视频
{ {
"root": "pages/video", "root": "pages/video",
"pages": [{ "pages": [{
"path": "index", "path": "index",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}] }]
}, },
//相亲分包 //相亲分包
{ {
"root": "pages/blindDate", "root": "pages/blindDate",
"pages": [{ "pages": [{
"path": "basicdata"//基础资料的填写 "path": "basicdata"//基础资料的填写
}] }]
} },
], //韩国馆项目 { "root": "pages/kotra", "pages": [{ "path": "contanctus" },{ "path": "contanctDetail" },{ "path": "compInformation" }] }
"globalStyle": { ],
"navigationBarTextStyle": "black", "globalStyle": {
"navigationBarTitleText": "", "navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#F8F8F8", "navigationBarTitleText": "",
"backgroundColor": "#F8F8F8", "navigationBarBackgroundColor": "#F8F8F8",
"app-plus": { "backgroundColor": "#F8F8F8",
//#ifdef H5 "app-plus": {
"titleNView": false //#ifdef H5
//#endif "titleNView": false
} //#endif
} }
}
} }
\ No newline at end of file
......
<style>
.compInformation {
background-color: #fff;
margin-bottom:80px;
}
.compInfoList {
width: 100%;
display: flex;
height: 60px;
align-items: center;
padding: 0 20px;
border-bottom: 1px solid #F2F3F6;
}
.comInforName {
width: 25%;
color: #000;
}
.comInforName text {
color: red;
}
.comInfoInput {
width: 75%;
margin-top: 2px;
font-size: 13px;
color:#808080;
}
.comInBtn{
position: fixed;
bottom:0;
width:100%;
height:50px;
color:#fff;
z-index:99;
font-size: 16px;
text-align: center;
line-height: 50px;
background-color: #0b0052;
}
</style>
<template>
<view class="compInformation">
<view class="compInfoList">
<view class="comInforName">
中文名称<text>*</text>
</view>
<input class="uni-input comInfoInput" v-model="msg.CompanyName" placeholder="请输入公司中文名称" />
</view>
<view class="compInfoList">
<view class="comInforName">
英文名称
</view>
<input class="uni-input comInfoInput" v-model="msg.CompanyEnName" placeholder="请输入公司英文名称" />
</view>
<view class="compInfoList">
<view class="comInforName">
联系人<text>*</text>
</view>
<input class="uni-input comInfoInput" v-model="msg.Principal" placeholder="请输入公司联系人" />
</view>
<view class="compInfoList">
<view class="comInforName">
联系电话<text>*</text>
</view>
<input class="uni-input comInfoInput" v-model="msg.Mobile" placeholder="请输入公司联系电话" />
</view>
<view class="compInfoList">
<view class="comInforName">
公司邮箱<text>*</text>
</view>
<input class="uni-input comInfoInput" v-model="msg.EMail" placeholder="请输入公司邮箱" />
</view>
<view class="compInfoList">
<view class="comInforName">
法人
</view>
<input class="uni-input comInfoInput" v-model="msg.LegalPerson" placeholder="请输入法人" />
</view>
<view class="compInfoList">
<view class="comInforName">
公司微信
</view>
<input class="uni-input comInfoInput" v-model="msg.WechatNo" placeholder="请输入公司微信" />
</view>
<view class="compInfoList">
<view class="comInforName">
公司介绍
</view>
<input class="uni-input comInfoInput" v-model="msg.CompanyIntro" placeholder="公司介绍" />
</view>
<view class="compInfoList">
<view class="comInforName">
公司官网
</view>
<input class="uni-input comInfoInput" v-model="msg.DomainUrl" placeholder="请输入公司官网" />
</view>
<view class="compInfoList">
<view class="comInforName">
成立时间
</view>
<view @click="showStart=true" style="width:75%;color:#808080;">{{msg.FoundingTime}}</view>
</view>
<view class="compInfoList">
<view class="comInforName">
员工数量
</view>
<input class="uni-input comInfoInput" v-model="msg.EmployeeNum" placeholder="请输入员工数量" />
</view>
<view class="compInfoList">
<view class="comInforName">
<view>年销售额</view>
<view>(万元)</view>
</view>
<input class="uni-input comInfoInput" v-model="msg.AnnualSales" placeholder="请输入年销售额" />
</view>
<view class="compInfoList">
<view class="comInforName">
<view>年进口额</view>
<view>(万元)</view>
</view>
<input class="uni-input comInfoInput" v-model="msg.AnnualImport" placeholder="请输入年进口额" />
</view>
<view class="compInfoList">
<view class="comInforName">
中文地址
</view>
<input class="uni-input comInfoInput" v-model="msg.Address" placeholder="请输入公司中文地址" />
</view>
<view class="compInfoList">
<view class="comInforName">
英文地址
</view>
<input class="uni-input comInfoInput" v-model="msg.EnAddress" placeholder="请输入公司英文地址" />
</view>
<view class="compInfoList">
<view class="comInforName">
行业
</view>
<input class="uni-input comInfoInput" v-model="msg.Industry" placeholder="请输入行业" />
</view>
<view class="compInfoList">
<view class="comInforName">
出口国
</view>
<input class="uni-input comInfoInput" v-model="msg.ExportCountry" placeholder="请输入主要出口国" />
</view>
<view class="compInfoList">
<view class="comInforName">
进口国
</view>
<input class="uni-input comInfoInput" v-model="msg.ImportCountry" placeholder="请输入主要进口国" />
</view>
<view class="compInfoList">
<view class="comInforName">
进口品目
</view>
<input class="uni-input comInfoInput" v-model="msg.ImportCategory" placeholder="请输入主要进口品目" />
</view>
<view class="compInfoList">
<view class="comInforName">
其他
</view>
<input class="uni-input comInfoInput" v-model="msg.OtherInfo" placeholder="请输入其他" />
</view>
<view class="comInBtn" @click="saveInfo()">提交</view>
<u-picker v-model="showStart" mode="time" :params="params" @confirm='btnStart' :default-time='defaultTime'></u-picker>
</view>
</template>
<script>
export default {
data() {
return {
pageTitle: "公司资料",
dataList: [],
showStart: false,
defaultTime: '',
params: {
year: true,
month: true,
day: true,
hour: false,
minute: false,
second: false
},
msg: {
CompanyId: 0, //编号
CompanyName: "", //公司名称
CompanyEnName: "", //公司英文名称
Principal: "", //联系人
Mobile: "", //联系电话
EMail: "", //邮箱
LegalPerson: "", //法人
WechatNo: "", //公司微信
CompanyIntro: "", //公司介绍
DomainUrl: "", //官网
FoundingTime: "", //成立时间
EmployeeNum: "", //员工人数
AnnualSales: "", //年销售(万元)
AnnualImport: "", //年进口额
Address: "", //详细地址
EnAddress: "", //详细地址(英文)
Industry: "", //行业
ExportCountry: "", //主要出口国
ImportCountry: "", //主要进口国家
ImportCategory: "", //主要进口类目
OtherInfo: "" //其他内容
}
};
},
mounted() {
uni.setNavigationBarTitle({
title: this.pageTitle,
});
var currTime = new Date();
var year = currTime.getFullYear();
var month = currTime.getMonth() + 1;
var day = currTime.getDate();
if(month<10){
month='0'+month;
}
if(day<10){
day='0'+day;
}
this.msg.FoundingTime =year+'-'+ month+'-'+day;
},
onLoad(options) {
},
created() {
this.getList();
},
onShow() {
},
methods: {
//获取数据
getList() {
uni.showLoading({
title: '加载中'
});
this.request2({
url: "/api/AppletTrade/GetUserCompany",
data: {},
},
(res) => {
uni.hideLoading();
if (res.resultCode == 1) {
console.log(res,'数据类了');
this.msg=res.data;
this.msg.FoundingTime = res.data.FoundingTimeStr;
}
}
);
},
//保存数据
saveInfo(){
if(this.msg.CompanyName==''){
uni.showToast({
title: "请输入公司中文名称",
icon:'none'
});
return;
}
if(this.msg.Principal==''){
uni.showToast({
title: "请输入联系人",
icon:'none'
});
return;
}
if(this.msg.Mobile==''){
uni.showToast({
title: "请输入联系电话",
icon:'none'
});
return;
}
if(this.msg.EMail==''){
uni.showToast({
title: "请输入公司邮箱",
icon:'none'
});
return;
}
this.request2({
url: "/api/AppletTrade/SetCompany",
data: this.msg,
},
(res) => {
if (res.resultCode == 1) {
uni.showToast({
title: "保存成功",
});
this.getList();
}
}
);
},
btnStart(val) {
this.msg.FoundingTime = val.year+'-'+val.month+'-'+val.day;
console.log(val);
},
},
}
</script>
<style>
</style>
<style>
.contactTop{
width:100%;
height:250px;
border-bottom:1px solid #d1d1d1;
}
.contanctInfo{
font-size:15px;
margin:20px;
}
.contancTel{
color:#dd524d;
margin:10px 0;
}
.contanctJob{
font-size:13px;
color:#999ca1;
}
</style>
<template>
<view class="contanctDetail" style="height:100vh;">
<view class="contactTop">
<img :src="dataList.BgImg" style="width:100%;height:100%;" alt=""/>
</view>
<view class="contanctInfo">
<view>姓名:{{dataList.Name}}</view>
<view class="contancTel">电话:{{dataList.Tel}}</view>
<view class="contanctJob">职位:{{dataList.Position}}</view>
</view>
<u-divider>简单介绍</u-divider>
<view style="margin:20px;">
{{dataList.Intro}}
</view>
</view>
</template>
<script>
export default {
data() {
return {
pageTitle: "联系人详情",
msg:{
Id:0
},
dataList:{}
};
},
mounted() {
uni.setNavigationBarTitle({
title: this.pageTitle,
});
},
onLoad(options) {
this.msg.Id = options.Id;
this.getList();
},
created() {},
onShow() {
this.mainColor = this.$uiConfig.mainColor;
},
methods: {
//获取数据
getList() {
this.request2({
url: "/api/Trade/GetContract",
data: this.msg,
},
(res) => {
uni.hideLoading();
if (res.resultCode == 1) {
console.log(res,'数据来也');
this.dataList = res.data;
}
}
);
},
},
}
</script>
\ No newline at end of file
<style>
.contanctMain {
background-color: #F3F5F7;
}
.contanctIn {
display: flex;
padding: 20px;
}
.contancList {
width: 118px;
height: 180px;
background-color: #fff;
margin-right: 10px;
text-align: center;
border-radius: 3px;
overflow: hidden;
}
.contancList:nth-child(3) {
margin-right: 0;
}
.contanctImg {
width: 100%;
height: 131px;
}
.contanctImg img {
width: 100%;
height: 100%;
}
.contancName {
color: #404040;
font-size: 13px;
margin:5px 0;
}
.contactNum {
color: #999898;
font-size: 12px;
display: flex;
align-items: center;
justify-content: center;
}
</style>
<template>
<view class="contanctMain" style="height:100vh;">
<u-empty v-if="dataList.length==0" text="暂无数据" mode="data"></u-empty>
<scroll-view v-else :scroll-y="true" style="background-color: #f0f4f7;" :enable-back-to-top="true" :enable-flex="true"
@scrolltolower="lower" :style="{ 'height': `calc(100%)`}">
<view class="contanctIn">
<view class="contancList" v-for="(item,index) in dataList" @click="goDetail(item.Id)" :key="index">
<view class="contanctImg">
<img :src="item.HeadIcon" alt="" />
</view>
<view>
<view class="contancName">{{item.Name}}</view>
<view class="contactNum">
<image style="width:20px;height:20px;" src="../../static/images/call.png"></image>{{item.Tel}}
</view>
</view>
</view>
</view>
<view style="padding:10px 0;">
<u-loadmore :status="status" :load-text="loadText" :font-size="24" :margin-top="0" :margin-bottom="0" bg-color="#f0f4f7" />
</view>
</scroll-view>
<tabbar></tabbar>
</view>
</template>
<script>
import tabbar from "@/components/tabbar/index";
export default {
data() {
return {
pageTitle: "联系我们",
msg:{
pageIndex:1,
pageSize:15
},
pageCount: 1,
dataList: [],
loadText: {
loadmore: "轻轻上拉,加载更多",
loading: "努力加载中",
nomore: "没有更多了",
},
};
},
components: {
tabbar
},
mounted() {
uni.setNavigationBarTitle({
title: this.pageTitle,
});
},
onLoad(options) {
this.getList(1);
},
created() {},
onShow() {
this.mainColor = this.$uiConfig.mainColor;
},
methods: {
//获取数据
getList(num) {
if (num == 1) {
this.dataList = [];
}
uni.showLoading({
title: '加载中'
});
this.request2({
url: "/api/Trade/GetContractPageList",
data: this.msg,
},
(res) => {
uni.hideLoading();
if (res.resultCode == 1) {
console.log(res,'数据来也');
this.dataList = this.dataList.concat(res.data.pageData);
this.pageCount = res.data.pageCount;
}
}
);
},
//滚动加载
lower(e) {
if (this.msg.pageIndex < this.pageCount) {
this.msg.pageIndex++;
this.status = "loading";
this.getList();
} else {
this.status = "nomore";
}
},
//跳转
goDetail(Id) {
uni.navigateTo({
url: '/pages/kotra/contanctDetail?Id='+Id
})
},
},
}
</script>
<style>
</style>
<template>
<view>12</view>
</template>
<script>
</script>
<style>
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment