Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李俊赕
self-support
Commits
73616dfd
Commit
73616dfd
authored
May 06, 2021
by
郭晓清
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/lijundan/self-support
parents
2be5a020
689007a3
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
73 additions
and
45 deletions
+73
-45
.env.js
.env.js
+3
-2
index.vue
src/components/order/index.vue
+1
-1
preview.vue
src/components/photo/preview.vue
+1
-1
setting.vue
src/components/photo/setting.vue
+2
-2
index.vue
src/components/take/index.vue
+17
-4
index.vue
src/pages/index/index.vue
+13
-7
complete.vue
src/pages/order/complete.vue
+1
-9
detail.vue
src/pages/order/detail.vue
+12
-2
index.vue
src/pages/order/index.vue
+10
-4
list.vue
src/pages/photo/list.vue
+2
-2
preview.vue
src/pages/photo/preview.vue
+1
-1
setting.vue
src/pages/photo/setting.vue
+2
-2
base.vue
src/pages/settle/base.vue
+1
-1
file.vue
src/pages/settle/file.vue
+6
-6
qiniuUploader.js
src/plugins/uploader/request/upload/qiniuUploader.js
+1
-1
No files found.
.env.js
View file @
73616dfd
;
;
(
function
()
{
(
function
()
{
let
NODE_ENV
=
'
dev
'
;
// dev:开发环境 | test:测试环境
let
NODE_ENV
=
'
test
'
;
// dev:开发环境 | test:测试环境
let
ENV_VAR
=
null
;
let
ENV_VAR
=
null
;
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
if
(
NODE_ENV
===
'dev'
)
{
if
(
NODE_ENV
===
'dev'
)
{
...
@@ -10,7 +10,8 @@
...
@@ -10,7 +10,8 @@
}
}
}
else
if
(
process
.
env
.
NODE_ENV
===
"production"
)
{
}
else
if
(
process
.
env
.
NODE_ENV
===
"production"
)
{
ENV_VAR
=
require
(
'./.env.prod.js'
);
ENV_VAR
=
require
(
'./.env.prod.js'
);
//ENV_VAR = require('./.env.test.js');
}
}
if
(
ENV_VAR
)
{
if
(
ENV_VAR
)
{
process
.
uniEnv
=
{};
process
.
uniEnv
=
{};
...
...
src/components/order/index.vue
View file @
73616dfd
...
@@ -357,7 +357,7 @@
...
@@ -357,7 +357,7 @@
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
align-items
:
flex-start
;
align-items
:
flex-start
;
text-align
:
left
;
.address-image
{
.address-image
{
width
:
26rpx
;
width
:
26rpx
;
height
:
28rpx
;
height
:
28rpx
;
...
...
src/components/photo/preview.vue
View file @
73616dfd
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
// if(e.standardId) {
// if(e.standardId) {
// this.standardId = e.standardId
// this.standardId = e.standardId
// }
// }
this
.
token
=
getApp
().
globalData
.
token
this
.
token
=
this
.
vuex_
token
},
},
methods
:
{
methods
:
{
// 保存照片到本地
// 保存照片到本地
...
...
src/components/photo/setting.vue
View file @
73616dfd
...
@@ -130,7 +130,7 @@
...
@@ -130,7 +130,7 @@
// this.systemId = '79550af260555cc20afb34156c94b32c' // 测试数据
// this.systemId = '79550af260555cc20afb34156c94b32c' // 测试数据
this
.
loading
=
true
this
.
loading
=
true
this
.
$u
.
api
.
getUserWatermark
({
this
.
$u
.
api
.
getUserWatermark
({
'token'
:
getApp
().
globalData
.
token
,
'token'
:
this
.
vuex_
token
,
'system_id'
:
this
.
systemId
'system_id'
:
this
.
systemId
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
&&
res
.
result
)
{
if
(
res
&&
res
.
result
)
{
...
@@ -148,7 +148,7 @@
...
@@ -148,7 +148,7 @@
saveUserWatermark
:
function
()
{
saveUserWatermark
:
function
()
{
this
.
loading
=
true
this
.
loading
=
true
this
.
$u
.
api
.
saveUserWatermark
({
this
.
$u
.
api
.
saveUserWatermark
({
'token'
:
getApp
().
globalData
.
token
,
'token'
:
this
.
vuex_
token
,
'watermark'
:
this
.
result
'watermark'
:
this
.
result
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
result
.
code
==
true
)
{
if
(
res
.
result
.
code
==
true
)
{
...
...
src/components/take/index.vue
View file @
73616dfd
<
template
>
<
template
>
<view>
<view
class=
"camera"
>
<view
class=
"camera-container"
v-if=
"showType === 1"
>
<view
class=
"camera-container"
v-if=
"showType === 1"
>
<cover-view
class=
"header-box"
:style=
"
{'height':navHeight/2 + 'px'}">
<cover-view
class=
"header-box"
:style=
"
{'height':navHeight/2 + 'px'}">
<cover-view
class=
"inner"
>
<cover-view
class=
"inner"
>
...
@@ -26,7 +26,8 @@
...
@@ -26,7 +26,8 @@
<cover-view
class=
"bottom-box"
v-if=
"!standardShow"
>
<cover-view
class=
"bottom-box"
v-if=
"!standardShow"
>
<cover-image
class=
"icon"
src=
'/static/photo/icon-back.png'
mode=
""
@
click=
"goBack"
></cover-image>
<cover-image
class=
"icon"
src=
'/static/photo/icon-back.png'
mode=
""
@
click=
"goBack"
></cover-image>
<cover-image
class=
'icon-take icon'
src=
'/static/photo/icon-take.png'
@
click=
"$u.debounce(takePhoto, 500)"
>
</cover-image>
<cover-image
class=
'icon-take icon'
src=
'/static/photo/icon-take.png'
@
click=
"$u.debounce(takePhoto, 500)"
>
</cover-image>
<cover-image
class=
'icon'
src=
'/static/photo/icon-standard.png'
@
click=
"standardShow = true"
>
</cover-image>
<cover-image
class=
'icon'
src=
'/static/photo/icon-standard.png'
@
click=
"standardShow = true"
v-if=
"standardStatus"
>
</cover-image>
<view
class=
'icon'
v-else
></view>
</cover-view>
</cover-view>
<canvas
canvas-id=
"canvas"
id=
"photoCanvas"
class=
"canvas"
<canvas
canvas-id=
"canvas"
id=
"photoCanvas"
class=
"canvas"
:style=
"
{'width':750 + 'rpx','height': cameraHeight + 'rpx'}">
</canvas>
:style=
"
{'width':750 + 'rpx','height': cameraHeight + 'rpx'}">
</canvas>
...
@@ -101,7 +102,8 @@
...
@@ -101,7 +102,8 @@
ratio
:
0
,
ratio
:
0
,
cameraChange
:
false
,
cameraChange
:
false
,
waterSetting
:
null
,
waterSetting
:
null
,
shadowInitShow
:
false
,
// 第一次进入页面需显示弹窗
shadowInitShow
:
false
,
// 第一次进入页面需显示弹窗
standardStatus
:
false
// 是否显示拍照要求
}
}
},
},
created
(
e
)
{
created
(
e
)
{
...
@@ -119,6 +121,7 @@
...
@@ -119,6 +121,7 @@
if
(
this
.
currentItem
.
images
.
length
>
0
)
{
if
(
this
.
currentItem
.
images
.
length
>
0
)
{
this
.
shadowInitShow
=
true
this
.
shadowInitShow
=
true
this
.
standardShow
=
true
this
.
standardShow
=
true
this
.
standardStatus
=
true
}
}
},
},
computed
:
{
computed
:
{
...
@@ -474,7 +477,17 @@
...
@@ -474,7 +477,17 @@
}
}
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.camera
{
position
:fixed
;
padding
:
0
;
margin
:
0
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
z-index
:
999999
;
}
.camera-container
{
.camera-container
{
// padding-top:var(--status-bar-height);
// padding-top:var(--status-bar-height);
min-height
:
100vh
;
min-height
:
100vh
;
...
...
src/pages/index/index.vue
View file @
73616dfd
...
@@ -183,7 +183,6 @@
...
@@ -183,7 +183,6 @@
if
(
result
&&
result
.
record
)
{
if
(
result
&&
result
.
record
)
{
vm
.
loaded
=
true
;
vm
.
loaded
=
true
;
vm
.
needSettled
=
result
.
needSettled
;
vm
.
needSettled
=
result
.
needSettled
;
vm
.
needSettled
=
false
vm
.
status
=
Number
(
result
.
record
.
status
||
'0'
);
vm
.
status
=
Number
(
result
.
record
.
status
||
'0'
);
// vm.status = 8
// vm.status = 8
}
}
...
@@ -347,11 +346,18 @@
...
@@ -347,11 +346,18 @@
for
(
var
i
in
res
.
data
)
{
for
(
var
i
in
res
.
data
)
{
count
+=
res
.
data
[
i
]
count
+=
res
.
data
[
i
]
}
}
// 修改tab总数
// 修改tab总数
uni
.
setTabBarBadge
({
if
(
count
>
0
)
{
index
:
1
,
uni
.
setTabBarBadge
({
text
:
String
(
count
)
index
:
1
,
})
text
:
String
(
count
)
})
}
else
{
uni
.
removeTabBarBadge
({
index
:
1
})
}
}
}
}
else
{
}
else
{
...
@@ -483,7 +489,7 @@
...
@@ -483,7 +489,7 @@
.tip-other
{
.tip-other
{
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#
333333
;
color
:
#
666666
;
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
}
}
...
...
src/pages/order/complete.vue
View file @
73616dfd
...
@@ -215,7 +215,7 @@
...
@@ -215,7 +215,7 @@
return
process
.
uniEnv
.
qn_base_url
+
'mixing.png'
return
process
.
uniEnv
.
qn_base_url
+
'mixing.png'
},
},
buttonStyle
()
{
buttonStyle
()
{
return
this
.
submitBtnStatus
?
{
return
{
'color'
:
'#FFFFFF'
,
'color'
:
'#FFFFFF'
,
'background-color'
:
'#2272FF;'
,
'background-color'
:
'#2272FF;'
,
'width'
:
'300rpx'
,
'width'
:
'300rpx'
,
...
@@ -223,14 +223,6 @@
...
@@ -223,14 +223,6 @@
'font-size'
:
'32rpx'
,
'font-size'
:
'32rpx'
,
'font-weight'
:
'bold'
,
'font-weight'
:
'bold'
,
'margin-left'
:
'50rpx'
'margin-left'
:
'50rpx'
}
:
{
'color'
:
'#FFFFFF'
,
'background-color'
:
'#D1D4D4;'
,
'width'
:
'300rpx'
,
'height'
:
'104rpx'
,
'font-size'
:
'32rpx'
,
'font-weight'
:
'bold'
,
'margin-left'
:
'50rpx'
}
}
},
},
customStyle
()
{
customStyle
()
{
...
...
src/pages/order/detail.vue
View file @
73616dfd
...
@@ -119,7 +119,7 @@
...
@@ -119,7 +119,7 @@
<view
v-if=
"showCenterBtn"
@
click=
"handleBtn"
class=
"button"
:class=
"['center-button-view', btnClass]"
>
<view
v-if=
"showCenterBtn"
@
click=
"handleBtn"
class=
"button"
:class=
"['center-button-view', btnClass]"
>
<text>
{{
centerButtonText
}}
</text>
<text>
{{
centerButtonText
}}
</text>
<view
v-if=
"order.currentOverTime"
class=
"time-view"
>
<view
v-if=
"order.currentOverTime"
class=
"time-view"
>
<text>
{{
order
.
currentOverTime
>
new
Date
().
getTime
()?
'剩'
:
'超'
}}
</text>
<text
style=
"padding-right: 8rpx;"
>
{{
order
.
currentOverTime
>
new
Date
().
getTime
()?
'剩'
:
'超'
}}
</text>
<u-count-down
<u-count-down
:timestamp=
"timestampDiff(order.currentOverTime)"
:timestamp=
"timestampDiff(order.currentOverTime)"
font-size=
"20"
font-size=
"20"
...
@@ -381,6 +381,7 @@
...
@@ -381,6 +381,7 @@
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
self
.
order
=
res
.
data
self
.
order
=
res
.
data
this
.
getCurrentBtn
()
this
.
getCurrentBtn
()
self
.
timeOutChange
(
self
.
order
.
currentOverTime
)
if
(
self
.
order
.
isFirstOrder
){
if
(
self
.
order
.
isFirstOrder
){
this
.
visibale
=
true
this
.
visibale
=
true
}
}
...
@@ -563,7 +564,16 @@
...
@@ -563,7 +564,16 @@
data
.
coordinate
=
this
.
dataValue
?
this
.
dataValue
[
0
]
+
','
+
this
.
dataValue
[
1
]:
''
data
.
coordinate
=
this
.
dataValue
?
this
.
dataValue
[
0
]
+
','
+
this
.
dataValue
[
1
]:
''
data
.
url
=
this
.
errorSignUrl
?
this
.
errorSignUrl
:
''
data
.
url
=
this
.
errorSignUrl
?
this
.
errorSignUrl
:
''
}
else
if
(
this
.
submitType
===
'toFilish'
){
// 去完工
}
else
if
(
this
.
submitType
===
'toFilish'
){
// 去完工
this
.
filish
()
if
(
this
.
order
.
categoryName
!=
'充电桩'
)
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'非充电桩订单,请在扳手APP进行完工'
,
showCancel
:
false
,
confirmText
:
'好的'
,
})
}
else
{
this
.
filish
()
}
return
return
}
}
this
.
$u
.
api
[
this
.
submitType
](
data
,
this
.
order
.
orderId
).
then
(
res
=>
{
this
.
$u
.
api
[
this
.
submitType
](
data
,
this
.
order
.
orderId
).
then
(
res
=>
{
...
...
src/pages/order/index.vue
View file @
73616dfd
...
@@ -274,10 +274,16 @@
...
@@ -274,10 +274,16 @@
count
+=
res
.
data
[
i
]
count
+=
res
.
data
[
i
]
}
}
// 修改tab总数
// 修改tab总数
uni
.
setTabBarBadge
({
if
(
count
>
0
)
{
index
:
1
,
uni
.
setTabBarBadge
({
text
:
String
(
count
)
index
:
1
,
})
text
:
String
(
count
)
})
}
else
{
uni
.
removeTabBarBadge
({
index
:
1
})
}
}
}
}
else
{
}
else
{
console
.
log
(
res
.
message
,
"获取订单数量失败!"
);
console
.
log
(
res
.
message
,
"获取订单数量失败!"
);
...
...
src/pages/photo/list.vue
View file @
73616dfd
...
@@ -146,7 +146,7 @@
...
@@ -146,7 +146,7 @@
this
.
loading
=
true
this
.
loading
=
true
let
that
=
this
let
that
=
this
this
.
$u
.
cloudApi
.
getGroupStandardV2
({
this
.
$u
.
cloudApi
.
getGroupStandardV2
({
'token'
:
getApp
().
globalData
.
token
,
'token'
:
this
.
vuex_
token
,
'classify_id'
:
this
.
classifyId
,
'classify_id'
:
this
.
classifyId
,
'system_id'
:
this
.
systemId
,
'system_id'
:
this
.
systemId
,
'brand_id'
:
this
.
brandId
'brand_id'
:
this
.
brandId
...
@@ -253,7 +253,7 @@
...
@@ -253,7 +253,7 @@
// 清除图片
// 清除图片
handleClickSure
:
function
()
{
handleClickSure
:
function
()
{
this
.
$u
.
cloudApi
.
cleanImage
({
this
.
$u
.
cloudApi
.
cleanImage
({
'token'
:
getApp
().
globalData
.
token
,
'token'
:
this
.
vuex_
token
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
this
.
isPopShow
=
false
this
.
isPopShow
=
false
if
(
res
&&
res
.
result
)
{
if
(
res
&&
res
.
result
)
{
...
...
src/pages/photo/preview.vue
View file @
73616dfd
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
this
.
standardId
=
e
.
standardId
this
.
standardId
=
e
.
standardId
}
}
this
.
token
=
getApp
().
globalData
.
token
this
.
token
=
this
.
vuex_
token
},
},
methods
:
{
methods
:
{
// 保存照片到本地
// 保存照片到本地
...
...
src/pages/photo/setting.vue
View file @
73616dfd
...
@@ -130,7 +130,7 @@
...
@@ -130,7 +130,7 @@
// this.systemId = '79550af260555cc20afb34156c94b32c' // 测试数据
// this.systemId = '79550af260555cc20afb34156c94b32c' // 测试数据
this
.
loading
=
true
this
.
loading
=
true
this
.
$u
.
cloudApi
.
getUserWatermark
({
this
.
$u
.
cloudApi
.
getUserWatermark
({
'token'
:
getApp
().
globalData
.
token
,
'token'
:
this
.
vuex_
token
,
'system_id'
:
this
.
systemId
'system_id'
:
this
.
systemId
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
&&
res
.
result
)
{
if
(
res
&&
res
.
result
)
{
...
@@ -148,7 +148,7 @@
...
@@ -148,7 +148,7 @@
saveUserWatermark
:
function
()
{
saveUserWatermark
:
function
()
{
this
.
loading
=
true
this
.
loading
=
true
this
.
$u
.
cloudApi
.
saveUserWatermark
({
this
.
$u
.
cloudApi
.
saveUserWatermark
({
'token'
:
getApp
().
globalData
.
token
,
'token'
:
this
.
vuex_
token
,
'watermark'
:
this
.
result
'watermark'
:
this
.
result
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
result
.
code
==
true
)
{
if
(
res
.
result
.
code
==
true
)
{
...
...
src/pages/settle/base.vue
View file @
73616dfd
...
@@ -360,7 +360,7 @@
...
@@ -360,7 +360,7 @@
return
;
return
;
}
}
uni
.
showToast
({
uni
.
showToast
({
title
:
'
入驻基本信息
提交成功'
,
title
:
'提交成功'
,
icon
:
'success'
icon
:
'success'
});
});
let
timer
=
setTimeout
(()
=>
{
let
timer
=
setTimeout
(()
=>
{
...
...
src/pages/settle/file.vue
View file @
73616dfd
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
></image>
></image>
</view>
</view>
<view
class=
"card-info-view"
v-if=
"index == 0
<view
class=
"card-info-view"
v-if=
"index == 0
&& ((fileInfo.id_card_name || fileInfo.id_card_number || fileInfo.id_card_
dat
e) || frontErrorMsg || backErrorMsg)"
>
&& ((fileInfo.id_card_name || fileInfo.id_card_number || fileInfo.id_card_
expir
e) || frontErrorMsg || backErrorMsg)"
>
<view
class=
"card-list-view"
v-for=
"(value, cardkey) in cardTitle"
:key=
"cardkey"
>
<view
class=
"card-list-view"
v-for=
"(value, cardkey) in cardTitle"
:key=
"cardkey"
>
<view
class=
"card-list-item"
>
<view
class=
"card-list-item"
>
<text>
{{
value
}}
</text>
<text>
{{
value
}}
</text>
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
</view>
</view>
<view
class=
"line-view"
></view>
<view
class=
"line-view"
></view>
<view
class=
"card-item-error"
v-if=
"((cardkey == 'id_card_name' || cardkey == 'id_card_number') && frontErrorMsg)"
>
{{
frontErrorMsg
}}
</view>
<view
class=
"card-item-error"
v-if=
"((cardkey == 'id_card_name' || cardkey == 'id_card_number') && frontErrorMsg)"
>
{{
frontErrorMsg
}}
</view>
<view
class=
"card-item-error"
v-if=
"(cardkey == 'id_card_
dat
e' && backErrorMsg)"
>
{{
backErrorMsg
}}
</view>
<view
class=
"card-item-error"
v-if=
"(cardkey == 'id_card_
expir
e' && backErrorMsg)"
>
{{
backErrorMsg
}}
</view>
</view>
</view>
</view>
</view>
<view
v-if=
"index == 0"
class=
"bottom-tip-view"
>
<view
v-if=
"index == 0"
class=
"bottom-tip-view"
>
...
@@ -105,7 +105,7 @@ export default {
...
@@ -105,7 +105,7 @@ export default {
id
:
""
,
id
:
""
,
id_card_name
:
""
,
id_card_name
:
""
,
id_card_number
:
""
,
id_card_number
:
""
,
id_card_
dat
e
:
''
,
id_card_
expir
e
:
''
,
id_card_front
:
""
,
id_card_front
:
""
,
id_card_back
:
""
,
id_card_back
:
""
,
electrician_certificate
:
""
,
electrician_certificate
:
""
,
...
@@ -221,7 +221,7 @@ export default {
...
@@ -221,7 +221,7 @@ export default {
return
{
return
{
'id_card_name'
:
'姓名'
,
'id_card_name'
:
'姓名'
,
'id_card_number'
:
'身份证号'
,
'id_card_number'
:
'身份证号'
,
'id_card_
dat
e'
:
'有效期'
'id_card_
expir
e'
:
'有效期'
}
}
},
},
anquanImage
()
{
anquanImage
()
{
...
@@ -407,9 +407,9 @@ export default {
...
@@ -407,9 +407,9 @@ export default {
res
.
data
.
id_card_number
||
""
;
res
.
data
.
id_card_number
||
""
;
this
.
frontErrorMsg
=
(
!
this
.
fileInfo
.
id_card_name
||
!
this
.
fileInfo
.
id_card_number
)
?
"识别失败,请重新上传"
:
''
this
.
frontErrorMsg
=
(
!
this
.
fileInfo
.
id_card_name
||
!
this
.
fileInfo
.
id_card_number
)
?
"识别失败,请重新上传"
:
''
}
else
{
}
else
{
this
.
fileInfo
.
id_card_
date
=
res
.
data
.
id_card_dat
e
||
""
;
this
.
fileInfo
.
id_card_
expire
=
res
.
data
.
id_card_expir
e
||
""
;
this
.
fileInfo
.
id_card_back_check
=
true
;
this
.
fileInfo
.
id_card_back_check
=
true
;
this
.
backErrorMsg
=
!
this
.
fileInfo
.
id_card_
dat
e
?
"识别失败,请重新上传"
:
''
this
.
backErrorMsg
=
!
this
.
fileInfo
.
id_card_
expir
e
?
"识别失败,请重新上传"
:
''
}
}
},
},
checkFileInfo
()
{
checkFileInfo
()
{
...
...
src/plugins/uploader/request/upload/qiniuUploader.js
View file @
73616dfd
...
@@ -156,7 +156,7 @@
...
@@ -156,7 +156,7 @@
function
uploadURLFromRegionCode
(
code
)
{
function
uploadURLFromRegionCode
(
code
)
{
var
uploadURL
=
null
;
var
uploadURL
=
null
;
switch
(
code
)
{
switch
(
code
)
{
case
'ECN'
:
uploadURL
=
'https://up
.qbox.me
'
;
break
;
case
'ECN'
:
uploadURL
=
'https://up
load.qiniup.com
'
;
break
;
case
'NCN'
:
uploadURL
=
'https://up-z1.qbox.me'
;
break
;
case
'NCN'
:
uploadURL
=
'https://up-z1.qbox.me'
;
break
;
case
'SCN'
:
uploadURL
=
'https://up-z2.qbox.me'
;
break
;
case
'SCN'
:
uploadURL
=
'https://up-z2.qbox.me'
;
break
;
case
'NA'
:
uploadURL
=
'https://up-na0.qbox.me'
;
break
;
case
'NA'
:
uploadURL
=
'https://up-na0.qbox.me'
;
break
;
...
...
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