Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
______--______
ShopXO
提交
a3f09fff
ShopXO
项目概览
______--______
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a3f09fff
编写于
10月 24, 2021
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
商品详情接口调整
上级
0db84533
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
35 addition
and
25 deletion
+35
-25
sourcecode/alipay/default/pages/goods-detail/goods-detail.js
sourcecode/alipay/default/pages/goods-detail/goods-detail.js
+7
-5
sourcecode/baidu/default/pages/goods-detail/goods-detail.js
sourcecode/baidu/default/pages/goods-detail/goods-detail.js
+7
-5
sourcecode/qq/default/pages/goods-detail/goods-detail.js
sourcecode/qq/default/pages/goods-detail/goods-detail.js
+7
-5
sourcecode/toutiao/default/pages/goods-detail/goods-detail.js
...cecode/toutiao/default/pages/goods-detail/goods-detail.js
+7
-5
sourcecode/weixin/default/pages/goods-detail/goods-detail.js
sourcecode/weixin/default/pages/goods-detail/goods-detail.js
+7
-5
未找到文件。
sourcecode/alipay/default/pages/goods-detail/goods-detail.js
浏览文件 @
a3f09fff
...
...
@@ -499,6 +499,7 @@ Page({
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
(
res
)
=>
{
if
(
res
.
data
.
code
==
0
)
{
var
spec_type
=
res
.
data
.
data
.
spec_type
;
var
spec_count
=
spec
.
length
;
var
index
=
(
spec_count
>
0
)
?
spec_count
:
0
;
if
(
index
<
sku_count
)
...
...
@@ -512,9 +513,9 @@ Page({
temp_data
[
i
][
'
value
'
][
k
][
'
is_dont
'
]
=
''
;
var
temp_value
=
temp_data
[
i
][
'
value
'
][
k
][
'
name
'
];
var
temp_status
=
false
;
for
(
var
t
in
res
.
data
.
data
)
for
(
var
t
in
spec_type
)
{
if
(
res
.
data
.
data
[
t
]
==
temp_value
)
if
(
spec_type
[
t
]
==
temp_value
)
{
temp_status
=
true
;
break
;
...
...
@@ -581,10 +582,11 @@ Page({
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
(
res
)
=>
{
if
(
res
.
data
.
code
==
0
)
{
var
spec_base
=
res
.
data
.
data
.
spec_base
;
this
.
setData
({
goods_spec_base_price
:
res
.
data
.
data
.
price
,
goods_spec_base_original_price
:
res
.
data
.
data
.
original_price
,
goods_spec_base_inventory
:
res
.
data
.
data
.
inventory
,
goods_spec_base_price
:
spec_base
.
price
,
goods_spec_base_original_price
:
spec_base
.
original_price
,
goods_spec_base_inventory
:
spec_base
.
inventory
,
});
}
else
{
app
.
showToast
(
res
.
data
.
msg
);
...
...
sourcecode/baidu/default/pages/goods-detail/goods-detail.js
浏览文件 @
a3f09fff
...
...
@@ -454,6 +454,7 @@ Page({
dataType
:
'
json
'
,
success
:
res
=>
{
if
(
res
.
data
.
code
==
0
)
{
var
spec_type
=
res
.
data
.
data
.
spec_type
;
var
spec_count
=
spec
.
length
;
var
index
=
spec_count
>
0
?
spec_count
:
0
;
if
(
index
<
sku_count
)
{
...
...
@@ -463,8 +464,8 @@ Page({
temp_data
[
i
][
'
value
'
][
k
][
'
is_dont
'
]
=
''
;
var
temp_value
=
temp_data
[
i
][
'
value
'
][
k
][
'
name
'
];
var
temp_status
=
false
;
for
(
var
t
in
res
.
data
.
data
)
{
if
(
res
.
data
.
data
[
t
]
==
temp_value
)
{
for
(
var
t
in
spec_type
)
{
if
(
spec_type
[
t
]
==
temp_value
)
{
temp_status
=
true
;
break
;
}
...
...
@@ -524,10 +525,11 @@ Page({
dataType
:
'
json
'
,
success
:
res
=>
{
if
(
res
.
data
.
code
==
0
)
{
var
spec_base
=
res
.
data
.
data
.
spec_base
;
this
.
setData
({
goods_spec_base_price
:
res
.
data
.
data
.
price
,
goods_spec_base_original_price
:
res
.
data
.
data
.
original_price
,
goods_spec_base_inventory
:
res
.
data
.
data
.
inventory
goods_spec_base_price
:
spec_base
.
price
,
goods_spec_base_original_price
:
spec_base
.
original_price
,
goods_spec_base_inventory
:
spec_base
.
inventory
});
}
else
{
app
.
showToast
(
res
.
data
.
msg
);
...
...
sourcecode/qq/default/pages/goods-detail/goods-detail.js
浏览文件 @
a3f09fff
...
...
@@ -479,6 +479,7 @@ Page({
dataType
:
'
json
'
,
success
:
(
res
)
=>
{
if
(
res
.
data
.
code
==
0
)
{
var
spec_type
=
res
.
data
.
data
.
spec_type
;
var
spec_count
=
spec
.
length
;
var
index
=
(
spec_count
>
0
)
?
spec_count
:
0
;
if
(
index
<
sku_count
)
...
...
@@ -492,9 +493,9 @@ Page({
temp_data
[
i
][
'
value
'
][
k
][
'
is_dont
'
]
=
''
;
var
temp_value
=
temp_data
[
i
][
'
value
'
][
k
][
'
name
'
];
var
temp_status
=
false
;
for
(
var
t
in
res
.
data
.
data
)
for
(
var
t
in
spec_type
)
{
if
(
res
.
data
.
data
[
t
]
==
temp_value
)
if
(
spec_type
[
t
]
==
temp_value
)
{
temp_status
=
true
;
break
;
...
...
@@ -560,10 +561,11 @@ Page({
dataType
:
'
json
'
,
success
:
(
res
)
=>
{
if
(
res
.
data
.
code
==
0
)
{
var
spec_base
=
res
.
data
.
data
.
spec_base
;
this
.
setData
({
goods_spec_base_price
:
res
.
data
.
data
.
price
,
goods_spec_base_original_price
:
res
.
data
.
data
.
original_price
,
goods_spec_base_inventory
:
res
.
data
.
data
.
inventory
,
goods_spec_base_price
:
spec_base
.
price
,
goods_spec_base_original_price
:
spec_base
.
original_price
,
goods_spec_base_inventory
:
spec_base
.
inventory
,
});
}
else
{
app
.
showToast
(
res
.
data
.
msg
);
...
...
sourcecode/toutiao/default/pages/goods-detail/goods-detail.js
浏览文件 @
a3f09fff
...
...
@@ -479,6 +479,7 @@ Page({
dataType
:
'
json
'
,
success
:
(
res
)
=>
{
if
(
res
.
data
.
code
==
0
)
{
var
spec_type
=
res
.
data
.
data
.
spec_type
;
var
spec_count
=
spec
.
length
;
var
index
=
(
spec_count
>
0
)
?
spec_count
:
0
;
if
(
index
<
sku_count
)
...
...
@@ -492,9 +493,9 @@ Page({
temp_data
[
i
][
'
value
'
][
k
][
'
is_dont
'
]
=
''
;
var
temp_value
=
temp_data
[
i
][
'
value
'
][
k
][
'
name
'
];
var
temp_status
=
false
;
for
(
var
t
in
res
.
data
.
data
)
for
(
var
t
in
spec_type
)
{
if
(
res
.
data
.
data
[
t
]
==
temp_value
)
if
(
spec_type
[
t
]
==
temp_value
)
{
temp_status
=
true
;
break
;
...
...
@@ -560,10 +561,11 @@ Page({
dataType
:
'
json
'
,
success
:
(
res
)
=>
{
if
(
res
.
data
.
code
==
0
)
{
var
spec_base
=
res
.
data
.
data
.
spec_base
;
this
.
setData
({
goods_spec_base_price
:
res
.
data
.
data
.
price
,
goods_spec_base_original_price
:
res
.
data
.
data
.
original_price
,
goods_spec_base_inventory
:
res
.
data
.
data
.
inventory
,
goods_spec_base_price
:
spec_base
.
price
,
goods_spec_base_original_price
:
spec_base
.
original_price
,
goods_spec_base_inventory
:
spec_base
.
inventory
,
});
}
else
{
app
.
showToast
(
res
.
data
.
msg
);
...
...
sourcecode/weixin/default/pages/goods-detail/goods-detail.js
浏览文件 @
a3f09fff
...
...
@@ -496,6 +496,7 @@ Page({
data
:
{
"
id
"
:
this
.
data
.
goods
.
id
,
"
spec
"
:
JSON
.
stringify
(
spec
)
},
dataType
:
'
json
'
,
success
:
(
res
)
=>
{
var
spec_type
=
res
.
data
.
data
.
spec_type
;
if
(
res
.
data
.
code
==
0
)
{
var
spec_count
=
spec
.
length
;
var
index
=
(
spec_count
>
0
)
?
spec_count
:
0
;
...
...
@@ -510,9 +511,9 @@ Page({
temp_data
[
i
][
'
value
'
][
k
][
'
is_dont
'
]
=
''
;
var
temp_value
=
temp_data
[
i
][
'
value
'
][
k
][
'
name
'
];
var
temp_status
=
false
;
for
(
var
t
in
res
.
data
.
data
)
for
(
var
t
in
spec_type
)
{
if
(
res
.
data
.
data
[
t
]
==
temp_value
)
if
(
spec_type
[
t
]
==
temp_value
)
{
temp_status
=
true
;
break
;
...
...
@@ -578,10 +579,11 @@ Page({
dataType
:
'
json
'
,
success
:
(
res
)
=>
{
if
(
res
.
data
.
code
==
0
)
{
var
spec_base
=
res
.
data
.
data
.
spec_base
;
this
.
setData
({
goods_spec_base_price
:
res
.
data
.
data
.
price
,
goods_spec_base_original_price
:
res
.
data
.
data
.
original_price
,
goods_spec_base_inventory
:
res
.
data
.
data
.
inventory
,
goods_spec_base_price
:
spec_base
.
price
,
goods_spec_base_original_price
:
spec_base
.
original_price
,
goods_spec_base_inventory
:
spec_base
.
inventory
,
});
}
else
{
app
.
showToast
(
res
.
data
.
msg
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录