Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
严立
/
mini-shimao
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
38827be9
authored
Jan 04, 2021
by
严立
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
问题修改
parent
4d6c7be7
Hide whitespace changes
Inline
Side-by-side
Showing
46 changed files
with
257 additions
and
134 deletions
app.js
component/m-ui/m-dialog/m-dialog.js
component/m-ui/m-dialog/m-dialog.wxml
component/m-ui/m-image-picker/m-image-picker.js
component/m-ui/m-image-picker/m-image-picker.wxml
component/m-ui/m-init.js
environmental.js
pages/campsite/evaluate/evaluate.js
pages/campsite/evaluate/evaluate.wxml
pages/campsite/evaluate/evaluate.wxss
pages/club/create/create.js
pages/club/home/home.js
pages/commodity/menu-food/menu-food.js
pages/commodity/project-detail/project-detail.js
pages/commodity/room-appointment/room-appointment.js
pages/commodity/shopping-cart/shopping-cart.js
pages/home/dynamic/dynamic.js
pages/home/guide/guide.js
pages/home/night-appointment/night-appointment.js
pages/mall/exchange-record/exchange-record.js
pages/mall/exchange-state/exchange-state.js
pages/mall/exchange-state/exchange-state.wxss
pages/mine/accumulate/accumulate.js
pages/mine/address-list/address-list.js
pages/mine/address-operate/address-operate.js
pages/mine/appointment-detail/appointment-detail.js
pages/mine/appointment-ticket/appointment-ticket.js
pages/mine/appointment/appointment.js
pages/mine/authentication-input/authentication-input.js
pages/mine/card/card.js
pages/mine/club-manage/club-manage.js
pages/mine/club/club.js
pages/mine/home/home.js
pages/mine/home/home.wxml
pages/mine/order/order.js
pages/mine/question/question.js
pages/mine/question/question.wxml
pages/pay/coupon-detail/coupon-detail.js
pages/pay/coupon-input/coupon-input.js
pages/pay/order-comment/order-comment.js
pages/pay/order-detail/order-detail.js
pages/pay/order-detail/order-detail.wxss
pages/play/activity/activity.js
pages/play/home/home.js
pages/play/service-detail/service-detail.js
utils/request/corvus.js
app.js
View file @
38827be9
...
...
@@ -202,7 +202,7 @@ App({
setUserStatus
:
function
()
{
this
.
request
({
url
:
'v1/userAuth/getAuth'
,
method
:
'
GET
'
method
:
'
get
'
}).
then
((
response
)
=>
{
let
funcData
=
response
.
data
...
...
component/m-ui/m-dialog/m-dialog.js
View file @
38827be9
...
...
@@ -58,5 +58,10 @@ Component({
this
.
data
.
success
({
input
:
this
.
data
.
inputContent
})
App
.
ui
.
hideDialog
()
},
onOpenSetting
:
function
(
event
)
{
this
.
data
.
success
(
event
)
App
.
ui
.
hideDialog
()
},
}
})
component/m-ui/m-dialog/m-dialog.wxml
View file @
38827be9
...
...
@@ -44,6 +44,23 @@
</block>
<!-- 对话框 - 标题和内容,取消确定按钮 -->
<block wx:if="{{type === 'openSetting'}}">
<view class="container-dialog column cb">
<view class="dialog-title row cc ac">
<text class="regular">{{title}}</text>
</view>
<view class="dialog-content row cc">
<text class="fs30 c31">{{content}}</text>
</view>
<view class="dialog-operation row cb ac border-base">
<button class="dialog-operation-cancel row cc ac fs30 c31" bindtap="onCancel">{{cancel}}</button>
<view class="dialog-operation-line row cc ac border-base"></view>
<button class="dialog-operation-confirm row cc ac" open-type="openSetting" bindopensetting="onOpenSetting">{{confirm}}</button>
</view>
</view>
</block>
<!-- 对话框 - 标题和内容,取消确定按钮 -->
<block wx:if="{{type === 'input'}}">
<view class="container-dialog column cb">
<view class="dialog-title row cc ac">
...
...
component/m-ui/m-image-picker/m-image-picker.js
View file @
38827be9
...
...
@@ -44,7 +44,6 @@ Component({
funcErrorImage
.
push
(
funcImageList
[
i
])
}
}
return
{
'passImage'
:
funcPassImage
,
'errorImage'
:
funcErrorImage
}
},
...
...
@@ -61,7 +60,6 @@ Component({
funcErrorImage
.
push
(
funcImageList
[
i
])
}
}
return
{
'passImage'
:
funcPassImage
,
'errorImage'
:
funcErrorImage
}
},
...
...
@@ -82,7 +80,7 @@ Component({
let
funcList
=
[]
for
(
let
i
=
0
,
l
=
funcFileList
.
length
;
i
<
l
;
i
++
)
{
funcList
.
push
({
'id'
:
i
,
'id'
:
'index'
+
i
+
'time'
+
new
Date
().
getTime
().
toString
()
,
'path'
:
funcFileList
[
i
].
path
,
'size'
:
funcFileList
[
i
].
size
,
})
...
...
component/m-ui/m-image-picker/m-image-picker.wxml
View file @
38827be9
...
...
@@ -7,7 +7,7 @@
</view>
</view>
</block>
<view class="image-picker-selection column cc ac" bindtap="onSelectionImage">
<view class="image-picker-selection column cc ac"
wx:if="{{selectionImageList.length < maxSelection}}"
bindtap="onSelectionImage">
<image class="image-picker-selection-icon" src="./image/camera.png"></image>
<text class="image-picker-selection-tip">添加图片</text>
</view>
...
...
component/m-ui/m-init.js
View file @
38827be9
...
...
@@ -12,16 +12,18 @@ function showToast (funcOption) {
return
}
// 如果传参包含 duration 数值,使用该数值。
// 删除该属性是为了不污染 toast 实例中的默认值。
// 如果重复调用 showToast 则重置计时器
clearTimeout
(
App
.
ui
.
toastTimer
)
// funcOption 配置中的 duration 拥有最高优先级。
// 其次 loading 类型的 duration 默认值为 30s
// 最后常规类型的 duration 默认值为 3s
let
funcToastDuration
=
App
.
ui
.
toast
.
data
.
duration
if
(
funcOption
.
duration
)
{
funcToastDuration
=
funcOption
.
duration
// 设置 loading 默认时间为 30s
if
(
App
.
ui
.
toast
.
data
.
iconType
===
'loading'
)
funcToastDuration
=
30000
delete
funcOption
.
duration
}
if
(
funcOption
.
iconType
===
'loading'
)
funcToastDuration
=
30000
if
(
funcOption
.
duration
)
funcToastDuration
=
funcOption
.
duration
// 删除该属性是为了不污染 toast 实例中的默认值。
delete
funcOption
.
duration
funcOption
=
Object
.
assign
(
App
.
ui
.
toast
.
data
,
funcOption
)
funcOption
.
winToast
=
true
App
.
ui
.
toast
.
setData
(
funcOption
)
...
...
@@ -30,6 +32,7 @@ function showToast (funcOption) {
App
.
ui
.
toastTimer
=
setTimeout
(()
=>
{
App
.
ui
.
toast
.
data
.
ending
()
App
.
ui
.
hideToast
()
App
.
ui
.
toast
.
setData
({
ending
:
()
=>
{}
})
},
funcToastDuration
)
}
...
...
environmental.js
View file @
38827be9
...
...
@@ -23,14 +23,14 @@ let Development = {
{
appId
:
0
,
id
:
'2da1a0cd375447f6b7e51d06b11b5300'
,
logo
:
'shop/logo-0.png'
,
commodityLogo
:
''
,
cover
:
'shop/cover-0.png'
,
printUse
:
''
,
print
:
''
,
name
:
'世茂碧海银湖'
,
title
:
[
'碧海银湖'
,
'碧海银湖'
,
'碧海银湖'
,
'碧海银湖'
,
'碧海银湖'
,
'碧海银湖'
,
'碧海银湖'
]
},
// 普通门店
{
appId
:
1
,
id
:
'581be62a80bb4f0485abd87abcf64dc0'
,
logo
:
'shop/logo-1.png'
,
commodityLogo
:
'shop/commodity-logo-1.png'
,
cover
:
'shop/cover-1.png'
,
printUse
:
'shop/print/print-1
-1.png'
,
print
:
'shop/print/print-1-2
.png'
,
name
:
'海错图'
,
title
:
[
'海错图'
,
'海错图购票'
,
'海错图'
,
'海错图文创店'
,
'海错图'
,
'海错图'
,
'海错图'
]
},
{
appId
:
2
,
id
:
'3cfe2e3b8b4342e8b62f8b45daf60d91'
,
logo
:
'shop/logo-2.png'
,
commodityLogo
:
'shop/commodity-logo-2.png'
,
cover
:
'shop/cover-2.png'
,
printUse
:
'shop/print/print-2
-1.png'
,
print
:
'shop/print/print-2
-2.png'
,
name
:
'星空影院'
,
title
:
[
'星空影院'
,
'星空影院'
,
'星空影院'
,
'星空影院'
,
'星空影院'
,
'星空影院'
,
'星空影院'
]
},
{
appId
:
3
,
id
:
'8a3e59c57f564c569b3d7bb278ea50b3'
,
logo
:
'shop/logo-3.png'
,
commodityLogo
:
'shop/commodity-logo-3.png'
,
cover
:
'shop/cover-3.png'
,
printUse
:
'shop/print/print-3
-1.png'
,
print
:
'shop/print/print-3-2
.png'
,
name
:
'儿童营地'
,
title
:
[
'儿童营地'
,
'儿童营地入园购票'
,
'儿童营地'
,
'儿童营地'
,
'儿童营地'
,
'儿童营地接待区'
,
'儿童营地'
]
},
{
appId
:
4
,
id
:
'c63893bb472f43bca4ec72f890bcb4fd'
,
logo
:
'shop/logo-4.png'
,
commodityLogo
:
'shop/commodity-logo-4.png'
,
cover
:
'shop/cover-4.png'
,
printUse
:
'shop/print/print-4
-1.png'
,
print
:
'shop/print/print-4-2
.png'
,
name
:
'原野MOJITO'
,
title
:
[
'原野MOJITO'
,
'原野MOJITO'
,
'原野MOJITO'
,
'原野MOJITO'
,
'原野MOJITO'
,
'原野MOJITO'
,
'原野MOJITO'
]
},
{
appId
:
5
,
id
:
'26c40446fc454a02abe61758176597f6'
,
logo
:
'shop/logo-5.png'
,
commodityLogo
:
'shop/commodity-logo-5.png'
,
cover
:
'shop/cover-5.png'
,
printUse
:
'shop/print/print-5
-1.png'
,
print
:
'shop/print/print-5-2
.png'
,
name
:
'拾光花坊'
,
title
:
[
'拾光花坊'
,
'拾光花坊'
,
'拾光花坊'
,
'拾光花坊'
,
'拾光花坊'
,
'拾光花坊'
,
'拾光花坊'
]
},
{
appId
:
6
,
id
:
'd9436d7018de43809824b6ec221ea01f'
,
logo
:
'shop/logo-6.png'
,
commodityLogo
:
'shop/commodity-logo-6.png'
,
cover
:
'shop/cover-6.png'
,
printUse
:
'shop/print/print-6
-1.png'
,
print
:
'shop/print/print-6-2
.png'
,
name
:
'原味舒食'
,
title
:
[
'原味舒食'
,
'原味舒食'
,
'原味舒食'
,
'原味舒食'
,
'原味舒食'
,
'原味舒食'
,
'原味舒食'
]
},
{
appId
:
7
,
id
:
'2614f117406548718bc091f24368c16e'
,
logo
:
'shop/logo-7.png'
,
commodityLogo
:
'shop/commodity-logo-7.png'
,
cover
:
'shop/cover-7.png'
,
printUse
:
'shop/print/print-7
-1.png'
,
print
:
'shop/print/print-7-2
.png'
,
name
:
'元养水韵SPA'
,
title
:
[
'元养水韵SPA'
,
'元养水韵SPA'
,
'元养水韵SPA'
,
'元养水韵SPA'
,
'元养水韵SPA'
,
'元养水韵SPA'
,
'元养水韵SPA'
]
},
{
appId
:
8
,
id
:
'2614f117406548718bc091f24368c16e'
,
logo
:
'shop/logo-7.png'
,
commodityLogo
:
'shop/commodity-logo-7.png'
,
cover
:
'shop/cover-7.png'
,
printUse
:
'shop/print/print-8
-1.png'
,
print
:
'shop/print/print-8-2
.png'
,
name
:
'星光广场'
,
title
:
[
'星光广场'
,
'星光广场'
,
'星光广场'
,
'星光广场'
,
'星光广场'
,
'星光广场'
,
'星光广场'
]
},
{
appId
:
1
,
id
:
'581be62a80bb4f0485abd87abcf64dc0'
,
logo
:
'shop/logo-1.png'
,
commodityLogo
:
'shop/commodity-logo-1.png'
,
cover
:
'shop/cover-1.png'
,
printUse
:
'shop/print/print-1
.png'
,
print
:
'shop/print/print-1
.png'
,
name
:
'海错图'
,
title
:
[
'海错图'
,
'海错图购票'
,
'海错图'
,
'海错图文创店'
,
'海错图'
,
'海错图'
,
'海错图'
]
},
{
appId
:
2
,
id
:
'3cfe2e3b8b4342e8b62f8b45daf60d91'
,
logo
:
'shop/logo-2.png'
,
commodityLogo
:
'shop/commodity-logo-2.png'
,
cover
:
'shop/cover-2.png'
,
printUse
:
'shop/print/print-2
.png'
,
print
:
'shop/print/print
-2.png'
,
name
:
'星空影院'
,
title
:
[
'星空影院'
,
'星空影院'
,
'星空影院'
,
'星空影院'
,
'星空影院'
,
'星空影院'
,
'星空影院'
]
},
{
appId
:
3
,
id
:
'8a3e59c57f564c569b3d7bb278ea50b3'
,
logo
:
'shop/logo-3.png'
,
commodityLogo
:
'shop/commodity-logo-3.png'
,
cover
:
'shop/cover-3.png'
,
printUse
:
'shop/print/print-3
.png'
,
print
:
'shop/print/print-3
.png'
,
name
:
'儿童营地'
,
title
:
[
'儿童营地'
,
'儿童营地入园购票'
,
'儿童营地'
,
'儿童营地'
,
'儿童营地'
,
'儿童营地接待区'
,
'儿童营地'
]
},
{
appId
:
4
,
id
:
'c63893bb472f43bca4ec72f890bcb4fd'
,
logo
:
'shop/logo-4.png'
,
commodityLogo
:
'shop/commodity-logo-4.png'
,
cover
:
'shop/cover-4.png'
,
printUse
:
'shop/print/print-4
.png'
,
print
:
'shop/print/print-4
.png'
,
name
:
'原野MOJITO'
,
title
:
[
'原野MOJITO'
,
'原野MOJITO'
,
'原野MOJITO'
,
'原野MOJITO'
,
'原野MOJITO'
,
'原野MOJITO'
,
'原野MOJITO'
]
},
{
appId
:
5
,
id
:
'26c40446fc454a02abe61758176597f6'
,
logo
:
'shop/logo-5.png'
,
commodityLogo
:
'shop/commodity-logo-5.png'
,
cover
:
'shop/cover-5.png'
,
printUse
:
'shop/print/print-5
.png'
,
print
:
'shop/print/print-5
.png'
,
name
:
'拾光花坊'
,
title
:
[
'拾光花坊'
,
'拾光花坊'
,
'拾光花坊'
,
'拾光花坊'
,
'拾光花坊'
,
'拾光花坊'
,
'拾光花坊'
]
},
{
appId
:
6
,
id
:
'd9436d7018de43809824b6ec221ea01f'
,
logo
:
'shop/logo-6.png'
,
commodityLogo
:
'shop/commodity-logo-6.png'
,
cover
:
'shop/cover-6.png'
,
printUse
:
'shop/print/print-6
.png'
,
print
:
'shop/print/print-6
.png'
,
name
:
'原味舒食'
,
title
:
[
'原味舒食'
,
'原味舒食'
,
'原味舒食'
,
'原味舒食'
,
'原味舒食'
,
'原味舒食'
,
'原味舒食'
]
},
{
appId
:
7
,
id
:
'2614f117406548718bc091f24368c16e'
,
logo
:
'shop/logo-7.png'
,
commodityLogo
:
'shop/commodity-logo-7.png'
,
cover
:
'shop/cover-7.png'
,
printUse
:
'shop/print/print-7
.png'
,
print
:
'shop/print/print-7
.png'
,
name
:
'元养水韵SPA'
,
title
:
[
'元养水韵SPA'
,
'元养水韵SPA'
,
'元养水韵SPA'
,
'元养水韵SPA'
,
'元养水韵SPA'
,
'元养水韵SPA'
,
'元养水韵SPA'
]
},
{
appId
:
8
,
id
:
'2614f117406548718bc091f24368c16e'
,
logo
:
'shop/logo-7.png'
,
commodityLogo
:
'shop/commodity-logo-7.png'
,
cover
:
'shop/cover-7.png'
,
printUse
:
'shop/print/print-8
.png'
,
print
:
'shop/print/print-8
.png'
,
name
:
'星光广场'
,
title
:
[
'星光广场'
,
'星光广场'
,
'星光广场'
,
'星光广场'
,
'星光广场'
,
'星光广场'
,
'星光广场'
]
},
]
}
...
...
pages/campsite/evaluate/evaluate.js
View file @
38827be9
...
...
@@ -9,6 +9,10 @@ Page({
officeEnvironmental
:
0
,
officeEnvironmentalText
:
'5.0'
,
// 门店环境评分
detailEvaluate
:
[],
evaluateAlbum
:
[],
evaluateAlbumActive
:
0
,
winEvaluateAlbum
:
false
,
},
onLoad
:
function
(
options
)
{
...
...
@@ -104,6 +108,35 @@ Page({
},
/**
* 评论查看相册
* @function
* @param
* @returns
*/
onEvaluateAlbum
:
function
(
event
)
{
let
funcItem
=
event
.
currentTarget
.
dataset
.
item
let
funcIndex
=
event
.
currentTarget
.
dataset
.
index
this
.
setData
({
evaluateAlbum
:
funcItem
.
userAlbum
,
evaluateAlbumActive
:
funcIndex
,
winEvaluateAlbum
:
true
})
},
/**
* 评论相册隐藏
* @function
* @param
* @returns
*/
onHiddenEvaluateAlbum
:
function
()
{
this
.
setData
({
winEvaluateAlbum
:
false
})
},
/**
* 页面滚动事件
* @function
* @param {object} - funcEvent
...
...
pages/campsite/evaluate/evaluate.wxml
View file @
38827be9
...
...
@@ -62,4 +62,15 @@
</view>
</block>
</view>
</view>
<!-- 查看相册 -->
<view class="full-screen-album" wx:if="{{winEvaluateAlbum}}" bindtap="onHiddenEvaluateAlbum">
<swiper circular current="{{evaluateAlbumActive}}" class="full-screen-album-swiper" duration="500">
<block wx:for="{{evaluateAlbum}}" wx:for-index="index" wx:for-item="item" wx:key="index">
<swiper-item class="album-item row cc ac">
<image class="album-image" src="{{item}}" mode="aspectFit"></image>
</swiper-item>
</block>
</swiper>
</view>
\ No newline at end of file
pages/campsite/evaluate/evaluate.wxss
View file @
38827be9
...
...
@@ -204,4 +204,43 @@
font-weight: 400;
line-height: 52rpx;
color: #fff;
}
/* 评论相册样式 */
.full-screen-album {
z-index: 7;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #000;
}
.full-screen-album-swiper, .album-item {
width: 750rpx;
height: 100%;
}
.album-image {
width: 750rpx;
min-height: 100%;
}
.detail-price-special {
width: 90rpx;
height: 36rpx;
margin-right: 16rpx;
border-radius: 4rpx;
background: linear-gradient(180deg, #3f4357 0%, #252532 100%);
text-align: center;
font-size: 18rpx;
font-weight: 500;
line-height: 32rpx;
color: #e8d0af;
}
.color-white {
color: #fff !important;
}
\ No newline at end of file
pages/club/create/create.js
View file @
38827be9
...
...
@@ -58,7 +58,6 @@ Page({
App
.
ui
.
showToast
({
iconType
:
'loading'
,
title
:
'正在提交'
,
duration
:
30000
})
let
funcPass
=
true
...
...
pages/club/home/home.js
View file @
38827be9
...
...
@@ -259,6 +259,7 @@ Page({
* @returns
*/
onReachBottom
:
function
()
{
if
(
this
.
data
.
clubInfoList
.
length
===
0
)
return
this
.
setData
({
pageIndex
:
this
.
data
.
pageIndex
+
1
})
...
...
pages/commodity/menu-food/menu-food.js
View file @
38827be9
...
...
@@ -193,7 +193,6 @@ Page({
App
.
ui
.
showToast
({
iconType
:
'loading'
,
title
:
'加载中'
,
duration
:
30000
})
App
.
request
({
url
:
'v1/commodity/getCommoditys'
,
...
...
pages/commodity/project-detail/project-detail.js
View file @
38827be9
...
...
@@ -315,7 +315,7 @@ Page({
onBuy
:
function
(
event
)
{
// 测试
// 正式环境临时隐藏儿童营地
//
if (this.data.shopInfo.appId === 3) return
if
(
this
.
data
.
shopInfo
.
appId
===
3
)
return
if
(
this
.
data
.
shopInfo
.
appId
===
7
)
{
this
.
onCommodityDetail
(
event
)
...
...
pages/commodity/room-appointment/room-appointment.js
View file @
38827be9
...
...
@@ -29,7 +29,7 @@ Page({
onLoad
:
function
(
options
)
{
this
.
setData
({
frompage
:
options
.
frompage
,
optionsTab
:
options
.
tab
optionsTab
:
'scanHouse'
})
this
.
setReset
()
},
...
...
@@ -194,7 +194,6 @@ Page({
App
.
ui
.
showToast
({
iconType
:
'loading'
,
title
:
'提交中'
,
duration
:
60000
,
})
App
.
request
({
...
...
pages/commodity/shopping-cart/shopping-cart.js
View file @
38827be9
...
...
@@ -258,7 +258,6 @@ Page({
App
.
ui
.
showToast
({
iconType
:
'error'
,
title
:
'请选购商品后结算'
,
duration
:
30000
})
return
}
...
...
pages/home/dynamic/dynamic.js
View file @
38827be9
...
...
@@ -71,7 +71,6 @@ Page({
},
onReachBottom
:
function
()
{
console
.
log
(
'触底啦'
)
if
(
this
.
data
.
loading
||
!
this
.
data
.
moreData
)
{
return
}
...
...
pages/home/guide/guide.js
View file @
38827be9
...
...
@@ -86,8 +86,6 @@ Page({
this
.
setData
({
arrowCss
:
JSON
.
stringify
(
funcArrowCss
).
replace
(
/
[
{",}
]
/g
,
''
)
})
console
.
log
(
funcArrowCss
)
},
setPointCss
:
function
(
funcProportion
)
{
...
...
@@ -152,7 +150,6 @@ Page({
const
funcQuery
=
wx
.
createSelectorQuery
()
funcQuery
.
select
(
'#guide-map'
).
boundingClientRect
()
funcQuery
.
exec
((
result
)
=>
{
console
.
log
(
result
)
this
.
setData
({
selectionPoint
:
result
[
0
].
width
*
0.2
})
...
...
@@ -243,9 +240,7 @@ Page({
let
funcPointInfo
=
this
.
data
.
pointInfo
for
(
let
i
=
0
,
l
=
funcPointInfo
.
length
;
i
<
l
;
i
++
)
{
if
(
funcPointInfo
[
i
].
isActive
)
{
console
.
log
(
'point'
,
funcPointInfo
[
i
].
detail
)
if
(
funcPointInfo
[
i
].
isActive
)
{
wx
.
navigateTo
({
url
:
funcPointInfo
[
i
].
detail
})
...
...
@@ -268,6 +263,44 @@ Page({
},
onSaveMap
:
function
()
{
this
.
inspectAlbumAuthority
()
},
inspectAlbumAuthority
:
function
()
{
wx
.
getSetting
({
success
:
(
response
)
=>
{
if
(
response
.
authSetting
[
'scope.writePhotosAlbum'
]
||
response
.
authSetting
[
'scope.writePhotosAlbum'
]
===
undefined
)
{
this
.
onSaveMapConfirm
()
}
if
(
response
.
authSetting
[
'scope.writePhotosAlbum'
]
===
false
)
{
App
.
ui
.
showDialog
({
type
:
'openSetting'
,
title
:
'授权相册权限?'
,
content
:
'用于保存完成地图'
,
cancel
:
'取消'
,
confirm
:
'打开授权'
,
success
:
(
response
)
=>
{
if
(
response
.
detail
.
authSetting
[
'scope.writePhotosAlbum'
])
{
this
.
downloadMap
()
}
if
(
response
.
detail
.
authSetting
[
'scope.writePhotosAlbum'
]
===
false
)
{
App
.
ui
.
showToast
({
iconType
:
'error'
,
title
:
'授权失败'
,
})
}
},
fail
:
(
response
)
=>
{
console
.
log
(
'fail'
)
},
})
}
}
})
},
onSaveMapConfirm
:
function
()
{
if
(
this
.
data
.
isSave
)
{
App
.
ui
.
showToast
({
iconType
:
'success'
,
...
...
@@ -283,8 +316,7 @@ Page({
cancel
:
'取消'
,
confirm
:
'保存'
,
success
:
()
=>
{
console
.
log
(
'success'
)
this
.
onSaveMapConfirm
()
this
.
downloadMap
()
},
fail
:
()
=>
{
console
.
log
(
'fail'
)
...
...
@@ -292,17 +324,15 @@ Page({
})
},
onSaveMapConfirm
:
function
()
{
downloadMap
:
function
()
{
App
.
ui
.
showToast
({
iconType
:
'loading'
,
title
:
'正在下载...'
,
duration
:
20000
,
})
wx
.
downloadFile
({
url
:
App
.
globalData
.
appResourcesBase
+
'guide/save-guide.png'
,
success
:
(
result
)
=>
{
console
.
log
(
result
)
wx
.
saveImageToPhotosAlbum
({
filePath
:
result
.
tempFilePath
,
success
:
(
result
)
=>
{
...
...
@@ -317,7 +347,7 @@ Page({
fail
:
(
error
)
=>
{
App
.
ui
.
showToast
({
iconType
:
'error'
,
title
:
'地图
已
保存失败'
,
title
:
'地图保存失败'
,
})
}
})
...
...
pages/home/night-appointment/night-appointment.js
View file @
38827be9
...
...
@@ -26,7 +26,7 @@ Page({
onLoad
:
function
(
options
)
{
this
.
setData
({
frompage
:
options
.
frompage
,
optionsTab
:
options
.
tab
optionsTab
:
'garden'
})
this
.
setReset
()
},
...
...
@@ -244,6 +244,7 @@ Page({
},
onAppointmentComplete
:
function
()
{
console
.
log
(
'onAppointmentComplete'
,
this
.
data
.
optionsTab
)
this
.
setData
({
appointmentComplete
:
false
,
})
...
...
pages/mall/exchange-record/exchange-record.js
View file @
38827be9
...
...
@@ -93,7 +93,6 @@ Page({
App
.
ui
.
showToast
({
iconType
:
'loading'
,
title
:
'正在处理'
,
duration
:
30000
})
App
.
request
({
...
...
@@ -135,7 +134,6 @@ Page({
App
.
ui
.
showToast
({
iconType
:
'loading'
,
title
:
'正在处理'
,
duration
:
30000
})
App
.
request
({
...
...
@@ -171,6 +169,7 @@ Page({
* @returns
*/
onReachBottom
:
function
()
{
if
(
this
.
data
.
recordList
.
length
===
0
)
return
this
.
setData
({
pageIndex
:
this
.
data
.
pageIndex
+
1
})
...
...
pages/mall/exchange-state/exchange-state.js
View file @
38827be9
...
...
@@ -49,7 +49,6 @@ Page({
App
.
ui
.
showToast
({
iconType
:
'loading'
,
title
:
'正在获取'
,
duration
:
30000
})
App
.
request
({
...
...
@@ -282,7 +281,6 @@ Page({
App
.
ui
.
showToast
({
iconType
:
'loading'
,
title
:
'正在处理'
,
duration
:
30000
})
App
.
request
({
...
...
@@ -325,7 +323,6 @@ Page({
App
.
ui
.
showToast
({
iconType
:
'loading'
,
title
:
'正在处理'
,
duration
:
30000
})
App
.
request
({
...
...
pages/mall/exchange-state/exchange-state.wxss
View file @
38827be9
...
...
@@ -35,14 +35,15 @@
position: relative;
width: 670rpx;
margin: 60rpx 0 0 0;
overflow: hidden;
}
.coupon_seal {
z-index: 4;
position: absolute;
top: 180rpx;
right:
0
;
width:
166
rpx;
right:
-32rpx
;
width:
200
rpx;
height: 200rpx;
}
...
...
@@ -85,6 +86,7 @@
.coupon_code_point_left,
.coupon_code_point_right {
z-index: 4;
width: 36rpx;
height: 36rpx;
border-radius: 50%;
...
...
pages/mine/accumulate/accumulate.js
View file @
38827be9
...
...
@@ -42,7 +42,6 @@ Page({
App
.
ui
.
showToast
({
iconType
:
'loading'
,
title
:
'加载中'
,
duration
:
30000
})
App
.
request
({
url
:
'v1/smUser/getIntegralDetails'
,
...
...
pages/mine/address-list/address-list.js
View file @
38827be9
...
...
@@ -91,7 +91,6 @@ Page({
App
.
ui
.
showToast
({
iconType
:
'error'
,
title
:
response
.
message
,
duration
:
3000
})
})
}
...
...
pages/mine/address-operate/address-operate.js
View file @
38827be9
...
...
@@ -53,7 +53,6 @@ Page({
App
.
ui
.
showToast
({
iconType
:
'error'
,
title
:
response
.
message
,
duration
:
3000
})
})
},
...
...
@@ -201,7 +200,6 @@ Page({
App
.
ui
.
showToast
({
'iconType'
:
'loading'
,
'title'
:
'处理中'
,
'duration'
:
30000
})
App
.
request
({
url
:
'v3/shippingAddress/del'
,
...
...
pages/mine/appointment-detail/appointment-detail.js
View file @
38827be9
...
...
@@ -241,17 +241,20 @@ Page({
params
:
{},
})
.
then
((
response
)
=>
{
wx
.
emit
({
event
:
{
type
:
'onReload'
,
receivePage
:
'pages/mine/appointment/appointment'
}
})
App
.
ui
.
showToast
({
'iconType'
:
'success'
,
'title'
:
'退款申请已提交'
})
wx
.
emit
({
event
:
{
type
:
'onReload'
,
receivePage
:
'pages/mine/appointment/appointment'
,
'title'
:
'退款申请已提交'
,
ending
:
()
=>
{
this
.
queryOrderDetail
()
}
})
this
.
queryOrderDetail
()
})
.
catch
((
response
)
=>
{
App
.
ui
.
showToast
({
'iconType'
:
'error'
,
'title'
:
response
.
message
})
})
},
fail
:
()
=>
{},
...
...
pages/mine/appointment-ticket/appointment-ticket.js
View file @
38827be9
...
...
@@ -15,10 +15,7 @@ Page({
let
detail
=
JSON
.
parse
(
options
.
detail
)
console
.
log
(
'onLoad'
)
console
.
log
(
detail
)
let
yyDate
=
detail
.
subscribeDate
?
Date
.
parse
(
detail
.
subscribeDate
.
replace
(
/-/g
,
'/'
))
:
0
let
nowStr
=
new
Date
().
toLocaleString
().
substr
(
0
,
10
).
replace
(
/-/g
,
'/'
)
+
" 00:00:00"
let
now
=
Date
.
parse
(
nowStr
)
this
.
setData
({
tickerInfo
:
detail
,
type
:
detail
.
type
,
...
...
@@ -55,7 +52,6 @@ Page({
App
.
ui
.
showToast
({
'iconType'
:
'loading'
,
'title'
:
'处理中'
,
'duration'
:
60000
})
this
.
setData
({
...
...
pages/mine/appointment/appointment.js
View file @
38827be9
...
...
@@ -58,7 +58,6 @@ Page({
App
.
ui
.
showToast
({
'iconType'
:
'loading'
,
'title'
:
'加载中'
,
'duration'
:
30000
,
})
App
.
request
({
url
:
'v1/activity/getMyActivityList'
,
...
...
@@ -217,9 +216,11 @@ Page({
.
then
((
response
)
=>
{
App
.
ui
.
showToast
({
'iconType'
:
'success'
,
'title'
:
'退款申请已提交'
'title'
:
'退款申请已提交'
,
ending
:
()
=>
{
this
.
onReload
()
}
})
this
.
onReload
()
})
.
catch
((
response
)
=>
{
App
.
ui
.
showToast
({
...
...
@@ -327,7 +328,6 @@ Page({
App
.
ui
.
showToast
({
'iconType'
:
'loading'
,
'title'
:
'处理中'
,
'duration'
:
60000
,
})
this
.
setData
({
isDoing
:
true
...
...
@@ -379,7 +379,6 @@ Page({
App
.
ui
.
showToast
({
'iconType'
:
'loading'
,
'title'
:
'处理中'
,
'duration'
:
60000
,
})
this
.
setData
({
...
...
@@ -431,6 +430,7 @@ Page({
// 触底加载
onReachBottom
:
function
()
{
if
(
this
.
data
.
activityList
.
length
===
0
)
return
this
.
setData
({
pageNo
:
this
.
data
.
pageNo
+
1
})
...
...
pages/mine/authentication-input/authentication-input.js
View file @
38827be9
...
...
@@ -94,7 +94,7 @@ Page({
getAuth
()
{
App
.
request
({
url
:
'v1/userAuth/getAuth'
,
method
:
'
GET
'
,
method
:
'
get
'
,
params
:
{},
})
.
then
((
response
)
=>
{
...
...
@@ -148,7 +148,6 @@ Page({
App
.
ui
.
showToast
({
iconType
:
'loading'
,
title
:
'提交中'
,
duration
:
60000
})
App
.
request
({
...
...
pages/mine/card/card.js
View file @
38827be9
...
...
@@ -45,7 +45,6 @@ Page({
App
.
ui
.
showToast
({
'iconType'
:
'loading'
,
'title'
:
'加载中'
,
'duration'
:
60000
})
App
.
request
({
url
:
'v1/volume/getVolumeList'
,
...
...
pages/mine/club-manage/club-manage.js
View file @
38827be9
...
...
@@ -217,7 +217,7 @@ Page({
})
this
.
queryExamine
()
this
.
queryStatistics
()
wx
.
setStorageSync
(
'tempOptions'
,
'clubRefresh'
)
wx
.
emit
({
event
:
{
type
:
'onReload'
,
receivePage
:
'pages/mine/club/club'
}}
)
}).
catch
((
response
)
=>
{
App
.
ui
.
showToast
({
iconType
:
'error'
,
...
...
pages/mine/club/club.js
View file @
38827be9
...
...
@@ -27,7 +27,6 @@ Page({
},
onReload
:
function
()
{
console
.
log
(
'onReload'
)
this
.
setData
({
pageIndex
:
1
})
this
.
queryClubAuditTotal
()
if
(
this
.
data
.
segmentIndex
===
0
)
{
...
...
@@ -152,7 +151,6 @@ Page({
App
.
ui
.
showToast
({
iconType
:
'loading'
,
title
:
'正在处理'
,
duration
:
30000
})
App
.
request
({
...
...
@@ -193,7 +191,6 @@ Page({
App
.
ui
.
showToast
({
iconType
:
'loading'
,
title
:
'正在处理'
,
duration
:
30000
})
App
.
request
({
...
...
@@ -234,7 +231,6 @@ Page({
App
.
ui
.
showToast
({
iconType
:
'loading'
,
title
:
'正在处理'
,
duration
:
30000
})
App
.
request
({
...
...
@@ -275,7 +271,6 @@ Page({
App
.
ui
.
showToast
({
iconType
:
'loading'
,
title
:
'正在处理'
,
duration
:
30000
})
App
.
request
({
...
...
pages/mine/home/home.js
View file @
38827be9
...
...
@@ -74,8 +74,6 @@ Page({
}
],
appointmentList
:
[],
appointmentActivityListBuffer
:
[],
// 活动预约列表缓存,页面不渲染此数组。
appointmentOtherListBuffer
:
[],
// 其他预约列表,页面不渲染此数组。
isMoreAppointment
:
false
,
clubExamine
:
0
,
...
...
@@ -95,7 +93,6 @@ Page({
switch
(
funcOptions
)
{
case
'exchange'
:
wx
.
removeStorageSync
(
'tempOptions'
)
break
}
},
...
...
@@ -103,7 +100,7 @@ Page({
onShow
:
function
()
{
this
.
setData
({
isMoreOrder
:
false
,
isMoreA
ctivity
:
false
,
isMoreA
ppointment
:
false
,
})
this
.
setData
({
appStatus
:
App
.
globalData
.
appStatus
})
...
...
@@ -115,7 +112,6 @@ Page({
this
.
queryOrder
()
// 查询订单列表
this
.
queryAppointmentCategory
()
// 查询预约分类
this
.
queryAppointmentActivity
()
// 查询活动预约
this
.
queryAppointmentOther
()
// 查询其他预约
this
.
queryClubAuditTotal
()
// 查询俱乐部审核数量
},
...
...
@@ -438,9 +434,10 @@ Page({
}
this
.
setData
({
appointmentList
:
funcList
.
concat
(
this
.
data
.
appointmentOtherListBuffer
),
appointmentActivityListBuffer
:
funcList
,
appointmentList
:
funcList
,
})
this
.
queryAppointmentOther
()
// 查询其他预约
}).
catch
((
response
)
=>
{
})
},
...
...
@@ -464,20 +461,20 @@ Page({
let
funcItem
=
{
'orderId'
:
funcData
[
i
].
id
,
'enrollId'
:
''
,
'name'
:
Number
(
funcData
[
i
].
type
)
,
'name'
:
funcData
[
i
].
name
,
'cover'
:
''
,
'quantity'
:
'预约人数 '
+
funcData
[
i
].
subscribeNum
+
'人'
,
'phone'
:
funcData
[
i
].
mobile
,
'date'
:
funcData
[
i
].
subscribeDate
,
'time'
:
funcData
[
i
].
subscribeDate
,
'cardStyle'
:
1
,
'type'
:
Number
(
funcData
[
i
].
type
),
}
funcList
.
push
(
funcItem
)
}
this
.
setData
({
appointmentList
:
this
.
data
.
appointmentActivityListBuffer
.
concat
(
funcList
),
appointmentOtherListBuffer
:
funcList
,
appointmentList
:
this
.
data
.
appointmentList
.
concat
(
funcList
),
})
}).
catch
((
response
)
=>
{
})
},
...
...
@@ -495,8 +492,13 @@ Page({
'state'
:
0
}
}).
then
((
response
)
=>
{
if
(
response
.
data
.
count
>
0
)
{
this
.
setData
({
clubExamine
:
response
.
data
.
count
})
this
.
setData
({
clubExamine
:
response
.
data
.
count
})
if
(
response
.
data
.
count
===
0
)
{
wx
.
setTabBarItem
({
index
:
4
,
iconPath
:
'/image/tabbar/mine.png'
,
selectedIconPath
:
'/image/tabbar/mine-s.png'
})
}
}).
catch
((
response
)
=>
{})
},
...
...
@@ -614,20 +616,8 @@ Page({
console
.
log
(
'onAppointmentTicket'
)
console
.
log
(
funcItem
)
// {
// 'orderId': funcData[i].id,
// 'enrollId': '',
// 'name': Number(funcData[i].type),
// 'cover': '',
// 'quantity': '预约人数 ' + funcData[i].subscribeNum + '人',
// 'phone': funcData[i].mobile,
// 'date': funcData[i].subscribeDate,
// 'time': funcData[i].subscribeDate,
// 'cardStyle': 1,
// }
let
funcOptionItem
if
(
funcItem
.
nam
e
===
0
)
{
if
(
funcItem
.
typ
e
===
0
)
{
funcOptionItem
=
{
'id'
:
funcItem
.
orderId
,
'mobile'
:
funcItem
.
phone
,
...
...
@@ -641,7 +631,7 @@ Page({
}
}
if
(
funcItem
.
nam
e
===
1
)
{
if
(
funcItem
.
typ
e
===
1
)
{
funcOptionItem
=
{
'id'
:
funcItem
.
orderId
,
'mobile'
:
funcItem
.
phone
,
...
...
pages/mine/home/home.wxml
View file @
38827be9
...
...
@@ -248,7 +248,7 @@
<text>{{item.date}}</text>
</view>
<view class="column">
<text class="card-list-appointment-name">{{item.
nam
e === 0 ? '夜间入园预约' : '看房预约'}}</text>
<text class="card-list-appointment-name">{{item.
typ
e === 0 ? '夜间入园预约' : '看房预约'}}</text>
<text class="card-list-appointment-tip">{{item.quantity}}</text>
</view>
<view class="card-list-item-operation">
...
...
pages/mine/order/order.js
View file @
38827be9
...
...
@@ -362,7 +362,7 @@ Page({
'logo'
:
funcItem
.
shopLogo
,
'shopType'
:
''
,
}
console
.
log
(
'1010'
)
wx
.
setStorageSync
(
'shopInfoBuffer'
,
funcShopInfo
)
wx
.
navigateTo
({
url
:
`/pages/pay/order-detail/order-detail?id=
${
funcItem
.
id
}
&shopAppId=
${
funcItem
.
shopAppId
}
`
,
...
...
@@ -386,7 +386,6 @@ Page({
App
.
ui
.
showToast
({
'iconType'
:
'loading'
,
'title'
:
'处理中'
,
'duration'
:
60000
})
let
funcItem
=
event
.
target
.
dataset
.
item
App
.
request
({
...
...
@@ -429,7 +428,6 @@ Page({
App
.
ui
.
showToast
({
'iconType'
:
'loading'
,
'title'
:
'处理中'
,
'duration'
:
60000
})
let
funcItem
=
event
.
target
.
dataset
.
item
App
.
request
({
...
...
@@ -476,16 +474,20 @@ Page({
.
then
((
response
)
=>
{
App
.
ui
.
showToast
({
'iconType'
:
'success'
,
'title'
:
'退款申请已提交'
'title'
:
'退款申请已提交'
,
ending
:
()
=>
{
this
.
onReload
()
}
})
this
.
setData
({
'orderList'
:
[],
'orderPages'
:
1
,
})
.
catch
((
response
)
=>
{
App
.
ui
.
showToast
({
'iconType'
:
'error'
,
'title'
:
response
.
message
})
this
.
queryOrder
()
})
},
fail
:
()
=>
{},
fail
:
(
response
)
=>
{},
})
},
...
...
@@ -665,6 +667,8 @@ Page({
* @returns
*/
onReachBottom
:
function
()
{
// 当列表为空时,不触发该事件。
if
(
this
.
data
.
orderList
.
length
===
0
)
return
this
.
setData
({
orderPages
:
this
.
data
.
orderPages
+
1
})
...
...
pages/mine/question/question.js
View file @
38827be9
...
...
@@ -71,7 +71,7 @@ Page({
this
.
setData
({
keyboardHeight
:
funcEvent
.
detail
.
height
,
feedbackOpacity
:
1
,
feedbackCssMarginTop
:
this
.
data
.
screenHeight
-
funcEvent
.
detail
.
height
-
5
18
*
wx
.
getStorageSync
(
'unitProportion'
),
feedbackCssMarginTop
:
this
.
data
.
screenHeight
-
funcEvent
.
detail
.
height
-
5
80
*
wx
.
getStorageSync
(
'unitProportion'
),
})
},
...
...
pages/mine/question/question.wxml
View file @
38827be9
...
...
@@ -52,6 +52,7 @@
placeholder="请留下您的宝贵意见"
inputMax="{{200}}"
focus="{{true}}"
bindinput="inputFeedbackContent"
bindblur="inputFeedbackContent"
bindfocus="inputFeedbackFocus"
>
...
...
pages/pay/coupon-detail/coupon-detail.js
View file @
38827be9
...
...
@@ -76,7 +76,6 @@ Page({
App
.
ui
.
showToast
({
iconType
:
'loading'
,
title
:
'正在核销'
,
duration
:
60000
})
App
.
request
({
...
...
@@ -86,7 +85,6 @@ Page({
},
})
.
then
((
response
)
=>
{
console
.
log
(
response
)
App
.
ui
.
showToast
({
iconType
:
'success'
,
title
:
'核销成功'
,
...
...
@@ -96,7 +94,6 @@ Page({
})
})
.
catch
((
response
)
=>
{
console
.
log
(
response
)
App
.
ui
.
showToast
({
iconType
:
'error'
,
title
:
response
.
message
,
...
...
pages/pay/coupon-input/coupon-input.js
View file @
38827be9
...
...
@@ -52,7 +52,6 @@ Page({
App
.
ui
.
showToast
({
iconType
:
'loading'
,
title
:
'正在识别'
,
duration
:
60000
})
App
.
request
({
...
...
pages/pay/order-comment/order-comment.js
View file @
38827be9
...
...
@@ -170,8 +170,8 @@ Page({
})
},
eventImageError
:
function
(
funcE
vent
)
{
let
funcErrorType
=
funcE
vent
.
detail
.
type
eventImageError
:
function
(
e
vent
)
{
let
funcErrorType
=
e
vent
.
detail
.
type
switch
(
funcErrorType
)
{
case
'format'
:
...
...
pages/pay/order-detail/order-detail.js
View file @
38827be9
...
...
@@ -239,9 +239,17 @@ Page({
.
then
((
response
)
=>
{
App
.
ui
.
showToast
({
'iconType'
:
'success'
,
'title'
:
'退款申请已提交'
'title'
:
'退款申请已提交'
,
ending
:
()
=>
{
this
.
onReload
()
}
})
})
.
catch
((
response
)
=>
{
App
.
ui
.
showToast
({
'iconType'
:
'error'
,
'title'
:
response
.
message
})
this
.
onReload
()
})
},
fail
:
()
=>
{},
...
...
@@ -355,7 +363,6 @@ Page({
App
.
ui
.
showToast
({
iconType
:
'loading'
,
title
:
'处理中'
,
duration
:
60000
,
})
App
.
request
({
url
:
'v1/order/cancelOrder'
,
...
...
pages/pay/order-detail/order-detail.wxss
View file @
38827be9
...
...
@@ -52,6 +52,7 @@
.info {
margin-top: 50rpx;
overflow: hidden;
}
.info-content {
...
...
@@ -124,6 +125,7 @@
}
.info-line-point-left {
z-index: 4;
position: absolute;
left: -18rpx;
width: 36rpx;
...
...
@@ -133,6 +135,7 @@
}
.info-line-point-right {
z-index: 4;
position: absolute;
right: -18rpx;
width: 36rpx;
...
...
@@ -414,18 +417,18 @@
/* 印章图 */
.seal-shot {
position: absolute;
right: -3
0
rpx;
bottom: -3
0
rpx;
width:
166
rpx;
height:
164
rpx;
right: -3
2
rpx;
bottom: -3
2
rpx;
width:
200
rpx;
height:
200
rpx;
}
.seal-long {
position: absolute;
right:
0
;
bottom: -3
0
rpx;
width:
166
rpx;
height:
164
rpx;
right:
-32rpx
;
bottom: -3
2
rpx;
width:
200
rpx;
height:
200
rpx;
}
.p-relative {
...
...
pages/play/activity/activity.js
View file @
38827be9
...
...
@@ -290,7 +290,6 @@ Page({
//开启下拉刷新
onReachBottom
:
function
()
{
console
.
log
(
'onPullDownRefresh'
)
this
.
setData
({
pageIndex
:
this
.
data
.
pageIndex
+
1
})
...
...
pages/play/home/home.js
View file @
38827be9
...
...
@@ -284,6 +284,7 @@ Page({
},
onReachBottom
:
function
()
{
if
(
this
.
data
.
touristRouteList
.
length
===
0
)
return
this
.
setData
({
touristRoutePageNo
:
this
.
data
.
touristRoutePageNo
+
1
})
...
...
pages/play/service-detail/service-detail.js
View file @
38827be9
...
...
@@ -27,6 +27,7 @@ Page({
detailCommodity
:
[],
// 商品
detailEvaluate
:
[],
// 评论
evaluateAlbum
:
[],
evaluateAlbumActive
:
0
,
emptyImg
:
App
.
globalData
.
appResourcesBase
+
'play/service/nothing.jpg'
,
...
...
utils/request/corvus.js
View file @
38827be9
...
...
@@ -15,7 +15,7 @@ function inspectOption (funcOption) {
}
// 请求方式必须是post或者get之一。
if
(
funcOption
.
method
&&
[
'get'
,
'post'
].
indexOf
(
funcOption
.
method
)
>=
0
)
{
if
(
funcOption
.
method
&&
[
'get'
,
'post'
].
indexOf
(
funcOption
.
method
)
<
0
)
{
console
.
log
(
'[request] "method" is invalid!'
)
return
}
...
...
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