Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
H5_2.0
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ca1292d1
authored
May 26, 2023
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
商品详情
parent
9d273a8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
pages/detail/detail.vue
pages/detail/detail.vue
View file @
ca1292d1
...
...
@@ -15,7 +15,7 @@
<text
class=
"goodsName elep"
>
{{
obj
.
sku_name
||
obj
.
goods_name
}}
</text>
<text
class=
"actag"
v-if=
"obj.ac_type==10"
>
{{
obj
.
activity_info
.
sign
}}
</text>
</view>
<view
class=
"tdbox row verCenter"
@
click=
"open()"
>
<view
class=
"tdbox row verCenter"
@
click=
"open()"
v-if=
"tigoods.length>0"
>
<view
class=
"round row verCenter rowCenter"
><text
class=
"icon iconfont icon-tdzty"
></text></view>
<text>
可替代
</text>
</view>
...
...
@@ -119,12 +119,12 @@
<uni-popup
ref=
"popup"
type=
"bottom"
>
<view
class=
"layer-box"
>
<view
class=
"title row verCenter bothSide"
>
<view
class=
"left"
>
共
<text>
3
</text>
个替代型号
</view>
<view
class=
"left"
>
共
<text>
{{
tigoods
.
length
}}
</text>
个替代型号
</view>
<view
class=
"right"
><text
class=
"iconfont icon-xxx"
@
click=
"close()"
></text></view>
</view>
<view
class=
"cons"
>
<navigator
url=
"/s?k=lm358"
class=
"group row verCenter bothSide
"
>
<text
class=
"goods elep"
>
lm358
</text>
<navigator
:url=
"'/s?k='+item.goods_name"
class=
"group row verCenter bothSide"
v-for=
"(item,index) in tigoods"
:key=
"index
"
>
<text
class=
"goods elep"
>
{{
item
.
goods_name
}}
</text>
<text
class=
"icon iconfont icon-jt"
></text>
</navigator>
</view>
...
...
@@ -148,7 +148,8 @@
pticearr
:[],
num
:
1
,
isdl
:
1
,
totalmoney
:
0
totalmoney
:
0
,
tigoods
:[],
}
},
mounted
()
{
...
...
@@ -162,6 +163,13 @@
this
.
getData
();
},
methods
:
{
gettidatas
(
goods_name
){
this
.
request
(
Api_Es
+
'/detail/alike'
,
'GET'
,
{
p
:
1
,
keyword
:
goods_name
,
offset
:
100
}).
then
(
res
=>
{
if
(
res
.
error_code
==
0
)
{
this
.
tigoods
=
res
.
data
.
data
||
[]
}
});
},
clickbug
(){
return
false
;
},
...
...
@@ -312,6 +320,7 @@
this
.
isdl
=
2
}
this
.
pticeui
()
this
.
gettidatas
(
this
.
obj
.
goods_name
)
}
});
},
...
...
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