Commit 73096d13 authored by 张娇(东信)'s avatar 张娇(东信)

购物title

parent 3d2ad3c0
......@@ -42,7 +42,9 @@
{
"path": "pages/cart/cart",
"style": {
"navigationBarTitleText": "购物车"
"navigationBarTitleText": "购物车",
"navigationBarBackgroundColor": "#ffffff",
"navigationStyle":""
}
}
],
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment