@ -1,126 +0,0 @@ |
|||||
{ |
|
||||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages |
|
||||
{ |
|
||||
"path": "pages/login/login", |
|
||||
"style": { |
|
||||
"navigationBarTitleText": "", |
|
||||
"enablePullDownRefresh": false |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"path": "pages/card/card_detail", |
|
||||
"style": { |
|
||||
"navigationStyle": "custom" |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"path": "pages/card/card_detail2", |
|
||||
"style": { |
|
||||
"navigationStyle": "custom" |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"path": "pages/card/card", |
|
||||
"style": { |
|
||||
"navigationStyle": "custom" |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"path": "pages/card/card_booking", |
|
||||
"style": { |
|
||||
"navigationBarTitleText": "预约提货", |
|
||||
"enablePullDownRefresh": false |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"path": "pages/card/card_record", |
|
||||
"style": { |
|
||||
"navigationBarTitleText": "预约记录" |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"path": "pages/card/card_bind", |
|
||||
"style": { |
|
||||
"navigationStyle": "custom" |
|
||||
} |
|
||||
}, |
|
||||
|
|
||||
// 扫码进入 |
|
||||
{ |
|
||||
"path": "pages/card/card_bind2", |
|
||||
"style": { |
|
||||
"navigationStyle": "custom" |
|
||||
} |
|
||||
}, { |
|
||||
"path": "pages/index/BindPhone", |
|
||||
"style": { |
|
||||
"navigationBarTitleText": "绑定账号", |
|
||||
"navigationStyle": "custom", |
|
||||
"app-plus": { |
|
||||
"scrollIndicator": false //禁用原生导航栏, |
|
||||
} |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"path": "pages/home/UserFragment", |
|
||||
"style": { |
|
||||
"navigationBarTitleText": "绑定账号", |
|
||||
"navigationStyle": "custom", |
|
||||
"app-plus": { |
|
||||
"scrollIndicator": false //禁用原生导航栏, |
|
||||
} |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"path": "pages/card/card_record_detail", |
|
||||
"style": { |
|
||||
"navigationBarTitleText": "预约详情", |
|
||||
"enablePullDownRefresh": false |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"path": "pages/record/recordList", |
|
||||
"style": { |
|
||||
"navigationBarTitleText": "预约记录" |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"path": "pages/good/goodsDetail", |
|
||||
"style": { |
|
||||
"navigationBarTitleText": "商品详情", |
|
||||
"enablePullDownRefresh": false |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"path": "pages/SelectAddressActivity", |
|
||||
"style": { |
|
||||
"navigationBarTitleText": "提货点列表", |
|
||||
"enablePullDownRefresh": false |
|
||||
} |
|
||||
} |
|
||||
], |
|
||||
"globalStyle": { |
|
||||
"navigationBarTextStyle": "white", |
|
||||
"navigationBarTitleText": "uni-app", |
|
||||
"navigationBarBackgroundColor": "#FE9039", |
|
||||
"backgroundColor": "#FE9039" |
|
||||
}, |
|
||||
"tabBar": { |
|
||||
"color": "#7A7E83", |
|
||||
"selectedColor": "#191919", |
|
||||
"borderStyle": "black", |
|
||||
"backgroundColor": "#ffffff", |
|
||||
"list": [{ |
|
||||
"pagePath": "pages/card/card", |
|
||||
"text": "礼包", |
|
||||
"iconPath": "static/bomicon/bom_notPack.png", |
|
||||
"selectedIconPath": "static/bomicon/bom_pack.png" |
|
||||
}, { |
|
||||
"pagePath": "pages/record/recordList", |
|
||||
"text": "预约记录", |
|
||||
"iconPath": "static/bomicon/bom_notRecord.png", |
|
||||
"selectedIconPath": "static/bomicon/bom_record.png" |
|
||||
}] |
|
||||
}, |
|
||||
"uniIdRouter": {} |
|
||||
} |
|
@ -1,244 +0,0 @@ |
|||||
<template> |
|
||||
<view> |
|
||||
<view style="position: sticky;top: 0;background-color: #FE9039;"> |
|
||||
<view class="search-container"> |
|
||||
<!-- 搜索框 --> |
|
||||
<view class="search-container-bar"> |
|
||||
<!-- :cancelText="keyBoardPopup ? '取消' : '搜索'" --> |
|
||||
<uni-search-bar ref="searchBar" style="flex:1;margin-left: 20rpx;" radius="100" |
|
||||
v-model="associativeText" :focus="focus" :placeholder="hotWorld" clearButton="auto" |
|
||||
cancelButton="none" @clear="clear" /> |
|
||||
<view v-if="stringIsNotEmpty(associativeText) && associativeText!=page.key" @click="search" |
|
||||
style="margin-right: 10px;font-size: 13px; color: #FED6B5;">搜索</view> |
|
||||
</view> |
|
||||
</view> |
|
||||
<!-- <view class="search-body"> |
|
||||
<view |
|
||||
style="font-size: 26rpx;padding-left: 50rpx;padding-right: 40rpx;padding-top: 10rpx;padding-bottom: 20rpx;color: #FED6B5;"> |
|
||||
输入关键字筛选提货点 |
|
||||
</view> |
|
||||
</view> --> |
|
||||
</view> |
|
||||
|
|
||||
|
|
||||
<loading-state ref="pageView" @request="request"> |
|
||||
<!-- 搜索联想 --> |
|
||||
<view style="display: flex;flex-direction: column;background: #FFFFFF; |
|
||||
border-top-left-radius: 30px;border-top-right-radius: 30px; padding:10px 20px;margin-top: 10px;box-sizing: border-box;padding-bottom: 0px;" |
|
||||
v-for="(item,index) in dataList" :key="index"> |
|
||||
<!-- |
|
||||
<view |
|
||||
style="display: flex;flex-direction: row;width: 100%;box-sizing: border-box;width: 100%;margin-top:10rpx ;align-items: center;"> |
|
||||
<image src="../static/address_name.png" style="width: 50rpx;height: 50rpx;flex-shrink: 0;"> |
|
||||
</image> |
|
||||
<text |
|
||||
style="font-size: 31.5rpx;margin-left: 18rpx;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;">{{item.name}} |
|
||||
</text> |
|
||||
</view> |
|
||||
|
|
||||
<text |
|
||||
style="font-size: 24rpx;color: #999999;margin-top: 6rpx;box-sizing: border-box;width: 100%;display:inline-block;white-space: pre-wrap; word-wrap: break-word;height: auto;">营业时间:{{item.businessHours}}</text> |
|
||||
|
|
||||
<view style="display: flex;flex-direction: row;margin-top: 22rpx;"> |
|
||||
<image v-if="false" |
|
||||
style="width: 120rpx;height: 120rpx;border-radius: 20rpx;flex-shrink: 0;background-color: #fafafa;"> |
|
||||
</image> |
|
||||
<view style="display: flex;flex: 1;flex-direction: column;margin-left: 20rpx;margin-top: 10rpx;"> |
|
||||
<view style="display: flex;flex-direction: row;"> |
|
||||
<image src="../static/address_location.png" |
|
||||
style="width: 16px;height: 16px;flex-shrink: 0;margin-right: 3px;"> |
|
||||
</image> |
|
||||
<view style="color: #666666;font-size: 29.5rpx;">{{item.address}} |
|
||||
</view> |
|
||||
</view> |
|
||||
<view style="display: flex;flex-direction: row;margin-top: 22rpx;"> |
|
||||
<image src="../static/address_phone.png" |
|
||||
style="width: 16px;height: 16px;margin-right: 3px;flex-shrink: 0;"> |
|
||||
</image> |
|
||||
<view style="color: #5259D7;font-size: 29.5rpx;">{{item.phone}}</view> |
|
||||
</view> |
|
||||
</view> |
|
||||
</view> |
|
||||
|
|
||||
|
|
||||
<view style="display: flex;flex-direction: row;margin-top: 38rpx;border-top: 1rpx #f1f2f3 solid;"> |
|
||||
<view style="flex: 1;"></view> |
|
||||
|
|
||||
<view class="btn" style="flex-shrink: 0;font-size: 30rpx;color: #191919;" |
|
||||
@click.stop="phone(item.phone)"> |
|
||||
<image src="../static/address_phone2.png" style="width: 18px;height: 18px;"></image> |
|
||||
<view style="font-size: 13px;margin-left: 6px;">电话</view> |
|
||||
</view> |
|
||||
<view class="btn" style="flex-shrink: 0;font-size: 30rpx;color: #191919;" |
|
||||
@click.stop="confirm(item)"> |
|
||||
<image src="../static/address_confirm.png" style="width: 18px;height: 18px;"></image> |
|
||||
<view style="font-size: 13px;margin-left: 6px;">确定</view> |
|
||||
</view> |
|
||||
</view> --> |
|
||||
|
|
||||
<text style="font-size: 18px;font-weight: 600;font-family: sans-serif;color: 333;">{{item.name}}</text> |
|
||||
|
|
||||
<view style="display: flex;flex-direction: row;align-items: center;margin-top: 8px;"> |
|
||||
<image src="https://supervise.yxtsoft.com/lpk/image/date.png" style="width: 20px;height: 20px;"> |
|
||||
</image> |
|
||||
<text style="margin-left: 5px;font-size: 12px; color: #999;">营业时间:{{item.businessHours}}</text> |
|
||||
</view> |
|
||||
|
|
||||
<view style="display: flex;flex-direction: row;align-items: center;margin-top: 8px;"> |
|
||||
<image src="https://supervise.yxtsoft.com/lpk/image/location.png" style="width: 20px;height: 20px;"> |
|
||||
</image> |
|
||||
<text style="margin-left: 5px;font-size: 12px; color: #999;flex: 1;">门店地址:{{item.address}}</text> |
|
||||
<image src="https://supervise.yxtsoft.com/lpk/image/navigation.png" |
|
||||
style="width: 20px;height: 20px; margin-right: 20px;"></image> |
|
||||
</view> |
|
||||
|
|
||||
<view style="display: flex;flex-direction: row;margin-top: 38rpx;border-top: 1rpx #f1f2f3 solid; justify-content: space-between; |
|
||||
padding-left: 30px;padding-right:30px;"> |
|
||||
|
|
||||
<view class="btn" @click.stop="phone(item.phone)"> |
|
||||
<image src="https://supervise.yxtsoft.com/lpk/image/phone.png" style="width: 20px;height: 20px;"> |
|
||||
</image> |
|
||||
<text style="margin-left: 5px;font-size: 14px; color: #666;">电话咨询</text> |
|
||||
</view> |
|
||||
|
|
||||
<view class="btn" @click.stop="confirm(item)"> |
|
||||
<image src="https://supervise.yxtsoft.com/lpk/image/user.png" style="width: 20px;height: 20px;"> |
|
||||
</image> |
|
||||
<text style="margin-left: 5px;font-size: 14px; color: #666;">预约自提</text> |
|
||||
</view> |
|
||||
|
|
||||
</view> |
|
||||
|
|
||||
</view> |
|
||||
|
|
||||
</loading-state> |
|
||||
<view style="height: 20px;"></view> |
|
||||
</view> |
|
||||
</template> |
|
||||
|
|
||||
<script> |
|
||||
export default { |
|
||||
data() { |
|
||||
return { |
|
||||
page: { |
|
||||
key: '' |
|
||||
}, |
|
||||
associativeText: '', |
|
||||
hotWorld: '输入关键字搜索提货点', // 搜索热词,如果没有输入即回车,则搜索热词,但是不会加入搜索记录 |
|
||||
focus: true, // 是否自动聚焦 |
|
||||
dataList: [] |
|
||||
} |
|
||||
}, |
|
||||
created() { |
|
||||
// 首次请求 |
|
||||
this.request() |
|
||||
|
|
||||
// #ifdef APP-PLUS |
|
||||
uni.onKeyboardHeightChange((res) => { |
|
||||
this.keyBoardPopup = res.height !== 0; |
|
||||
}) |
|
||||
// #endif |
|
||||
}, |
|
||||
methods: { |
|
||||
search() { |
|
||||
this.page.key = this.associativeText |
|
||||
this.request() |
|
||||
}, |
|
||||
phone(num) { |
|
||||
uni.makePhoneCall({ |
|
||||
phoneNumber: num |
|
||||
}); |
|
||||
}, |
|
||||
confirm(item) { |
|
||||
uni.$emit('address', item) |
|
||||
uni.navigateBack() |
|
||||
}, |
|
||||
request() { |
|
||||
this.$nextTick(() => { |
|
||||
this.$refs.pageView.setLoadState(0) |
|
||||
}) |
|
||||
let _this = this |
|
||||
_this.$api.address({ |
|
||||
'name': this.page.key |
|
||||
}).then((resp) => { |
|
||||
_this.dataList = resp |
|
||||
if (resp.length == 0) { |
|
||||
_this.$nextTick(() => { |
|
||||
_this.$refs.pageView.setLoadState(100) |
|
||||
}) |
|
||||
} else { |
|
||||
_this.$nextTick(() => { |
|
||||
_this.$refs.pageView.setLoadState(2) |
|
||||
}) |
|
||||
} |
|
||||
}).catch(e => { |
|
||||
_this.$nextTick(() => { |
|
||||
_this.$refs.pageView.setLoadState(1) |
|
||||
}) |
|
||||
}) |
|
||||
}, |
|
||||
clear(res) { |
|
||||
this.page.key = '' |
|
||||
this.request() |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
</script> |
|
||||
|
|
||||
|
|
||||
<style lang="scss"> |
|
||||
uni-page-body, |
|
||||
page { |
|
||||
background: #f3f4f6; |
|
||||
} |
|
||||
|
|
||||
.btn { |
|
||||
margin-top: 10px; |
|
||||
border: 1px solid #FEA561; |
|
||||
border-radius: 20px; |
|
||||
display: flex;flex-direction: row; |
|
||||
align-items: center; |
|
||||
justify-content: center; |
|
||||
padding: 5px 10px; |
|
||||
margin-bottom: 10px; |
|
||||
} |
|
||||
|
|
||||
.search-body { |
|
||||
background-color: #FE9039; |
|
||||
border-bottom-right-radius: 10px; |
|
||||
border-bottom-left-radius: 10px; |
|
||||
} |
|
||||
|
|
||||
@mixin uni-flex { |
|
||||
/* #ifndef APP-NVUE */ |
|
||||
display: flex; |
|
||||
/* #endif */ |
|
||||
} |
|
||||
|
|
||||
$search-bar-height: 52px; |
|
||||
$word-container_header-height: 72rpx; |
|
||||
|
|
||||
.search-container { |
|
||||
height: $search-bar-height; |
|
||||
@include uni-flex; |
|
||||
flex-direction: column; |
|
||||
justify-content: center; |
|
||||
align-items: center; |
|
||||
position: relative; |
|
||||
background: white; |
|
||||
|
|
||||
@at-root { |
|
||||
#{&}-bar { |
|
||||
@include uni-flex; |
|
||||
flex-direction: row; |
|
||||
justify-content: center; |
|
||||
align-items: center; |
|
||||
position: absolute; |
|
||||
top: 0; |
|
||||
left: 0; |
|
||||
right: 0; |
|
||||
background: #FE9039; |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
</style> |
|
@ -0,0 +1,54 @@ |
|||||
|
<template> |
||||
|
<view style="background-color: #FE9039;padding-top: 5vw;"> |
||||
|
|
||||
|
<view style="display: flex;flex-direction: column;background: #fff; border-radius: 25px; align-items: center; margin-left: 5vw;margin-right: 5vw;"> |
||||
|
<view class="btn" @click="bind"> |
||||
|
<image src="https://supervise.yxtsoft.com/lpk/image/binding.png" style="width: 15px;height: 15px;"> |
||||
|
</image> |
||||
|
<text |
||||
|
style="height: 45px;line-height: 45px;font-size: 17px; text-align: center;color: #FE6B00;margin-left: 11px;">绑定新卡</text> |
||||
|
</view> |
||||
|
</view> |
||||
|
|
||||
|
<view |
||||
|
style="display: flex;flex-direction: column;background-color: #fff; border-top-left-radius: 25px;border-top-right-radius: 25px;margin-top: 5vw;"> |
||||
|
|
||||
|
<z-paging ref="paging" use-page-scroll v-model="data" @query="queryList" :refresher-enabled="false"> |
||||
|
|
||||
|
</z-paging> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
|
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
// 分页的请求 |
||||
|
queryList(pageNo, pageSize) { |
||||
|
let _this = this |
||||
|
_this.$api.cardList({ |
||||
|
"current": pageNo, |
||||
|
"size": pageSize, |
||||
|
"params": { |
||||
|
"customerSid": getApp().globalData.sid |
||||
|
} |
||||
|
}).then((resp) => { |
||||
|
// 添加数据源 |
||||
|
this.$refs.paging.complete(resp.records) |
||||
|
}).catch(e => { |
||||
|
// 出错了,点击重试 |
||||
|
_this.$refs.paging.complete(false); |
||||
|
}) |
||||
|
}, |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
|
||||
|
</style> |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.5 KiB |