Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
53456d04
Commit
53456d04
authored
Sep 09, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
f10de6ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
5 deletions
+22
-5
goodlist.vue
src/components/mall/goodlist.vue
+22
-5
No files found.
src/components/mall/goodlist.vue
View file @
53456d04
...
...
@@ -195,7 +195,7 @@
收货地址:
</td>
<td>
<el-select
v-model=
"orderMsg.AddressId"
placeholder=
"请选择"
>
<el-select
v-model=
"orderMsg.AddressId"
placeholder=
"请选择"
@
change=
"ChangeAddress"
>
<el-option
v-for=
"aItem in addressList"
:key=
"aItem.Id"
:label=
"aItem.Name"
:value=
"aItem.Id"
>
<span
style=
"float: left"
>
{{ aItem.Name }}【{{aItem.DistrictAddress}}{{aItem.Address}}】
</span>
</el-option>
...
...
@@ -218,7 +218,8 @@
<input
type=
"button"
:value=
"$t('pub.saveBtn')"
@
click=
"SaveOrder()"
class=
"normalBtn"
/>
</p>
<el-button
type=
"primary"
icon=
"iconfont icon-beizhu"
slot=
"reference"
style=
"background:#AD9AF6; border-color:#AD9AF6; border-radius: 0;"
@
click=
"currentGoodsObj=item"
>
下单
style=
"background:#AD9AF6; border-color:#AD9AF6; border-radius: 0;"
@
click=
"clreaMsg(),currentGoodsObj={},currentGoodsObj=item"
>
下单
</el-button>
</el-popover>
</td>
...
...
@@ -274,6 +275,15 @@
};
},
methods
:
{
//清空数据
clreaMsg
()
{
this
.
orderMsg
.
GoodsId
=
0
;
this
.
orderMsg
.
Number
=
1
;
this
.
orderMsg
.
SpecificationSort
=
""
;
this
.
orderMsg
.
mallUserId
=
""
;
this
.
orderMsg
.
AddressId
=
0
;
this
.
orderMsg
.
TotalPrice
=
0
;
},
//选择规格
chooseSpec
(
index
,
subIndex
)
{
var
tempObj
=
this
.
currentGoodsObj
.
attr_groups
[
index
].
attr_list
[
subIndex
];
...
...
@@ -310,7 +320,7 @@
this
.
orderMsg
.
TotalPrice
=
(
parseFloat
(
tempSku
.
price
)
*
parseFloat
(
this
.
orderMsg
.
Number
)).
toFixed
(
2
);
}
},
//下拉框改变
//
商品分类
下拉框改变
selectChange
(
e
)
{
var
arrNew
=
[];
var
dataLength
=
this
.
chooseCategroyArray
.
length
;
...
...
@@ -324,7 +334,7 @@
}
this
.
$refs
.
tree
.
setCheckedNodes
(
arrNew
);
//设置勾选的值
},
//分类选中
//
商品
分类选中
categoryCheckChange
()
{
//这里两个true,1. 是否只是叶子节点 2. 是否包含半选节点(就是使得选择的时候不包含父节点)
let
res
=
this
.
$refs
.
tree
.
getCheckedNodes
(
true
,
true
);
...
...
@@ -337,7 +347,7 @@
this
.
chooseCategroyArray
=
arr
;
this
.
showCategoryName
=
arrLabel
;
},
//获取分类列表
//获取
商品
分类列表
getCategroy
()
{
let
msg1
=
{
Id
:
0
,
...
...
@@ -425,6 +435,13 @@
}
});
},
//切换收货地址
ChangeAddress
()
{
let
addressObj
=
this
.
addressList
.
find
(
item
=>
{
return
item
.
Id
===
this
.
orderMsg
.
AddressId
;
//筛选出匹配数据
});
console
.
log
(
"addressObj"
,
addressObj
);
},
//下单
SaveOrder
()
{
console
.
log
(
"orderMsg"
,
this
.
orderMsg
);
...
...
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