商品列表细节修改

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) => {
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>
<image :src="$picUrl+'/static/detail/copy.png'"></image>
</view>
<view class="goodsNum" @click="copyNum(goods.goods_id)" v-else>
<text>{{goods.goods_id}}</text>
<view v-if="goods.goods_no" class="goodsNum" @click="copyNum(goods.goods_no)" v-else>
<text>{{goods.goods_no}}</text>
<image :src="$picUrl+'/static/detail/copy.png'"></image>
</view>
<view class="operaImg">

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

Loading…
Cancel
Save