Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
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
和慭琛
take_order
Commits
8beeb8ea
Commit
8beeb8ea
authored
Mar 30, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加载中替换为uview
parent
3124cce8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
29 deletions
+15
-29
index.vue
take-order/pages/photo/index.vue
+0
-2
list.vue
take-order/pages/photo/list.vue
+7
-15
setting.vue
take-order/pages/photo/setting.vue
+8
-12
No files found.
take-order/pages/photo/index.vue
View file @
8beeb8ea
...
@@ -74,8 +74,6 @@
...
@@ -74,8 +74,6 @@
methods
:
{
methods
:
{
getRelationDictionaryV2
:
function
()
{
getRelationDictionaryV2
:
function
()
{
this
.
$u
.
cloudApi
.
getRelationDictionaryV2
().
then
(
res
=>
{
this
.
$u
.
cloudApi
.
getRelationDictionaryV2
().
then
(
res
=>
{
console
.
log
(
'V2:'
)
console
.
log
(
res
)
if
(
res
&&
res
.
result
)
{
if
(
res
&&
res
.
result
)
{
this
.
classifyList
=
res
.
result
this
.
classifyList
=
res
.
result
this
.
param
.
classifyId
=
res
.
result
[
0
].
id
this
.
param
.
classifyId
=
res
.
result
[
0
].
id
...
...
take-order/pages/photo/list.vue
View file @
8beeb8ea
<
template
>
<
template
>
<view
class=
"backView"
>
<view
class=
"backView"
>
<u-loading
style=
"position: absolute;top: 50%;"
:show=
"loading"
size=
"36"
mode=
"flower"
></u-loading>
<view
class=
"topView"
>
<view
class=
"topView"
>
<view
:class=
"['topItemView',
{'active':activeTop===ikey}]" @click="handleTopItemChange(ikey,item)" v-for="(item,ikey) in dataList" :key="ikey">
<view
:class=
"['topItemView',
{'active':activeTop===ikey}]" @click="handleTopItemChange(ikey,item)" v-for="(item,ikey) in dataList" :key="ikey">
<text
<text
...
@@ -41,7 +42,7 @@
...
@@ -41,7 +42,7 @@
brand
:
''
,
brand
:
''
,
brandId
:
''
,
brandId
:
''
,
dataList
:
[],
dataList
:
[],
loading
:
true
}
}
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
...
@@ -70,25 +71,17 @@
...
@@ -70,25 +71,17 @@
},
},
onShow
()
{
console
.
log
(
'onShow 里的rightList:'
)
console
.
log
(
this
.
rightList
)
},
methods
:
{
methods
:
{
getListData
:
function
()
{
getListData
:
function
()
{
uni
.
showLoading
()
this
.
loading
=
true
let
that
=
this
let
that
=
this
this
.
$u
.
cloudApi
.
getGroupStandardV2
({
this
.
$u
.
cloudApi
.
getGroupStandardV2
({
'token'
:
getApp
().
globalData
.
token
,
'token'
:
getApp
().
globalData
.
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
}).
then
(
res
=>
{
}).
then
(
res
=>
{
console
.
log
(
'获取规范标准数据:'
)
this
.
loading
=
false
console
.
log
(
res
)
uni
.
hideLoading
()
if
(
res
&&
res
.
result
)
{
if
(
res
&&
res
.
result
)
{
that
.
handleData
(
res
.
result
)
that
.
handleData
(
res
.
result
)
}
}
...
@@ -127,7 +120,6 @@
...
@@ -127,7 +120,6 @@
//右侧点击
//右侧点击
rightItemClick
:
function
(
item
,
ikey
)
{
rightItemClick
:
function
(
item
,
ikey
)
{
console
.
log
(
item
,
'item'
)
const
photo
=
getApp
().
globalData
.
photo
const
photo
=
getApp
().
globalData
.
photo
photo
.
currentItem
=
item
photo
.
currentItem
=
item
uni
.
navigateTo
({
uni
.
navigateTo
({
...
...
take-order/pages/photo/setting.vue
View file @
8beeb8ea
<
template
>
<
template
>
<view
class=
"backView"
>
<view
class=
"backView"
>
<u-loading
style=
"position: absolute;top: 50%;"
:show=
"loading"
size=
"36"
mode=
"flower"
></u-loading>
<view
class=
"itemView firstItem"
>
<view
class=
"itemView firstItem"
>
<view
class=
"itemTitleView"
>
<view
class=
"itemTitleView"
>
<text
class=
"itemTitle"
>
保存原图
</text>
<text
class=
"itemTitle"
>
保存原图
</text>
...
@@ -79,7 +80,8 @@
...
@@ -79,7 +80,8 @@
},
},
editingItem
:
{},
editingItem
:
{},
showTipLeft
:
false
,
showTipLeft
:
false
,
showTipRight
:
false
showTipRight
:
false
,
loading
:
true
}
}
},
},
computed
:
{
computed
:
{
...
@@ -109,7 +111,7 @@
...
@@ -109,7 +111,7 @@
getItemList
:
function
()
{
getItemList
:
function
()
{
// this.systemId = '79550af260555cc20afb34156c94b32c' // 测试数据
// this.systemId = '79550af260555cc20afb34156c94b32c' // 测试数据
uni
.
showLoading
();
this
.
loading
=
true
this
.
$u
.
cloudApi
.
getUserWatermark
({
this
.
$u
.
cloudApi
.
getUserWatermark
({
'token'
:
getApp
().
globalData
.
token
,
'token'
:
getApp
().
globalData
.
token
,
'system_id'
:
this
.
systemId
'system_id'
:
this
.
systemId
...
@@ -118,14 +120,11 @@
...
@@ -118,14 +120,11 @@
if
(
res
&&
res
.
result
)
{
if
(
res
&&
res
.
result
)
{
this
.
result
=
res
.
result
this
.
result
=
res
.
result
}
}
this
.
$nextTick
(
function
()
{
this
.
loading
=
false
uni
.
hideLoading
();
})
})
})
},
},
saveUserWatermark
:
function
()
{
saveUserWatermark
:
function
()
{
uni
.
showLoading
();
this
.
loading
=
true
this
.
$u
.
cloudApi
.
saveUserWatermark
({
this
.
$u
.
cloudApi
.
saveUserWatermark
({
'token'
:
getApp
().
globalData
.
token
,
'token'
:
getApp
().
globalData
.
token
,
'watermark'
:
this
.
result
'watermark'
:
this
.
result
...
@@ -135,10 +134,7 @@
...
@@ -135,10 +134,7 @@
photo
.
waterSetting
=
this
.
result
photo
.
waterSetting
=
this
.
result
}
}
this
.
$nextTick
(
function
()
{
this
.
loading
=
false
uni
.
hideLoading
();
})
})
})
},
},
...
...
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