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
fbf012d5
Commit
fbf012d5
authored
Mar 03, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
64790c4a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
125 additions
and
3 deletions
+125
-3
index.vue
components/navpage/index.vue
+121
-2
user-center.vue
pages/user-center/user-center.vue
+4
-1
No files found.
components/navpage/index.vue
View file @
fbf012d5
<
template
>
<div
class=
"mynav"
:style=
"
{'background':bg}" style="padding-bottom:
2
0px;">
<div
class=
"mynav"
:style=
"
{'background':bg}" style="padding-bottom:
4
0px;">
<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
>
pages/user-center/user-center.vue
View file @
fbf012d5
...
...
@@ -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
;
...
...
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