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

购物title

parent 3d2ad3c0
...@@ -42,7 +42,9 @@ ...@@ -42,7 +42,9 @@
{ {
"path": "pages/cart/cart", "path": "pages/cart/cart",
"style": { "style": {
"navigationBarTitleText": "购物车" "navigationBarTitleText": "购物车",
"navigationBarBackgroundColor": "#ffffff",
"navigationStyle":""
} }
} }
], ],
......
...@@ -30,8 +30,10 @@ ...@@ -30,8 +30,10 @@
<view class="detail-int"> <view class="detail-int">
这是商品简介这是商品简介这是商品简介这是商品简介这是商品 简介这是商品简介这是商品简介 这是商品简介这是商品简介这是商品简介这是商品简介这是商品 简介这是商品简介这是商品简介
</view> </view>
<img class="share-img" src="/static/detail/share.png" /> <view>
<text class="share-text">分享</text> <img class="share-img" src="/static/detail/share.png" />
<text class="share-text" @click="share">分享</text>
</view>
</view> </view>
<view class="evaluate"> <view class="evaluate">
<view class="evaluate-num"> <view class="evaluate-num">
...@@ -60,7 +62,7 @@ ...@@ -60,7 +62,7 @@
</view> </view>
<view class="borderClass"> <view class="borderClass">
<img src="/static/detail/img6.png" style="width: 40rpx; height: 40rpx" /> <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> </view>
<!-- <view class="sort">--> <!-- <view class="sort">-->
...@@ -83,6 +85,7 @@ ...@@ -83,6 +85,7 @@
import OtherSearch from '../../components/index/OtherSearch.vue'; import OtherSearch from '../../components/index/OtherSearch.vue';
import { ref } from 'vue'; import { ref } from 'vue';
import { onShow } from '@dcloudio/uni-app'; import { onShow } from '@dcloudio/uni-app';
// 图片 // 图片
const swiperList = ref([ const swiperList = ref([
'../../static/detail/img2.png', '../../static/detail/img2.png',
...@@ -102,12 +105,21 @@ onShow(() => { ...@@ -102,12 +105,21 @@ onShow(() => {
duration: 300, duration: 300,
}); });
}); });
const share = () => {
alert('分享功能已触发!');
};
function toStore() { function toStore() {
// TODO: 跳转到筑农严选 // TODO: 跳转到筑农严选
xma.navigateTo({ xma.navigateTo({
url: '/pages/shop/index', url: '/pages/shop/index',
}); });
} }
function toCart() {
// TODO: 跳转到购物车
xma.navigateTo({
url: '/pages/cart/cart',
});
}
</script> </script>
<style lang="scss" scoped> <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