Browse Source

提交

dev_xrcc
chenkainan 4 months ago
parent
commit
9987ef8ee7
  1. 3
      pages.json
  2. 4
      static/js/CommonFunction.js
  3. 49
      subPackages/haveFeeling/detailXiang.vue

3
pages.json

@ -114,8 +114,7 @@
{
"path" : "haveFeeling/detailXiang",
"style" : {
"navigationBarTitleText" : "有感商店香",
"navigationStyle": "custom"
"navigationBarTitleText" : "有感商店"
}
},
{

4
static/js/CommonFunction.js

@ -299,9 +299,9 @@ Vue.prototype.goDetailByType= function(item){
// if (res) {
// return
// }
console.log(item.id)
uni.navigateTo({
url: `/subPackages/techan/detail?id=?${item.id}`
url: `/subPackages/techan/detail?id=?${(item.goods_id || item.id)}`
})
}

49
subPackages/haveFeeling/detailXiang.vue

@ -1,11 +1,11 @@
<template>
<view class="bg">
<headerVue />
<!-- <headerVue /> -->
<image :src="showImg(detail.head_img)" mode="widthFix" class="topImg"></image>
<view class="box">
<view v-for="(item,index) in list" :key="index" class="item" @click="gotoDetailByType(item)">
<image :src="showImg(item.img)" mode="aspectFill" class="headimg"></image>
<view v-for="(item,index) in list" :key="index" class="item" @click="goDetailByType(item)">
<image :src="showImg(item.image)" mode="aspectFill" class="headimg"></image>
<view class="content">
<view class="title text-overflow">{{item.title}}</view>
<view class="flex-between">
@ -29,44 +29,7 @@
data() {
return {
detail: {},
list: [
{
img: 'https://static.ticket.sz-trip.com/epicSoul/readingBody/productImg.png',
title: '湖石初醒湖石初醒湖石初醒湖石初醒湖石初醒',
price: '13800'
},
{
img: 'https://static.ticket.sz-trip.com/epicSoul/readingBody/productImg.png',
title: '湖石初醒',
price: '13800'
},
{
img: 'https://static.ticket.sz-trip.com/epicSoul/readingBody/productImg.png',
title: '湖石初醒',
price: '13800'
},
{
img: 'https://static.ticket.sz-trip.com/epicSoul/readingBody/productImg.png',
title: '湖石初醒',
price: '13800'
},
{
img: 'https://static.ticket.sz-trip.com/epicSoul/readingBody/productImg.png',
title: '湖石初醒',
price: '13800'
},
{
img: 'https://static.ticket.sz-trip.com/epicSoul/readingBody/productImg.png',
title: '湖石初醒',
price: '13800'
},
{
img: 'https://static.ticket.sz-trip.com/epicSoul/readingBody/productImg.png',
title: '湖石初醒',
price: '13800'
}
]
list: []
}
},
onLoad(option) {
@ -80,9 +43,9 @@
this.Post({
type_id: option.id,
offset: this.list.length,
offset: 0,
limit: 100,
},'/api/tag/getGoodsByTypeId').then(res => {
},'/api/goods/getGoodsByType').then(res => {
this.list = res.data;
})
}

Loading…
Cancel
Save