static图片网络化
54
App.vue
@ -1,7 +1,7 @@
|
||||
<script>
|
||||
import Vue from 'vue'
|
||||
// #ifdef H5
|
||||
var VConsole = require('@/utils/vconsole.min.js');
|
||||
var VConsole = require('@/utils/vconsole.min.js')
|
||||
// #endif
|
||||
export default {
|
||||
onLaunch: function () {
|
||||
@ -20,7 +20,7 @@ export default {
|
||||
// 重启应用
|
||||
updateManager.applyUpdate()
|
||||
}
|
||||
}
|
||||
},
|
||||
})
|
||||
})
|
||||
// 新版本下载失败
|
||||
@ -30,68 +30,62 @@ export default {
|
||||
title: '已经有新版本了哟~',
|
||||
content: '新版本已经上线啦~,请您删除当前小程序,重新搜索打开哟~',
|
||||
})
|
||||
|
||||
})
|
||||
},
|
||||
onShow: function () {
|
||||
console.log("App Show");
|
||||
console.log('App Show')
|
||||
},
|
||||
onHide: function () {
|
||||
console.log("App Hide");
|
||||
console.log('App Hide')
|
||||
},
|
||||
mounted() {
|
||||
// #ifdef H5
|
||||
var vConsole = new VConsole();
|
||||
console.log('开启调试');
|
||||
var vConsole = new VConsole()
|
||||
console.log('开启调试')
|
||||
// #endif
|
||||
this.setAppInfo()
|
||||
},
|
||||
methods: {
|
||||
// 获取系统栏高度
|
||||
async setAppInfo() {
|
||||
let that = this;
|
||||
let that = this
|
||||
return new Promise((resolve, reject) => {
|
||||
uni.getSystemInfo({
|
||||
success: function (e) {
|
||||
Vue.prototype.StatusBar = e.statusBarHeight;
|
||||
Vue.prototype.StatusBar = e.statusBarHeight
|
||||
// #ifdef H5
|
||||
Vue.prototype.CustomBar = e.statusBarHeight + 45;
|
||||
Vue.prototype.CustomBar = e.statusBarHeight + 45
|
||||
// #endif
|
||||
|
||||
// #ifdef APP-PLUS
|
||||
if (e.platform == "android") {
|
||||
Vue.prototype.CustomBar = e.statusBarHeight + 50;
|
||||
if (e.platform == 'android') {
|
||||
Vue.prototype.CustomBar = e.statusBarHeight + 50
|
||||
} else {
|
||||
Vue.prototype.CustomBar = e.statusBarHeight + 45;
|
||||
Vue.prototype.CustomBar = e.statusBarHeight + 45
|
||||
}
|
||||
// #endif
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
let custom = wx.getMenuButtonBoundingClientRect();
|
||||
Vue.prototype.Custom = custom;
|
||||
Vue.prototype.CustomBar =
|
||||
custom.bottom + custom.top - e.statusBarHeight;
|
||||
let custom = wx.getMenuButtonBoundingClientRect()
|
||||
Vue.prototype.Custom = custom
|
||||
Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight
|
||||
// #endif
|
||||
},
|
||||
});
|
||||
});
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
// 自动登录
|
||||
async autoLogin(data) {
|
||||
|
||||
async autoLogin(data) {},
|
||||
},
|
||||
},
|
||||
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<style lang="less">
|
||||
/*每个页面公共css */
|
||||
@import "animate.css";
|
||||
@import "./assets/iconfont/iconfont.css";
|
||||
@import "./assets/css/base.less";
|
||||
@import "./assets/css/reset.less";
|
||||
@import "./assets/css/style.less";
|
||||
@import 'animate.css';
|
||||
@import './assets/iconfont/iconfont.css';
|
||||
@import './assets/css/base.less';
|
||||
@import './assets/css/reset.less';
|
||||
@import './assets/css/style.less';
|
||||
</style>
|
||||
|
@ -28,7 +28,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="pictrue" v-if="addressList.length < 1">
|
||||
<image src="@/static/images/noAddress.png" class="image" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/noAddress.png`" class="image" />
|
||||
</view>
|
||||
<view class="addressBnt bg-color-red" @click="goAddressPages">新加地址</view>
|
||||
</view>
|
||||
|
@ -37,7 +37,7 @@
|
||||
</view>
|
||||
<view v-if="!couponList.length && loaded">
|
||||
<view class="pictrue">
|
||||
<image src="@/static/images/noCoupon.png" class="image" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/noCoupon.png`" class="image" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -31,7 +31,7 @@
|
||||
</view>
|
||||
<!--无优惠券-->
|
||||
<view class="pictrue" v-else>
|
||||
<image src="@/static/images/noCoupon.png" class="image" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/noCoupon.png`" class="image" />
|
||||
</view>
|
||||
</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 class="pictrue">
|
||||
<image :src="item.image" class="image" />
|
||||
<image src="@/static/images/one.png" class="numPic" v-if="isSort === true && index === 0" />
|
||||
<image src="@/static/images/two.png" class="numPic" v-if="isSort === true && index === 1" />
|
||||
<image src="@/static/images/three.png" class="numPic" v-if="isSort === true && index === 2" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/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="`${$VUE_APP_RESOURCES_URL}/images/three.png`" class="numPic" v-if="isSort === true && index === 2" />
|
||||
</view>
|
||||
<view class="underline">
|
||||
<view class="text">
|
||||
|
@ -2,7 +2,7 @@
|
||||
<view>
|
||||
<view class="sh-title-card mb10">
|
||||
<view class="title-box">
|
||||
<image class="title-bg" src="@/static/images/title1.png" mode="aspectFill"></image>
|
||||
<image class="title-bg" :src="`${$VUE_APP_RESOURCES_URL}/images/title1.png`" mode="aspectFill" />
|
||||
<view class="title-text">为你推荐</view>
|
||||
<!-- <view class="title-text" :style="{ color: detail.color }">为你推荐</view> -->
|
||||
</view>
|
||||
@ -52,7 +52,8 @@
|
||||
});
|
||||
}
|
||||
},
|
||||
mounted() {}
|
||||
mounted() {
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view v-if="shareInfoStatus" class="poster-first">
|
||||
<view class="mask-share">
|
||||
<!-- <image src="@/static/images/share-info.png" @click="shareInfoClose" /> -->
|
||||
<!-- <image :src="`${$VUE_APP_RESOURCES_URL}/images/share-info.png`" @click="shareInfoClose" /> -->
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
@ -6,7 +6,7 @@
|
||||
></view>
|
||||
<view class="line"></view>
|
||||
<view class="sharing-con" @click="goShare">
|
||||
<image src="@/static/images/red-packets.png" class="image" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/red-packets.png`" class="image" />
|
||||
<view class="text font-color-red">
|
||||
<view>会员分享返</view>
|
||||
<view class="money"><text class="label">¥</text>{{ priceName }}</view>
|
||||
|
@ -5,7 +5,7 @@
|
||||
</div>
|
||||
<!-- <view class="poster-pop" v-show="!canvasStatus">
|
||||
<image
|
||||
src="@/static/images/poster-close.png"
|
||||
:src="`${$VUE_APP_RESOURCES_URL}/images/poster-close.png`"
|
||||
class="close"
|
||||
@click="posterImageClose"
|
||||
/>
|
||||
@ -29,7 +29,7 @@
|
||||
<view class="save-poster" @click="savePosterPath">生成图片</view>
|
||||
</view>-->
|
||||
<view class="poster-pop" v-show="canvasStatus">
|
||||
<img src="@/static/images/poster-close.png" class="close" @click="posterImageClose" mode="widthFix" />
|
||||
<img :src="`${$VUE_APP_RESOURCES_URL}/images/poster-close.png`" class="close" @click="posterImageClose" mode="widthFix" />
|
||||
<image :src="posterImage" alt="tp" class="poster-image" show-menu-by-longpress mode="widthFix" />
|
||||
<view class="keep">长按图片可以保存到手机</view>
|
||||
</view>
|
||||
|
14
main.js
@ -22,19 +22,26 @@ Vue.config.productionTip = false
|
||||
App.mpType = 'app'
|
||||
Vue.prototype.$store = store
|
||||
|
||||
const app = new Vue(App)
|
||||
const app = new Vue({
|
||||
...App,
|
||||
store,
|
||||
})
|
||||
|
||||
Vue.mixin({
|
||||
onLoad() {
|
||||
const { $mp } = this.$root
|
||||
this._route = parseRoute($mp)
|
||||
// this.$VUE_APP_RESOURCES_URL = VUE_APP_RESOURCES_URL;
|
||||
this._data.$VUE_APP_RESOURCES_URL = VUE_APP_RESOURCES_URL
|
||||
},
|
||||
onShow() {
|
||||
_router.app = this
|
||||
_router.currentRoute = this._route
|
||||
},
|
||||
// 这里为了解决 .vue文件中 template 无法获取 VUE.prototype 绑定的变量
|
||||
computed: {
|
||||
$VUE_APP_RESOURCES_URL() {
|
||||
return VUE_APP_RESOURCES_URL;
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Object.defineProperty(Vue.prototype, '$yrouter', {
|
||||
@ -49,7 +56,6 @@ Object.defineProperty(Vue.prototype, '$yroute', {
|
||||
},
|
||||
})
|
||||
|
||||
Vue.prototype.$VUE_APP_RESOURCES_URL = VUE_APP_RESOURCES_URL
|
||||
Vue.prototype.$VUE_APP_API_URL = VUE_APP_API_URL
|
||||
Vue.component('cu-custom', cuCustom)
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="not-defined">
|
||||
<image src="@/static/images/404.png" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/404.png`" />
|
||||
<view class="content">
|
||||
<h3 class="title">页面未找到</h3>
|
||||
<text>抱歉!您访问的页面不存在,请返回上一级或点击下方按钮返回首页...</text>
|
||||
|
@ -100,9 +100,9 @@
|
||||
</view>
|
||||
<view class="bargainGang bargain-box">
|
||||
<view class="title font-color-red acea-row row-center-wrapper">
|
||||
<view class="pictrue"><image src="@/static/images/left.png" /></view>
|
||||
<view class="pictrue"><image :src="`${$VUE_APP_RESOURCES_URL}/images/left.png`" /></view>
|
||||
<view class="titleCon">砍价帮</view>
|
||||
<view class="pictrue on"><image src="@/static/images/left.png" /></view>
|
||||
<view class="pictrue on"><image :src="`${$VUE_APP_RESOURCES_URL}/images/left.png`" /></view>
|
||||
</view>
|
||||
<view class="list">
|
||||
<view class="item acea-row row-between-wrapper" v-for="(item, bargainHelpListIndex) in bargainHelpList" :key="bargainHelpListIndex">
|
||||
@ -124,18 +124,18 @@
|
||||
</view>
|
||||
<view class="goodsDetails bargain-box">
|
||||
<view class="title font-color-red acea-row row-center-wrapper">
|
||||
<view class="pictrue"><image src="@/static/images/left.png" /></view>
|
||||
<view class="pictrue"><image :src="`${$VUE_APP_RESOURCES_URL}/images/left.png`" /></view>
|
||||
<view class="titleCon">商品详情</view>
|
||||
<view class="pictrue on"><image src="@/static/images/left.png" /></view>
|
||||
<view class="pictrue on"><image :src="`${$VUE_APP_RESOURCES_URL}/images/left.png`" /></view>
|
||||
</view>
|
||||
<view class="conter" v-html="goodsDetail.description"></view>
|
||||
<view class="lock"></view>
|
||||
</view>
|
||||
<view class="goodsDetails bargain-box">
|
||||
<view class="title font-color-red acea-row row-center-wrapper">
|
||||
<view class="pictrue"><image src="@/static/images/left.png" /></view>
|
||||
<view class="pictrue"><image :src="`${$VUE_APP_RESOURCES_URL}/images/left.png`" /></view>
|
||||
<view class="titleCon">活动规则</view>
|
||||
<view class="pictrue on"><image src="@/static/images/left.png" /></view>
|
||||
<view class="pictrue on"><image :src="`${$VUE_APP_RESOURCES_URL}/images/left.png`" /></view>
|
||||
</view>
|
||||
<view class="conter" v-html="goodsDetail.rule"></view>
|
||||
</view>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="bargain-list">
|
||||
<!-- <view class="header">
|
||||
<image src="@/static/images/cut-bg.png" alt="">
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/cut-bg.png`" alt="">
|
||||
</view>-->
|
||||
<view class="list" v-if="bargainLis.length > 0">
|
||||
<view
|
||||
@ -31,7 +31,7 @@
|
||||
</view>
|
||||
<!-- <view class="noCommodity" style="background-color: #fff;" v-if="bargainLis.length === 0">
|
||||
<view class="noPictrue">
|
||||
<image src="@/static/images/noGood.png" class="image" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/noGood.png`" class="image" />
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
|
@ -121,7 +121,7 @@
|
||||
|
||||
<style lang="scss">
|
||||
.group-wrap {
|
||||
background: url('~@/static/images/index-bg.png') no-repeat;
|
||||
background: url('https://h5.yixiang.co/images/index-bg.png') no-repeat;
|
||||
background-size: 100% 374rpx;
|
||||
}
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<view class="tui-bg__box">
|
||||
<image src="@/static/images/bg_seckill.png" class="tui-bg__img" mode="widthFix" :style="{ opacity: opacity }"></image>
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/bg_seckill.png`" class="tui-bg__img" mode="widthFix" :style="{ opacity: opacity }"></image>
|
||||
</view>
|
||||
<view class="tui-header__bg">
|
||||
<image src="@/static/images/bg_seckill.png" class="tui-bg__img" mode="widthFix"></image>
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/bg_seckill.png`" class="tui-bg__img" mode="widthFix"></image>
|
||||
<scroll-view class="tui-time-slot" scroll-x>
|
||||
<view class="tui-time__list" :class="{ 'tui-flex__between': timeList.length < 6 }">
|
||||
<view class="tui-time__item" :class="[timeList.length < 6 ? 'tui-flex__1' : 'tui-width__min', index == active ? 'tui-time__active' : '']" v-for="(item, index) in timeList" :key="index" @tap="setTime(index)">
|
||||
@ -20,7 +20,7 @@
|
||||
<view class="tui-full__width" v-if="item.status == 0">
|
||||
<tui-divider gradual width="80%" backgroundColor="#fff" :height="34">
|
||||
<view class="tui-divider__status">
|
||||
<image src="@/static/images/img_seckill.png" mode="widthFix"></image>
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/img_seckill.png`" mode="widthFix"></image>
|
||||
<text class="tui-color__red">{{ item.time }}</text>
|
||||
<text>{{ item.state }}</text>
|
||||
</view>
|
||||
@ -29,7 +29,7 @@
|
||||
<view class="tui-full__width" v-if="item.status == 2">
|
||||
<tui-divider gradual width="80%" backgroundColor="#fff" :height="34">
|
||||
<view class="tui-divider__status">
|
||||
<image src="@/static/images/img_seckill.png" mode="widthFix"></image>
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/img_seckill.png`" mode="widthFix"></image>
|
||||
<text class="tui-color__red">{{ item.time }}</text>
|
||||
<text>{{ item.state }}</text>
|
||||
</view>
|
||||
|
@ -54,7 +54,7 @@
|
||||
</view>
|
||||
<view class="noCommodity" style="background-color: #f5f5f5;" v-if="seckillList.length === 0 && page > 1">
|
||||
<view class="noPictrue">
|
||||
<image src="@/static/images/noGood.png" class="image" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/noGood.png`" class="image" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -42,7 +42,7 @@
|
||||
<!-- <view class="tui-nickname">不许人间见白头</view> -->
|
||||
</view>
|
||||
<view class="tui-user__item" v-if="pinkAll.length == 0">
|
||||
<view class="tui-avatar__box tui-user__none"><image class="tui-size" src="@/static/images/vacancy.png"></image></view>
|
||||
<view class="tui-avatar__box tui-user__none"><image class="tui-size" :src="`${$VUE_APP_RESOURCES_URL}/images/vacancy.png`"></image></view>
|
||||
<!-- <view class="tui-nickname">暂无</view> -->
|
||||
</view>
|
||||
<view class="tui-user__item" v-for="(item, pinkAllIndex) in pinkAll" :key="pinkAllIndex">
|
||||
|
@ -2,7 +2,7 @@
|
||||
<view class="container">
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<view v-if="!token" class="force-login-wrap">
|
||||
<!-- <image class="logo-bg" src="@/static/images/logo_bg.png" mode="aspectFill"></image> -->
|
||||
<!-- <image class="logo-bg" :src="`${$VUE_APP_RESOURCES_URL}/images/logo_bg.png`" mode="aspectFill"></image> -->
|
||||
<view class="force-login__content y-f">
|
||||
<open-data class="user-avatar" type="userAvatarUrl"></open-data>
|
||||
<open-data class="user-name" type="userNickName"></open-data>
|
||||
@ -15,7 +15,7 @@
|
||||
<!-- #endif -->
|
||||
<!-- #ifndef MP-WEIXIN -->
|
||||
<view class="force-login-wrap">
|
||||
<!-- <image class="logo-bg" src="@/static/images/logo_bg.png" mode="aspectFill"></image> -->
|
||||
<!-- <image class="logo-bg" :src="`${$VUE_APP_RESOURCES_URL}/images/logo_bg.png`" mode="aspectFill"></image> -->
|
||||
<view class="force-login__content y-f">
|
||||
<view class="login-notice">为了提供更优质的服务,请先登录</view>
|
||||
<button class="cu-btn author-btn" @tap="toLogin">去登录</button>
|
||||
|
@ -14,7 +14,7 @@
|
||||
搜索商品
|
||||
</view>
|
||||
<view class="qr" @click="startQr()">
|
||||
<image src="@/static/images/qr.png" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/qr.png`" />
|
||||
</view>
|
||||
</view>
|
||||
<Banner v-if="item.type=='banner'" :detail="item.componentContent.bannerData" @getbgcolor="getbgcolor"></Banner>
|
||||
|
@ -91,7 +91,7 @@
|
||||
</view>
|
||||
|
||||
<view class="no-express" v-if="loaded && !expressList.length">
|
||||
<image src="@/static/images/noExpress.png" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/noExpress.png`" />
|
||||
</view>
|
||||
<Recommend></Recommend>
|
||||
</view>
|
||||
|
@ -142,7 +142,7 @@
|
||||
</view>
|
||||
<view class="noCart" v-if="orderList.length === 0 && page > 1">
|
||||
<view class="pictrue">
|
||||
<image src="@/static/images/noOrder.png" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/noOrder.png`" />
|
||||
</view>
|
||||
</view>
|
||||
<Loading :loaded="loaded" :loading="loading"></Loading>
|
||||
|
@ -66,7 +66,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="gear">
|
||||
<img src="@/static/images/writeOff.jpg" />
|
||||
<img :src="`${$VUE_APP_RESOURCES_URL}/images/writeOff.jpg`" />
|
||||
</div>
|
||||
<div class="num">{{ orderInfo.verifyCode }}</div>
|
||||
<div class="rules">
|
||||
@ -111,7 +111,7 @@
|
||||
<div>{{ system_store.address }}</div>
|
||||
</div>
|
||||
<view class="line" v-if="orderInfo.shippingType === 1">
|
||||
<image src="@/static/images/line.jpg" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/line.jpg`" />
|
||||
</view>
|
||||
</template>
|
||||
<OrderGoods :evaluate="status.type || 0" :isIntegral="isIntegral" :cartInfo="orderInfo.cartInfo || []"></OrderGoods>
|
||||
|
@ -39,7 +39,7 @@
|
||||
<div class="iconfont icon-jiantou"></div>
|
||||
</div>
|
||||
<view class="line">
|
||||
<image src="@/static/images/line.jpg" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/line.jpg`" />
|
||||
</view>
|
||||
</view>
|
||||
<OrderGoods :evaluate="0" :isIntegral="isIntegral" :cartInfo="orderGroupInfo.cartInfo"></OrderGoods>
|
||||
|
@ -35,7 +35,7 @@
|
||||
</view>
|
||||
<view class="noCart" v-if="orderList.length === 0 && page > 1">
|
||||
<view class="pictrue">
|
||||
<image src="@/static/images/noOrder.png" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/noOrder.png`" />
|
||||
</view>
|
||||
</view>
|
||||
<Loading :loaded="loaded" :loading="loading"></Loading>
|
||||
|
@ -20,7 +20,7 @@
|
||||
<view>{{ orderInfo.userAddress }}</view>
|
||||
</view>
|
||||
<view class="line">
|
||||
<image src="@/static/images/line.jpg" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/line.jpg`" />
|
||||
</view>
|
||||
<view class="pos-order-goods">
|
||||
<view
|
||||
|
@ -13,7 +13,7 @@
|
||||
<view>{{ delivery.userAddress }}</view>
|
||||
</view>
|
||||
<view class="line">
|
||||
<image src="@/static/images/line.jpg" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/line.jpg`" />
|
||||
</view>
|
||||
</header>
|
||||
<view class="wrapper">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="OrderCancellation">
|
||||
<view class="header">
|
||||
<image mode="aspectFit" src="@/static/images/writeOffBg.jpg" @click="openQRCode" />
|
||||
<image mode="aspectFit" :src="`${$VUE_APP_RESOURCES_URL}/images/writeOffBg.jpg`" @click="openQRCode" />
|
||||
</view>
|
||||
<view class="whiteBg">
|
||||
<view class="input">
|
||||
@ -12,7 +12,7 @@
|
||||
</view>
|
||||
<!-- #ifndef H5 -->
|
||||
<!-- <view class="scan" v-if="iswechat">
|
||||
<image src="@/static/images/scan.gif" @click="openQRCode" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/scan.gif`" @click="openQRCode" />
|
||||
</view> -->
|
||||
<!-- #endif -->
|
||||
<WriteOff :iShidden="iShidden" :orderInfo="orderInfo" @cancel="cancel" @confirm="confirm"></WriteOff>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="order-index" ref="container">
|
||||
<image src="@/static/images/orderIndex.png" mode="widthFix" class="image" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/orderIndex.png`" mode="widthFix" class="image" />
|
||||
<view class="header acea-row">
|
||||
<view class="item" @click="goAdminOrderList(0)">
|
||||
<view class="num">{{ census.orderCount.unpaidCount }}</view>
|
||||
|
@ -25,7 +25,7 @@
|
||||
</view>
|
||||
<!--<view class="noCommodity">-->
|
||||
<!--<view class="noPictrue">-->
|
||||
<!--<image src="@/static/images/noSearch.png" class="image" />-->
|
||||
<!--<image :src="`${$VUE_APP_RESOURCES_URL}/images/noSearch.png`" class="image" />-->
|
||||
<!--</view>-->
|
||||
<!--<recommend></recommend>-->
|
||||
<!--</view>-->
|
||||
|
@ -26,7 +26,7 @@
|
||||
v-if="collectProductList.length < 1 && page > 1"
|
||||
>
|
||||
<view class="noPictrue">
|
||||
<image src="@/static/images/noCollection.png" class="image" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/noCollection.png`" class="image" />
|
||||
</view>
|
||||
<Recommend></Recommend>
|
||||
</view>
|
||||
|
@ -11,7 +11,7 @@
|
||||
<text>¥</text>
|
||||
<text class="num">{{ attr.productSelect.price || storeInfo.price }}</text>
|
||||
<text class="vip-money" v-if="storeInfo.vipPrice && storeInfo.vipPrice > 0">¥{{ attr.productSelect.vipPrice || storeInfo.vipPrice }}</text>
|
||||
<image src="@/static/images/vip.png" class="image" v-if="storeInfo.vipPrice && storeInfo.vipPrice > 0" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/vip.png`" class="image" v-if="storeInfo.vipPrice && storeInfo.vipPrice > 0" />
|
||||
</view>
|
||||
<view class="money font-color-red" v-if="isIntegral">
|
||||
<text class="num">{{ attr.productSelect.integral || storeInfo.integral }}积分</text>
|
||||
@ -94,9 +94,9 @@
|
||||
<!-- 商品推荐 -->
|
||||
<!-- <view class="superior">
|
||||
<view class="title acea-row row-center-wrapper">
|
||||
<image src="@/static/images/ling.png" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/ling.png`" />
|
||||
<text class="titleTxt">优品推荐</text>
|
||||
<image src="@/static/images/ling.png" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/ling.png`" />
|
||||
</view>
|
||||
<template>
|
||||
<view class="slider-banner banner">
|
||||
|
@ -26,7 +26,7 @@
|
||||
v-if="collectProductList.length < 1 && page > 1"
|
||||
>
|
||||
<view class="noPictrue">
|
||||
<image src="@/static/images/noCollection.png" class="image" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/noCollection.png`" class="image" />
|
||||
</view>
|
||||
<Recommend></Recommend>
|
||||
</view>
|
||||
|
@ -13,15 +13,15 @@
|
||||
<view class="item" :class="title ? 'font-color-red' : ''" @click="set_where(0)">{{ title ? title : '默认' }}</view>
|
||||
<view class="item" @click="set_where(1)">
|
||||
价格
|
||||
<image src="@/static/images/horn.png" v-if="price === 0" />
|
||||
<image src="@/static/images/up.png" v-if="price === 1" />
|
||||
<image src="@/static/images/down.png" v-if="price === 2" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/horn.png`" v-if="price === 0" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/up.png`" v-if="price === 1" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/down.png`" v-if="price === 2" />
|
||||
</view>
|
||||
<view class="item" @click="set_where(2)">
|
||||
销量
|
||||
<image src="@/static/images/horn.png" v-if="stock === 0" />
|
||||
<image src="@/static/images/up.png" v-if="stock === 1" />
|
||||
<image src="@/static/images/down.png" v-if="stock === 2" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/horn.png`" v-if="stock === 0" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/up.png`" v-if="stock === 1" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/down.png`" v-if="stock === 2" />
|
||||
</view>
|
||||
<!-- down -->
|
||||
<view class="item" :class="nows ? 'font-color-red' : ''" @click="set_where(3)">新品</view>
|
||||
@ -113,7 +113,7 @@
|
||||
<Loading :loaded="loadend" :loading="loading"></Loading>
|
||||
<view class="noCommodity" style="background-color: #fff" v-if="productList.length === 0 && where.page > 1">
|
||||
<view class="noPictrue">
|
||||
<image src="@/static/images/noGood.png" class="image" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/noGood.png`" class="image" />
|
||||
</view>
|
||||
</view>
|
||||
<Recommend v-if="productList.length === 0 && where.page > 1" :recommendLoading="recommendLoading" @changeRecommendLoading="changeRecommendLoading"></Recommend>
|
||||
|
@ -90,7 +90,7 @@
|
||||
<!--购物车暂无商品-->
|
||||
<view class="noCart" v-if="cartList.valid.length === 0 && cartList.invalid.length === 0">
|
||||
<view class="pictrue">
|
||||
<image src="@/static/images/noCart.png" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/noCart.png`" />
|
||||
</view>
|
||||
<Recommend></Recommend>
|
||||
</view>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<!--暂无新闻-->
|
||||
<view class="noCommodity" v-if="articleList.length === 0 && page > 1">
|
||||
<view class="noPictrue">
|
||||
<image src="@/static/images/noNews.png" class="image" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/noNews.png`" class="image" />
|
||||
</view>
|
||||
</view>
|
||||
<!--</Tab>-->
|
||||
|
@ -8,7 +8,7 @@
|
||||
<div class="pictrue">
|
||||
<img :src="avatar" />
|
||||
</div>
|
||||
<image src="@/static/images/alter.png" class="alter" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/alter.png`" class="alter" />
|
||||
</view>
|
||||
<view class="text">
|
||||
<view class="name line1">{{ userInfo.nickname }}</view>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<view class="register absolute">
|
||||
<view class="shading">
|
||||
<view class="pictrue acea-row row-center-wrapper">
|
||||
<image src="@/static/images/logo.png" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/logo.png`" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="whiteBg">
|
||||
|
@ -2,7 +2,7 @@
|
||||
<view class="register absolute">
|
||||
<view class="shading">
|
||||
<view class="pictrue acea-row row-center-wrapper">
|
||||
<image src="@/static/images/logo.png" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/logo.png`" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="whiteBg">
|
||||
|
@ -63,35 +63,35 @@
|
||||
<view class="orderState acea-row row-middle">
|
||||
<view @click="goMyOrder(0)" class="item">
|
||||
<view class="pictrue">
|
||||
<image src="@/static/images/dfk.png" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/dfk.png`" />
|
||||
<text class="order-status-num" v-if="userInfo.orderStatusNum.unpaidCount > 0">{{ userInfo.orderStatusNum.unpaidCount }}</text>
|
||||
</view>
|
||||
<view>待付款</view>
|
||||
</view>
|
||||
<view @click="goMyOrder(1)" class="item">
|
||||
<view class="pictrue">
|
||||
<image src="@/static/images/dfh.png" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/dfh.png`" />
|
||||
<text class="order-status-num" v-if="userInfo.orderStatusNum.unshippedCount > 0">{{ userInfo.orderStatusNum.unshippedCount }}</text>
|
||||
</view>
|
||||
<view>待发货</view>
|
||||
</view>
|
||||
<view @click="goMyOrder(2)" class="item">
|
||||
<view class="pictrue">
|
||||
<image src="@/static/images/dsh.png" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/dsh.png`" />
|
||||
<text class="order-status-num" v-if="userInfo.orderStatusNum.receivedCount > 0">{{ userInfo.orderStatusNum.receivedCount }}</text>
|
||||
</view>
|
||||
<text>待收货</text>
|
||||
</view>
|
||||
<view @click="goMyOrder(3)" class="item">
|
||||
<view class="pictrue">
|
||||
<image src="@/static/images/dpj.png" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/dpj.png`" />
|
||||
<text class="order-status-num" v-if="userInfo.orderStatusNum.evaluatedCount > 0">{{ userInfo.orderStatusNum.evaluatedCount }}</text>
|
||||
</view>
|
||||
<text>待评价</text>
|
||||
</view>
|
||||
<view @click="goReturnList()" class="item">
|
||||
<view class="pictrue">
|
||||
<image src="@/static/images/sh.png" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/sh.png`" />
|
||||
<text class="order-status-num" v-if="userInfo.orderStatusNum.refundCount > 0">{{ userInfo.orderStatusNum.refundCount }}</text>
|
||||
</view>
|
||||
<text>售后/退款</text>
|
||||
|
@ -21,19 +21,19 @@
|
||||
<view class="nav acea-row row-middle">
|
||||
<view class="item" @click="goUserBill(0)">
|
||||
<view class="pictrue">
|
||||
<image src="@/static/images/record1.png" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/record1.png`" />
|
||||
</view>
|
||||
<view>账单记录</view>
|
||||
</view>
|
||||
<view class="item" @click="goUserBill(1)">
|
||||
<view class="pictrue">
|
||||
<image src="@/static/images/record2.png" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/record2.png`" />
|
||||
</view>
|
||||
<view>消费记录</view>
|
||||
</view>
|
||||
<view class="item" @click="goUserBill(2)" v-if="is_hide=='0'">
|
||||
<view class="pictrue">
|
||||
<image src="@/static/images/record3.png" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/record3.png`" />
|
||||
</view>
|
||||
<view>充值记录</view>
|
||||
</view>
|
||||
|
@ -65,7 +65,7 @@
|
||||
<Recommend></Recommend>
|
||||
<view class="growthValue" :class="growthValue === false ? 'on' : ''">
|
||||
<view class="pictrue">
|
||||
<image src="@/static/images/value.jpg" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/value.jpg`" />
|
||||
<text class="iconfont icon-guanbi3" @click="growthTap"></text>
|
||||
</view>
|
||||
<view class="conter">{{ illustrate }}</view>
|
||||
|
@ -5,7 +5,7 @@
|
||||
ref="container"
|
||||
>
|
||||
<view class="line" v-if="addressList.length > 0">
|
||||
<image src="@/static/images/line.jpg" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/line.jpg`" />
|
||||
</view>
|
||||
<view class="item" v-for="(item, addressListIndex) in addressList" :key="addressListIndex">
|
||||
<view class="address">
|
||||
@ -53,7 +53,7 @@
|
||||
<Loading :loaded="loadend" :loading="loading"></Loading>
|
||||
<view class="noCommodity" v-if="addressList.length < 1 && page > 1">
|
||||
<view class="noPictrue">
|
||||
<image src="@/static/images/noAddress.png" class="image" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/noAddress.png`" class="image" />
|
||||
</view>
|
||||
</view>
|
||||
<view style="height:100rpx;"></view>
|
||||
|
@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<view ref="container">
|
||||
<image src="@/static/images/banner_coupon.png" mode="widthFix" class="tui-coupon-banner"></image>
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/banner_coupon.png`" mode="widthFix" class="tui-coupon-banner"></image>
|
||||
<view class="tui-coupon-list">
|
||||
<view class="tui-coupon-item tui-top20" v-for="(item, index) in couponsList" :key="index">
|
||||
<image src="@/static/images/bg_coupon_3x.png" class="tui-coupon-bg" mode="widthFix"></image>
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/bg_coupon_3x.png`" class="tui-coupon-bg" mode="widthFix"></image>
|
||||
<view class="tui-coupon-item-left">
|
||||
<view class="tui-coupon-price-box" :class="{ 'tui-color-grey': item.isUse }">
|
||||
<view class="tui-coupon-price-sign">¥</view>
|
||||
@ -45,7 +45,7 @@
|
||||
<!--暂无优惠券-->
|
||||
<view class="noCommodity" v-if="couponsList.length === 0 && page > 1">
|
||||
<view class="noPictrue">
|
||||
<image src="@/static/images/noCoupon.png" class="image" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/noCoupon.png`" class="image" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -24,7 +24,7 @@
|
||||
<!--暂无优惠券-->
|
||||
<view class="noCommodity" v-if="couponsList.length === 0 && loading === true">
|
||||
<view class="noPictrue">
|
||||
<image src="@/static/images/noCoupon.png" class="image" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/noCoupon.png`" class="image" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="cash-audit">
|
||||
<view class="pictrue">
|
||||
<image src="@/static/images/examine.png" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/examine.png`" />
|
||||
</view>
|
||||
<view class="tip">提现申请已提交,等待人工审核</view>
|
||||
<view class="time">{{ time }}</view>
|
||||
|
@ -30,21 +30,21 @@
|
||||
<view class="sortNav acea-row row-middle" :class="fixedState === true ? 'on' : ''">
|
||||
<view class="sortItem" @click="sort('childCount')">
|
||||
团队排序
|
||||
<image src="@/static/images/sort1.png" v-if="childCount == 1" />
|
||||
<image src="@/static/images/sort2.png" v-if="childCount == 2" />
|
||||
<image src="@/static/images/sort3.png" v-if="childCount == 3" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/sort1.png`" v-if="childCount == 1" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/sort2.png`" v-if="childCount == 2" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/sort3.png`" v-if="childCount == 3" />
|
||||
</view>
|
||||
<view class="sortItem" @click="sort('numberCount')">
|
||||
金额排序
|
||||
<image src="@/static/images/sort1.png" v-if="numberCount == 1" />
|
||||
<image src="@/static/images/sort2.png" v-if="numberCount == 2" />
|
||||
<image src="@/static/images/sort3.png" v-if="numberCount == 3" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/sort1.png`" v-if="numberCount == 1" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/sort2.png`" v-if="numberCount == 2" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/sort3.png`" v-if="numberCount == 3" />
|
||||
</view>
|
||||
<view class="sortItem" @click="sort('orderCount')">
|
||||
订单排序
|
||||
<image src="@/static/images/sort1.png" v-if="orderCount == 1" />
|
||||
<image src="@/static/images/sort2.png" v-if="orderCount == 2" />
|
||||
<image src="@/static/images/sort3.png" v-if="orderCount == 3" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/sort1.png`" v-if="orderCount == 1" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/sort2.png`" v-if="orderCount == 2" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/sort3.png`" v-if="orderCount == 3" />
|
||||
</view>
|
||||
</view>
|
||||
<view :class="fixedState === true ? 'sortList' : ''">
|
||||
|
@ -52,7 +52,7 @@
|
||||
</view>
|
||||
<!--<view class="list2" :hidden="current !== 1">-->
|
||||
<!--<view class="item acea-row row-between-wrapper" @click="goHome()">-->
|
||||
<!--<view class="pictrue"><image src="@/static/images/score.png" /></view>-->
|
||||
<!--<view class="pictrue"><image :src="`${$VUE_APP_RESOURCES_URL}/images/score.png`" /></view>-->
|
||||
<!--<view class="name">购买商品可获得积分奖励</view>-->
|
||||
<!--<view class="earn">赚积分</view>-->
|
||||
<!--</view>-->
|
||||
@ -60,7 +60,7 @@
|
||||
<!--class="item acea-row row-between-wrapper"-->
|
||||
<!--@click="goSignIn()"-->
|
||||
<!-->-->
|
||||
<!--<view class="pictrue"><image src="@/static/images/score.png" /></view>-->
|
||||
<!--<view class="pictrue"><image :src="`${$VUE_APP_RESOURCES_URL}/images/score.png`" /></view>-->
|
||||
<!--<view class="name">每日签到可获得积分奖励</view>-->
|
||||
<!--<view class="earn">赚积分</view>-->
|
||||
<!--</view>-->
|
||||
|
@ -54,7 +54,7 @@
|
||||
</view>
|
||||
<view class="signTip acea-row row-center-wrapper" :class="active === true ? 'on' : ''">
|
||||
<view class="signTipLight loadingpic">
|
||||
<image src="@/static/images/light.png" />
|
||||
<image :src="`${$VUE_APP_RESOURCES_URL}/images/light.png`" />
|
||||
</view>
|
||||
<view class="signTipCon">
|
||||
<view class="state">签到成功</view>
|
||||
|
Before Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 99 KiB |
Before Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 936 B |
Before Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 3.3 KiB |