update
This commit is contained in:
parent
ce5ceed50b
commit
8f64efb870
@ -39,7 +39,7 @@
|
|||||||
@click="handleBackHome"
|
@click="handleBackHome"
|
||||||
/>
|
/>
|
||||||
<view class="pageName">{{
|
<view class="pageName">{{
|
||||||
pageType === "UnionMall" ? "工会商城" : "彩云驿商城"
|
pageType === "UnionMall" ? "工会之家" : "彩云驿商城"
|
||||||
}}</view>
|
}}</view>
|
||||||
<view class="backArrow"></view>
|
<view class="backArrow"></view>
|
||||||
</view>
|
</view>
|
||||||
@ -80,7 +80,7 @@
|
|||||||
? '100%'
|
? '100%'
|
||||||
: shopTypeList.length * 136 + 60 + 'rpx',
|
: shopTypeList.length * 136 + 60 + 'rpx',
|
||||||
}" -->
|
}" -->
|
||||||
<!-- 工会商城 -->
|
<!-- 工会之家 -->
|
||||||
<div
|
<div
|
||||||
class="rowBox"
|
class="rowBox"
|
||||||
@click="handleGoUnionMall"
|
@click="handleGoUnionMall"
|
||||||
@ -325,7 +325,7 @@
|
|||||||
</scroll-view>
|
</scroll-view>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 工会商城的时候 显示排行榜 -->
|
<!-- 工会之家的时候 显示排行榜 -->
|
||||||
|
|
||||||
<div class="sortBox" v-if="pageType === 'UnionMall'">
|
<div class="sortBox" v-if="pageType === 'UnionMall'">
|
||||||
<div class="leftSortBox" @click="handleGoSortList(1)">
|
<div class="leftSortBox" @click="handleGoSortList(1)">
|
||||||
@ -793,7 +793,7 @@ export default {
|
|||||||
], // 热门品牌类型
|
], // 热门品牌类型
|
||||||
minPrice: "", // 最低价
|
minPrice: "", // 最低价
|
||||||
maxPrice: "", // 最高价
|
maxPrice: "", // 最高价
|
||||||
allShopList: [], // 工会商城时拿到的全部商品
|
allShopList: [], // 工会之家时拿到的全部商品
|
||||||
showShopList: [], // 当前显示的全部商品
|
showShopList: [], // 当前显示的全部商品
|
||||||
pageIndex: 1, // 当前显示几个 10个商品
|
pageIndex: 1, // 当前显示几个 10个商品
|
||||||
shopMsg: {
|
shopMsg: {
|
||||||
@ -960,7 +960,7 @@ export default {
|
|||||||
// UserdefinedType_ICO: "",
|
// UserdefinedType_ICO: "",
|
||||||
// },
|
// },
|
||||||
// ];
|
// ];
|
||||||
// 拿到工会商城的商品列表
|
// 拿到工会之家的商品列表
|
||||||
this.handleGetUnionShopList();
|
this.handleGetUnionShopList();
|
||||||
} else {
|
} else {
|
||||||
// 拿到顶部商品大类的方法
|
// 拿到顶部商品大类的方法
|
||||||
@ -1000,14 +1000,16 @@ export default {
|
|||||||
onShareAppMessage() {
|
onShareAppMessage() {
|
||||||
let _this = this;
|
let _this = this;
|
||||||
return {
|
return {
|
||||||
title: _this.pageType === "UnionMall" ? "工会商城" : "精选商城",
|
// title: _this.pageType === "UnionMall" ? "工会之家" : "精选商城",
|
||||||
|
title:"彩云驿商城",
|
||||||
path: `/pages/index/index?pageType=${this.pageType}`,
|
path: `/pages/index/index?pageType=${this.pageType}`,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onShareTimeline() {
|
onShareTimeline() {
|
||||||
let _this = this;
|
let _this = this;
|
||||||
return {
|
return {
|
||||||
title: _this.pageType === "UnionMall" ? "工会商城" : "精选商城",
|
// title: _this.pageType === "UnionMall" ? "工会之家" : "精选商城",
|
||||||
|
title:"彩云驿商城",
|
||||||
path: `/pages/index/index?pageType=${this.pageType}`,
|
path: `/pages/index/index?pageType=${this.pageType}`,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -1123,7 +1125,7 @@ export default {
|
|||||||
}
|
}
|
||||||
return shopList;
|
return shopList;
|
||||||
},
|
},
|
||||||
// 工会商城滚动到底部
|
// 工会之家滚动到底部
|
||||||
handleToBottom() {
|
handleToBottom() {
|
||||||
this.shopMsg.pageIndex = this.shopMsg.pageIndex + 1;
|
this.shopMsg.pageIndex = this.shopMsg.pageIndex + 1;
|
||||||
if (this.shopMsg.isOver) {
|
if (this.shopMsg.isOver) {
|
||||||
@ -1140,7 +1142,7 @@ export default {
|
|||||||
this.handleGetProductsList();
|
this.handleGetProductsList();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 拿到工会商城的商品列表
|
// 拿到工会之家的商品列表
|
||||||
async handleGetUnionShopList() {
|
async handleGetUnionShopList() {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: "加载中...",
|
title: "加载中...",
|
||||||
@ -1222,7 +1224,7 @@ export default {
|
|||||||
pageSize: 6,
|
pageSize: 6,
|
||||||
isOver: false,
|
isOver: false,
|
||||||
};
|
};
|
||||||
// 拿到工会商城的商品列表
|
// 拿到工会之家的商品列表
|
||||||
await this.handleGetUnionShopList();
|
await this.handleGetUnionShopList();
|
||||||
this.$refs.priceRangeRef.close();
|
this.$refs.priceRangeRef.close();
|
||||||
},
|
},
|
||||||
@ -1243,7 +1245,7 @@ export default {
|
|||||||
pageSize: 6,
|
pageSize: 6,
|
||||||
isOver: false,
|
isOver: false,
|
||||||
};
|
};
|
||||||
// 拿到工会商城的商品列表
|
// 拿到工会之家的商品列表
|
||||||
await this.handleGetUnionShopList();
|
await this.handleGetUnionShopList();
|
||||||
this.$refs.priceRangeRef.close();
|
this.$refs.priceRangeRef.close();
|
||||||
},
|
},
|
||||||
@ -1604,7 +1606,7 @@ export default {
|
|||||||
}`,
|
}`,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 跳转工会商城
|
// 跳转工会之家
|
||||||
handleGoUnionMall() {
|
handleGoUnionMall() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/shopMallPage/index/index?pageType=UnionMall`,
|
url: `/pages/shopMallPage/index/index?pageType=UnionMall`,
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
@click="handleBackHome"
|
@click="handleBackHome"
|
||||||
/>
|
/>
|
||||||
<view class="pageName">{{
|
<view class="pageName">{{
|
||||||
bigPageType === "UnionMall" ? "工会商城购物车" : "购物车"
|
bigPageType === "UnionMall" ? "工会之家购物车" : "购物车"
|
||||||
}}</view>
|
}}</view>
|
||||||
<view class="backArrow"></view>
|
<view class="backArrow"></view>
|
||||||
</view>
|
</view>
|
||||||
@ -311,7 +311,7 @@ export default {
|
|||||||
pageOut: false, // 是不是从立即下单离开页面的
|
pageOut: false, // 是不是从立即下单离开页面的
|
||||||
storeId: "",
|
storeId: "",
|
||||||
systemInfo: {},
|
systemInfo: {},
|
||||||
bigPageType: "", // 页面类型 是不是进来查工会商城的
|
bigPageType: "", // 页面类型 是不是进来查工会之家的
|
||||||
userInfo: {}, // 最新的用户数据
|
userInfo: {}, // 最新的用户数据
|
||||||
addressList: [], // 地址列表
|
addressList: [], // 地址列表
|
||||||
showAddressObj: {}, // 当前选中的地址
|
showAddressObj: {}, // 当前选中的地址
|
||||||
@ -798,11 +798,11 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 判断是不是在工会商城下单 下单的话 就要查询用户余额 余额有的 才能下单
|
// 判断是不是在工会之家下单 下单的话 就要查询用户余额 余额有的 才能下单
|
||||||
if (this.bigPageType === "UnionMall") {
|
if (this.bigPageType === "UnionMall") {
|
||||||
if (!(this.userInfo.ACCOUNT_BALANCE > 0)) {
|
if (!(this.userInfo.ACCOUNT_BALANCE > 0)) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "工会商城余额为0,无法下单!",
|
title: "工会之家余额为0,无法下单!",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
@click="handleBackHome"
|
@click="handleBackHome"
|
||||||
/>
|
/>
|
||||||
<view class="pageName">{{
|
<view class="pageName">{{
|
||||||
pageType === "UnionMall" ? "工会商城分类" : "分类"
|
pageType === "UnionMall" ? "工会之家分类" : "分类"
|
||||||
}}</view>
|
}}</view>
|
||||||
<view class="backArrow"></view>
|
<view class="backArrow"></view>
|
||||||
</view>
|
</view>
|
||||||
@ -382,7 +382,7 @@ export default {
|
|||||||
shopCarList: [], // 购物车数组
|
shopCarList: [], // 购物车数组
|
||||||
shopCarListLength: 0, // 购物车长度
|
shopCarListLength: 0, // 购物车长度
|
||||||
rightShopList: [], // 右侧商品列表
|
rightShopList: [], // 右侧商品列表
|
||||||
pageType: "", // 页面类型 是不是进来查工会商城的
|
pageType: "", // 页面类型 是不是进来查工会之家的
|
||||||
leftId: "", //传入的左侧小类的默认位置
|
leftId: "", //传入的左侧小类的默认位置
|
||||||
good: {}, // 悬浮框里面 选择规格的商品详情
|
good: {}, // 悬浮框里面 选择规格的商品详情
|
||||||
systemInfo: {},
|
systemInfo: {},
|
||||||
@ -441,7 +441,7 @@ export default {
|
|||||||
this.shopCarList = shopCarList;
|
this.shopCarList = shopCarList;
|
||||||
}
|
}
|
||||||
if (this.pageType === "UnionMall") {
|
if (this.pageType === "UnionMall") {
|
||||||
// 工会商城拿到的商品类型
|
// 工会之家拿到的商品类型
|
||||||
this.handleGetUnionMallShopType();
|
this.handleGetUnionMallShopType();
|
||||||
} else {
|
} else {
|
||||||
// 拿到全部商品类型
|
// 拿到全部商品类型
|
||||||
@ -473,7 +473,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.pageType === "UnionMall") {
|
if (this.pageType === "UnionMall") {
|
||||||
// 工会商城拿到的商品类型
|
// 工会之家拿到的商品类型
|
||||||
this.handleGetUnionMallShopType();
|
this.handleGetUnionMallShopType();
|
||||||
} else {
|
} else {
|
||||||
// 拿到全部商品类型
|
// 拿到全部商品类型
|
||||||
@ -625,7 +625,7 @@ export default {
|
|||||||
handleClosePop() {
|
handleClosePop() {
|
||||||
this.$refs.shopPopup.close();
|
this.$refs.shopPopup.close();
|
||||||
},
|
},
|
||||||
// 工会商城拿到的商品类型
|
// 工会之家拿到的商品类型
|
||||||
async handleGetUnionMallShopType() {
|
async handleGetUnionMallShopType() {
|
||||||
const req = {
|
const req = {
|
||||||
ownerUnitId: 911,
|
ownerUnitId: 911,
|
||||||
@ -770,7 +770,7 @@ export default {
|
|||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
} else {
|
} else {
|
||||||
if (this.pageType === "UnionMall") {
|
if (this.pageType === "UnionMall") {
|
||||||
// 工会商城拿到的商品类型
|
// 工会之家拿到的商品类型
|
||||||
this.handleGetUnionMallShopType();
|
this.handleGetUnionMallShopType();
|
||||||
} else {
|
} else {
|
||||||
// 拿到全部商品类型
|
// 拿到全部商品类型
|
||||||
@ -1344,7 +1344,7 @@ export default {
|
|||||||
url: `/pages/shopPages/shopList/index?pageType=pointsMall`,
|
url: `/pages/shopPages/shopList/index?pageType=pointsMall`,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 跳转工会商城
|
// 跳转工会之家
|
||||||
handleGoUnionMall() {
|
handleGoUnionMall() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/shopMallPage/index/index?pageType=UnionMall`,
|
url: `/pages/shopMallPage/index/index?pageType=UnionMall`,
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
@click="handleBackHome"
|
@click="handleBackHome"
|
||||||
/>
|
/>
|
||||||
<text class="pageTitle">{{
|
<text class="pageTitle">{{
|
||||||
pageType === "UnionMall" ? "工会商城我的" : "我的"
|
pageType === "UnionMall" ? "工会之家我的" : "我的"
|
||||||
}}</text>
|
}}</text>
|
||||||
<view class="backArrow"></view>
|
<view class="backArrow"></view>
|
||||||
</view>
|
</view>
|
||||||
@ -130,7 +130,7 @@ export default {
|
|||||||
Comment_Count: 0, // 待评价
|
Comment_Count: 0, // 待评价
|
||||||
Unpaid_Count: 0, // 待付款
|
Unpaid_Count: 0, // 待付款
|
||||||
|
|
||||||
pageType: "", // 页面类型 是不是进来查工会商城的
|
pageType: "", // 页面类型 是不是进来查工会之家的
|
||||||
shopCarListCount: 0, // 购物车商品数量
|
shopCarListCount: 0, // 购物车商品数量
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
@ -259,7 +259,7 @@ export default {
|
|||||||
addressInfo: {}, // 选择的地址信息
|
addressInfo: {}, // 选择的地址信息
|
||||||
selectAddressId: 0,
|
selectAddressId: 0,
|
||||||
isFirst: true, // 判断是不是第一次进入到页面
|
isFirst: true, // 判断是不是第一次进入到页面
|
||||||
pageType: "", // 判断是工会商城 还是 精选商城
|
pageType: "", // 判断是工会之家 还是 精选商城
|
||||||
userInfo: {}, // 最新的用户信息
|
userInfo: {}, // 最新的用户信息
|
||||||
selectTab: 1, // 1 是 配送 2 到店自取
|
selectTab: 1, // 1 是 配送 2 到店自取
|
||||||
phoneNumber: "", // 当前用户的默认手机号
|
phoneNumber: "", // 当前用户的默认手机号
|
||||||
@ -621,8 +621,8 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 判断是工会商城下单 还是精选商城下单
|
// 判断是工会之家下单 还是精选商城下单
|
||||||
// 精选商城 调用微信支付 工会商城是调用余额支付
|
// 精选商城 调用微信支付 工会之家是调用余额支付
|
||||||
if (this.pageType === "UnionMall") {
|
if (this.pageType === "UnionMall") {
|
||||||
this.handleBalancePayment(data.Data);
|
this.handleBalancePayment(data.Data);
|
||||||
} else {
|
} else {
|
||||||
@ -746,7 +746,7 @@ export default {
|
|||||||
// 生成一个符合要求的商户订单号(长度为16的示例)
|
// 生成一个符合要求的商户订单号(长度为16的示例)
|
||||||
// 获取后台信息调取微信支付
|
// 获取后台信息调取微信支付
|
||||||
async getOrderInfo(obj, payMoney) {
|
async getOrderInfo(obj, payMoney) {
|
||||||
// payMoney 工会商城订单 组合支付时可能会出现的值
|
// payMoney 工会之家订单 组合支付时可能会出现的值
|
||||||
let _this = this;
|
let _this = this;
|
||||||
console.log("_this.couponOrder", _this.couponOrder);
|
console.log("_this.couponOrder", _this.couponOrder);
|
||||||
// 拿到签名
|
// 拿到签名
|
||||||
|
|||||||
@ -617,7 +617,7 @@ export default {
|
|||||||
showTopFixed: false, // 顶部显示的锚点tab
|
showTopFixed: false, // 顶部显示的锚点tab
|
||||||
pageTab: 1, // 锚点tab的选中
|
pageTab: 1, // 锚点tab的选中
|
||||||
scrollView: "", // 滚动的锚点
|
scrollView: "", // 滚动的锚点
|
||||||
pageType: "", // 页面类型 UnionMall 为工会商城
|
pageType: "", // 页面类型 UnionMall 为工会之家
|
||||||
countdown: "", // 存储倒计时的显示内容
|
countdown: "", // 存储倒计时的显示内容
|
||||||
isCountdown: false, // 判断是否进入到倒计时
|
isCountdown: false, // 判断是否进入到倒计时
|
||||||
timer: null, // 定时器
|
timer: null, // 定时器
|
||||||
|
|||||||
@ -129,7 +129,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 工会商城订单栏 -->
|
<!-- 工会之家订单栏 -->
|
||||||
<view class="orderFun">
|
<view class="orderFun">
|
||||||
<view class="boxTitleTop" @click="handleGoOrder(0, 'UnionMall')">
|
<view class="boxTitleTop" @click="handleGoOrder(0, 'UnionMall')">
|
||||||
<text class="boxTitle">工会订单</text>
|
<text class="boxTitle">工会订单</text>
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
<title>编组_13@2x</title>
|
<title>编组_13@2x</title>
|
||||||
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||||
<g id="工会商城" transform="translate(-481.000000, -838.000000)">
|
<g id="工会之家" transform="translate(-481.000000, -838.000000)">
|
||||||
<g id="编组-15" transform="translate(481.000000, 838.000000)">
|
<g id="编组-15" transform="translate(481.000000, 838.000000)">
|
||||||
<rect id="矩形" x="0" y="0" width="16" height="16"></rect>
|
<rect id="矩形" x="0" y="0" width="16" height="16"></rect>
|
||||||
<path d="M14,1.6 L14.4,3.46577994 L10.5397879,6.43243188 C10.1197921,6.73282815 9.87058799,7.21745353 9.87058799,7.73382006 L9.87058799,13.41846 C9.79544844,13.6276102 9.70109351,13.7820522 9.57662971,13.8659469 L6.37933456,12.6967301 L6.12941167,7.73385697 C6.12941167,7.21745748 5.88017594,6.73280537 5.46013577,6.43241445 L1.76731897,3.79150366 L1.6,2 L14,1.6 Z" id="路径" stroke="#716F69" stroke-width="1.2"></path>
|
<path d="M14,1.6 L14.4,3.46577994 L10.5397879,6.43243188 C10.1197921,6.73282815 9.87058799,7.21745353 9.87058799,7.73382006 L9.87058799,13.41846 C9.79544844,13.6276102 9.70109351,13.7820522 9.57662971,13.8659469 L6.37933456,12.6967301 L6.12941167,7.73385697 C6.12941167,7.21745748 5.88017594,6.73280537 5.46013577,6.43241445 L1.76731897,3.79150366 L1.6,2 L14,1.6 Z" id="路径" stroke="#716F69" stroke-width="1.2"></path>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1016 B After Width: | Height: | Size: 1016 B |
@ -3,7 +3,7 @@ const state = {
|
|||||||
InviteCode: '', // 被邀请码
|
InviteCode: '', // 被邀请码
|
||||||
shopcartOrder: {}, // 购物车信息
|
shopcartOrder: {}, // 购物车信息
|
||||||
myShopCar: [], // 购物车信息
|
myShopCar: [], // 购物车信息
|
||||||
unionMyShopCar: [], // 工会商城购物车信息
|
unionMyShopCar: [], // 工会之家购物车信息
|
||||||
nowStore: {}, // 当前点餐的商家信息
|
nowStore: {}, // 当前点餐的商家信息
|
||||||
orderNumber: '', // 订单号
|
orderNumber: '', // 订单号
|
||||||
orderInternal: '', // 订单内码
|
orderInternal: '', // 订单内码
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user