Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsalesProgram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3b36c5c6
authored
Oct 23, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
商品详情修改
parent
98a747b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
pages/detail/good/index.js
pages/detail/good/index.js
View file @
3b36c5c6
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment