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", "path" : "haveFeeling/detailXiang",
"style" : { "style" : {
"navigationBarTitleText" : "有感商店香", "navigationBarTitleText" : "有感商店"
"navigationStyle": "custom"
} }
}, },
{ {

4
static/js/CommonFunction.js

@ -299,9 +299,9 @@ Vue.prototype.goDetailByType= function(item){
// if (res) { // if (res) {
// return // return
// } // }
console.log(item.id)
uni.navigateTo({ 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> <template>
<view class="bg"> <view class="bg">
<headerVue /> <!-- <headerVue /> -->
<image :src="showImg(detail.head_img)" mode="widthFix" class="topImg"></image> <image :src="showImg(detail.head_img)" mode="widthFix" class="topImg"></image>
<view class="box"> <view class="box">
<view v-for="(item,index) in list" :key="index" class="item" @click="gotoDetailByType(item)"> <view v-for="(item,index) in list" :key="index" class="item" @click="goDetailByType(item)">
<image :src="showImg(item.img)" mode="aspectFill" class="headimg"></image> <image :src="showImg(item.image)" mode="aspectFill" class="headimg"></image>
<view class="content"> <view class="content">
<view class="title text-overflow">{{item.title}}</view> <view class="title text-overflow">{{item.title}}</view>
<view class="flex-between"> <view class="flex-between">
@ -29,44 +29,7 @@
data() { data() {
return { return {
detail: {}, detail: {},
list: [ 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'
}
]
} }
}, },
onLoad(option) { onLoad(option) {
@ -80,9 +43,9 @@
this.Post({ this.Post({
type_id: option.id, type_id: option.id,
offset: this.list.length, offset: 0,
limit: 100, limit: 100,
},'/api/tag/getGoodsByTypeId').then(res => { },'/api/goods/getGoodsByType').then(res => {
this.list = res.data; this.list = res.data;
}) })
} }

Loading…
Cancel
Save