Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
纵之格
ShopXO
提交
3d0927bf
ShopXO
项目概览
纵之格
/
ShopXO
通知
394
Star
16
Fork
11
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3d0927bf
编写于
1月 06, 2020
作者:
D
devil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
支付宝小程序优化
上级
f02261aa
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
104 addition
and
4 deletion
+104
-4
.gitignore
.gitignore
+2
-1
application/tags.php
application/tags.php
+31
-0
public/appmini/old/alipay/app.js
public/appmini/old/alipay/app.js
+34
-0
public/appmini/old/alipay/pages/cart/cart.js
public/appmini/old/alipay/pages/cart/cart.js
+17
-0
public/appmini/old/alipay/pages/index/index.js
public/appmini/old/alipay/pages/index/index.js
+9
-0
public/appmini/old/alipay/pages/user/user.js
public/appmini/old/alipay/pages/user/user.js
+8
-0
public/appmini/old/weixin/app.js
public/appmini/old/weixin/app.js
+1
-1
public/appmini/old/weixin/app.json
public/appmini/old/weixin/app.json
+2
-2
未找到文件。
.gitignore
浏览文件 @
3d0927bf
...
...
@@ -7,4 +7,5 @@
.idea
.htaccess
*payment_*_respond.php
*payment_*_notify.php
\ No newline at end of file
*payment_*_notify.php
.swan
application/tags.php
浏览文件 @
3d0927bf
...
...
@@ -36,6 +36,7 @@ return array (
array
(
0
=>
'app\\plugins\\membershiplevelvip\\Hook'
,
1
=>
'app\\plugins\\coupon\\Hook'
,
2
=>
'app\\plugins\\distribution\\Hook'
,
),
'plugins_service_navigation_header_handle'
=>
array
(
...
...
@@ -62,14 +63,17 @@ return array (
'plugins_service_goods_spec_extends_handle'
=>
array
(
0
=>
'app\\plugins\\membershiplevelvip\\Hook'
,
1
=>
'app\\plugins\\distribution\\Hook'
,
),
'plugins_view_admin_user_save'
=>
array
(
0
=>
'app\\plugins\\membershiplevelvip\\Hook'
,
1
=>
'app\\plugins\\distribution\\Hook'
,
),
'plugins_service_user_save_handle'
=>
array
(
0
=>
'app\\plugins\\membershiplevelvip\\Hook'
,
1
=>
'app\\plugins\\distribution\\Hook'
,
),
'plugins_service_goods_save_handle'
=>
array
(
...
...
@@ -95,11 +99,13 @@ return array (
array
(
0
=>
'app\\plugins\\membershiplevelvip\\Hook'
,
1
=>
'app\\plugins\\coupon\\Hook'
,
2
=>
'app\\plugins\\distribution\\Hook'
,
),
'plugins_service_header_navigation_top_right_handle'
=>
array
(
0
=>
'app\\plugins\\membershiplevelvip\\Hook'
,
1
=>
'app\\plugins\\coupon\\Hook'
,
2
=>
'app\\plugins\\distribution\\Hook'
,
),
'plugins_js'
=>
array
(
...
...
@@ -124,10 +130,35 @@ return array (
'plugins_service_order_status_change_history_success_handle'
=>
array
(
0
=>
'app\\plugins\\coupon\\Hook'
,
1
=>
'app\\plugins\\distribution\\Hook'
,
),
'plugins_service_user_register_end'
=>
array
(
0
=>
'app\\plugins\\coupon\\Hook'
,
),
'plugins_service_order_aftersale_audit_handle_end'
=>
array
(
0
=>
'app\\plugins\\distribution\\Hook'
,
),
'plugins_service_site_extraction_address_list'
=>
array
(
0
=>
'app\\plugins\\distribution\\Hook'
,
),
'plugins_service_buy_order_insert_end'
=>
array
(
0
=>
'app\\plugins\\distribution\\Hook'
,
),
'plugins_view_goods_detail_base_buy_nav_min_inside'
=>
array
(
0
=>
'app\\plugins\\distribution\\Hook'
,
),
'plugins_view_goods_detail_photo_within'
=>
array
(
0
=>
'app\\plugins\\distribution\\Hook'
,
),
'plugins_view_goods_detail_base_bottom'
=>
array
(
0
=>
'app\\plugins\\distribution\\Hook'
,
),
);
?>
\ No newline at end of file
public/appmini/old/alipay/app.js
浏览文件 @
3d0927bf
...
...
@@ -683,6 +683,40 @@ App({
return
(
user
==
false
)
?
null
:
user
.
alipay_openid
||
null
;
},
/**
* 设置导航reddot
* index tabBar 的哪一项,从左边算起(0开始)
* type 0 移出, 1 添加 (默认 0 移出)
*/
set_tab_bar_reddot
(
index
,
type
)
{
if
(
index
!==
undefined
&&
index
!==
null
)
{
if
((
type
||
0
)
==
0
)
{
my
.
hideTabBarRedDot
({
index
:
Number
(
index
)
});
}
else
{
my
.
showTabBarRedDot
({
index
:
Number
(
index
)
});
}
}
},
/**
* 设置导航车badge
* index tabBar 的哪一项,从左边算起(0开始)
* type 0 移出, 1 添加 (默认 0 移出)
* value 显示的文本,超过 4 个字符则显示成 ...(type参数为1的情况下有效)
*/
set_tab_bar_badge
(
index
,
type
,
value
)
{
if
(
index
!==
undefined
&&
index
!==
null
)
{
if
((
type
||
0
)
==
0
)
{
my
.
removeTabBarBadge
({
index
:
Number
(
index
)
});
}
else
{
my
.
setTabBarBadge
({
index
:
Number
(
index
),
"
text
"
:
value
.
toString
()
});
}
}
},
// 窗口背景色设置
set_nav_bg_color_main
()
{
// 窗口和下拉顶部背景色
...
...
public/appmini/old/alipay/pages/cart/cart.js
浏览文件 @
3d0927bf
...
...
@@ -98,6 +98,14 @@ Page({
common_is_exhibition_mode_btn_text
:
data
.
common_is_exhibition_mode_btn_text
||
'
立即咨询
'
,
customer_service_tel
:
data
.
customer_service_tel
||
null
,
});
// 导航购物车处理
var
cart_total
=
data
.
common_cart_total
||
0
;
if
(
cart_total
<=
0
)
{
app
.
set_tab_bar_badge
(
2
,
0
);
}
else
{
app
.
set_tab_bar_badge
(
2
,
1
,
cart_total
);
}
}
else
{
this
.
setData
({
data_list_loding_status
:
2
,
...
...
@@ -279,6 +287,15 @@ Page({
swipe_index
:
null
,
data_list_loding_status
:
temp_data_list
.
length
==
0
?
0
:
this
.
data
.
data_list_loding_status
,
});
// 导航购物车处理
var
cart_total
=
res
.
data
.
data
||
0
;
if
(
cart_total
<=
0
)
{
app
.
set_tab_bar_badge
(
2
,
0
);
}
else
{
app
.
set_tab_bar_badge
(
2
,
1
,
cart_total
);
}
app
.
showToast
(((
type
==
'
delete
'
)
?
'
删除成功
'
:
'
收藏成功
'
),
'
success
'
);
}
else
{
if
(
app
.
is_login_check
(
res
.
data
))
{
...
...
public/appmini/old/alipay/pages/index/index.js
浏览文件 @
3d0927bf
...
...
@@ -72,6 +72,15 @@ Page({
common_app_mini_alipay_scene
:
data
.
common_app_mini_alipay_scene
||
null
,
});
// 导航购物车处理
var
cart_total
=
data
.
common_cart_total
||
0
;
if
(
cart_total
<=
0
)
{
app
.
set_tab_bar_badge
(
2
,
0
);
}
else
{
app
.
set_tab_bar_badge
(
2
,
1
,
cart_total
);
}
// 在线客服开启,用户openid
if
(
this
.
data
.
common_app_is_online_service
==
1
)
{
...
...
public/appmini/old/alipay/pages/user/user.js
浏览文件 @
3d0927bf
...
...
@@ -119,6 +119,14 @@ Page({
common_app_mini_alipay_scene
:
data
.
common_app_mini_alipay_scene
||
null
,
});
// 导航购物车处理
var
cart_total
=
data
.
common_cart_total
||
0
;
if
(
cart_total
<=
0
)
{
app
.
set_tab_bar_badge
(
2
,
0
);
}
else
{
app
.
set_tab_bar_badge
(
2
,
1
,
cart_total
);
}
// 在线客服开启,用户openid
if
(
this
.
data
.
common_app_is_online_service
==
1
)
{
...
...
public/appmini/old/weixin/app.js
浏览文件 @
3d0927bf
...
...
@@ -648,7 +648,7 @@ App({
if
((
type
||
0
)
==
0
)
{
wx
.
removeTabBarBadge
({
index
:
Number
(
index
)
});
}
else
{
wx
.
setTabBarBadge
({
"
index
"
:
Number
(
index
),
"
text
"
:
value
.
toString
()
});
wx
.
setTabBarBadge
({
index
:
Number
(
index
),
"
text
"
:
value
.
toString
()
});
}
}
},
...
...
public/appmini/old/weixin/app.json
浏览文件 @
3d0927bf
{
"pages"
:
[
"pages/index/index"
,
"pages"
:
[
"pages/user-membervip/user-membervip"
,
"pages/index/index"
,
"pages/goods-category/goods-category"
,
"pages/cart/cart"
,
"pages/user/user"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录