update
This commit is contained in:
parent
6e7fcc5604
commit
5636b8fd0d
2
App.vue
2
App.vue
@ -93,6 +93,8 @@ export default {
|
|||||||
// appId: "wx6a8173c6299c7a93",
|
// appId: "wx6a8173c6299c7a93",
|
||||||
})
|
})
|
||||||
.then(async (data) => {
|
.then(async (data) => {
|
||||||
|
console.log('fdsfgaslkfs', data);
|
||||||
|
|
||||||
_this.$store.commit("setUser", data.Data);
|
_this.$store.commit("setUser", data.Data);
|
||||||
_this.user = data.Data;
|
_this.user = data.Data;
|
||||||
if (data.ResultCode === "100") {
|
if (data.ResultCode === "100") {
|
||||||
|
|||||||
@ -3,25 +3,15 @@
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="contentTop">
|
<div class="contentTop">
|
||||||
<span class="title">您对商品满意吗?</span>
|
<span class="title">您对商品满意吗?</span>
|
||||||
<checkbox
|
<checkbox class="anonymous" :checked="saveMsg.isAnonymous" color="#CAA97F"
|
||||||
class="anonymous"
|
@change="isAnonymous($event, saveMsg)">
|
||||||
:checked="saveMsg.isAnonymous"
|
|
||||||
color="#CAA97F"
|
|
||||||
@change="isAnonymous($event, saveMsg)"
|
|
||||||
>
|
|
||||||
<text>匿名评价</text>
|
<text>匿名评价</text>
|
||||||
</checkbox>
|
</checkbox>
|
||||||
</div>
|
</div>
|
||||||
<div class="starRate">
|
<div class="starRate">
|
||||||
<image
|
<image class="shopImg" mode="aspectFit" lazy-load="true" :src="storeMsg.MERCHANTS_LOGO ||
|
||||||
class="shopImg"
|
|
||||||
mode="aspectFit"
|
|
||||||
lazy-load="true"
|
|
||||||
:src="
|
|
||||||
storeMsg.MERCHANTS_LOGO ||
|
|
||||||
'https://eshangtech.com/ShopICO/no-picture.png'
|
'https://eshangtech.com/ShopICO/no-picture.png'
|
||||||
"
|
" />
|
||||||
/>
|
|
||||||
|
|
||||||
<div class="rateBox">
|
<div class="rateBox">
|
||||||
<div class="shopName">
|
<div class="shopName">
|
||||||
@ -32,26 +22,14 @@
|
|||||||
: proMsg.COMMODITY_NAME || "-"
|
: proMsg.COMMODITY_NAME || "-"
|
||||||
}} -->
|
}} -->
|
||||||
</div>
|
</div>
|
||||||
<uni-rate
|
<uni-rate :size="24" allowHalf v-model="saveMsg.commentScore" @change="changeRate($event, saveMsg)" />
|
||||||
:size="24"
|
|
||||||
allowHalf
|
|
||||||
v-model="saveMsg.commentScore"
|
|
||||||
@change="changeRate($event, saveMsg)"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="textBox">
|
<div class="textBox">
|
||||||
<textarea
|
<textarea cols="30" rows="5" :disabled="detailObj.COMMENT_STATE === 1" :placeholder="saveMsg.merchantsId
|
||||||
cols="30"
|
|
||||||
rows="5"
|
|
||||||
:disabled="detailObj.COMMENT_STATE === 1"
|
|
||||||
:placeholder="
|
|
||||||
saveMsg.merchantsId
|
|
||||||
? '说说这家店的口味、环境、服务'
|
? '说说这家店的口味、环境、服务'
|
||||||
: '商品满足你的期待吗?说说你的使用心得,分享给想买的他们吧'
|
: '商品满足你的期待吗?说说你的使用心得,分享给想买的他们吧'
|
||||||
"
|
" v-model="saveMsg.commentContent"></textarea>
|
||||||
v-model="saveMsg.commentContent"
|
|
||||||
></textarea>
|
|
||||||
|
|
||||||
<view class="tip-text"> 评价文字不可少于3字 </view>
|
<view class="tip-text"> 评价文字不可少于3字 </view>
|
||||||
<view class="photo-box">
|
<view class="photo-box">
|
||||||
@ -526,17 +504,20 @@ export default {
|
|||||||
background: #f5f6f7;
|
background: #f5f6f7;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 16rpx 32rpx;
|
padding: 16rpx 32rpx;
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border-radius: 6rpx;
|
border-radius: 6rpx;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 32rpx;
|
padding: 32rpx;
|
||||||
|
|
||||||
.contentTop {
|
.contentTop {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-family: PingFangSC, PingFang SC;
|
font-family: PingFangSC, PingFang SC;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
@ -546,6 +527,7 @@ export default {
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.anonymous {
|
.anonymous {
|
||||||
font-family: PingFangSC, PingFang SC;
|
font-family: PingFangSC, PingFang SC;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
@ -563,6 +545,7 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
padding-bottom: 32rpx;
|
padding-bottom: 32rpx;
|
||||||
border-bottom: 2rpx solid #f0f0f0;
|
border-bottom: 2rpx solid #f0f0f0;
|
||||||
|
|
||||||
.shopImg {
|
.shopImg {
|
||||||
width: 104rpx;
|
width: 104rpx;
|
||||||
height: 104rpx;
|
height: 104rpx;
|
||||||
@ -570,8 +553,10 @@ export default {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin-right: 24rpx;
|
margin-right: 24rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rateBox {
|
.rateBox {
|
||||||
width: calc(100% - 130rpx);
|
width: calc(100% - 130rpx);
|
||||||
|
|
||||||
.shopName {
|
.shopName {
|
||||||
font-family: PingFangSC, PingFang SC;
|
font-family: PingFangSC, PingFang SC;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
@ -590,6 +575,7 @@ export default {
|
|||||||
|
|
||||||
.textBox {
|
.textBox {
|
||||||
margin-top: 24px;
|
margin-top: 24px;
|
||||||
|
|
||||||
.photo-box {
|
.photo-box {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -681,6 +667,7 @@ export default {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|
||||||
.submit {
|
.submit {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-family: PingFangSC, PingFang SC;
|
font-family: PingFangSC, PingFang SC;
|
||||||
@ -690,8 +677,8 @@ export default {
|
|||||||
line-height: 44rpx;
|
line-height: 44rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
background: #1890ff;
|
background: #07C160;
|
||||||
border-radius: 6rpx;
|
border-radius: 48rpx;
|
||||||
padding: 22rpx 0;
|
padding: 22rpx 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
<div class="content">{{ item.NOTICEINFO_CONTENT || "" }}</div>
|
<div class="content">{{ item.NOTICEINFO_CONTENT || "" }}</div>
|
||||||
<div class="descBox">
|
<div class="descBox">
|
||||||
<span class="name">{{ item.author || item.STAFF_NAME || "-" }}</span>
|
<span class="name">{{ item.author || item.STAFF_NAME || "-" }}</span>
|
||||||
<span class="time">{{ item.publishTime || item.START_DATE || "-" }}</span>
|
<span class="time">{{ item.publishTime || item.START_DATE || "" }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
@ -39,6 +39,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
|
import { handleFormatDate } from '../../utils/publicMethods'
|
||||||
import NoData from "../../components/noData.vue";
|
import NoData from "../../components/noData.vue";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@ -186,6 +187,7 @@ export default {
|
|||||||
let allRes = {}
|
let allRes = {}
|
||||||
all.forEach((item) => {
|
all.forEach((item) => {
|
||||||
if (item.NOTICEINFO_TYPE && item.NOTICEINFO_STATE === 1) {
|
if (item.NOTICEINFO_TYPE && item.NOTICEINFO_STATE === 1) {
|
||||||
|
item.START_DATE = handleFormatDate(item.START_DATE)
|
||||||
if (typeList.indexOf(item.NOTICEINFO_TYPE) === -1) {
|
if (typeList.indexOf(item.NOTICEINFO_TYPE) === -1) {
|
||||||
typeList.push(item.NOTICEINFO_TYPE)
|
typeList.push(item.NOTICEINFO_TYPE)
|
||||||
let list = [item]
|
let list = [item]
|
||||||
@ -196,6 +198,7 @@ export default {
|
|||||||
allRes[item.NOTICEINFO_TYPE] = list
|
allRes[item.NOTICEINFO_TYPE] = list
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
item.publishTime = handleFormatDate(item.publishTime)
|
||||||
typeList.push('ETC')
|
typeList.push('ETC')
|
||||||
let list = allRes['ETC']
|
let list = allRes['ETC']
|
||||||
if (list && list.length > 0) {
|
if (list && list.length > 0) {
|
||||||
|
|||||||
@ -788,7 +788,7 @@ export default {
|
|||||||
this.SCENICAREAOBJ = SCENICAREAOBJ
|
this.SCENICAREAOBJ = SCENICAREAOBJ
|
||||||
|
|
||||||
let req = {
|
let req = {
|
||||||
ProvinceCode: this.user.PROVINCE_CODE,
|
ProvinceCode: "530000",
|
||||||
latitude: latitude || this.seat.latitude || "",
|
latitude: latitude || this.seat.latitude || "",
|
||||||
longitude: longitude || this.seat.longitude || "",
|
longitude: longitude || this.seat.longitude || "",
|
||||||
ServerpartID: this.serviceDetail.SERVERPART_ID || "",
|
ServerpartID: this.serviceDetail.SERVERPART_ID || "",
|
||||||
@ -1217,6 +1217,8 @@ export default {
|
|||||||
method: "POST",
|
method: "POST",
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
let list = res.data;
|
let list = res.data;
|
||||||
|
console.log('充电', res);
|
||||||
|
|
||||||
let result = [];
|
let result = [];
|
||||||
if (list && list.length > 0) {
|
if (list && list.length > 0) {
|
||||||
list.forEach((item) => {
|
list.forEach((item) => {
|
||||||
@ -1701,7 +1703,7 @@ export default {
|
|||||||
// 拿到最近的服务区数据
|
// 拿到最近的服务区数据
|
||||||
async handleGetNearService(latitude, longitude) {
|
async handleGetNearService(latitude, longitude) {
|
||||||
let req = {
|
let req = {
|
||||||
Province_Code: this.user.PROVINCE_CODE || "530000",
|
Province_Code: "530000",
|
||||||
longitude: longitude,
|
longitude: longitude,
|
||||||
latitude: latitude,
|
latitude: latitude,
|
||||||
showservice: true,
|
showservice: true,
|
||||||
@ -1825,7 +1827,7 @@ export default {
|
|||||||
let newReq = {
|
let newReq = {
|
||||||
SearchParameter: {
|
SearchParameter: {
|
||||||
// NOTICEINFO_TYPES: 1010,
|
// NOTICEINFO_TYPES: 1010,
|
||||||
PROVINCE_CODE: this.user.PROVINCE_CODE || "530000",
|
PROVINCE_CODE: "530000",
|
||||||
NOTICEINFO_STATE: 1,
|
NOTICEINFO_STATE: 1,
|
||||||
},
|
},
|
||||||
PageIndex: 1,
|
PageIndex: 1,
|
||||||
|
|||||||
@ -727,8 +727,8 @@ export default {
|
|||||||
margin-bottom: 16rpx;
|
margin-bottom: 16rpx;
|
||||||
|
|
||||||
.orderItemCenterLeft {
|
.orderItemCenterLeft {
|
||||||
width: 192rpx;
|
width: 160rpx;
|
||||||
height: 192rpx;
|
height: 160rpx;
|
||||||
margin-right: 12rpx;
|
margin-right: 12rpx;
|
||||||
|
|
||||||
.orderItemShopImg {
|
.orderItemShopImg {
|
||||||
@ -738,8 +738,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.orderItemCenterRight {
|
.orderItemCenterRight {
|
||||||
width: calc(100% - 192rpx - 12rpx);
|
width: calc(100% - 160rpx - 12rpx);
|
||||||
height: 192rpx;
|
height: 160rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
.orderItemCenterRightLeft {
|
.orderItemCenterRightLeft {
|
||||||
@ -748,7 +748,7 @@ export default {
|
|||||||
.orderItemRightLeftLabel {
|
.orderItemRightLeftLabel {
|
||||||
font-family: PingFangSC, PingFang SC;
|
font-family: PingFangSC, PingFang SC;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 28rpx;
|
font-size: 24rpx;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
@ -779,7 +779,7 @@ export default {
|
|||||||
|
|
||||||
.unitPrice {
|
.unitPrice {
|
||||||
font-family: AppleSystemUIFont;
|
font-family: AppleSystemUIFont;
|
||||||
font-size: 28rpx;
|
font-size: 24rpx;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
line-height: 34rpx;
|
line-height: 34rpx;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@ -789,7 +789,7 @@ export default {
|
|||||||
|
|
||||||
.orderItemQuantity {
|
.orderItemQuantity {
|
||||||
font-family: AppleSystemUIFont;
|
font-family: AppleSystemUIFont;
|
||||||
font-size: 28rpx;
|
font-size: 24rpx;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
line-height: 34rpx;
|
line-height: 34rpx;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@ -828,7 +828,7 @@ export default {
|
|||||||
.orderItemUnit {
|
.orderItemUnit {
|
||||||
font-family: PingFangSC, PingFang SC;
|
font-family: PingFangSC, PingFang SC;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 28rpx;
|
font-size: 24rpx;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|||||||
@ -127,8 +127,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="price-sum">
|
<div class="price-sum">
|
||||||
<div class="link-store" @click="callPhone">
|
<div class="link-store" @click="callPhone">
|
||||||
<van-icon name="phone-circle-o" size="40rpx" color="#CAA97F" custom-style="margin-right:16rpx;"></van-icon>
|
<!-- <van-icon name="phone-circle-o" size="40rpx" color="#CAA97F" custom-style="margin-right:16rpx;"></van-icon>
|
||||||
联系商家
|
联系商家 -->
|
||||||
</div>
|
</div>
|
||||||
<div class="">
|
<div class="">
|
||||||
<span>合计</span>
|
<span>合计</span>
|
||||||
|
|||||||
@ -333,7 +333,7 @@ export default {
|
|||||||
.statusBox {
|
.statusBox {
|
||||||
font-family: PingFangSC, PingFang SC;
|
font-family: PingFangSC, PingFang SC;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 28rpx;
|
font-size: 24rpx;
|
||||||
color: #F83D3D;
|
color: #F83D3D;
|
||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
@ -351,8 +351,8 @@ export default {
|
|||||||
margin-bottom: 16rpx;
|
margin-bottom: 16rpx;
|
||||||
|
|
||||||
.orderItemCenterLeft {
|
.orderItemCenterLeft {
|
||||||
width: 192rpx;
|
width: 160rpx;
|
||||||
height: 192rpx;
|
height: 160rpx;
|
||||||
margin-right: 12rpx;
|
margin-right: 12rpx;
|
||||||
|
|
||||||
.orderItemShopImg {
|
.orderItemShopImg {
|
||||||
@ -362,8 +362,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.orderItemCenterRight {
|
.orderItemCenterRight {
|
||||||
width: calc(100% - 192rpx - 12rpx);
|
width: calc(100% - 160rpx - 12rpx);
|
||||||
height: 192rpx;
|
height: 160rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
.orderItemCenterRightLeft {
|
.orderItemCenterRightLeft {
|
||||||
@ -372,7 +372,7 @@ export default {
|
|||||||
.orderItemRightLeftLabel {
|
.orderItemRightLeftLabel {
|
||||||
font-family: PingFangSC, PingFang SC;
|
font-family: PingFangSC, PingFang SC;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 28rpx;
|
font-size: 24rpx;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
@ -403,7 +403,7 @@ export default {
|
|||||||
|
|
||||||
.unitPrice {
|
.unitPrice {
|
||||||
font-family: AppleSystemUIFont;
|
font-family: AppleSystemUIFont;
|
||||||
font-size: 28rpx;
|
font-size: 24rpx;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
line-height: 34rpx;
|
line-height: 34rpx;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@ -413,7 +413,7 @@ export default {
|
|||||||
|
|
||||||
.orderItemQuantity {
|
.orderItemQuantity {
|
||||||
font-family: AppleSystemUIFont;
|
font-family: AppleSystemUIFont;
|
||||||
font-size: 28rpx;
|
font-size: 24rpx;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
line-height: 34rpx;
|
line-height: 34rpx;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@ -452,7 +452,7 @@ export default {
|
|||||||
.orderItemUnit {
|
.orderItemUnit {
|
||||||
font-family: PingFangSC, PingFang SC;
|
font-family: PingFangSC, PingFang SC;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 28rpx;
|
font-size: 24rpx;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|||||||
@ -169,8 +169,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="price-sum">
|
<div class="price-sum">
|
||||||
<div class="link-store" @click="callPhone">
|
<div class="link-store" @click="callPhone">
|
||||||
<van-icon name="phone-circle-o" size="40rpx" color="#CAA97F" custom-style="margin-right:16rpx;"></van-icon>
|
<!-- <van-icon name="phone-circle-o" size="40rpx" color="#CAA97F" custom-style="margin-right:16rpx;"></van-icon>
|
||||||
联系商家
|
联系商家 -->
|
||||||
</div>
|
</div>
|
||||||
<div class="">
|
<div class="">
|
||||||
<span>合计</span>
|
<span>合计</span>
|
||||||
|
|||||||
@ -109,6 +109,8 @@ export default {
|
|||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
onLoad(query) {
|
onLoad(query) {
|
||||||
|
console.log('this.userthis.userthis.user', this.user);
|
||||||
|
|
||||||
if (this.user.MEMBERSHIP_ID) {
|
if (this.user.MEMBERSHIP_ID) {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index',
|
url: '/pages/index/index',
|
||||||
|
|||||||
@ -2,7 +2,8 @@
|
|||||||
<view class="main">
|
<view class="main">
|
||||||
<view class="maintopBox">
|
<view class="maintopBox">
|
||||||
<view class="mainTopRight" @click="handleChangeSortType">
|
<view class="mainTopRight" @click="handleChangeSortType">
|
||||||
<view class="distanceText">{{ sortType === 1 ? '按距离' : '按票价' }}</view>
|
<!-- <view class="distanceText">{{ sortType === 1 ? '按距离' : '按票价' }}</view> -->
|
||||||
|
<view class="distanceText">按票价</view>
|
||||||
<image class="distanceIcon" src="https://eshangtech.com/caiyunyiImg/sortIcon.png" />
|
<image class="distanceIcon" src="https://eshangtech.com/caiyunyiImg/sortIcon.png" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -30,7 +31,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="scenicBottom">
|
<view class="scenicBottom">
|
||||||
<view class="scenicLeft">
|
<view class="scenicLeft">
|
||||||
<image class="scenicIcon" src="https://eshangtech.com/caiyunyiImg/fixedIcon.png" />
|
<image class="scenicIcon" src="/static/images/home/servicePosition.svg" />
|
||||||
<view class="scenicLabel">距离{{ item.ScenicDistance || '-' }}km</view>
|
<view class="scenicLabel">距离{{ item.ScenicDistance || '-' }}km</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="scenicRight" v-if="item.TICKET_PRICE > 0">
|
<view class="scenicRight" v-if="item.TICKET_PRICE > 0">
|
||||||
@ -55,11 +56,12 @@ import { mapGetters } from "vuex";
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
sortType: 1,// 1:按距离,2:按票价
|
sortType: 2,// 1:按距离,2:按票价 1:倒叙 2:正序
|
||||||
dataList: [],// 表单数据
|
dataList: [],// 表单数据
|
||||||
seat: {},
|
seat: {},
|
||||||
SCENICAREAOBJ: {},// 服务区类型的枚举
|
SCENICAREAOBJ: {},// 服务区类型的枚举
|
||||||
pageIndex: 1
|
pageIndex: 1,
|
||||||
|
isOver: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
@ -76,7 +78,7 @@ export default {
|
|||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async handleGetData() {
|
async handleGetData(sort) {
|
||||||
let SCENICAREA = uni.getStorageSync("SCENICAREAOBJ");
|
let SCENICAREA = uni.getStorageSync("SCENICAREAOBJ");
|
||||||
let SCENICAREAOBJ = {}
|
let SCENICAREAOBJ = {}
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
@ -98,17 +100,20 @@ export default {
|
|||||||
|
|
||||||
this.SCENICAREAOBJ = SCENICAREAOBJ
|
this.SCENICAREAOBJ = SCENICAREAOBJ
|
||||||
|
|
||||||
|
console.log('this.sortType', this.sortType);
|
||||||
|
console.log('sortsortsort', sort);
|
||||||
|
|
||||||
|
|
||||||
let req = {
|
let req = {
|
||||||
ProvinceCode: this.user.PROVINCE_CODE,
|
ProvinceCode: this.user.PROVINCE_CODE,
|
||||||
latitude: this.seat.latitude || "",
|
latitude: this.seat.latitude || "",
|
||||||
longitude: this.seat.longitude || "",
|
longitude: this.seat.longitude || "",
|
||||||
SortStr: this.sortType === 1 ? '' : 'TICKET_PRICE desc',
|
// SortStr: this.sortType === 1 ? 'ScenicDistance desc' : 'TICKET_PRICE desc',
|
||||||
// ServerpartID: this.serviceDetail.SERVERPART_ID || "",
|
// ServerpartID: this.serviceDetail.SERVERPART_ID || "",
|
||||||
type: 'encryption',
|
type: 'encryption',
|
||||||
PageIndex: this.pageIndex,
|
PageIndex: this.pageIndex,
|
||||||
PageSize: 20,
|
PageSize: 20,
|
||||||
SortStr: ""
|
SortStr: `TICKET_PRICE${this.sortType === 1 ? ' desc' : ''}`
|
||||||
}
|
}
|
||||||
console.log('reqreqreqreq', req);
|
console.log('reqreqreqreq', req);
|
||||||
|
|
||||||
@ -117,7 +122,7 @@ export default {
|
|||||||
req
|
req
|
||||||
);
|
);
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
console.log('景区数据 ', data);
|
console.log('景区数据 ', data.Result_Data.List);
|
||||||
let list = data.Result_Data.List
|
let list = data.Result_Data.List
|
||||||
let res = []
|
let res = []
|
||||||
if (list && list.length > 0) {
|
if (list && list.length > 0) {
|
||||||
@ -126,8 +131,19 @@ export default {
|
|||||||
res.push(item)
|
res.push(item)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
if (list.length < 20) {
|
||||||
|
this.isOver = true
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
this.isOver = true
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sort) {
|
||||||
|
this.dataList = []
|
||||||
|
this.dataList = list
|
||||||
|
} else {
|
||||||
this.dataList = this.dataList.concat(list)
|
this.dataList = this.dataList.concat(list)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleChangeSortType() {
|
handleChangeSortType() {
|
||||||
// 这里可以添加排序逻辑
|
// 这里可以添加排序逻辑
|
||||||
@ -136,10 +152,16 @@ export default {
|
|||||||
} else if (this.sortType === 2) {
|
} else if (this.sortType === 2) {
|
||||||
this.sortType = 1;
|
this.sortType = 1;
|
||||||
}
|
}
|
||||||
this.handleGetData()
|
this.isOver = false
|
||||||
|
this.pageIndex = 1
|
||||||
|
// this.dataList = []
|
||||||
|
this.handleGetData(true)
|
||||||
},
|
},
|
||||||
// 滑动到底部
|
// 滑动到底部
|
||||||
handleScrollBottom() {
|
handleScrollBottom() {
|
||||||
|
if (this.isOver) {
|
||||||
|
return
|
||||||
|
}
|
||||||
console.log('滑动到底部滑动到底部滑动到底部');
|
console.log('滑动到底部滑动到底部滑动到底部');
|
||||||
|
|
||||||
this.pageIndex = this.pageIndex + 1
|
this.pageIndex = this.pageIndex + 1
|
||||||
@ -239,7 +261,7 @@ export default {
|
|||||||
.scenicName {
|
.scenicName {
|
||||||
font-family: PingFangSC, PingFang SC;
|
font-family: PingFangSC, PingFang SC;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 29rpx;
|
font-size: 28rpx;
|
||||||
color: #222222;
|
color: #222222;
|
||||||
line-height: 42rpx;
|
line-height: 42rpx;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@ -260,7 +282,7 @@ export default {
|
|||||||
.scenicType {
|
.scenicType {
|
||||||
font-family: PingFangSC, PingFang SC;
|
font-family: PingFangSC, PingFang SC;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 22rpx;
|
font-size: 24rpx;
|
||||||
color: #3D7FFF;
|
color: #3D7FFF;
|
||||||
line-height: 32rpx;
|
line-height: 32rpx;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
@ -280,7 +302,7 @@ export default {
|
|||||||
.scenicRateText {
|
.scenicRateText {
|
||||||
font-family: PingFangSC, PingFang SC;
|
font-family: PingFangSC, PingFang SC;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 20rpx;
|
font-size: 24rpx;
|
||||||
color: rgba(0, 0, 0, 0.6);
|
color: rgba(0, 0, 0, 0.6);
|
||||||
line-height: 28rpx;
|
line-height: 28rpx;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@ -308,7 +330,7 @@ export default {
|
|||||||
.scenicLabel {
|
.scenicLabel {
|
||||||
font-family: PingFangSC, PingFang SC;
|
font-family: PingFangSC, PingFang SC;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 20rpx;
|
font-size: 24rpx;
|
||||||
color: rgba(0, 0, 0, 0.6);
|
color: rgba(0, 0, 0, 0.6);
|
||||||
line-height: 28rpx;
|
line-height: 28rpx;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@ -323,7 +345,7 @@ export default {
|
|||||||
.scenicRightLabel {
|
.scenicRightLabel {
|
||||||
font-family: PingFangSC, PingFang SC;
|
font-family: PingFangSC, PingFang SC;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 20rpx;
|
font-size: 24rpx;
|
||||||
color: rgba(0, 0, 0, 0.6);
|
color: rgba(0, 0, 0, 0.6);
|
||||||
line-height: 28rpx;
|
line-height: 28rpx;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@ -334,7 +356,7 @@ export default {
|
|||||||
.scenicUnit {
|
.scenicUnit {
|
||||||
font-family: PingFangSC, PingFang SC;
|
font-family: PingFangSC, PingFang SC;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 20rpx;
|
font-size: 24rpx;
|
||||||
color: #F13216;
|
color: #F13216;
|
||||||
line-height: 28rpx;
|
line-height: 28rpx;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|||||||
@ -692,7 +692,16 @@ export default {
|
|||||||
|
|
||||||
await this.handleGetServerpartDetail(this.serverpart);
|
await this.handleGetServerpartDetail(this.serverpart);
|
||||||
await this.handleGetMerchant();
|
await this.handleGetMerchant();
|
||||||
|
let idList = [1212, 1222, 1139, 1215];
|
||||||
|
if (idList.indexOf(this.serverpart) !== -1) {
|
||||||
await this.handleGetChargingStation(this.detailInfo);
|
await this.handleGetChargingStation(this.detailInfo);
|
||||||
|
} else {
|
||||||
|
this.chargingObj = {
|
||||||
|
have: 0,
|
||||||
|
use: 0,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
await this.handleGetNearScenic()
|
await this.handleGetNearScenic()
|
||||||
// this.$utils.addUserBehaviorNew();
|
// this.$utils.addUserBehaviorNew();
|
||||||
this.$utils.addUserBehaviorNew({
|
this.$utils.addUserBehaviorNew({
|
||||||
@ -705,7 +714,15 @@ export default {
|
|||||||
this.serverpart = currentService.SERVERPART_ID;
|
this.serverpart = currentService.SERVERPART_ID;
|
||||||
await this.handleGetServerpartDetail(this.serverpart);
|
await this.handleGetServerpartDetail(this.serverpart);
|
||||||
await this.handleGetMerchant();
|
await this.handleGetMerchant();
|
||||||
|
let idList = [1212, 1222, 1139, 1215];
|
||||||
|
if (idList.indexOf(this.serverpart) !== -1) {
|
||||||
await this.handleGetChargingStation(this.detailInfo);
|
await this.handleGetChargingStation(this.detailInfo);
|
||||||
|
} else {
|
||||||
|
this.chargingObj = {
|
||||||
|
have: 0,
|
||||||
|
use: 0,
|
||||||
|
};
|
||||||
|
}
|
||||||
await this.handleGetNearScenic()
|
await this.handleGetNearScenic()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -65,7 +65,8 @@
|
|||||||
: shopTypeList.length * 136 + 60 + 'rpx',
|
: shopTypeList.length * 136 + 60 + 'rpx',
|
||||||
}" -->
|
}" -->
|
||||||
<!-- 工会之家 -->
|
<!-- 工会之家 -->
|
||||||
<div class="rowBox" @click="handleGoUnionMall" v-if="pageType !== 'UnionMall'">
|
<div class="rowBox" @click="handleGoUnionMall"
|
||||||
|
v-if="pageType !== 'UnionMall' && user && user.INDUSTRY_MEMBERSHIP_ID">
|
||||||
<!-- && user && user.INDUSTRY_MEMBERSHIP_ID -->
|
<!-- && user && user.INDUSTRY_MEMBERSHIP_ID -->
|
||||||
<div class="imgBox">
|
<div class="imgBox">
|
||||||
<div class="itemImgBox">
|
<div class="itemImgBox">
|
||||||
|
|||||||
@ -138,10 +138,12 @@
|
|||||||
|
|
||||||
<div class="bottom" :style="{ bottom: `${50 + safeHeight}px` }">
|
<div class="bottom" :style="{ bottom: `${50 + safeHeight}px` }">
|
||||||
<div class="bottomLeft" v-if="pageType === 'normal'">
|
<div class="bottomLeft" v-if="pageType === 'normal'">
|
||||||
<radio :checked="isAllSelect" color="#4BCB7E" @click="handleAllSelect" />全选
|
<radio :checked="isAllSelect" :color="bigPageType === 'UnionMall' ? '#E43C3D' : '#4BCB7E'"
|
||||||
|
@click="handleAllSelect" />全选
|
||||||
</div>
|
</div>
|
||||||
<div class="bottomLeft" v-else>
|
<div class="bottomLeft" v-else>
|
||||||
<radio :checked="isAllDelete" color="#4BCB7E" @click="handleAllDelete" />全选
|
<radio :checked="isAllDelete" :color="bigPageType === 'UnionMall' ? '#E43C3D' : '#4BCB7E'"
|
||||||
|
@click="handleAllDelete" />全选
|
||||||
</div>
|
</div>
|
||||||
<div class="bottomRight" v-if="pageType === 'normal'">
|
<div class="bottomRight" v-if="pageType === 'normal'">
|
||||||
<text class="sum">合计</text>
|
<text class="sum">合计</text>
|
||||||
|
|||||||
@ -30,7 +30,8 @@
|
|||||||
<div class="scrollBox">
|
<div class="scrollBox">
|
||||||
<!-- :style="{ width: (shopTypeList.length + 2) * 70 + 'px' }" -->
|
<!-- :style="{ width: (shopTypeList.length + 2) * 70 + 'px' }" -->
|
||||||
|
|
||||||
<div class="bigTabItem" @click="handleGoUnionMall" v-if="pageType !== 'UnionMall'">
|
<div class="bigTabItem" @click="handleGoUnionMall"
|
||||||
|
v-if="pageType !== 'UnionMall' && user && user.INDUSTRY_MEMBERSHIP_ID">
|
||||||
<!-- && user && user.INDUSTRY_MEMBERSHIP_ID -->
|
<!-- && user && user.INDUSTRY_MEMBERSHIP_ID -->
|
||||||
<!-- style="width: 70px" -->
|
<!-- style="width: 70px" -->
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="remark">
|
<div class="remark">
|
||||||
<div class="remark-content">
|
<div class="remark-content">
|
||||||
<textarea
|
<textarea placeholder="填写额外对商家备注的信息" v-model="remark"></textarea>
|
||||||
placeholder="填写额外对商家备注的信息"
|
|
||||||
v-model="remark"
|
|
||||||
></textarea>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="comfirm-btn" @click="goOrder">确定</div>
|
<div class="comfirm-btn" @click="goOrder">确定</div>
|
||||||
@ -71,13 +68,13 @@ bodyColor = #CAA97F;
|
|||||||
}
|
}
|
||||||
|
|
||||||
.comfirm-btn {
|
.comfirm-btn {
|
||||||
border-radius: 4rpx;
|
border-radius: 32rpx;
|
||||||
height: 96rpx;
|
height: 96rpx;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
line-height: 96rpx;
|
line-height: 96rpx;
|
||||||
background: #333;
|
background: #4BCB7E;
|
||||||
color: bodyColor;
|
color: #fff;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,7 +29,7 @@
|
|||||||
<div class="sellement-apponit-unit">
|
<div class="sellement-apponit-unit">
|
||||||
<div class="time-title">就餐时间</div>
|
<div class="time-title">就餐时间</div>
|
||||||
<radio-group :value="radio" @change="onChangeRadio" class="radio-box bb1">
|
<radio-group :value="radio" @change="onChangeRadio" class="radio-box bb1">
|
||||||
<radio style="width: 60%" class="radio-list" color="#CAA97F" :name="beExpectedTo" checked-color="#CAA97F"
|
<radio style="width: 60%" class="radio-list" color="#4BCB7E" :name="beExpectedTo" checked-color="#4BCB7E"
|
||||||
@click="getRadio({ value: beExpectedTo })">
|
@click="getRadio({ value: beExpectedTo })">
|
||||||
<view class="section">
|
<view class="section">
|
||||||
<view class="picker">
|
<view class="picker">
|
||||||
@ -46,7 +46,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</radio>
|
</radio>
|
||||||
|
|
||||||
<radio style="width: 40%" class="radio-list" color="#CAA97F" :name="showTime" checked-color="#CAA97F"
|
<radio style="width: 40%" class="radio-list" color="#4BCB7E" :name="showTime" checked-color="#4BCB7E"
|
||||||
@click="getRadio({ value: showTime })">
|
@click="getRadio({ value: showTime })">
|
||||||
|
|
||||||
<picker mode="selector" :range="timeRange" :value="time" @change="bindTimeChange">
|
<picker mode="selector" :range="timeRange" :value="time" @change="bindTimeChange">
|
||||||
@ -85,7 +85,7 @@
|
|||||||
<div class="time-title">预约餐桌</div>
|
<div class="time-title">预约餐桌</div>
|
||||||
<radio-group :value="board" @change="onChangeIsPackage" class="radio-box bb1">
|
<radio-group :value="board" @change="onChangeIsPackage" class="radio-box bb1">
|
||||||
<view class="radio-list" v-for="(item, index) in boardList" :key="index">
|
<view class="radio-list" v-for="(item, index) in boardList" :key="index">
|
||||||
<radio :value="item.value" color="#CAA97F" @click="getBoard(item)" />
|
<radio :value="item.value" color="#4BCB7E" @click="getBoard(item)" />
|
||||||
<text class="radio-unit">{{ item.label }}</text>
|
<text class="radio-unit">{{ item.label }}</text>
|
||||||
</view>
|
</view>
|
||||||
</radio-group>
|
</radio-group>
|
||||||
@ -108,7 +108,7 @@
|
|||||||
<div class="time-title">是否打包</div>
|
<div class="time-title">是否打包</div>
|
||||||
<radio-group :value="isPackage" @change="onChangeIsPackage" class="radio-box bb1">
|
<radio-group :value="isPackage" @change="onChangeIsPackage" class="radio-box bb1">
|
||||||
<view class="radio-list" v-for="(item, index) in packageList" :key="index">
|
<view class="radio-list" v-for="(item, index) in packageList" :key="index">
|
||||||
<radio :value="item.value" color="#CAA97F" @click="getPackge(item)" />
|
<radio :value="item.value" color="#4BCB7E" @click="getPackge(item)" />
|
||||||
<text class="radio-unit">{{ item.name }}</text>
|
<text class="radio-unit">{{ item.name }}</text>
|
||||||
</view>
|
</view>
|
||||||
</radio-group>
|
</radio-group>
|
||||||
|
|||||||
@ -1311,7 +1311,7 @@ export default {
|
|||||||
width: 2rem;
|
width: 2rem;
|
||||||
height: 6rpx;
|
height: 6rpx;
|
||||||
// border-radius: 4px;
|
// border-radius: 4px;
|
||||||
background-color: #009DFF;
|
background-color: #4BCB7E;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
|
|||||||
@ -397,7 +397,7 @@
|
|||||||
> -->
|
> -->
|
||||||
|
|
||||||
<!-- 积分暂时没有规定 所以 -->
|
<!-- 积分暂时没有规定 所以 -->
|
||||||
<view class="rightBtn" v-if="good.PAY_METHOD !== 2000 && pageType !== 'pointsMall'">
|
<view class="rightBtn" v-if="good.PAY_METHOD !== 2000 && pageType !== 'pointsMall' && !offShop">
|
||||||
<div class="addCarBtn" @click="handleShowShopPopup(1)">加入购物车</div>
|
<div class="addCarBtn" @click="handleShowShopPopup(1)">加入购物车</div>
|
||||||
<div class="sellOut presale" @click="handleShowShopPopup(4)" v-if="isCountdown">
|
<div class="sellOut presale" @click="handleShowShopPopup(4)" v-if="isCountdown">
|
||||||
预售中
|
预售中
|
||||||
@ -415,7 +415,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="rightBtn" v-if="good.PAY_METHOD === 2000 || pageType === 'pointsMall'">
|
<view class="rightBtn" v-if="(good.PAY_METHOD === 2000 || pageType === 'pointsMall') && !offShop">
|
||||||
<div class="sellOut" style="width: 100%;border-radius: 16rpx;">
|
<div class="sellOut" style="width: 100%;border-radius: 16rpx;">
|
||||||
积分不足
|
积分不足
|
||||||
</div>
|
</div>
|
||||||
@ -447,6 +447,9 @@
|
|||||||
<div class="countdown" v-if="isCountdown || panicBuying">
|
<div class="countdown" v-if="isCountdown || panicBuying">
|
||||||
此商品为{{ panicBuying ? '热销' : '预售' }}商品,{{ panicBuying ? '抢购' : '起售' }}倒计时 {{ countdown || "" }}
|
此商品为{{ panicBuying ? '热销' : '预售' }}商品,{{ panicBuying ? '抢购' : '起售' }}倒计时 {{ countdown || "" }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- 商品下架显示 -->
|
||||||
|
<div class="offShopDown" v-if="offShop">商品已下架!</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@ -506,6 +509,7 @@ export default {
|
|||||||
timer: null, // 定时器
|
timer: null, // 定时器
|
||||||
isCollect: false,
|
isCollect: false,
|
||||||
shopId: "",// 商品id
|
shopId: "",// 商品id
|
||||||
|
offShop: false,// 判断商品是否下架了
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@ -535,6 +539,9 @@ export default {
|
|||||||
|
|
||||||
// 收藏
|
// 收藏
|
||||||
async handleCollect() {
|
async handleCollect() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||||
let _this = this;
|
let _this = this;
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
@ -576,6 +583,10 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (this.offShop) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
let req = {
|
let req = {
|
||||||
COLLECTION_ID: this.good.COLLECTION_ID || "",
|
COLLECTION_ID: this.good.COLLECTION_ID || "",
|
||||||
COLLECTION_TYPE: 2000,
|
COLLECTION_TYPE: 2000,
|
||||||
@ -1214,6 +1225,11 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_this.good = res.Data;
|
_this.good = res.Data;
|
||||||
|
// 判断商品是否已经下架了 若当前时间大于 下架时间 就代表 已经下架了
|
||||||
|
if (_this.good.OFF_DATE && new Date().getTime() > new Date(_this.good.OFF_DATE).getTime()) {
|
||||||
|
_this.offShop = true
|
||||||
|
}
|
||||||
|
|
||||||
_this.good.COMMODITY_CURRPRICE = _this.good.COMMODITY_MEMBERPRICE;
|
_this.good.COMMODITY_CURRPRICE = _this.good.COMMODITY_MEMBERPRICE;
|
||||||
_this.good.count = 1;
|
_this.good.count = 1;
|
||||||
_this.pageMsg.current = 0;
|
_this.pageMsg.current = 0;
|
||||||
@ -2422,6 +2438,26 @@ button:after {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.offShopDown {
|
||||||
|
width: 100%;
|
||||||
|
height: 64rpx;
|
||||||
|
background: #F5F6F7;
|
||||||
|
position: fixed;
|
||||||
|
z-index: 2;
|
||||||
|
left: 0;
|
||||||
|
bottom: 124rpx;
|
||||||
|
font-family: PingFangSC, PingFang SC;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #716F69;
|
||||||
|
line-height: 32rpx;
|
||||||
|
text-align: justify;
|
||||||
|
font-style: normal;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
.popup-box {
|
.popup-box {
|
||||||
padding: 50rpx 40rpx 32rpx;
|
padding: 50rpx 40rpx 32rpx;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
|
|||||||
@ -73,7 +73,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
async handleGetData() {
|
async handleGetData() {
|
||||||
let req = {
|
let req = {
|
||||||
ProvinceCode: this.user.PROVINCE_CODE,
|
ProvinceCode: '530000',
|
||||||
OwnerUnitId: 911,
|
OwnerUnitId: 911,
|
||||||
MemberShipId: this.user.MEMBERSHIP_ID,
|
MemberShipId: this.user.MEMBERSHIP_ID,
|
||||||
AppGuid: "wxee018fb96955552a",
|
AppGuid: "wxee018fb96955552a",
|
||||||
@ -82,6 +82,8 @@ export default {
|
|||||||
SortStr: this.sortType === 2 ? 'COMMODITY_MEMBERPRICE desc' : "",
|
SortStr: this.sortType === 2 ? 'COMMODITY_MEMBERPRICE desc' : "",
|
||||||
type: "encryption"
|
type: "encryption"
|
||||||
}
|
}
|
||||||
|
console.log('reqreqreqreq', req);
|
||||||
|
|
||||||
const data = await this.$api.$zzyLocalPost(
|
const data = await this.$api.$zzyLocalPost(
|
||||||
"/Member/GetCommodityCollectionList",
|
"/Member/GetCommodityCollectionList",
|
||||||
req
|
req
|
||||||
|
|||||||
@ -469,7 +469,6 @@ export default {
|
|||||||
if (userInfoData.Result_Code === 100) {
|
if (userInfoData.Result_Code === 100) {
|
||||||
|
|
||||||
let userData = uni.getStorageSync('userData')
|
let userData = uni.getStorageSync('userData')
|
||||||
console.log('userDatauserDatauserData', userData);
|
|
||||||
|
|
||||||
if (userData) {
|
if (userData) {
|
||||||
uni.setStorageSync("userData", {
|
uni.setStorageSync("userData", {
|
||||||
|
|||||||
@ -471,7 +471,7 @@ export default {
|
|||||||
// 拿到设施的合计信息
|
// 拿到设施的合计信息
|
||||||
async handleGetSumObj (id) {
|
async handleGetSumObj (id) {
|
||||||
const req = {
|
const req = {
|
||||||
ProvinceCode: 340000,
|
ProvinceCode: 530000,
|
||||||
ServerpartIds: id
|
ServerpartIds: id
|
||||||
}
|
}
|
||||||
const data = await this.$api.$get(
|
const data = await this.$api.$get(
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
25
unpackage/dist/dev/mp-weixin/common/main.js
vendored
25
unpackage/dist/dev/mp-weixin/common/main.js
vendored
@ -210,33 +210,34 @@ var _default = {
|
|||||||
while (1) {
|
while (1) {
|
||||||
switch (_context.prev = _context.next) {
|
switch (_context.prev = _context.next) {
|
||||||
case 0:
|
case 0:
|
||||||
|
console.log('fdsfgaslkfs', data);
|
||||||
_this.$store.commit("setUser", data.Data);
|
_this.$store.commit("setUser", data.Data);
|
||||||
_this.user = data.Data;
|
_this.user = data.Data;
|
||||||
if (!(data.ResultCode === "100")) {
|
if (!(data.ResultCode === "100")) {
|
||||||
_context.next = 14;
|
_context.next = 15;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
_context.prev = 3;
|
_context.prev = 4;
|
||||||
_context.next = 6;
|
_context.next = 7;
|
||||||
return _this.getMember(data.Data);
|
return _this.getMember(data.Data);
|
||||||
case 6:
|
case 7:
|
||||||
// 确保 getMember 完成
|
// 确保 getMember 完成
|
||||||
resolve(data);
|
resolve(data);
|
||||||
_context.next = 12;
|
_context.next = 13;
|
||||||
break;
|
break;
|
||||||
case 9:
|
case 10:
|
||||||
_context.prev = 9;
|
_context.prev = 10;
|
||||||
_context.t0 = _context["catch"](3);
|
_context.t0 = _context["catch"](4);
|
||||||
reject(_context.t0);
|
reject(_context.t0);
|
||||||
case 12:
|
case 13:
|
||||||
_context.next = 14;
|
_context.next = 15;
|
||||||
break;
|
break;
|
||||||
case 14:
|
case 15:
|
||||||
case "end":
|
case "end":
|
||||||
return _context.stop();
|
return _context.stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, _callee, null, [[3, 9]]);
|
}, _callee, null, [[4, 10]]);
|
||||||
}));
|
}));
|
||||||
return function (_x) {
|
return function (_x) {
|
||||||
return _ref.apply(this, arguments);
|
return _ref.apply(this, arguments);
|
||||||
|
|||||||
13
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
13
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
@ -14915,6 +14915,7 @@ Object.defineProperty(exports, "__esModule", {
|
|||||||
value: true
|
value: true
|
||||||
});
|
});
|
||||||
exports.getDistanceBetweenCoordinates = getDistanceBetweenCoordinates;
|
exports.getDistanceBetweenCoordinates = getDistanceBetweenCoordinates;
|
||||||
|
exports.handleFormatDate = handleFormatDate;
|
||||||
exports.handleGetNearService = handleGetNearService;
|
exports.handleGetNearService = handleGetNearService;
|
||||||
exports.handleHavePointInApp = handleHavePointInApp;
|
exports.handleHavePointInApp = handleHavePointInApp;
|
||||||
exports.handleHavePointInMin = handleHavePointInMin;
|
exports.handleHavePointInMin = handleHavePointInMin;
|
||||||
@ -15106,7 +15107,7 @@ function _handleGetNearService() {
|
|||||||
case 0:
|
case 0:
|
||||||
seatInfo = JSON.parse(uni.getStorageSync("seatInfo"));
|
seatInfo = JSON.parse(uni.getStorageSync("seatInfo"));
|
||||||
req = {
|
req = {
|
||||||
Province_Code: "340000",
|
Province_Code: "530000",
|
||||||
longitude: longitude ? longitude : seatInfo.longitude ? seatInfo.longitude : '',
|
longitude: longitude ? longitude : seatInfo.longitude ? seatInfo.longitude : '',
|
||||||
latitude: latitude ? latitude : seatInfo.latitude ? seatInfo.latitude : ''
|
latitude: latitude ? latitude : seatInfo.latitude ? seatInfo.latitude : ''
|
||||||
};
|
};
|
||||||
@ -15141,7 +15142,7 @@ function handleChangeServiceInfo(obj) {
|
|||||||
Distance: obj.SERVERPART_DISTANCE,
|
Distance: obj.SERVERPART_DISTANCE,
|
||||||
OwnerUnitId: obj.OWNERUNIT_ID,
|
OwnerUnitId: obj.OWNERUNIT_ID,
|
||||||
OwnerUnitName: obj.OWNERUNIT_NAME,
|
OwnerUnitName: obj.OWNERUNIT_NAME,
|
||||||
ProvinceCode: "340000",
|
ProvinceCode: "530000",
|
||||||
ServerPart_Id: obj.SERVERPART_ID,
|
ServerPart_Id: obj.SERVERPART_ID,
|
||||||
ServerPart_Name: obj.SERVERPART_NAME,
|
ServerPart_Name: obj.SERVERPART_NAME,
|
||||||
ServerPart_Tel: "",
|
ServerPart_Tel: "",
|
||||||
@ -15265,6 +15266,14 @@ function _handleSaveOrderStore() {
|
|||||||
}));
|
}));
|
||||||
return _handleSaveOrderStore.apply(this, arguments);
|
return _handleSaveOrderStore.apply(this, arguments);
|
||||||
}
|
}
|
||||||
|
function handleFormatDate(dateTimeStr) {
|
||||||
|
if (!dateTimeStr) return '';
|
||||||
|
var d = new Date(dateTimeStr.replace(/-/g, '/')); // 兼容 iOS
|
||||||
|
var y = d.getFullYear();
|
||||||
|
var m = String(d.getMonth() + 1).padStart(2, '0');
|
||||||
|
var day = String(d.getDate()).padStart(2, '0');
|
||||||
|
return "".concat(y, "-").concat(m, "-").concat(day);
|
||||||
|
}
|
||||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|||||||
@ -160,8 +160,8 @@
|
|||||||
line-height: 44rpx;
|
line-height: 44rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
background: #1890ff;
|
background: #07C160;
|
||||||
border-radius: 6rpx;
|
border-radius: 48rpx;
|
||||||
padding: 22rpx 0;
|
padding: 22rpx 0;
|
||||||
}
|
}
|
||||||
.card.data-v-4496319b {
|
.card.data-v-4496319b {
|
||||||
|
|||||||
@ -166,6 +166,7 @@ var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime
|
|||||||
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
|
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
|
||||||
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
|
||||||
var _vuex = __webpack_require__(/*! vuex */ 33);
|
var _vuex = __webpack_require__(/*! vuex */ 33);
|
||||||
|
var _publicMethods = __webpack_require__(/*! ../../utils/publicMethods */ 60);
|
||||||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
||||||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
||||||
var NoData = function NoData() {
|
var NoData = function NoData() {
|
||||||
@ -341,6 +342,7 @@ var _default = {
|
|||||||
allRes = {};
|
allRes = {};
|
||||||
all.forEach(function (item) {
|
all.forEach(function (item) {
|
||||||
if (item.NOTICEINFO_TYPE && item.NOTICEINFO_STATE === 1) {
|
if (item.NOTICEINFO_TYPE && item.NOTICEINFO_STATE === 1) {
|
||||||
|
item.START_DATE = (0, _publicMethods.handleFormatDate)(item.START_DATE);
|
||||||
if (typeList.indexOf(item.NOTICEINFO_TYPE) === -1) {
|
if (typeList.indexOf(item.NOTICEINFO_TYPE) === -1) {
|
||||||
typeList.push(item.NOTICEINFO_TYPE);
|
typeList.push(item.NOTICEINFO_TYPE);
|
||||||
var list = [item];
|
var list = [item];
|
||||||
@ -351,6 +353,7 @@ var _default = {
|
|||||||
allRes[item.NOTICEINFO_TYPE] = _list;
|
allRes[item.NOTICEINFO_TYPE] = _list;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
item.publishTime = (0, _publicMethods.handleFormatDate)(item.publishTime);
|
||||||
typeList.push('ETC');
|
typeList.push('ETC');
|
||||||
var _list2 = allRes['ETC'];
|
var _list2 = allRes['ETC'];
|
||||||
if (_list2 && _list2.length > 0) {
|
if (_list2 && _list2.length > 0) {
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
<view class="main _div data-v-765f0f4e"><view class="tabBox _div data-v-765f0f4e"><block wx:for="{{tabList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['handleChangeTab',['$0'],[[['tabList','',index,'value']]]]]]]}}" class="{{['_div','data-v-765f0f4e',selectTab===item.value?'tabItem selectTabItem':'tabItem']}}" bindtap="__e">{{''+item.label+''}}</view></block></view><scroll-view class="contentList data-v-765f0f4e" scroll-y="{{true}}"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['handleGoDetail',['$0'],[[['allMessageList.'+selectTab+'','',index]]]]]]]}}" class="contentItem _div data-v-765f0f4e" bindtap="__e"><view class="left _div data-v-765f0f4e"><view class="title _div data-v-765f0f4e">{{item.$orig.title||item.$orig.NOTICEINFO_TITLE||""}}</view><view class="content _div data-v-765f0f4e">{{item.$orig.NOTICEINFO_CONTENT||""}}</view><view class="descBox _div data-v-765f0f4e"><label class="name _span data-v-765f0f4e">{{item.$orig.author||item.$orig.STAFF_NAME||"-"}}</label><label class="time _span data-v-765f0f4e">{{item.$orig.publishTime||item.$orig.START_DATE||"-"}}</label></view></view><view class="right _div data-v-765f0f4e"><block wx:if="{{item.g0}}"><image class="leftIcon data-v-765f0f4e" src="{{item.$orig.ImageList[0].ImageUrl}}" lazy-load="{{true}}"></image></block><block wx:else><image class="leftIcon data-v-765f0f4e" lazy-load="{{true}}" src="{{item.$orig.coverImg?item.$orig.coverImg:'https://eshangtech.com/ShopICO/no-picture.png'}}"></image></block></view></view></block><block wx:if="{{!$root.g1}}"><view class="_div data-v-765f0f4e"><no-data vue-id="55835b78-1" text="暂无内容" class="data-v-765f0f4e" bind:__l="__l"></no-data></view></block></scroll-view></view>
|
<view class="main _div data-v-765f0f4e"><view class="tabBox _div data-v-765f0f4e"><block wx:for="{{tabList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['handleChangeTab',['$0'],[[['tabList','',index,'value']]]]]]]}}" class="{{['_div','data-v-765f0f4e',selectTab===item.value?'tabItem selectTabItem':'tabItem']}}" bindtap="__e">{{''+item.label+''}}</view></block></view><scroll-view class="contentList data-v-765f0f4e" scroll-y="{{true}}"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['handleGoDetail',['$0'],[[['allMessageList.'+selectTab+'','',index]]]]]]]}}" class="contentItem _div data-v-765f0f4e" bindtap="__e"><view class="left _div data-v-765f0f4e"><view class="title _div data-v-765f0f4e">{{item.$orig.title||item.$orig.NOTICEINFO_TITLE||""}}</view><view class="content _div data-v-765f0f4e">{{item.$orig.NOTICEINFO_CONTENT||""}}</view><view class="descBox _div data-v-765f0f4e"><label class="name _span data-v-765f0f4e">{{item.$orig.author||item.$orig.STAFF_NAME||"-"}}</label><label class="time _span data-v-765f0f4e">{{item.$orig.publishTime||item.$orig.START_DATE||""}}</label></view></view><view class="right _div data-v-765f0f4e"><block wx:if="{{item.g0}}"><image class="leftIcon data-v-765f0f4e" src="{{item.$orig.ImageList[0].ImageUrl}}" lazy-load="{{true}}"></image></block><block wx:else><image class="leftIcon data-v-765f0f4e" lazy-load="{{true}}" src="{{item.$orig.coverImg?item.$orig.coverImg:'https://eshangtech.com/ShopICO/no-picture.png'}}"></image></block></view></view></block><block wx:if="{{!$root.g1}}"><view class="_div data-v-765f0f4e"><no-data vue-id="55835b78-1" text="暂无内容" class="data-v-765f0f4e" bind:__l="__l"></no-data></view></block></scroll-view></view>
|
||||||
@ -676,7 +676,7 @@ var _default = {
|
|||||||
case 12:
|
case 12:
|
||||||
_this5.SCENICAREAOBJ = SCENICAREAOBJ;
|
_this5.SCENICAREAOBJ = SCENICAREAOBJ;
|
||||||
req = {
|
req = {
|
||||||
ProvinceCode: _this5.user.PROVINCE_CODE,
|
ProvinceCode: "530000",
|
||||||
latitude: latitude || _this5.seat.latitude || "",
|
latitude: latitude || _this5.seat.latitude || "",
|
||||||
longitude: longitude || _this5.seat.longitude || "",
|
longitude: longitude || _this5.seat.longitude || "",
|
||||||
ServerpartID: _this5.serviceDetail.SERVERPART_ID || "",
|
ServerpartID: _this5.serviceDetail.SERVERPART_ID || "",
|
||||||
@ -1160,6 +1160,7 @@ var _default = {
|
|||||||
method: "POST",
|
method: "POST",
|
||||||
success: function success(res) {
|
success: function success(res) {
|
||||||
var list = res.data;
|
var list = res.data;
|
||||||
|
console.log('充电', res);
|
||||||
var result = [];
|
var result = [];
|
||||||
if (list && list.length > 0) {
|
if (list && list.length > 0) {
|
||||||
list.forEach(function (item) {
|
list.forEach(function (item) {
|
||||||
@ -1687,7 +1688,7 @@ var _default = {
|
|||||||
switch (_context10.prev = _context10.next) {
|
switch (_context10.prev = _context10.next) {
|
||||||
case 0:
|
case 0:
|
||||||
req = {
|
req = {
|
||||||
Province_Code: _this17.user.PROVINCE_CODE || "530000",
|
Province_Code: "530000",
|
||||||
longitude: longitude,
|
longitude: longitude,
|
||||||
latitude: latitude,
|
latitude: latitude,
|
||||||
showservice: true,
|
showservice: true,
|
||||||
@ -1820,7 +1821,7 @@ var _default = {
|
|||||||
newReq = {
|
newReq = {
|
||||||
SearchParameter: {
|
SearchParameter: {
|
||||||
// NOTICEINFO_TYPES: 1010,
|
// NOTICEINFO_TYPES: 1010,
|
||||||
PROVINCE_CODE: _this18.user.PROVINCE_CODE || "530000",
|
PROVINCE_CODE: "530000",
|
||||||
NOTICEINFO_STATE: 1
|
NOTICEINFO_STATE: 1
|
||||||
},
|
},
|
||||||
PageIndex: 1,
|
PageIndex: 1,
|
||||||
|
|||||||
@ -190,8 +190,8 @@
|
|||||||
margin-bottom: 16rpx;
|
margin-bottom: 16rpx;
|
||||||
}
|
}
|
||||||
.main .orderListBox .orderItem .orderItemCenter .orderItemCenterLeft.data-v-50f48f45 {
|
.main .orderListBox .orderItem .orderItemCenter .orderItemCenterLeft.data-v-50f48f45 {
|
||||||
width: 192rpx;
|
width: 160rpx;
|
||||||
height: 192rpx;
|
height: 160rpx;
|
||||||
margin-right: 12rpx;
|
margin-right: 12rpx;
|
||||||
}
|
}
|
||||||
.main .orderListBox .orderItem .orderItemCenter .orderItemCenterLeft .orderItemShopImg.data-v-50f48f45 {
|
.main .orderListBox .orderItem .orderItemCenter .orderItemCenterLeft .orderItemShopImg.data-v-50f48f45 {
|
||||||
@ -199,8 +199,8 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.main .orderListBox .orderItem .orderItemCenter .orderItemCenterRight.data-v-50f48f45 {
|
.main .orderListBox .orderItem .orderItemCenter .orderItemCenterRight.data-v-50f48f45 {
|
||||||
width: calc(100% - 192rpx - 12rpx);
|
width: calc(100% - 160rpx - 12rpx);
|
||||||
height: 192rpx;
|
height: 160rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
.main .orderListBox .orderItem .orderItemCenter .orderItemCenterRight .orderItemCenterRightLeft.data-v-50f48f45 {
|
.main .orderListBox .orderItem .orderItemCenter .orderItemCenterRight .orderItemCenterRightLeft.data-v-50f48f45 {
|
||||||
@ -209,7 +209,7 @@
|
|||||||
.main .orderListBox .orderItem .orderItemCenter .orderItemCenterRight .orderItemCenterRightLeft .orderItemRightLeftLabel.data-v-50f48f45 {
|
.main .orderListBox .orderItem .orderItemCenter .orderItemCenterRight .orderItemCenterRightLeft .orderItemRightLeftLabel.data-v-50f48f45 {
|
||||||
font-family: PingFangSC, PingFang SC;
|
font-family: PingFangSC, PingFang SC;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 28rpx;
|
font-size: 24rpx;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
@ -237,7 +237,7 @@
|
|||||||
}
|
}
|
||||||
.main .orderListBox .orderItem .orderItemCenter .orderItemCenterRight .orderItemCenterRightRight .unitPrice.data-v-50f48f45 {
|
.main .orderListBox .orderItem .orderItemCenter .orderItemCenterRight .orderItemCenterRightRight .unitPrice.data-v-50f48f45 {
|
||||||
font-family: AppleSystemUIFont;
|
font-family: AppleSystemUIFont;
|
||||||
font-size: 28rpx;
|
font-size: 24rpx;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
line-height: 34rpx;
|
line-height: 34rpx;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@ -246,7 +246,7 @@
|
|||||||
}
|
}
|
||||||
.main .orderListBox .orderItem .orderItemCenter .orderItemCenterRight .orderItemCenterRightRight .orderItemQuantity.data-v-50f48f45 {
|
.main .orderListBox .orderItem .orderItemCenter .orderItemCenterRight .orderItemCenterRightRight .orderItemQuantity.data-v-50f48f45 {
|
||||||
font-family: AppleSystemUIFont;
|
font-family: AppleSystemUIFont;
|
||||||
font-size: 28rpx;
|
font-size: 24rpx;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
line-height: 34rpx;
|
line-height: 34rpx;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@ -276,7 +276,7 @@
|
|||||||
.main .orderListBox .orderItem .orderItemMoneyBox .orderItemUnit.data-v-50f48f45 {
|
.main .orderListBox .orderItem .orderItemMoneyBox .orderItemUnit.data-v-50f48f45 {
|
||||||
font-family: PingFangSC, PingFang SC;
|
font-family: PingFangSC, PingFang SC;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 28rpx;
|
font-size: 24rpx;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -176,6 +176,7 @@ var _default = {
|
|||||||
InviteCode: "InviteCode"
|
InviteCode: "InviteCode"
|
||||||
})),
|
})),
|
||||||
onLoad: function onLoad(query) {
|
onLoad: function onLoad(query) {
|
||||||
|
console.log('this.userthis.userthis.user', this.user);
|
||||||
if (this.user.MEMBERSHIP_ID) {
|
if (this.user.MEMBERSHIP_ID) {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index'
|
||||||
|
|||||||
@ -265,6 +265,7 @@ var _default = {
|
|||||||
onLoad: function onLoad(query) {
|
onLoad: function onLoad(query) {
|
||||||
var _this2 = this;
|
var _this2 = this;
|
||||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
||||||
|
var idList;
|
||||||
return _regenerator.default.wrap(function _callee$(_context) {
|
return _regenerator.default.wrap(function _callee$(_context) {
|
||||||
while (1) {
|
while (1) {
|
||||||
switch (_context.prev = _context.next) {
|
switch (_context.prev = _context.next) {
|
||||||
@ -283,17 +284,30 @@ var _default = {
|
|||||||
_context.next = 8;
|
_context.next = 8;
|
||||||
return _this2.handleGetMerchant();
|
return _this2.handleGetMerchant();
|
||||||
case 8:
|
case 8:
|
||||||
_context.next = 10;
|
idList = [1212, 1222, 1139, 1215];
|
||||||
return _this2.handleGetChargingStation(_this2.detailInfo);
|
if (!(idList.indexOf(_this2.serverpart) !== -1)) {
|
||||||
case 10:
|
_context.next = 14;
|
||||||
|
break;
|
||||||
|
}
|
||||||
_context.next = 12;
|
_context.next = 12;
|
||||||
return _this2.handleGetNearScenic();
|
return _this2.handleGetChargingStation(_this2.detailInfo);
|
||||||
case 12:
|
case 12:
|
||||||
|
_context.next = 15;
|
||||||
|
break;
|
||||||
|
case 14:
|
||||||
|
_this2.chargingObj = {
|
||||||
|
have: 0,
|
||||||
|
use: 0
|
||||||
|
};
|
||||||
|
case 15:
|
||||||
|
_context.next = 17;
|
||||||
|
return _this2.handleGetNearScenic();
|
||||||
|
case 17:
|
||||||
// this.$utils.addUserBehaviorNew();
|
// this.$utils.addUserBehaviorNew();
|
||||||
_this2.$utils.addUserBehaviorNew({
|
_this2.$utils.addUserBehaviorNew({
|
||||||
behaviorRecordDesc: "\u67E5\u770B\u4E86".concat(_this2.detailInfo.SERVERPART_NAME, "\u8BE6\u60C5")
|
behaviorRecordDesc: "\u67E5\u770B\u4E86".concat(_this2.detailInfo.SERVERPART_NAME, "\u8BE6\u60C5")
|
||||||
});
|
});
|
||||||
case 13:
|
case 18:
|
||||||
case "end":
|
case "end":
|
||||||
return _context.stop();
|
return _context.stop();
|
||||||
}
|
}
|
||||||
@ -304,14 +318,14 @@ var _default = {
|
|||||||
onShow: function onShow() {
|
onShow: function onShow() {
|
||||||
var _this3 = this;
|
var _this3 = this;
|
||||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
||||||
var currentService;
|
var currentService, idList;
|
||||||
return _regenerator.default.wrap(function _callee2$(_context2) {
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
||||||
while (1) {
|
while (1) {
|
||||||
switch (_context2.prev = _context2.next) {
|
switch (_context2.prev = _context2.next) {
|
||||||
case 0:
|
case 0:
|
||||||
currentService = uni.getStorageSync("currentService");
|
currentService = uni.getStorageSync("currentService");
|
||||||
if (_this3.serverpart) {
|
if (_this3.serverpart) {
|
||||||
_context2.next = 11;
|
_context2.next = 16;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
_this3.serverpart = currentService.SERVERPART_ID;
|
_this3.serverpart = currentService.SERVERPART_ID;
|
||||||
@ -321,12 +335,25 @@ var _default = {
|
|||||||
_context2.next = 7;
|
_context2.next = 7;
|
||||||
return _this3.handleGetMerchant();
|
return _this3.handleGetMerchant();
|
||||||
case 7:
|
case 7:
|
||||||
_context2.next = 9;
|
idList = [1212, 1222, 1139, 1215];
|
||||||
return _this3.handleGetChargingStation(_this3.detailInfo);
|
if (!(idList.indexOf(_this3.serverpart) !== -1)) {
|
||||||
case 9:
|
_context2.next = 13;
|
||||||
|
break;
|
||||||
|
}
|
||||||
_context2.next = 11;
|
_context2.next = 11;
|
||||||
return _this3.handleGetNearScenic();
|
return _this3.handleGetChargingStation(_this3.detailInfo);
|
||||||
case 11:
|
case 11:
|
||||||
|
_context2.next = 14;
|
||||||
|
break;
|
||||||
|
case 13:
|
||||||
|
_this3.chargingObj = {
|
||||||
|
have: 0,
|
||||||
|
use: 0
|
||||||
|
};
|
||||||
|
case 14:
|
||||||
|
_context2.next = 16;
|
||||||
|
return _this3.handleGetNearScenic();
|
||||||
|
case 16:
|
||||||
case "end":
|
case "end":
|
||||||
return _context2.stop();
|
return _context2.stop();
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -227,7 +227,7 @@
|
|||||||
content: "";
|
content: "";
|
||||||
width: 2rem;
|
width: 2rem;
|
||||||
height: 6rpx;
|
height: 6rpx;
|
||||||
background-color: #009DFF;
|
background-color: #4BCB7E;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
-webkit-transform: translateX(-50%);
|
-webkit-transform: translateX(-50%);
|
||||||
|
|||||||
@ -147,6 +147,7 @@ var render = function () {
|
|||||||
var g6 =
|
var g6 =
|
||||||
_vm.good.PAY_METHOD !== 2000 &&
|
_vm.good.PAY_METHOD !== 2000 &&
|
||||||
_vm.pageType !== "pointsMall" &&
|
_vm.pageType !== "pointsMall" &&
|
||||||
|
!_vm.offShop &&
|
||||||
_vm.good.OFF_DATE &&
|
_vm.good.OFF_DATE &&
|
||||||
!_vm.isCountdown
|
!_vm.isCountdown
|
||||||
? new Date().getTime()
|
? new Date().getTime()
|
||||||
@ -154,12 +155,15 @@ var render = function () {
|
|||||||
var g7 =
|
var g7 =
|
||||||
_vm.good.PAY_METHOD !== 2000 &&
|
_vm.good.PAY_METHOD !== 2000 &&
|
||||||
_vm.pageType !== "pointsMall" &&
|
_vm.pageType !== "pointsMall" &&
|
||||||
|
!_vm.offShop &&
|
||||||
_vm.good.OFF_DATE &&
|
_vm.good.OFF_DATE &&
|
||||||
!_vm.isCountdown
|
!_vm.isCountdown
|
||||||
? new Date(_vm.good.OFF_DATE).getTime()
|
? new Date(_vm.good.OFF_DATE).getTime()
|
||||||
: null
|
: null
|
||||||
var g8 =
|
var g8 =
|
||||||
_vm.good.PAY_METHOD !== 2000 && _vm.pageType !== "pointsMall"
|
_vm.good.PAY_METHOD !== 2000 &&
|
||||||
|
_vm.pageType !== "pointsMall" &&
|
||||||
|
!_vm.offShop
|
||||||
? new Date().getTime() > new Date(_vm.good.OFF_DATE).getTime() &&
|
? new Date().getTime() > new Date(_vm.good.OFF_DATE).getTime() &&
|
||||||
!(_vm.good.OFF_DATE && !_vm.isCountdown)
|
!(_vm.good.OFF_DATE && !_vm.isCountdown)
|
||||||
: null
|
: null
|
||||||
@ -293,7 +297,9 @@ var _default = {
|
|||||||
timer: null,
|
timer: null,
|
||||||
// 定时器
|
// 定时器
|
||||||
isCollect: false,
|
isCollect: false,
|
||||||
shopId: "" // 商品id
|
shopId: "",
|
||||||
|
// 商品id
|
||||||
|
offShop: false // 判断商品是否下架了
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -370,9 +376,15 @@ var _default = {
|
|||||||
icon: 'none'
|
icon: 'none'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
_context.next = 31;
|
_context.next = 33;
|
||||||
break;
|
break;
|
||||||
case 16:
|
case 16:
|
||||||
|
if (!_this2.offShop) {
|
||||||
|
_context.next = 18;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return _context.abrupt("return");
|
||||||
|
case 18:
|
||||||
_req = {
|
_req = {
|
||||||
COLLECTION_ID: _this2.good.COLLECTION_ID || "",
|
COLLECTION_ID: _this2.good.COLLECTION_ID || "",
|
||||||
COLLECTION_TYPE: 2000,
|
COLLECTION_TYPE: 2000,
|
||||||
@ -388,13 +400,13 @@ var _default = {
|
|||||||
OPERATE_DATE: _this2.$moment.now().format("YYYY-MM-DD")
|
OPERATE_DATE: _this2.$moment.now().format("YYYY-MM-DD")
|
||||||
}; // 同步收藏
|
}; // 同步收藏
|
||||||
console.log('reqreqreq', _req);
|
console.log('reqreqreq', _req);
|
||||||
_context.next = 20;
|
_context.next = 22;
|
||||||
return _this2.$api.$zzyLocalPost("/Member/SynchroCOLLECTION", _req);
|
return _this2.$api.$zzyLocalPost("/Member/SynchroCOLLECTION", _req);
|
||||||
case 20:
|
case 22:
|
||||||
_data = _context.sent;
|
_data = _context.sent;
|
||||||
console.log('data', _data);
|
console.log('data', _data);
|
||||||
if (!(_data.Result_Code === 100)) {
|
if (!(_data.Result_Code === 100)) {
|
||||||
_context.next = 30;
|
_context.next = 32;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@ -402,18 +414,18 @@ var _default = {
|
|||||||
icon: 'none'
|
icon: 'none'
|
||||||
});
|
});
|
||||||
_this2.isCollect = true;
|
_this2.isCollect = true;
|
||||||
_context.next = 27;
|
_context.next = 29;
|
||||||
return _this2.getDetail(_this2.good.COMMODITY_ID);
|
return _this2.getDetail(_this2.good.COMMODITY_ID);
|
||||||
case 27:
|
case 29:
|
||||||
_this2.$forceUpdate();
|
_this2.$forceUpdate();
|
||||||
_context.next = 31;
|
_context.next = 33;
|
||||||
break;
|
break;
|
||||||
case 30:
|
case 32:
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: _data.Result_Desc,
|
title: _data.Result_Desc,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
});
|
});
|
||||||
case 31:
|
case 33:
|
||||||
case "end":
|
case "end":
|
||||||
return _context.stop();
|
return _context.stop();
|
||||||
}
|
}
|
||||||
@ -999,6 +1011,10 @@ var _default = {
|
|||||||
_this.isCollect = true;
|
_this.isCollect = true;
|
||||||
}
|
}
|
||||||
_this.good = res.Data;
|
_this.good = res.Data;
|
||||||
|
// 判断商品是否已经下架了 若当前时间大于 下架时间 就代表 已经下架了
|
||||||
|
if (_this.good.OFF_DATE && new Date().getTime() > new Date(_this.good.OFF_DATE).getTime()) {
|
||||||
|
_this.offShop = true;
|
||||||
|
}
|
||||||
_this.good.COMMODITY_CURRPRICE = _this.good.COMMODITY_MEMBERPRICE;
|
_this.good.COMMODITY_CURRPRICE = _this.good.COMMODITY_MEMBERPRICE;
|
||||||
_this.good.count = 1;
|
_this.good.count = 1;
|
||||||
_this.pageMsg.current = 0;
|
_this.pageMsg.current = 0;
|
||||||
@ -1050,7 +1066,7 @@ var _default = {
|
|||||||
_this.panicBuying = false;
|
_this.panicBuying = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 25:
|
case 26:
|
||||||
case "end":
|
case "end":
|
||||||
return _context3.stop();
|
return _context3.stop();
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -526,6 +526,25 @@ button.data-v-0dc4ca38:after {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
.offShopDown.data-v-0dc4ca38 {
|
||||||
|
width: 100%;
|
||||||
|
height: 64rpx;
|
||||||
|
background: #F5F6F7;
|
||||||
|
position: fixed;
|
||||||
|
z-index: 2;
|
||||||
|
left: 0;
|
||||||
|
bottom: 124rpx;
|
||||||
|
font-family: PingFangSC, PingFang SC;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #716F69;
|
||||||
|
line-height: 32rpx;
|
||||||
|
text-align: justify;
|
||||||
|
font-style: normal;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
.popup-box.data-v-0dc4ca38 {
|
.popup-box.data-v-0dc4ca38 {
|
||||||
padding: 50rpx 40rpx 32rpx;
|
padding: 50rpx 40rpx 32rpx;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
|
|||||||
@ -471,7 +471,7 @@ export default {
|
|||||||
// 拿到设施的合计信息
|
// 拿到设施的合计信息
|
||||||
async handleGetSumObj (id) {
|
async handleGetSumObj (id) {
|
||||||
const req = {
|
const req = {
|
||||||
ProvinceCode: 340000,
|
ProvinceCode: 530000,
|
||||||
ServerpartIds: id
|
ServerpartIds: id
|
||||||
}
|
}
|
||||||
const data = await this.$api.$get(
|
const data = await this.$api.$get(
|
||||||
|
|||||||
@ -147,7 +147,7 @@ export async function handleGetNearService(_this, longitude, latitude) {
|
|||||||
|
|
||||||
let seatInfo = JSON.parse(uni.getStorageSync("seatInfo"));
|
let seatInfo = JSON.parse(uni.getStorageSync("seatInfo"));
|
||||||
let req = {
|
let req = {
|
||||||
Province_Code: "340000",
|
Province_Code: "530000",
|
||||||
longitude: longitude ? longitude : seatInfo.longitude ? seatInfo.longitude : '',
|
longitude: longitude ? longitude : seatInfo.longitude ? seatInfo.longitude : '',
|
||||||
latitude: latitude ? latitude : seatInfo.latitude ? seatInfo.latitude : '',
|
latitude: latitude ? latitude : seatInfo.latitude ? seatInfo.latitude : '',
|
||||||
};
|
};
|
||||||
@ -174,7 +174,7 @@ function handleChangeServiceInfo(obj) {
|
|||||||
Distance: obj.SERVERPART_DISTANCE,
|
Distance: obj.SERVERPART_DISTANCE,
|
||||||
OwnerUnitId: obj.OWNERUNIT_ID,
|
OwnerUnitId: obj.OWNERUNIT_ID,
|
||||||
OwnerUnitName: obj.OWNERUNIT_NAME,
|
OwnerUnitName: obj.OWNERUNIT_NAME,
|
||||||
ProvinceCode: "340000",
|
ProvinceCode: "530000",
|
||||||
ServerPart_Id: obj.SERVERPART_ID,
|
ServerPart_Id: obj.SERVERPART_ID,
|
||||||
ServerPart_Name: obj.SERVERPART_NAME,
|
ServerPart_Name: obj.SERVERPART_NAME,
|
||||||
ServerPart_Tel: "",
|
ServerPart_Tel: "",
|
||||||
@ -295,3 +295,11 @@ export async function handleSaveOrderStore() {
|
|||||||
uni.setStorageSync("foodOrderStatus", foodOrderCountList)
|
uni.setStorageSync("foodOrderStatus", foodOrderCountList)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function handleFormatDate(dateTimeStr) {
|
||||||
|
if (!dateTimeStr) return '';
|
||||||
|
const d = new Date(dateTimeStr.replace(/-/g, '/')); // 兼容 iOS
|
||||||
|
const y = d.getFullYear();
|
||||||
|
const m = String(d.getMonth() + 1).padStart(2, '0');
|
||||||
|
const day = String(d.getDate()).padStart(2, '0');
|
||||||
|
return `${y}-${m}-${day}`;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user