Commit 4fddb929 authored by miko's avatar miko

aa

parent ff66345c
{ {
"name": "mpshaodai", "name": "mpshaodai",
"version": "0.0.2", "version": "0.0.2",
"description": "A WePY project", "description": "A WePY project",
......
{ {
"description": "A WePY project", "description": "A WePY project",
"setting": { "setting": {
"urlCheck": false, "urlCheck": true,
"es6": true, "es6": true,
"postcss": false, "postcss": false,
"minified": false, "minified": false,
......
...@@ -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

63.7 KB | W: | H:

src/assets/hint.png

351 KB | W: | H:

src/assets/hint.png
src/assets/hint.png
src/assets/hint.png
src/assets/hint.png
  • 2-up
  • Swipe
  • Onion skin
This diff is collapsed.
...@@ -118,10 +118,11 @@ ...@@ -118,10 +118,11 @@
align-items: center; align-items: center;
width: 100%; width: 100%;
position: absolute; position: absolute;
margin-top: -44rpx;height: 52rpx; margin-top: -46rpx;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.sendCredentials){ if(item.takeCredentials){
wx.previewImage({ wx.previewImage({
current: app.config.urlPrefix+'/download/'+item.sendCredentials, // 当前显示图片的http链接 current: app.config.urlPrefix+'/download/'+item.takeCredentials, // 当前显示图片的http链接
urls: [app.config.urlPrefix+'/download/'+item.sendCredentials] urls: [app.config.urlPrefix+'/download/'+item.takeCredentials]
}) })
}else{ }else{
wx.showToast({ wx.showToast({
title: '尚未送达宿舍楼', title: '未上传图片',
icon: 'none', icon: 'none',
duration: 4000 duration: 3000
}) })
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment