update
This commit is contained in:
parent
5d8cf4605f
commit
8de4515d34
@ -2,21 +2,13 @@
|
||||
<view class="main">
|
||||
<div class="content">
|
||||
<div class="tabItem" @click="goPages('/pages/index/index')">
|
||||
<image
|
||||
class="tabItemIcon"
|
||||
:src="
|
||||
selectIndex === '/pages/index/index'
|
||||
<image class="tabItemIcon" :src="selectIndex === '/pages/index/index'
|
||||
? '/static/images/tabbar/home-active.png'
|
||||
: '/static/images/tabbar/home.png'
|
||||
"
|
||||
/>
|
||||
<span
|
||||
class="tabItemText"
|
||||
:style="{
|
||||
" />
|
||||
<span class="tabItemText" :style="{
|
||||
color: selectIndex === '/pages/index/index' ? '#009F43' : '#3A3D48',
|
||||
}"
|
||||
>首页</span
|
||||
>
|
||||
}">首页</span>
|
||||
</div>
|
||||
<div class="postiton">
|
||||
<view class="tabbarLogo" @click="handleGoShop"></view>
|
||||
@ -28,26 +20,19 @@
|
||||
<!-- src="https://eshangtech.com/minTestImg/CYYIconNew.jpg" -->
|
||||
</div>
|
||||
<div class="tabItem" @click="goPages('/pages/user/index')">
|
||||
<image
|
||||
class="tabItemIcon"
|
||||
:src="
|
||||
selectIndex === '/pages/user/index'
|
||||
<image class="tabItemIcon" :src="selectIndex === '/pages/user/index'
|
||||
? '/static/images/tabbar/user_active.png'
|
||||
: '/static/images/tabbar/user.png'
|
||||
"
|
||||
/>
|
||||
<span
|
||||
class="tabItemText"
|
||||
:style="{
|
||||
" />
|
||||
<span class="tabItemText" :style="{
|
||||
color: selectIndex === '/pages/user/index' ? '#009F43' : '#3A3D48',
|
||||
}"
|
||||
>我的</span
|
||||
>
|
||||
}">我的</span>
|
||||
</div>
|
||||
</div>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import { mapGetters } from "vuex";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@ -60,6 +45,11 @@ export default {
|
||||
default: "",
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
...mapGetters({
|
||||
user: "user",
|
||||
}),
|
||||
},
|
||||
watch: {
|
||||
page: {
|
||||
handler(value) {
|
||||
@ -79,6 +69,19 @@ export default {
|
||||
},
|
||||
// 跳转商城
|
||||
handleGoShop() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
let _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({ url: "/pages/register/index" });
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: "/pages/shopMallPage/index/index",
|
||||
});
|
||||
@ -96,6 +99,7 @@ export default {
|
||||
border-top: 1px solid #e8e8ea;
|
||||
box-sizing: border-box;
|
||||
z-index: 99999;
|
||||
|
||||
.content {
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
@ -103,6 +107,7 @@ export default {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
|
||||
.tabItem {
|
||||
width: calc(100vw / 3);
|
||||
height: 100%;
|
||||
@ -117,6 +122,7 @@ export default {
|
||||
height: 48rpx;
|
||||
margin-bottom: 4rpx;
|
||||
}
|
||||
|
||||
.tabItemText {
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
@ -127,6 +133,7 @@ export default {
|
||||
font-style: normal;
|
||||
}
|
||||
}
|
||||
|
||||
.postiton {
|
||||
width: calc(100vw / 3);
|
||||
height: 100%;
|
||||
|
||||
@ -182,7 +182,7 @@
|
||||
<uni-rate :size="12" :value="ScenicData.SCENICAREA_SCORE" :touchable="false" active-color="#FF8E00"
|
||||
color="#D8D8DA" />
|
||||
</view>
|
||||
<view class="scenicRateText">{{ ScenicData.SCENICAREA_SCORE }}</view>
|
||||
<view class="scenicRateText">{{ ScenicData.SCENICAREA_SCORE || "" }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="scenicBottom">
|
||||
@ -752,6 +752,19 @@ export default {
|
||||
},
|
||||
// 跳转去附近的景区列表页面
|
||||
handleGoScenicList() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
let _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({ url: "/pages/register/index" });
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/scenicList/scenicList'
|
||||
});
|
||||
@ -1168,6 +1181,19 @@ export default {
|
||||
});
|
||||
},
|
||||
handleGoDetail() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
let _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({ url: "/pages/register/index" });
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: `/pages/serviceDetail/index`,
|
||||
});
|
||||
@ -1186,6 +1212,19 @@ export default {
|
||||
},
|
||||
// 功能列表
|
||||
handleFunClick(obj) {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
let _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({ url: "/pages/register/index" });
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
// 服务区
|
||||
if (obj.value === 1) {
|
||||
uni.navigateTo({
|
||||
@ -1305,6 +1344,19 @@ export default {
|
||||
},
|
||||
// 跳转到商城
|
||||
handleGoShop() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
let _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({ url: "/pages/register/index" });
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: "/pages/shopMallPage/index/index",
|
||||
});
|
||||
@ -1317,6 +1369,19 @@ export default {
|
||||
},
|
||||
// 跳转到选择服务区
|
||||
goSelectServer() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
let _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({ url: "/pages/register/index" });
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({ url: "/pages/newMap/index/index?comeForm=home" });
|
||||
},
|
||||
getLocalServer() {
|
||||
@ -1606,6 +1671,19 @@ export default {
|
||||
},
|
||||
// 跳转高速头条
|
||||
handleGoHighWay() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
let _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({ url: "/pages/register/index" });
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: "/pages/highwayHeadlines/index",
|
||||
});
|
||||
@ -1710,6 +1788,19 @@ export default {
|
||||
},
|
||||
// 打开地图的跳转
|
||||
handleGoMap() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
let _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({ url: "/pages/register/index" });
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.openLocation({
|
||||
latitude: this.serviceDetail.SERVERPART_Y * 1,
|
||||
longitude: this.serviceDetail.SERVERPART_X * 1,
|
||||
@ -1724,12 +1815,38 @@ export default {
|
||||
},
|
||||
// 跳转商品详情
|
||||
handleGoShopDetail(obj) {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
let _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({ url: "/pages/register/index" });
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: `/pages/shopPages/shopDetail/index?id=${obj.COMMODITY_ID}`,
|
||||
});
|
||||
},
|
||||
// 跳转商品列表接口
|
||||
handleGoShopList(type) {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
let _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({ url: "/pages/register/index" });
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: `/pages/shopPages/shopList/index?type=${type}`,
|
||||
});
|
||||
|
||||
@ -233,8 +233,6 @@ export default {
|
||||
mask: true,
|
||||
});
|
||||
|
||||
console.log('data', data);
|
||||
return
|
||||
|
||||
this.$api.postCoop(data).then(function (rs) {
|
||||
uni.hideLoading();
|
||||
|
||||
@ -1241,6 +1241,7 @@ export default {
|
||||
},
|
||||
// 改变当前选中的规格
|
||||
handleChangeSelectSKULIST(value, obj) {
|
||||
console.log('valuevaluevaluevalue', value);
|
||||
console.log('objobjobjobjobj', obj);
|
||||
if (obj.COMMODITY_STOCK > 0) {
|
||||
this.good.COMMODITY_RULE = obj.COMMODITY_NAME;
|
||||
@ -1248,6 +1249,7 @@ export default {
|
||||
this.good.COMMODITY_MEMBERPRICE = obj.COMMODITY_MEMBERPRICE
|
||||
this.good.COMMODITY_PURCHASEPRICE = obj.COMMODITY_PURCHASEPRICE
|
||||
}
|
||||
this.$forceUpdate()
|
||||
},
|
||||
// 添加商品到购物车
|
||||
touchOnGoods(e, obj) {
|
||||
|
||||
@ -9,7 +9,8 @@
|
||||
<view class="userInfoBox">
|
||||
<!-- 头像内容 -->
|
||||
<view class="headerImgBox">
|
||||
<button class="avatarBtn" open-type="chooseAvatar" @chooseavatar="onChooseAvatar">
|
||||
<button class="avatarBtn" open-type="chooseAvatar" @chooseavatar="onChooseAvatar"
|
||||
v-if="userInfo && userInfo.MEMBERSHIP_ID">
|
||||
<image class="headerImg" :src="WXProfile ||
|
||||
(userInfo && userInfo.MEMBERSHIP_HEADIMAGEURL
|
||||
? userInfo.MEMBERSHIP_HEADIMAGEURL
|
||||
@ -484,6 +485,19 @@ export default {
|
||||
methods: {
|
||||
// 跳转到余额
|
||||
hanldGoBalance() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
let _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({ url: "/pages/register/index" });
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: `/pages/useConfig/balanceManage`,
|
||||
});
|
||||
@ -714,24 +728,76 @@ export default {
|
||||
},
|
||||
// 跳转会员设置
|
||||
hanldGoConfig() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
let _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({ url: "/pages/register/index" });
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/useConfig/userConfig'
|
||||
})
|
||||
},
|
||||
// 跳转到积分页面
|
||||
handleGoPoint() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
let _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({ url: "/pages/register/index" });
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/useConfig/pointsDetail'
|
||||
})
|
||||
},
|
||||
// 跳转券包
|
||||
handleGoCoupon() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
let _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({ url: "/pages/register/index" });
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/homeFn/myCoupon/index'
|
||||
})
|
||||
},
|
||||
// 用户上传头像
|
||||
async onChooseAvatar(e) {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
let _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({ url: "/pages/register/index" });
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
let _this = this;
|
||||
_this.showErrorText = 1
|
||||
uni.uploadFile({
|
||||
@ -807,18 +873,57 @@ export default {
|
||||
},
|
||||
// 跳转去售后 即已完成的列表
|
||||
handleGo(url) {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
let _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({ url: "/pages/register/index" });
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: url,
|
||||
});
|
||||
},
|
||||
// 跳转去点餐订单页面
|
||||
handleGoFoodOrder(value) {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
let _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({ url: "/pages/register/index" });
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: `/pages/order/foodOrder/index?type=${value}`,
|
||||
});
|
||||
},
|
||||
// 绑定车辆
|
||||
handleGoBindCar() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
let _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({ url: "/pages/register/index" });
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: `/pages/bindCar/index`,
|
||||
});
|
||||
@ -915,6 +1020,19 @@ export default {
|
||||
},
|
||||
// 跳转订单
|
||||
handleGoOrder(value, pageType) {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
let _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({ url: "/pages/register/index" });
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (value === 4) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/evaluateList/index?pageType=${pageType}`,
|
||||
@ -932,18 +1050,47 @@ export default {
|
||||
},
|
||||
// 跳转到会员码页面
|
||||
handleGoUserCode() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
let _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({ url: "/pages/register/index" });
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: "/pages/payfor/index",
|
||||
});
|
||||
},
|
||||
// 跳转去收藏页面
|
||||
handleGoCollect() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
let _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({ url: "/pages/register/index" });
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url:
|
||||
"/pages/useConfig/FavoriteStore"
|
||||
});
|
||||
},
|
||||
async handleGetOrderDetail() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || (!this.user && !this.user.MEMBERSHIP_ID)) {
|
||||
return;
|
||||
}
|
||||
// 商城订单数据
|
||||
const req = {
|
||||
action_type: "GetMallOrderList",
|
||||
|
||||
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
@ -116,59 +116,15 @@ __webpack_require__.r(__webpack_exports__);
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(uni) {
|
||||
|
||||
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
|
||||
var _vuex = __webpack_require__(/*! vuex */ 33);
|
||||
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; }
|
||||
var _default = {
|
||||
data: function data() {
|
||||
return {
|
||||
@ -181,6 +137,9 @@ var _default = {
|
||||
default: ""
|
||||
}
|
||||
},
|
||||
computed: _objectSpread({}, (0, _vuex.mapGetters)({
|
||||
user: "user"
|
||||
})),
|
||||
watch: {
|
||||
page: {
|
||||
handler: function handler(value) {
|
||||
@ -200,6 +159,21 @@ var _default = {
|
||||
},
|
||||
// 跳转商城
|
||||
handleGoShop: function handleGoShop() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||
var _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success: function success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/register/index"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: "/pages/shopMallPage/index/index"
|
||||
});
|
||||
|
||||
135
unpackage/dist/dev/mp-weixin/pages/index/index.js
vendored
135
unpackage/dist/dev/mp-weixin/pages/index/index.js
vendored
@ -635,6 +635,21 @@ var _default = {
|
||||
},
|
||||
// 跳转去附近的景区列表页面
|
||||
handleGoScenicList: function handleGoScenicList() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||
var _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success: function success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/register/index"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/scenicList/scenicList'
|
||||
});
|
||||
@ -1108,6 +1123,21 @@ var _default = {
|
||||
});
|
||||
},
|
||||
handleGoDetail: function handleGoDetail() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||
var _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success: function success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/register/index"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: "/pages/serviceDetail/index"
|
||||
});
|
||||
@ -1126,6 +1156,21 @@ var _default = {
|
||||
},
|
||||
// 功能列表
|
||||
handleFunClick: function handleFunClick(obj) {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||
var _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success: function success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/register/index"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
// 服务区
|
||||
if (obj.value === 1) {
|
||||
uni.navigateTo({
|
||||
@ -1242,6 +1287,21 @@ var _default = {
|
||||
},
|
||||
// 跳转到商城
|
||||
handleGoShop: function handleGoShop() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||
var _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success: function success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/register/index"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: "/pages/shopMallPage/index/index"
|
||||
});
|
||||
@ -1254,6 +1314,21 @@ var _default = {
|
||||
},
|
||||
// 跳转到选择服务区
|
||||
goSelectServer: function goSelectServer() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||
var _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success: function success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/register/index"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: "/pages/newMap/index/index?comeForm=home"
|
||||
});
|
||||
@ -1579,6 +1654,21 @@ var _default = {
|
||||
},
|
||||
// 跳转高速头条
|
||||
handleGoHighWay: function handleGoHighWay() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||
var _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success: function success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/register/index"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: "/pages/highwayHeadlines/index"
|
||||
});
|
||||
@ -1722,6 +1812,21 @@ var _default = {
|
||||
},
|
||||
// 打开地图的跳转
|
||||
handleGoMap: function handleGoMap() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||
var _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success: function success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/register/index"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.openLocation({
|
||||
latitude: this.serviceDetail.SERVERPART_Y * 1,
|
||||
longitude: this.serviceDetail.SERVERPART_X * 1,
|
||||
@ -1735,12 +1840,42 @@ var _default = {
|
||||
},
|
||||
// 跳转商品详情
|
||||
handleGoShopDetail: function handleGoShopDetail(obj) {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||
var _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success: function success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/register/index"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: "/pages/shopPages/shopDetail/index?id=".concat(obj.COMMODITY_ID)
|
||||
});
|
||||
},
|
||||
// 跳转商品列表接口
|
||||
handleGoShopList: function handleGoShopList(type) {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||
var _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success: function success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/register/index"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: "/pages/shopPages/shopList/index?type=".concat(type)
|
||||
});
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -354,8 +354,6 @@ var _default = {
|
||||
title: "正在提交...",
|
||||
mask: true
|
||||
});
|
||||
console.log('data', data);
|
||||
return;
|
||||
this.$api.postCoop(data).then(function (rs) {
|
||||
uni.hideLoading();
|
||||
_this.noPost = true;
|
||||
|
||||
@ -1166,6 +1166,7 @@ var _default = {
|
||||
},
|
||||
// 改变当前选中的规格
|
||||
handleChangeSelectSKULIST: function handleChangeSelectSKULIST(value, obj) {
|
||||
console.log('valuevaluevaluevalue', value);
|
||||
console.log('objobjobjobjobj', obj);
|
||||
if (obj.COMMODITY_STOCK > 0) {
|
||||
this.good.COMMODITY_RULE = obj.COMMODITY_NAME;
|
||||
@ -1173,6 +1174,7 @@ var _default = {
|
||||
this.good.COMMODITY_MEMBERPRICE = obj.COMMODITY_MEMBERPRICE;
|
||||
this.good.COMMODITY_PURCHASEPRICE = obj.COMMODITY_PURCHASEPRICE;
|
||||
}
|
||||
this.$forceUpdate();
|
||||
},
|
||||
// 添加商品到购物车
|
||||
touchOnGoods: function touchOnGoods(e, obj) {
|
||||
|
||||
220
unpackage/dist/dev/mp-weixin/pages/user/index.js
vendored
220
unpackage/dist/dev/mp-weixin/pages/user/index.js
vendored
@ -357,6 +357,21 @@ var _default = {
|
||||
methods: {
|
||||
// 跳转到余额
|
||||
hanldGoBalance: function hanldGoBalance() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||
var _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success: function success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/register/index"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: "/pages/useConfig/balanceManage"
|
||||
});
|
||||
@ -624,18 +639,63 @@ var _default = {
|
||||
},
|
||||
// 跳转会员设置
|
||||
hanldGoConfig: function hanldGoConfig() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||
var _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success: function success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/register/index"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/useConfig/userConfig'
|
||||
});
|
||||
},
|
||||
// 跳转到积分页面
|
||||
handleGoPoint: function handleGoPoint() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||
var _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success: function success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/register/index"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/useConfig/pointsDetail'
|
||||
});
|
||||
},
|
||||
// 跳转券包
|
||||
handleGoCoupon: function handleGoCoupon() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||
var _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success: function success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/register/index"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/homeFn/myCoupon/index'
|
||||
});
|
||||
@ -644,11 +704,29 @@ var _default = {
|
||||
onChooseAvatar: function onChooseAvatar(e) {
|
||||
var _this5 = this;
|
||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
||||
var _this;
|
||||
var _this6, _this;
|
||||
return _regenerator.default.wrap(function _callee5$(_context5) {
|
||||
while (1) {
|
||||
switch (_context5.prev = _context5.next) {
|
||||
case 0:
|
||||
if (!(_this5.user && !_this5.user.MEMBERSHIP_ID || !_this5.user && !_this5.user.MEMBERSHIP_ID)) {
|
||||
_context5.next = 4;
|
||||
break;
|
||||
}
|
||||
_this6 = _this5;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success: function success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/register/index"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return _context5.abrupt("return");
|
||||
case 4:
|
||||
_this = _this5;
|
||||
_this.showErrorText = 1;
|
||||
uni.uploadFile({
|
||||
@ -703,7 +781,7 @@ var _default = {
|
||||
_this.showErrorText = JSON.stringify(error);
|
||||
}
|
||||
});
|
||||
case 3:
|
||||
case 7:
|
||||
case "end":
|
||||
return _context5.stop();
|
||||
}
|
||||
@ -713,14 +791,14 @@ var _default = {
|
||||
},
|
||||
// 拿到用户详情
|
||||
handleGetUserDetail: function handleGetUserDetail() {
|
||||
var _this6 = this;
|
||||
var _this7 = this;
|
||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
||||
var _this;
|
||||
return _regenerator.default.wrap(function _callee6$(_context6) {
|
||||
while (1) {
|
||||
switch (_context6.prev = _context6.next) {
|
||||
case 0:
|
||||
_this = _this6;
|
||||
_this = _this7;
|
||||
_this.$api.getCoop({
|
||||
action_type: "GetMembershipInfo",
|
||||
WechatUserId: _this.user.WechatUserId
|
||||
@ -761,37 +839,82 @@ var _default = {
|
||||
},
|
||||
// 跳转去售后 即已完成的列表
|
||||
handleGo: function handleGo(url) {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||
var _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success: function success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/register/index"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
},
|
||||
// 跳转去点餐订单页面
|
||||
handleGoFoodOrder: function handleGoFoodOrder(value) {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||
var _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success: function success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/register/index"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: "/pages/order/foodOrder/index?type=".concat(value)
|
||||
});
|
||||
},
|
||||
// 绑定车辆
|
||||
handleGoBindCar: function handleGoBindCar() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||
var _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success: function success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/register/index"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: "/pages/bindCar/index"
|
||||
});
|
||||
},
|
||||
// 拿到车牌号
|
||||
handleGetCarCode: function handleGetCarCode() {
|
||||
var _this7 = this;
|
||||
var _this8 = this;
|
||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
||||
var _this, res, list;
|
||||
return _regenerator.default.wrap(function _callee7$(_context7) {
|
||||
while (1) {
|
||||
switch (_context7.prev = _context7.next) {
|
||||
case 0:
|
||||
_this = _this7;
|
||||
_this = _this8;
|
||||
uni.showLoading({
|
||||
title: "加载中"
|
||||
});
|
||||
_context7.next = 4;
|
||||
return _this7.$api.getCoop({
|
||||
return _this8.$api.getCoop({
|
||||
action_type: "GetVehicleList"
|
||||
});
|
||||
case 4:
|
||||
@ -830,7 +953,7 @@ var _default = {
|
||||
},
|
||||
// // 调起付款码
|
||||
handleShowPayCode: function handleShowPayCode() {
|
||||
var _this8 = this;
|
||||
var _this9 = this;
|
||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
|
||||
var timeStamp, nonceStr, req, reqSign, data;
|
||||
return _regenerator.default.wrap(function _callee8$(_context8) {
|
||||
@ -857,7 +980,7 @@ var _default = {
|
||||
// "\n",
|
||||
};
|
||||
_context8.next = 6;
|
||||
return _this8.$api.$get("/WeChat/GenerateSign", reqSign);
|
||||
return _this9.$api.$get("/WeChat/GenerateSign", reqSign);
|
||||
case 6:
|
||||
data = _context8.sent;
|
||||
console.log("data", data);
|
||||
@ -909,6 +1032,21 @@ var _default = {
|
||||
},
|
||||
// 跳转订单
|
||||
handleGoOrder: function handleGoOrder(value, pageType) {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||
var _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success: function success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/register/index"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (value === 4) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/evaluateList/index?pageType=".concat(pageType)
|
||||
@ -927,24 +1065,60 @@ var _default = {
|
||||
},
|
||||
// 跳转到会员码页面
|
||||
handleGoUserCode: function handleGoUserCode() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||
var _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success: function success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/register/index"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: "/pages/payfor/index"
|
||||
});
|
||||
},
|
||||
// 跳转去收藏页面
|
||||
handleGoCollect: function handleGoCollect() {
|
||||
if (this.user && !this.user.MEMBERSHIP_ID || !this.user && !this.user.MEMBERSHIP_ID) {
|
||||
var _this = this;
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "请您授权登录后再操作。",
|
||||
success: function success(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/register/index"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: "/pages/useConfig/FavoriteStore"
|
||||
});
|
||||
},
|
||||
handleGetOrderDetail: function handleGetOrderDetail() {
|
||||
var _this9 = this;
|
||||
var _this10 = this;
|
||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
|
||||
var req, data, list, obligation, pendingShipment, pendingReceiptOfGoods, mallOrderCountList, reqFood, dataFood, _list, _obligation, _pendingShipment, _pendingReceiptOfGoods, foodOrderCountList, foodTab;
|
||||
return _regenerator.default.wrap(function _callee9$(_context9) {
|
||||
while (1) {
|
||||
switch (_context9.prev = _context9.next) {
|
||||
case 0:
|
||||
if (!(_this10.user && !_this10.user.MEMBERSHIP_ID || !_this10.user && !_this10.user.MEMBERSHIP_ID)) {
|
||||
_context9.next = 2;
|
||||
break;
|
||||
}
|
||||
return _context9.abrupt("return");
|
||||
case 2:
|
||||
// 商城订单数据
|
||||
req = {
|
||||
action_type: "GetMallOrderList",
|
||||
@ -955,9 +1129,9 @@ var _default = {
|
||||
ownerUnitId: 911,
|
||||
requestType: "application/x-www-form-urlencoded"
|
||||
};
|
||||
_context9.next = 3;
|
||||
return _this9.$api.postCoop(req);
|
||||
case 3:
|
||||
_context9.next = 5;
|
||||
return _this10.$api.postCoop(req);
|
||||
case 5:
|
||||
data = _context9.sent;
|
||||
console.log('商城订单', data);
|
||||
if (data.ResultCode === "100") {
|
||||
@ -977,9 +1151,9 @@ var _default = {
|
||||
});
|
||||
}
|
||||
mallOrderCountList = [obligation && obligation.length > 0 ? obligation.length : 0, pendingShipment && pendingShipment.length > 0 ? pendingShipment.length : 0, pendingReceiptOfGoods && pendingReceiptOfGoods.length > 0 ? pendingReceiptOfGoods.length : 0];
|
||||
_this9.mallOrderCountList = mallOrderCountList;
|
||||
_this10.mallOrderCountList = mallOrderCountList;
|
||||
} else {
|
||||
_this9.mallOrderCountList - [0, 0, 0];
|
||||
_this10.mallOrderCountList - [0, 0, 0];
|
||||
}
|
||||
reqFood = {
|
||||
action_type: "GetOrderList",
|
||||
@ -990,9 +1164,9 @@ var _default = {
|
||||
ownerUnitId: 911,
|
||||
requestType: "application/x-www-form-urlencoded"
|
||||
};
|
||||
_context9.next = 9;
|
||||
return _this9.$api.postCoop(reqFood);
|
||||
case 9:
|
||||
_context9.next = 11;
|
||||
return _this10.$api.postCoop(reqFood);
|
||||
case 11:
|
||||
dataFood = _context9.sent;
|
||||
console.log('点餐订单', dataFood);
|
||||
if (dataFood.ResultCode === "100") {
|
||||
@ -1012,7 +1186,7 @@ var _default = {
|
||||
});
|
||||
}
|
||||
foodOrderCountList = [_obligation && _obligation.length > 0 ? _obligation.length : 0, _pendingShipment && _pendingShipment.length > 0 ? _pendingShipment.length : 0, _pendingReceiptOfGoods && _pendingReceiptOfGoods.length > 0 ? _pendingReceiptOfGoods.length : 0]; // this.foodOrderCountList = foodOrderCountList
|
||||
foodTab = JSON.parse(JSON.stringify(_this9.foodFunList));
|
||||
foodTab = JSON.parse(JSON.stringify(_this10.foodFunList));
|
||||
foodTab.forEach(function (item) {
|
||||
if (item.value === 1) {
|
||||
item.orderCount = _obligation && _obligation.length > 0 ? _obligation.length : 0;
|
||||
@ -1022,9 +1196,9 @@ var _default = {
|
||||
item.orderCount = _pendingReceiptOfGoods && _pendingReceiptOfGoods.length > 0 ? _pendingReceiptOfGoods.length : 0;
|
||||
}
|
||||
});
|
||||
_this9.foodFunList = foodTab;
|
||||
_this10.foodFunList = foodTab;
|
||||
} else {
|
||||
_this9.foodFunList = [{
|
||||
_this10.foodFunList = [{
|
||||
label: "待付款",
|
||||
value: 1,
|
||||
src: "/static/images/home/obligationIcon.svg"
|
||||
@ -1042,8 +1216,8 @@ var _default = {
|
||||
src: "/static/images/home/evaluatedIcon.svg"
|
||||
}];
|
||||
}
|
||||
_this9.$forceUpdate();
|
||||
case 13:
|
||||
_this10.$forceUpdate();
|
||||
case 15:
|
||||
case "end":
|
||||
return _context9.stop();
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user