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
Hide 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
...
@@ -36,12 +36,14 @@
...
@@ -36,12 +36,14 @@
justify-content: center;
justify-content: center;
border-radius: 50%;
border-radius: 50%;
overflow: hidden;
overflow: hidden;
z-index: 90;
background: white;
background: white;
width: 98rpx;
width: 98rpx;
height: 98rpx;
height: 98rpx;
}
}
.avatar-big {
.avatar-big {
z-index: 90;
display: flex;flex-direction: row;
display: flex;flex-direction: row;
align-items: center;
align-items: center;
justify-content: center;
justify-content: center;
...
@@ -155,7 +157,7 @@
...
@@ -155,7 +157,7 @@
.bt-update {
.bt-update {
color: white !important;
color: white !important;
margin-top:
1
3rpx;
margin-top:
3
3rpx;
height: 91rpx !important;
height: 91rpx !important;
width: 322rpx;
width: 322rpx;
}
}
...
@@ -294,7 +296,7 @@
...
@@ -294,7 +296,7 @@
flex-direction: column;
flex-direction: column;
align-items: center;
align-items: center;
background: white;
background: white;
height: 8
2
0rpx;
height: 8
8
0rpx;
width: 100%;
width: 100%;
}
}
...
@@ -352,7 +354,8 @@
...
@@ -352,7 +354,8 @@
height: 66rpx;
height: 66rpx;
align-items: flex-end;
align-items: flex-end;
label {
label {
font-size: 26rpx;
letter-spacing:1px;
font-size: 24rpx;
margin-left: 26rpx
margin-left: 26rpx
}
}
...
@@ -409,18 +412,13 @@
...
@@ -409,18 +412,13 @@
}
}
.bt-service{
.bt-service{
--button-normal-font-size: 30rpx!important;
--button-normal-font-size: 30rpx!important;
display: flex!important;
flex-direction: row!important;
align-items: center!important;
padding-left: 33rpx!important;
background: white!important;
background: white!important;
box-shadow:0 2rpx 4rpx rgba(0, 0, 0, .3)!important;
box-shadow:0px 0px 20px 10px #EAEAEA;
--button-default-height: 86rpx!important;
border-radius: 43rpx!important;
border-top-left-radius: 43rpx!important;
border-bottom-left-radius: 43rpx!important;
position: fixed!important;
position: fixed!important;
right: -3rpx!important;
--button-default-height: 88rpx;
bottom: 460rpx!important;
width: 200rpx;
right: -30rpx!important;
}
}
.pay-sheet-container{
.pay-sheet-container{
align-items: center;
align-items: center;
...
@@ -461,11 +459,18 @@
...
@@ -461,11 +459,18 @@
--action-sheet-header-height: 120rpx!important;
--action-sheet-header-height: 120rpx!important;
}
}
.auto-get{
.auto-get{
width: 250rpx;font-size: 3
3rpx;background: white;border: 0px;font-weight: 500;letter-spacing: 2
px;color: #0F8BFC;
width: 250rpx;font-size: 3
0rpx;background: white;border: 0px;font-weight: 500;letter-spacing: 1
px;color: #0F8BFC;
}
}
.auto-get::after {
.auto-get::after {
border: none;
border: none;
}
}
movable-view {
pointer-events: auto;
}
movable-area {
pointer-events: none;
}
</style>
</style>
<!--<wxs module="m1" lang="babel">-->
<!--<wxs module="m1" lang="babel">-->
<!--const getTime = (time) => {-->
<!--const getTime = (time) => {-->
...
@@ -480,13 +485,13 @@
...
@@ -480,13 +485,13 @@
<!--</wxs>-->
<!--</wxs>-->
<template>
<template>
<div class="container" style="align-items: center">
<div class="container" style="align-items: center">
<!-- <van-overlay show="{{ showMark }}" bind:click="onClickHide">--
>
<van-overlay show="{{ showMark }}" bind:click="onClickHide"
>
<!-- <header background="transparent" title_text="熊猫派捎带"/>-->
<!-- <header background="transparent" title_text="熊猫派捎带"/>-->
<!-- <scroll-view scroll-y="true" class="main">-->
<!-- <scroll-view scroll-y="true" class="main">-->
<!-- <div class="header pc">-->
<!-- <div class="header pc">-->
<!-- <div class="inner">-->
<!-- <div class="inner">-->
<!-- <div
@tap="openChange"
class="avatar-small">-->
<!-- <div class="avatar-small">-->
<!-- <van-image-->
<!-- <van-image-->
<!-- round-->
<!-- round-->
<!-- fit="cover"-->
<!-- fit="cover"-->
...
@@ -504,7 +509,7 @@
...
@@ -504,7 +509,7 @@
<!-- src="../assets/main-logo.png"-->
<!-- src="../assets/main-logo.png"-->
<!-- />-->
<!-- />-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="avatar-small"
@tap="mallClick"
>-->
<!-- <div class="avatar-small">-->
<!-- <van-image-->
<!-- <van-image-->
<!-- round-->
<!-- round-->
<!-- fit="cover"-->
<!-- fit="cover"-->
...
@@ -520,54 +525,30 @@
...
@@ -520,54 +525,30 @@
<!-- <div class="inner">-->
<!-- <div class="inner">-->
<!-- <div class="inner-top">-->
<!-- <div class="inner-top">-->
<!-- <div class="scroll-container">-->
<!-- <div class="scroll-container">-->
<!-- <div v-if="!messageText"-->
<!-- <div style="width: 9rpx;height: 40rpx;margin-top: -3rpx;align-self: center;margin-left: 24rpx"-->
<!-- style="width: 9rpx;height: 40rpx;margin-top: -3rpx;align-self: center;margin-left: 24rpx"-->
<!-- class="sc"/>-->
<!-- class="sc"/>-->
<!-- <textarea contenteditable="true" placeholder="粘贴短信或者输入快递及取货码"-->
<!-- <span style="color: #45C9C3"-->
<!-- auto-height="true"-->
<!-- disabled="true"-->
<!-- fixed="true"-->
<!-- class="input-null">粘贴短信或者输入快递及取货码</span>-->
<!-- @input="messageInput"-->
<!-- placeholder-style="color:red;"-->
<!-- v-model="messageText"-->
<!-- class="{{messageText? 'input-notnull':'input-null'}}"/>-->
<!-- </div>-->
<!-- </div>-->
<!-- <img v-if="!messageText" src="@/assets/pic.png"/>-->
<!-- <img v-if="messageText" @tap="cleanMessage" src="@/assets/close.png"/>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="parse-result" v-if="messageText">-->
<!-- <span style="font-size: 28rpx">识别结果</span>-->
<!-- <div>-->
<!-- <span style="color: #45C9C3" v-if="messageComp">{{ messageComp }}</span>-->
<!-- <span style="color: #45C9C3" v-else>未知快递公司</span>-->
<!-- <span v-if="messagePacketCode" style="margin-left: 25rpx;color: #45C9C3;">{{ messagePacketCode }}</span>-->
<!-- <span v-else style="margin-left: 25rpx;color: #45C9C3">无取件码</span>-->
<!-- </div>-->
<!-- <van-button icon="success" round type="primary" size="small" @tap="confirmMessage"-->
<!-- v-bind:disabled="messageConfirmed">确认-->
<!-- </van-button>-->
<!-- </div>-->
<!-- <div v-if="messageText" class="parse-result" style="font-size: 24rpx;color: #BABABA;border: none">-->
<!-- 识别仅供参考,若与实际意思不一致,请自行输入快递公司和取件码,例如:"顺丰123"即可-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <image style="margin-left: 150rpx" src="@/assets/hint.png"/>--
>
<image style="height: 100%;width: 100%;object-fit: contain" @tap="know()" src="@/assets/hint.png"/
>
<!-- <span style="width: 482rpx!important;margin: 10rpx 160rpx;height: 91rpx!important;font-size: 33rpx;font-weight: 500;color: #FFFFFF;line-height: 46rpx;letter-spacing: 2rpx;">-->
<!-- <span style="width: 482rpx!important;margin: 10rpx 160rpx;height: 91rpx!important;font-size: 33rpx;font-weight: 500;color: #FFFFFF;line-height: 46rpx;letter-spacing: 2rpx;">-->
<!-- 注意不是快递运单号,而是取件时使用的短信取件码哦~~-->
<!-- 注意不是快递运单号,而是取件时使用的短信取件码哦~~-->
<!-- </span>-->
<!-- </span>-->
<!-- <van-button style="z-index: 1000!important;" @tap="know()" round color="#45C9C3" custom-class="bt-submit">我知道了</van-button>-->
<!-- <van-button style="z-index: 1000!important;
margin-top: 500rpx;top: 500rpx
" @tap="know()" round color="#45C9C3" custom-class="bt-submit">我知道了</van-button>-->
<!-- </scroll-view>-->
<!-- </scroll-view>-->
<!-- </van-overlay>--
>
</van-overlay
>
<header background="#45C9C2" title_text="熊猫派捎带"/>
<header background="#45C9C2" title_text="熊猫派捎带"/>
<div class="main">
<div class="main"
v-if="!showMark"
>
<div class="header pc">
<div class="header pc">
<div class="inner">
<div class="inner">
...
@@ -635,7 +616,7 @@
...
@@ -635,7 +616,7 @@
</div>
</div>
<div class="address" @tap="showAddressSheet = !showAddressSheet">
<div class="address" @tap="showAddressSheet = !showAddressSheet"
v-if="!showMark"
>
<div class="top">
<div class="top">
<span class="panel-title">送达宿舍</span>
<span class="panel-title">送达宿舍</span>
</div>
</div>
...
@@ -664,7 +645,12 @@
...
@@ -664,7 +645,12 @@
</div>
</div>
<van-button @tap="showPaySheet = true" round color="#45C9C3" custom-class="bt-submit">提 交</van-button>
<van-button @tap="showPaySheet = true" round color="#45C9C3" custom-class="bt-submit">提 交</van-button>
</div>
</div>
<van-button icon="service" open-type="contact" custom-class="bt-service">客服</van-button>
<movable-area style="width:{{screenWidth}}px;height:{{screenHeight-50}}px;position: fixed">
<movable-view :x="x" :y="y" @touchend="touched" direction="all" style="width: 200rpx;height: 88rpx" @change="drapChange">
<van-button style="z-index: 1000" icon="service" open-type="contact" custom-class="bt-service">客服</van-button>
</movable-view>
</movable-area>
<van-action-sheet
<van-action-sheet
@close="closeAddressSheet"
@close="closeAddressSheet"
...
@@ -702,7 +688,7 @@
...
@@ -702,7 +688,7 @@
<span>请注意, 是快递的收件联系方式</span>
<span>请注意, 是快递的收件联系方式</span>
</div>
</div>
</div>
</div>
<div class="item-container">
<div class="item-container"
style="height: 180rpx"
>
<div class="top">
<div class="top">
<span>宿舍号</span>
<span>宿舍号</span>
<div class="right">
<div class="right">
...
@@ -714,6 +700,14 @@
...
@@ -714,6 +700,14 @@
<span>号</span>
<span>号</span>
</div>
</div>
</div>
</div>
<div class="bottom" style="align-items: center;margin-top: 40rpx">
<image style="height: 32rpx;width: 32rpx" src="@/assets/info.png"></image>
<div style="display: flex;flex-direction: column">
<span>请确认:您当前校区为<span style="font-weight: 600;font-size: 25rpx;margin-left: 4rpx">{{school.schoolName}}</span></span>
<span style="margin-top: 15rpx">如有误,请<span style="margin-left: 0rpx;font-weight: 600;color: #0F8BFC" @tap="openChange">点击调整</span></span>
</div>
</div>
</div>
</div>
<van-button @tap="updateAddress" round custom-class="bt-update sc">更 新</van-button>
<van-button @tap="updateAddress" round custom-class="bt-update sc">更 新</van-button>
...
@@ -812,11 +806,11 @@
...
@@ -812,11 +806,11 @@
<div class="choose-container">
<div class="choose-container">
<div class="item" :class="{'choose': paytype==1}" @tap="paytype = 1">
<div class="item" :class="{'choose': paytype==1}" @tap="paytype = 1">
<span style="font-size: 38rpx;">
2
元/件</span>
<span style="font-size: 38rpx;">
{{smallprice}}
元/件</span>
<span style="font-size: 23rpx;margin-top: 18rpx;">普通快递</span>
<span style="font-size: 23rpx;margin-top: 18rpx;">普通快递</span>
</div>
</div>
<div class="item" :class="{'choose': paytype==2}" @tap="paytype = 2">
<div class="item" :class="{'choose': paytype==2}" @tap="paytype = 2">
<span style="font-size: 36rpx;">
5
元/件</span>
<span style="font-size: 36rpx;">
{{bigprice}}
元/件</span>
<span style="font-size: 23rpx;margin-top: 18rpx;">比箱装饮料重或大</span>
<span style="font-size: 23rpx;margin-top: 18rpx;">比箱装饮料重或大</span>
</div>
</div>
</div>
</div>
...
@@ -846,11 +840,9 @@
...
@@ -846,11 +840,9 @@
</van-action-sheet>
</van-action-sheet>
<!-- 自定义tabbar-->
<!-- 自定义tabbar-->
<van-tabbar
<van-tabbar
v-if="!showMark"
active-color="#45C9C2"
active-color="#45C9C2"
active="{{ active }}" @change="onTabChange" class="mytabbar">
active="{{ active }}" @change="onTabChange" class="mytabbar">
<van-tabbar-item>
<van-tabbar-item>
...
@@ -914,8 +906,26 @@ wepy.page({
...
@@ -914,8 +906,26 @@ wepy.page({
},
},
mixins: [testMixin],
mixins: [testMixin],
onShareTimeline: function (res){
return {
title: '十秒下单,快速到寝',
path: '/pages/index',
query: '',
imageUrl: '../assets/main-logo.png'
}
},
onShareAppMessage: function (res) {
return {
title: '十秒下单,快速到寝',
path: '/pages/index',
imageUrl: '../assets/main-logo.png'
}
},
data: {
data: {
screenWidth: app.config.screenWidth,
screenHeight: app.config.screenHeight,
x: app.config.screenWidth,
y: 550,
paytype: 1,
paytype: 1,
showMark: false,
showMark: false,
showUnOpenSheet: false,
showUnOpenSheet: false,
...
@@ -933,6 +943,11 @@ wepy.page({
...
@@ -933,6 +943,11 @@ wepy.page({
dormitoryList: [],
dormitoryList: [],
showDormitorySheet: false,
showDormitorySheet: false,
smallprice: '2',
bigprice: '5',
amdeadline: '',
pmdeadline: '',
showAddressSheet: false,
showAddressSheet: false,
addressSheet_Name: '',
addressSheet_Name: '',
...
@@ -960,6 +975,18 @@ wepy.page({
...
@@ -960,6 +975,18 @@ wepy.page({
},
},
computed: {},
computed: {},
methods: {
methods: {
touched(){
let _that = this
wx.nextTick(() => {
_that.$wx.setData({
x: this.screenWidth,
y: this.y
})
})
},
drapChange(e) {
this.y = e.$wx.detail.y
},
getPhoneNumber (e) {
getPhoneNumber (e) {
e = e.$wx
e = e.$wx
let _that = this
let _that = this
...
@@ -978,12 +1005,51 @@ wepy.page({
...
@@ -978,12 +1005,51 @@ wepy.page({
})
})
},
},
pay(){
pay(){
var d = new Date();
let h = d.getHours()
let m = d.getMinutes()
if(h<12&&this.amdeadline){
if(h+':'+m>this.amdeadline){
wx.showToast({
title: '上午提交订单截止时间为'+this.amdeadline+', 请于12点之后重新提交',
icon: 'none',
duration: 4000
})
return
}
}
if(h>=12&&this.pmdeadline){
if(h+':'+m>this.pmdeadline){
wx.showToast({
title: '下午提交订单截止时间'+this.pmdeadline+', 请明天重新提交',
icon: 'none',
duration: 4000
})
return
}
}
if (!this.messageComp || !this.messagePacketCode) {
wx.showToast({
title: '未识别成功,请自行输入快递公司以及取货码',
icon: 'none',
duration: 4000
})
return
}
this.messageConfirmed = true
if(!this.address){
wx.showToast({
title: '请填写正确的收货地址',
icon: 'none',
duration: 4000
})
return
}
let _that = this
let _that = this
let param = {yuan: this.paytype===1?
"0.02":"0.05"
}
let param = {yuan: this.paytype===1?
this.smallprice:this.bigprice
}
http.post('/task/pay',param).then(data => {
http.post('/task/pay',param).then(data => {
console.log(data)
data = data.data
data = data.data
console.log(data)
wx.requestPayment({
wx.requestPayment({
timeStamp: data.timeStamp,
timeStamp: data.timeStamp,
...
@@ -1008,6 +1074,7 @@ wepy.page({
...
@@ -1008,6 +1074,7 @@ wepy.page({
})
})
},
},
openChange(){
openChange(){
this.showAddressSheet = false
this.showUnOpenSheet = false
this.showUnOpenSheet = false
this.showChangeSchoolSheet = true
this.showChangeSchoolSheet = true
},
},
...
@@ -1112,7 +1179,7 @@ wepy.page({
...
@@ -1112,7 +1179,7 @@ wepy.page({
parcelInfo: this.messageText,
parcelInfo: this.messageText,
courierCompany: this.messageComp,
courierCompany: this.messageComp,
pickupCode: this.messagePacketCode,
pickupCode: this.messagePacketCode,
pay: this.paytype===1?
"2":"5"
pay: this.paytype===1?
this.smallprice:this.bigprice
}
}
http.post('/task/submit',param).then(data => {
http.post('/task/submit',param).then(data => {
...
@@ -1244,7 +1311,20 @@ wepy.page({
...
@@ -1244,7 +1311,20 @@ wepy.page({
if (arr && arr.length > 0 && !result) {
if (arr && arr.length > 0 && !result) {
result = arr[0]
result = arr[0]
return result
return result
}
pattern = /\d{1,}(\_|\/|.)\d{1,6}/
arr = str.match(pattern)
if (arr && arr.length > 0 && !result) {
result = arr[0]
return result
}
pattern = /\d{1,}(\_|\/|.)\d{1,}\1\d{1,}/
var arr = str.match(pattern)
if (arr && arr.length > 0) {
result = arr[0]
return result
}
}
...
@@ -1272,7 +1352,7 @@ wepy.page({
...
@@ -1272,7 +1352,7 @@ wepy.page({
onShow() {
onShow() {
this.showMark = !wx.getStorageSync("know")
this.showMark = !wx.getStorageSync("know")
// this.showMark = true
this.active = 0
this.active = 0
//TODO 初始化学校 id
//TODO 初始化学校 id
if(!wx.getStorageSync('schoolID')){
if(!wx.getStorageSync('schoolID')){
...
@@ -1280,6 +1360,27 @@ wepy.page({
...
@@ -1280,6 +1360,27 @@ wepy.page({
}
}
const _that = this
const _that = this
http.post('/schoolconfig/getBySchool').then(res => {
if(res.data){
if(res.data.bigprice){
this.bigprice = res.data.bigprice
}
if(res.data.smallprice){
this.smallprice = res.data.smallprice
}
if(res.data.smallprice){
this.smallprice = res.data.smallprice
}
if(res.data.amdeadline){
this.amdeadline = res.data.amdeadline
}
if(res.data.pmdeadline){
this.pmdeadline = res.data.pmdeadline
}
}
})
wx.login({
wx.login({
success(res) {
success(res) {
var code = res.code
var code = res.code
...
...
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