uu
This commit is contained in:
parent
3bef7eaa65
commit
3dd561d16a
@ -61,6 +61,16 @@ const showLoading = ()=> {
|
||||
});
|
||||
}
|
||||
|
||||
const scanCode = ()=> {
|
||||
return new Promise((resolve, reject)=> {
|
||||
uni.scanCode({
|
||||
onlyFromCamera: false,
|
||||
success: resolve,
|
||||
fail: reject
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
export {
|
||||
reLaunch,
|
||||
goto,
|
||||
@ -68,5 +78,6 @@ export {
|
||||
setClipboardData,
|
||||
confirmModal,
|
||||
showLoading,
|
||||
showToast
|
||||
showToast,
|
||||
scanCode
|
||||
}
|
||||
|
||||
30
pages.json
30
pages.json
@ -92,18 +92,6 @@
|
||||
"navigationBarTitleText": "实名认证"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/bill/list",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的账单"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/bill/detail",
|
||||
"style": {
|
||||
"navigationBarTitleText": "账单明细"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/user/monthCardList",
|
||||
"style": {
|
||||
@ -115,6 +103,24 @@
|
||||
"style": {
|
||||
"navigationBarTitleText": "月结卡编辑"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/user/exclusiveCourier",
|
||||
"style": {
|
||||
"navigationBarTitleText": "专属快递员"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/bill/list",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的账单"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/bill/detail",
|
||||
"style": {
|
||||
"navigationBarTitleText": "账单明细"
|
||||
}
|
||||
}
|
||||
|
||||
],
|
||||
|
||||
@ -66,7 +66,7 @@
|
||||
return {
|
||||
mainBtnlist: [
|
||||
{ title: '下单寄件', subTitle: "上门揽件/寄仓库", icon: getCdnUrl(`sdg/btn-send.png`), url: 'post/post' },
|
||||
{ title: '专属小哥', subTitle: "下单给专属业务员", icon: getCdnUrl(`sdg/btn-bindbr.png`), url: '' }
|
||||
{ title: '专属小哥', subTitle: "下单给专属业务员", icon: getCdnUrl(`sdg/btn-bindbr.png`), url: 'user/exclusiveCourier' }
|
||||
],
|
||||
toolBtnlist: [
|
||||
{ title: '进仓单', subTitle: "这里是短语简介", icon: getCdnUrl(`sdg/t-jcd.png`), url: '' },
|
||||
|
||||
182
pages/user/exclusiveCourier.vue
Normal file
182
pages/user/exclusiveCourier.vue
Normal file
@ -0,0 +1,182 @@
|
||||
<template>
|
||||
<tpx-layout>
|
||||
<template v-slot:header>
|
||||
</template>
|
||||
|
||||
<template v-slot:body>
|
||||
<scroll-view :scroll-y="true" @scrolltolower="onScrollBottom()" class="pos-abt-all"
|
||||
>
|
||||
<view class="pgb-header">
|
||||
<view class="com-jianju">
|
||||
<!-- 关键字搜索框 -->
|
||||
<tpx-search placeholder="请输入工号或手机号码" v-model:value="searchParam.keyword" @change="handleSearchParamChange()" ></tpx-search>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="pgb-cont">
|
||||
<!-- 列表数据 -->
|
||||
<!-- -->
|
||||
<view>
|
||||
<view v-for="(item) in dataList" class="blcok-white radius-20 mb-20" style="margin-top: 0;"
|
||||
|
||||
>
|
||||
<view>
|
||||
<u-row justify="between">
|
||||
<u-row @click="handleItemClick(item)">
|
||||
<u-avatar size="100"></u-avatar>
|
||||
<view class="pl-10">
|
||||
<u-text :text="'李 晓'" size="30" :bold="true" lines="1"></u-text>
|
||||
<view class="mt-10">
|
||||
<u-rate :value="3.5" :readonly="true" size="28"></u-rate>
|
||||
</view>
|
||||
</view>
|
||||
</u-row>
|
||||
<u-row
|
||||
>
|
||||
<u-button @click="handleItemClick(item)" shape="circle" type="primary"
|
||||
custom-style="height: 54rpx; width:120rpx;margin-left: 12rpx;white-space: nowrap;">去发货</u-button>
|
||||
</u-row>
|
||||
</u-row>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 加载更多 -->
|
||||
<u-loadmore icon-size="28" font-size="28" margin-top="30" v-if="showLoadMore || loadedAll"
|
||||
:status="loadedAll ? 'nomore' : 'loading'" />
|
||||
|
||||
<!-- 空数据页 -->
|
||||
<view v-if="dataList.length == 0" style="padding-top: 100rpx;">
|
||||
<u-empty text="无数据" :icon="getCdnUrl('kong.png')" textSize="28" width="86" height="97">
|
||||
</u-empty>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</template>
|
||||
|
||||
<template v-slot:footer>
|
||||
<view class="blcok-white-noradius" @click="handleScan">
|
||||
<u-row justify="between">
|
||||
<view>
|
||||
<u-text :text="'扫码绑定'" size="30" :bold="true" lines="1"></u-text>
|
||||
<u-text margin="10rpx 0 0 0" :text="'扫描快递小哥二维码'" size="28" color="#999"></u-text>
|
||||
<u-text margin="10rpx 0 0 0" :text="'即可享受快递寄件、专属送快递服务'" size="28" color="#999"></u-text>
|
||||
</view>
|
||||
<view>
|
||||
<u-icon name="scan" size="88" color="#B12D29"></u-icon>
|
||||
</view>
|
||||
</u-row>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
</tpx-layout>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import getCdnUrl from "@/common/getCdnUrl"
|
||||
import { goto, goBack, scanCode, setClipboardData, confirmModal, showLoading } from "@/common/untool"
|
||||
|
||||
export default {
|
||||
props: {
|
||||
// hasLeftWin: {
|
||||
// type: Boolean
|
||||
// }
|
||||
},
|
||||
computed: {
|
||||
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
searchParam: {
|
||||
keyword: '',
|
||||
},
|
||||
queryOption: {},
|
||||
dataList: [
|
||||
{},{},{},{},{},{},{},{}
|
||||
],
|
||||
showLoadMore: false,
|
||||
loadedAll: false
|
||||
}
|
||||
},
|
||||
onShareAppMessage() {
|
||||
return {
|
||||
// title: '',
|
||||
// path: 'TODO'
|
||||
}
|
||||
},
|
||||
onLoad(queryOption) {
|
||||
this.queryOption = queryOption
|
||||
this.searchParam.tabType = queryOption.tab || tabList[0].val
|
||||
this.initData();
|
||||
},
|
||||
onUnload() {
|
||||
},
|
||||
methods: {
|
||||
goto,
|
||||
setClipboardData,
|
||||
getCdnUrl,
|
||||
initData(){
|
||||
// showLoading()
|
||||
setTimeout(() => {
|
||||
uni.stopPullDownRefresh();
|
||||
}, 300);
|
||||
},
|
||||
setListData() {
|
||||
|
||||
},
|
||||
|
||||
onScrollBottom() {
|
||||
console.log("onScrollBottom");
|
||||
if (this.loadedAll) {
|
||||
return;
|
||||
}
|
||||
this.showLoadMore = true;
|
||||
setTimeout(() => {
|
||||
this.setListData();
|
||||
}, 300);
|
||||
},
|
||||
handleSearchMoreBtn(){
|
||||
if(!this.showLoadMore) {
|
||||
// 回显更多条件
|
||||
Object.keys(this.tmpSearchParam).map(t=> {
|
||||
this.tmpSearchParam[t] = this.searchParam[t] || ''
|
||||
})
|
||||
}
|
||||
this.showSearchMore = !this.showSearchMore
|
||||
},
|
||||
handleItemClick(item){
|
||||
if(this.queryOption.type == "choose") {
|
||||
goBack()
|
||||
} else {
|
||||
goto(`post/post?bindUserId=${item.id}`)
|
||||
}
|
||||
},
|
||||
async handleScan() {
|
||||
const res = await scanCode()
|
||||
debugger
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@import '@/common/uni-nvue.scss';
|
||||
page {
|
||||
background-color: #F6F6F6;
|
||||
height: 100% !important;
|
||||
}
|
||||
|
||||
</style>
|
||||
<style scoped lang="scss">
|
||||
.pgb-header {
|
||||
// padding-top: --status-bar-height;
|
||||
padding-top: 30rpx;
|
||||
padding-bottom: 30rpx;
|
||||
background-color: #FFF;
|
||||
position: relative;
|
||||
}
|
||||
.pgb-cont{
|
||||
padding: 30rpx;
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in New Issue
Block a user