Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
Sign in / Register
Toggle navigation
S
site-uniapp
概览
Overview
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
王柯
site-uniapp
Commits
bbe9cfe5
提交
bbe9cfe5
authored
1月 11, 2023
作者:
wk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
流程优化处理
父级
50a85aa6
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
47 行增加
和
27 行删除
+47
-27
pages/gallery/app/addForm/addForm.vue
+1
-1
pages/gallery/app/editAloneForm/editAloneForm.vue
+2
-2
pages/gallery/app/modeFormList/modeFormList.vue
+1
-1
pages/gallery/app/qrcodeList/qrcodeList.vue
+1
-1
pages/gallery/gallery.vue
+2
-3
pages/index/index.vue
+27
-16
pages/login/login/login.vue
+1
-1
pages/login/register/register.vue
+12
-2
没有找到文件。
pages/gallery/app/addForm/addForm.vue
View file @
bbe9cfe5
...
...
@@ -480,7 +480,7 @@
delta
:
1
})
uni
.
navigateTo
({
url
:
`/pages/gallery/formDetail
Page/formDetailPage
?obj_no=
${
this
.
objNo
}
`
url
:
`/pages/gallery/formDetail
/formDetail
?obj_no=
${
this
.
objNo
}
`
})
},
computeClick
:
function
(
index
)
{
...
...
pages/gallery/app/editAloneForm/editAloneForm.vue
View file @
bbe9cfe5
...
...
@@ -67,7 +67,7 @@
<view
class=
"model-out-box"
>
<view
class=
"text-black-normal"
>
提示
</view>
<view
class=
"model-content"
>
<image
src=
"../../static/successful.png"
style=
"width: 100rpx;height: 100rpx;"
></image>
<image
src=
"../../
../../
static/successful.png"
style=
"width: 100rpx;height: 100rpx;"
></image>
</view>
<view
class=
"text-black-normal"
style=
"margin-bottom: 32rpx;"
>
提交成功
</view>
<view
style=
"display: flex;flex-direction: row;width: 100%;"
>
...
...
@@ -412,7 +412,7 @@
delta
:
1
})
uni
.
navigateTo
({
url
:
`/pages/gallery/formDetail
Page/formDetailPage
?obj_no=
${
this
.
objNo
}
`
url
:
`/pages/gallery/formDetail
/formDetail
?obj_no=
${
this
.
objNo
}
`
})
},
computeClick
:
function
(
index
)
{
...
...
pages/gallery/app/modeFormList/modeFormList.vue
View file @
bbe9cfe5
...
...
@@ -623,7 +623,7 @@
}
if
(
this
.
businessType
==
2
)
{
uni
.
navigateTo
({
url
:
`/pages/gallery/formDetail
Page/formDetailPage
?obj_no=
${
form
.
obj_no
}
`
url
:
`/pages/gallery/formDetail
/formDetail
?obj_no=
${
form
.
obj_no
}
`
})
}
else
if
(
this
.
businessType
==
3
||
this
.
businessType
==
4
)
{
//判断是否可编辑 未结束前的执行人可编辑
...
...
pages/gallery/app/qrcodeList/qrcodeList.vue
View file @
bbe9cfe5
...
...
@@ -25,7 +25,7 @@
</
template
>
<
script
>
import
uQRCode
from
"../../../../com
ponents/tki-qrcode/
qrcode.js"
import
uQRCode
from
"../../../../com
mon/Sansnn-uQRCode/u
qrcode.js"
export
default
{
data
()
{
return
{
...
...
pages/gallery/gallery.vue
View file @
bbe9cfe5
...
...
@@ -475,13 +475,12 @@
background
:
#fff
;
display
:
flex
;
margin
:
0
30
rpx
;
padding
:
0
30
rpx
;
flex-direction
:
row
;
align-items
:
center
;
image
{
width
:
50
rpx
;
margin
-right
:
20
rpx
;
margin
:
0
20
rpx
;
height
:
22px
;
}
...
...
@@ -495,7 +494,7 @@
.rq-image
{
width
:
24
rpx
;
height
:
16px
;
margin
:
0
10
rpx
0
3
0
rpx
;
margin
:
0
2
0
rpx
;
}
}
...
...
pages/index/index.vue
View file @
bbe9cfe5
...
...
@@ -84,7 +84,8 @@
<swiper
circular=
"true"
:autoplay=
"true"
class=
"swiper"
:vertical=
"true"
>
<swiper-item
v-for=
"(item,index) in changeRecords"
:key=
"index"
class=
"item"
>
<view
class=
"record"
>
{{
dealTimeDiff
(
item
.
created_at
)
}}
前
{{
item
.
ex_worker_name
}}
兑换了
{{
item
.
goods_name
}}
<span
class=
"span"
>
{{
dealTimeDiff
(
item
.
created_at
)
}}
</span>
前
{{
item
.
ex_worker_name
}}
兑换了
{{
item
.
goods_name
}}
</view>
</swiper-item>
</swiper>
...
...
@@ -217,7 +218,7 @@
},
fail
()
{
uni
.
redirectTo
({
url
:
"/pages/login/
login/l
ogin"
url
:
"/pages/login/
authLogin/authL
ogin"
})
}
})
...
...
@@ -248,13 +249,11 @@
uni
.
setStorageSync
(
"org_name"
,
this
.
project
.
project_name
)
uni
.
setStorageSync
(
"org_id"
,
this
.
project
.
id
)
uni
.
setStorageSync
(
"project_id"
,
this
.
project
.
project_id
)
this
.
initData
()
}
}
if
(
this
.
role
==
'WORKER'
)
{
this
.
getGoodsList
()
this
.
getMyScore
()
this
.
getChangeRecord
()
}
},
(
err
)
=>
{
this
.
$toast
.
showToast
(
err
.
msg
)
})
},
getGoodsList
()
{
...
...
@@ -279,6 +278,8 @@
}
})
}
},
(
err
)
=>
{
this
.
$toast
.
showToast
(
err
.
msg
)
})
},
add0
(
text
)
{
...
...
@@ -358,7 +359,9 @@
}
}).
then
((
result
)
=>
{
if
(
result
.
code
==
0
)
{
if
(
result
.
data
.
list
.
length
>
0
)
{
this
.
banners
=
result
.
data
.
list
}
}
else
{
this
.
$toast
.
showToast
(
result
.
msg
)
}
...
...
@@ -510,6 +513,16 @@
if
(
!
this
.
project_id
)
{
this
.
loadProject
()
}
else
{
this
.
initData
()
}
}
else
{
this
.
$toast
.
showToast
(
result
.
msg
)
}
},
(
err
)
=>
{
this
.
$toast
.
showToast
(
err
.
msg
)
})
},
initData
()
{
if
(
this
.
role
==
'WORKER'
)
{
this
.
project_id
=
this
.
userInfo
.
worker
.
projectId
this
.
getGoodsList
()
...
...
@@ -520,17 +533,10 @@
this
.
city
=
this
.
userInfo
.
currentProject
.
city
this
.
getWeather
()
}
}
if
(
this
.
role
!=
'VISITOR'
)
{
this
.
getNews
()
this
.
getBanners
()
}
}
else
{
this
.
$toast
.
showToast
(
result
.
msg
)
}
},
(
err
)
=>
{
this
.
$toast
.
showToast
(
err
.
msg
)
})
},
toLogin
:
function
()
{
uni
.
navigateTo
({
...
...
@@ -845,7 +851,7 @@
display
:
flex
;
flex-direction
:
row
;
border-radius
:
30
rpx
;
margin
:
30
rpx
30
rpx
20
rpx
30
rpx
;
margin
:
30
rpx
30
rpx
0
30
rpx
;
background-color
:
#FFFFFF
;
padding
:
16
rpx
30
rpx
;
align-items
:
center
;
...
...
@@ -900,7 +906,7 @@
padding
:
30
rpx
;
background-color
:
#FFFFFF
;
border-radius
:
30
rpx
;
margin
:
0
30
rpx
;
margin
:
30
rpx
30
rpx
0
30
rpx
;
.tab-content
{
display
:
flex
;
...
...
@@ -1197,6 +1203,10 @@
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
font-size
:
24
rpx
;
color
:
#333333
;
.span
{
font-size
:
24
rpx
;
color
:
#FFAA44
;
}
}
...
...
@@ -1204,4 +1214,5 @@
}
}
}
}
</
style
>
pages/login/login/login.vue
View file @
bbe9cfe5
...
...
@@ -71,7 +71,7 @@
},
methods
:
{
register
:
function
()
{
uni
.
redirect
To
({
uni
.
navigate
To
({
url
:
"/pages/login/register/register"
})
},
...
...
pages/login/register/register.vue
View file @
bbe9cfe5
...
...
@@ -136,6 +136,8 @@
}
else
{
this
.
$toast
.
showToast
(
result
.
msg
)
}
},
(
err
)
=>
{
this
.
$toast
.
showToast
(
err
.
msg
)
})
},
login
:
function
(
account
,
password
)
{
...
...
@@ -173,6 +175,8 @@
icon
:
'none'
})
}
},
(
err
)
=>
{
this
.
$toast
.
showToast
(
err
.
msg
)
})
},
bindLogin
(
account
,
password
)
{
...
...
@@ -206,6 +210,8 @@
icon
:
'none'
})
}
},
(
err
)
=>
{
this
.
$toast
.
showToast
(
err
.
msg
)
})
},
get_key
(
data
)
{
...
...
@@ -229,6 +235,8 @@
icon
:
'none'
})
}
},
(
err
)
=>
{
this
.
$toast
.
showToast
(
err
.
msg
)
})
},
toLogin
:
function
()
{
...
...
@@ -237,8 +245,8 @@
url
:
"/pages/login/bindLogin/bindLogin?unique_token="
+
his
.
unique_token
})
}
else
{
uni
.
redirectTo
({
url
:
"/pages/login/login/login"
uni
.
navigateBack
({
delta
:
1
})
}
},
...
...
@@ -277,6 +285,8 @@
icon
:
'none'
})
}
},
(
err
)
=>
{
this
.
$toast
.
showToast
(
err
.
msg
)
})
},
timeDown
(
num
)
{
...
...
Write
Preview
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
Please
register
or
sign in
to comment