Commit 3b36c5c6 by 施宇

商品详情修改

parent 98a747b0
Showing with 7 additions and 5 deletions
......@@ -43,7 +43,13 @@ Page({
let token = wx.getStorageSync('access_token');
let goodId = me.data.goodId;
let type = me.data.type;
getData(apis.goodsSearch, 'get', {
let url = "";
if(type == 1){
url = apis.goodsInfo
}else{
url = apis.goodsSearch
}
getData(url, 'get', {
"goods_id/eq": goodId,
"token": token,
}, function (res) {
......@@ -107,7 +113,6 @@ Page({
let userId = wx.getStorageSync("user_id");
let avatar = wx.getStorageSync("avatar");
let obj = {
// userId: data.im_username,
type: data.goods_name,
price: data.currency == 1 ? '¥' + data.price : '$' + data.price,
brand: data.brand_name,
......@@ -116,9 +121,6 @@ Page({
hq: data.delivery_time,
time: changeTime(data.add_time * 1000),
goodImage: data.goods_images,
// userName: data.company_name,
// targetId: data.user_id,
// userImg: data.avatar,
};
let queryObj = {
myName: my,
......
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 sign in to comment