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
d5a3349c
Commit
d5a3349c
authored
Aug 07, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
076be7b0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
11 deletions
+15
-11
goodsaction.vue
pages/goods/components/goodsaction.vue
+5
-1
goods.vue
pages/goods/goods.vue
+1
-1
api.js
plugin/api.js
+9
-9
No files found.
pages/goods/components/goodsaction.vue
View file @
d5a3349c
...
...
@@ -137,6 +137,7 @@ export default {
}
},
joinCar
()
{
console
.
log
(
'操作'
)
this
.
u
=
uni
.
getStorageSync
(
'mall_UserInfo'
);
if
(
!
this
.
u
)
{
this
.
u
=
{
...
...
@@ -145,7 +146,10 @@ export default {
};
this
.
showAuth
=
true
;
}
else
{
this
.
$emit
(
'join-car'
);
console
.
log
(
'传入父组件'
)
this
.
$emit
(
'joincar'
);
}
},
buy
()
{
...
...
pages/goods/goods.vue
View file @
d5a3349c
...
...
@@ -166,7 +166,7 @@
<view
style=
"width: calc(100vw - 20px); margin-left: 10px; overflow: hidden;"
><goodlist
:list=
"recommend"
></goodlist></view>
<u-skeleton
v-if=
"loading"
:loading=
"true"
:animation=
"true"
bgcolor=
"#FFF"
></u-skeleton>
<goodsaction
v-if=
"!loading"
:good-name=
"g.name"
:cover-pic=
"g.cover_pic"
:favorite=
"g.favorite"
:good-id=
"id"
@
join
-
car=
"joinCar"
@
buy=
"buy"
></goodsaction>
<goodsaction
v-if=
"!loading"
:good-name=
"g.name"
:cover-pic=
"g.cover_pic"
:favorite=
"g.favorite"
:good-id=
"id"
@
joincar=
"joinCar"
@
buy=
"buy"
></goodsaction>
<goodsku
v-if=
"!loading && showSku"
border-radius=
"10"
...
...
plugin/api.js
View file @
d5a3349c
...
...
@@ -2,9 +2,9 @@ export default {
install
(
Vue
,
options
)
{
Vue
.
prototype
.
host
=
"https://wx.weibaoge.cn/web/index.php?_mall_id=1285"
// Vue.prototype.host2 = "http://192.168.0.110:8200"
//
Vue.prototype.host2 = "https://mallApi.oytour.com"
Vue
.
prototype
.
host2
=
"https://mallApi.oytour.com"
// Vue.prototype.host2 = "http://192.168.2.16:8088"
Vue
.
prototype
.
host2
=
"http://192.168.2.65"
//
Vue.prototype.host2 = "http://192.168.2.65"
Vue
.
prototype
.
request
=
function
(
param
,
success
,
failed
)
{
//网络请求
uni
.
request
({
...
...
@@ -57,14 +57,14 @@ export default {
}
}
else
if
(
res
.
data
.
resultCode
!=
1
)
{
if
(
res
.
data
.
couponResultCode
==
0
){
if
(
res
.
data
.
message
!=
''
){
uni
.
showToast
({
title
:
res
.
data
.
message
,
icon
:
"none"
,
});
}
}
else
{
uni
.
showToast
({
title
:
res
.
data
.
message
,
icon
:
"none"
,
});
}
typeof
failed
==
"function"
&&
failed
(
res
.
data
);
...
...
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