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
509eb701
Commit
509eb701
authored
Mar 06, 2020
by
郑秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改登录显示价格
parent
b2195edd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
App.vue
App.vue
+8
-1
manifest.json
manifest.json
+1
-1
search.vue
pages/search/search.vue
+5
-3
No files found.
App.vue
View file @
509eb701
...
@@ -14,5 +14,12 @@
...
@@ -14,5 +14,12 @@
</
script
>
</
script
>
<
style
>
<
style
>
/*每个页面公共css */
/*每个页面公共css */
.unlogin_price
{
font-size
:
26
rpx
;
color
:
#999999
;
height
:
44
rpx
;
line-height
:
44
rpx
;
text-align
:
left
;
}
</
style
>
</
style
>
manifest.json
View file @
509eb701
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
"disableHostCheck"
:
true
,
"disableHostCheck"
:
true
,
"proxy"
:
{
"proxy"
:
{
"/uni/api"
:
{
"/uni/api"
:
{
"target"
:
"http://192.168.
50.133:6564
/"
,
"target"
:
"http://192.168.
1.2:9093
/"
,
"changeOrigin"
:
true
,
"changeOrigin"
:
true
,
"secure"
:
false
,
"secure"
:
false
,
"pathRewrite"
:
{
"pathRewrite"
:
{
...
...
pages/search/search.vue
View file @
509eb701
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<view
class=
"search-condition_item"
:class=
"
{current: param.label === 'default'}" @click="tabClick('default')">
<view
class=
"search-condition_item"
:class=
"
{current: param.label === 'default'}" @click="tabClick('default')">
<text>
综合排序
</text>
<text>
综合排序
</text>
<view
class=
"icon_tips"
>
<view
class=
"icon_tips"
>
<text
:class=
"
{active: param.order === 'asc'
&&
param.label === 'default'}" class="yticon
xia
">
</text>
<text
:class=
"
{active: param.order === 'asc'
&&
param.label === 'default'}" class="yticon">
</text>
<text
:class=
"
{active: param.order === 'desc'
&&
param.label === 'default'}" class="yticon">
</text>
<text
:class=
"
{active: param.order === 'desc'
&&
param.label === 'default'}" class="yticon">
</text>
</view>
</view>
</view>
</view>
...
@@ -49,7 +49,8 @@
...
@@ -49,7 +49,8 @@
</view>
</view>
<view
class=
"title"
>
{{
item
.
_source
.
goods_name
}}
</view>
<view
class=
"title"
>
{{
item
.
_source
.
goods_name
}}
</view>
<view
class=
"sub-title"
>
{{
item
.
_source
.
goods_subname
}}
</view>
<view
class=
"sub-title"
>
{{
item
.
_source
.
goods_subname
}}
</view>
<view
class=
"price"
><text
class=
"price-tips"
>
¥
</text>
{{
item
.
_source
.
price
}}
</view>
<view
v-if=
"!isLogin"
class=
"price"
><text
class=
"price-tips"
>
¥
</text>
{{
item
.
_source
.
price
}}
</view>
<view
v-if=
"isLogin"
class=
"unlogin_price"
>
登录显示价格
</view>
<!--
<view
class=
"old-price"
><text
class=
"price-tips"
>
¥
</text>
30.00
</view>
-->
<!--
<view
class=
"old-price"
><text
class=
"price-tips"
>
¥
</text>
30.00
</view>
-->
<image
class=
"cart-icon"
@
click=
"addCart(item._source.default_spec, 1)"
src=
"https://dbc-static.oss-cn-beijing.aliyuncs.com/credit_shop/global/icon_gouwuche%402x.png"
></image>
<image
class=
"cart-icon"
@
click=
"addCart(item._source.default_spec, 1)"
src=
"https://dbc-static.oss-cn-beijing.aliyuncs.com/credit_shop/global/icon_gouwuche%402x.png"
></image>
</view>
</view>
...
@@ -122,7 +123,7 @@
...
@@ -122,7 +123,7 @@
},
},
methods
:
{
methods
:
{
backHome
(){
backHome
(){
uni
.
re
directTo
({
uni
.
re
Launch
({
url
:
'/pages/home/home'
url
:
'/pages/home/home'
})
})
},
},
...
@@ -169,6 +170,7 @@
...
@@ -169,6 +170,7 @@
this
.
goods_list
=
[];
this
.
goods_list
=
[];
}
}
this
.
goods_list
=
this
.
goods_list
.
concat
(
data
.
data
);
this
.
goods_list
=
this
.
goods_list
.
concat
(
data
.
data
);
this
.
isLogin
=
data
.
login_flg
===
1
;
const
{
total
,
page_size
,
current
}
=
data
.
page
;
const
{
total
,
page_size
,
current
}
=
data
.
page
;
this
.
param
.
current
=
current
;
this
.
param
.
current
=
current
;
//判断是否还有下一页,有是more,没有是nomore
//判断是否还有下一页,有是more,没有是nomore
...
...
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