Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
6b2a085a
Commit
6b2a085a
authored
Feb 23, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
c74e4c2d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
803 additions
and
29 deletions
+803
-29
activity.vue
components/navpage/activity.vue
+7
-23
index.vue
components/navpage/index.vue
+18
-5
pages.json
pages.json
+7
-1
activeInner.vue
pages/kotra/activeInner.vue
+147
-0
investment.vue
pages/kotra/investment.vue
+312
-0
procurement.vue
pages/kotra/procurement.vue
+312
-0
No files found.
components/navpage/activity.vue
View file @
6b2a085a
...
...
@@ -64,25 +64,11 @@
贸易活动
</view>
<view
class=
"koraActivityContent"
>
<view
class=
"activeList"
>
<view
class=
"activeList"
v-for=
"(item,index) in dataList"
@
click=
"goDetail(item)"
>
<view
class=
"activieTop"
>
<img
src=
"../../static/images/icon/GradeAudit.png
"
alt=
""
/>
<img
:src=
"item.CoverImage
"
alt=
""
/>
</view>
<view
class=
"activeName"
>
本地活动
</view>
<view
class=
"viewDetail"
>
查看详情
</view>
</view>
<view
class=
"activeList"
>
<view
class=
"activieTop"
>
<img
src=
"../../static/images/icon/GradeAudit.png"
alt=
""
/>
</view>
<view
class=
"activeName"
>
本地活动
</view>
<view
class=
"viewDetail"
>
查看详情
</view>
</view>
<view
class=
"activeList"
>
<view
class=
"activieTop"
>
<img
src=
"../../static/images/icon/GradeAudit.png"
alt=
""
/>
</view>
<view
class=
"activeName"
>
本地活动
</view>
<view
class=
"activeName"
>
{{
item
.
TypeName
}}
</view>
<view
class=
"viewDetail"
>
查看详情
</view>
</view>
</view>
...
...
@@ -108,11 +94,12 @@
//获取数据
getData
()
{
this
.
request2
({
url
:
"/api/Applet
Goods/GetProductCategoryAll
List"
,
url
:
"/api/Applet
Trade/GetCommerceActivityType
List"
,
data
:
{},
},
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
console
.
log
(
res
,
'数据'
);
this
.
dataList
=
res
.
data
;
}
}
...
...
@@ -121,13 +108,10 @@
//跳转详情
goDetail
(
item
){
uni
.
navigateTo
({
url
:
'/pages/goods/list?CategoryIds='
+
item
.
Id
// url: '/pages/goods/list?CategoryIds=' + item.Id,
url
:
'/pages/kotra/activeInner?Id='
+
item
.
Id
});
}
}
}
</
script
>
<
style
>
</
style
>
components/navpage/index.vue
View file @
6b2a085a
...
...
@@ -13,9 +13,19 @@
</swiper-item>
</swiper>
<template>
<cats
v-if=
"clickItem.url == 'cats'"
></cats>
<activity
v-if=
"clickItem.url == 'activity'"
></activity>
<news
v-if=
"clickItem.url == 'news'"
></news>
<template
v-if=
"clickItem.ShowType==0"
>
<cats
v-if=
"clickItem.ComponentName == 'cats'"
></cats>
<activity
v-if=
"clickItem.ComponentName == 'activity'"
></activity>
<news
v-if=
"clickItem.ComponentName == 'news'"
></news>
</
template
>
<
template
v-else
>
<template
v-if=
"clickItem&&clickItem.TemplateData"
v-for=
"subItem in clickItem.TemplateData"
>
<view
v-if=
"subItemId == 'image-text'"
class=
"imageText"
>
<view
v-html=
"subItem.data.content"
></view>
</view>
<rubik
v-if=
"subItem.Id == 'rubik'"
:ad=
"subItem.data"
></rubik>
</
template
>
</template>
</template>
</div>
</template>
...
...
@@ -23,11 +33,13 @@
import
cats
from
"@/components/navpage/category"
;
import
activity
from
"@/components/navpage/activity"
;
import
news
from
"@/components/navpage/news"
;
import
rubik
from
"@/components/rubik/index"
;
export
default
{
components
:
{
cats
,
news
,
activity
activity
,
rubik
},
props
:
[
"navs"
],
data
()
{
...
...
@@ -69,8 +81,9 @@
};
}
this
.
bg
=
this
.
formatStyle
.
backgroundColor
;
console
.
log
(
this
.
cols
,
'colssss'
);
if
(
this
.
cols
&&
this
.
cols
.
length
>
0
){
this
.
clickItem
.
url
=
this
.
cols
[
0
][
0
].
url
;
this
.
clickItem
=
this
.
cols
[
0
][
0
]
;
}
},
methods
:
{
...
...
pages.json
View file @
6b2a085a
...
...
@@ -558,7 +558,13 @@
"path"
:
"personal/followlist"
//关注列表
}]
},
//韩国馆项目
{
"root"
:
"pages/kotra"
,
"pages"
:
[{
"path"
:
"contanctus"
},{
"path"
:
"contanctDetail"
},{
"path"
:
"compInformation"
}]
}
//韩国馆项目
{
"root"
:
"pages/kotra"
,
"pages"
:
[{
"path"
:
"contanctus"
},{
"path"
:
"contanctDetail"
},{
"path"
:
"compInformation"
},{
"path"
:
"activeInner"
},{
"path"
:
"investment"
//投资
},{
"path"
:
"procurement"
//采购
}]
}
],
"globalStyle"
:
{
"navigationBarTextStyle"
:
"black"
,
...
...
pages/kotra/activeInner.vue
0 → 100644
View file @
6b2a085a
<
style
>
.activeSearch
{
display
:
flex
;
margin
:
10px
;
width
:
100%
;
justify-content
:
space-between
;
}
.active_Search
{
width
:
60px
;
height
:
34px
;
background-color
:
#000450
;
color
:
#fff
;
text-align
:
center
;
line-height
:
34px
;
border-radius
:
2px
;
margin-right
:
20px
;
display
:
inline-block
;
}
.activeContent
{
margin
:
15px
;
}
.activeList
{
display
:
flex
;
border-bottom
:
1px
solid
#F4F4F4
;
position
:
relative
;
padding-bottom
:
15px
;
}
.active_Left
{
width
:
153px
;
height
:
115px
;
flex-shrink
:
0
;
}
.active_Left
img
{
width
:
100%
;
height
:
100%
;
}
.activeName
{
color
:
#404040
;
font-size
:
14px
;
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
3
;
overflow
:
hidden
;
}
.activeTime
{
position
:
absolute
;
color
:
#B9B9B9
;
bottom
:
0
;
font-size
:
13px
;
bottom
:
10px
;
color
:
#B9B9B9
;
}
.active_gight
{
margin-left
:
10px
;
}
</
style
>
<
template
>
<view
class=
"activeInner"
>
<view
class=
"activeSearch"
>
<u-search
placeholder=
"输入商品名称"
style=
"width:81%;"
:show-action=
"false"
v-model=
"keyword"
></u-search>
<view
class=
"active_Search"
>
搜索
</view>
</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
class=
"activeContent"
>
<view
class=
"activeList"
v-for=
"(item,index) in dataList"
:key=
"index"
>
<view
class=
"active_Left"
>
<img
:src=
"item.CoverImg"
alt=
""
/>
</view>
<view
class=
"active_gight"
>
<view
class=
"activeName"
>
{{
item
.
ActivityName
}}
</view>
<view
class=
"activeTime"
>
{{
item
.
StartTimeStr
}}
</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
>
<
script
>
export
default
{
data
()
{
return
{
pageTitle
:
''
,
msg
:
{
pageIndex
:
1
,
pageSize
:
10
,
ActivityType
:
1
},
dataList
:[],
pageCount
:
1
,
loadText
:
{
loadmore
:
"轻轻上拉,加载更多"
,
loading
:
"努力加载中"
,
nomore
:
"没有更多了"
,
},
}
},
created
()
{},
mounted
()
{},
onLoad
(
option
)
{
this
.
msg
.
ActivityType
=
option
.
Id
;
this
.
getData
(
1
);
},
methods
:
{
getData
(
num
){
if
(
num
==
1
)
{
this
.
dataList
=
[];
}
this
.
request2
({
url
:
"/api/AppletTrade/GetCommerceActivityPage"
,
data
:
this
.
msg
,
},
(
res
)
=>
{
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
.
getData
();
}
else
{
this
.
status
=
"nomore"
;
}
},
}
}
</
script
>
pages/kotra/investment.vue
0 → 100644
View file @
6b2a085a
<
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
>
pages/kotra/procurement.vue
0 → 100644
View file @
6b2a085a
<
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
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment