Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cg_approveApp_2023
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
cg_approveApp_2023
Commits
4fddb929
Commit
4fddb929
authored
Dec 10, 2020
by
miko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aa
parent
ff66345c
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
236 additions
and
83 deletions
+236
-83
package.json
package.json
+1
-1
project.config.json
project.config.json
+1
-1
src/app.wpy
src/app.wpy
+7
-3
src/assets/hint.png
src/assets/hint.png
+0
-0
src/assets/logo.png
src/assets/logo.png
+0
-0
src/assets/ty.png
src/assets/ty.png
+0
-0
src/pages/index.wpy
src/pages/index.wpy
+164
-63
src/pages/progress.wpy
src/pages/progress.wpy
+63
-15
No files found.
package.json
View file @
4fddb929
{
{
"name"
:
"mpshaodai"
,
"name"
:
"mpshaodai"
,
"version"
:
"0.0.2"
,
"version"
:
"0.0.2"
,
"description"
:
"A WePY project"
,
"description"
:
"A WePY project"
,
...
...
project.config.json
View file @
4fddb929
{
{
"description"
:
"A WePY project"
,
"description"
:
"A WePY project"
,
"setting"
:
{
"setting"
:
{
"urlCheck"
:
fals
e
,
"urlCheck"
:
tru
e
,
"es6"
:
true
,
"es6"
:
true
,
"postcss"
:
false
,
"postcss"
:
false
,
"minified"
:
false
,
"minified"
:
false
,
...
...
src/app.wpy
View file @
4fddb929
...
@@ -55,6 +55,8 @@ wepy.app({
...
@@ -55,6 +55,8 @@ wepy.app({
wx.getSystemInfo({
wx.getSystemInfo({
success: res => {
success: res => {
//导航高度
//导航高度
this.$options.config.screenHeight = res.windowHeight
this.$options.config.screenWidth = res.windowWidth
this.$options.config.title_height = res.statusBarHeight + 46;
this.$options.config.title_height = res.statusBarHeight + 46;
this.$options.config.statusbarHeight = res.statusBarHeight;
this.$options.config.statusbarHeight = res.statusBarHeight;
...
@@ -77,6 +79,8 @@ wepy.app({
...
@@ -77,6 +79,8 @@ wepy.app({
}
}
},
},
config:{
config:{
screenHeight: 0,
screenWidth: 0,
title_height: "64",
title_height: "64",
statusbarHeight: "24",
statusbarHeight: "24",
titleIcon_height: "32",
titleIcon_height: "32",
...
@@ -84,17 +88,17 @@ wepy.app({
...
@@ -84,17 +88,17 @@ wepy.app({
title_top: "24",
title_top: "24",
title_text: "xxx", // iphone X + 24
title_text: "xxx", // iphone X + 24
prefix: 24,
prefix: 24,
// urlPrefix: 'https://sd.tmallab
.com/spring/api'
urlPrefix: 'https://api.favormylikes
.com/spring/api'
urlPrefix: "http://127.0.0.1:8888/api"
//
urlPrefix: "http://127.0.0.1:8888/api"
}
}
});
});
</script>
</script>
<config>
<config>
{
{
pages: [
pages: [
'pages/index',
'pages/progress',
'pages/progress',
'pages/index',
],
],
<!--"plugins": {-->
<!--"plugins": {-->
<!--"ocr-plugin": {-->
<!--"ocr-plugin": {-->
...
...
src/assets/hint.png
View replaced file @
ff66345c
View file @
4fddb929
63.7 KB
|
W:
|
H:
351 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/logo.png
0 → 100644
View file @
4fddb929
18.6 KB
src/assets/ty.png
0 → 100644
View file @
4fddb929
2.23 KB
src/pages/index.wpy
View file @
4fddb929
This diff is collapsed.
Click to expand it.
src/pages/progress.wpy
View file @
4fddb929
...
@@ -118,10 +118,11 @@
...
@@ -118,10 +118,11 @@
align-items: center;
align-items: center;
width: 100%;
width: 100%;
position: absolute;
position: absolute;
margin-top: -4
4
rpx;height: 52rpx;
margin-top: -4
6
rpx;height: 52rpx;
}
}
.p1{
.p1{
border-radius: 26rpx;
border: 8rpx solid white;
border-radius: 50%;
display: flex;
display: flex;
flex-direction: row;
flex-direction: row;
align-items: center;
align-items: center;
...
@@ -129,8 +130,18 @@
...
@@ -129,8 +130,18 @@
position: absolute;
position: absolute;
background: #BABABA;width: 52rpx;height: 52rpx;
background: #BABABA;width: 52rpx;height: 52rpx;
}
}
//.p1{
// border-radius: 26rpx;
// display: flex;
// flex-direction: row;
// align-items: center;
// justify-content: center;
// position: absolute;
// background: #BABABA;width: 52rpx;height: 52rpx;
//}
.pp1{
.pp1{
border-radius: 26rpx;
border: 8rpx solid white;
border-radius: 50%;
display: flex;
display: flex;
flex-direction: row;
flex-direction: row;
align-items: center;
align-items: center;
...
@@ -139,6 +150,16 @@
...
@@ -139,6 +150,16 @@
background: #45C9C2;
background: #45C9C2;
width: 52rpx;height: 52rpx;
width: 52rpx;height: 52rpx;
}
}
//.pp1{
// border-radius: 26rpx;
// display: flex;
// flex-direction: row;
// align-items: center;
// justify-content: center;
// position: absolute;
// background: #45C9C2;
// width: 52rpx;height: 52rpx;
//}
label{
label{
color: white;
color: white;
font-size: 24rpx;
font-size: 24rpx;
...
@@ -209,14 +230,14 @@ module.exports.getTime = getTime;
...
@@ -209,14 +230,14 @@ module.exports.getTime = getTime;
<image style="width: 33rpx;height: 33rpx" src="@/assets/kd.png"/>
<image style="width: 33rpx;height: 33rpx" src="@/assets/kd.png"/>
<span style="margin-left: 9rpx;font-size: 33rpx;color: #45C9C3">快递</span>
<span style="margin-left: 9rpx;font-size: 33rpx;color: #45C9C3">快递</span>
</div>
</div>
<div class="tab">
<div class="tab"
@tap="mallClick"
>
<image style="width: 33rpx;height: 33rpx" src="@/assets/cs.png"/>
<image style="width: 33rpx;height: 33rpx" src="@/assets/cs.png"/>
<span style="margin-left: 9rpx;font-size: 33rpx;color: #272727">超市</span>
<span style="margin-left: 9rpx;font-size: 33rpx;color: #272727">超市</span>
</div>
</div>
</div>
</div>
<div class="main">
<div class="main">
<van-empty v-if="list.length===0" description="您还没有发布过捎带订单哦">
<van-empty v-if="list.length===0" description="您还没有发布过捎带订单哦">
<van-button custom-class="bottom-button">
<van-button
@tap="toIndex"
custom-class="bottom-button">
发布捎带
发布捎带
</van-button>
</van-button>
</van-empty>
</van-empty>
...
@@ -288,9 +309,10 @@ module.exports.getTime = getTime;
...
@@ -288,9 +309,10 @@ module.exports.getTime = getTime;
<span style="margin-left: 30rpx">取件点</span>
<span style="margin-left: 30rpx">取件点</span>
<div @tap="photo1(currentItem)" class="{{[currentItem.status>=1?'pp1':'p1']}}" style="margin-left: 116rpx">
<!-- <div @tap="photo1(currentItem)" class="{{[currentItem.status>=1?'pp1':'p1']}}" style=";margin-left: 116rpx;">-->
<van-icon color="white" name="photograph" />
<!-- <image style="position: absolute" src="@/assets/ty.png"/>-->
</div>
<!-- <van-icon color="white" name="photograph" />-->
<!-- </div>-->
<span style="margin-left:78rpx" >快到楼下</span>
<span style="margin-left:78rpx" >快到楼下</span>
<div @tap="photo2(currentItem)" class="{{[currentItem.status>=2?'pp1':'p1']}}" style="margin-left: 296rpx">
<div @tap="photo2(currentItem)" class="{{[currentItem.status>=2?'pp1':'p1']}}" style="margin-left: 296rpx">
...
@@ -397,6 +419,12 @@ const app = getApp().$wepy.$options
...
@@ -397,6 +419,12 @@ const app = getApp().$wepy.$options
wepy.page({
wepy.page({
onShareAppMessage: function (res) {
return {
title: '十秒下单,快速到寝',
path: '/pages/index'
}
},
data:{
data:{
active: 1,
active: 1,
list: [],
list: [],
...
@@ -405,10 +433,30 @@ wepy.page({
...
@@ -405,10 +433,30 @@ wepy.page({
},
},
methods: {
methods: {
toIndex(){
wx.switchTab({
url: "/pages/index"
});
},
mallClick(){
wx.showToast({
title: '尚未开放,尽请期待。',
icon: 'none',
duration: 3000,
mask: true
});
},
sub(item) {
sub(item) {
wx.requestSubscribeMessage({
wx.requestSubscribeMessage({
tmplIds: ['8VhR4ruZ-b6kZRzSzQ4TwI-Y8Rh8vSR1kg5R7kFDrfQ','8VhR4ruZ-b6kZRzSzQ4TwP1fPXITxSawzR-z_XsgMok','8VhR4ruZ-b6kZRzSzQ4TwOHT914KwUCpusAX0y6w2Wo'],
tmplIds: ['CGlLzkCZy2Q5XaMvRw1-9gfHy_CRhk4_6LuXhKK2vI4','Lr1MlntU2DKsuxtrlTJT_d3uxOeIvKjIsjzHSKUpUOI','8VhR4ruZ-b6kZRzSzQ4TwIoQKtz7ODjkkHCgAsalFSE'],
success (res) { }
success (res) {
wx.showToast({
title: '订阅成功',
icon: 'none',
duration: 1000,
mask: true
});
}
})
})
},
},
closeDetailSheet(){
closeDetailSheet(){
...
@@ -435,16 +483,16 @@ wepy.page({
...
@@ -435,16 +483,16 @@ wepy.page({
},
},
photo2(item){
photo2(item){
if(item.
send
Credentials){
if(item.
take
Credentials){
wx.previewImage({
wx.previewImage({
current: app.config.urlPrefix+'/download/'+item.
send
Credentials, // 当前显示图片的http链接
current: app.config.urlPrefix+'/download/'+item.
take
Credentials, // 当前显示图片的http链接
urls: [app.config.urlPrefix+'/download/'+item.
send
Credentials]
urls: [app.config.urlPrefix+'/download/'+item.
take
Credentials]
})
})
}else{
}else{
wx.showToast({
wx.showToast({
title: '
尚未送达宿舍楼
',
title: '
未上传图片
',
icon: 'none',
icon: 'none',
duration:
4
000
duration:
3
000
})
})
}
}
},
},
...
...
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