Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_vedio
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
android
uniapp_vedio
Commits
75dfbac4
Commit
75dfbac4
authored
Jul 17, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
7d4fae55
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
75 additions
and
61 deletions
+75
-61
system-info-mixin.js
vedio/common/mixins/system-info-mixin.js
+1
-1
userServices.js
vedio/common/services/userServices.js
+1
-1
c-login.vue
vedio/components/c-login/c-login.vue
+0
-5
coin-popup.vue
vedio/components/coin-popup/coin-popup.vue
+1
-1
kefu-popup.vue
vedio/components/kefu-popup/kefu-popup.vue
+1
-1
warehousetemp.vue
vedio/components/warehouse/warehousetemp.vue
+13
-9
home.vue
vedio/pages/home.vue
+31
-13
loading.vue
vedio/pages/loading.vue
+27
-30
No files found.
vedio/common/mixins/system-info-mixin.js
View file @
75dfbac4
...
@@ -17,7 +17,7 @@ var systemInfoMixin = {
...
@@ -17,7 +17,7 @@ var systemInfoMixin = {
}
}
},
},
mounted
()
{
mounted
()
{
const
systemInfo
=
com
.
mingce
.
wxhelibook
getSystemInfoSync
();
const
systemInfo
=
wx
.
getSystemInfoSync
();
this
.
sdkVersion
=
systemInfo
.
hostSDKVersion
;
this
.
sdkVersion
=
systemInfo
.
hostSDKVersion
;
this
.
windowWidth
=
this
.
dataCheck
(
systemInfo
.
windowWidth
);
this
.
windowWidth
=
this
.
dataCheck
(
systemInfo
.
windowWidth
);
this
.
windowHeight
=
this
.
dataCheck
(
systemInfo
.
windowHeight
);
this
.
windowHeight
=
this
.
dataCheck
(
systemInfo
.
windowHeight
);
...
...
vedio/common/services/userServices.js
View file @
75dfbac4
...
@@ -147,7 +147,7 @@ function postPhone(data, callback) {
...
@@ -147,7 +147,7 @@ function postPhone(data, callback) {
// 请求token
// 请求token
function
requestToken
(
data
,
callback
)
{
function
requestToken
(
data
,
callback
)
{
let
url
=
`
${
config
[
"BASE_URL"
]}
/user/
ttL
ogin`
;
let
url
=
`
${
config
[
"BASE_URL"
]}
/user/
wechatl
ogin`
;
let
header
=
{
let
header
=
{
pkgName
:
PAKEAGE_NAME
,
pkgName
:
PAKEAGE_NAME
,
version
:
VERSION_CODE
,
version
:
VERSION_CODE
,
...
...
vedio/components/c-login/c-login.vue
View file @
75dfbac4
...
@@ -139,15 +139,10 @@
...
@@ -139,15 +139,10 @@
login
({
login
({
vedioId
:
bookId
,
vedioId
:
bookId
,
code
:
res
.
code
,
code
:
res
.
code
,
anonymousCode
:
res
.
anonymousCode
,
thirdParam
:
thirdParam
thirdParam
:
thirdParam
})
})
},
},
fail
(
res
)
{
fail
(
res
)
{
// 登录授权失败
uni
.
navigateTo
({
url
:
`/pages/warehouse/warehousetemp`
,
})
},
},
});
});
...
...
vedio/components/coin-popup/coin-popup.vue
View file @
75dfbac4
...
@@ -198,7 +198,7 @@
...
@@ -198,7 +198,7 @@
signType
:
wxParams
.
signType
,
signType
:
wxParams
.
signType
,
paySign
:
wxParams
.
paySign
,
paySign
:
wxParams
.
paySign
,
success
(
res
)
{
success
(
res
)
{
that
.
queryOrderStatus
(
largeType
,
wx
Params
.
sigData
.
outTradeNo
);
that
.
queryOrderStatus
(
largeType
,
wx
Data
.
tidStr
);
},
},
fail
(
res
)
{}
fail
(
res
)
{}
})
})
...
...
vedio/components/kefu-popup/kefu-popup.vue
View file @
75dfbac4
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
margin-bottom: 30rpx;"
src=
"https://mints-web.oss-cn-beijing.aliyuncs.com/images/ic_close_white.png"
></image>
margin-bottom: 30rpx;"
src=
"https://mints-web.oss-cn-beijing.aliyuncs.com/images/ic_close_white.png"
></image>
<view
class=
"content"
>
<view
class=
"content"
>
<button
class=
"button1"
type=
"default"
size=
"default"
@
click=
"tapMakePhoneCall"
>
客服电话
</button>
<button
class=
"button1"
type=
"default"
size=
"default"
@
click=
"tapMakePhoneCall"
>
客服电话
</button>
<
button
class=
"button2"
open-type=
"im"
data-im-id=
"93264117800"
>
客服在线
</button
>
<
!--
<button
class=
"button2"
open-type=
"im"
data-im-id=
"93264117800"
>
客服在线
</button>
--
>
</view>
</view>
</view>
</view>
</uni-popup>
</uni-popup>
...
...
vedio/components/warehouse/warehousetemp.vue
View file @
75dfbac4
...
@@ -55,13 +55,6 @@
...
@@ -55,13 +55,6 @@
},
},
onLoad
()
{
onLoad
()
{
this
.
getCategoryData
();
watchUserInfoChange
((
info
)
=>
{
this
.
userInfo
=
info
.
userInfo
},
this
);
},
onShow
()
{
this
.
refreshUserData
();
},
},
computed
:
{
computed
:
{
showEmpty
:
function
()
{
showEmpty
:
function
()
{
...
@@ -97,6 +90,17 @@
...
@@ -97,6 +90,17 @@
}
}
},
},
methods
:
{
methods
:
{
show
(){
console
.
log
(
"123123123"
)
this
.
getCategoryData
();
watchUserInfoChange
((
info
)
=>
{
this
.
userInfo
=
info
.
userInfo
},
this
);
this
.
refreshUserData
();
},
hide
()
{
},
readyCategory
()
{
readyCategory
()
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
initHeight
()
this
.
initHeight
()
...
...
vedio/pages/home.vue
View file @
75dfbac4
<
template
>
<
template
>
<view
class=
"body"
>
<view
v-if=
"localActiviteFlag==1"
class=
"body"
>
<view
style=
"height: 92%;"
>
<view
style=
"height: 92%;"
>
<bookshelf
v-show=
"currentPage==0"
ref=
"index"
/>
<bookshelf
v-show=
"currentPage==0"
ref=
"index"
/>
<warehouse
v-show=
"currentPage==1"
ref=
"recommend"
/>
<warehouse
v-show=
"currentPage==1"
ref=
"recommend"
/>
...
@@ -36,6 +36,12 @@
...
@@ -36,6 +36,12 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
v-else
class=
"body"
>
<view
style=
"height: 95%;"
>
<warehouse
v-show=
"currentPage==1"
ref=
"recommend"
/>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -60,11 +66,14 @@
...
@@ -60,11 +66,14 @@
},
},
data
()
{
data
()
{
return
{
return
{
currentPage
:
1
currentPage
:
1
,
localActiviteFlag
:
0
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
let
index
=
options
.
index
??
''
let
index
=
options
.
index
??
''
this
.
localActiviteFlag
=
options
.
activiteFlag
;
console
.
log
(
"activiteFlag===="
,
options
.
activiteFlag
)
if
(
index
!=
''
&&
index
!=
undefined
)
{
if
(
index
!=
''
&&
index
!=
undefined
)
{
this
.
currentPage
=
index
this
.
currentPage
=
index
}
}
...
@@ -87,10 +96,13 @@
...
@@ -87,10 +96,13 @@
// 渲染完成 初始化首页数据
// 渲染完成 初始化首页数据
this
.
loadComponentData
();
this
.
loadComponentData
();
if
(
this
.
localActiviteFlag
==
1
)
{
let
that
=
this
let
that
=
this
uni
.
$on
(
'goWareHouse'
,
function
(
data
)
{
uni
.
$on
(
'goWareHouse'
,
function
(
data
)
{
that
.
tabChange
(
1
)
that
.
tabChange
(
1
)
})
})
}
},
},
methods
:
{
methods
:
{
tabChange
(
index
)
{
tabChange
(
index
)
{
...
@@ -99,6 +111,7 @@
...
@@ -99,6 +111,7 @@
this
.
loadComponentData
();
this
.
loadComponentData
();
},
},
loadComponentData
()
{
loadComponentData
()
{
if
(
this
.
localActiviteFlag
==
1
)
{
if
(
this
.
currentPage
==
0
)
{
if
(
this
.
currentPage
==
0
)
{
this
.
$refs
.
index
.
show
();
this
.
$refs
.
index
.
show
();
}
else
if
(
this
.
currentPage
==
1
)
{
}
else
if
(
this
.
currentPage
==
1
)
{
...
@@ -106,6 +119,11 @@
...
@@ -106,6 +119,11 @@
}
else
if
(
this
.
currentPage
==
2
)
{
}
else
if
(
this
.
currentPage
==
2
)
{
this
.
$refs
.
user
.
show
();
this
.
$refs
.
user
.
show
();
}
}
}
else
{
if
(
this
.
currentPage
==
1
)
{
this
.
$refs
.
recommend
.
show
();
}
}
}
}
}
}
}
}
...
...
vedio/pages/loading.vue
View file @
75dfbac4
...
@@ -90,16 +90,13 @@
...
@@ -90,16 +90,13 @@
app
.
globalData
.
userId
=
data
.
idcode
;
app
.
globalData
.
userId
=
data
.
idcode
;
saveToken
(
data
.
token
)
saveToken
(
data
.
token
)
setTimeout
(()
=>
{
setTimeout
(()
=>
{
redirectTo
(
'home'
);
// redirectTo('home?activiteFlag='+data.activiteFlag);
redirectTo
(
'home?activiteFlag='
+
0
);
},
1000
);
},
1000
);
}
}
});
});
},
},
fail
:
function
(
err
)
{
fail
:
function
(
err
)
{
// 登录授权失败
uni
.
navigateTo
({
url
:
`/pages/warehouse/warehousetemp`
,
})
}
}
});
});
}
}
...
...
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