Commit fbf012d5 authored by zhengke's avatar zhengke

修改

parent 64790c4a
<template>
<div class="mynav" :style="{'background':bg}" style="padding-bottom:20px;">
<div class="mynav" :style="{'background':bg}" style="padding-bottom:40px;">
<swiper :autoplay="false" :style="{'height': height + 'rpx' }">
<swiper-item v-for="(item, index) in cols" :key="index">
<view :style="[formatStyle]">
......@@ -26,6 +26,34 @@
</template>
</template>
</template>
<u-popup v-model="showModal" mode="center" length="90%">
<view class="companyMainCon">
<view class="companyCanhui">
<Text class="companyLeftTitle">参会人<text>*</text></Text>
<input class="uni-input inputM" style='margin-left: 10px;margin-top: 5px;' v-model="companyMsg.Principal" placeholder="请输入参会人" />
</view>
<view class="companyCanhui">
<Text class="companyLeftTitle">手机号码<text>*</text></Text>
<input class="uni-input inputM" type="number" style='margin-left: 10px;margin-top: 5px;' v-model="companyMsg.Mobile" placeholder="请输入手机号码" />
</view>
<view class="companyCanhui">
<Text class="companyLeftTitle">邮箱地址<text>*</text></Text>
<input class="uni-input inputM" style='margin-left: 10px;margin-top: 5px;' v-model="companyMsg.EMail" placeholder="请输入邮箱地址" />
</view>
<view class="companyCanhui">
<Text class="companyLeftTitle">公司名(中文)<text>*</text></Text>
<input class="uni-input inputM" style='margin-left: 10px;margin-top: 5px;' v-model="companyMsg.CompanyName" placeholder="请输入企业中文名称" />
</view>
<view style="display: flex;flex-direction: row;margin-top:30px;align-items: center;height: 50px;border-top: 1px solid #F5F5F5;width: 100%;">
<view style="width: 50%;display: flex;align-items: center;justify-content: center" @click="showModal=false">
<Text>取消</Text>
</view>
<view style="width: 50%;color: #a0cfff;display: flex;align-items: center;justify-content: center" @click="signUpCompany">
<Text>确定</Text>
</view>
</view>
</view>
</u-popup>
</div>
</template>
<script>
......@@ -46,6 +74,13 @@
height: 160,
bg: "",
clickItem: {}, //当前点击的页面
showModal:false,
companyMsg:{
Principal:'', //参会人
Mobile:'', //手机号码
EMail:'', //邮箱地址
CompanyName:'' //公司名-中文
}
};
},
created() {
......@@ -78,10 +113,10 @@
};
}
this.bg = this.formatStyle.backgroundColor;
console.log(this.cols,'colssss');
if(this.cols&&this.cols.length>0){
this.clickItem = this.cols[0][0];
}
this.getList();
},
methods: {
clickHandler(item) {
......@@ -90,6 +125,68 @@
this.clickItem = item;
})
},
//获取数据
getList(){
this.request2({
url: "/api/AppletTrade/GetUserCompany",
data: {},
},
(res) => {
uni.hideLoading();
if (res.resultCode == 1) {
if(res.data==null){
this.showModal=true
}else{
this.showModal=false
}
}
}
);
},
//保存信息
signUpCompany(){
if(this.companyMsg.Principal==''){
uni.showToast({
title: "请输入参会人",
icon:'none'
});
return;
}
if(this.companyMsg.Mobile==''){
uni.showToast({
title: "请输入手机号码",
icon:'none'
});
return;
}
if(this.companyMsg.EMail==''){
uni.showToast({
title: "请输入邮箱地址",
icon:'none'
});
return;
}
if(this.companyMsg.CompanyName==''){
uni.showToast({
title: "请输入公司中文名称",
icon:'none'
});
return;
}
this.request2({
url: "/api/AppletTrade/SetCompany",
data: this.companyMsg,
},
(res) => {
if (res.resultCode == 1) {
uni.showToast({
title: "保存成功",
});
this.getList();
}
}
);
}
},
};
</script>
......@@ -104,4 +201,26 @@
.grid-text view {
background: transparent !important;
}
.companyMainCon{
display: flex;
flex-direction: column;
align-items: center;
background: #fff;
}
.companyCanhui{
display: flex;
width: 100%;
margin-top:30px;
padding-left:20px;
}
.companyLeftTitle{
display:inline-block;
width:110px;
text-align: right;
margin-top: 6px;
}
.companyLeftTitle text{
color:red;
margin-left:3px;
}
</style>
......@@ -47,7 +47,7 @@
<text>{{couponsObj.name}}</text>
</view>
</view>
<view class="ReceiptAdder" v-if="IsEducation!=1" @click="goUrl('/pages/address/address')" :style="{top:modelstype==0?'160rpx':(modelstype==1?'180rpx':'160rpx')}">
<view class="ReceiptAdder" v-if="IsEducation!=1&&setting.is_show_korea&&setting.is_show_korea==0" @click="goUrl('/pages/address/address')" :style="{top:modelstype==0?'160rpx':(modelstype==1?'180rpx':'160rpx')}">
<u-icon name="location" color="#fff" size="23"></u-icon>
<Text style="color: #fff;font-size: 12px;margin-left: 20rpx;">收货地址</Text>
</view>
......@@ -199,6 +199,8 @@
mall_UserInfo: {},
IsEducation: 0, //1是0否是网课模式
PointNum:0,
setting: {},
};
},
components: {
......@@ -213,6 +215,7 @@
.IsEducation : 0) :
0;
this.userinfo();
this.setting = uni.getStorageSync("basedata").mall.setting;
},
onLoad() {
this.navHeight = this.$navHeight - 2;
......
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