Commit 339545fd authored by zhengke's avatar zhengke

修改

parent eb006ea9
......@@ -65,7 +65,7 @@
<view class="comInforName">
联系电话<text>*</text>
</view>
<input class="uni-input comInfoInput" v-model="msg.Mobile" placeholder="请输入公司联系电话" />
<input class="uni-input comInfoInput" v-model="msg.Mobile" type="number" placeholder="请输入公司联系电话" />
</view>
<view class="compInfoList">
<view class="comInforName">
......@@ -296,6 +296,9 @@
title: "保存成功",
});
this.getList();
uni.navigateTo({
url: '/pages/index/index'
});
}
}
);
......
<style>
.fatContent {
background-color: #fff;
margin-bottom:80px;
}
.fatContent .compInfoList {
width: 100%;
display: flex;
height: 60px;
align-items: center;
padding: 0 20px;
border-bottom: 1px solid #F2F3F6;
}
.fatContent .comInforName {
width: 25%;
color: #000;
}
.fatContent .comInforName text {
color: red;
}
.fatContent .fatInfoInput {
width: 75%;
margin-top: 2px;
color:#000000;
text-align: right;
}
.fatContent .fatInBtn{
position: fixed;
bottom:0;
width:100%;
height:50px;
color:#fff;
z-index:99;
font-size: 16px;
text-align: center;
line-height: 50px;
background-color: #000450;
}
.fatContent .inputM{
margin: 15rpx;
width: 89%;
padding:15px;
background-color: #F7F7F7;
}
</style>
<template>
<view class="fatContent">
<view class="compInfoList">
<view class="comInforName">
公司名称<text>*</text>
</view>
<input class="uni-input fatInfoInput" v-model="msg.CompanyName" placeholder="请输入公司名称" />
</view>
<view class="compInfoList">
<view class="comInforName">
联系人<text>*</text>
</view>
<input class="uni-input fatInfoInput" v-model="msg.Principal" placeholder="请输入联系人" />
</view>
<view class="compInfoList">
<view class="comInforName">
联系方式<text>*</text>
</view>
<input class="uni-input fatInfoInput" type="number" v-model="msg.Mobile" placeholder="请输入联系方式" />
</view>
<view class="compInfoList">
<view class="comInforName">
E-mail<text>*</text>
</view>
<input class="uni-input fatInfoInput" v-model="msg.EMail" placeholder="请输入邮箱" />
</view>
<view class="compInfoList">
<view class="comInforName">
FAT海关编码
</view>
<input class="uni-input fatInfoInput" v-model="msg.FatCode" placeholder="FAT海关编码" />
</view>
<view class="compInfoList">
<view class="comInforName">
咨询标题<text>*</text>
</view>
<input class="uni-input fatInfoInput" v-model="msg.FatTitle" placeholder="请输入标题" />
</view>
<view class="compInfoList" style="border-bottom:0;height:30px;margin-top:15px;">
<view class="comInforName">
咨询问题<text>*</text>
</view>
</view>
<!-- <input type="textarea" class="uni-input fatInfoInput" v-model="msg.FatQuestion" placeholder="请输入具体咨询问题" /> -->
<textarea style="height: 120px;" class="inputM" v-model="msg.FatQuestion" placeholder="请输入具体咨询问题" />
<view class="fatInBtn" @click="saveInfo()">提交</view>
</view>
</template>
<script>
</script>
export default {
data() {
return {
pageTitle: "FAT咨询",
dataList: [],
msg: {
CompanyName:'', //公司名称
Principal:'', //联系人
Mobile:'', //联系电话
EMail:'', //邮箱
FatCode:'', //海关编码
FatTitle:'', //咨询标题
FatQuestion:'' //咨询问题
}
};
},
mounted() {
uni.setNavigationBarTitle({
title: this.pageTitle,
});
},
onLoad(options) {
},
created() {
this.getList();
},
onShow() {
<style>
</style>
},
methods: {
//获取数据
//获取数据
getList() {
uni.showLoading({
title: '加载中'
});
this.request2({
url: "/api/AppletTrade/GetUserCompany",
data: {},
},
(res) => {
uni.hideLoading();
if (res.resultCode == 1) {
let tempData = res.data;
if (tempData) {
this.msg.CompanyName = tempData.CompanyName;
this.msg.Principal = tempData.Principal;
this.msg.Mobile = tempData.Mobile;
this.msg.EMail = tempData.EMail;
}
}
}
);
},
//保存数据
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;
}
if(this.msg.FatTitle==''){
uni.showToast({
title: "请输入咨询标题",
icon:'none'
});
return;
}
if(this.msg.FatQuestion==''){
uni.showToast({
title: "请输入咨询问题",
icon:'none'
});
return;
}
this.request2({
url: "/api/AppletTrade/SetCommerceAsk",
data: this.msg,
},
(res) => {
if (res.resultCode == 1) {
uni.showToast({
title: "保存成功",
});
this.getList();
uni.navigateTo({
url: '/pages/index/index'
});
}
}
);
}
},
}
</script>
......@@ -72,7 +72,7 @@
<view class="comInforName">
手机号码<text>*</text>
</view>
<input class="uni-input comInfoInput" v-model="msg.Mobile" placeholder="手机号码" />
<input class="uni-input comInfoInput" v-model="msg.Mobile" type="number" placeholder="手机号码" />
</view>
<view class="compInfoList">
<view class="comInforName">
......@@ -330,6 +330,9 @@
title: "保存成功",
});
this.getList();
uni.navigateTo({
url: '/pages/index/index'
});
}
}
);
......
......@@ -18,43 +18,67 @@
}
.koranewRight{
position: relative;
width:100%;
margin-left:15px;
}
.koraDate{
position: absolute;
color:#B9B9B9;
bottom:0;
font-size:13px;
font-size:12px;
}
.koraRName{
color:#404040;
font-size:14px;
font-size:15px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
.koraNewsSearch {
display: flex;
margin: 10px 10px 0 10px;
width: 100%;
justify-content: space-between;
}
.koraNews_Btn {
width: 60px;
height: 34px;
background-color: #000450;
color: #fff;
text-align: center;
line-height: 34px;
border-radius: 2px;
margin-right: 20px;
display: inline-block;
}
</style>
<template>
<view class="koraNews">
<view class="koraNewsList">
<view class="newsLeft">
<img src="../../static/images/icon/GradeAudit.png" alt=""/>
</view>
<view class="koranewRight">
<view class="koraRName">机智的FTA生活机智的FTA生活机智的FTA生活机智的FTA生活机智的FTA生活机智的FTA生活机智的FTA生活机智的FTA生活机智的FTA生活机智的FTA生活</view>
<view class="koraDate">2020/06/09</view>
</view>
<view class="koraNewsSearch">
<u-search placeholder="输入关键字搜索" style="width:81%;" :show-action="false" v-model="msg.Title"></u-search>
<view class="koraNews_Btn" @click="getList(1)">搜索</view>
</view>
<view class="koraNewsList">
<view class="newsLeft">
<img src="../../static/images/icon/GradeAudit.png" alt=""/>
</view>
<u-empty v-if="dataList.length==0" text="暂无数据" mode="data"></u-empty>
<scroll-view v-else :scroll-y="true" :enable-back-to-top="true" :enable-flex="true"
@scrolltolower="lower" :style="{ 'height': `calc(100%)`}">
<view>
<view class="koraRName">机智的FTA生活</view>
<view class="koraDate">2020/06/09</view>
<view class="koraNewsList" v-for="(item,index) in dataList" :key="index">
<view class="newsLeft">
<img :src="item.CoverImg" alt=""/>
</view>
<view class="koranewRight">
<view class="koraRName">{{item.Title}}</view>
<view class="koraDate">{{item.PublishTimeStr}}</view>
</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" />
</view>
</scroll-view>
</view>
</template>
......@@ -62,11 +86,61 @@
export default {
data() {
return {
pageTitle: "采购需求",
msg:{
pageIndex: 1,
pageSize: 10,
Title:''
},
pageCount: 1,
dataList:[],
loadText: {
loadmore: "轻轻上拉,加载更多",
loading: "努力加载中",
nomore: "没有更多了",
},
status:'',
}
},
mounted(){
uni.setNavigationBarTitle({
title: this.pageTitle,
});
this.getList(1);
},
methods: {
//获取数据
getList(num) {
if (num == 1) {
this.dataList = [];
}
uni.showLoading({
title: '加载中'
});
this.request2({
url: "/api/AppletTrade/GetNewsPage",
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";
}
},
}
}
</script>
......@@ -78,7 +78,7 @@
<view class="comInforName">
手机号码<text>*</text>
</view>
<input class="uni-input comInfoInput" v-model="msg.Mobile" placeholder="手机号码" />
<input class="uni-input comInfoInput" type="number" v-model="msg.Mobile" placeholder="手机号码" />
</view>
<view class="compInfoList">
<view class="comInforName">
......@@ -343,6 +343,9 @@
title: "保存成功",
});
this.getList();
uni.navigateTo({
url: '/pages/index/index'
});
}
}
);
......
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