Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
buildingAgricultureSharing-miniapp
Project
Project
Details
Activity
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
彭佳妮(贵阳日报)
buildingAgricultureSharing-miniapp
Commits
73096d13
Commit
73096d13
authored
Aug 05, 2024
by
张娇(东信)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
购物title
parent
3d2ad3c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
pages.json
src/pages.json
+3
-1
detail.vue
src/pages/detail/detail.vue
+15
-3
No files found.
src/pages.json
View file @
73096d13
...
...
@@ -42,7 +42,9 @@
{
"path"
:
"pages/cart/cart"
,
"style"
:
{
"navigationBarTitleText"
:
"购物车"
"navigationBarTitleText"
:
"购物车"
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationStyle"
:
""
}
}
],
...
...
src/pages/detail/detail.vue
View file @
73096d13
...
...
@@ -30,8 +30,10 @@
<view
class=
"detail-int"
>
这是商品简介这是商品简介这是商品简介这是商品简介这是商品 简介这是商品简介这是商品简介
</view>
<img
class=
"share-img"
src=
"/static/detail/share.png"
/>
<text
class=
"share-text"
>
分享
</text>
<view>
<img
class=
"share-img"
src=
"/static/detail/share.png"
/>
<text
class=
"share-text"
@
click=
"share"
>
分享
</text>
</view>
</view>
<view
class=
"evaluate"
>
<view
class=
"evaluate-num"
>
...
...
@@ -60,7 +62,7 @@
</view>
<view
class=
"borderClass"
>
<img
src=
"/static/detail/img6.png"
style=
"width: 40rpx; height: 40rpx"
/>
<view
class=
"sort-text"
>
购物车
</view>
<view
class=
"sort-text"
@
tap=
"toCart"
>
购物车
</view>
</view>
</view>
<!--
<view
class=
"sort"
>
-->
...
...
@@ -83,6 +85,7 @@
import
OtherSearch
from
'../../components/index/OtherSearch.vue'
;
import
{
ref
}
from
'vue'
;
import
{
onShow
}
from
'@dcloudio/uni-app'
;
// 图片
const
swiperList
=
ref
([
'../../static/detail/img2.png'
,
...
...
@@ -102,12 +105,21 @@ onShow(() => {
duration
:
300
,
});
});
const
share
=
()
=>
{
alert
(
'分享功能已触发!'
);
};
function
toStore
()
{
// TODO: 跳转到筑农严选
xma
.
navigateTo
({
url
:
'/pages/shop/index'
,
});
}
function
toCart
()
{
// TODO: 跳转到购物车
xma
.
navigateTo
({
url
:
'/pages/cart/cart'
,
});
}
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
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