商品列表细节修改

version/0412
fanfan 8 months ago
parent 1cb989daf1
commit 3a905731d4
  1. 2
      api/goods/index.js
  2. 4
      pages/goods/detail.vue
  3. 4
      pages/goods/list.vue

@ -52,7 +52,7 @@ export const serveList = (param, option) => {
} }
// 商品列表 // 商品列表
export const list = (param, option) => { export const list = (param, option) => {
return request.get(api.list, param, option) return request.post(api.list, param, option)
} }
// 商品详情(详细数据) // 商品详情(详细数据)

@ -75,8 +75,8 @@
<text>{{goods.skuList[0].goods_sku_id}}</text> <text>{{goods.skuList[0].goods_sku_id}}</text>
<image :src="$picUrl+'/static/detail/copy.png'"></image> <image :src="$picUrl+'/static/detail/copy.png'"></image>
</view> </view>
<view class="goodsNum" @click="copyNum(goods.goods_id)" v-else> <view v-if="goods.goods_no" class="goodsNum" @click="copyNum(goods.goods_no)" v-else>
<text>{{goods.goods_id}}</text> <text>{{goods.goods_no}}</text>
<image :src="$picUrl+'/static/detail/copy.png'"></image> <image :src="$picUrl+'/static/detail/copy.png'"></image>
</view> </view>
<view class="operaImg"> <view class="operaImg">

@ -348,8 +348,8 @@
const param = { const param = {
sortType: app.sortType, sortType: app.sortType,
sortPrice: Number(app.sortPrice), sortPrice: Number(app.sortPrice),
categoryId: app.options.categoryId != 'undefined'?app.options.categoryId :"", categoryId: (app.options.categoryId||app.options.categoryId!=undefined)?app.options.categoryId :0,
goodsName: app.options.search || '', // goodsName: app.options.search || '',
page: pageNo, page: pageNo,
keywords: keywords.length > 0 ? keywords.join(',') : '', keywords: keywords.length > 0 ? keywords.join(',') : '',
keyword: app.options.search || '' keyword: app.options.search || ''

Loading…
Cancel
Save