提交代码

yj-dev
杨杰 2 years ago
parent fb445b4b4f
commit 851a905cb3
  1. 2
      App.vue
  2. 172
      Utils/Api.js
  3. 12
      pages/goods/goods-list/goods-list.vue
  4. 167
      pages/order/confirmation.vue
  5. 179
      pages/tabBar/home/home.vue
  6. 12
      pages/user/mineCouponsDestails/mineCouponsDestails.vue
  7. 12
      subPages/coupon-package/coupon-package.vue
  8. 12
      subPages/recharge/recharge.vue
  9. 4
      subPages/unionComfirmation/unionComfirmation.vue

@ -7,6 +7,7 @@
//
// url: 'https://hsg.dctpay.com/crest',
// v1url:'https://hsg.dctpay.com/v1',
// orderurl:' https://hsg.dctpay.com/order',
// imgUrl: 'https://hsg.dctpay.com/filesystem/',
// brestUrl: 'https://hsg.dctpay.com/brest',
// imageWxImg: 'https://hsg.dctpay.com/filesystem/wxApplets/',
@ -14,6 +15,7 @@
//
url: 'https://hsgcs.dctpay.com/crest',
v1url: 'https://hsgcs.dctpay.com/v1',
orderurl:' https://hsgcs.dctpay.com/order',
brestUrl: 'https://hsgcs.dctpay.com/brest',
imgUrl: 'https://hsgcs.dctpay.com/filesystem/',
imageWxImg: 'https://hsgcs.dctpay.com/filesystem/wxApplets/',

@ -6,19 +6,20 @@ import {
} from "./bRequest.js";
let app = getApp();
let base = app.globalData.url;
let orderbase = app.globalData.orderurl;
let v1base = app.globalData.v1url;
let brestBase = app.globalData.brestUrl;
//公众号获取跳小程序参数
let brestBase = app.globalData.brestUrl;
//公众号获取跳小程序参数
export const verifyWx = params => {
return POST('GET', `${v1base}/wxMsg/verifyWx`, params).then(res => res.data);
}
//公众号获取跳转小程序地址
}
//公众号获取跳转小程序地址
export const getScheme = params => {
return POST('GET', `${v1base}/wxMsg/getScheme`, params).then(res => res.data);
}
}
//根据code获取openId
export const HandleCode = params => {
return POST('GET', `${base}/wechat/handleCode`, params).then(res => res.data);
@ -119,11 +120,11 @@ export const orderToGoldPay = params => {
//查询用户积分使用情况
export const getUserGoldRecList = params => {
return POST('GET', `${base}/highGoldRec/getUserGoldRecList`, params).then(res => res.data);
}
//查询积分7天过期
}
//查询积分7天过期
export const selectByExpiringSoon = params => {
return POST('GET', `${base}/highGoldRec/selectByExpiringSoon`, params).then(res => res.data);
}
}
//获取用户卡券
export const getUserCouponList = params => {
return POST('GET', `${base}/coupon/getUserCouponList`, params).then(res => res.data);
@ -137,9 +138,9 @@ export const getUserNewCouponDetail = params => {
return POST('GET', `${base}/coupon/getUserNewCouponDetail`, params).then(res => res.data);
}
//获取订单信息
export const getUserOrderList = params => {
return POST('GET', `${base}/highOrder/getUserOrderList`, params).then(res => res.data);
}
// export const getUserOrderList = params => {
// return POST('GET', `${base}/highOrder/getUserOrderList`, params).then(res => res.data);
// }
//取消订单
export const cancelOrder = params => {
return POST('GET', `${base}/highOrder/cancelOrder`, params).then(res => res.data);
@ -147,11 +148,11 @@ export const cancelOrder = params => {
//订单查询详情
export const getOrderById = params => {
return POST('GET', `${base}/highOrder/getOrderById`, params).then(res => res.data);
}
//已完成未查看
}
//已完成未查看
export const orderCheck = params => {
return POST('GET', `${base}/highOrder/orderCheck`, params).then(res => res.data);
}
}
//获取商户列表
export const getMerchantList = params => {
@ -173,18 +174,18 @@ export const getUserOrderPreList = params => {
//领取优惠券
export const receiveDiscount = params => {
return POST('POST', `${base}/userDiscount/receiveDiscount`, params).then(res => res.data);
}
//领取优惠券
}
//领取优惠券
export const receive = params => {
return POST('POST', `${base}/userDiscount/receive`, params).then(res => res.data);
}
//根据code查询优惠券
}
//根据code查询优惠券
export const getDiscountByCode = params => {
return POST('GET', `${base}/discount/getDiscountByCode`, params).then(res => res.data);
}
}
// 根据优惠券查卡券
export const getCouponByDiscount = params => {
@ -233,11 +234,11 @@ export const oilPriceCompute = params => {
//团油计算新价格
export const oilPriceDiscountCompute = params => {
return POST('GET', `${base}/highGas/oilPriceDiscountCompute`, params).then(res => res.data);
}
//在线加油优惠券
}
//在线加油优惠券
export const canUseDiscount = params => {
return POST('POST', `${base}/userDiscount/canUseDiscount`, params).then(res => res.data);
}
}
//查询卡数据字典
export const getDictionaryByCodeType = params => {
return POST('GET', `${base}/common/getDictionaryByCodeType`, params).then(res => res.data);
@ -351,11 +352,11 @@ export const getWinLotteryList = params => {
//跳转是否赠券
export const getMembershipLevel = params => {
return POST('GET', `${base}/highUser/GetMembershipLevel`, params).then(res => res.data);
}
//查询配置方式
}
//查询配置方式
export const getThirdPartyByDetail = params => {
return POST('GET', `${base}/highThirdParty/getThirdPartyByDetail`, params).then(res => res.data);
}
}
/**
* 肯德基地址
*/
@ -365,29 +366,29 @@ export const getTPigKFCToken = params => {
//查询城市列表
export const getAllCity = params => {
return POST('GET', `${base}/highThirdParty/getAllCity`, params).then(res => res.data);
}
//首页城市选择
}
//首页城市选择
export const findCompanyByCityName = params => {
return POST('GET', `${base}/common/findCompanyByCityName`, params).then(res => res.data);
}
}
//查询肯德基门店列表
export const getKfcStoresList = params => {
return POST('GET', `${base}/highThirdParty/getKfcStoresList`, params).then(res => res.data);
}
//肯德基商品详情
}
//肯德基商品详情
export const listByStoreCode = params => {
return POST('GET', `${base}/highThirdParty/listByStoreCode`, params).then(res => res.data);
}
//肯德基订单详情
}
//肯德基订单详情
export const getThirdOrderByOrderId = params => {
return POST('GET', `${base}/highThirdParty/getThirdOrderByOrderId`, params).then(res => res.data);
}
//肯德基,星巴克取消订单
}
//肯德基,星巴克取消订单
export const thirdCancelOrder = params => {
return POST('GET', `${base}/highThirdParty/thirdCancelOrder`, params).then(res => res.data);
}
}
//电影票
@ -403,40 +404,40 @@ export const getStarbucksStore = params => {
export const getStarbucksProducts = params => {
return POST('GET', `${base}/highThirdParty/getStarbucksProducts`, params).then(res => res.data);
}
//微信支付千猪
//微信支付千猪
export const qianzhuorderToPayByWx = params => {
return POST('POST', `${base}/thirdOrder/orderToPayByWx`, params).then(res => res.data);
}
//星巴克下单
}
//星巴克下单
export const xbkaddOrder = params => {
return POST('POST', `${base}/highThirdParty/addOrder`, params).then(res => res.data);
}
//会员充值产品
}
//会员充值产品
export const getMemberProducts = params => {
return POST('GET', `${base}/highThirdParty/getMemberProducts`, params).then(res => res.data);
}
//分销统计数据
}
//分销统计数据
export const userDistributionStatistics = params => {
return POST('GET', `${base}/highUser/userDistributionStatistics`, params).then(res => res.data);
}
//邀请列表
}
//邀请列表
export const distributionInviteList = params => {
return POST('GET', `${base}/highUser/distributionInviteList`, params).then(res => res.data);
}
//分销用户积分列表
}
//分销用户积分列表
export const distributionOrderList = params => {
return POST('GET', `${base}/highUser/distributionOrderList`, params).then(res => res.data);
}
//分销用户积分列表
}
//分销用户积分列表
export const promoteOrderList = params => {
return POST('GET', `${base}/highUser/promoteOrderList`, params).then(res => res.data);
}
//生成海报
}
//生成海报
export const promotionalPosters = params => {
return POST('GET', `${base}/highUser/promotionalPosters`, params).then(res => res.data);
}
}
export const qzOrderToPay = params => {
return POST('POST', `${base}/order/qzOrderToPay`, params).then(res => res.data);
@ -449,25 +450,25 @@ export const getGatewayToken = params => {
export const cancelOrderByOrderNo = params => {
return POST('GET', `${base}/highOrder/cancelOrderByOrderNo`, params).then(res => res.data);
}
//中石油生成二维码
//中石油生成二维码
export const getVerifyQRCode = params => {
return POST('GET', `${base}/coupon/getVerifyQRCode`, params).then(res => res.data);
}
}
/**
* H5 获取用户信息
*/
//判断是否有手机号
*/
//判断是否有手机号
export const getH5AccessByOpenId = params => {
return POST('GET', `${base}/wechat/getH5AccessByOpenId`, params).then(res => res.data);
}
//h5静默登陆
//h5静默登陆
export const loginBySilence = params => {
return POST('GET', `${base}/wechat/loginBySilence`, params).then(res => res.data);
}
}
export const getH5UserInfo = params => {
return POST('GET', `${base}/wechat/getH5UserInfo`, params).then(res => res.data);
@ -515,8 +516,8 @@ export const getCodeListByAgentCoupon = params => {
// 生成二维码
export const generateCode = params => {
return POSTBREST('POST', `${brestBase}/highCouponAgent/generateCode`, params).then(res => res.data);
}
}
// 兑换码填写备注
export const highremark = params => {
@ -604,17 +605,36 @@ export const orderToPayByWx = params => {
//工会卡支付
export const hltUnionCardPayghk = params => {
return POST('POST', `${base}/czOrder/hltUnionCardPay`, params).then(res => res.data);
}
}
export const czhltUnionCardPay = params => {
return POST('POST', `${base}/thirdOrder/hltUnionCardPay`, params).then(res => res.data);
}
}
//话费列表
export const getUserOrderListhuafei = params => {
return POST('GET', `${base}/outRechargeOrder/getUserOrderList`, params).then(res => res.data);
}
//肯德基返利
}
//肯德基返利
export const getRebateIntegral = params => {
return POST('POST', `${base}/common/getRebateIntegral`, params).then(res => res.data);
}
// -----------订单新接口------------
//新建订单
export const create = params => {
return POST('POST', `${orderbase}/create`, params).then(res => res.data);
}
//获取订单列表
export const getUserOrderList = params => {
return POST('GET', `${orderbase}/getUserOrderList`, params).then(res => res.data);
}
//订单详情
export const getDetailByOrderNo = params => {
return POST('GET', `${orderbase}/getDetailByOrderNo`, params).then(res => res.data);
}
//取消订单
export const cancel = params => {
return POST('POST', `${orderbase}/cancel`, params).then(res => res.data);
}

@ -185,9 +185,17 @@
this.getCouponListArea();
},
//
getCmsContent(item) {
getCmsContent(item) {
let code;
// #ifdef H5
code = '2'
// #endif
// #ifdef MP
code = '1'
// #endif
let params = {
regionId: app.globalData.cityId,
companyId: app.globalData.companyId,
platform: code,
categoryCode: item
}
getCmsContent(params).then(res => {

@ -95,7 +95,55 @@
</view>
</view>
<view class="width94 comorder mart10">
<view class="width94 comorder mart10">
<view class="width92 alijusstart paddtop20">
<view class="width30 fcor333 fontwig6 font16">
积分抵扣
</view>
<view class="cj-slider">
<view class="flleft fotct font14 fcor666" style="width: 15%;">0</view>
<cj-slider style="width: 60%; float:left;" v-if="isDiscount" v-model="priceValue" :min="0"
:max="availIntegal" :step="1" :blockWidth="40" @start="blockStart" @moving="blockMoving"
@end="blockEnd" />
<!-- <cj-slider style="width: 60%; float:left;" v-if="isDiscount == 2" v-model="priceValue" :min="0"
:max="availIntegal" :step="1" :blockWidth="40" @start="blockStart" @moving="blockMoving"
@end="blockEnd" /> -->
<view class="flright fotrt font14 fcor666" style="width: 25%;">{{availIntegal}}</view>
</view>
</view>
<view class="width94 line1 mart15 marb5"></view>
<view class="height50 width100 backcorfff">
<view class="width70 flleft fcor333 fontwig6 font16 text1" style="padding-left: 4%;">
抵扣金额
</view>
<view class="width20 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun"
style="align-items: center;">
¥{{priceValue[1] / 100}}
</view>
</view>
<view class="width94 line1 mart5 marb5"></view>
<view class="height40 width100 backcorfff">
<view class="width40 flleft fcor666 font15 fontwig6 text1 alijusstart" style="padding-left: 2%;">
<image src="../../static/img/rebate.png" mode="widthFix" style="width: 25px;"></image>
<text>下单返积分</text>
</view>
<view class="width50 flright fotrt paddtright10 font15 colore95 alijun" v-if="Integrastu == 1"
style="align-items: center;">
{{rebateIntegral}}积分
</view>
<view class="width50 flright fotrt paddtright10 font15 colore95 alijun" v-if="Integrastu == 2"
style="align-items: center;">
{{rebateIntegral}}
</view>
</view>
<view class=" width100 backcorfff alijusstart paddbotm10" style="padding-left: 2%;">
<image src="../../static/img/sigh.png" mode="widthFix" class="icon20"></image>
<text class="fcor999 font13">积分抵扣与优惠券抵扣不同享</text>
</view>
<view class="height50 width100 backcorfff">
<view class="width100 flleft fcor333 fontwig6 font16" style="padding-left: 4%;">
支付方式: <text class="jfrecharge" @click="jumpdeposits"
@ -194,17 +242,21 @@
<script>
import {
addOrder,
addOrder,
create,
getCouponById,
loginByPhone,
getUserNormalDiscountList,
orderToPay,
orderToGoldPay,
findUser,
hltUnionCardPay,
getHuiLianTongCardBalance
hltUnionCardPay,
getRebateIntegral,
getHuiLianTongCardBalance,
findById
} from '../../Utils/Api.js';
import wybPopup from '../../components/wyb-popup/wyb-popup.vue';
import wybPopup from '../../components/wyb-popup/wyb-popup.vue';
import cjSlider from '../../components/cj-slider/cj-slider.vue';
import ssPaymentPassword from '../../components/sanshui-payment-password'
let app = getApp();
// #ifdef H5
@ -243,7 +295,15 @@
coupondiscountid: '',
orderDetails: '', //
payGold: '', //
identificationCode: '' //
identificationCode: '' ,//
paytypeList: [], //
priceValue: [0, 0], //
changePrice: '', //
isDiscount: true,
availIntegal: '', //
isUse: true, //
rebateIntegral: '', //
Integrastu: 1 //
};
},
onLoad(option) {
@ -289,24 +349,79 @@
return `${year}${spe}${month}${spe}${day} ${h}:${mm}:${s}`;
}
},
methods: {
methods: {
//
findById() {
uni.showLoading({
title: '加载中'
})
let showType;
// #ifdef H5
showType = 2;
// #endif
// #ifdef MP
showType = 1;
// #endif
let datas = {
platformId: showType,
id: this.objectId
}
findById(datas).then(res => {
if (res.return_code == '000000') {
uni.hideLoading();
this.rechargeDes = res.return_data;
this.paytypeList = res.return_data.productPayTypeString.split(',');
this.paytypeList = this.paytypeList.slice(0, this.paytypeList.length - 1);
let zkprice = parseFloat(res.return_data.integralDiscount / 100).toFixed(2);
let pprice = parseFloat(res.return_data.payPrice * 100).toFixed(0)
let payprice = parseFloat(res.return_data.payPrice * 100 * zkprice).toFixed(
0);
if (payprice > this.user.gold) {
this.availIntegal = this.user.gold;
} else {
this.availIntegal = payprice;
}
}
});
},
//
findUser() {
let params;
findUser(params).then(res => {
if (res.return_code == '000000') {
app.globalData.userInfo = res.return_data;
this.user = res.return_data;
this.user = res.return_data;
this.availIntegal = res.return_data.gold;
this.findById();
if (this.user.hltCardNo) {
this.getHuiLianTongCardBalance();
this.getHuiLianTongCardBalance();
}
this.getUserNormalDiscountList();
this.getUserNormalDiscountList();
this.getRebateIntegral();
uni.setStorage({
key: "user",
data: res.return_data
})
}
});
},
//
getRebateIntegral() {
let datas = {
"companyId": app.globalData.companyId,
"price": this.paytheprice,
"productId": 1,
"type": 1,
}
getRebateIntegral(datas).then(res => {
if (res.return_code == '000000') {
this.rebateIntegral = res.return_data;
this.Integrastu = 1;
} else {
this.rebateIntegral = res.return_msg;
this.Integrastu = 2;
}
})
},
//
getCouponById() {
@ -833,7 +948,31 @@
duration: 4000
});
});
},
},
blockStart() {},
blockMoving() {
// console.log('')
},
//
blockEnd() {
this.isDiscount = 1;
if (this.deductionPrice == 0) {
this.payPrice = parseFloat(this.saveprice - parseFloat(this.priceValue[1] / 100).toFixed(2)).toFixed(
2);
} else {
this.payPrice = parseFloat(this.orderPrice - parseFloat(this.priceValue[1] / 100).toFixed(2) - this
.deductionPrice).toFixed(2);
}
if (this.payPrice == 0) {
this.isUse = false;
this.paytype = '';
} else {
this.isUse = true;
}
this.getRebateIntegral();
},
//
jumpdeposits() {
uni.navigateTo({
@ -859,6 +998,12 @@
width: 40rpx;
height: 40rpx;
margin-top: 30rpx;
}
.cj-slider {
width: 100%;
align-items: center;
display: flex;
}
.goodsimg {

@ -35,8 +35,8 @@
<view v-for="(item,index) in homeCateList" :key="index">
<view class="height90 backcorltop mart50" v-if="item.type == 1">
<view class="category-list">
<view class="category" style="width: 25%;" v-for="(row, index) in item.childCategory" :key="index"
@tap="toCategory(row)">
<view class="category" style="width: 25%;" v-for="(row, indexs) in item.childCategory" :key="indexs"
@click="toCategory(row)">
<view class="img">
<image :src="imageUrl+row.imgData"></image>
</view>
@ -49,8 +49,8 @@
<!-- 顶部菜单 -->
<view class="category-list backcorfff" style="margin-top: -5px;" v-if="item.type == 7">
<view class="category" style="width: 20%;" v-for="(row, index) in item.childCategory" :key="index"
@tap="toCategory(row)">
<view class="category" style="width: 20%;" v-for="(row, indexc) in item.childCategory" :key="indexc"
@click="toCategory(row)">
<view class="img">
<image :src="imageUrl+row.imgData"></image>
</view>
@ -89,7 +89,8 @@
</view>
</view>
<!-- 加油专区 ,天天好券-->
<view class="width90 mart20 alijusstart" v-if="item.type == 6 || item.type == 9" @click="goGoodsList(item.jumpUrl)">
<view class="width90 mart20 alijusstart" v-if="item.type == 6 || item.type == 9"
@click="goGoodsList(item.jumpUrl)">
<view class="width70 font18 fcor333">
{{item.name}}
</view>
@ -108,7 +109,8 @@
<view class="backcorfff spcarea" v-for="(goods,index) in item.childDate" :key="index">
<image mode="widthFix" class="width100" :src="imageUrl+goods.listImg"></image>
<view class="width96 fcor333 font15 fontwig6">{{goods.title}}</view>
<view class="width96 fcor999 font11" v-if="goods.effectiveTiem">{{goods.effectiveTiem | timeFormat('yyyy-mm-dd hh:mm:ss')}}
<view class="width96 fcor999 font11" v-if="goods.effectiveTiem">
{{goods.effectiveTiem | timeFormat('yyyy-mm-dd hh:mm:ss')}}
</view>
<view class="width94 fcoreb5 font15 fontwig6">¥{{goods.price}}</view>
</view>
@ -120,11 +122,15 @@
</view>
</view>
<image class="width90 mart10" mode="widthFix" v-if="item.type == 5"
:src="imageUrl+item.childCategory[0].imgData" @click="goGoodsList(imageUrl+item.childCategory[0].jumpUrl)"></image>
:src="imageUrl+item.childCategory[0].imgData"
@click="goGoodsList(item.childCategory[0].jumpUrl)"></image>
<view class="width90 alijusstart mart10" v-if="item.type == 5">
<image :src="imageUrl+item.childCategory[1].imgData" mode="widthFix" class="width31" @click="goGoodsList(imageUrl+item.childCategory[1].jumpUrl)"></image>
<image :src="imageUrl+item.childCategory[2].imgData" mode="widthFix" class="width31" @click="goGoodsList(imageUrl+item.childCategory[2].jumpUrl)"></image>
<image :src="imageUrl+item.childCategory[3].imgData" mode="widthFix" class="width31" @click="goGoodsList(imageUrl+item.childCategory[3].jumpUrl)"></image>
<image :src="imageUrl+item.childCategory[1].imgData" mode="widthFix" class="width31"
@click="goGoodsList(item.childCategory[1].jumpUrl)"></image>
<image :src="imageUrl+item.childCategory[2].imgData" mode="widthFix" class="width31"
@click="goGoodsList(item.childCategory[2].jumpUrl)"></image>
<image :src="imageUrl+item.childCategory[3].imgData" mode="widthFix" class="width31"
@click="goGoodsList(item.childCategory[3].jumpUrl)"></image>
</view>
<!-- 天天好券 -->
<!-- <view class="width90 mart20 alijusstart" v-if="item.type == 6">
@ -213,18 +219,10 @@
img: 'banner3.png'
}
],
//
productList: [],
productListleg: '',
goldproductList: [],
goldproductListleg: '',
unioncardproductList: [],
unioncardproductListleg: '',
loadingText: '正在加载...',
pageNum: 1,
pageSize: 6,
//
categoryList: [],
homeCateList: [],
//
cpStuats: 1,
@ -236,11 +234,6 @@
onShow() {
if (app.globalData.cityName != '') {
this.city = app.globalData.qianzhuCityName;
// this.getCouponListArea();
// this.getCouponListgold();
// this.getunioncardCouponListgold();
// this.getCmsContent();
// this.getCmsContentcmshome();
this.getCmsContentcmsContent();
// if (app.globalData.userInfo.phone) {
// this.getMembershipLevel();
@ -336,12 +329,7 @@
that.city = '重庆市';
app.globalData.cityName = '重庆市';
app.globalData.cityId = '500000';
// that.getCouponListArea();
// that.getCouponListgold();
// that.getunioncardCouponListgold();
// that.getCmsContent();
// that.getCmsAactibity();
// that.getCmsContentcmshome();
that.getCmsContentcmsContent();
}
);
@ -404,50 +392,20 @@
regionId: app.globalData.cityId
}
getMembershipLevel(params).then(res => {});
},
//
getCmsContentcmshome() {
let code;
// #ifdef H5
code = 'CMS_H5_FAST'
// #endif
// #ifdef MP
code = 'CMS_HOME_NAV'
// #endif
let params = {
regionId: app.globalData.cityId,
categoryCode: code
}
getCmsContent(params).then(res => {
if (res.return_code == '000000') {
this.categoryList = res.return_data;
}
});
},
//
getCmsContent() {
let params = {
regionId: app.globalData.cityId,
categoryCode: 'CMS_WX_APPLETS_HOME_SLIDESHOW'
}
getCmsContent(params).then(res => {
if (res.return_code == '000000') {
this.swiperList = res.return_data;
}
});
},
},
//
getCmsAactibity() {
let code;
// #ifdef H5
code = 'CMS_H5_ALERT'
// #endif
// #ifdef MP
code = 'CMS_WX_APPLETS_HOME_ACTIVITY'
let code;
// #ifdef H5
code = '2'
// #endif
// #ifdef MP
code = '1'
// #endif
let params = {
regionId: app.globalData.cityId,
categoryCode: code
companyId: app.globalData.companyId,
platform: code,
categoryCode: ''
}
getCmsContent(params).then(res => {
if (res.return_code == '000000' && res.return_data != '') {
@ -570,12 +528,7 @@
})
// app.globalData.cityId = '500103';
if (res.return_data.regionId) {
// that.getCouponListArea();
// that.getCouponListgold();
// that.getunioncardCouponListgold();
// that.getCmsContent();
// that.getCmsAactibity();
// that.getCmsContentcmshome();
that.getCmsContentcmsContent();
}
uni.getStorage({
@ -699,72 +652,7 @@
url: '../../goods/goods?id=' + e
});
},
//
getCouponListArea() {
let params = {
regionId: app.globalData.cityId,
pageNum: this.pageNum,
pageSize: this.pageSize,
displayArea: 1
}
getCouponList(params).then(res => {
if (res.return_code == '000000' && res.return_data.list) {
this.productList = res.return_data.list;
if (res.return_data.total > 4) {
this.productListleg = 4;
return;
}
this.productListleg = res.return_data.total;
} else {
this.productList = [];
}
})
},
//
getCouponListgold() {
let params = {
regionId: app.globalData.cityId,
pageNum: this.pageNum,
pageSize: this.pageSize,
displayArea: 2
}
getCouponList(params).then(res => {
if (res.return_code == '000000' && res.return_data.list) {
this.goldproductList = res.return_data.list;
this.goldproductListleg = res.return_data.total;
if (res.return_data.total > 4) {
this.goldproductListleg = 4;
return;
}
this.goldproductListleg = res.return_data.total;
} else {
this.productList = [];
}
})
},
//
getunioncardCouponListgold() {
let params = {
regionId: app.globalData.cityId,
pageNum: this.pageNum,
pageSize: this.pageSize,
displayArea: 5
}
getCouponList(params).then(res => {
if (res.return_code == '000000' && res.return_data.list) {
this.unioncardproductList = res.return_data.list;
this.unioncardproductListleg = res.return_data.total;
if (res.return_data.total > 4) {
this.unioncardproductListleg = 4;
return;
}
this.unioncardproductListleg = res.return_data.total;
} else {
this.unioncardproductList = [];
}
})
},
//
swiperChange(event) {
this.currentSwiper = event.detail.current;
@ -834,7 +722,6 @@
}
})
},
//
toCategory(item) {
uni.navigateTo({
@ -850,16 +737,10 @@
}
},
//
jumphuafei(item) {
uni.navigateTo({
url: item.ext1
})
},
//
//
goGoodsList(item) {
uni.navigateTo({
url: item
url: item
// '/pages/goods/goods-list/goods-list?id=' + item
})
},

@ -111,9 +111,17 @@
},
methods: {
//
getCmsContentvideo() {
getCmsContentvideo() {
let code;
// #ifdef H5
code = '2'
// #endif
// #ifdef MP
code = '1'
// #endif
let params = {
regionId: app.globalData.cityId,
companyId: app.globalData.companyId,
platform: code,
categoryCode: 'CMS_H5_VIDEO'
}
getCmsContent(params).then(res => {

@ -90,9 +90,17 @@
},
methods: {
//
getCmsContent(item) {
getCmsContent(item) {
let code;
// #ifdef H5
code = '2'
// #endif
// #ifdef MP
code = '1'
// #endif
let params = {
regionId: app.globalData.cityId,
companyId: app.globalData.companyId,
platform: code,
categoryCode: item
}
getCmsContent(params).then(res => {

@ -38,9 +38,17 @@
})
},
//
getCmsAactibity() {
getCmsAactibity() {
let code;
// #ifdef H5
code = '2'
// #endif
// #ifdef MP
code = '1'
// #endif
let params = {
regionId: app.globalData.cityId,
companyId: app.globalData.companyId,
platform: code,
categoryCode: 'CMS_TELEPHONE_POP_UP'
}
getCmsContent(params).then(res => {

@ -306,7 +306,9 @@
app.globalData.userInfo = res.return_data;
this.user = res.return_data;
this.findById();
this.getHuiLianTongCardBalance();
if (this.user.hltCardNo) {
this.getHuiLianTongCardBalance();
}
this.getRebateIntegral();
uni.setStorage({
key: "user",

Loading…
Cancel
Save