Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
飞啊飞我的骄傲放纵-未来全栈工程师
paipai-v2
提交
befc6c95
P
paipai-v2
项目概览
飞啊飞我的骄傲放纵-未来全栈工程师
/
paipai-v2
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
paipai-v2
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
befc6c95
编写于
2月 20, 2021
作者:
王
王闪闪T013479
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
wss
上级
f2e4c497
变更
12
展开全部
隐藏空白更改
内联
并排
Showing
12 changed file
with
111 addition
and
54 deletion
+111
-54
App.vue
App.vue
+12
-0
common/config.js
common/config.js
+8
-2
common/util.js
common/util.js
+3
-3
components/pp-search-btn/pp-search-btn.vue
components/pp-search-btn/pp-search-btn.vue
+1
-1
manifest.json
manifest.json
+14
-14
pages/goods-detail/goods-detail.vue
pages/goods-detail/goods-detail.vue
+7
-7
pages/guide/guide.vue
pages/guide/guide.vue
+29
-10
pages/index/index.vue
pages/index/index.vue
+1
-1
pages/serviceDetail/serviceDetail.vue
pages/serviceDetail/serviceDetail.vue
+20
-1
unpackage/dist/build/app-plus/app-service.js
unpackage/dist/build/app-plus/app-service.js
+2
-2
unpackage/dist/build/app-plus/app-view.js
unpackage/dist/build/app-plus/app-view.js
+1
-1
vue.config.js
vue.config.js
+13
-12
未找到文件。
App.vue
浏览文件 @
befc6c95
...
...
@@ -132,6 +132,18 @@
font-weight
:
500
;
font-family
:
"Ping Fang"
;
}
table
{
width
:
100%
;
text-align
:
center
;
border-spacing
:
0
;
border-collapse
:
collapse
;
}
.table-bordered
{
border
:
1px
solid
#ddd
;
}
.table-bordered
tbody
tr
td
,
.table-bordered
tfoot
tr
td
{
border
:
1px
solid
#ddd
;
}
.flex-bet
{
display
:
flex
;
justify-content
:
space-between
;
...
...
common/config.js
浏览文件 @
befc6c95
let
host
=
''
// 接口请求地址
let
host
=
''
;
// 图片、文件路径地址
// const absoluteHost = 'http://paipai.ip189.lhyw.net'
const
absoluteHost
=
"
https://www.ppzxchina.cn
"
//#ifdef APP-PLUS
// host = 'http://paipai.ip189.lhyw.net'
...
...
@@ -6,5 +11,6 @@ let host = ''
//#endif
export
{
host
host
,
absoluteHost
}
\ No newline at end of file
common/util.js
浏览文件 @
befc6c95
// const host = "http://paipai.ip189.lhyw.net"
const
host
=
"
https://www.ppzxchina.cn
"
import
{
absoluteHost
}
from
'
./config.js
'
import
store
from
'
../store/index
'
// Toast提示
function
showToast
(
msg
,
duration
){
uni
.
showToast
({
...
...
@@ -123,7 +123,7 @@ function virifyRegisterPassword(password, password2){
}
function
getAbsoluteUrl
(
url
){
return
h
ost
+
url
return
absoluteH
ost
+
url
}
// 原始数据中的路径拼接成绝对路径
function
filterDatasPath
(
datas
,
paths
){
...
...
components/pp-search-btn/pp-search-btn.vue
浏览文件 @
befc6c95
<
template
>
<view
class=
"nav-search"
>
<image
class=
"search-icon"
src=
"/static/search-icon.png"
mode=
"aspectFit"
></image>
<text
class=
"bold"
>
请输入搜索拍品
</text>
<text
class=
"bold"
>
输入关键字搜索
</text>
</view>
</
template
>
...
...
manifest.json
浏览文件 @
befc6c95
...
...
@@ -107,20 +107,20 @@
"usingComponents"
:
true
},
"h5"
:
{
"devServer"
:
{
"https"
:
false
,
"proxy"
:
{
"/interfaces"
:
{
/*
"target"
:
"http://paipai.ip189.lhyw.net/interfaces"
,
*/
"target"
:
"https://www.ppzxchina.cn/interfaces"
,
"changeOrigin"
:
true
,
"secure"
:
false
,
"pathRewrite"
:
{
"^/interfaces"
:
""
}
}
}
},
//
"devServer"
:
{
//
"https"
:
false
,
//
"proxy"
:
{
//
"/interfaces"
:
{
//
/*
"target"
:
"http://paipai.ip189.lhyw.net/interfaces"
,
*/
//
"target"
:
"https://www.ppzxchina.cn/interfaces"
,
//
"changeOrigin"
:
true
,
//
"secure"
:
false
,
//
"pathRewrite"
:
{
//
"^/interfaces"
:
""
//
}
//
}
//
}
//
},
"uniStatistics"
:
{
"enable"
:
false
}
...
...
pages/goods-detail/goods-detail.vue
浏览文件 @
befc6c95
...
...
@@ -15,15 +15,15 @@
<view
class=
"item"
><text
class=
"name"
>
项目编号
</text><text
class=
"desc"
>
{{
goods
.
item_num
}}
</text></view>
<view
class=
"item"
><text
class=
"name"
>
竞拍结束
</text><text
class=
"desc"
>
{{
goods
.
end_time
}}
</text></view>
<view
class=
"item"
v-if=
"(goods.show_type == 2 && goods.type == 1) || goods.show_type == 8"
>
<text
class=
"name"
>
当 前 价
</text><text
class=
"price"
><text
class=
"sign"
>
¥
</text>
{{
goods
.
current_price
}}
</text>
<text
class=
"name"
>
当 前 价
</text><text
class=
"price"
><text
class=
"sign"
>
¥
</text>
{{
goods
.
current_price
}}
元
{{
goods
.
unit
}}
</text>
</view>
<view
class=
"item"
v-if=
"goods.show_type == 7"
>
<text
class=
"name"
>
您已出价
</text><text
class=
"price"
><text
class=
"sign"
>
¥
</text>
{{
goods
.
pay_one_price
}}
元
每
{{
goods
.
unit
}}
</text>
<text
class=
"name"
>
您已出价
</text><text
class=
"price"
><text
class=
"sign"
>
¥
</text>
{{
goods
.
pay_one_price
}}
元
{{
goods
.
unit
}}
</text>
<view
class=
"pay-succ"
>
您已完成出价,请等待结束后公布结果
</view>
</view>
<view
class=
"item"
v-if=
"goods.show_type == 3 || goods.show_type == 5 "
><text
class=
"name"
>
成 交 价
</text><text
class=
"price"
><text
class=
"sign"
>
¥
</text>
{{
goods
.
order_price
}}
</text></view>
<view
class=
"item"
v-if=
"goods.show_type == 3 || goods.show_type == 5 "
><text
class=
"name"
>
成 交 价
</text><text
class=
"price"
><text
class=
"sign"
>
¥
</text>
{{
goods
.
order_price
}}
元
{{
goods
.
unit
}}
</text></view>
<view
class=
"back-box"
v-if=
"goods.show_type==2 || goods.show_type==1"
>
<text
v-if=
"goods.show_type==2"
class=
"back-text"
>
距结束
</text>
<text
v-else
class=
"back-text"
>
距开始
</text>
...
...
@@ -41,11 +41,11 @@
</view>
</view>
<view
class=
"good-info"
>
<view
class=
"good-info-item"
><text
class=
"name"
>
起拍价
</text><text
class=
"desc"
>
¥
{{
goods
.
s_price
}}
元
</text></view>
<view
class=
"good-info-item"
><text
class=
"name"
>
加价幅度
</text><text
class=
"desc"
>
¥
{{
goods
.
range
}}
元
</text></view>
<view
class=
"good-info-item"
><text
class=
"name"
>
起拍价
</text><text
class=
"desc"
>
¥
{{
goods
.
s_price
}}
元
{{
goods
.
unit
}}
</text></view>
<view
class=
"good-info-item"
><text
class=
"name"
>
加价幅度
</text><text
class=
"desc"
>
¥
{{
goods
.
range
}}
元
{{
goods
.
unit
}}
</text></view>
<view
class=
"good-info-item"
><text
class=
"name"
>
类 型
</text><text
class=
"desc"
>
{{
goods
.
type
==
1
?
'
网络竞价
'
:
'
询比价
'
}}
</text></view>
<view
class=
"good-info-item"
><text
class=
"name"
>
服务费
</text><text
class=
"desc"
>
{{
goods
.
fee
!=
0
&&
goods
.
fee
!=
null
?
goods
.
fee
+
'
元
'
:
'
无
'
}}
</text></view>
<view
class=
"good-info-item"
><text
class=
"name"
>
评估价
</text><text
class=
"desc"
>
¥
{{
goods
.
v_price
}}
元
</text></view>
<view
class=
"good-info-item"
><text
class=
"name"
>
服务费
</text><text
class=
"desc"
>
{{
goods
.
fee
!=
0
&&
goods
.
fee
!=
null
?
goods
.
fee
.
indexOf
(
'
%
'
)
>
-
1
?
goods
.
fee
:
goods
.
fee
+
'
元
'
:
'
无
'
}}
</text></view>
<view
class=
"good-info-item"
><text
class=
"name"
>
评估价
</text><text
class=
"desc"
>
¥
{{
goods
.
v_price
}}
元
{{
goods
.
unit
}}
</text></view>
<view
class=
"good-info-item"
><text
class=
"name"
>
竞价周期
</text><text
class=
"desc"
>
{{
goods
.
auction_cycle
}}
</text></view>
<view
class=
"good-info-item"
><text
class=
"name"
>
优先购买权
</text><text
class=
"desc"
>
{{
goods
.
is_preemption
==
1
?
'
有
'
:
'
无
'
}}
</text></view>
<view
class=
"good-info-item"
><text
class=
"name"
>
保证金
</text><text
class=
"desc"
>
¥
{{
goods
.
earnest
}}
元
</text></view>
...
...
pages/guide/guide.vue
浏览文件 @
befc6c95
...
...
@@ -5,10 +5,11 @@
<image
class=
"guide-item"
mode=
"aspectFill"
src=
"../../static/guide_1.jpg"
></image>
</swiper-item>
<swiper-item>
<image
class=
"guide-item"
mode=
"aspectFill"
src=
"../../static/guide_
1
.jpg"
></image>
<image
class=
"guide-item"
mode=
"aspectFill"
src=
"../../static/guide_
2
.jpg"
></image>
</swiper-item>
<swiper-item>
<swiper-item
@
touchstart=
"touchstart"
@
touchend=
"touchend"
>
<image
class=
"guide-item"
mode=
"aspectFill"
src=
"../../static/guide_3.jpg"
></image>
<view
class=
"income-btn"
@
click=
"jump"
>
立即体验
</view>
</swiper-item>
</swiper>
<view
class=
"jump-btn"
@
click=
"jump"
>
跳过
</view>
...
...
@@ -19,19 +20,21 @@
export
default
{
data
()
{
return
{
startX
:
0
}
},
onLoad
()
{
// var hasGuide = uni.getStorageSync('hasGuide')
// if(hasGuide === '1'){
// this.jump()
// }else {
// uni.setStorageSync('hasGuide', '1')
// }
},
methods
:
{
touchstart
(
e
){
this
.
startX
=
e
.
changedTouches
[
0
].
clientX
},
touchend
(
e
){
const
endX
=
e
.
changedTouches
[
0
].
clientX
if
(
endX
<
this
.
startX
){
this
.
jump
()
}
},
jump
(){
uni
.
switchTab
({
url
:
'
/pages/index/index
'
...
...
@@ -86,4 +89,20 @@
color
:
#fff
;
background-color
:
#dd9d97
;
}
.income-btn
{
position
:
absolute
;
left
:
0
;
right
:
0
;
bottom
:
55px
;
width
:
140px
;
line-height
:
32px
;
border-radius
:
16px
;
margin
:
0
auto
;
background
:
#e73e33
;
color
:
#fff
;
font-size
:
16px
;
text-align
:
center
;
font-weight
:
bold
;
}
</
style
>
pages/index/index.vue
浏览文件 @
befc6c95
...
...
@@ -30,7 +30,7 @@
<!-- banner -->
<swiper
class=
"banner-box"
autoplay
:interval=
"3000"
:duration=
"1000"
previous-margin=
"40rpx"
next-margin=
"40rpx"
@
change=
"changeBanner"
>
next-margin=
"40rpx"
@
change=
"changeBanner"
circular
>
<
template
v-for=
"(banner, index) in banners"
>
<swiper-item>
<navigator
url=
"url"
hover-class=
"none"
>
...
...
pages/serviceDetail/serviceDetail.vue
浏览文件 @
befc6c95
...
...
@@ -20,7 +20,7 @@
</view>
</view>
</view>
<view
class=
"db-title"
>
所含拍品
</view>
<!-- 分类导航 -->
<pp-second-category
ref=
"secCate"
@
changeSecondCate=
"changeSecondCate"
/>
<!-- 拍品列表 -->
...
...
@@ -161,4 +161,23 @@
.profile
.arrow-bottom.all
{
transform
:
rotate
(
180deg
);
}
.db-title
{
position
:
relative
;
font-size
:
28
rpx
;
line-height
:
100
rpx
;
color
:
#fe5341
;
padding-left
:
20
rpx
;
margin
:
0
20
rpx
-20
rpx
;
}
.db-title
:after
{
position
:
absolute
;
left
:
0
;
top
:
50%
;
display
:
block
;
content
:
''
;
width
:
2
rpx
;
height
:
24
rpx
;
background-color
:
#fe5341
;
margin-top
:
-12
rpx
;
}
</
style
>
unpackage/dist/build/app-plus/app-service.js
浏览文件 @
befc6c95
此差异已折叠。
点击以展开。
unpackage/dist/build/app-plus/app-view.js
浏览文件 @
befc6c95
此差异已折叠。
点击以展开。
vue.config.js
浏览文件 @
befc6c95
...
...
@@ -3,7 +3,7 @@ const bodyParser = require('body-parser')
const
path
=
require
(
'
path
'
);
module
.
exports
=
{
//
devServer: {
devServer
:
{
// contentBase: path.join(__dirname, 'mock'),
// compress: true,
// open: false,
...
...
@@ -16,15 +16,16 @@ module.exports = {
// app.use(bodyParser.urlencoded({extended: false}))
// Mock(app)
// },
// proxy : {
// "/interfaces" : {
// "target" : "http://paipai.ip189.lhyw.net/interfaces",
// "changeOrigin" : true,
// "secure" : false,
// "pathRewrite" : {
// "^/interfaces" : ""
// }
// }
// }
// }
proxy
:
{
"
/interfaces
"
:
{
// "target" : "http://paipai.ip189.lhyw.net/interfaces",
"
target
"
:
"
https://www.ppzxchina.cn/interfaces
"
,
"
changeOrigin
"
:
true
,
"
secure
"
:
false
,
"
pathRewrite
"
:
{
"
^/interfaces
"
:
""
}
}
}
}
};
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录