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
6b16f38e
Commit
6b16f38e
authored
Jun 09, 2021
by
linwenqing
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-video' into test
parents
30bf892c
b773d305
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
76 additions
and
42 deletions
+76
-42
.env.js
.env.js
+2
-3
pages.json
src/pages.json
+2
-2
section.vue
src/pages/learn/section.vue
+50
-31
index.vue
src/pages/login/index.vue
+4
-4
detail.vue
src/pages/order/detail.vue
+4
-0
util.js
src/utils/util.js
+14
-2
No files found.
.env.js
View file @
6b16f38e
;
(
function
()
{
let
NODE_ENV
=
'
test
'
;
// dev:开发环境 | test:测试环境 | prod:生产环境
let
NODE_ENV
=
'
prod
'
;
// dev:开发环境 | test:测试环境 | prod:生产环境
let
ENV_VAR
=
null
;
let
VERSION_NUMBER
=
'1.
2.9
'
;
//版本号
let
VERSION_NUMBER
=
'1.
3.1
'
;
//版本号
//小程序是否审核通过,参数配置在ucenter库version表,对应版本号的is_audit设置为1,将显示学习视频
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
if
(
NODE_ENV
===
'dev'
)
{
...
...
src/pages.json
View file @
6b16f38e
...
...
@@ -42,8 +42,8 @@
{
"path"
:
"pages/login/index"
,
"style"
:
{
"navigationBarTitleText"
:
"授权登录"
,
"navigation
Style"
:
"custom"
,
//
"navigationBarTitleText"
:
"授权登录"
,
"navigation
BarBackgroundColor"
:
"#FFFFFF"
,
"disableScroll"
:
true
}
}
...
...
src/pages/learn/section.vue
View file @
6b16f38e
...
...
@@ -33,17 +33,14 @@
</view>
</view>
<u-line
color=
"#F4F5F7"
margin=
"30rpx 0 0 0"
/>
<view
class=
"learn-view-title"
>
目录
</view>
<view
class=
"scroll_box"
>
<scroll-view
scroll-x
@
scroll=
"scroll"
:scroll-left=
"scrollValue"
>
<view
class=
"item_list"
:class=
"
{'item_list_active': item.isActive}"
v-for="(item, index) in sectionList" :key="index" @click="goNext(item)">
<view
class=
""
style=
"font-size: 24rpx;"
>
{{
item
.
title
}}
</view>
<view
class=
""
style=
"font-size: 26rpx;margin-top: 16rpx;"
>
{{
item
.
intro
}}
</view>
</view>
</scroll-view>
<view
class=
"learn-view-title u-margin-bottom-0"
>
目录
</view>
<view
class=
"scroll_box u-padding-bottom-50"
>
<view
class=
"item_list"
:class=
"
{'item_list_active': item.isActive,
'u-margin-left-30':(index%2==1), 'is-learned': item.isLearned
&&
!item.isActive}"
v-for="(item, index) in sectionList" :key="index" @click="goNext(item)">
<view
class=
"item-title-1"
>
{{
item
.
title
}}
</view>
<view
class=
"item-title-2"
>
{{
item
.
intro
}}
</view>
</view>
</view>
</view>
</view>
...
...
@@ -399,7 +396,7 @@
// margin-bottom: 20rpx;
font-size
:
32rpx
;
color
:
#333333
;
height
:
820rpx
;
//
height: 820rpx;
padding
:
0
30rpx
;
.learn-view-title
{
...
...
@@ -478,30 +475,27 @@
background-color
:
blue
;
}
}
.scroll_box
{
width
:
100%
;
height
:
150rpx
;
overflow
:
hidden
;
background
:
#fff
;
margin-top
:
30rpx
;
white-space
:
nowrap
;
}
.scroll_box
scroll-view
{
height
:
100%
;
width
:
auto
;
overflow
:
hidden
;
}
.item_list
{
width
:
28
0rpx
;
width
:
33
0rpx
;
height
:
150rpx
;
margin-right
:
23rpx
;
display
:
inline-block
;
background-color
:
#F4F5F7
;
border-radius
:
12rpx
;
padding
:
20rpx
;
margin-top
:
30rpx
;
border
:
1px
solid
#999999
;
color
:
#666666
;
.item-title-1
{
font-size
:
24rpx
;
color
:
#333333
;
}
.item-title-2
{
font-size
:
26rpx
;
margin-top
:
16rpx
;
color
:
#666666
;
}
}
.item_list_active
{
...
...
@@ -509,6 +503,31 @@
color
:
#2272FF
;
border
:
2rpx
solid
#2272FF
;
box-sizing
:
border-box
;
.item-title-1
{
font-size
:
24rpx
;
color
:
#2272FF
;
}
.item-title-2
{
font-size
:
26rpx
;
margin-top
:
16rpx
;
color
:
#2272FF
;
}
}
.is-learned
{
border
:
1px
solid
#EEEEEE
;
.item-title-1
{
font-size
:
24rpx
;
color
:
#999999
;
}
.item-title-2
{
font-size
:
26rpx
;
margin-top
:
16rpx
;
color
:
#999999
;
}
}
.teacher-intro
{
...
...
src/pages/login/index.vue
View file @
6b16f38e
...
...
@@ -19,7 +19,7 @@
<view
class=
"bind-phone"
>
{{
bindPhone
}}
</view>
<view
class=
"bind-tips"
>
{{
bindTips
}}
</view>
</view>
<u-gap
height=
"
57
0"
></u-gap>
<u-gap
height=
"
48
0"
></u-gap>
<button
class=
"loginBtn"
v-if=
"needAuth"
lang=
"zh_CN"
@
tap=
"getUserProfile"
>
<text
class=
"u-font-32 white"
>
{{
loginTitle
}}
</text>
</button>
...
...
@@ -160,7 +160,7 @@ export default {
login
.
signup
(
params
).
then
(
res
=>
{
uni
.
hideLoading
()
if
(
res
)
{
app
.
setUserData
(
res
.
data
,
that
)
login
.
setUserData
(
res
.
data
,
that
)
app
.
track
(
'signup_login'
,
{
mobile
:
res
.
data
.
mobile
});
app
.
profileSet
(
that
)
app
.
profileAppend
(
that
)
...
...
@@ -171,11 +171,11 @@ export default {
title
:
'授权失败,请重新授权'
,
icon
:
'none'
});
th
is
.
setLoginStatus
(
false
)
th
at
.
setLoginStatus
(
false
)
}
}).
catch
(
res
=>
{
uni
.
hideLoading
()
th
is
.
setLoginStatus
(
false
)
th
at
.
setLoginStatus
(
false
)
})
},
fail
()
{
...
...
src/pages/order/detail.vue
View file @
6b16f38e
...
...
@@ -22,6 +22,10 @@
<text>
合作厂商:
</text>
<text>
{{
order
.
partnerCompanyName
}}
</text>
</view>
<view
class=
"order-cell"
>
<text>
厂商编号:
</text>
<text>
{{
order
.
partnerSerialNumber
}}
</text>
</view>
<view
class=
"order-cell between-cell"
>
<view
class=
"left"
>
<text>
客户信息:
</text>
...
...
src/utils/util.js
View file @
6b16f38e
...
...
@@ -35,6 +35,17 @@ const setOpenid = function (openid) {
}
}
async
function
validImages
(
imgurl
)
{
let
exists
=
false
await
uni
.
getImageInfo
({
src
:
imgurl
,
success
(
res
)
{
exists
=
true
}
})
return
exists
}
/**
* ====图片本地缓存====
* @param {Object} vm 当前vue实例
...
...
@@ -44,10 +55,11 @@ const setOpenid = function (openid) {
const
imageCache
=
function
(
vm
,
src
,
host
)
{
host
=
host
||
process
.
uniEnv
.
qn_base_url
let
image_url
=
host
+
src
return
image_url
// 临时
let
image_name
=
md5Libs
.
md5
(
image_url
)
var
arr
=
Object
.
keys
(
vm
.
vuex_cache
);
if
(
vm
.
vuex_cache
&&
arr
.
length
&&
arr
.
includes
(
image_name
)
)
{
// call_back(vm.vuex_cache[image_name])
if
(
vm
.
vuex_cache
&&
arr
.
length
&&
arr
.
includes
(
image_name
)
&&
validImages
(
vm
.
vuex_cache
[
image_name
]))
{
return
vm
.
vuex_cache
[
image_name
]
}
else
{
// 本地没有缓存 需要下载
...
...
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