修改主题
@ -28,7 +28,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="pictrue" v-if="addressList.length < 1">
|
<view class="pictrue" v-if="addressList.length < 1">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/noAddress.png'" class="image" />
|
<image src="@/static/images/noAddress.png" class="image" />
|
||||||
</view>
|
</view>
|
||||||
<view class="addressBnt bg-color-red" @click="goAddressPages">新加地址</view>
|
<view class="addressBnt bg-color-red" @click="goAddressPages">新加地址</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view v-if="!couponList.length && loaded">
|
<view v-if="!couponList.length && loaded">
|
||||||
<view class="pictrue">
|
<view class="pictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/noCoupon.png'" class="image" />
|
<image src="@/static/images/noCoupon.png" class="image" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!--无优惠券-->
|
<!--无优惠券-->
|
||||||
<view class="pictrue" v-else>
|
<view class="pictrue" v-else>
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/noCoupon.png'" class="image" />
|
<image src="@/static/images/noCoupon.png" class="image" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="mask" @touchmove.prevent :hidden="coupon.coupon === false" @click="close"></view>
|
<view class="mask" @touchmove.prevent :hidden="coupon.coupon === false" @click="close"></view>
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
<view @click="routerGo(item)" class="item acea-row row-between-wrapper" v-for="(item, goodlistIndex) in goodList" :key="goodlistIndex">
|
<view @click="routerGo(item)" class="item acea-row row-between-wrapper" v-for="(item, goodlistIndex) in goodList" :key="goodlistIndex">
|
||||||
<view class="pictrue">
|
<view class="pictrue">
|
||||||
<image :src="item.image" class="image" />
|
<image :src="item.image" class="image" />
|
||||||
<image :src="$VUE_APP_RESOURCES_URL + '/images/one.png'" class="numPic" v-if="isSort === true && index === 0" />
|
<image src="@/static/images/one.png" class="numPic" v-if="isSort === true && index === 0" />
|
||||||
<image :src="$VUE_APP_RESOURCES_URL + '/images/two.png'" class="numPic" v-if="isSort === true && index === 1" />
|
<image src="@/static/images/two.png" class="numPic" v-if="isSort === true && index === 1" />
|
||||||
<image :src="$VUE_APP_RESOURCES_URL + '/images/three.png'" class="numPic" v-if="isSort === true && index === 2" />
|
<image src="@/static/images/three.png" class="numPic" v-if="isSort === true && index === 2" />
|
||||||
</view>
|
</view>
|
||||||
<view class="underline">
|
<view class="underline">
|
||||||
<view class="text">
|
<view class="text">
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view v-if="shareInfoStatus" class="poster-first">
|
<view v-if="shareInfoStatus" class="poster-first">
|
||||||
<view class="mask-share">
|
<view class="mask-share">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/share-info.png'" @click="shareInfoClose" />
|
<image src="@/static/images/share-info.png" @click="shareInfoClose" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
></view>
|
></view>
|
||||||
<view class="line"></view>
|
<view class="line"></view>
|
||||||
<view class="sharing-con" @click="goShare">
|
<view class="sharing-con" @click="goShare">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/red-packets.png'" class="image" />
|
<image src="@/static/images/red-packets.png" class="image" />
|
||||||
<view class="text font-color-red">
|
<view class="text font-color-red">
|
||||||
<view>会员分享返</view>
|
<view>会员分享返</view>
|
||||||
<view class="money"><text class="label">¥</text>{{ priceName }}</view>
|
<view class="money"><text class="label">¥</text>{{ priceName }}</view>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<canvas style="width:747px;height:1326px" canvas-id="myCanvas"></canvas>
|
<canvas style="width:747px;height:1326px" canvas-id="myCanvas"></canvas>
|
||||||
<!-- <view class="poster-pop" v-show="!canvasStatus">
|
<!-- <view class="poster-pop" v-show="!canvasStatus">
|
||||||
<image
|
<image
|
||||||
:src="$VUE_APP_RESOURCES_URL+'/images/poster-close.png'"
|
src="@/static/images/poster-close.png"
|
||||||
class="close"
|
class="close"
|
||||||
@click="posterImageClose"
|
@click="posterImageClose"
|
||||||
/>
|
/>
|
||||||
@ -28,7 +28,7 @@
|
|||||||
</view> -->
|
</view> -->
|
||||||
<view class="poster-pop" v-show="canvasStatus">
|
<view class="poster-pop" v-show="canvasStatus">
|
||||||
<img
|
<img
|
||||||
:src="$VUE_APP_RESOURCES_URL+'/images/poster-close.png'"
|
src="@/static/images/poster-close.png"
|
||||||
class="close"
|
class="close"
|
||||||
@click="posterImageClose"
|
@click="posterImageClose"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<view class="switchWindow" :class="switchActive === true ? 'on' : ''">
|
<view class="switchWindow" :class="switchActive === true ? 'on' : ''">
|
||||||
<!-- @/assets/images/public.png -->
|
<!-- @/static/images/public.png -->
|
||||||
<view class="pictrue">
|
<view class="pictrue">
|
||||||
<image v-if="login_type === 'h5'" :src="$VUE_APP_RESOURCES_URL+'/images/h5.png'" />
|
<image v-if="login_type === 'h5'" src="@/static/images/h5.png" />
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/h5.png'" alt v-else />
|
<image src="@/static/images/h5.png" alt v-else />
|
||||||
</view>
|
</view>
|
||||||
<!-- 是否选择切换到小程序账户? -->
|
<!-- 是否选择切换到小程序账户? -->
|
||||||
<view class="info">
|
<view class="info">
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
{
|
{
|
||||||
"path": "pages/home/index",
|
"path": "pages/home/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "home"
|
"navigationBarTitleText": "yshop商城"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="not-defined">
|
<view class="not-defined">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/404.png'" />
|
<image src="@/static/images/404.png" />
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<h3 class="title">页面未找到</h3>
|
<h3 class="title">页面未找到</h3>
|
||||||
<text>抱歉!您访问的页面不存在,请返回上一级或点击下方按钮返回首页...</text>
|
<text>抱歉!您访问的页面不存在,请返回上一级或点击下方按钮返回首页...</text>
|
||||||
|
@ -81,11 +81,11 @@
|
|||||||
<view class="bargainGang">
|
<view class="bargainGang">
|
||||||
<view class="title font-color-red acea-row row-center-wrapper">
|
<view class="title font-color-red acea-row row-center-wrapper">
|
||||||
<view class="pictrue">
|
<view class="pictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/left.png'" />
|
<image src="@/static/images/left.png" />
|
||||||
</view>
|
</view>
|
||||||
<view class="titleCon">砍价帮</view>
|
<view class="titleCon">砍价帮</view>
|
||||||
<view class="pictrue on">
|
<view class="pictrue on">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/left.png'" />
|
<image src="@/static/images/left.png" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="list">
|
<view class="list">
|
||||||
@ -119,11 +119,11 @@
|
|||||||
<view class="goodsDetails">
|
<view class="goodsDetails">
|
||||||
<view class="title font-color-red acea-row row-center-wrapper">
|
<view class="title font-color-red acea-row row-center-wrapper">
|
||||||
<view class="pictrue">
|
<view class="pictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/left.png'" />
|
<image src="@/static/images/left.png" />
|
||||||
</view>
|
</view>
|
||||||
<view class="titleCon">商品详情</view>
|
<view class="titleCon">商品详情</view>
|
||||||
<view class="pictrue on">
|
<view class="pictrue on">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/left.png'" />
|
<image src="@/static/images/left.png" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="conter" v-html="bargain.description"></view>
|
<view class="conter" v-html="bargain.description"></view>
|
||||||
@ -132,18 +132,18 @@
|
|||||||
<view class="goodsDetails">
|
<view class="goodsDetails">
|
||||||
<view class="title font-color-red acea-row row-center-wrapper">
|
<view class="title font-color-red acea-row row-center-wrapper">
|
||||||
<view class="pictrue">
|
<view class="pictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/left.png'" />
|
<image src="@/static/images/left.png" />
|
||||||
</view>
|
</view>
|
||||||
<view class="titleCon">活动规则</view>
|
<view class="titleCon">活动规则</view>
|
||||||
<view class="pictrue on">
|
<view class="pictrue on">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/left.png'" />
|
<image src="@/static/images/left.png" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="conter" v-html="bargain.rule"></view>
|
<view class="conter" v-html="bargain.rule"></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="bargainTip" :class="active === true ? 'on' : ''">
|
<view class="bargainTip" :class="active === true ? 'on' : ''">
|
||||||
<view class="pictrue">
|
<view class="pictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/bargainBg.jpg'" />
|
<image src="@/static/images/bargainBg.jpg" />
|
||||||
<view class="iconfont icon-guanbi" @click="close"></view>
|
<view class="iconfont icon-guanbi" @click="close"></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="cutOff" v-if="bargainPartake === userInfo.uid">
|
<view class="cutOff" v-if="bargainPartake === userInfo.uid">
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="bargain-list">
|
<view class="bargain-list">
|
||||||
<!-- <view class="header">
|
<!-- <view class="header">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/cut-bg.png'" alt="">
|
<image src="@/static/images/cut-bg.png" alt="">
|
||||||
</view>-->
|
</view>-->
|
||||||
<view class="list" v-if="bargainLis.length > 0">
|
<view class="list" v-if="bargainLis.length > 0">
|
||||||
<view
|
<view
|
||||||
@ -31,7 +31,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="noCommodity" style="background-color: #fff;" v-if="bargainLis.length === 0">
|
<view class="noCommodity" style="background-color: #fff;" v-if="bargainLis.length === 0">
|
||||||
<view class="noPictrue">
|
<view class="noPictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/noGood.png'" class="image" />
|
<image src="@/static/images/noGood.png" class="image" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="group-list" ref="container">
|
<view class="group-list" ref="container">
|
||||||
<!-- <view class="header">
|
<!-- <view class="header">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/group.png'" class="image" />
|
<image src="@/static/images/group.png" class="image" />
|
||||||
</view>-->
|
</view>-->
|
||||||
<view class="list" v-if="combinationList.length>0">
|
<view class="list" v-if="combinationList.length>0">
|
||||||
<view
|
<view
|
||||||
@ -38,7 +38,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="noCommodity" style="background-color: #fff;" v-if="combinationList.length === 0">
|
<view class="noCommodity" style="background-color: #fff;" v-if="combinationList.length === 0">
|
||||||
<view class="noPictrue">
|
<view class="noPictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/noGood.png'" class="image" />
|
<image src="@/static/images/noGood.png" class="image" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="noCommodity" style="background-color: #fff;" v-if="seckillList.length === 0 && page > 1">
|
<view class="noCommodity" style="background-color: #fff;" v-if="seckillList.length === 0 && page > 1">
|
||||||
<view class="noPictrue">
|
<view class="noPictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL + '/images/noGood.png'" class="image" />
|
<image src="@/static/images/noGood.png" class="image" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -235,4 +235,4 @@
|
|||||||
.flash-sale .list .item .grab {
|
.flash-sale .list .item .grab {
|
||||||
background-color: #999;
|
background-color: #999;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="pictrue" v-for="countIndex in count" :key="countIndex">
|
<view class="pictrue" v-for="countIndex in count" :key="countIndex">
|
||||||
<image class="img-none" :src="$VUE_APP_RESOURCES_URL+'/images/vacancy.png'" />
|
<image class="img-none" src="@/static/images/vacancy.png" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="(pinkBool === 1 || pinkBool === -1) && count > 9" class="lookAll acea-row row-center-wrapper" @click="lookAll">
|
<view v-if="(pinkBool === 1 || pinkBool === -1) && count > 9" class="lookAll acea-row row-center-wrapper" @click="lookAll">
|
||||||
@ -50,7 +50,7 @@
|
|||||||
<view class="teamBnt bg-color-red" v-else-if="userBool === 0 && pinkBool === 0 && count > 0" @click="pay">我要参团</view>
|
<view class="teamBnt bg-color-red" v-else-if="userBool === 0 && pinkBool === 0 && count > 0" @click="pay">我要参团</view>
|
||||||
<view class="teamBnt bg-color-red" v-if="pinkBool === 1 || pinkBool === -1" @click="goDetail(storeCombination.id)">再次开团</view>
|
<view class="teamBnt bg-color-red" v-if="pinkBool === 1 || pinkBool === -1" @click="goDetail(storeCombination.id)">再次开团</view>
|
||||||
<view class="cancel" @click="getCombinationRemove" v-if="pinkBool === 0 && userBool === 1">
|
<view class="cancel" @click="getCombinationRemove" v-if="pinkBool === 0 && userBool === 1">
|
||||||
<text class="iconfont icon-guanbi3"></text>
|
<text class="iconfont icon-guanbi3"></text>
|
||||||
<text>取消开团</text>
|
<text>取消开团</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="lookOrder" v-if="pinkBool === 1" @click="goOrder">
|
<view class="lookOrder" v-if="pinkBool === 1" @click="goOrder">
|
||||||
@ -134,11 +134,11 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: err.msg || err.response.data.msg,
|
title: err.msg || err.response.data.msg,
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -217,4 +217,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
</swiper>
|
</swiper>
|
||||||
</view>
|
</view>
|
||||||
<view class="news acea-row row-between-wrapper">
|
<view class="news acea-row row-between-wrapper">
|
||||||
<view class="pictrue" v-if="$VUE_APP_RESOURCES_URL"><image :src="$VUE_APP_RESOURCES_URL + '/images/news.png'" /></view>
|
<view class="pictrue" v-if="$VUE_APP_RESOURCES_URL"><image src="@/static/images/news.png" /></view>
|
||||||
<view class="swiper-no-swiping new-banner">
|
<view class="swiper-no-swiping new-banner">
|
||||||
<swiper class="swiper-wrapper" v-if="roll.length > 0" :indicator-dots="false" autoplay circular vertical>
|
<swiper class="swiper-wrapper" v-if="roll.length > 0" :indicator-dots="false" autoplay circular vertical>
|
||||||
<block v-for="(item, rollIndex) in roll" :key="rollIndex">
|
<block v-for="(item, rollIndex) in roll" :key="rollIndex">
|
||||||
@ -266,4 +266,4 @@ export default {
|
|||||||
.swiper-item {
|
.swiper-item {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -79,7 +79,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="no-express" v-if="loaded && !expressList.length">
|
<view class="no-express" v-if="loaded && !expressList.length">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/noExpress.png'" />
|
<image src="@/static/images/noExpress.png" />
|
||||||
</view>
|
</view>
|
||||||
<Recommend></Recommend>
|
<Recommend></Recommend>
|
||||||
</view>
|
</view>
|
||||||
|
@ -160,7 +160,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="noCart" v-if="orderList.length === 0 && page > 1">
|
<view class="noCart" v-if="orderList.length === 0 && page > 1">
|
||||||
<view class="pictrue">
|
<view class="pictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/noOrder.png'" />
|
<image src="@/static/images/noOrder.png" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<Loading :loaded="loaded" :loading="loading"></Loading>
|
<Loading :loaded="loaded" :loading="loading"></Loading>
|
||||||
|
@ -75,7 +75,7 @@
|
|||||||
<!--<view class="grayBg">-->
|
<!--<view class="grayBg">-->
|
||||||
<!--<view class="pictrue"><image :src="orderInfo.code" /></view>-->
|
<!--<view class="pictrue"><image :src="orderInfo.code" /></view>-->
|
||||||
<!--</view>-->
|
<!--</view>-->
|
||||||
<!--<view class="gear"><image :src="$VUE_APP_RESOURCES_URL+'/images/writeOff.jpg'" /></view>-->
|
<!--<view class="gear"><image src="@/static/images/writeOff.jpg" /></view>-->
|
||||||
<!--<view class="num">{{ orderInfo._verify_code }}</view>-->
|
<!--<view class="num">{{ orderInfo._verify_code }}</view>-->
|
||||||
<!--<!--<!--<!--<text class="rules">-->
|
<!--<!--<!--<!--<text class="rules">-->
|
||||||
<!--<!--<!--<text class="item">-->
|
<!--<!--<!--<text class="item">-->
|
||||||
@ -128,7 +128,7 @@
|
|||||||
<!--<view>{{ system_store._detailed_address }}</view>-->
|
<!--<view>{{ system_store._detailed_address }}</view>-->
|
||||||
<!--</view>-->
|
<!--</view>-->
|
||||||
<view class="line" v-if="orderInfo.shippingType === 1">
|
<view class="line" v-if="orderInfo.shippingType === 1">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/line.jpg'" />
|
<image src="@/static/images/line.jpg" />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<OrderGoods :evaluate="status.type || 0" :cartInfo="orderInfo.cartInfo || []"></OrderGoods>
|
<OrderGoods :evaluate="status.type || 0" :cartInfo="orderInfo.cartInfo || []"></OrderGoods>
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
<!--</view>-->
|
<!--</view>-->
|
||||||
<!--</view>-->
|
<!--</view>-->
|
||||||
<view class="line">
|
<view class="line">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/line.jpg'" />
|
<image src="@/static/images/line.jpg" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<OrderGoods :evaluate="0" :cartInfo="orderGroupInfo.cartInfo"></OrderGoods>
|
<OrderGoods :evaluate="0" :cartInfo="orderGroupInfo.cartInfo"></OrderGoods>
|
||||||
@ -484,7 +484,7 @@
|
|||||||
let form = {}
|
let form = {}
|
||||||
if (this.$deviceType == 'app') {
|
if (this.$deviceType == 'app') {
|
||||||
form.form = 'app'
|
form.form = 'app'
|
||||||
}
|
}
|
||||||
console.log(this.orderGroupInfo.orderKey, {
|
console.log(this.orderGroupInfo.orderKey, {
|
||||||
realName: this.contacts,
|
realName: this.contacts,
|
||||||
phone: this.contactsTel,
|
phone: this.contactsTel,
|
||||||
@ -517,7 +517,7 @@
|
|||||||
shippingType: parseInt(shipping_type) + 1,
|
shippingType: parseInt(shipping_type) + 1,
|
||||||
...form
|
...form
|
||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
const data = res.data;
|
const data = res.data;
|
||||||
@ -563,7 +563,7 @@
|
|||||||
}, 100);
|
}, 100);
|
||||||
break;
|
break;
|
||||||
case "WECHAT_PAY":
|
case "WECHAT_PAY":
|
||||||
weappPay(data.result.jsConfig).then(res => {
|
weappPay(data.result.jsConfig).then(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
this.$yrouter.replace({
|
this.$yrouter.replace({
|
||||||
path: "/pages/order/OrderDetails/index",
|
path: "/pages/order/OrderDetails/index",
|
||||||
@ -592,4 +592,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="noCart" v-if="orderList.length === 0 && page > 1">
|
<view class="noCart" v-if="orderList.length === 0 && page > 1">
|
||||||
<view class="pictrue">
|
<view class="pictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/noOrder.png'" />
|
<image src="@/static/images/noOrder.png" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<Loading :loaded="loaded" :loading="loading"></Loading>
|
<Loading :loaded="loaded" :loading="loading"></Loading>
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
<view>{{ orderInfo.userAddress }}</view>
|
<view>{{ orderInfo.userAddress }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line">
|
<view class="line">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/line.jpg'" />
|
<image src="@/static/images/line.jpg" />
|
||||||
</view>
|
</view>
|
||||||
<view class="pos-order-goods">
|
<view class="pos-order-goods">
|
||||||
<view
|
<view
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<view>{{ delivery.userAddress }}</view>
|
<view>{{ delivery.userAddress }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line">
|
<view class="line">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/line.jpg'" />
|
<image src="@/static/images/line.jpg" />
|
||||||
</view>
|
</view>
|
||||||
</header>
|
</header>
|
||||||
<view class="wrapper">
|
<view class="wrapper">
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<view class="bnt" @click="storeCancellation">立即核销</view>
|
<view class="bnt" @click="storeCancellation">立即核销</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="scan" v-if="iswechat">
|
<view class="scan" v-if="iswechat">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/scan.gif'" @click="openQRCode" />
|
<image src="@/static/images/scan.gif" @click="openQRCode" />
|
||||||
</view>
|
</view>
|
||||||
<WriteOff :iShidden="iShidden" :orderInfo="orderInfo" @cancel="cancel" @confirm="confirm"></WriteOff>
|
<WriteOff :iShidden="iShidden" :orderInfo="orderInfo" @cancel="cancel" @confirm="confirm"></WriteOff>
|
||||||
</view>
|
</view>
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!--<view class="noCommodity">-->
|
<!--<view class="noCommodity">-->
|
||||||
<!--<view class="noPictrue">-->
|
<!--<view class="noPictrue">-->
|
||||||
<!--<image :src="$VUE_APP_RESOURCES_URL+'/images/noSearch.png'" class="image" />-->
|
<!--<image src="@/static/images/noSearch.png" class="image" />-->
|
||||||
<!--</view>-->
|
<!--</view>-->
|
||||||
<!--<recommend></recommend>-->
|
<!--<recommend></recommend>-->
|
||||||
<!--</view>-->
|
<!--</view>-->
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
v-if="collectProductList.length < 1 && page > 1"
|
v-if="collectProductList.length < 1 && page > 1"
|
||||||
>
|
>
|
||||||
<view class="noPictrue">
|
<view class="noPictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/noCollection.png'" class="image" />
|
<image src="@/static/images/noCollection.png" class="image" />
|
||||||
</view>
|
</view>
|
||||||
<Recommend></Recommend>
|
<Recommend></Recommend>
|
||||||
</view>
|
</view>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<text>¥</text>
|
<text>¥</text>
|
||||||
<text class="num">{{ storeInfo.price }}</text>
|
<text class="num">{{ storeInfo.price }}</text>
|
||||||
<text class="vip-money" v-if="storeInfo.vipPrice && storeInfo.vipPrice > 0">¥{{ storeInfo.vipPrice }}</text>
|
<text class="vip-money" v-if="storeInfo.vipPrice && storeInfo.vipPrice > 0">¥{{ storeInfo.vipPrice }}</text>
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/vip.png'" class="image" v-if="storeInfo.vipPrice && storeInfo.vipPrice > 0" />
|
<image src="@/static/images/vip.png" class="image" v-if="storeInfo.vipPrice && storeInfo.vipPrice > 0" />
|
||||||
</view>
|
</view>
|
||||||
<view class="iconfont icon-fenxiang" @click="listenerActionSheet"></view>
|
<view class="iconfont icon-fenxiang" @click="listenerActionSheet"></view>
|
||||||
</view>
|
</view>
|
||||||
@ -62,9 +62,9 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="superior">
|
<view class="superior">
|
||||||
<view class="title acea-row row-center-wrapper">
|
<view class="title acea-row row-center-wrapper">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/ling.png'" />
|
<image src="@/static/images/ling.png" />
|
||||||
<text class="titleTxt">优品推荐</text>
|
<text class="titleTxt">优品推荐</text>
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/ling.png'" />
|
<image src="@/static/images/ling.png" />
|
||||||
</view>
|
</view>
|
||||||
<template>
|
<template>
|
||||||
<view class="slider-banner banner">
|
<view class="slider-banner banner">
|
||||||
|
@ -21,15 +21,15 @@
|
|||||||
>{{ title ? title : "默认" }}</view>
|
>{{ title ? title : "默认" }}</view>
|
||||||
<view class="item" @click="set_where(1)">
|
<view class="item" @click="set_where(1)">
|
||||||
价格
|
价格
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/horn.png'" v-if="price === 0" />
|
<image src="@/static/images/horn.png" v-if="price === 0" />
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/up.png'" v-if="price === 1" />
|
<image src="@/static/images/up.png" v-if="price === 1" />
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/down.png'" v-if="price === 2" />
|
<image src="@/static/images/down.png" v-if="price === 2" />
|
||||||
</view>
|
</view>
|
||||||
<view class="item" @click="set_where(2)">
|
<view class="item" @click="set_where(2)">
|
||||||
销量
|
销量
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/horn.png'" v-if="stock === 0" />
|
<image src="@/static/images/horn.png" v-if="stock === 0" />
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/up.png'" v-if="stock === 1" />
|
<image src="@/static/images/up.png" v-if="stock === 1" />
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/down.png'" v-if="stock === 2" />
|
<image src="@/static/images/down.png" v-if="stock === 2" />
|
||||||
</view>
|
</view>
|
||||||
<!-- down -->
|
<!-- down -->
|
||||||
<view class="item" :class="nows ? 'font-color-red' : ''" @click="set_where(3)">新品</view>
|
<view class="item" :class="nows ? 'font-color-red' : ''" @click="set_where(3)">新品</view>
|
||||||
@ -70,7 +70,7 @@
|
|||||||
v-if="productList.length === 0 && where.page > 1"
|
v-if="productList.length === 0 && where.page > 1"
|
||||||
>
|
>
|
||||||
<view class="noPictrue">
|
<view class="noPictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/noGood.png'" class="image" />
|
<image src="@/static/images/noGood.png" class="image" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<Recommend v-if="productList.length === 0 && where.page > 1"></Recommend>
|
<Recommend v-if="productList.length === 0 && where.page > 1"></Recommend>
|
||||||
|
@ -96,7 +96,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<!--购物车暂无商品-->
|
<!--购物车暂无商品-->
|
||||||
<view class="noCart" v-if="cartList.valid.length === 0 && cartList.invalid.length === 0">
|
<view class="noCart" v-if="cartList.valid.length === 0 && cartList.invalid.length === 0">
|
||||||
<view class="pictrue"><image :src="$VUE_APP_RESOURCES_URL + '/images/noCart.png'" /></view>
|
<view class="pictrue"><image src="@/static/images/noCart.png" /></view>
|
||||||
<Recommend></Recommend>
|
<Recommend></Recommend>
|
||||||
</view>
|
</view>
|
||||||
<view style="height:210rpx"></view>
|
<view style="height:210rpx"></view>
|
||||||
@ -497,4 +497,4 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<!--暂无新闻-->
|
<!--暂无新闻-->
|
||||||
<view class="noCommodity" v-if="articleList.length === 0 && page > 1">
|
<view class="noCommodity" v-if="articleList.length === 0 && page > 1">
|
||||||
<view class="noPictrue">
|
<view class="noPictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/noNews.png'" class="image" />
|
<image src="@/static/images/noNews.png" class="image" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!--</Tab>-->
|
<!--</Tab>-->
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<view class="register absolute">
|
<view class="register absolute">
|
||||||
<view class="shading">
|
<view class="shading">
|
||||||
<view class="pictrue acea-row row-center-wrapper">
|
<view class="pictrue acea-row row-center-wrapper">
|
||||||
<image src="@/assets/images/logo.png" />
|
<image src="@/static/images/logo.png" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="whiteBg" v-if="formItem === 1">
|
<view class="whiteBg" v-if="formItem === 1">
|
||||||
@ -136,7 +136,7 @@
|
|||||||
current: 0,
|
current: 0,
|
||||||
account: "",
|
account: "",
|
||||||
password: "",
|
password: "",
|
||||||
captcha: "",
|
captcha: "",
|
||||||
inviteCode:"",
|
inviteCode:"",
|
||||||
formItem: 1,
|
formItem: 1,
|
||||||
type: "login"
|
type: "login"
|
||||||
@ -338,4 +338,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
<image :src="item.avatar" />
|
<image :src="item.avatar" />
|
||||||
</view>-->
|
</view>-->
|
||||||
<image
|
<image
|
||||||
:src="$VUE_APP_RESOURCES_URL+'/images/alter.png'"
|
src="@/static/images/alter.png"
|
||||||
class="alter"
|
class="alter"
|
||||||
v-if="item.uid === userInfo.uid"
|
v-if="item.uid === userInfo.uid"
|
||||||
/>
|
/>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<view class="register absolute">
|
<view class="register absolute">
|
||||||
<view class="shading">
|
<view class="shading">
|
||||||
<view class="pictrue acea-row row-center-wrapper">
|
<view class="pictrue acea-row row-center-wrapper">
|
||||||
<image src="@/assets/images/logo.png" />
|
<image src="@/static/images/logo.png" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="whiteBg">
|
<view class="whiteBg">
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<view class="register absolute">
|
<view class="register absolute">
|
||||||
<view class="shading">
|
<view class="shading">
|
||||||
<view class="pictrue acea-row row-center-wrapper">
|
<view class="pictrue acea-row row-center-wrapper">
|
||||||
<image src="@/assets/images/logo.png" />
|
<image src="@/static/images/logo.png" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="whiteBg">
|
<view class="whiteBg">
|
||||||
|
@ -55,35 +55,35 @@
|
|||||||
<view class="orderState acea-row row-middle">
|
<view class="orderState acea-row row-middle">
|
||||||
<view @click="goMyOrder(0)" class="item">
|
<view @click="goMyOrder(0)" class="item">
|
||||||
<view class="pictrue">
|
<view class="pictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL + '/images/dfk.png'" />
|
<image src="@/static/images/dfk.png" />
|
||||||
<text class="order-status-num" v-if="userInfo.orderStatusNum.unpaidCount > 0">{{ userInfo.orderStatusNum.unpaidCount }}</text>
|
<text class="order-status-num" v-if="userInfo.orderStatusNum.unpaidCount > 0">{{ userInfo.orderStatusNum.unpaidCount }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view>待付款</view>
|
<view>待付款</view>
|
||||||
</view>
|
</view>
|
||||||
<view @click="goMyOrder(1)" class="item">
|
<view @click="goMyOrder(1)" class="item">
|
||||||
<view class="pictrue">
|
<view class="pictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/dfh.png'" />
|
<image src="@/static/images/dfh.png" />
|
||||||
<text class="order-status-num" v-if="userInfo.orderStatusNum.unshippedCount > 0">{{ userInfo.orderStatusNum.unshippedCount }}</text>
|
<text class="order-status-num" v-if="userInfo.orderStatusNum.unshippedCount > 0">{{ userInfo.orderStatusNum.unshippedCount }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view>待发货</view>
|
<view>待发货</view>
|
||||||
</view>
|
</view>
|
||||||
<view @click="goMyOrder(2)" class="item">
|
<view @click="goMyOrder(2)" class="item">
|
||||||
<view class="pictrue">
|
<view class="pictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/dsh.png'" />
|
<image src="@/static/images/dsh.png" />
|
||||||
<text class="order-status-num" v-if="userInfo.orderStatusNum.receivedCount > 0">{{ userInfo.orderStatusNum.receivedCount }}</text>
|
<text class="order-status-num" v-if="userInfo.orderStatusNum.receivedCount > 0">{{ userInfo.orderStatusNum.receivedCount }}</text>
|
||||||
</view>
|
</view>
|
||||||
<text>待收货</text>
|
<text>待收货</text>
|
||||||
</view>
|
</view>
|
||||||
<view @click="goMyOrder(3)" class="item">
|
<view @click="goMyOrder(3)" class="item">
|
||||||
<view class="pictrue">
|
<view class="pictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/dpj.png'" />
|
<image src="@/static/images/dpj.png" />
|
||||||
<text class="order-status-num" v-if="userInfo.orderStatusNum.evaluatedCount > 0">{{ userInfo.orderStatusNum.evaluatedCount }}</text>
|
<text class="order-status-num" v-if="userInfo.orderStatusNum.evaluatedCount > 0">{{ userInfo.orderStatusNum.evaluatedCount }}</text>
|
||||||
</view>
|
</view>
|
||||||
<text>待评价</text>
|
<text>待评价</text>
|
||||||
</view>
|
</view>
|
||||||
<view @click="goReturnList()" class="item">
|
<view @click="goReturnList()" class="item">
|
||||||
<view class="pictrue">
|
<view class="pictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/sh.png'" />
|
<image src="@/static/images/sh.png" />
|
||||||
<text class="order-status-num" v-if="userInfo.orderStatusNum.refundCount > 0">{{ userInfo.orderStatusNum.refundCount }}</text>
|
<text class="order-status-num" v-if="userInfo.orderStatusNum.refundCount > 0">{{ userInfo.orderStatusNum.refundCount }}</text>
|
||||||
</view>
|
</view>
|
||||||
<text>售后/退款</text>
|
<text>售后/退款</text>
|
||||||
@ -110,7 +110,7 @@
|
|||||||
<!--@click="changeswitch(true)"-->
|
<!--@click="changeswitch(true)"-->
|
||||||
<!--v-if="userInfo.phone && isWeixin"-->
|
<!--v-if="userInfo.phone && isWeixin"-->
|
||||||
<!-->-->
|
<!-->-->
|
||||||
<!--<view class="pictrue"><image :src="$VUE_APP_RESOURCES_URL+'/images/switch.png'" /></view>-->
|
<!--<view class="pictrue"><image src="@/static/images/switch.png" /></view>-->
|
||||||
<!--<view>账号切换</!--<view>-->
|
<!--<view>账号切换</!--<view>-->
|
||||||
<!--</!--<view>-->
|
<!--</!--<view>-->
|
||||||
<!-- </view>
|
<!-- </view>
|
||||||
|
@ -20,13 +20,13 @@
|
|||||||
<view class="nav acea-row row-middle">
|
<view class="nav acea-row row-middle">
|
||||||
<view class="item" @click="goUserBill(0)">
|
<view class="item" @click="goUserBill(0)">
|
||||||
<view class="pictrue">
|
<view class="pictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/record1.png'" />
|
<image src="@/static/images/record1.png" />
|
||||||
</view>
|
</view>
|
||||||
<view>账单记录</view>
|
<view>账单记录</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item" @click="goUserBill(1)">
|
<view class="item" @click="goUserBill(1)">
|
||||||
<view class="pictrue">
|
<view class="pictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/record2.png'" />
|
<image src="@/static/images/record2.png" />
|
||||||
</view>
|
</view>
|
||||||
<view>消费记录</view>
|
<view>消费记录</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
<Recommend></Recommend>
|
<Recommend></Recommend>
|
||||||
<view class="growthValue" :class="growthValue === false ? 'on' : ''">
|
<view class="growthValue" :class="growthValue === false ? 'on' : ''">
|
||||||
<view class="pictrue">
|
<view class="pictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/value.jpg'" />
|
<image src="@/static/images/value.jpg" />
|
||||||
<text class="iconfont icon-guanbi3" @click="growthTap"></text>
|
<text class="iconfont icon-guanbi3" @click="growthTap"></text>
|
||||||
</view>
|
</view>
|
||||||
<view class="conter">{{ illustrate }}</view>
|
<view class="conter">{{ illustrate }}</view>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
ref="container"
|
ref="container"
|
||||||
>
|
>
|
||||||
<view class="line" v-if="addressList.length > 0">
|
<view class="line" v-if="addressList.length > 0">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/line.jpg'" />
|
<image src="@/static/images/line.jpg" />
|
||||||
</view>
|
</view>
|
||||||
<view class="item" v-for="(item, addressListIndex) in addressList" :key="addressListIndex">
|
<view class="item" v-for="(item, addressListIndex) in addressList" :key="addressListIndex">
|
||||||
<view class="address">
|
<view class="address">
|
||||||
@ -53,7 +53,7 @@
|
|||||||
<Loading :loaded="loadend" :loading="loading"></Loading>
|
<Loading :loaded="loadend" :loading="loading"></Loading>
|
||||||
<view class="noCommodity" v-if="addressList.length < 1 && page > 1">
|
<view class="noCommodity" v-if="addressList.length < 1 && page > 1">
|
||||||
<view class="noPictrue">
|
<view class="noPictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/noAddress.png'" class="image" />
|
<image src="@/static/images/noAddress.png" class="image" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="height:100rpx;"></view>
|
<view style="height:100rpx;"></view>
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
<!--暂无优惠券-->
|
<!--暂无优惠券-->
|
||||||
<view class="noCommodity" v-if="couponsList.length === 0 && page > 1">
|
<view class="noCommodity" v-if="couponsList.length === 0 && page > 1">
|
||||||
<view class="noPictrue">
|
<view class="noPictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/noCoupon.png'" class="image" />
|
<image src="@/static/images/noCoupon.png" class="image" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
v-if="couponsList.length === 0 && loading === true"
|
v-if="couponsList.length === 0 && loading === true"
|
||||||
>
|
>
|
||||||
<view class="noPictrue">
|
<view class="noPictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/noCoupon.png'" class="image" />
|
<image src="@/static/images/noCoupon.png" class="image" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="cash-audit">
|
<view class="cash-audit">
|
||||||
<view class="pictrue">
|
<view class="pictrue">
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/examine.png'" />
|
<image src="@/static/images/examine.png" />
|
||||||
</view>
|
</view>
|
||||||
<view class="tip">提现申请已提交,等待人工审核</view>
|
<view class="tip">提现申请已提交,等待人工审核</view>
|
||||||
<view class="time">{{ time }}</view>
|
<view class="time">{{ time }}</view>
|
||||||
|
@ -34,21 +34,21 @@
|
|||||||
<view class="sortNav acea-row row-middle" :class="fixedState === true ? 'on' : ''">
|
<view class="sortNav acea-row row-middle" :class="fixedState === true ? 'on' : ''">
|
||||||
<view class="sortItem" @click="sort('childCount')">
|
<view class="sortItem" @click="sort('childCount')">
|
||||||
团队排序
|
团队排序
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/sort1.png'" v-if="childCount == 1" />
|
<image src="@/static/images/sort1.png" v-if="childCount == 1" />
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/sort2.png'" v-if="childCount == 2" />
|
<image src="@/static/images/sort2.png" v-if="childCount == 2" />
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/sort3.png'" v-if="childCount == 3" />
|
<image src="@/static/images/sort3.png" v-if="childCount == 3" />
|
||||||
</view>
|
</view>
|
||||||
<view class="sortItem" @click="sort('numberCount')">
|
<view class="sortItem" @click="sort('numberCount')">
|
||||||
金额排序
|
金额排序
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/sort1.png'" v-if="numberCount == 1" />
|
<image src="@/static/images/sort1.png" v-if="numberCount == 1" />
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/sort2.png'" v-if="numberCount == 2" />
|
<image src="@/static/images/sort2.png" v-if="numberCount == 2" />
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/sort3.png'" v-if="numberCount == 3" />
|
<image src="@/static/images/sort3.png" v-if="numberCount == 3" />
|
||||||
</view>
|
</view>
|
||||||
<view class="sortItem" @click="sort('orderCount')">
|
<view class="sortItem" @click="sort('orderCount')">
|
||||||
订单排序
|
订单排序
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/sort1.png'" v-if="orderCount == 1" />
|
<image src="@/static/images/sort1.png" v-if="orderCount == 1" />
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/sort2.png'" v-if="orderCount == 2" />
|
<image src="@/static/images/sort2.png" v-if="orderCount == 2" />
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/sort3.png'" v-if="orderCount == 3" />
|
<image src="@/static/images/sort3.png" v-if="orderCount == 3" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view :class="fixedState === true ? 'sortList' : ''">
|
<view :class="fixedState === true ? 'sortList' : ''">
|
||||||
|
@ -43,18 +43,18 @@
|
|||||||
:key="listIndex"
|
:key="listIndex"
|
||||||
>
|
>
|
||||||
<view>
|
<view>
|
||||||
<view class="state">{{ item.title }}</view>
|
<text class="state">{{ item.title }}</text>
|
||||||
<view>
|
<view>
|
||||||
<data-format :date="item.addTime"></data-format>
|
<data-format :date="item.addTime"></data-format>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="num" v-if="item.pm == 1">+{{ item.number }}</view>
|
<text class="num" v-if="item.pm == 1">+{{ item.number }}</text>
|
||||||
<view class="num font-color-red" v-if="item.pm == 0">-{{ item.number }}</view>
|
<text class="num font-color-red" v-if="item.pm == 0">-{{ item.number }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!--<view class="list2" :hidden="current !== 1">-->
|
<!--<view class="list2" :hidden="current !== 1">-->
|
||||||
<!--<view class="item acea-row row-between-wrapper" @click="goHome()">-->
|
<!--<view class="item acea-row row-between-wrapper" @click="goHome()">-->
|
||||||
<!--<view class="pictrue"><image :src="$VUE_APP_RESOURCES_URL+'/images/score.png'" /></view>-->
|
<!--<view class="pictrue"><image src="@/static/images/score.png" /></view>-->
|
||||||
<!--<view class="name">购买商品可获得积分奖励</view>-->
|
<!--<view class="name">购买商品可获得积分奖励</view>-->
|
||||||
<!--<view class="earn">赚积分</view>-->
|
<!--<view class="earn">赚积分</view>-->
|
||||||
<!--</view>-->
|
<!--</view>-->
|
||||||
@ -62,7 +62,7 @@
|
|||||||
<!--class="item acea-row row-between-wrapper"-->
|
<!--class="item acea-row row-between-wrapper"-->
|
||||||
<!--@click="goSignIn()"-->
|
<!--@click="goSignIn()"-->
|
||||||
<!-->-->
|
<!-->-->
|
||||||
<!--<view class="pictrue"><image :src="$VUE_APP_RESOURCES_URL+'/images/score.png'" /></view>-->
|
<!--<view class="pictrue"><image src="@/static/images/score.png" /></view>-->
|
||||||
<!--<view class="name">每日签到可获得积分奖励</view>-->
|
<!--<view class="name">每日签到可获得积分奖励</view>-->
|
||||||
<!--<view class="earn">赚积分</view>-->
|
<!--<view class="earn">赚积分</view>-->
|
||||||
<!--</view>-->
|
<!--</view>-->
|
||||||
@ -131,7 +131,8 @@ export default {
|
|||||||
that.loaded = res.data.length < that.where.limit;
|
that.loaded = res.data.length < that.where.limit;
|
||||||
that.loadTitle = that.loaded ? "人家是有底线的" : "上拉加载更多";
|
that.loadTitle = that.loaded ? "人家是有底线的" : "上拉加载更多";
|
||||||
that.where.page = that.where.page + 1;
|
that.where.page = that.where.page + 1;
|
||||||
that.list.push.apply(that.list, res.data);
|
that.list.push.apply(that.list, res.data);
|
||||||
|
console.log(that.list)
|
||||||
},
|
},
|
||||||
err => {
|
err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
@ -1,211 +1,183 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="sign">
|
<view class="sign">
|
||||||
<view class="header bg-color-red">
|
<view class="header bg-color-red">
|
||||||
<view class="headerCon acea-row row-between-wrapper">
|
<view class="headerCon acea-row row-between-wrapper">
|
||||||
<view class="left acea-row row-between-wrapper">
|
<view class="left acea-row row-between-wrapper">
|
||||||
<view class="pictrue">
|
<view class="pictrue">
|
||||||
<image :src="userInfo.avatar" />
|
<image :src="userInfo.avatar" />
|
||||||
</view>
|
</view>
|
||||||
<view class="text">
|
<view class="text">
|
||||||
<view class="line1">{{ userInfo.nickname }}</view>
|
<view class="line1">{{ userInfo.nickname }}</view>
|
||||||
<view class="integral acea-row">
|
<view class="integral acea-row">
|
||||||
<text>积分: {{ userInfo.integral }}</text>
|
<text>积分: {{ userInfo.integral }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view @click="goSignRecord()" class="right acea-row row-middle">
|
<view @click="goSignRecord()" class="right acea-row row-middle">
|
||||||
<view class="iconfont icon-caidan"></view>
|
<view class="iconfont icon-caidan"></view>
|
||||||
<view>明细</view>
|
<view>明细</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="wrapper">
|
<view class="wrapper">
|
||||||
<view class="list acea-row row-between-wrapper">
|
<view class="list acea-row row-between-wrapper">
|
||||||
<view
|
<view class="item" v-for="(item, signSystemListIndex) in signSystemList" :key="signSystemListIndex">
|
||||||
class="item"
|
<view :class="signSystemListIndex + 1 === signSystemList.length ? 'rewardTxt' : ''">{{ item.day }}</view>
|
||||||
v-for="(item, signSystemListIndex) in signSystemList"
|
<view class="venus" :class=" (signSystemListIndex + 1 === signSystemList.length ? 'reward' : '') +' ' + (sign_index >= signSystemListIndex + 1 ? 'venusSelect' : '')"></view>
|
||||||
:key="signSystemListIndex"
|
<view class="num" :class="sign_index >= signSystemListIndex + 1 ? 'on' : ''">+{{ item.sign_num }}</view>
|
||||||
>
|
</view>
|
||||||
<view
|
</view>
|
||||||
:class="signSystemListIndex + 1 === signSystemList.length ? 'rewardTxt' : ''"
|
<!--加在 but 上 on 为已签到-->
|
||||||
>{{ item.day }}</view>
|
<view class="but bg-color-red" :class="userInfo.is_day_sgin ? 'on' : ''" @click="goSign">{{ userInfo.isDaySign ? "已签到" : "立即签到" }}</view>
|
||||||
<view
|
<view class="lock"></view>
|
||||||
class="venus"
|
</view>
|
||||||
:class="
|
<view class="wrapper wrapper2">
|
||||||
(signSystemListIndex + 1 === signSystemList.length ? 'reward' : '') +
|
<view class="tip">已累计签到</view>
|
||||||
' ' +
|
<view class="list2 acea-row row-center row-bottom">
|
||||||
(sign_index >= signSystemListIndex + 1 ? 'venusSelect' : '')
|
<view class="item" v-for="(item, signCountIndex) in signCount" :key="signCountIndex">{{ item || 0 }}</view>
|
||||||
"
|
<view class="data">天</view>
|
||||||
></view>
|
</view>
|
||||||
<view
|
<view class="tip2">据说连续签到第{{ day }}天可获得超额积分,一定要坚持签到哦~~~</view>
|
||||||
class="num"
|
<view class="list3">
|
||||||
:class="sign_index >= signSystemListIndex + 1 ? 'on' : ''"
|
<view class="item acea-row row-between-wrapper" v-for="(item, signListIndex) in signList" :key="signListIndex">
|
||||||
>+{{ item.signNum }}</view>
|
<view>
|
||||||
</view>
|
<view class="name line1">{{ item.title }}</view>
|
||||||
</view>
|
<view class="data">{{ item.addTime }}</view>
|
||||||
<!--加在 but 上 on 为已签到-->
|
</view>
|
||||||
<view
|
<view class="num font-color-red">+{{ item.number }}</view>
|
||||||
class="but bg-color-red"
|
</view>
|
||||||
:class="userInfo.is_day_sgin ? 'on' : ''"
|
<view @click="goSignRecord()" class="Loads acea-row row-center-wrapper" v-if="signList.length > 0">
|
||||||
@click="goSign"
|
点击加载更多
|
||||||
>{{ userInfo.isDaySign ? "已签到" : "立即签到" }}</view>
|
<view class="iconfont icon-xiangyou acea-row row-center-wrapper"></view>
|
||||||
<view class="lock"></view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="wrapper wrapper2">
|
</view>
|
||||||
<view class="tip">已累计签到</view>
|
<view class="signTip acea-row row-center-wrapper" :class="active === true ? 'on' : ''">
|
||||||
<view class="list2 acea-row row-center row-bottom">
|
<view class="signTipLight loadingpic">
|
||||||
<view
|
<image src="@/static/images/light.png" />
|
||||||
class="item"
|
</view>
|
||||||
v-for="(item, signCountIndex) in signCount"
|
<view class="signTipCon">
|
||||||
:key="signCountIndex"
|
<view class="state">签到成功</view>
|
||||||
>{{ item || 0 }}</view>
|
<view class="integral">获得{{ integral }}积分</view>
|
||||||
<view class="data">天</view>
|
<view class="signTipBnt" @click="close">好的</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tip2">据说连续签到第{{ day }}天可获得超额积分,一定要坚持签到哦~~~</view>
|
</view>
|
||||||
<view class="list3">
|
<view class="mask" @touchmove.prevent :hidden="active === false"></view>
|
||||||
<view
|
</view>
|
||||||
class="item acea-row row-between-wrapper"
|
|
||||||
v-for="(item, signListIndex) in signList"
|
|
||||||
:key="signListIndex"
|
|
||||||
>
|
|
||||||
<view>
|
|
||||||
<view class="name line1">{{ item.title }}</view>
|
|
||||||
<view class="data">{{ item.addTime }}</view>
|
|
||||||
</view>
|
|
||||||
<view class="num font-color-red">+{{ item.number }}</view>
|
|
||||||
</view>
|
|
||||||
<view
|
|
||||||
@click="goSignRecord()"
|
|
||||||
class="Loads acea-row row-center-wrapper"
|
|
||||||
v-if="signList.length > 0"
|
|
||||||
>
|
|
||||||
点击加载更多
|
|
||||||
<view class="iconfont icon-xiangyou acea-row row-center-wrapper"></view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="signTip acea-row row-center-wrapper" :class="active === true ? 'on' : ''">
|
|
||||||
<view class="signTipLight loadingpic">
|
|
||||||
<image :src="$VUE_APP_RESOURCES_URL+'/images/light.png'" />
|
|
||||||
</view>
|
|
||||||
<view class="signTipCon">
|
|
||||||
<view class="state">签到成功</view>
|
|
||||||
<view class="integral">获得{{ integral }}积分</view>
|
|
||||||
<view class="signTipBnt" @click="close">好的</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="mask" @touchmove.prevent :hidden="active === false"></view>
|
|
||||||
</view>
|
|
||||||
</template>
|
</template>
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
.Loads .iconfont {
|
.Loads .iconfont {
|
||||||
font-size: 0.25*100rpx;
|
font-size: 0.25*100rpx;
|
||||||
margin: 0.02*100rpx 0 0 0.1*100rpx;
|
margin: 0.02*100rpx 0 0 0.1*100rpx;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
postSignUser,
|
postSignUser,
|
||||||
getSignConfig,
|
getSignConfig,
|
||||||
postSignIntegral,
|
postSignIntegral,
|
||||||
getSignList
|
getSignList
|
||||||
} from "@/api/user";
|
} from "@/api/user";
|
||||||
import { add } from "@/utils/bc";
|
import {
|
||||||
|
add
|
||||||
|
} from "@/utils/bc";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Sign",
|
name: "Sign",
|
||||||
components: {},
|
components: {},
|
||||||
props: {},
|
props: {},
|
||||||
data: function() {
|
data: function() {
|
||||||
return {
|
return {
|
||||||
userInfo: {},
|
userInfo: {},
|
||||||
integral: 0,
|
integral: 0,
|
||||||
signCount: [],
|
signCount: [],
|
||||||
sign_index: 0,
|
sign_index: 0,
|
||||||
signSystemList: [],
|
signSystemList: [],
|
||||||
signList: [],
|
signList: [],
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 3,
|
limit: 3,
|
||||||
active: false,
|
active: false,
|
||||||
day: ""
|
day: ""
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted: function() {
|
mounted: function() {
|
||||||
this.signUser();
|
this.signUser();
|
||||||
this.signConfig();
|
this.signConfig();
|
||||||
this.getSignList();
|
this.getSignList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goSignRecord() {
|
goSignRecord() {
|
||||||
this.$yrouter.push("/pages/user/signIn/SignRecord/index");
|
this.$yrouter.push("/pages/user/signIn/SignRecord/index");
|
||||||
},
|
},
|
||||||
// js给数字补0;num:需要补0的数字,length:长度(补到多少位);
|
// js给数字补0;num:需要补0的数字,length:长度(补到多少位);
|
||||||
PrefixInteger: function(num, length) {
|
PrefixInteger: function(num, length) {
|
||||||
return (Array(length).join("0") + num).slice(-length).split("");
|
return (Array(length).join("0") + num).slice(-length).split("");
|
||||||
},
|
},
|
||||||
//数字转中文
|
//数字转中文
|
||||||
Rp: function(n) {
|
Rp: function(n) {
|
||||||
var cnum = ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九"];
|
var cnum = ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九"];
|
||||||
var s = "";
|
var s = "";
|
||||||
n = "" + n; // 数字转为字符串
|
n = "" + n; // 数字转为字符串
|
||||||
for (var i = 0; i < n.length; i++) {
|
for (var i = 0; i < n.length; i++) {
|
||||||
s += cnum[parseInt(n.charAt(i))];
|
s += cnum[parseInt(n.charAt(i))];
|
||||||
}
|
}
|
||||||
return s;
|
return s;
|
||||||
},
|
},
|
||||||
// 获取用户信息
|
// 获取用户信息
|
||||||
signUser: function() {
|
signUser: function() {
|
||||||
let that = this;
|
let that = this;
|
||||||
postSignUser({ sign: 1 }).then(res => {
|
postSignUser({
|
||||||
res.data.integral = parseInt(res.data.integral);
|
sign: 1
|
||||||
var sumSginDay = res.data.sumSignDay;
|
}).then(res => {
|
||||||
that.userInfo = res.data;
|
res.data.integral = parseInt(res.data.integral);
|
||||||
that.signCount = that.PrefixInteger(sumSginDay, 4);
|
var sumSginDay = res.data.sumSignDay;
|
||||||
that.sign_index = parseInt(res.data.signNum);
|
that.userInfo = res.data;
|
||||||
});
|
that.signCount = that.PrefixInteger(sumSginDay, 4);
|
||||||
},
|
that.sign_index = parseInt(res.data.signNum);
|
||||||
// 签到配置
|
});
|
||||||
signConfig: function() {
|
},
|
||||||
let that = this;
|
// 签到配置
|
||||||
getSignConfig().then(res => {
|
signConfig: function() {
|
||||||
that.signSystemList = res.data;
|
let that = this;
|
||||||
that.day = that.Rp(that.signSystemList.length);
|
getSignConfig().then(res => {
|
||||||
});
|
that.signSystemList = res.data;
|
||||||
},
|
that.day = that.Rp(that.signSystemList.length);
|
||||||
// 用户签到
|
});
|
||||||
goSign: function() {
|
},
|
||||||
let that = this,
|
// 用户签到
|
||||||
sumSginDay = that.userInfo.sumSignDay;
|
goSign: function() {
|
||||||
if (that.userInfo.is_day_sgin){
|
let that = this,
|
||||||
uni.showToast({
|
sumSginDay = that.userInfo.sumSignDay;
|
||||||
title: "您今日已签到!",
|
if (that.userInfo.is_day_sgin) {
|
||||||
icon: "none",
|
uni.showToast({
|
||||||
duration: 2000
|
title: "您今日已签到!",
|
||||||
});
|
icon: "none",
|
||||||
return
|
duration: 2000
|
||||||
}
|
});
|
||||||
postSignIntegral().then(res => {
|
return
|
||||||
that.active = true;
|
}
|
||||||
that.integral = res.data.integral;
|
postSignIntegral().then(res => {
|
||||||
let sign_index = parseInt(that.sign_index + 1);
|
that.active = true;
|
||||||
that.sign_index =
|
that.integral = res.data.integral;
|
||||||
sign_index > that.signSystemList.length ? 1 : sign_index;
|
let sign_index = parseInt(that.sign_index + 1);
|
||||||
that.signCount = that.PrefixInteger(sumSginDay + 1, 4);
|
that.sign_index =
|
||||||
that.userInfo.is_day_sgin = true;
|
sign_index > that.signSystemList.length ? 1 : sign_index;
|
||||||
that.userInfo.integral = add(that.userInfo.integral, res.data.integral);
|
that.signCount = that.PrefixInteger(sumSginDay + 1, 4);
|
||||||
that.getSignList();
|
that.userInfo.is_day_sgin = true;
|
||||||
});
|
that.userInfo.integral = add(that.userInfo.integral, res.data.integral);
|
||||||
},
|
that.getSignList();
|
||||||
// 获取签到列表;
|
});
|
||||||
getSignList: function() {
|
},
|
||||||
let that = this;
|
// 获取签到列表;
|
||||||
getSignList(that.page, that.limit).then(res => {
|
getSignList: function() {
|
||||||
that.signList = res.data;
|
let that = this;
|
||||||
});
|
getSignList(that.page, that.limit).then(res => {
|
||||||
},
|
that.signList = res.data;
|
||||||
close: function() {
|
});
|
||||||
this.active = false;
|
},
|
||||||
}
|
close: function() {
|
||||||
}
|
this.active = false;
|
||||||
};
|
}
|
||||||
</script>
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
BIN
static/icon-cart-hot.png
Normal file → Executable file
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 3.0 KiB |
BIN
static/icon-class-hot.png
Normal file → Executable file
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 3.0 KiB |
BIN
static/icon-home-hot.png
Normal file → Executable file
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 3.0 KiB |
BIN
static/icon-user-hot.png
Normal file → Executable file
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 9.9 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 191 KiB |
Before Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 6.9 KiB |