Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shop_mobile_uni
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
郑秀明
shop_mobile_uni
Commits
e621837e
Commit
e621837e
authored
Feb 24, 2020
by
王建威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增地区页
parent
7038bfd5
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
138 additions
and
37 deletions
+138
-37
manifest.json
manifest.json
+1
-1
package.json
package.json
+1
-1
Category.vue
pages/category/Category.vue
+10
-3
Detail.vue
pages/detail/Detail.vue
+37
-28
fail.vue
pages/fail.vue
+77
-0
index.vue
pages/index/index.vue
+12
-4
chahua_jieshu@2x.png
static/common/chahua_jieshu@2x.png
+0
-0
No files found.
manifest.json
View file @
e621837e
...
...
@@ -89,7 +89,7 @@
"disableHostCheck"
:
true
,
"proxy"
:
{
"/uni/api"
:
{
"target"
:
"http://192.168.
50.1
33:6564/"
,
"target"
:
"http://192.168.
124.
33:6564/"
,
"changeOrigin"
:
true
,
"secure"
:
false
,
"pathRewrite"
:{
"^/uni/api"
:
"api"
}
...
...
package.json
View file @
e621837e
{
"name"
:
"shop_mobile_uni"
,
"version"
:
"1.0.
0
"
,
"version"
:
"1.0.
1
"
,
"description"
:
"商城多端统一系统"
,
"main"
:
"main.js"
,
"scripts"
:
{
...
...
pages/category/Category.vue
View file @
e621837e
<
template
>
<view>
<view
v-if=
"isLogin && !is_city"
>
<Fail
/>
</view>
<view
v-else
>
<view
class=
"search_box"
>
<uni-icons
type=
"back"
size=
"30"
:style=
"
{'position':'relative','top': '-2px'}" @click.native="goBack()">
</uni-icons>
<i
@
click=
"search"
></i>
...
...
@@ -38,6 +41,7 @@
import
uniIcons
from
"@/components/uni-icons/uni-icons.vue"
;
import
uniPagination
from
'@/components/uni-pagination/uni-pagination.vue'
;
import
BottomBar
from
"@/components/BottomBar/BottomBar.vue"
;
import
Fail
from
'../fail.vue'
;
import
{
php
,
go
}
from
'../../common/host.js'
;
export
default
{
data
()
{
...
...
@@ -53,7 +57,8 @@
tabIndex
:
-
1
,
params
:
{},
keyword
:
''
,
isLogin
:
0
isLogin
:
0
,
is_city
:
0
}
},
onLoad
(
option
)
{
...
...
@@ -76,7 +81,8 @@
components
:
{
uniIcons
,
uniPagination
,
BottomBar
BottomBar
,
Fail
},
methods
:
{
goBack
()
{
...
...
@@ -95,6 +101,7 @@
this
.
cate_list
=
credit_cates_list
;
this
.
page
=
page
;
this
.
isLogin
=
res
.
data
.
login_flg
;
this
.
is_city
=
res
.
data
.
city_flg
;
}
});
},
...
...
pages/detail/Detail.vue
View file @
e621837e
<
template
>
<view>
<view
v-if=
"isLogin && !is_city"
>
<Fail
/>
</view>
<view
v-else
>
<view
class=
"search_box"
>
<uni-icons
type=
"back"
size=
"30"
:style=
"
{'position':'relative','top': '-2px'}" @click.native="goBack()">
</uni-icons>
<i
@
click=
"search"
></i>
...
...
@@ -32,12 +36,14 @@
<view
class=
"nodata"
v-else
>
暂无此类商品
</view>
<BottomBar
/>
</view>
</view>
</
template
>
<
script
>
import
uniIcons
from
"@/components/uni-icons/uni-icons.vue"
;
import
uniPagination
from
'@/components/uni-pagination/uni-pagination.vue'
;
import
BottomBar
from
"@/components/BottomBar/BottomBar.vue"
;
import
Fail
from
'../fail.vue'
;
import
{
php
,
go
}
from
'../../common/host.js'
;
export
default
{
data
()
{
...
...
@@ -52,7 +58,8 @@
cate_id_1
:
''
,
tabIndex
:
-
1
,
keyword
:
''
,
isLogin
:
0
isLogin
:
0
,
is_city
:
0
}
},
onLoad
(
option
)
{
...
...
@@ -74,7 +81,8 @@
components
:
{
uniIcons
,
uniPagination
,
BottomBar
BottomBar
,
Fail
},
methods
:
{
goBack
()
{
...
...
@@ -93,6 +101,7 @@
this
.
cate_list
=
credit_cates_list
;
this
.
page
=
page
;
this
.
isLogin
=
res
.
data
.
login_flg
;
this
.
is_city
=
res
.
data
.
city_flg
;
}
});
},
...
...
pages/fail.vue
0 → 100644
View file @
e621837e
<
template
>
<view
class=
"fail_content"
>
<view
class=
"main"
>
<image
src=
"../static/common/chahua_jieshu@2x.png"
></image>
<text
class=
"fail_text"
>
非常抱歉, 该地区暂未支持白条服务
</text>
<text
class=
"return_btn"
@
click=
"Return"
>
(
{{
seconds
}}
)返回首页
</text>
</view>
</view>
</
template
>
<
script
>
import
{
php
}
from
'../common/host.js'
;
export
default
{
data
()
{
return
{
seconds
:
3
}
},
mounted
()
{
let
timer
=
setInterval
(()
=>
{
this
.
seconds
-=
1
;
if
(
this
.
seconds
==
0
)
{
clearInterval
(
timer
);
window
.
location
.
href
=
php
;
}
},
1000
);
},
methods
:
{
Return
()
{
window
.
location
.
href
=
php
;
}
}
}
</
script
>
<
style
lang=
"less"
scoped
>
.fail_content {
width: 100%;
height: 100vh;
background: #FFF8CA;
padding-top: 0.5px;
.main {
width: 93.6%;
height: 83.2%;
margin: 24rpx auto 0;
background:linear-gradient(180deg,rgba(255,249,213,1) 0%,rgba(255,253,240,1) 100%);
box-shadow:0px 2px 10px 0px rgba(255,205,0,0.5);
image {
display: block;
margin: 160rpx auto 0;
width: 280rpx;
height: 192rpx;
}
.fail_text {
display: block;
text-align: center;
font-size: 32rpx;
line-height: 44rpx;
font-family:PingFangSC-Medium,PingFang SC;
font-weight:500;
margin-top: 48rpx;
color: #212121;
}
.return_btn {
display: block;
width: 280rpx;
height: 80rpx;
border-radius: 40rpx;
background-color: #FFDB00;
color: #000;
text-align: center;
line-height: 80rpx;
margin: 48rpx auto 0;
}
}
}
</
style
>
index/index.vue
→
pages/
index/index.vue
View file @
e621837e
<
template
>
<view>
<view
v-if=
"isLogin && !is_city"
>
<Fail
/>
</view>
<view
v-else
>
<view
class=
"content"
>
<view
class=
"flex"
>
<i
class=
"logo"
></i>
...
...
@@ -86,12 +89,14 @@
<
BottomBar
/>
<
/view
>
<
/view>
<
/template>
<
script
>
import
{
php
,
go
}
from
'../../common/host.js'
;
import
uniIcons
from
"@/components/uni-icons/uni-icons.vue"
;
import
BottomBar
from
"@/components/BottomBar/BottomBar.vue"
;
import
Fail
from
'../fail.vue'
;
export
default
{
data
()
{
return
{
...
...
@@ -103,7 +108,8 @@
current
:
0
,
keyword
:
''
,
isLogin
:
0
,
credit_flg
:
0
credit_flg
:
0
,
is_city
:
0
}
}
,
onLoad
()
{
...
...
@@ -111,7 +117,8 @@
}
,
components
:
{
uniIcons
,
BottomBar
BottomBar
,
Fail
}
,
methods
:
{
// changeTab(index)
{
...
...
@@ -143,6 +150,7 @@
this
.
credit_goods_list
=
res
.
data
.
data
.
credit_goods_list
;
this
.
isLogin
=
res
.
data
.
login_flg
;
this
.
credit_flg
=
res
.
data
.
credit_flg
;
this
.
is_city
=
res
.
data
.
city_flag
;
if
(
res
.
data
.
data
.
customer_name
)
{
this
.
customer_name
=
res
.
data
.
data
.
customer_name
;
}
...
...
static/common/chahua_jieshu@2x.png
0 → 100755
View file @
e621837e
8.27 KB
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