Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
h5-base
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
new-sing
h5-base
Commits
91aa5b1a
Commit
91aa5b1a
authored
Jun 17, 2019
by
chenyishuai@singsingenglish.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
617
parent
97febed4
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
14 deletions
+18
-14
index.html
dev/index.html
+1
-1
14.5d414a5ed2c5be78f6e9.js
dev/static/js/14.5d414a5ed2c5be78f6e9.js
+1
-0
app.b5e6ad71aa49c13f29d5.js
dev/static/js/app.b5e6ad71aa49c13f29d5.js
+1
-0
app.d3e4b5a27de0a4a0b618.js
dev/static/js/app.d3e4b5a27de0a4a0b618.js
+0
-1
manifest.10d9a2f38fd510ea6cbc.js
dev/static/js/manifest.10d9a2f38fd510ea6cbc.js
+1
-1
index.vue
src/components/orderTrans/index.vue
+10
-7
main.js
src/main.js
+2
-2
api.js
src/service/api.js
+2
-2
No files found.
dev/index.html
View file @
91aa5b1a
...
@@ -6,4 +6,4 @@
...
@@ -6,4 +6,4 @@
overflow
:
hidden
;
overflow
:
hidden
;
position
:
fixed
;
position
:
fixed
;
background
:
#f4f4f4
;
background
:
#f4f4f4
;
}
</style><link
href=
static/css/app.3c0ad5f24e07150c06bc3b21fbd29d4b.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
src=
https://res.wx.qq.com/open/js/jweixin-1.3.2.js
></script><script
src=
static/vconsole/vconsole.min.js
></script><script></script><script
type=
text/javascript
src=
static/js/manifest.2983414907d3e08e63c3.js
></script><script
type=
text/javascript
src=
static/js/vendor.67557998227df7e95200.js
></script><script
type=
text/javascript
src=
static/js/app.d3e4b5a27de0a4a0b618.js
></script></body></html>
}
</style><link
href=
static/css/app.3c0ad5f24e07150c06bc3b21fbd29d4b.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
src=
https://res.wx.qq.com/open/js/jweixin-1.3.2.js
></script><script
src=
static/vconsole/vconsole.min.js
></script><script></script><script
type=
text/javascript
src=
static/js/manifest.10d9a2f38fd510ea6cbc.js
></script><script
type=
text/javascript
src=
static/js/vendor.67557998227df7e95200.js
></script><script
type=
text/javascript
src=
static/js/app.b5e6ad71aa49c13f29d5.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dev/static/js/14.
aa5351a5a8636ae1a152
.js
→
dev/static/js/14.
5d414a5ed2c5be78f6e9
.js
View file @
91aa5b1a
This diff is collapsed.
Click to expand it.
dev/static/js/app.b5e6ad71aa49c13f29d5.js
0 → 100644
View file @
91aa5b1a
This diff is collapsed.
Click to expand it.
dev/static/js/app.d3e4b5a27de0a4a0b618.js
deleted
100644 → 0
View file @
97febed4
This diff is collapsed.
Click to expand it.
dev/static/js/manifest.
2983414907d3e08e63c3
.js
→
dev/static/js/manifest.
10d9a2f38fd510ea6cbc
.js
View file @
91aa5b1a
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
r
,
t
){
for
(
var
o
,
d
,
b
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
d
=
c
[
i
],
f
[
d
]
&&
u
.
push
(
f
[
d
][
0
]),
f
[
d
]
=
0
;
for
(
o
in
r
)
Object
.
prototype
.
hasOwnProperty
.
call
(
r
,
o
)
&&
(
e
[
o
]
=
r
[
o
]);
for
(
a
&&
a
(
c
,
r
,
t
);
u
.
length
;)
u
.
shift
()();
if
(
t
)
for
(
i
=
0
;
i
<
t
.
length
;
i
++
)
b
=
n
(
n
.
s
=
t
[
i
]);
return
b
};
var
c
=
{},
f
=
{
42
:
0
};
function
n
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
f
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
f
.
exports
,
f
,
f
.
exports
,
n
),
f
.
l
=!
0
,
f
.
exports
}
n
.
e
=
function
(
e
){
var
a
=
f
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
n
){
a
=
f
[
e
]
=
[
c
,
n
]});
a
[
2
]
=
c
;
var
r
=
document
.
getElementsByTagName
(
"head"
)[
0
],
t
=
document
.
createElement
(
"script"
);
t
.
type
=
"text/javascript"
,
t
.
charset
=
"utf-8"
,
t
.
async
=!
0
,
t
.
timeout
=
12
e4
,
n
.
nc
&&
t
.
setAttribute
(
"nonce"
,
n
.
nc
),
t
.
src
=
n
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"7a0a0d088fa3293773e4"
,
1
:
"f17ae3475da69e33ed3c"
,
2
:
"3480e89e177929e0e092"
,
3
:
"48f0de846e6ce52fda5a"
,
4
:
"e0e2f883f76d78f28122"
,
5
:
"e0a6a403e3ada07926b2"
,
6
:
"c6ea61099a4a2c21e41e"
,
7
:
"071f9895c1ca3f5b22a5"
,
8
:
"17b5dee9411a58b64eb8"
,
9
:
"6b21b01facf38dc18532"
,
10
:
"aa09fd3470e0fed86271"
,
11
:
"b414f8bc70807458330b"
,
12
:
"fc3a3caaa06755878f03"
,
13
:
"aec72b0e84b7db4b75a5"
,
14
:
"aa5351a5a8636ae1a152"
,
15
:
"8c526c387c28b957dc7f"
,
16
:
"fdf8eca9e1a2110a4ef1"
,
17
:
"c8bfd07f0deb24c8006c"
,
18
:
"1c4bde4aae9444be9316"
,
19
:
"5637cca2c4438812cf5b"
,
20
:
"b4839fec18e0d551b1fb"
,
21
:
"e70aae60c5b399d61104"
,
22
:
"16a3985393de88e09f52"
,
23
:
"79d64d46f87a7594223c"
,
24
:
"7157073eeccbe0f0be6e"
,
25
:
"c5752e7d8cca9ae7fae3"
,
26
:
"4984774ab189eee97f72"
,
27
:
"b47b3c16657e21fee47d"
,
28
:
"3ea3a2c328b729e948f7"
,
29
:
"4bf51e792924c3a5130c"
,
30
:
"a05692f1b7030b7c6dd9"
,
31
:
"a9765e0b6fdcd95aa498"
,
32
:
"3cbcf038785e803249d0"
,
33
:
"6455804c94a9c2e46fd3"
,
34
:
"31345ac77a963ca8a8ae"
,
35
:
"0268526fb4af5fd83634"
,
36
:
"0dfcfa91821b40ca7f36"
,
37
:
"d9fb4c81ec56e9663dd8"
,
38
:
"9c4d5093f285b54f6078"
,
39
:
"2fb56e4a184c3d60b1a9"
}[
e
]
+
".js"
;
var
o
=
setTimeout
(
d
,
12
e4
);
function
d
(){
t
.
onerror
=
t
.
onload
=
null
,
clearTimeout
(
o
);
var
a
=
f
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
t
.
onerror
=
t
.
onload
=
d
,
r
.
appendChild
(
t
),
c
},
n
.
m
=
e
,
n
.
c
=
c
,
n
.
d
=
function
(
e
,
a
,
c
){
n
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
n
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
n
.
d
(
a
,
"a"
,
a
),
a
},
n
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
n
.
p
=
""
,
n
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
r
,
t
){
for
(
var
o
,
d
,
b
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
d
=
c
[
i
],
f
[
d
]
&&
u
.
push
(
f
[
d
][
0
]),
f
[
d
]
=
0
;
for
(
o
in
r
)
Object
.
prototype
.
hasOwnProperty
.
call
(
r
,
o
)
&&
(
e
[
o
]
=
r
[
o
]);
for
(
a
&&
a
(
c
,
r
,
t
);
u
.
length
;)
u
.
shift
()();
if
(
t
)
for
(
i
=
0
;
i
<
t
.
length
;
i
++
)
b
=
n
(
n
.
s
=
t
[
i
]);
return
b
};
var
c
=
{},
f
=
{
42
:
0
};
function
n
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
f
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
f
.
exports
,
f
,
f
.
exports
,
n
),
f
.
l
=!
0
,
f
.
exports
}
n
.
e
=
function
(
e
){
var
a
=
f
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
n
){
a
=
f
[
e
]
=
[
c
,
n
]});
a
[
2
]
=
c
;
var
r
=
document
.
getElementsByTagName
(
"head"
)[
0
],
t
=
document
.
createElement
(
"script"
);
t
.
type
=
"text/javascript"
,
t
.
charset
=
"utf-8"
,
t
.
async
=!
0
,
t
.
timeout
=
12
e4
,
n
.
nc
&&
t
.
setAttribute
(
"nonce"
,
n
.
nc
),
t
.
src
=
n
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"7a0a0d088fa3293773e4"
,
1
:
"f17ae3475da69e33ed3c"
,
2
:
"3480e89e177929e0e092"
,
3
:
"48f0de846e6ce52fda5a"
,
4
:
"e0e2f883f76d78f28122"
,
5
:
"e0a6a403e3ada07926b2"
,
6
:
"c6ea61099a4a2c21e41e"
,
7
:
"071f9895c1ca3f5b22a5"
,
8
:
"17b5dee9411a58b64eb8"
,
9
:
"6b21b01facf38dc18532"
,
10
:
"aa09fd3470e0fed86271"
,
11
:
"b414f8bc70807458330b"
,
12
:
"fc3a3caaa06755878f03"
,
13
:
"aec72b0e84b7db4b75a5"
,
14
:
"5d414a5ed2c5be78f6e9"
,
15
:
"8c526c387c28b957dc7f"
,
16
:
"fdf8eca9e1a2110a4ef1"
,
17
:
"c8bfd07f0deb24c8006c"
,
18
:
"1c4bde4aae9444be9316"
,
19
:
"5637cca2c4438812cf5b"
,
20
:
"b4839fec18e0d551b1fb"
,
21
:
"e70aae60c5b399d61104"
,
22
:
"16a3985393de88e09f52"
,
23
:
"79d64d46f87a7594223c"
,
24
:
"7157073eeccbe0f0be6e"
,
25
:
"c5752e7d8cca9ae7fae3"
,
26
:
"4984774ab189eee97f72"
,
27
:
"b47b3c16657e21fee47d"
,
28
:
"3ea3a2c328b729e948f7"
,
29
:
"4bf51e792924c3a5130c"
,
30
:
"a05692f1b7030b7c6dd9"
,
31
:
"a9765e0b6fdcd95aa498"
,
32
:
"3cbcf038785e803249d0"
,
33
:
"6455804c94a9c2e46fd3"
,
34
:
"31345ac77a963ca8a8ae"
,
35
:
"0268526fb4af5fd83634"
,
36
:
"0dfcfa91821b40ca7f36"
,
37
:
"d9fb4c81ec56e9663dd8"
,
38
:
"9c4d5093f285b54f6078"
,
39
:
"2fb56e4a184c3d60b1a9"
}[
e
]
+
".js"
;
var
o
=
setTimeout
(
d
,
12
e4
);
function
d
(){
t
.
onerror
=
t
.
onload
=
null
,
clearTimeout
(
o
);
var
a
=
f
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
t
.
onerror
=
t
.
onload
=
d
,
r
.
appendChild
(
t
),
c
},
n
.
m
=
e
,
n
.
c
=
c
,
n
.
d
=
function
(
e
,
a
,
c
){
n
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
n
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
n
.
d
(
a
,
"a"
,
a
),
a
},
n
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
n
.
p
=
""
,
n
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
\ No newline at end of file
src/components/orderTrans/index.vue
View file @
91aa5b1a
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<div
class=
"form-block"
v-if=
"getPhone==0"
>
<div
class=
"form-block"
v-if=
"getPhone==0"
>
<div
class=
"title"
>
课程激活
</div>
<div
class=
"title"
>
课程激活
</div>
<div
class=
"input-block"
>
<div
class=
"input-block"
>
<input
placeholder=
"请输入订单号"
autofocus=
"autofocus"
type=
"number"
pattern=
"[0-9]*"
v-model=
"order_id"
/>
<input
placeholder=
"请输入订单号"
autofocus=
"autofocus"
v-model=
"order_id"
/>
</div>
</div>
<p
class=
"tip"
>
* 订单号请至您购买课程的平台进行查询
</p>
<p
class=
"tip"
>
* 订单号请至您购买课程的平台进行查询
</p>
<div
class=
"input-block"
>
<div
class=
"input-block"
>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<div
class=
"origin btn"
ref=
"btn"
@
click=
"bindMobile"
>
<div
class=
"origin btn"
ref=
"btn"
@
click=
"bindMobile"
>
确定
确定
</div>
</div>
<div
class=
"border btn"
ref=
"btn"
@
click=
"bindMobile"
>
<div
class=
"border btn"
ref=
"btn"
>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -141,9 +141,10 @@
...
@@ -141,9 +141,10 @@
bindMobile
(){
bindMobile
(){
this
.
$sa
.
quick
(
'trackHeatMap'
,
this
.
$refs
.
btn
)
this
.
$sa
.
quick
(
'trackHeatMap'
,
this
.
$refs
.
btn
)
if
(
this
.
flag
){
if
(
this
.
flag
){
this
.
flag
=
false
;
//
this.flag = false;
let
json
=
{}
let
json
=
{}
if
(
this
.
msgCode
===
''
||!
this
.
msgCode
)
{
console
.
log
(
this
.
order_id
)
if
(
this
.
order_id
===
''
||!
this
.
order_id
)
{
Toast
(
'请输入订单号'
);
Toast
(
'请输入订单号'
);
return
false
;
return
false
;
}
}
...
@@ -167,9 +168,11 @@
...
@@ -167,9 +168,11 @@
// json.source = common.getUrlParam().source || this.$route.query.source
// json.source = common.getUrlParam().source || this.$route.query.source
// }
// }
orderTransApi
(
json
,
this
.
order_id
).
then
(
data
=>
{
orderTransApi
(
json
,
this
.
order_id
).
then
(
data
=>
{
this
.
Toast
(
data
)
console
.
log
(
data
)
Toast
(
data
.
data
)
}).
catch
(
res
=>
{
}).
catch
(
res
=>
{
this
.
Toast
(
res
)
console
.
log
(
res
)
Toast
(
res
.
msg
)
})
})
}
}
}
}
...
@@ -203,7 +206,6 @@
...
@@ -203,7 +206,6 @@
.input-block{
.input-block{
width: 249*@toVw;height: 47*@toVw;
width: 249*@toVw;height: 47*@toVw;
line-height:47*@toVw;
line-height:47*@toVw;
text-indent: 5*@toVw;
border-bottom: 1*@toVw solid #FFCFCD;
border-bottom: 1*@toVw solid #FFCFCD;
margin-bottom: 8 * @toVw;
margin-bottom: 8 * @toVw;
position: relative;
position: relative;
...
@@ -232,6 +234,7 @@
...
@@ -232,6 +234,7 @@
background: transparent;
background: transparent;
font-family:PingFangSC-Semibold;
font-family:PingFangSC-Semibold;
// font-weight:500;
// font-weight:500;
text-indent: 5*@toVw;
color: #333333;
color: #333333;
line-height:20*@toVw;
line-height:20*@toVw;
outline: none;
outline: none;
...
...
src/main.js
View file @
91aa5b1a
...
@@ -9,7 +9,7 @@ import VueClipboard from 'vue-clipboard2'
...
@@ -9,7 +9,7 @@ import VueClipboard from 'vue-clipboard2'
import
sa
from
'sa-sdk-javascript'
;
import
sa
from
'sa-sdk-javascript'
;
import
'mint-ui/lib/style.css'
import
'mint-ui/lib/style.css'
import
scroll
from
"./base/scroll/scroll"
import
scroll
from
"./base/scroll/scroll"
import
{
Popup
,
Lazyload
,
Button
,
Dialog
}
from
'vant'
;
import
{
Popup
,
Lazyload
,
Button
,
Dialog
,
Toast
}
from
'vant'
;
// import VConsole from "VConsole"
// import VConsole from "VConsole"
// import Vant from 'vant';
// import Vant from 'vant';
Vue
.
config
.
productionTip
=
false
;
Vue
.
config
.
productionTip
=
false
;
...
@@ -29,7 +29,7 @@ Vue.prototype.$sa.quick('autoTrack')
...
@@ -29,7 +29,7 @@ Vue.prototype.$sa.quick('autoTrack')
Vue
.
use
(
MintUI
);
Vue
.
use
(
MintUI
);
Vue
.
use
(
VueClipboard
);
Vue
.
use
(
VueClipboard
);
// Vue.use(Vant);
// Vue.use(Vant);
Vue
.
use
(
Popup
).
use
(
Lazyload
).
use
(
Button
).
use
(
Dialog
);
Vue
.
use
(
Popup
).
use
(
Lazyload
).
use
(
Button
).
use
(
Dialog
)
.
use
(
Toast
)
;
Vue
.
component
(
'scroll'
,
scroll
);
Vue
.
component
(
'scroll'
,
scroll
);
// const errorHandler = (error, vm)=>{
// const errorHandler = (error, vm)=>{
// console.error('抛出全局异常');
// console.error('抛出全局异常');
...
...
src/service/api.js
View file @
91aa5b1a
...
@@ -147,9 +147,9 @@ export const bindMobileApi = function (json) {
...
@@ -147,9 +147,9 @@ export const bindMobileApi = function (json) {
return
Vue
.
prototype
.
$put
(
bindMobileUrl
,
json
)
return
Vue
.
prototype
.
$put
(
bindMobileUrl
,
json
)
};
};
// 用户通过订单号换课
// 用户通过订单号换课
// const bindMobileUrl = `${_baseUrl}api/client/user/mobile/bind/
`;
const
orderTransUrl
=
`
${
_baseUrl
}
api/client/user/mobile/bind/order_id
`
;
export
const
orderTransApi
=
function
(
json
,
order_id
)
{
export
const
orderTransApi
=
function
(
json
,
order_id
)
{
return
Vue
.
prototype
.
$put
(
bindMobileUrl
+
order_id
,
json
)
return
Vue
.
prototype
.
$put
(
orderTransUrl
,
json
)
};
};
// 获取引导参数
// 获取引导参数
const
getGuideUrl
=
`
${
_baseUrl
}
api/client/user/bootPage`
;
const
getGuideUrl
=
`
${
_baseUrl
}
api/client/user/bootPage`
;
...
...
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