Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
starsw001
ShopXO
提交
d216bb8d
ShopXO
项目概览
starsw001
/
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,发现更多精彩内容 >>
提交
d216bb8d
编写于
6月 28, 2019
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.6
上级
0bd89b4b
变更
20
显示空白变更内容
内联
并排
Showing
20 changed file
with
93 addition
and
49 deletion
+93
-49
public/appmini/old/alipay/app.js
public/appmini/old/alipay/app.js
+9
-9
public/appmini/old/alipay/pages/answer-form/answer-form.js
public/appmini/old/alipay/pages/answer-form/answer-form.js
+2
-1
public/appmini/old/alipay/pages/answer-list/answer-list.js
public/appmini/old/alipay/pages/answer-list/answer-list.js
+2
-1
public/appmini/old/alipay/pages/buy/buy.js
public/appmini/old/alipay/pages/buy/buy.js
+4
-2
public/appmini/old/alipay/pages/cart/cart.js
public/appmini/old/alipay/pages/cart/cart.js
+8
-4
public/appmini/old/alipay/pages/goods-category/goods-category.js
...appmini/old/alipay/pages/goods-category/goods-category.js
+2
-1
public/appmini/old/alipay/pages/goods-detail/goods-detail.js
public/appmini/old/alipay/pages/goods-detail/goods-detail.js
+10
-5
public/appmini/old/alipay/pages/goods-search/goods-search.js
public/appmini/old/alipay/pages/goods-search/goods-search.js
+2
-1
public/appmini/old/alipay/pages/index/index.js
public/appmini/old/alipay/pages/index/index.js
+2
-1
public/appmini/old/alipay/pages/login/login.js
public/appmini/old/alipay/pages/login/login.js
+10
-3
public/appmini/old/alipay/pages/message/message.js
public/appmini/old/alipay/pages/message/message.js
+2
-1
public/appmini/old/alipay/pages/user-address-save/user-address-save.js
...i/old/alipay/pages/user-address-save/user-address-save.js
+10
-5
public/appmini/old/alipay/pages/user-address/user-address.js
public/appmini/old/alipay/pages/user-address/user-address.js
+6
-3
public/appmini/old/alipay/pages/user-answer-list/user-answer-list.js
...ini/old/alipay/pages/user-answer-list/user-answer-list.js
+2
-1
public/appmini/old/alipay/pages/user-faovr/user-faovr.js
public/appmini/old/alipay/pages/user-faovr/user-faovr.js
+4
-2
public/appmini/old/alipay/pages/user-goods-browse/user-goods-browse.js
...i/old/alipay/pages/user-goods-browse/user-goods-browse.js
+4
-2
public/appmini/old/alipay/pages/user-integral/user-integral.js
...c/appmini/old/alipay/pages/user-integral/user-integral.js
+2
-1
public/appmini/old/alipay/pages/user-order-detail/user-order-detail.js
...i/old/alipay/pages/user-order-detail/user-order-detail.js
+2
-1
public/appmini/old/alipay/pages/user-order/user-order.js
public/appmini/old/alipay/pages/user-order/user-order.js
+8
-4
public/appmini/old/alipay/pages/user/user.js
public/appmini/old/alipay/pages/user/user.js
+2
-1
未找到文件。
public/appmini/old/alipay/app.js
浏览文件 @
d216bb8d
...
...
@@ -61,6 +61,7 @@ App({
// 请求地址
request_url
:
"
{{request_url}}
"
,
request_url
:
'
http://tp5-dev.com/
'
,
request_url
:
'
http://test.shopxo.net/
'
,
// 基础信息
application_title
:
"
{{application_title}}
"
,
...
...
@@ -224,6 +225,7 @@ App({
// 邀请人参数
var
params
=
my
.
getStorageSync
({
key
:
this
.
data
.
cache_launch_info_key
});
var
referrer
=
(
params
.
data
==
null
)
?
0
:
(
params
.
data
.
referrer
||
0
);
var
$this
=
this
;
// 加载loding
my
.
showLoading
({
content
:
"
授权中...
"
});
...
...
@@ -233,19 +235,20 @@ App({
scopes
:
"
auth_user
"
,
success
:
res
=>
{
if
(
res
.
authCode
)
{
my
.
httpR
equest
({
url
:
this
.
get_request_url
(
"
alipayuserauth
"
,
"
user
"
),
my
.
r
equest
({
url
:
$
this
.
get_request_url
(
"
alipayuserauth
"
,
"
user
"
),
method
:
"
POST
"
,
data
:
{
authcode
:
res
.
authCode
,
referrer
:
referrer
},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
if
(
res
.
data
.
code
==
0
)
{
my
.
setStorage
({
key
:
this
.
data
.
cache_user_login_key
,
key
:
$
this
.
data
.
cache_user_login_key
,
data
:
res
.
data
.
data
});
...
...
@@ -262,7 +265,6 @@ App({
},
fail
:
()
=>
{
my
.
hideLoading
();
my
.
showToast
({
type
:
"
fail
"
,
content
:
"
服务器请求出错
"
,
...
...
@@ -274,7 +276,6 @@ App({
},
fail
:
e
=>
{
my
.
hideLoading
();
my
.
showToast
({
type
:
"
fail
"
,
content
:
"
授权失败
"
,
...
...
@@ -291,7 +292,6 @@ App({
* auth_data 授权数据
*/
user_auth_login
(
object
,
method
,
auth_data
)
{
my
.
showLoading
({
content
:
"
授权中...
"
});
var
openid
=
my
.
getStorageSync
({
key
:
this
.
data
.
cache_user_login_key
});
if
((
openid
||
null
)
==
null
)
{
...
...
@@ -309,14 +309,14 @@ App({
* auth_data 授权数据
*/
get_user_login_info
(
object
,
method
,
openid
,
userinfo
)
{
// 远程解密数据
my
.
showLoading
({
content
:
"
授权中...
"
});
var
$this
=
this
;
my
.
request
({
url
:
$this
.
get_request_url
(
'
alipayuserinfo
'
,
'
user
'
),
method
:
'
POST
'
,
data
:
{
userinfo
:
userinfo
,
openid
:
openid
},
dataType
:
'
json
'
,
header
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
header
s
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
(
res
)
=>
{
my
.
hideLoading
();
if
(
res
.
data
.
code
==
0
)
{
...
...
@@ -345,7 +345,7 @@ App({
}
},
fail
:
()
=>
{
wx
.
hideLoading
();
my
.
hideLoading
();
my
.
showToast
({
type
:
"
fail
"
,
content
:
"
服务器请求出错
"
,
...
...
public/appmini/old/alipay/pages/answer-form/answer-form.js
浏览文件 @
d216bb8d
...
...
@@ -60,11 +60,12 @@ Page({
this
.
setData
({
form_submit_loading
:
true
});
// 网络请求
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
'
add
'
,
'
answer
'
),
method
:
'
POST
'
,
data
:
e
.
detail
.
value
,
dataType
:
'
json
'
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
(
res
)
=>
{
my
.
hideLoading
();
...
...
public/appmini/old/alipay/pages/answer-list/answer-list.js
浏览文件 @
d216bb8d
...
...
@@ -30,13 +30,14 @@ Page({
});
// 获取数据
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
common
"
,
"
answer
"
),
method
:
"
POST
"
,
data
:
{
page
:
this
.
data
.
data_page
},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
stopPullDownRefresh
();
...
...
public/appmini/old/alipay/pages/buy/buy.js
浏览文件 @
d216bb8d
...
...
@@ -72,11 +72,12 @@ Page({
var
data
=
this
.
data
.
params
;
data
[
'
address_id
'
]
=
this
.
data
.
address_id
;
data
[
'
payment_id
'
]
=
this
.
data
.
payment_id
;
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
index
"
,
"
buy
"
),
method
:
"
POST
"
,
data
:
data
,
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
if
(
res
.
data
.
code
==
0
)
{
...
...
@@ -161,11 +162,12 @@ Page({
my
.
showLoading
({
content
:
'
提交中...
'
});
this
.
setData
({
buy_submit_disabled_status
:
true
});
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
add
"
,
"
buy
"
),
method
:
"
POST
"
,
data
:
data
,
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
if
(
res
.
data
.
code
==
0
)
{
...
...
public/appmini/old/alipay/pages/cart/cart.js
浏览文件 @
d216bb8d
...
...
@@ -64,11 +64,12 @@ Page({
buy_submit_disabled_status
:
true
,
});
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
index
"
,
"
cart
"
),
method
:
"
POST
"
,
data
:
{},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
stopPullDownRefresh
();
if
(
res
.
data
.
code
==
0
)
{
...
...
@@ -168,11 +169,12 @@ Page({
}
// 更新数据库
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
stock
"
,
"
cart
"
),
method
:
"
POST
"
,
data
:
{
"
id
"
:
temp_data_list
[
index
][
'
id
'
],
"
goods_id
"
:
temp_data_list
[
index
][
'
goods_id
'
],
"
stock
"
:
buy_number
},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
stopPullDownRefresh
();
if
(
res
.
data
.
code
==
0
)
{
...
...
@@ -231,11 +233,12 @@ Page({
// 收藏事件
goods_favor_event
(
id
,
goods_id
,
type
)
{
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
'
favor
'
,
'
goods
'
),
method
:
'
POST
'
,
data
:
{
"
id
"
:
goods_id
,
"
is_mandatory_favor
"
:
1
},
dataType
:
'
json
'
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
(
res
)
=>
{
if
(
res
.
data
.
code
==
0
)
{
this
.
cart_delete
(
id
,
type
);
...
...
@@ -257,11 +260,12 @@ Page({
// 购物车删除
cart_delete
(
id
,
type
)
{
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
'
delete
'
,
'
cart
'
),
method
:
'
POST
'
,
data
:
{
"
id
"
:
id
},
dataType
:
'
json
'
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
(
res
)
=>
{
if
(
res
.
data
.
code
==
0
)
{
var
temp_data_list
=
this
.
data
.
data_list
;
...
...
public/appmini/old/alipay/pages/goods-category/goods-category.js
浏览文件 @
d216bb8d
...
...
@@ -22,11 +22,12 @@ Page({
});
// 加载loding
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
category
"
,
"
goods
"
),
method
:
"
POST
"
,
data
:
{},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
stopPullDownRefresh
();
if
(
res
.
data
.
code
==
0
)
{
...
...
public/appmini/old/alipay/pages/goods-detail/goods-detail.js
浏览文件 @
d216bb8d
...
...
@@ -69,11 +69,12 @@ Page({
data_list_loding_status
:
1
});
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
detail
"
,
"
goods
"
),
method
:
"
POST
"
,
data
:
{
goods_id
:
this
.
data
.
params
.
goods_id
},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
stopPullDownRefresh
();
my
.
hideLoading
();
...
...
@@ -237,11 +238,12 @@ Page({
}
else
{
my
.
showLoading
({
content
:
'
处理中...
'
});
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
'
favor
'
,
'
goods
'
),
method
:
'
POST
'
,
data
:
{
"
id
"
:
this
.
data
.
goods
.
id
},
dataType
:
'
json
'
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
(
res
)
=>
{
my
.
hideLoading
();
if
(
res
.
data
.
code
==
0
)
...
...
@@ -288,11 +290,12 @@ Page({
return
false
;
}
else
{
my
.
showLoading
({
content
:
'
处理中...
'
});
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
'
save
'
,
'
cart
'
),
method
:
'
POST
'
,
data
:
{
"
goods_id
"
:
this
.
data
.
goods
.
id
,
"
stock
"
:
this
.
data
.
temp_buy_number
,
"
spec
"
:
JSON
.
stringify
(
spec
)
},
dataType
:
'
json
'
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
(
res
)
=>
{
my
.
hideLoading
();
if
(
res
.
data
.
code
==
0
)
{
...
...
@@ -397,11 +400,12 @@ Page({
}
// 获取数据
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
'
spectype
'
,
'
goods
'
),
method
:
'
POST
'
,
data
:
{
"
id
"
:
this
.
data
.
goods
.
id
,
"
spec
"
:
JSON
.
stringify
(
spec
)
},
dataType
:
'
json
'
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
(
res
)
=>
{
if
(
res
.
data
.
code
==
0
)
{
var
spec_count
=
spec
.
length
;
...
...
@@ -484,11 +488,12 @@ Page({
}
// 获取数据
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
'
specdetail
'
,
'
goods
'
),
method
:
'
POST
'
,
data
:
{
"
id
"
:
this
.
data
.
goods
.
id
,
"
spec
"
:
JSON
.
stringify
(
spec
)
},
dataType
:
'
json
'
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
(
res
)
=>
{
if
(
res
.
data
.
code
==
0
)
{
this
.
setData
({
...
...
public/appmini/old/alipay/pages/goods-search/goods-search.js
浏览文件 @
d216bb8d
...
...
@@ -63,11 +63,12 @@ Page({
post_data
[
'
category_id
'
]
=
params
[
'
category_id
'
]
||
0
;
// 获取数据
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
index
"
,
"
search
"
),
method
:
"
POST
"
,
data
:
post_data
,
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
...
...
public/appmini/old/alipay/pages/index/index.js
浏览文件 @
d216bb8d
...
...
@@ -26,11 +26,12 @@ Page({
});
// 加载loding
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
index
"
,
"
index
"
),
method
:
"
POST
"
,
data
:
{},
dataType
:
"
json
"
,
header
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
stopPullDownRefresh
();
self
.
setData
({
load_status
:
1
});
...
...
public/appmini/old/alipay/pages/login/login.js
浏览文件 @
d216bb8d
...
...
@@ -39,8 +39,13 @@ Page({
user_auth_code
(
object
,
method
,
auth_data
)
{
my
.
getOpenUserInfo
({
success
:
(
userinfo
)
=>
{
// my.alert({
// title: '亲',
// content: userinfo,
// buttonText: '我知道了',
// });
console
.
log
(
userinfo
)
app
.
user_auth_login
(
$this
,
'
user_auth_back_event
'
,
userinfo
);
app
.
user_auth_login
(
$this
,
'
user_auth_back_event
'
,
null
);
}
});
},
...
...
@@ -80,11 +85,12 @@ Page({
my
.
showLoading
({
content
:
'
发送中...
'
});
this
.
setData
({
verify_submit_text
:
'
发送中
'
,
verify_loading
:
true
,
verify_disabled
:
true
});
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
'
regverifysend
'
,
'
user
'
),
method
:
'
POST
'
,
data
:
{
mobile
:
this
.
data
.
mobile
},
dataType
:
'
json
'
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
(
res
)
=>
{
my
.
hideLoading
();
if
(
res
.
data
.
code
==
0
)
...
...
@@ -149,11 +155,12 @@ Page({
this
.
setData
({
form_submit_loading
:
true
});
// 网络请求
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
'
reg
'
,
'
user
'
),
method
:
'
POST
'
,
data
:
e
.
detail
.
value
,
dataType
:
'
json
'
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
(
res
)
=>
{
my
.
hideLoading
();
...
...
public/appmini/old/alipay/pages/message/message.js
浏览文件 @
d216bb8d
...
...
@@ -51,13 +51,14 @@ Page({
});
// 获取数据
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
index
"
,
"
message
"
),
method
:
"
POST
"
,
data
:
{
page
:
this
.
data
.
data_page
},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
...
...
public/appmini/old/alipay/pages/user-address-save/user-address-save.js
浏览文件 @
d216bb8d
...
...
@@ -77,11 +77,12 @@ Page({
// 加载loding
my
.
showLoading
({
content
:
"
加载中...
"
});
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
detail
"
,
"
useraddress
"
),
method
:
"
POST
"
,
data
:
self
.
data
.
params
,
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
if
(
res
.
data
.
code
==
0
)
{
...
...
@@ -122,11 +123,12 @@ Page({
// 获取选择的省市区
get_province_list
()
{
var
self
=
this
;
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
index
"
,
"
region
"
),
method
:
"
POST
"
,
data
:
{},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
if
(
res
.
data
.
code
==
0
)
{
var
data
=
res
.
data
.
data
;
...
...
@@ -152,13 +154,14 @@ Page({
get_city_list
()
{
var
self
=
this
;
if
(
self
.
data
.
province_id
)
{
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
index
"
,
"
region
"
),
method
:
"
POST
"
,
data
:
{
pid
:
self
.
data
.
province_id
},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
if
(
res
.
data
.
code
==
0
)
{
var
data
=
res
.
data
.
data
;
...
...
@@ -186,13 +189,14 @@ Page({
var
self
=
this
;
if
(
self
.
data
.
city_id
)
{
// 加载loding
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
index
"
,
"
region
"
),
method
:
"
POST
"
,
data
:
{
pid
:
self
.
data
.
city_id
},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
if
(
res
.
data
.
code
==
0
)
{
var
data
=
res
.
data
.
data
;
...
...
@@ -301,11 +305,12 @@ Page({
// 加载loding
my
.
showLoading
({
content
:
"
处理中...
"
});
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
save
"
,
"
useraddress
"
),
method
:
"
POST
"
,
data
:
form_data
,
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
if
(
res
.
data
.
code
==
0
)
{
...
...
public/appmini/old/alipay/pages/user-address/user-address.js
浏览文件 @
d216bb8d
...
...
@@ -48,11 +48,12 @@ Page({
});
// 获取数据
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
index
"
,
"
useraddress
"
),
method
:
"
POST
"
,
data
:
{},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
...
...
@@ -136,11 +137,12 @@ Page({
my
.
showLoading
({
content
:
"
处理中...
"
});
// 获取数据
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
delete
"
,
"
useraddress
"
),
method
:
"
POST
"
,
data
:
{
id
:
value
},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
if
(
res
.
data
.
code
==
0
)
...
...
@@ -216,11 +218,12 @@ Page({
my
.
showLoading
({
content
:
"
处理中...
"
});
// 获取数据
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
setdefault
"
,
"
useraddress
"
),
method
:
"
POST
"
,
data
:
{
id
:
value
},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
if
(
res
.
data
.
code
==
0
)
...
...
public/appmini/old/alipay/pages/user-answer-list/user-answer-list.js
浏览文件 @
d216bb8d
...
...
@@ -51,13 +51,14 @@ Page({
});
// 获取数据
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
index
"
,
"
answer
"
),
method
:
"
POST
"
,
data
:
{
page
:
this
.
data
.
data_page
},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
...
...
public/appmini/old/alipay/pages/user-faovr/user-faovr.js
浏览文件 @
d216bb8d
...
...
@@ -50,13 +50,14 @@ Page({
});
// 获取数据
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
index
"
,
"
usergoodsfavor
"
),
method
:
"
POST
"
,
data
:
{
page
:
this
.
data
.
data_page
},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
...
...
@@ -146,11 +147,12 @@ Page({
// 加载loding
my
.
showLoading
({
content
:
"
处理中...
"
});
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
cancel
"
,
"
usergoodsfavor
"
),
method
:
"
POST
"
,
data
:
{
id
:
id
},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
if
(
res
.
data
.
code
==
0
)
{
...
...
public/appmini/old/alipay/pages/user-goods-browse/user-goods-browse.js
浏览文件 @
d216bb8d
...
...
@@ -50,13 +50,14 @@ Page({
});
// 获取数据
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
index
"
,
"
usergoodsbrowse
"
),
method
:
"
POST
"
,
data
:
{
page
:
this
.
data
.
data_page
},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
...
...
@@ -145,11 +146,12 @@ Page({
// 加载loding
my
.
showLoading
({
content
:
"
处理中...
"
});
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
delete
"
,
"
usergoodsbrowse
"
),
method
:
"
POST
"
,
data
:
{
id
:
id
},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
if
(
res
.
data
.
code
==
0
)
{
...
...
public/appmini/old/alipay/pages/user-integral/user-integral.js
浏览文件 @
d216bb8d
...
...
@@ -51,13 +51,14 @@ Page({
});
// 获取数据
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
index
"
,
"
userintegral
"
),
method
:
"
POST
"
,
data
:
{
page
:
this
.
data
.
data_page
},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
...
...
public/appmini/old/alipay/pages/user-order-detail/user-order-detail.js
浏览文件 @
d216bb8d
...
...
@@ -25,13 +25,14 @@ Page({
data_list_loding_status
:
1
});
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
detail
"
,
"
order
"
),
method
:
"
POST
"
,
data
:
{
id
:
this
.
data
.
params
.
id
},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
...
...
public/appmini/old/alipay/pages/user-order/user-order.js
浏览文件 @
d216bb8d
...
...
@@ -93,7 +93,7 @@ Page({
var
order_status
=
((
this
.
data
.
nav_status_list
[
this
.
data
.
nav_status_index
]
||
null
)
==
null
)
?
-
1
:
this
.
data
.
nav_status_list
[
this
.
data
.
nav_status_index
][
'
value
'
];
// 获取数据
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
index
"
,
"
order
"
),
method
:
"
POST
"
,
data
:
{
...
...
@@ -103,6 +103,7 @@ Page({
is_more
:
1
,
},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
my
.
stopPullDownRefresh
();
...
...
@@ -226,7 +227,7 @@ Page({
// 加载loding
my
.
showLoading
({
content
:
"
请求中...
"
});
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
pay
"
,
"
order
"
),
method
:
"
POST
"
,
data
:
{
...
...
@@ -234,6 +235,7 @@ Page({
payment_id
:
this
.
data
.
payment_id
,
},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
if
(
res
.
data
.
code
==
0
)
{
...
...
@@ -310,11 +312,12 @@ Page({
// 加载loding
my
.
showLoading
({
content
:
"
处理中...
"
});
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
cancel
"
,
"
order
"
),
method
:
"
POST
"
,
data
:
{
id
:
id
},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
if
(
res
.
data
.
code
==
0
)
{
...
...
@@ -363,11 +366,12 @@ Page({
// 加载loding
my
.
showLoading
({
content
:
"
处理中...
"
});
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
collect
"
,
"
order
"
),
method
:
"
POST
"
,
data
:
{
id
:
id
},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
hideLoading
();
if
(
res
.
data
.
code
==
0
)
{
...
...
public/appmini/old/alipay/pages/user/user.js
浏览文件 @
d216bb8d
...
...
@@ -84,11 +84,12 @@ Page({
// 获取数据
get_data
()
{
my
.
httpR
equest
({
my
.
r
equest
({
url
:
app
.
get_request_url
(
"
center
"
,
"
user
"
),
method
:
"
POST
"
,
data
:
{},
dataType
:
"
json
"
,
headers
:
{
'
content-type
'
:
'
application/x-www-form-urlencoded
'
},
success
:
res
=>
{
my
.
stopPullDownRefresh
();
if
(
res
.
data
.
code
==
0
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录