反馈修改-0713
parent
f3c83a49e5
commit
1ec4628bdc
8
App.vue
8
App.vue
|
@ -1,5 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import { themeEv } from '@/jsFile/public-api.js';
|
import {userInfoEv} from '@/jsFile/public-api.js';
|
||||||
export default {
|
export default {
|
||||||
globalData:{
|
globalData:{
|
||||||
projectname:'', // 项目名称
|
projectname:'', // 项目名称
|
||||||
|
@ -22,11 +22,7 @@
|
||||||
uni.setStorageSync('expire',result.data.data.expire);//缓存失效时间(时间戳格式)
|
uni.setStorageSync('expire',result.data.data.expire);//缓存失效时间(时间戳格式)
|
||||||
uni.setStorageSync('phone_active',result.data.data.phone_active);//是否授权手机号
|
uni.setStorageSync('phone_active',result.data.data.phone_active);//是否授权手机号
|
||||||
uni.setStorageSync('is_active',result.data.data.is_active);//是否授权头像和昵称
|
uni.setStorageSync('is_active',result.data.data.is_active);//是否授权头像和昵称
|
||||||
uni.setStorageSync('invite_code',result.data.data.invite_code);//缓存邀请码
|
uni.setStorageSync('business_code',result.data.data.business_code);//缓存邀请码
|
||||||
let headers = {
|
|
||||||
'Content-Type': 'application/json; charset=UTF-8',
|
|
||||||
'Authorization': 'Bearer '+uni.getStorageSync('token') || ''
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -433,16 +433,18 @@ page {background-color: #eaeaea;}
|
||||||
.shop-ul .shop-li .img{
|
.shop-ul .shop-li .img{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 215rpx;
|
height: 215rpx;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.shop-ul .shop-li .img image{
|
.shop-ul .shop-li .img image{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 215rpx;
|
min-height: 215rpx;
|
||||||
}
|
}
|
||||||
.shop-ul .shop-li .txt{
|
.shop-ul .shop-li .txt{
|
||||||
padding: 22rpx;
|
padding: 22rpx 22rpx 0;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
|
margin-bottom: 22rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 商品详情 */
|
/* 商品详情 */
|
||||||
|
@ -481,6 +483,12 @@ page {background-color: #eaeaea;}
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
}
|
}
|
||||||
|
.shop-pric-vip{
|
||||||
|
font-size: 30rpx;
|
||||||
|
color: #0073bc;
|
||||||
|
line-height: 1.5;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
}
|
||||||
.shop-txt .right{
|
.shop-txt .right{
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -491,6 +499,9 @@ page {background-color: #eaeaea;}
|
||||||
width: 60rpx;
|
width: 60rpx;
|
||||||
margin-right: 30rpx;
|
margin-right: 30rpx;
|
||||||
}
|
}
|
||||||
|
.collection-btn.active{
|
||||||
|
width: 70rpx;
|
||||||
|
}
|
||||||
.collection-btn image{
|
.collection-btn image{
|
||||||
width: 45rpx;
|
width: 45rpx;
|
||||||
height: 41rpx;
|
height: 41rpx;
|
||||||
|
@ -521,7 +532,7 @@ page {background-color: #eaeaea;}
|
||||||
.collection-btn text,
|
.collection-btn text,
|
||||||
.share-btn text{
|
.share-btn text{
|
||||||
display: block;
|
display: block;
|
||||||
width: 60rpx;
|
width: 100%;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
@ -141,7 +141,8 @@
|
||||||
position: static;
|
position: static;
|
||||||
}
|
}
|
||||||
.pull-item-shop .title {
|
.pull-item-shop .title {
|
||||||
padding: 15rpx 20rpx;
|
padding: 15rpx 20rpx 0;
|
||||||
|
margin-bottom: 15rpx;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
line-height: 1.8;
|
line-height: 1.8;
|
||||||
color: #000;
|
color: #000;
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="shop-txt-bottom">
|
<view class="shop-txt-bottom">
|
||||||
<!-- 商品价格 -->
|
<!-- 商品价格 -->
|
||||||
<view class="price">¥{{$toolAll.tools.changeNum(item.price)}}</view>
|
<view class="price">¥{{vipPrice?$toolAll.tools.changeNum(item.price):$toolAll.tools.changeNum(item.original_price)}}</view>
|
||||||
<!-- 商品数量 -->
|
<!-- 商品数量 -->
|
||||||
<view class="num">
|
<view class="num">
|
||||||
<!-- 减数量 -->
|
<!-- 减数量 -->
|
||||||
|
@ -86,7 +86,12 @@
|
||||||
let allPrice = 0;
|
let allPrice = 0;
|
||||||
this.listData.forEach(item=>{
|
this.listData.forEach(item=>{
|
||||||
if(item.ifcheck) {
|
if(item.ifcheck) {
|
||||||
allPrice += this.$toolAll.tools.operationEv(item.price,item.num,'*',2)*1;
|
if(this.vipPrice){
|
||||||
|
allPrice += this.$toolAll.tools.operationEv(item.price,item.num,'*',2)*1;
|
||||||
|
}else{
|
||||||
|
allPrice += this.$toolAll.tools.operationEv(item.original_price,item.num,'*',2)*1;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// return this.$toolAll.tools.addXiaoShu(allPrice);
|
// return this.$toolAll.tools.addXiaoShu(allPrice);
|
||||||
|
@ -133,11 +138,15 @@
|
||||||
page:1,
|
page:1,
|
||||||
size:10,
|
size:10,
|
||||||
total:0,
|
total:0,
|
||||||
|
vipPrice:false,// 是否显示会员价
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.listData = this.list;
|
this.listData = this.list;
|
||||||
this.getList();
|
this.getList();
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getList(){
|
getList(){
|
||||||
|
@ -149,7 +158,11 @@
|
||||||
}
|
}
|
||||||
this.$requst.post('/api/order/shopping-cart',params).then(res=>{
|
this.$requst.post('/api/order/shopping-cart',params).then(res=>{
|
||||||
if(res.code==0){
|
if(res.code==0){
|
||||||
|
if(uni.getStorageSync('business_code')!==''){
|
||||||
|
this.vipPrice = true;
|
||||||
|
}
|
||||||
this.total = res.data.total;
|
this.total = res.data.total;
|
||||||
|
console.log(res,'购物车列表')
|
||||||
if(this.page==1) this.listData = [];
|
if(this.page==1) this.listData = [];
|
||||||
if(res.data.list.length){
|
if(res.data.list.length){
|
||||||
res.data.list.forEach(item=>{
|
res.data.list.forEach(item=>{
|
||||||
|
@ -166,6 +179,7 @@
|
||||||
is_series:item.spu.is_series,
|
is_series:item.spu.is_series,
|
||||||
slide_x: 0,
|
slide_x: 0,
|
||||||
price:parseInt(item.sku.sku_price),
|
price:parseInt(item.sku.sku_price),
|
||||||
|
original_price: parseInt(item.sku.sku_original_price),
|
||||||
num:item.num,
|
num:item.num,
|
||||||
ifcheck:this.skuId==item.sku_id ? true : false,
|
ifcheck:this.skuId==item.sku_id ? true : false,
|
||||||
ifExit:true,
|
ifExit:true,
|
||||||
|
|
|
@ -13,4 +13,14 @@ export function getCartNum(){
|
||||||
store.commit('setNum', res.data.count)
|
store.commit('setNum', res.data.count)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询用户信息,缓存商户id
|
||||||
|
export function userInfoEv(){
|
||||||
|
return requst.get('/api/user/info').then(res=>{
|
||||||
|
if(res.code==0){
|
||||||
|
uni.setStorageSync('business_id',res.data.business_id);
|
||||||
|
uni.setStorageSync('business_code',res.data.business_code);
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
|
@ -20,34 +20,30 @@ const refreshTokenPage = () => {
|
||||||
param += '?' + key + '=' + currentParam[key]
|
param += '?' + key + '=' + currentParam[key]
|
||||||
}
|
}
|
||||||
let localRoute = '/'+ currentRoute + param;
|
let localRoute = '/'+ currentRoute + param;
|
||||||
uni.login({
|
if(localRoute !== '/pages/login/login'){
|
||||||
success: (res) => {
|
uni.login({
|
||||||
uni.request({
|
success: (res) => {
|
||||||
url:'https://luban.scdxtc.cn/api/user/login',
|
uni.request({
|
||||||
data:{code:res.code},
|
url:'https://luban.scdxtc.cn/api/user/login',
|
||||||
success: (result) => {
|
data:{code:res.code},
|
||||||
if(result.data.code == 0) {
|
success: (result) => {
|
||||||
uni.setStorageSync('userId',result.data.account_id);
|
if(result.data.code == 0) {
|
||||||
uni.setStorageSync('token',result.data.data.token);//缓存token
|
uni.setStorageSync('userId',result.data.account_id);
|
||||||
uni.setStorageSync('openid',result.data.data.openid);//缓存openid
|
uni.setStorageSync('token',result.data.data.token);//缓存token
|
||||||
uni.setStorageSync('expire',result.data.data.expire);//缓存失效时间(时间戳格式)
|
uni.setStorageSync('openid',result.data.data.openid);//缓存openid
|
||||||
uni.setStorageSync('phone_active',result.data.data.phone_active);//是否授权手机号
|
uni.setStorageSync('expire',result.data.data.expire);//缓存失效时间(时间戳格式)
|
||||||
uni.setStorageSync('is_active',result.data.data.is_active);//是否授权头像和昵称
|
uni.setStorageSync('phone_active',result.data.data.phone_active);//是否授权手机号
|
||||||
uni.setStorageSync('invite_code',result.data.data.invite_code);//缓存邀请码
|
uni.setStorageSync('is_active',result.data.data.is_active);//是否授权头像和昵称
|
||||||
if(localRoute) {
|
uni.setStorageSync('invite_code',result.data.data.invite_code);//缓存邀请码
|
||||||
uni.reLaunch({ // 重新进入当前页面
|
uni.reLaunch({ // 重新进入当前页面
|
||||||
url:localRoute
|
url:localRoute
|
||||||
})
|
})
|
||||||
} else {
|
|
||||||
uni.reLaunch({
|
|
||||||
url:'/pages/tabbar/index/index'
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
})
|
}
|
||||||
}
|
})
|
||||||
})
|
}
|
||||||
flag = true;
|
flag = true;
|
||||||
}
|
}
|
||||||
// 请求错误处理
|
// 请求错误处理
|
||||||
|
|
|
@ -384,7 +384,7 @@ const tools = {
|
||||||
judgeAuth(){
|
judgeAuth(){
|
||||||
let auth = false;
|
let auth = false;
|
||||||
clearTimeout(this.authTimer);
|
clearTimeout(this.authTimer);
|
||||||
if(!uni.getStorageSync('token') && uni.getStorageSync('is_active') == 0) {
|
if(!uni.getStorageSync('token') || uni.getStorageSync('is_active') == 0) {
|
||||||
this.showToast('请授权登录');
|
this.showToast('请授权登录');
|
||||||
this.authTimer = setTimeout(()=>{
|
this.authTimer = setTimeout(()=>{
|
||||||
uni.reLaunch({url:'/pages/login/login'});
|
uni.reLaunch({url:'/pages/login/login'});
|
||||||
|
|
|
@ -120,7 +120,7 @@
|
||||||
uni.setStorageSync('expire',res.data.expire)//缓存失效时间(时间戳格式)
|
uni.setStorageSync('expire',res.data.expire)//缓存失效时间(时间戳格式)
|
||||||
uni.setStorageSync('phone_active',res.data.phone_active)//是否授权手机号
|
uni.setStorageSync('phone_active',res.data.phone_active)//是否授权手机号
|
||||||
uni.setStorageSync('is_active',res.data.is_active)//是否授权头像和昵称
|
uni.setStorageSync('is_active',res.data.is_active)//是否授权头像和昵称
|
||||||
uni.setStorageSync('invite_code',res.data.invite_code)//缓存邀请码
|
uni.setStorageSync('business_code',res.data.business_code)//缓存邀请码
|
||||||
if(uni.getStorageSync('page-path-options')) {
|
if(uni.getStorageSync('page-path-options')) {
|
||||||
uni.reLaunch({ // 重新进入当前页面
|
uni.reLaunch({ // 重新进入当前页面
|
||||||
url:uni.getStorageSync('page-path-options')
|
url:uni.getStorageSync('page-path-options')
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
<view class="txt clips1">{{item.title}}</view>
|
<view class="txt clips1">{{item.title}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tips" v-if="isTips">---没有更多分类---</view>
|
<view class="tips" v-if="secondList.length==0 && isTips">---没有更多分类---</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<!-- 购物车btn -->
|
<!-- 购物车btn -->
|
||||||
<enter-cart></enter-cart>
|
<enter-cart></enter-cart>
|
||||||
|
@ -38,8 +38,8 @@
|
||||||
import enterCart from '@/components/enter-cart/enter-cart.vue';
|
import enterCart from '@/components/enter-cart/enter-cart.vue';
|
||||||
// 底部组件
|
// 底部组件
|
||||||
import footTab from '@/components/foot-tab/foot-tab.vue';
|
import footTab from '@/components/foot-tab/foot-tab.vue';
|
||||||
import {getCartNum} from '@/jsFile/public-api.js';
|
import {getCartNum,userInfoEv} from '@/jsFile/public-api.js';
|
||||||
import { mapState } from 'vuex'//引入mapState
|
import {mapState} from 'vuex'//引入mapState
|
||||||
export default {
|
export default {
|
||||||
components:{
|
components:{
|
||||||
statusNav,
|
statusNav,
|
||||||
|
@ -74,10 +74,12 @@
|
||||||
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
||||||
if(res.code == 0){
|
if(res.code == 0){
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
import productList from '@/components/product-list/product-list.vue';
|
import productList from '@/components/product-list/product-list.vue';
|
||||||
import navTab from '@/components/nav-tab/nav-tab.vue';
|
import navTab from '@/components/nav-tab/nav-tab.vue';
|
||||||
import pullList from '@/components/pull-list/pull-list.vue';
|
import pullList from '@/components/pull-list/pull-list.vue';
|
||||||
import {changeBusiness} from '@/jsFile/public-api.js';
|
import {getCartNum,userInfoEv} from '@/jsFile/public-api.js';
|
||||||
import {mapState} from 'vuex'//引入mapState
|
import {mapState} from 'vuex'//引入mapState
|
||||||
export default {
|
export default {
|
||||||
components:{
|
components:{
|
||||||
|
@ -101,11 +101,13 @@
|
||||||
if(res.code == 0){
|
if(res.code == 0){
|
||||||
this.getHomeData();
|
this.getHomeData();
|
||||||
this.getArticleNav();
|
this.getArticleNav();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
this.getHomeData();
|
this.getHomeData();
|
||||||
this.getArticleNav();
|
this.getArticleNav();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|
|
@ -12,12 +12,13 @@
|
||||||
<view class="left">
|
<view class="left">
|
||||||
<view class="kit-compose">{{kitDetail.subtitle}}</view>
|
<view class="kit-compose">{{kitDetail.subtitle}}</view>
|
||||||
<view class="shop-customized">{{kitDetail.customized==1?'可定制':'不可定制'}}</view>
|
<view class="shop-customized">{{kitDetail.customized==1?'可定制':'不可定制'}}</view>
|
||||||
<view class="shop-pric">¥{{kitDetail.price}}</view>
|
<view class="shop-pric">¥{{$toolAll.tools.changeNum(parseInt(kitDetail.original_price))}}</view>
|
||||||
|
<view class="shop-pric-vip" v-if="vipPrice"><text>会员价:</text>¥{{$toolAll.tools.changeNum(parseInt(kitDetail.price))}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="right flex">
|
<view class="right flex">
|
||||||
<view class="collection-btn flex" :class="kitDetail.is_collected == 1?'active':''" @tap="collectionEv(kitDetail.id)">
|
<view class="collection-btn flex" :class="kitDetail.is_collected == 1?'active':''" @tap="collectionEv(kitDetail.id)">
|
||||||
<image src="/static/public/icon-collection.png" mode="widthFix"></image>
|
<image src="/static/public/icon-collection.png" mode="widthFix"></image>
|
||||||
<text>收藏</text>
|
<text>{{kitDetail.is_collected == 1?'已收藏':'收藏'}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="share-btn flex">
|
<view class="share-btn flex">
|
||||||
<image src="/static/public/icon-share.png" mode="widthFix"></image>
|
<image src="/static/public/icon-share.png" mode="widthFix"></image>
|
||||||
|
@ -56,8 +57,8 @@
|
||||||
import enterCart from '@/components/enter-cart/enter-cart.vue';
|
import enterCart from '@/components/enter-cart/enter-cart.vue';
|
||||||
import customerService from '@/components/customer-service/customer-service.vue';
|
import customerService from '@/components/customer-service/customer-service.vue';
|
||||||
import swiperPu from '@/components/swipers/swiper-pu';
|
import swiperPu from '@/components/swipers/swiper-pu';
|
||||||
import {getCartNum} from '@/jsFile/public-api.js';
|
import {getCartNum,userInfoEv} from '@/jsFile/public-api.js';
|
||||||
import { mapState } from 'vuex'//引入mapState
|
import {mapState} from 'vuex'//引入mapState
|
||||||
export default {
|
export default {
|
||||||
components:{
|
components:{
|
||||||
statusNav,
|
statusNav,
|
||||||
|
@ -76,7 +77,8 @@
|
||||||
kitIndex:0, //规格选中位置
|
kitIndex:0, //规格选中位置
|
||||||
kitBanner:[], //套件轮播
|
kitBanner:[], //套件轮播
|
||||||
action:'collect', //收藏类型
|
action:'collect', //收藏类型
|
||||||
id:'' //套件id
|
id:'' ,//套件id
|
||||||
|
vipPrice:false,// 是否显示会员价
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed:{
|
computed:{
|
||||||
|
@ -91,16 +93,20 @@
|
||||||
if(res.code == 0){
|
if(res.code == 0){
|
||||||
this.id = op.id;
|
this.id = op.id;
|
||||||
this.getKitDetail(this.id);
|
this.getKitDetail(this.id);
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
this.id = op.id;
|
this.id = op.id;
|
||||||
this.getKitDetail(this.id);
|
this.getKitDetail(this.id);
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
if(uni.getStorageSync('showVip')=='true'){
|
||||||
|
this.vipPrice = true;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 分享到微信
|
// 分享到微信
|
||||||
onShareAppMessage(res) {
|
onShareAppMessage(res) {
|
||||||
|
|
|
@ -38,8 +38,8 @@
|
||||||
import enterCart from '@/components/enter-cart/enter-cart.vue';
|
import enterCart from '@/components/enter-cart/enter-cart.vue';
|
||||||
// 底部组件
|
// 底部组件
|
||||||
import footTab from '@/components/foot-tab/foot-tab.vue';
|
import footTab from '@/components/foot-tab/foot-tab.vue';
|
||||||
import {getCartNum} from '@/jsFile/public-api.js';
|
import {getCartNum,userInfoEv} from '@/jsFile/public-api.js';
|
||||||
import { mapState } from 'vuex'//引入mapState
|
import {mapState} from 'vuex'//引入mapState
|
||||||
export default {
|
export default {
|
||||||
components:{
|
components:{
|
||||||
statusNav,
|
statusNav,
|
||||||
|
@ -69,10 +69,12 @@
|
||||||
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
||||||
if(res.code == 0){
|
if(res.code == 0){
|
||||||
this.getKitEv();
|
this.getKitEv();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
this.getKitEv();
|
this.getKitEv();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReachBottom(e) {
|
onReachBottom(e) {
|
||||||
|
@ -119,7 +121,7 @@
|
||||||
}
|
}
|
||||||
newArr.push(obj);
|
newArr.push(obj);
|
||||||
})
|
})
|
||||||
this.kitList = newArr;
|
this.kitList = this.kitList.concat(newArr);
|
||||||
if(this.kitList.length == this.total){
|
if(this.kitList.length == this.total){
|
||||||
this.totalAll = this.total;
|
this.totalAll = this.total;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<view class="my-portrait-img">
|
<view class="my-portrait-img">
|
||||||
<image :src="headPortrait" mode="widthFix"></image>
|
<image :src="headPortrait" mode="widthFix"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="my-vip flex"><image src="/static/public/icon-vip.png" mode="widthFix"></image></view>
|
<view class="my-vip flex" v-if="businessCode!==''"><image src="/static/public/icon-vip.png" mode="widthFix"></image></view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 用户名 -->
|
<!-- 用户名 -->
|
||||||
<view class="my-nick-name">{{nickName}}</view>
|
<view class="my-nick-name">{{nickName}}</view>
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
<view class="more" v-if="index!==6">
|
<view class="more" v-if="index!==6">
|
||||||
<image src="/static/public/icon-my-more.png" mode="widthFix"></image>
|
<image src="/static/public/icon-my-more.png" mode="widthFix"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn flex" :class="isShow?'show':''" v-if="index == 6" @tap.stop="changeShow">
|
<view class="btn flex" :class="showVip=='true'?'show':''" v-if="index == 6" @tap.stop="changeShowVip">
|
||||||
<view class="circular"></view>
|
<view class="circular"></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -82,7 +82,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 验证会员码 -->
|
<!-- 验证会员码 -->
|
||||||
<view class="edit-box-bg"v-if="isChecked">
|
<view class="edit-box-bg" v-if="isChecked">
|
||||||
<view class="edit-box">
|
<view class="edit-box">
|
||||||
<view class="title">验证会员码</view>
|
<view class="title">验证会员码</view>
|
||||||
<view class="subtitle">会员码<text>*</text></view>
|
<view class="subtitle">会员码<text>*</text></view>
|
||||||
|
@ -104,6 +104,8 @@
|
||||||
import statusNav from '@/components/status-navs/status-nav';
|
import statusNav from '@/components/status-navs/status-nav';
|
||||||
import enterCart from '@/components/enter-cart/enter-cart.vue';
|
import enterCart from '@/components/enter-cart/enter-cart.vue';
|
||||||
import footTab from '@/components/foot-tab/foot-tab.vue';
|
import footTab from '@/components/foot-tab/foot-tab.vue';
|
||||||
|
import {getCartNum,userInfoEv} from '@/jsFile/public-api.js';
|
||||||
|
import {mapState} from 'vuex'//引入mapState
|
||||||
export default {
|
export default {
|
||||||
components:{
|
components:{
|
||||||
statusNav,
|
statusNav,
|
||||||
|
@ -133,7 +135,7 @@
|
||||||
{titele:'是否显示会员价',imgSrc:'/static/public/icon-my-07.png',iconWidth:39,iconHeight:26},
|
{titele:'是否显示会员价',imgSrc:'/static/public/icon-my-07.png',iconWidth:39,iconHeight:26},
|
||||||
{titele:'商家客服',imgSrc:'/static/public/icon-my-08.png',iconWidth:35,iconHeight:37}
|
{titele:'商家客服',imgSrc:'/static/public/icon-my-08.png',iconWidth:35,iconHeight:37}
|
||||||
],//列表数据
|
],//列表数据
|
||||||
isShow:true, //是否显示会员价
|
showVip:'true', //是否显示会员价
|
||||||
isCustomer:false, //商家客服
|
isCustomer:false, //商家客服
|
||||||
isVip:false, //会员申请弹窗
|
isVip:false, //会员申请弹窗
|
||||||
myName:'', //姓名
|
myName:'', //姓名
|
||||||
|
@ -157,15 +159,21 @@
|
||||||
if(res.code == 0){
|
if(res.code == 0){
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
this.getCustomer();
|
this.getCustomer();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
this.getCustomer();
|
this.getCustomer();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
if(uni.getStorageSync('showVip')){
|
||||||
|
this.showVip = uni.getStorageSync('showVip');
|
||||||
|
}else{
|
||||||
|
uni.setStorageSync('showVip','true');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取用户信息
|
// 获取用户信息
|
||||||
|
@ -198,8 +206,19 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 是否显示会员价
|
// 是否显示会员价
|
||||||
changeShow(){
|
changeShowVip(){
|
||||||
this.isShow = !this.isShow;
|
if(this.showVip=='true'){
|
||||||
|
this.showVip='false';
|
||||||
|
}else{
|
||||||
|
this.showVip='true';
|
||||||
|
}
|
||||||
|
setTimeout(()=>{
|
||||||
|
if(this.showVip=='true'){
|
||||||
|
uni.setStorageSync('showVip','true');
|
||||||
|
}else{
|
||||||
|
uni.setStorageSync('showVip','false');
|
||||||
|
}
|
||||||
|
},200)
|
||||||
},
|
},
|
||||||
// 跳转方式
|
// 跳转方式
|
||||||
toMore(index){
|
toMore(index){
|
||||||
|
|
|
@ -10,7 +10,8 @@
|
||||||
<pull-list :list="collectionList" :collection="1" :isShop="isShop" @toDetail="toArticleDetail" @collectionEv="collectionEv"></pull-list>
|
<pull-list :list="collectionList" :collection="1" :isShop="isShop" @toDetail="toArticleDetail" @collectionEv="collectionEv"></pull-list>
|
||||||
</view>
|
</view>
|
||||||
<!-- 暂无更多内容 -->
|
<!-- 暂无更多内容 -->
|
||||||
<view class="more-txt more-txt-other" v-if="total == 0">暂无更多内容</view>
|
<view class="more-txt more-txt-other" v-if="total!==0 && totalAll == total">暂无更多内容</view>
|
||||||
|
<nothing-page v-if="total==0&&totalAll == total" content="还没有相关收藏哟(*^▽^*)"></nothing-page>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -18,8 +19,8 @@
|
||||||
import statusNav from '@/components/status-navs/status-nav';
|
import statusNav from '@/components/status-navs/status-nav';
|
||||||
import navTab from '@/components/nav-tab/nav-tab.vue';
|
import navTab from '@/components/nav-tab/nav-tab.vue';
|
||||||
import pullList from '@/components/pull-list/pull-list.vue';
|
import pullList from '@/components/pull-list/pull-list.vue';
|
||||||
import {getCartNum} from '@/jsFile/public-api.js';
|
import {getCartNum,userInfoEv} from '@/jsFile/public-api.js';
|
||||||
import { mapState } from 'vuex'//引入mapState
|
import {mapState} from 'vuex'//引入mapState
|
||||||
export default {
|
export default {
|
||||||
components:{
|
components:{
|
||||||
statusNav,
|
statusNav,
|
||||||
|
@ -54,10 +55,12 @@
|
||||||
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
||||||
if(res.code == 0){
|
if(res.code == 0){
|
||||||
this.getCollectionList();
|
this.getCollectionList();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
this.getCollectionList();
|
this.getCollectionList();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
|
@ -67,9 +70,6 @@
|
||||||
if(this.collectionList.length<this.total){
|
if(this.collectionList.length<this.total){
|
||||||
this.page++;
|
this.page++;
|
||||||
this.getArticleList();
|
this.getArticleList();
|
||||||
}else{
|
|
||||||
this.totalAll = this.total;
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
this.page++;
|
this.page++;
|
||||||
this.getCollectionList();
|
this.getCollectionList();
|
||||||
|
@ -98,8 +98,11 @@
|
||||||
this.isShop = false;
|
this.isShop = false;
|
||||||
}
|
}
|
||||||
if(this.currentIndex !== type){
|
if(this.currentIndex !== type){
|
||||||
|
this.total=0;
|
||||||
|
this.totalAll=-1;
|
||||||
this.page = 1;
|
this.page = 1;
|
||||||
this.currentIndex = type;
|
this.currentIndex = type;
|
||||||
|
this.collectionList=[];
|
||||||
this.getCollectionList();
|
this.getCollectionList();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -124,7 +127,10 @@
|
||||||
}
|
}
|
||||||
newArr.push(obj)
|
newArr.push(obj)
|
||||||
})
|
})
|
||||||
this.collectionList = newArr;
|
this.collectionList = this.collectionList.concat(newArr);
|
||||||
|
if(this.collectionList.length == this.total){
|
||||||
|
this.totalAll = this.total;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
})
|
})
|
||||||
|
@ -143,7 +149,10 @@
|
||||||
}
|
}
|
||||||
newArr.push(obj)
|
newArr.push(obj)
|
||||||
})
|
})
|
||||||
this.collectionList = newArr;
|
this.collectionList = this.collectionList.concat(newArr);
|
||||||
|
if(this.collectionList.length == this.total){
|
||||||
|
this.totalAll = this.total;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
<view class="right flex">
|
<view class="right flex">
|
||||||
<view class="collection-btn flex" :class="articleDetail.is_collected == 1?'active':''" @tap="collectionEv(articleDetail.id)">
|
<view class="collection-btn flex" :class="articleDetail.is_collected == 1?'active':''" @tap="collectionEv(articleDetail.id)">
|
||||||
<image src="/static/public/icon-collection.png" mode="widthFix"></image>
|
<image src="/static/public/icon-collection.png" mode="widthFix"></image>
|
||||||
<text>收藏</text>
|
<text>{{articleDetail.is_collected == 1?'已收藏':'收藏'}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="share-btn flex">
|
<view class="share-btn flex">
|
||||||
<image src="/static/public/icon-share.png" mode="widthFix"></image>
|
<image src="/static/public/icon-share.png" mode="widthFix"></image>
|
||||||
|
@ -42,8 +42,8 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import statusNav from '@/components/status-navs/status-nav';
|
import statusNav from '@/components/status-navs/status-nav';
|
||||||
import {getCartNum} from '@/jsFile/public-api.js';
|
import {getCartNum,userInfoEv} from '@/jsFile/public-api.js';
|
||||||
import { mapState } from 'vuex'//引入mapState
|
import {mapState} from 'vuex'//引入mapState
|
||||||
export default {
|
export default {
|
||||||
components:{
|
components:{
|
||||||
statusNav
|
statusNav
|
||||||
|
@ -70,10 +70,12 @@
|
||||||
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
||||||
if(res.code == 0){
|
if(res.code == 0){
|
||||||
this.getDetail(this.id);
|
this.getDetail(this.id);
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
this.getDetail(this.id);
|
this.getDetail(this.id);
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
import enterCart from '@/components/enter-cart/enter-cart.vue';
|
import enterCart from '@/components/enter-cart/enter-cart.vue';
|
||||||
// 底部组件
|
// 底部组件
|
||||||
import footTab from '@/components/foot-tab/foot-tab.vue';
|
import footTab from '@/components/foot-tab/foot-tab.vue';
|
||||||
import {getCartNum} from '@/jsFile/public-api.js';
|
import {getCartNum,userInfoEv} from '@/jsFile/public-api.js';
|
||||||
import { mapState } from 'vuex'//引入mapState
|
import {mapState} from 'vuex'//引入mapState
|
||||||
export default {
|
export default {
|
||||||
components:{
|
components:{
|
||||||
statusNav,
|
statusNav,
|
||||||
|
@ -57,10 +57,12 @@
|
||||||
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
||||||
if(res.code == 0){
|
if(res.code == 0){
|
||||||
this.getArticleNav();
|
this.getArticleNav();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
this.getArticleNav();
|
this.getArticleNav();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReachBottom(e) {
|
onReachBottom(e) {
|
||||||
|
@ -133,7 +135,7 @@
|
||||||
}
|
}
|
||||||
newArr.push(obj)
|
newArr.push(obj)
|
||||||
})
|
})
|
||||||
this.articleList = newArr;
|
this.articleList = this.articleList.concat(newArr);
|
||||||
if(this.articleList.length == this.total){
|
if(this.articleList.length == this.total){
|
||||||
this.totalAll = this.total;
|
this.totalAll = this.total;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
<view class="name">送货时间</view>
|
<view class="name">送货时间</view>
|
||||||
<view class="txt flex">
|
<view class="txt flex">
|
||||||
<text>日期</text>
|
<text>日期</text>
|
||||||
<picker mode="date" @change="chooseTime(3,$event)">
|
<picker mode="date" :start="startDate" :end="endDate" @change="chooseTime(3,$event)">
|
||||||
<input type="text" v-model="toTime" disabled @tap="chooseEv(0)" :class="current==0 ? 'focusc' : ''" placeholder="请选择送货日期" placeholder-style="color:#999999">
|
<input type="text" v-model="toTime" disabled @tap="chooseEv(0)" :class="current==0 ? 'focusc' : ''" placeholder="请选择送货日期" placeholder-style="color:#999999">
|
||||||
</picker>
|
</picker>
|
||||||
</view>
|
</view>
|
||||||
|
@ -45,6 +45,22 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import statusNav from '@/components/status-navs/status-nav';
|
import statusNav from '@/components/status-navs/status-nav';
|
||||||
|
import {getCartNum,userInfoEv} from '@/jsFile/public-api.js';
|
||||||
|
import {mapState} from 'vuex'//引入mapState
|
||||||
|
function getDate(type) {
|
||||||
|
const date = new Date();
|
||||||
|
let year = date.getFullYear();
|
||||||
|
let month = date.getMonth() + 1;
|
||||||
|
let day = date.getDate();
|
||||||
|
if (type === 'start') {
|
||||||
|
year = year;
|
||||||
|
} else if (type === 'end') {
|
||||||
|
year = year + 10;
|
||||||
|
}
|
||||||
|
month = month > 9 ? month : '0' + month;
|
||||||
|
day = day > 9 ? day : '0' + day;
|
||||||
|
return `${year}-${month}-${day}`;
|
||||||
|
}
|
||||||
export default {
|
export default {
|
||||||
components:{
|
components:{
|
||||||
statusNav
|
statusNav
|
||||||
|
@ -52,11 +68,16 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
current:6,
|
current:6,
|
||||||
toTime:'',// 时间
|
|
||||||
address:'',// 地址
|
address:'',// 地址
|
||||||
name:'',// 称呼
|
name:'',// 称呼
|
||||||
phone:'',// 电话
|
phone:'',// 电话
|
||||||
flag:true
|
flag:true,
|
||||||
|
// 日期
|
||||||
|
toTime: getDate({
|
||||||
|
format: true
|
||||||
|
}),
|
||||||
|
startDate: getDate('start'),
|
||||||
|
endDate: getDate('end'),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(op) {
|
onLoad(op) {
|
||||||
|
@ -77,8 +98,8 @@
|
||||||
// 获取默认信息
|
// 获取默认信息
|
||||||
getUserInfo(){
|
getUserInfo(){
|
||||||
this.$requst.get('/api/user/info').then(res=>{
|
this.$requst.get('/api/user/info').then(res=>{
|
||||||
console.log(res,'用户信息')
|
|
||||||
if(res.code==0) {
|
if(res.code==0) {
|
||||||
|
uni.setStorageSync('business_id',res.data.business_id);
|
||||||
this.address = res.data.order_address; //地址
|
this.address = res.data.order_address; //地址
|
||||||
this.name = res.data.order_contact; //联系人
|
this.name = res.data.order_contact; //联系人
|
||||||
this.phone = res.data.order_phone; //电话
|
this.phone = res.data.order_phone; //电话
|
||||||
|
|
|
@ -65,6 +65,8 @@
|
||||||
<script>
|
<script>
|
||||||
import statusNav from '@/components/status-navs/status-nav';
|
import statusNav from '@/components/status-navs/status-nav';
|
||||||
import customerService from '@/components/customer-service/customer-service.vue';
|
import customerService from '@/components/customer-service/customer-service.vue';
|
||||||
|
import {getCartNum,userInfoEv} from '@/jsFile/public-api.js';
|
||||||
|
import {mapState} from 'vuex'//引入mapState
|
||||||
export default {
|
export default {
|
||||||
components:{
|
components:{
|
||||||
statusNav,
|
statusNav,
|
||||||
|
@ -86,10 +88,12 @@
|
||||||
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
||||||
if(res.code == 0){
|
if(res.code == 0){
|
||||||
this.getOrderDetail();
|
this.getOrderDetail();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
this.getOrderDetail();
|
this.getOrderDetail();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 分享到微信
|
// 分享到微信
|
||||||
|
|
|
@ -33,14 +33,16 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 到底啦 -->
|
<!-- 到底啦 -->
|
||||||
<view class="more-txt" style="padding-bottom: 40rpx;" v-if="totalAll == total">—— 到底啦 ——</view>
|
<view class="more-txt" style="padding-bottom: 40rpx;" v-if="total!==0 && totalAll == total">—— 到底啦 ——</view>
|
||||||
|
|
||||||
<nothing-page v-if="!ifLoading && !orderList.length" content="还没有相关订单哟(*^▽^*)"></nothing-page>
|
<nothing-page v-if="total==0&&totalAll == total" content="还没有相关订单哟(*^▽^*)"></nothing-page>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import statusNav from '@/components/status-navs/status-nav';
|
import statusNav from '@/components/status-navs/status-nav';
|
||||||
|
import {getCartNum,userInfoEv} from '@/jsFile/public-api.js';
|
||||||
|
import {mapState} from 'vuex'//引入mapState
|
||||||
export default {
|
export default {
|
||||||
components:{
|
components:{
|
||||||
statusNav
|
statusNav
|
||||||
|
@ -76,10 +78,12 @@
|
||||||
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
||||||
if(res.code == 0){
|
if(res.code == 0){
|
||||||
this.getOrderList();
|
this.getOrderList();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
this.getOrderList();
|
this.getOrderList();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReachBottom(e) {
|
onReachBottom(e) {
|
||||||
|
@ -105,6 +109,8 @@
|
||||||
methods: {
|
methods: {
|
||||||
// 导航切换
|
// 导航切换
|
||||||
changeNav(index,tag) {
|
changeNav(index,tag) {
|
||||||
|
this.total=0;
|
||||||
|
this.totalAll=-1;
|
||||||
this.activeIndex = index;
|
this.activeIndex = index;
|
||||||
this.tag = tag;
|
this.tag = tag;
|
||||||
this.orderList=[];
|
this.orderList=[];
|
||||||
|
@ -120,6 +126,7 @@
|
||||||
tag: this.tag
|
tag: this.tag
|
||||||
}
|
}
|
||||||
this.$requst.get('/api/user/order',params).then(res=>{
|
this.$requst.get('/api/user/order',params).then(res=>{
|
||||||
|
console.log(res,'订单列表')
|
||||||
if(res.data.length!=0){
|
if(res.data.length!=0){
|
||||||
this.total = res.data.total;
|
this.total = res.data.total;
|
||||||
let newArr = [];
|
let newArr = [];
|
||||||
|
|
|
@ -11,12 +11,13 @@
|
||||||
<view class="shop-txt flex">
|
<view class="shop-txt flex">
|
||||||
<view class="left">
|
<view class="left">
|
||||||
<view class="shop-customized">{{shopDetail.tag==''?'':shopDetail.tag}}</view>
|
<view class="shop-customized">{{shopDetail.tag==''?'':shopDetail.tag}}</view>
|
||||||
<view class="shop-pric">¥{{shopDetail.price}}</view>
|
<view class="shop-pric">¥{{$toolAll.tools.changeNum(parseInt(shopDetail.original_price))}}</view>
|
||||||
|
<view class="shop-pric-vip" v-if="vipPrice"><text>会员价:</text>¥{{$toolAll.tools.changeNum(parseInt(shopDetail.price))}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="right flex">
|
<view class="right flex">
|
||||||
<view class="collection-btn flex" :class="shopDetail.is_collected == 1?'active':''" @tap="collectionEv(shopDetail.id)">
|
<view class="collection-btn flex" :class="shopDetail.is_collected == 1?'active':''" @tap="collectionEv(shopDetail.id)">
|
||||||
<image src="/static/public/icon-collection.png" mode=""></image>
|
<image src="/static/public/icon-collection.png" mode=""></image>
|
||||||
<text>收藏</text>
|
<text>{{shopDetail.is_collected == 1?'已收藏':'收藏'}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="share-btn flex">
|
<view class="share-btn flex">
|
||||||
<image src="/static/public/icon-share.png" mode=""></image>
|
<image src="/static/public/icon-share.png" mode=""></image>
|
||||||
|
@ -60,8 +61,8 @@
|
||||||
<view class="specs-detail-bg" v-if="isShow">
|
<view class="specs-detail-bg" v-if="isShow">
|
||||||
<view class="specs-detail">
|
<view class="specs-detail">
|
||||||
<view class="close-specs" @tap="closeSpecs"><image src="/static/public/icon-close.png" mode="widthFix"></image></view>
|
<view class="close-specs" @tap="closeSpecs"><image src="/static/public/icon-close.png" mode="widthFix"></image></view>
|
||||||
<view class="price">¥{{shopDetail.original_price}}</view>
|
<view class="price">¥{{$toolAll.tools.changeNum(parseInt(shopDetail.original_price))}}</view>
|
||||||
<view class="price"><text>会员价:</text>¥{{shopDetail.price}}</view>
|
<view class="price" v-if="vipPrice"><text>会员价:</text>¥{{$toolAll.tools.changeNum(parseInt(shopDetail.price))}}</view>
|
||||||
<view class="specs-ul">
|
<view class="specs-ul">
|
||||||
<text>规格</text>
|
<text>规格</text>
|
||||||
<view class="specs-li flex" @tap="changeSpecs(index)" :class="specsIndex == index?'checked':''" v-for="(item,index) in shopSku" :key="index">{{item.custom_title}} 供货周期:{{item.cycle}}</view>
|
<view class="specs-li flex" @tap="changeSpecs(index)" :class="specsIndex == index?'checked':''" v-for="(item,index) in shopSku" :key="index">{{item.custom_title}} 供货周期:{{item.cycle}}</view>
|
||||||
|
@ -82,8 +83,8 @@
|
||||||
import swiperPu from '@/components/swipers/swiper-pu';
|
import swiperPu from '@/components/swipers/swiper-pu';
|
||||||
import enterCart from '@/components/enter-cart/enter-cart.vue';
|
import enterCart from '@/components/enter-cart/enter-cart.vue';
|
||||||
import customerService from '@/components/customer-service/customer-service.vue';
|
import customerService from '@/components/customer-service/customer-service.vue';
|
||||||
import {getCartNum} from '@/jsFile/public-api.js';
|
import {getCartNum,userInfoEv} from '@/jsFile/public-api.js';
|
||||||
import { mapState } from 'vuex'//引入mapState
|
import {mapState} from 'vuex'//引入mapState
|
||||||
export default {
|
export default {
|
||||||
components:{
|
components:{
|
||||||
statusNav,
|
statusNav,
|
||||||
|
@ -107,6 +108,7 @@
|
||||||
id:0, //商品、套件id
|
id:0, //商品、套件id
|
||||||
action:'collect', //收藏类型
|
action:'collect', //收藏类型
|
||||||
changeBtns:false, //按钮选择
|
changeBtns:false, //按钮选择
|
||||||
|
vipPrice:false, //显示会员价
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed:{
|
computed:{
|
||||||
|
@ -122,15 +124,19 @@
|
||||||
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
||||||
if(res.code == 0){
|
if(res.code == 0){
|
||||||
this.getDetail(this.id);
|
this.getDetail(this.id);
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
this.getDetail(this.id);
|
this.getDetail(this.id);
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
if(uni.getStorageSync('showVip')=='true'){
|
||||||
|
this.vipPrice = true;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 分享到微信
|
// 分享到微信
|
||||||
onShareAppMessage(res) {
|
onShareAppMessage(res) {
|
||||||
|
|
|
@ -35,8 +35,8 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import statusNav from '@/components/status-navs/status-nav';
|
import statusNav from '@/components/status-navs/status-nav';
|
||||||
import {getCartNum} from '@/jsFile/public-api.js';
|
import {getCartNum,userInfoEv} from '@/jsFile/public-api.js';
|
||||||
import { mapState } from 'vuex'//引入mapState
|
import {mapState} from 'vuex'//引入mapState
|
||||||
export default {
|
export default {
|
||||||
components:{
|
components:{
|
||||||
statusNav,
|
statusNav,
|
||||||
|
@ -77,10 +77,12 @@
|
||||||
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
||||||
if(res.code == 0){
|
if(res.code == 0){
|
||||||
this.getShopScreen(); //查询商品分类
|
this.getShopScreen(); //查询商品分类
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
this.getShopScreen(); //查询商品分类
|
this.getShopScreen(); //查询商品分类
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReachBottom(e) {
|
onReachBottom(e) {
|
||||||
|
@ -185,7 +187,7 @@
|
||||||
}
|
}
|
||||||
newArr.push(obj);
|
newArr.push(obj);
|
||||||
})
|
})
|
||||||
this.shopList = newArr;
|
this.shopList = this.shopList.concat(newArr);
|
||||||
if(this.shopList.length == this.total){
|
if(this.shopList.length == this.total){
|
||||||
this.totalAll = this.total;
|
this.totalAll = this.total;
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import statusNav from '@/components/status-navs/status-nav';
|
import statusNav from '@/components/status-navs/status-nav';
|
||||||
import {getCartNum} from '@/jsFile/public-api.js';
|
import {getCartNum,userInfoEv} from '@/jsFile/public-api.js';
|
||||||
import { mapState } from 'vuex'//引入mapState
|
import {mapState} from 'vuex'//引入mapState
|
||||||
export default {
|
export default {
|
||||||
components:{
|
components:{
|
||||||
statusNav
|
statusNav
|
||||||
|
@ -48,10 +48,12 @@
|
||||||
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
||||||
if(res.code == 0){
|
if(res.code == 0){
|
||||||
this.getAboutData();
|
this.getAboutData();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
this.getAboutData();
|
this.getAboutData();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 分享到微信
|
// 分享到微信
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import statusNav from '@/components/status-navs/status-nav';
|
import statusNav from '@/components/status-navs/status-nav';
|
||||||
import {getCartNum} from '@/jsFile/public-api.js';
|
import {getCartNum,userInfoEv} from '@/jsFile/public-api.js';
|
||||||
import { mapState } from 'vuex'//引入mapState
|
import {mapState} from 'vuex'//引入mapState
|
||||||
export default {
|
export default {
|
||||||
components:{
|
components:{
|
||||||
statusNav
|
statusNav
|
||||||
|
@ -30,10 +30,12 @@
|
||||||
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
||||||
if(res.code == 0){
|
if(res.code == 0){
|
||||||
this.getDisclaimers();
|
this.getDisclaimers();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
this.getDisclaimers();
|
this.getDisclaimers();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -65,8 +65,8 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import statusNav from '@/components/status-navs/status-nav';
|
import statusNav from '@/components/status-navs/status-nav';
|
||||||
import {getCartNum} from '@/jsFile/public-api.js';
|
import {getCartNum,userInfoEv} from '@/jsFile/public-api.js';
|
||||||
import { mapState } from 'vuex'//引入mapState
|
import {mapState} from 'vuex'//引入mapState
|
||||||
export default {
|
export default {
|
||||||
components:{
|
components:{
|
||||||
statusNav
|
statusNav
|
||||||
|
@ -98,10 +98,12 @@
|
||||||
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
this.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res=>{
|
||||||
if(res.code == 0){
|
if(res.code == 0){
|
||||||
this.getUserData();
|
this.getUserData();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
this.getUserData();
|
this.getUserData();
|
||||||
|
userInfoEv();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|
|
@ -26,10 +26,14 @@ export default {
|
||||||
imgList:[],
|
imgList:[],
|
||||||
onLineList:[],
|
onLineList:[],
|
||||||
cartNum:0,
|
cartNum:0,
|
||||||
geList:[]
|
geList:[],
|
||||||
|
changeBusiness:false,
|
||||||
},
|
},
|
||||||
// Vuex中store数据改变的唯一方法就是mutations 不适合异步方法
|
// Vuex中store数据改变的唯一方法就是mutations 不适合异步方法
|
||||||
mutations: {
|
mutations: {
|
||||||
|
changeBusiness(state,finish){
|
||||||
|
state.changeBusiness = finish;
|
||||||
|
},
|
||||||
setNum(state,num){
|
setNum(state,num){
|
||||||
state.cartNum = num;
|
state.cartNum = num;
|
||||||
},
|
},
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -133,11 +133,7 @@ var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);var _defau
|
||||||
uni.setStorageSync('expire', result.data.data.expire); //缓存失效时间(时间戳格式)
|
uni.setStorageSync('expire', result.data.data.expire); //缓存失效时间(时间戳格式)
|
||||||
uni.setStorageSync('phone_active', result.data.data.phone_active); //是否授权手机号
|
uni.setStorageSync('phone_active', result.data.data.phone_active); //是否授权手机号
|
||||||
uni.setStorageSync('is_active', result.data.data.is_active); //是否授权头像和昵称
|
uni.setStorageSync('is_active', result.data.data.is_active); //是否授权头像和昵称
|
||||||
uni.setStorageSync('invite_code', result.data.data.invite_code); //缓存邀请码
|
uni.setStorageSync('business_code', result.data.data.business_code); //缓存邀请码
|
||||||
var headers = {
|
|
||||||
'Content-Type': 'application/json; charset=UTF-8',
|
|
||||||
'Authorization': 'Bearer ' + uni.getStorageSync('token') || false };
|
|
||||||
|
|
||||||
}
|
}
|
||||||
} });
|
} });
|
||||||
|
|
||||||
|
|
|
@ -37,10 +37,6 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -997,16 +993,18 @@ page {background-color: #eaeaea;}
|
||||||
.shop-ul .shop-li .img{
|
.shop-ul .shop-li .img{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 215rpx;
|
height: 215rpx;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.shop-ul .shop-li .img image{
|
.shop-ul .shop-li .img image{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 215rpx;
|
min-height: 215rpx;
|
||||||
}
|
}
|
||||||
.shop-ul .shop-li .txt{
|
.shop-ul .shop-li .txt{
|
||||||
padding: 22rpx;
|
padding: 22rpx 22rpx 0;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
|
margin-bottom: 22rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 商品详情 */
|
/* 商品详情 */
|
||||||
|
@ -1046,6 +1044,12 @@ page {background-color: #eaeaea;}
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
}
|
}
|
||||||
|
.shop-pric-vip{
|
||||||
|
font-size: 30rpx;
|
||||||
|
color: #0073bc;
|
||||||
|
line-height: 1.5;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
}
|
||||||
.shop-txt .right{
|
.shop-txt .right{
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -1056,6 +1060,9 @@ page {background-color: #eaeaea;}
|
||||||
width: 60rpx;
|
width: 60rpx;
|
||||||
margin-right: 30rpx;
|
margin-right: 30rpx;
|
||||||
}
|
}
|
||||||
|
.collection-btn.active{
|
||||||
|
width: 70rpx;
|
||||||
|
}
|
||||||
.collection-btn image{
|
.collection-btn image{
|
||||||
width: 45rpx;
|
width: 45rpx;
|
||||||
height: 41rpx;
|
height: 41rpx;
|
||||||
|
@ -1085,7 +1092,7 @@ page {background-color: #eaeaea;}
|
||||||
.collection-btn text,
|
.collection-btn text,
|
||||||
.share-btn text{
|
.share-btn text{
|
||||||
display: block;
|
display: block;
|
||||||
width: 60rpx;
|
width: 100%;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
@ -1400,7 +1400,7 @@ function initData(vueOptions, context) {
|
||||||
try {
|
try {
|
||||||
data = data.call(context); // 支持 Vue.prototype 上挂的数据
|
data = data.call(context); // 支持 Vue.prototype 上挂的数据
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (Object({"NODE_ENV":"development","VUE_APP_NAME":"app适配微信小程序","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
if (Object({"VUE_APP_NAME":"app适配微信小程序","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
||||||
console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
|
console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8479,7 +8479,7 @@ function type(obj) {
|
||||||
|
|
||||||
function flushCallbacks$1(vm) {
|
function flushCallbacks$1(vm) {
|
||||||
if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
|
if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
|
||||||
if (Object({"NODE_ENV":"development","VUE_APP_NAME":"app适配微信小程序","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
if (Object({"VUE_APP_NAME":"app适配微信小程序","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
||||||
var mpInstance = vm.$scope;
|
var mpInstance = vm.$scope;
|
||||||
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
||||||
']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
|
']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
|
||||||
|
@ -8500,14 +8500,14 @@ function nextTick$1(vm, cb) {
|
||||||
//1.nextTick 之前 已 setData 且 setData 还未回调完成
|
//1.nextTick 之前 已 setData 且 setData 还未回调完成
|
||||||
//2.nextTick 之前存在 render watcher
|
//2.nextTick 之前存在 render watcher
|
||||||
if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
|
if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
|
||||||
if(Object({"NODE_ENV":"development","VUE_APP_NAME":"app适配微信小程序","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
|
if(Object({"VUE_APP_NAME":"app适配微信小程序","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
||||||
var mpInstance = vm.$scope;
|
var mpInstance = vm.$scope;
|
||||||
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
||||||
']:nextVueTick');
|
']:nextVueTick');
|
||||||
}
|
}
|
||||||
return nextTick(cb, vm)
|
return nextTick(cb, vm)
|
||||||
}else{
|
}else{
|
||||||
if(Object({"NODE_ENV":"development","VUE_APP_NAME":"app适配微信小程序","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
|
if(Object({"VUE_APP_NAME":"app适配微信小程序","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
||||||
var mpInstance$1 = vm.$scope;
|
var mpInstance$1 = vm.$scope;
|
||||||
console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
|
console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
|
||||||
']:nextMPTick');
|
']:nextMPTick');
|
||||||
|
@ -8593,7 +8593,7 @@ var patch = function(oldVnode, vnode) {
|
||||||
});
|
});
|
||||||
var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
|
var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
|
||||||
if (Object.keys(diffData).length) {
|
if (Object.keys(diffData).length) {
|
||||||
if (Object({"NODE_ENV":"development","VUE_APP_NAME":"app适配微信小程序","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
if (Object({"VUE_APP_NAME":"app适配微信小程序","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
||||||
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
|
||||||
']差量更新',
|
']差量更新',
|
||||||
JSON.stringify(diffData));
|
JSON.stringify(diffData));
|
||||||
|
@ -9023,7 +9023,7 @@ internalMixin(Vue);
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });exports.slidePosition = slidePosition;exports.getCartNum = getCartNum;var _requst = _interopRequireDefault(__webpack_require__(/*! ./requst.js */ 10));
|
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.slidePosition = slidePosition;exports.getCartNum = getCartNum;exports.userInfoEv = userInfoEv;var _requst = _interopRequireDefault(__webpack_require__(/*! ./requst.js */ 10));
|
||||||
var _index = _interopRequireDefault(__webpack_require__(/*! @/store/index.js */ 11));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
var _index = _interopRequireDefault(__webpack_require__(/*! @/store/index.js */ 11));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
|
||||||
|
|
||||||
// 查询轮播位置
|
// 查询轮播位置
|
||||||
|
@ -9040,6 +9040,17 @@ function getCartNum() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查询用户信息,缓存商户id
|
||||||
|
function userInfoEv() {
|
||||||
|
return _requst.default.get('/api/user/info').then(function (res) {
|
||||||
|
if (res.code == 0) {
|
||||||
|
uni.setStorageSync('business_id', res.data.business_id);
|
||||||
|
uni.setStorageSync('business_code', res.data.business_code);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 10 */
|
/* 10 */
|
||||||
/*!**********************************************!*\
|
/*!**********************************************!*\
|
||||||
|
@ -9071,34 +9082,30 @@ var refreshTokenPage = function refreshTokenPage() {
|
||||||
param += '?' + key + '=' + currentParam[key];
|
param += '?' + key + '=' + currentParam[key];
|
||||||
}
|
}
|
||||||
var localRoute = '/' + currentRoute + param;
|
var localRoute = '/' + currentRoute + param;
|
||||||
uni.login({
|
if (localRoute !== '/pages/login/login') {
|
||||||
success: function success(res) {
|
uni.login({
|
||||||
uni.request({
|
success: function success(res) {
|
||||||
url: 'https://luban.scdxtc.cn/api/user/login',
|
uni.request({
|
||||||
data: { code: res.code },
|
url: 'https://luban.scdxtc.cn/api/user/login',
|
||||||
success: function success(result) {
|
data: { code: res.code },
|
||||||
if (result.data.code == 0) {
|
success: function success(result) {
|
||||||
uni.setStorageSync('userId', result.data.account_id);
|
if (result.data.code == 0) {
|
||||||
uni.setStorageSync('token', result.data.data.token); //缓存token
|
uni.setStorageSync('userId', result.data.account_id);
|
||||||
uni.setStorageSync('openid', result.data.data.openid); //缓存openid
|
uni.setStorageSync('token', result.data.data.token); //缓存token
|
||||||
uni.setStorageSync('expire', result.data.data.expire); //缓存失效时间(时间戳格式)
|
uni.setStorageSync('openid', result.data.data.openid); //缓存openid
|
||||||
uni.setStorageSync('phone_active', result.data.data.phone_active); //是否授权手机号
|
uni.setStorageSync('expire', result.data.data.expire); //缓存失效时间(时间戳格式)
|
||||||
uni.setStorageSync('is_active', result.data.data.is_active); //是否授权头像和昵称
|
uni.setStorageSync('phone_active', result.data.data.phone_active); //是否授权手机号
|
||||||
uni.setStorageSync('invite_code', result.data.data.invite_code); //缓存邀请码
|
uni.setStorageSync('is_active', result.data.data.is_active); //是否授权头像和昵称
|
||||||
if (localRoute) {
|
uni.setStorageSync('invite_code', result.data.data.invite_code); //缓存邀请码
|
||||||
uni.reLaunch({ // 重新进入当前页面
|
uni.reLaunch({ // 重新进入当前页面
|
||||||
url: localRoute });
|
url: localRoute });
|
||||||
|
|
||||||
} else {
|
|
||||||
uni.reLaunch({
|
|
||||||
url: '/pages/tabbar/index/index' });
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
} });
|
||||||
} });
|
|
||||||
|
|
||||||
} });
|
} });
|
||||||
|
|
||||||
|
}
|
||||||
flag = true;
|
flag = true;
|
||||||
};
|
};
|
||||||
// 请求错误处理
|
// 请求错误处理
|
||||||
|
@ -10568,10 +10575,14 @@ var _default = {
|
||||||
imgList: [],
|
imgList: [],
|
||||||
onLineList: [],
|
onLineList: [],
|
||||||
cartNum: 0,
|
cartNum: 0,
|
||||||
geList: [] },
|
geList: [],
|
||||||
|
changeBusiness: false },
|
||||||
|
|
||||||
// Vuex中store数据改变的唯一方法就是mutations 不适合异步方法
|
// Vuex中store数据改变的唯一方法就是mutations 不适合异步方法
|
||||||
mutations: {
|
mutations: {
|
||||||
|
changeBusiness: function changeBusiness(state, finish) {
|
||||||
|
state.changeBusiness = finish;
|
||||||
|
},
|
||||||
setNum: function setNum(state, num) {
|
setNum: function setNum(state, num) {
|
||||||
state.cartNum = num;
|
state.cartNum = num;
|
||||||
},
|
},
|
||||||
|
@ -11267,7 +11278,7 @@ function normalizeComponent (
|
||||||
judgeAuth: function judgeAuth() {
|
judgeAuth: function judgeAuth() {
|
||||||
var auth = false;
|
var auth = false;
|
||||||
clearTimeout(this.authTimer);
|
clearTimeout(this.authTimer);
|
||||||
if (!uni.getStorageSync('token') && uni.getStorageSync('is_active') == 0) {
|
if (!uni.getStorageSync('token') || uni.getStorageSync('is_active') == 0) {
|
||||||
this.showToast('请授权登录');
|
this.showToast('请授权登录');
|
||||||
this.authTimer = setTimeout(function () {
|
this.authTimer = setTimeout(function () {
|
||||||
uni.reLaunch({ url: '/pages/login/login' });
|
uni.reLaunch({ url: '/pages/login/login' });
|
||||||
|
|
|
@ -1,176 +1 @@
|
||||||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["components/nothing/pitera"],{
|
Component({})
|
||||||
|
|
||||||
/***/ 227:
|
|
||||||
/*!***********************************************************!*\
|
|
||||||
!*** D:/鲁班家具小程序/luban-mall/components/nothing/pitera.vue ***!
|
|
||||||
\***********************************************************/
|
|
||||||
/*! no static exports found */
|
|
||||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
__webpack_require__.r(__webpack_exports__);
|
|
||||||
/* harmony import */ var _pitera_vue_vue_type_template_id_7cce0254___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pitera.vue?vue&type=template&id=7cce0254& */ 228);
|
|
||||||
/* harmony import */ var _pitera_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./pitera.vue?vue&type=script&lang=js& */ 230);
|
|
||||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _pitera_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _pitera_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
||||||
/* harmony import */ var _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 17);
|
|
||||||
|
|
||||||
var renderjs
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* normalize component */
|
|
||||||
|
|
||||||
var component = Object(_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
|
||||||
_pitera_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
||||||
_pitera_vue_vue_type_template_id_7cce0254___WEBPACK_IMPORTED_MODULE_0__["render"],
|
|
||||||
_pitera_vue_vue_type_template_id_7cce0254___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
|
||||||
false,
|
|
||||||
null,
|
|
||||||
null,
|
|
||||||
null,
|
|
||||||
false,
|
|
||||||
_pitera_vue_vue_type_template_id_7cce0254___WEBPACK_IMPORTED_MODULE_0__["components"],
|
|
||||||
renderjs
|
|
||||||
)
|
|
||||||
|
|
||||||
component.options.__file = "components/nothing/pitera.vue"
|
|
||||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ 228:
|
|
||||||
/*!******************************************************************************************!*\
|
|
||||||
!*** D:/鲁班家具小程序/luban-mall/components/nothing/pitera.vue?vue&type=template&id=7cce0254& ***!
|
|
||||||
\******************************************************************************************/
|
|
||||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
||||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
__webpack_require__.r(__webpack_exports__);
|
|
||||||
/* harmony import */ var _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_template_id_7cce0254___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./pitera.vue?vue&type=template&id=7cce0254& */ 229);
|
|
||||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_template_id_7cce0254___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
|
||||||
|
|
||||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_template_id_7cce0254___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
|
||||||
|
|
||||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_template_id_7cce0254___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
|
||||||
|
|
||||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_template_id_7cce0254___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ 229:
|
|
||||||
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
||||||
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/鲁班家具小程序/luban-mall/components/nothing/pitera.vue?vue&type=template&id=7cce0254& ***!
|
|
||||||
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
||||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
||||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
__webpack_require__.r(__webpack_exports__);
|
|
||||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
|
||||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
|
||||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
|
||||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
|
||||||
var components
|
|
||||||
var render = function() {
|
|
||||||
var _vm = this
|
|
||||||
var _h = _vm.$createElement
|
|
||||||
var _c = _vm._self._c || _h
|
|
||||||
}
|
|
||||||
var recyclableRender = false
|
|
||||||
var staticRenderFns = []
|
|
||||||
render._withStripped = true
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ 230:
|
|
||||||
/*!************************************************************************************!*\
|
|
||||||
!*** D:/鲁班家具小程序/luban-mall/components/nothing/pitera.vue?vue&type=script&lang=js& ***!
|
|
||||||
\************************************************************************************/
|
|
||||||
/*! no static exports found */
|
|
||||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
__webpack_require__.r(__webpack_exports__);
|
|
||||||
/* harmony import */ var _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./pitera.vue?vue&type=script&lang=js& */ 231);
|
|
||||||
/* harmony import */ var _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
|
||||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
||||||
/* harmony default export */ __webpack_exports__["default"] = (_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_pitera_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ 231:
|
|
||||||
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
||||||
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/鲁班家具小程序/luban-mall/components/nothing/pitera.vue?vue&type=script&lang=js& ***!
|
|
||||||
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
||||||
/*! no static exports found */
|
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; //
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//
|
|
||||||
var _default =
|
|
||||||
{
|
|
||||||
name: "pitera",
|
|
||||||
props: {
|
|
||||||
// 内容
|
|
||||||
textStr: {
|
|
||||||
type: String,
|
|
||||||
default: '-- NO MORE --' },
|
|
||||||
|
|
||||||
// 字体颜色
|
|
||||||
textColor: {
|
|
||||||
type: String,
|
|
||||||
default: '#999999' },
|
|
||||||
|
|
||||||
// 字体大小
|
|
||||||
textFontSize: {
|
|
||||||
type: String,
|
|
||||||
default: '24rpx' },
|
|
||||||
|
|
||||||
// 是否加粗
|
|
||||||
ifBold: {
|
|
||||||
type: Boolean,
|
|
||||||
default: false },
|
|
||||||
|
|
||||||
// 是否居中
|
|
||||||
ifCenter: {
|
|
||||||
type: Boolean,
|
|
||||||
default: true },
|
|
||||||
|
|
||||||
// 内边距的值
|
|
||||||
paddingStr: {
|
|
||||||
type: String,
|
|
||||||
default: '20rpx' } },
|
|
||||||
|
|
||||||
|
|
||||||
data: function data() {
|
|
||||||
return {};
|
|
||||||
} };exports.default = _default;
|
|
||||||
|
|
||||||
/***/ })
|
|
||||||
|
|
||||||
}]);
|
|
||||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/nothing/pitera.js.map
|
|
||||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
||||||
'components/nothing/pitera-create-component',
|
|
||||||
{
|
|
||||||
'components/nothing/pitera-create-component':(function(module, exports, __webpack_require__){
|
|
||||||
__webpack_require__('1')['createComponent'](__webpack_require__(227))
|
|
||||||
})
|
|
||||||
},
|
|
||||||
[['components/nothing/pitera-create-component']]
|
|
||||||
]);
|
|
|
@ -73,7 +73,8 @@
|
||||||
position: static;
|
position: static;
|
||||||
}
|
}
|
||||||
.pull-item-shop .title.data-v-1c523212 {
|
.pull-item-shop .title.data-v-1c523212 {
|
||||||
padding: 15rpx 20rpx;
|
padding: 15rpx 20rpx 0;
|
||||||
|
margin-bottom: 15rpx;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
line-height: 1.8;
|
line-height: 1.8;
|
||||||
color: #000;
|
color: #000;
|
||||||
|
|
|
@ -84,20 +84,24 @@ var render = function() {
|
||||||
var l0 = _vm.__map(_vm.listData, function(item, index) {
|
var l0 = _vm.__map(_vm.listData, function(item, index) {
|
||||||
var $orig = _vm.__get_orig(item)
|
var $orig = _vm.__get_orig(item)
|
||||||
|
|
||||||
var g0 = _vm.$toolAll.tools.changeNum(item.price)
|
var g0 = _vm.vipPrice ? _vm.$toolAll.tools.changeNum(item.price) : null
|
||||||
|
var g1 = !_vm.vipPrice
|
||||||
|
? _vm.$toolAll.tools.changeNum(item.original_price)
|
||||||
|
: null
|
||||||
return {
|
return {
|
||||||
$orig: $orig,
|
$orig: $orig,
|
||||||
g0: g0
|
g0: g0,
|
||||||
|
g1: g1
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
var g1 = _vm.$toolAll.tools.changeNum(_vm.allPrice)
|
var g2 = _vm.$toolAll.tools.changeNum(_vm.allPrice)
|
||||||
_vm.$mp.data = Object.assign(
|
_vm.$mp.data = Object.assign(
|
||||||
{},
|
{},
|
||||||
{
|
{
|
||||||
$root: {
|
$root: {
|
||||||
l0: l0,
|
l0: l0,
|
||||||
g1: g1
|
g2: g2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@ -222,7 +226,12 @@ var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);function o
|
||||||
var allPrice = 0;
|
var allPrice = 0;
|
||||||
this.listData.forEach(function (item) {
|
this.listData.forEach(function (item) {
|
||||||
if (item.ifcheck) {
|
if (item.ifcheck) {
|
||||||
allPrice += _this.$toolAll.tools.operationEv(item.price, item.num, '*', 2) * 1;
|
if (_this.vipPrice) {
|
||||||
|
allPrice += _this.$toolAll.tools.operationEv(item.price, item.num, '*', 2) * 1;
|
||||||
|
} else {
|
||||||
|
allPrice += _this.$toolAll.tools.operationEv(item.original_price, item.num, '*', 2) * 1;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// return this.$toolAll.tools.addXiaoShu(allPrice);
|
// return this.$toolAll.tools.addXiaoShu(allPrice);
|
||||||
|
@ -268,12 +277,16 @@ var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);function o
|
||||||
ifLoading: true,
|
ifLoading: true,
|
||||||
page: 1,
|
page: 1,
|
||||||
size: 10,
|
size: 10,
|
||||||
total: 0 };
|
total: 0,
|
||||||
|
vipPrice: false // 是否显示会员价
|
||||||
|
};
|
||||||
},
|
},
|
||||||
mounted: function mounted() {
|
mounted: function mounted() {
|
||||||
this.listData = this.list;
|
this.listData = this.list;
|
||||||
this.getList();
|
this.getList();
|
||||||
|
},
|
||||||
|
onShow: function onShow() {
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getList: function getList() {var _this2 = this;
|
getList: function getList() {var _this2 = this;
|
||||||
|
@ -285,7 +298,11 @@ var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);function o
|
||||||
|
|
||||||
this.$requst.post('/api/order/shopping-cart', params).then(function (res) {
|
this.$requst.post('/api/order/shopping-cart', params).then(function (res) {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
if (uni.getStorageSync('business_code') !== '') {
|
||||||
|
_this2.vipPrice = true;
|
||||||
|
}
|
||||||
_this2.total = res.data.total;
|
_this2.total = res.data.total;
|
||||||
|
console.log(res, '购物车列表');
|
||||||
if (_this2.page == 1) _this2.listData = [];
|
if (_this2.page == 1) _this2.listData = [];
|
||||||
if (res.data.list.length) {
|
if (res.data.list.length) {
|
||||||
res.data.list.forEach(function (item) {
|
res.data.list.forEach(function (item) {
|
||||||
|
@ -302,6 +319,7 @@ var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);function o
|
||||||
is_series: item.spu.is_series,
|
is_series: item.spu.is_series,
|
||||||
slide_x: 0,
|
slide_x: 0,
|
||||||
price: parseInt(item.sku.sku_price),
|
price: parseInt(item.sku.sku_price),
|
||||||
|
original_price: parseInt(item.sku.sku_original_price),
|
||||||
num: item.num,
|
num: item.num,
|
||||||
ifcheck: _this2.skuId == item.sku_id ? true : false,
|
ifcheck: _this2.skuId == item.sku_id ? true : false,
|
||||||
ifExit: true,
|
ifExit: true,
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<view class="data-v-48b8e4cc"><view class="slide-list data-v-48b8e4cc"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="slide-item data-v-48b8e4cc"><view data-event-opts="{{[['tap',[['clickItemMethod',['$0'],[[['listData','',index]]]]]]]}}" class="slide-item-li data-v-48b8e4cc" bindtap="__e"><label class="radio data-v-48b8e4cc"><radio checked="{{item.$orig.ifcheck}}" color="#0073bc" data-event-opts="{{[['tap',[['chooseEv',[index]]]]]}}" catchtap="__e" class="data-v-48b8e4cc"></radio></label><view data-event-opts="{{[['tap',[['goDetail',['$0','$1'],[[['listData','',index,'spuId']],[['listData','',index,'is_series']]]]]]]}}" class="shop-img data-v-48b8e4cc" bindtap="__e"><image src="{{item.$orig.image}}" mode="widthFix" class="data-v-48b8e4cc"></image></view><view class="shop-txt data-v-48b8e4cc"><view class="shop-txt-top data-v-48b8e4cc"><view class="title data-v-48b8e4cc">{{item.$orig.title}}</view><view class="specs clips2 data-v-48b8e4cc">{{"规格:"+(item.$orig.customTitle==''?item.$orig.skuName:item.$orig.customTitle)}}</view></view><view class="shop-txt-bottom data-v-48b8e4cc"><view class="price data-v-48b8e4cc">{{"¥"+item.g0}}</view><view class="num data-v-48b8e4cc"><view data-event-opts="{{[['tap',[['addCutEv',[index,0]]]]]}}" class="icon icon-cut count-btn _i data-v-48b8e4cc" style="{{'background-color:'+(item.$orig.num==minNum||item.$orig.slide_x!=0?'#d3d3d3':'#0073bc')+';'}}" catchtap="__e"></view><input class="input data-v-48b8e4cc" type="digit" disabled="{{item.$orig.slide_x!=0}}" data-event-opts="{{[['blur',[['blurEv',[index,'$event']]]],['focus',[['focusEv',['$0'],[[['listData','',index,'num']]]]]],['input',[['__set_model',['$0','num','$event',[]],[[['listData','',index]]]]]]]}}" value="{{item.$orig.num}}" bindblur="__e" bindfocus="__e" bindinput="__e"/><view data-event-opts="{{[['tap',[['addCutEv',[index,1]]]]]}}" class="icon icon-add count-btn _i data-v-48b8e4cc" style="{{'background-color:'+(item.$orig.num==maxNum||item.$orig.slide_x!=0?'#d3d3d3':'#0073bc')+';'}}" catchtap="__e"></view></view></view></view></view></view></block></view><view class="change-all data-v-48b8e4cc"><label data-event-opts="{{[['tap',[['chooseAll',['$event']]]]]}}" class="label data-v-48b8e4cc" bindtap="__e"><radio style="transform:scale(.8);" checked="{{allChoose}}" color="#0073bc" class="data-v-48b8e4cc"></radio><text class="data-v-48b8e4cc">全选</text></label><view class="all-price data-v-48b8e4cc"><view class="price data-v-48b8e4cc">合计:<label class="_span data-v-48b8e4cc">{{"¥"+$root.g1}}</label></view><view data-event-opts="{{[['tap',[['submitEv',['$event']]]]]}}" class="btn data-v-48b8e4cc" style="{{'background:'+(!buyNum?'#cccccc':'#0073bc')+';'}}" bindtap="__e">{{allPrice==0?'去购物':'提交订单 ('+buyNum+')'}}</view></view></view><block wx:if="{{listData.length!=0&&total==listData.length}}"><view class="data-v-48b8e4cc"><pitera vue-id="ce62b2a8-1" textStr="—— 到底啦 ——" class="data-v-48b8e4cc" bind:__l="__l"></pitera></view></block><block wx:if="{{!ifLoading&&!listData.length}}"><nothing-page vue-id="ce62b2a8-2" content="您的购物车,空空如也(*^▽^*)" class="data-v-48b8e4cc" bind:__l="__l"></nothing-page></block></view>
|
<view class="data-v-48b8e4cc"><view class="slide-list data-v-48b8e4cc"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="slide-item data-v-48b8e4cc"><view data-event-opts="{{[['tap',[['clickItemMethod',['$0'],[[['listData','',index]]]]]]]}}" class="slide-item-li data-v-48b8e4cc" bindtap="__e"><label class="radio data-v-48b8e4cc"><radio checked="{{item.$orig.ifcheck}}" color="#0073bc" data-event-opts="{{[['tap',[['chooseEv',[index]]]]]}}" catchtap="__e" class="data-v-48b8e4cc"></radio></label><view data-event-opts="{{[['tap',[['goDetail',['$0','$1'],[[['listData','',index,'spuId']],[['listData','',index,'is_series']]]]]]]}}" class="shop-img data-v-48b8e4cc" bindtap="__e"><image src="{{item.$orig.image}}" mode="widthFix" class="data-v-48b8e4cc"></image></view><view class="shop-txt data-v-48b8e4cc"><view class="shop-txt-top data-v-48b8e4cc"><view class="title data-v-48b8e4cc">{{item.$orig.title}}</view><view class="specs clips2 data-v-48b8e4cc">{{"规格:"+(item.$orig.customTitle==''?item.$orig.skuName:item.$orig.customTitle)}}</view></view><view class="shop-txt-bottom data-v-48b8e4cc"><view class="price data-v-48b8e4cc">{{"¥"+(vipPrice?item.g0:item.g1)}}</view><view class="num data-v-48b8e4cc"><view data-event-opts="{{[['tap',[['addCutEv',[index,0]]]]]}}" class="icon icon-cut count-btn _i data-v-48b8e4cc" style="{{'background-color:'+(item.$orig.num==minNum||item.$orig.slide_x!=0?'#d3d3d3':'#0073bc')+';'}}" catchtap="__e"></view><input class="input data-v-48b8e4cc" type="digit" disabled="{{item.$orig.slide_x!=0}}" data-event-opts="{{[['blur',[['blurEv',[index,'$event']]]],['focus',[['focusEv',['$0'],[[['listData','',index,'num']]]]]],['input',[['__set_model',['$0','num','$event',[]],[[['listData','',index]]]]]]]}}" value="{{item.$orig.num}}" bindblur="__e" bindfocus="__e" bindinput="__e"/><view data-event-opts="{{[['tap',[['addCutEv',[index,1]]]]]}}" class="icon icon-add count-btn _i data-v-48b8e4cc" style="{{'background-color:'+(item.$orig.num==maxNum||item.$orig.slide_x!=0?'#d3d3d3':'#0073bc')+';'}}" catchtap="__e"></view></view></view></view></view></view></block></view><view class="change-all data-v-48b8e4cc"><label data-event-opts="{{[['tap',[['chooseAll',['$event']]]]]}}" class="label data-v-48b8e4cc" bindtap="__e"><radio style="transform:scale(.8);" checked="{{allChoose}}" color="#0073bc" class="data-v-48b8e4cc"></radio><text class="data-v-48b8e4cc">全选</text></label><view class="all-price data-v-48b8e4cc"><view class="price data-v-48b8e4cc">合计:<label class="_span data-v-48b8e4cc">{{"¥"+$root.g2}}</label></view><view data-event-opts="{{[['tap',[['submitEv',['$event']]]]]}}" class="btn data-v-48b8e4cc" style="{{'background:'+(!buyNum?'#cccccc':'#0073bc')+';'}}" bindtap="__e">{{allPrice==0?'去购物':'提交订单 ('+buyNum+')'}}</view></view></view><block wx:if="{{listData.length!=0&&total==listData.length}}"><view class="data-v-48b8e4cc"><pitera vue-id="ce62b2a8-1" textStr="—— 到底啦 ——" class="data-v-48b8e4cc" bind:__l="__l"></pitera></view></block><block wx:if="{{!ifLoading&&!listData.length}}"><nothing-page vue-id="ce62b2a8-2" content="您的购物车,空空如也(*^▽^*)" class="data-v-48b8e4cc" bind:__l="__l"></nothing-page></block></view>
|
|
@ -1 +0,0 @@
|
||||||
Component({})
|
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
"navigationBarTitleText": "",
|
|
||||||
"enablePullDownRefresh": false,
|
|
||||||
"usingComponents": {}
|
|
||||||
}
|
|
|
@ -1 +0,0 @@
|
||||||
<view class="data-v-92bb8f34"></view>
|
|
|
@ -1 +0,0 @@
|
||||||
/* pages/home/home.wxss */
|
|
|
@ -252,7 +252,7 @@ var _default =
|
||||||
uni.setStorageSync('expire', res.data.expire); //缓存失效时间(时间戳格式)
|
uni.setStorageSync('expire', res.data.expire); //缓存失效时间(时间戳格式)
|
||||||
uni.setStorageSync('phone_active', res.data.phone_active); //是否授权手机号
|
uni.setStorageSync('phone_active', res.data.phone_active); //是否授权手机号
|
||||||
uni.setStorageSync('is_active', res.data.is_active); //是否授权头像和昵称
|
uni.setStorageSync('is_active', res.data.is_active); //是否授权头像和昵称
|
||||||
uni.setStorageSync('invite_code', res.data.invite_code); //缓存邀请码
|
uni.setStorageSync('business_code', res.data.business_code); //缓存邀请码
|
||||||
if (uni.getStorageSync('page-path-options')) {
|
if (uni.getStorageSync('page-path-options')) {
|
||||||
uni.reLaunch({ // 重新进入当前页面
|
uni.reLaunch({ // 重新进入当前页面
|
||||||
url: uni.getStorageSync('page-path-options') });
|
url: uni.getStorageSync('page-path-options') });
|
||||||
|
|
|
@ -96,10 +96,10 @@ var components
|
||||||
try {
|
try {
|
||||||
components = {
|
components = {
|
||||||
enterCart: function() {
|
enterCart: function() {
|
||||||
return Promise.all(/*! import() | components/enter-cart/enter-cart */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/enter-cart/enter-cart")]).then(__webpack_require__.bind(null, /*! @/components/enter-cart/enter-cart.vue */ 178))
|
return __webpack_require__.e(/*! import() | components/enter-cart/enter-cart */ "components/enter-cart/enter-cart").then(__webpack_require__.bind(null, /*! @/components/enter-cart/enter-cart.vue */ 178))
|
||||||
},
|
},
|
||||||
footTab: function() {
|
footTab: function() {
|
||||||
return Promise.all(/*! import() | components/foot-tab/foot-tab */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/foot-tab/foot-tab")]).then(__webpack_require__.bind(null, /*! @/components/foot-tab/foot-tab.vue */ 185))
|
return __webpack_require__.e(/*! import() | components/foot-tab/foot-tab */ "components/foot-tab/foot-tab").then(__webpack_require__.bind(null, /*! @/components/foot-tab/foot-tab.vue */ 185))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -197,7 +197,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
|
|
||||||
|
|
||||||
var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);
|
var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);
|
||||||
var _vuex = __webpack_require__(/*! vuex */ 12);function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var enterCart = function enterCart() {Promise.all(/*! require.ensure | components/enter-cart/enter-cart */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/enter-cart/enter-cart")]).then((function () {return resolve(__webpack_require__(/*! @/components/enter-cart/enter-cart.vue */ 178));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var footTab = function footTab() {Promise.all(/*! require.ensure | components/foot-tab/foot-tab */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/foot-tab/foot-tab")]).then((function () {return resolve(__webpack_require__(/*! @/components/foot-tab/foot-tab.vue */ 185));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
|
var _vuex = __webpack_require__(/*! vuex */ 12);function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var enterCart = function enterCart() {__webpack_require__.e(/*! require.ensure | components/enter-cart/enter-cart */ "components/enter-cart/enter-cart").then((function () {return resolve(__webpack_require__(/*! @/components/enter-cart/enter-cart.vue */ 178));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var footTab = function footTab() {__webpack_require__.e(/*! require.ensure | components/foot-tab/foot-tab */ "components/foot-tab/foot-tab").then((function () {return resolve(__webpack_require__(/*! @/components/foot-tab/foot-tab.vue */ 185));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
|
||||||
var _default = {
|
var _default = {
|
||||||
components: {
|
components: {
|
||||||
statusNav: statusNav,
|
statusNav: statusNav,
|
||||||
|
@ -232,10 +232,12 @@ var _default = {
|
||||||
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
_this.getUserInfo();
|
_this.getUserInfo();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow: function onShow() {
|
onShow: function onShow() {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<view class="pad-b150"><status-nav vue-id="c7684662-1" ifReturn="{{false}}" navBarTitle="分类" marginBottom="{{0}}" bind:__l="__l"></status-nav><view data-event-opts="{{[['tap',[['closeMore',['$event']]]]]}}" hidden="{{!(isShow)}}" class="pull-all-bg" bindtap="__e"></view><block wx:if="{{businessId==0}}"><view class="company-top"></view></block><block wx:if="{{businessId==0}}"><view class="company" style="{{'top:'+(topHieght+'px')+';'}}"><input type="text" data-event-opts="{{[['tap',[['openMore',['$event']]]]]}}" value="{{companyList[companyIndex].name?'工厂选择:'+companyList[companyIndex].name:''}}" bindtap="__e"/><block wx:if="{{isShow}}"><view class="company-list"><block wx:for="{{companyList}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['checkValue',[index,'$0'],[[['companyList','',index,'id']]]]]]]}}" class="{{['company-item',companyIndex==index?'cur':'']}}" bindtap="__e">{{item.name}}</view></block></view></block></view></block><view class="{{['cate-nav-bg',businessId==0?'':'to-top']}}" style="{{'height:'+(scrollHeight+'px')+';'+('top:'+(topHieght+'px')+';')}}"><view class="cate-nav"><block wx:for="{{cateList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeCate',[index,'$0'],[[['cateList','',index,'id']]]]]]]}}" class="{{['cate-nav-item',cateIndex==index?'active':'']}}" bindtap="__e">{{item.title}}</view></block></view></view><scroll-view class="{{['shop-list-bg',businessId==0?'':'to-top']}}"><view class="shop-list flex"><block wx:for="{{secondList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toShop',['$0'],[[['secondList','',index,'id']]]]]]]}}" class="shop-item" bindtap="__e"><view class="img flex"><image src="{{item.cover}}" mode="widthFix"></image></view><view class="txt clips1">{{item.title}}</view></view></block></view><block wx:if="{{isTips}}"><view class="tips">---没有更多分类---</view></block></scroll-view><enter-cart vue-id="c7684662-2" bind:__l="__l"></enter-cart><foot-tab vue-id="c7684662-3" current="1" bind:__l="__l"></foot-tab></view>
|
<view class="pad-b150"><status-nav vue-id="c7684662-1" ifReturn="{{false}}" navBarTitle="分类" marginBottom="{{0}}" bind:__l="__l"></status-nav><view data-event-opts="{{[['tap',[['closeMore',['$event']]]]]}}" hidden="{{!(isShow)}}" class="pull-all-bg" bindtap="__e"></view><block wx:if="{{businessId==0}}"><view class="company-top"></view></block><block wx:if="{{businessId==0}}"><view class="company" style="{{'top:'+(topHieght+'px')+';'}}"><input type="text" data-event-opts="{{[['tap',[['openMore',['$event']]]]]}}" value="{{companyList[companyIndex].name?'工厂选择:'+companyList[companyIndex].name:''}}" bindtap="__e"/><block wx:if="{{isShow}}"><view class="company-list"><block wx:for="{{companyList}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['checkValue',[index,'$0'],[[['companyList','',index,'id']]]]]]]}}" class="{{['company-item',companyIndex==index?'cur':'']}}" bindtap="__e">{{item.name}}</view></block></view></block></view></block><view class="{{['cate-nav-bg',businessId==0?'':'to-top']}}" style="{{'height:'+(scrollHeight+'px')+';'+('top:'+(topHieght+'px')+';')}}"><view class="cate-nav"><block wx:for="{{cateList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeCate',[index,'$0'],[[['cateList','',index,'id']]]]]]]}}" class="{{['cate-nav-item',cateIndex==index?'active':'']}}" bindtap="__e">{{item.title}}</view></block></view></view><scroll-view class="{{['shop-list-bg',businessId==0?'':'to-top']}}"><view class="shop-list flex"><block wx:for="{{secondList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toShop',['$0'],[[['secondList','',index,'id']]]]]]]}}" class="shop-item" bindtap="__e"><view class="img flex"><image src="{{item.cover}}" mode="widthFix"></image></view><view class="txt clips1">{{item.title}}</view></view></block></view><block wx:if="{{secondList.length==0&&isTips}}"><view class="tips">---没有更多分类---</view></block></scroll-view><enter-cart vue-id="c7684662-2" bind:__l="__l"></enter-cart><foot-tab vue-id="c7684662-3" current="1" bind:__l="__l"></foot-tab></view>
|
|
@ -105,10 +105,10 @@ try {
|
||||||
return __webpack_require__.e(/*! import() | components/pull-list/pull-list */ "components/pull-list/pull-list").then(__webpack_require__.bind(null, /*! @/components/pull-list/pull-list.vue */ 171))
|
return __webpack_require__.e(/*! import() | components/pull-list/pull-list */ "components/pull-list/pull-list").then(__webpack_require__.bind(null, /*! @/components/pull-list/pull-list.vue */ 171))
|
||||||
},
|
},
|
||||||
enterCart: function() {
|
enterCart: function() {
|
||||||
return Promise.all(/*! import() | components/enter-cart/enter-cart */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/enter-cart/enter-cart")]).then(__webpack_require__.bind(null, /*! @/components/enter-cart/enter-cart.vue */ 178))
|
return __webpack_require__.e(/*! import() | components/enter-cart/enter-cart */ "components/enter-cart/enter-cart").then(__webpack_require__.bind(null, /*! @/components/enter-cart/enter-cart.vue */ 178))
|
||||||
},
|
},
|
||||||
footTab: function() {
|
footTab: function() {
|
||||||
return Promise.all(/*! import() | components/foot-tab/foot-tab */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/foot-tab/foot-tab")]).then(__webpack_require__.bind(null, /*! @/components/foot-tab/foot-tab.vue */ 185))
|
return __webpack_require__.e(/*! import() | components/foot-tab/foot-tab */ "components/foot-tab/foot-tab").then(__webpack_require__.bind(null, /*! @/components/foot-tab/foot-tab.vue */ 185))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -225,7 +225,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
|
|
||||||
|
|
||||||
var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);
|
var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);
|
||||||
var _vuex = __webpack_require__(/*! vuex */ 12);function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var swiperPu = function swiperPu() {__webpack_require__.e(/*! require.ensure | components/swipers/swiper-pu */ "components/swipers/swiper-pu").then((function () {return resolve(__webpack_require__(/*! @/components/swipers/swiper-pu */ 199));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var enterCart = function enterCart() {Promise.all(/*! require.ensure | components/enter-cart/enter-cart */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/enter-cart/enter-cart")]).then((function () {return resolve(__webpack_require__(/*! @/components/enter-cart/enter-cart.vue */ 178));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var footTab = function footTab() {Promise.all(/*! require.ensure | components/foot-tab/foot-tab */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/foot-tab/foot-tab")]).then((function () {return resolve(__webpack_require__(/*! @/components/foot-tab/foot-tab.vue */ 185));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var productList = function productList() {__webpack_require__.e(/*! require.ensure | components/product-list/product-list */ "components/product-list/product-list").then((function () {return resolve(__webpack_require__(/*! @/components/product-list/product-list.vue */ 157));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var navTab = function navTab() {__webpack_require__.e(/*! require.ensure | components/nav-tab/nav-tab */ "components/nav-tab/nav-tab").then((function () {return resolve(__webpack_require__(/*! @/components/nav-tab/nav-tab.vue */ 164));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var pullList = function pullList() {__webpack_require__.e(/*! require.ensure | components/pull-list/pull-list */ "components/pull-list/pull-list").then((function () {return resolve(__webpack_require__(/*! @/components/pull-list/pull-list.vue */ 171));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
|
var _vuex = __webpack_require__(/*! vuex */ 12);function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var swiperPu = function swiperPu() {__webpack_require__.e(/*! require.ensure | components/swipers/swiper-pu */ "components/swipers/swiper-pu").then((function () {return resolve(__webpack_require__(/*! @/components/swipers/swiper-pu */ 199));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var enterCart = function enterCart() {__webpack_require__.e(/*! require.ensure | components/enter-cart/enter-cart */ "components/enter-cart/enter-cart").then((function () {return resolve(__webpack_require__(/*! @/components/enter-cart/enter-cart.vue */ 178));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var footTab = function footTab() {__webpack_require__.e(/*! require.ensure | components/foot-tab/foot-tab */ "components/foot-tab/foot-tab").then((function () {return resolve(__webpack_require__(/*! @/components/foot-tab/foot-tab.vue */ 185));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var productList = function productList() {__webpack_require__.e(/*! require.ensure | components/product-list/product-list */ "components/product-list/product-list").then((function () {return resolve(__webpack_require__(/*! @/components/product-list/product-list.vue */ 157));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var navTab = function navTab() {__webpack_require__.e(/*! require.ensure | components/nav-tab/nav-tab */ "components/nav-tab/nav-tab").then((function () {return resolve(__webpack_require__(/*! @/components/nav-tab/nav-tab.vue */ 164));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var pullList = function pullList() {__webpack_require__.e(/*! require.ensure | components/pull-list/pull-list */ "components/pull-list/pull-list").then((function () {return resolve(__webpack_require__(/*! @/components/pull-list/pull-list.vue */ 171));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
|
||||||
var _default = {
|
var _default = {
|
||||||
components: {
|
components: {
|
||||||
statusNav: statusNav,
|
statusNav: statusNav,
|
||||||
|
@ -268,11 +268,13 @@ var _default = {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
_this.getHomeData();
|
_this.getHomeData();
|
||||||
_this.getArticleNav();
|
_this.getArticleNav();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.getHomeData();
|
this.getHomeData();
|
||||||
this.getArticleNav();
|
this.getArticleNav();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow: function onShow() {var _this2 = this;
|
onShow: function onShow() {var _this2 = this;
|
||||||
|
|
|
@ -96,7 +96,7 @@ var components
|
||||||
try {
|
try {
|
||||||
components = {
|
components = {
|
||||||
enterCart: function() {
|
enterCart: function() {
|
||||||
return Promise.all(/*! import() | components/enter-cart/enter-cart */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/enter-cart/enter-cart")]).then(__webpack_require__.bind(null, /*! @/components/enter-cart/enter-cart.vue */ 178))
|
return __webpack_require__.e(/*! import() | components/enter-cart/enter-cart */ "components/enter-cart/enter-cart").then(__webpack_require__.bind(null, /*! @/components/enter-cart/enter-cart.vue */ 178))
|
||||||
},
|
},
|
||||||
customerService: function() {
|
customerService: function() {
|
||||||
return __webpack_require__.e(/*! import() | components/customer-service/customer-service */ "components/customer-service/customer-service").then(__webpack_require__.bind(null, /*! @/components/customer-service/customer-service.vue */ 206))
|
return __webpack_require__.e(/*! import() | components/customer-service/customer-service */ "components/customer-service/customer-service").then(__webpack_require__.bind(null, /*! @/components/customer-service/customer-service.vue */ 206))
|
||||||
|
@ -123,6 +123,19 @@ var render = function() {
|
||||||
var _vm = this
|
var _vm = this
|
||||||
var _h = _vm.$createElement
|
var _h = _vm.$createElement
|
||||||
var _c = _vm._self._c || _h
|
var _c = _vm._self._c || _h
|
||||||
|
var g0 = _vm.$toolAll.tools.changeNum(parseInt(_vm.kitDetail.original_price))
|
||||||
|
var g1 = _vm.vipPrice
|
||||||
|
? _vm.$toolAll.tools.changeNum(parseInt(_vm.kitDetail.price))
|
||||||
|
: null
|
||||||
|
_vm.$mp.data = Object.assign(
|
||||||
|
{},
|
||||||
|
{
|
||||||
|
$root: {
|
||||||
|
g0: g0,
|
||||||
|
g1: g1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
var recyclableRender = false
|
var recyclableRender = false
|
||||||
var staticRenderFns = []
|
var staticRenderFns = []
|
||||||
|
@ -212,10 +225,11 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);
|
var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);
|
||||||
var _vuex = __webpack_require__(/*! vuex */ 12);function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var enterCart = function enterCart() {Promise.all(/*! require.ensure | components/enter-cart/enter-cart */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/enter-cart/enter-cart")]).then((function () {return resolve(__webpack_require__(/*! @/components/enter-cart/enter-cart.vue */ 178));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var customerService = function customerService() {__webpack_require__.e(/*! require.ensure | components/customer-service/customer-service */ "components/customer-service/customer-service").then((function () {return resolve(__webpack_require__(/*! @/components/customer-service/customer-service.vue */ 206));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var swiperPu = function swiperPu() {__webpack_require__.e(/*! require.ensure | components/swipers/swiper-pu */ "components/swipers/swiper-pu").then((function () {return resolve(__webpack_require__(/*! @/components/swipers/swiper-pu */ 199));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
|
var _vuex = __webpack_require__(/*! vuex */ 12);function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var enterCart = function enterCart() {__webpack_require__.e(/*! require.ensure | components/enter-cart/enter-cart */ "components/enter-cart/enter-cart").then((function () {return resolve(__webpack_require__(/*! @/components/enter-cart/enter-cart.vue */ 178));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var customerService = function customerService() {__webpack_require__.e(/*! require.ensure | components/customer-service/customer-service */ "components/customer-service/customer-service").then((function () {return resolve(__webpack_require__(/*! @/components/customer-service/customer-service.vue */ 206));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var swiperPu = function swiperPu() {__webpack_require__.e(/*! require.ensure | components/swipers/swiper-pu */ "components/swipers/swiper-pu").then((function () {return resolve(__webpack_require__(/*! @/components/swipers/swiper-pu */ 199));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
|
||||||
var _default = {
|
var _default = {
|
||||||
components: {
|
components: {
|
||||||
statusNav: statusNav,
|
statusNav: statusNav,
|
||||||
|
@ -234,7 +248,8 @@ var _default = {
|
||||||
kitIndex: 0, //规格选中位置
|
kitIndex: 0, //规格选中位置
|
||||||
kitBanner: [], //套件轮播
|
kitBanner: [], //套件轮播
|
||||||
action: 'collect', //收藏类型
|
action: 'collect', //收藏类型
|
||||||
id: '' //套件id
|
id: '', //套件id
|
||||||
|
vipPrice: false // 是否显示会员价
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: _objectSpread({},
|
computed: _objectSpread({},
|
||||||
|
@ -249,16 +264,20 @@ var _default = {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
_this.id = op.id;
|
_this.id = op.id;
|
||||||
_this.getKitDetail(_this.id);
|
_this.getKitDetail(_this.id);
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.id = op.id;
|
this.id = op.id;
|
||||||
this.getKitDetail(this.id);
|
this.getKitDetail(this.id);
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow: function onShow() {
|
onShow: function onShow() {
|
||||||
|
if (uni.getStorageSync('showVip') == 'true') {
|
||||||
|
this.vipPrice = true;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 分享到微信
|
// 分享到微信
|
||||||
onShareAppMessage: function onShareAppMessage(res) {
|
onShareAppMessage: function onShareAppMessage(res) {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<view class="pad-b140"><status-nav vue-id="6c2aabf4-1" ifReturn="{{true}}" navBarTitle="套件简介" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="shop-img"><swiper-pu vue-id="6c2aabf4-2" newRadius="0" bannerList="{{kitBanner}}" newHeight="505rpx" newBottom="35rpx" isplay="{{isplay}}" bind:__l="__l"></swiper-pu></view><view class="shop-summary kit-summary"><view class="shop-title">{{kitDetail.name}}</view><view class="shop-txt flex"><view class="left"><view class="kit-compose">{{kitDetail.subtitle}}</view><view class="shop-customized">{{kitDetail.customized==1?'可定制':'不可定制'}}</view><view class="shop-pric">{{"¥"+kitDetail.price}}</view></view><view class="right flex"><view data-event-opts="{{[['tap',[['collectionEv',['$0'],['kitDetail.id']]]]]}}" class="{{['collection-btn','flex',kitDetail.is_collected==1?'active':'']}}" bindtap="__e"><image src="/static/public/icon-collection.png" mode="widthFix"></image><text>收藏</text></view><view class="share-btn flex"><image src="/static/public/icon-share.png" mode="widthFix"></image><text>分享</text><button plain="true" data-name="shareBtn" open-type="share"></button></view></view></view></view><view class="kit-contain"><view class="contain-h2">套件包含</view><view class="contain-list flex"><block wx:for="{{kitDetail.series}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['kitDetail.series','',index,'id']]]]]]]}}" class="contain-item" bindtap="__e"><view class="contain-img"><image src="{{item.cover}}" mode="widthFix"></image></view><view class="contain-title clips2">{{item.name}}</view></view></block></view></view><view class="shop-btns flex"><view data-event-opts="{{[['tap',[['joinCart',['$0'],['specsIndex']]]]]}}" class="btn" bindtap="__e">加入购物车</view><view data-event-opts="{{[['tap',[['buyNow',['$0'],['specsIndex']]]]]}}" class="btn" bindtap="__e">立即购买</view></view><enter-cart vue-id="6c2aabf4-3" bottom="{{335}}" bind:__l="__l"></enter-cart><customer-service vue-id="6c2aabf4-4" bind:__l="__l"></customer-service></view>
|
<view class="pad-b140"><status-nav vue-id="6c2aabf4-1" ifReturn="{{true}}" navBarTitle="套件简介" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="shop-img"><swiper-pu vue-id="6c2aabf4-2" newRadius="0" bannerList="{{kitBanner}}" newHeight="505rpx" newBottom="35rpx" isplay="{{isplay}}" bind:__l="__l"></swiper-pu></view><view class="shop-summary kit-summary"><view class="shop-title">{{kitDetail.name}}</view><view class="shop-txt flex"><view class="left"><view class="kit-compose">{{kitDetail.subtitle}}</view><view class="shop-customized">{{kitDetail.customized==1?'可定制':'不可定制'}}</view><view class="shop-pric">{{"¥"+$root.g0}}</view><block wx:if="{{vipPrice}}"><view class="shop-pric-vip"><text>会员价:</text>{{"¥"+$root.g1}}</view></block></view><view class="right flex"><view data-event-opts="{{[['tap',[['collectionEv',['$0'],['kitDetail.id']]]]]}}" class="{{['collection-btn','flex',kitDetail.is_collected==1?'active':'']}}" bindtap="__e"><image src="/static/public/icon-collection.png" mode="widthFix"></image><text>{{kitDetail.is_collected==1?'已收藏':'收藏'}}</text></view><view class="share-btn flex"><image src="/static/public/icon-share.png" mode="widthFix"></image><text>分享</text><button plain="true" data-name="shareBtn" open-type="share"></button></view></view></view></view><view class="kit-contain"><view class="contain-h2">套件包含</view><view class="contain-list flex"><block wx:for="{{kitDetail.series}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['kitDetail.series','',index,'id']]]]]]]}}" class="contain-item" bindtap="__e"><view class="contain-img"><image src="{{item.cover}}" mode="widthFix"></image></view><view class="contain-title clips2">{{item.name}}</view></view></block></view></view><view class="shop-btns flex"><view data-event-opts="{{[['tap',[['joinCart',['$0'],['specsIndex']]]]]}}" class="btn" bindtap="__e">加入购物车</view><view data-event-opts="{{[['tap',[['buyNow',['$0'],['specsIndex']]]]]}}" class="btn" bindtap="__e">立即购买</view></view><enter-cart vue-id="6c2aabf4-3" bottom="{{335}}" bind:__l="__l"></enter-cart><customer-service vue-id="6c2aabf4-4" bind:__l="__l"></customer-service></view>
|
|
@ -96,10 +96,10 @@ var components
|
||||||
try {
|
try {
|
||||||
components = {
|
components = {
|
||||||
enterCart: function() {
|
enterCart: function() {
|
||||||
return Promise.all(/*! import() | components/enter-cart/enter-cart */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/enter-cart/enter-cart")]).then(__webpack_require__.bind(null, /*! @/components/enter-cart/enter-cart.vue */ 178))
|
return __webpack_require__.e(/*! import() | components/enter-cart/enter-cart */ "components/enter-cart/enter-cart").then(__webpack_require__.bind(null, /*! @/components/enter-cart/enter-cart.vue */ 178))
|
||||||
},
|
},
|
||||||
footTab: function() {
|
footTab: function() {
|
||||||
return Promise.all(/*! import() | components/foot-tab/foot-tab */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/foot-tab/foot-tab")]).then(__webpack_require__.bind(null, /*! @/components/foot-tab/foot-tab.vue */ 185))
|
return __webpack_require__.e(/*! import() | components/foot-tab/foot-tab */ "components/foot-tab/foot-tab").then(__webpack_require__.bind(null, /*! @/components/foot-tab/foot-tab.vue */ 185))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -197,7 +197,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
|
|
||||||
|
|
||||||
var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);
|
var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);
|
||||||
var _vuex = __webpack_require__(/*! vuex */ 12);function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var enterCart = function enterCart() {Promise.all(/*! require.ensure | components/enter-cart/enter-cart */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/enter-cart/enter-cart")]).then((function () {return resolve(__webpack_require__(/*! @/components/enter-cart/enter-cart.vue */ 178));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var footTab = function footTab() {Promise.all(/*! require.ensure | components/foot-tab/foot-tab */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/foot-tab/foot-tab")]).then((function () {return resolve(__webpack_require__(/*! @/components/foot-tab/foot-tab.vue */ 185));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
|
var _vuex = __webpack_require__(/*! vuex */ 12);function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var enterCart = function enterCart() {__webpack_require__.e(/*! require.ensure | components/enter-cart/enter-cart */ "components/enter-cart/enter-cart").then((function () {return resolve(__webpack_require__(/*! @/components/enter-cart/enter-cart.vue */ 178));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var footTab = function footTab() {__webpack_require__.e(/*! require.ensure | components/foot-tab/foot-tab */ "components/foot-tab/foot-tab").then((function () {return resolve(__webpack_require__(/*! @/components/foot-tab/foot-tab.vue */ 185));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
|
||||||
var _default = {
|
var _default = {
|
||||||
components: {
|
components: {
|
||||||
statusNav: statusNav,
|
statusNav: statusNav,
|
||||||
|
@ -227,10 +227,12 @@ var _default = {
|
||||||
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
_this.getKitEv();
|
_this.getKitEv();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.getKitEv();
|
this.getKitEv();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReachBottom: function onReachBottom(e) {
|
onReachBottom: function onReachBottom(e) {
|
||||||
|
@ -277,7 +279,7 @@ var _default = {
|
||||||
|
|
||||||
newArr.push(obj);
|
newArr.push(obj);
|
||||||
});
|
});
|
||||||
_this2.kitList = newArr;
|
_this2.kitList = _this2.kitList.concat(newArr);
|
||||||
if (_this2.kitList.length == _this2.total) {
|
if (_this2.kitList.length == _this2.total) {
|
||||||
_this2.totalAll = _this2.total;
|
_this2.totalAll = _this2.total;
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,10 +96,10 @@ var components
|
||||||
try {
|
try {
|
||||||
components = {
|
components = {
|
||||||
enterCart: function() {
|
enterCart: function() {
|
||||||
return Promise.all(/*! import() | components/enter-cart/enter-cart */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/enter-cart/enter-cart")]).then(__webpack_require__.bind(null, /*! @/components/enter-cart/enter-cart.vue */ 178))
|
return __webpack_require__.e(/*! import() | components/enter-cart/enter-cart */ "components/enter-cart/enter-cart").then(__webpack_require__.bind(null, /*! @/components/enter-cart/enter-cart.vue */ 178))
|
||||||
},
|
},
|
||||||
footTab: function() {
|
footTab: function() {
|
||||||
return Promise.all(/*! import() | components/foot-tab/foot-tab */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/foot-tab/foot-tab")]).then(__webpack_require__.bind(null, /*! @/components/foot-tab/foot-tab.vue */ 185))
|
return __webpack_require__.e(/*! import() | components/foot-tab/foot-tab */ "components/foot-tab/foot-tab").then(__webpack_require__.bind(null, /*! @/components/foot-tab/foot-tab.vue */ 185))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -156,7 +156,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var enterCart = function enterCart() {Promise.all(/*! require.ensure | components/enter-cart/enter-cart */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/enter-cart/enter-cart")]).then((function () {return resolve(__webpack_require__(/*! @/components/enter-cart/enter-cart.vue */ 178));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var footTab = function footTab() {Promise.all(/*! require.ensure | components/foot-tab/foot-tab */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/foot-tab/foot-tab")]).then((function () {return resolve(__webpack_require__(/*! @/components/foot-tab/foot-tab.vue */ 185));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
|
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -262,7 +262,9 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);
|
||||||
|
var _vuex = __webpack_require__(/*! vuex */ 12);var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var enterCart = function enterCart() {__webpack_require__.e(/*! require.ensure | components/enter-cart/enter-cart */ "components/enter-cart/enter-cart").then((function () {return resolve(__webpack_require__(/*! @/components/enter-cart/enter-cart.vue */ 178));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var footTab = function footTab() {__webpack_require__.e(/*! require.ensure | components/foot-tab/foot-tab */ "components/foot-tab/foot-tab").then((function () {return resolve(__webpack_require__(/*! @/components/foot-tab/foot-tab.vue */ 185));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
|
||||||
|
var _default = {
|
||||||
components: {
|
components: {
|
||||||
statusNav: statusNav,
|
statusNav: statusNav,
|
||||||
enterCart: enterCart,
|
enterCart: enterCart,
|
||||||
|
@ -291,7 +293,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
{ titele: '是否显示会员价', imgSrc: '/static/public/icon-my-07.png', iconWidth: 39, iconHeight: 26 },
|
{ titele: '是否显示会员价', imgSrc: '/static/public/icon-my-07.png', iconWidth: 39, iconHeight: 26 },
|
||||||
{ titele: '商家客服', imgSrc: '/static/public/icon-my-08.png', iconWidth: 35, iconHeight: 37 }],
|
{ titele: '商家客服', imgSrc: '/static/public/icon-my-08.png', iconWidth: 35, iconHeight: 37 }],
|
||||||
//列表数据
|
//列表数据
|
||||||
isShow: true, //是否显示会员价
|
showVip: 'true', //是否显示会员价
|
||||||
isCustomer: false, //商家客服
|
isCustomer: false, //商家客服
|
||||||
isVip: false, //会员申请弹窗
|
isVip: false, //会员申请弹窗
|
||||||
myName: '', //姓名
|
myName: '', //姓名
|
||||||
|
@ -315,15 +317,21 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
_this.getUserInfo();
|
_this.getUserInfo();
|
||||||
_this.getCustomer();
|
_this.getCustomer();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
this.getCustomer();
|
this.getCustomer();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow: function onShow() {
|
onShow: function onShow() {
|
||||||
|
if (uni.getStorageSync('showVip')) {
|
||||||
|
this.showVip = uni.getStorageSync('showVip');
|
||||||
|
} else {
|
||||||
|
uni.setStorageSync('showVip', 'true');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取用户信息
|
// 获取用户信息
|
||||||
|
@ -356,8 +364,19 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 是否显示会员价
|
// 是否显示会员价
|
||||||
changeShow: function changeShow() {
|
changeShowVip: function changeShowVip() {var _this4 = this;
|
||||||
this.isShow = !this.isShow;
|
if (this.showVip == 'true') {
|
||||||
|
this.showVip = 'false';
|
||||||
|
} else {
|
||||||
|
this.showVip = 'true';
|
||||||
|
}
|
||||||
|
setTimeout(function () {
|
||||||
|
if (_this4.showVip == 'true') {
|
||||||
|
uni.setStorageSync('showVip', 'true');
|
||||||
|
} else {
|
||||||
|
uni.setStorageSync('showVip', 'false');
|
||||||
|
}
|
||||||
|
}, 200);
|
||||||
},
|
},
|
||||||
// 跳转方式
|
// 跳转方式
|
||||||
toMore: function toMore(index) {
|
toMore: function toMore(index) {
|
||||||
|
@ -396,7 +415,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 提交会员申请
|
// 提交会员申请
|
||||||
submitEv: function submitEv() {var _this4 = this;
|
submitEv: function submitEv() {var _this5 = this;
|
||||||
if (this.checkEmpty() && this.flag) {
|
if (this.checkEmpty() && this.flag) {
|
||||||
this.flag = false;
|
this.flag = false;
|
||||||
var params = {
|
var params = {
|
||||||
|
@ -407,11 +426,11 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
|
|
||||||
this.$requst.post('/api/user/vip', params).then(function (res) {
|
this.$requst.post('/api/user/vip', params).then(function (res) {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
_this4.closeEv(); //关闭会员申请
|
_this5.closeEv(); //关闭会员申请
|
||||||
_this4.getUserInfo(); // 刷新信息
|
_this5.getUserInfo(); // 刷新信息
|
||||||
} else {
|
} else {
|
||||||
_this4.$toolAll.tools.showToast(res.msg);
|
_this5.$toolAll.tools.showToast(res.msg);
|
||||||
_this4.flag = true;
|
_this5.flag = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -441,14 +460,14 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
},
|
},
|
||||||
|
|
||||||
// 验证会员码
|
// 验证会员码
|
||||||
checkCode: function checkCode() {var _this5 = this;
|
checkCode: function checkCode() {var _this6 = this;
|
||||||
if (this.vipCode !== '') {
|
if (this.vipCode !== '') {
|
||||||
this.$requst.post('/api/user/check-code', { code: this.vipCode }).then(function (res) {
|
this.$requst.post('/api/user/check-code', { code: this.vipCode }).then(function (res) {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
_this5.$toolAll.tools.showToast('验证成功');
|
_this6.$toolAll.tools.showToast('验证成功');
|
||||||
_this5.closeCheck(); //清除验证信息
|
_this6.closeCheck(); //清除验证信息
|
||||||
} else {
|
} else {
|
||||||
_this5.$toolAll.tools.showToast(res.msg);
|
_this6.$toolAll.tools.showToast(res.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<view class="pad-b150"><status-nav vue-id="6ed9f9ef-1" ifReturn="{{false}}" navBarTitle="我的" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="my-herder"><view class="my-portrait"><view class="my-portrait-img"><image src="{{headPortrait}}" mode="widthFix"></image></view><view class="my-vip flex"><image src="/static/public/icon-vip.png" mode="widthFix"></image></view></view><view class="my-nick-name">{{nickName}}</view><view class="my-order flex"><block wx:for="{{myOrder}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeOrder',[index]]]]]}}" class="item" bindtap="__e"><block wx:if="{{item.num<100}}"><text>{{item.num}}</text></block><block wx:if="{{item.num>=100}}"><text>99+</text></block><view>{{item.title}}</view></view></block></view></view><view class="my-content"><block wx:for="{{listData}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toMore',[index]]]]]}}" class="item flex" catchtap="__e"><view class="left flex"><view class="flex"><view class="img flex"><image style="{{'width:'+(item.iconWidth+'rpx')+';'+('height:'+(item.iconHeight+'rpx')+';')}}" src="{{item.imgSrc}}" mode="widthFix"></image></view><view class="title">{{item.titele}}</view></view><block wx:if="{{index==1}}"><view class="tips">输入会员码成为会员</view></block><block wx:if="{{index==2}}"><view class="tips">申请成为会员可查看低价</view></block></view><view class="right"><block wx:if="{{index!==6}}"><view class="more"><image src="/static/public/icon-my-more.png" mode="widthFix"></image></view></block><block wx:if="{{index==6}}"><view data-event-opts="{{[['tap',[['changeShow',['$event']]]]]}}" class="{{['btn','flex',isShow?'show':'']}}" catchtap="__e"><view class="circular"></view></view></block></view></view></block></view><block wx:if="{{isCustomer}}"><view data-event-opts="{{[['tap',[['closeCustomer',['$event']]]]]}}" class="customer-all-bg" style="{{'padding-top:'+(newTop+'px')+';'}}" catchtap="__e"><view class="customer-txt"><image src="{{customerSrc}}" mode="widthFix"></image><text>请保存相册扫码添加客服</text><view data-event-opts="{{[['tap',[['saveImg',['$event']]]]]}}" class="btn" catchtap="__e">保存二维码</view></view></view></block><view hidden="{{!(isVip||isChecked)}}" class="pull-all-bg"></view><block wx:if="{{isVip}}"><view class="vip-box-bg"><view class="vip-box"><view class="title">会员申请</view><view class="vip-list"><view class="vip-item"><view class="tips">姓名<text>*</text></view><input class="input" type="text" placeholder="请输入姓名" placeholder-color="#c9c9c9" data-event-opts="{{[['input',[['__set_model',['','myName','$event',[]]]]]]}}" value="{{myName}}" bindinput="__e"/></view><view class="vip-item"><view class="tips">电话<text>*</text></view><input class="input" type="number" placeholder="请输入电话" placeholder-color="#c9c9c9" data-event-opts="{{[['input',[['__set_model',['','myPhone','$event',[]]]]]]}}" value="{{myPhone}}" bindinput="__e"/></view><view class="vip-item"><view class="tips">邀请人姓名</view><input class="input" type="text" placeholder="请输入邀请人姓名" placeholder-color="#c9c9c9" data-event-opts="{{[['input',[['__set_model',['','inviteeName','$event',[]]]]]]}}" value="{{inviteeName}}" bindinput="__e"/></view><view class="vip-item"><view class="tips">邀请人会员码</view><input class="input" type="text" placeholder="请输入邀请人会员码" placeholder-color="#c9c9c9" data-event-opts="{{[['input',[['__set_model',['','inviteeCode','$event',[]]]]]]}}" value="{{inviteeCode}}" bindinput="__e"/></view></view><view class="vip-btns"><view data-event-opts="{{[['tap',[['closeEv',['$event']]]]]}}" class="btn" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['submitEv',['$event']]]]]}}" class="btn" bindtap="__e">提交</view></view></view></view></block><block wx:if="{{isChecked}}"><view class="edit-box-bg"><view class="edit-box"><view class="title">验证会员码</view><view class="subtitle">会员码<text>*</text></view><input class="input" type="text" placeholder="请输入会员码" placeholder-color="#c9c9c9" data-event-opts="{{[['input',[['__set_model',['','vipCode','$event',[]]]]]]}}" value="{{vipCode}}" bindinput="__e"/><view class="edit-btns"><view data-event-opts="{{[['tap',[['closeCheck',['$event']]]]]}}" class="btn" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['checkCode',['$event']]]]]}}" class="btn" bindtap="__e">确认</view></view></view></view></block><enter-cart vue-id="6ed9f9ef-2" bottom="{{150}}" bind:__l="__l"></enter-cart><foot-tab vue-id="6ed9f9ef-3" current="4" bind:__l="__l"></foot-tab></view>
|
<view class="pad-b150"><status-nav vue-id="6ed9f9ef-1" ifReturn="{{false}}" navBarTitle="我的" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="my-herder"><view class="my-portrait"><view class="my-portrait-img"><image src="{{headPortrait}}" mode="widthFix"></image></view><block wx:if="{{businessCode!==''}}"><view class="my-vip flex"><image src="/static/public/icon-vip.png" mode="widthFix"></image></view></block></view><view class="my-nick-name">{{nickName}}</view><view class="my-order flex"><block wx:for="{{myOrder}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeOrder',[index]]]]]}}" class="item" bindtap="__e"><block wx:if="{{item.num<100}}"><text>{{item.num}}</text></block><block wx:if="{{item.num>=100}}"><text>99+</text></block><view>{{item.title}}</view></view></block></view></view><view class="my-content"><block wx:for="{{listData}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toMore',[index]]]]]}}" class="item flex" catchtap="__e"><view class="left flex"><view class="flex"><view class="img flex"><image style="{{'width:'+(item.iconWidth+'rpx')+';'+('height:'+(item.iconHeight+'rpx')+';')}}" src="{{item.imgSrc}}" mode="widthFix"></image></view><view class="title">{{item.titele}}</view></view><block wx:if="{{index==1}}"><view class="tips">输入会员码成为会员</view></block><block wx:if="{{index==2}}"><view class="tips">申请成为会员可查看低价</view></block></view><view class="right"><block wx:if="{{index!==6}}"><view class="more"><image src="/static/public/icon-my-more.png" mode="widthFix"></image></view></block><block wx:if="{{index==6}}"><view data-event-opts="{{[['tap',[['changeShowVip',['$event']]]]]}}" class="{{['btn','flex',showVip=='true'?'show':'']}}" catchtap="__e"><view class="circular"></view></view></block></view></view></block></view><block wx:if="{{isCustomer}}"><view data-event-opts="{{[['tap',[['closeCustomer',['$event']]]]]}}" class="customer-all-bg" style="{{'padding-top:'+(newTop+'px')+';'}}" catchtap="__e"><view class="customer-txt"><image src="{{customerSrc}}" mode="widthFix"></image><text>请保存相册扫码添加客服</text><view data-event-opts="{{[['tap',[['saveImg',['$event']]]]]}}" class="btn" catchtap="__e">保存二维码</view></view></view></block><view hidden="{{!(isVip||isChecked)}}" class="pull-all-bg"></view><block wx:if="{{isVip}}"><view class="vip-box-bg"><view class="vip-box"><view class="title">会员申请</view><view class="vip-list"><view class="vip-item"><view class="tips">姓名<text>*</text></view><input class="input" type="text" placeholder="请输入姓名" placeholder-color="#c9c9c9" data-event-opts="{{[['input',[['__set_model',['','myName','$event',[]]]]]]}}" value="{{myName}}" bindinput="__e"/></view><view class="vip-item"><view class="tips">电话<text>*</text></view><input class="input" type="number" placeholder="请输入电话" placeholder-color="#c9c9c9" data-event-opts="{{[['input',[['__set_model',['','myPhone','$event',[]]]]]]}}" value="{{myPhone}}" bindinput="__e"/></view><view class="vip-item"><view class="tips">邀请人姓名</view><input class="input" type="text" placeholder="请输入邀请人姓名" placeholder-color="#c9c9c9" data-event-opts="{{[['input',[['__set_model',['','inviteeName','$event',[]]]]]]}}" value="{{inviteeName}}" bindinput="__e"/></view><view class="vip-item"><view class="tips">邀请人会员码</view><input class="input" type="text" placeholder="请输入邀请人会员码" placeholder-color="#c9c9c9" data-event-opts="{{[['input',[['__set_model',['','inviteeCode','$event',[]]]]]]}}" value="{{inviteeCode}}" bindinput="__e"/></view></view><view class="vip-btns"><view data-event-opts="{{[['tap',[['closeEv',['$event']]]]]}}" class="btn" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['submitEv',['$event']]]]]}}" class="btn" bindtap="__e">提交</view></view></view></view></block><block wx:if="{{isChecked}}"><view class="edit-box-bg"><view class="edit-box"><view class="title">验证会员码</view><view class="subtitle">会员码<text>*</text></view><input class="input" type="text" placeholder="请输入会员码" placeholder-color="#c9c9c9" data-event-opts="{{[['input',[['__set_model',['','vipCode','$event',[]]]]]]}}" value="{{vipCode}}" bindinput="__e"/><view class="edit-btns"><view data-event-opts="{{[['tap',[['closeCheck',['$event']]]]]}}" class="btn" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['checkCode',['$event']]]]]}}" class="btn" bindtap="__e">确认</view></view></view></view></block><enter-cart vue-id="6ed9f9ef-2" bottom="{{150}}" bind:__l="__l"></enter-cart><foot-tab vue-id="6ed9f9ef-3" current="4" bind:__l="__l"></foot-tab></view>
|
|
@ -176,6 +176,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);
|
var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);
|
||||||
var _vuex = __webpack_require__(/*! vuex */ 12);function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var navTab = function navTab() {__webpack_require__.e(/*! require.ensure | components/nav-tab/nav-tab */ "components/nav-tab/nav-tab").then((function () {return resolve(__webpack_require__(/*! @/components/nav-tab/nav-tab.vue */ 164));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var pullList = function pullList() {__webpack_require__.e(/*! require.ensure | components/pull-list/pull-list */ "components/pull-list/pull-list").then((function () {return resolve(__webpack_require__(/*! @/components/pull-list/pull-list.vue */ 171));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
|
var _vuex = __webpack_require__(/*! vuex */ 12);function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var navTab = function navTab() {__webpack_require__.e(/*! require.ensure | components/nav-tab/nav-tab */ "components/nav-tab/nav-tab").then((function () {return resolve(__webpack_require__(/*! @/components/nav-tab/nav-tab.vue */ 164));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var pullList = function pullList() {__webpack_require__.e(/*! require.ensure | components/pull-list/pull-list */ "components/pull-list/pull-list").then((function () {return resolve(__webpack_require__(/*! @/components/pull-list/pull-list.vue */ 171));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
|
||||||
var _default = {
|
var _default = {
|
||||||
|
@ -212,10 +213,12 @@ var _default = {
|
||||||
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
_this.getCollectionList();
|
_this.getCollectionList();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.getCollectionList();
|
this.getCollectionList();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReady: function onReady() {
|
onReady: function onReady() {
|
||||||
|
@ -225,9 +228,6 @@ var _default = {
|
||||||
if (this.collectionList.length < this.total) {
|
if (this.collectionList.length < this.total) {
|
||||||
this.page++;
|
this.page++;
|
||||||
this.getArticleList();
|
this.getArticleList();
|
||||||
} else {
|
|
||||||
this.totalAll = this.total;
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
this.page++;
|
this.page++;
|
||||||
this.getCollectionList();
|
this.getCollectionList();
|
||||||
|
@ -256,8 +256,11 @@ var _default = {
|
||||||
this.isShop = false;
|
this.isShop = false;
|
||||||
}
|
}
|
||||||
if (this.currentIndex !== type) {
|
if (this.currentIndex !== type) {
|
||||||
|
this.total = 0;
|
||||||
|
this.totalAll = -1;
|
||||||
this.page = 1;
|
this.page = 1;
|
||||||
this.currentIndex = type;
|
this.currentIndex = type;
|
||||||
|
this.collectionList = [];
|
||||||
this.getCollectionList();
|
this.getCollectionList();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -282,7 +285,10 @@ var _default = {
|
||||||
|
|
||||||
newArr.push(obj);
|
newArr.push(obj);
|
||||||
});
|
});
|
||||||
_this2.collectionList = newArr;
|
_this2.collectionList = _this2.collectionList.concat(newArr);
|
||||||
|
if (_this2.collectionList.length == _this2.total) {
|
||||||
|
_this2.totalAll = _this2.total;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
});
|
});
|
||||||
|
@ -301,7 +307,10 @@ var _default = {
|
||||||
|
|
||||||
newArr.push(obj);
|
newArr.push(obj);
|
||||||
});
|
});
|
||||||
_this2.collectionList = newArr;
|
_this2.collectionList = _this2.collectionList.concat(newArr);
|
||||||
|
if (_this2.collectionList.length == _this2.total) {
|
||||||
|
_this2.totalAll = _this2.total;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<view><status-nav vue-id="2acca338-1" ifReturn="{{true}}" navBarTitle="收藏" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="nav-list-bg" style="{{'top:'+(newTop+'px')+';'}}"><nav-tab vue-id="2acca338-2" list="{{navTabList}}" data-event-opts="{{[['^chooseEv',[['chooseEv']]]]}}" bind:chooseEv="__e" bind:__l="__l"></nav-tab></view><view class="news-list-bg"><pull-list vue-id="2acca338-3" list="{{collectionList}}" collection="{{1}}" isShop="{{isShop}}" data-event-opts="{{[['^toDetail',[['toArticleDetail']]],['^collectionEv',[['collectionEv']]]]}}" bind:toDetail="__e" bind:collectionEv="__e" bind:__l="__l"></pull-list></view><block wx:if="{{total==0}}"><view class="more-txt more-txt-other">暂无更多内容</view></block></view>
|
<view><status-nav vue-id="2acca338-1" ifReturn="{{true}}" navBarTitle="收藏" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="nav-list-bg" style="{{'top:'+(newTop+'px')+';'}}"><nav-tab vue-id="2acca338-2" list="{{navTabList}}" data-event-opts="{{[['^chooseEv',[['chooseEv']]]]}}" bind:chooseEv="__e" bind:__l="__l"></nav-tab></view><view class="news-list-bg"><pull-list vue-id="2acca338-3" list="{{collectionList}}" collection="{{1}}" isShop="{{isShop}}" data-event-opts="{{[['^toDetail',[['toArticleDetail']]],['^collectionEv',[['collectionEv']]]]}}" bind:toDetail="__e" bind:collectionEv="__e" bind:__l="__l"></pull-list></view><block wx:if="{{total!==0&&totalAll==total}}"><view class="more-txt more-txt-other">暂无更多内容</view></block><block wx:if="{{total==0&&totalAll==total}}"><nothing-page vue-id="2acca338-4" content="还没有相关收藏哟(*^▽^*)" bind:__l="__l"></nothing-page></block></view>
|
|
@ -202,10 +202,12 @@ var _default = {
|
||||||
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
_this.getDetail(_this.id);
|
_this.getDetail(_this.id);
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.getDetail(this.id);
|
this.getDetail(this.id);
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow: function onShow() {
|
onShow: function onShow() {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<view><status-nav vue-id="62ffe691-1" ifReturn="{{true}}" navBarTitle="新闻详情" marginBottom="{{0}}" bind:__l="__l"></status-nav><block wx:if="{{articleDetail.video}}"><view class="news-video-img"><image src="{{articleDetail.cover}}" mode="widthFix"></image><view data-event-opts="{{[['tap',[['playEv',['$0'],['articleDetail.video']]]]]}}" class="news-video-btn" catchtap="__e"><block wx:if="{{videoPlay}}"><image src="/static/public/icon-suspend.png" mode="widthFix"></image></block><block wx:else><image src="/static/public/icon-play.png" mode="widthFix"></image></block></view></view></block><block wx:if="{{videoPlay}}"><view class="news-video-content" style="{{'width:'+(newWidth+'px')+';'}}"></view></block><block wx:if="{{videoPlay}}"><video style="{{'width:'+(newWidth+'px')+';'}}" id="my-video" controls="{{true}}" src="{{articleDetail.video}}" data-event-opts="{{[['fullscreenchange',[['screenChange',['$event']]]]]}}" bindfullscreenchange="__e"></video></block><view class="shop-summary news-summary"><view class="shop-title">{{articleDetail.title}}</view><view class="shop-txt news-txt flex"><view class="left"><view class="news-author">{{"作者:"+articleDetail.author}}</view><view class="news-time">{{"发布时间:"+time}}</view></view><view class="right flex"><view data-event-opts="{{[['tap',[['collectionEv',['$0'],['articleDetail.id']]]]]}}" class="{{['collection-btn','flex',articleDetail.is_collected==1?'active':'']}}" bindtap="__e"><image src="/static/public/icon-collection.png" mode="widthFix"></image><text>收藏</text></view><view class="share-btn flex"><image src="/static/public/icon-share.png" mode="widthFix"></image><text>分享</text><button plain="true" data-name="shareBtn" open-type="share"></button></view></view></view></view><view class="shop-detail news-detail"><rich-text nodes="{{content}}"></rich-text></view></view>
|
<view><status-nav vue-id="62ffe691-1" ifReturn="{{true}}" navBarTitle="新闻详情" marginBottom="{{0}}" bind:__l="__l"></status-nav><block wx:if="{{articleDetail.video}}"><view class="news-video-img"><image src="{{articleDetail.cover}}" mode="widthFix"></image><view data-event-opts="{{[['tap',[['playEv',['$0'],['articleDetail.video']]]]]}}" class="news-video-btn" catchtap="__e"><block wx:if="{{videoPlay}}"><image src="/static/public/icon-suspend.png" mode="widthFix"></image></block><block wx:else><image src="/static/public/icon-play.png" mode="widthFix"></image></block></view></view></block><block wx:if="{{videoPlay}}"><view class="news-video-content" style="{{'width:'+(newWidth+'px')+';'}}"></view></block><block wx:if="{{videoPlay}}"><video style="{{'width:'+(newWidth+'px')+';'}}" id="my-video" controls="{{true}}" src="{{articleDetail.video}}" data-event-opts="{{[['fullscreenchange',[['screenChange',['$event']]]]]}}" bindfullscreenchange="__e"></video></block><view class="shop-summary news-summary"><view class="shop-title">{{articleDetail.title}}</view><view class="shop-txt news-txt flex"><view class="left"><view class="news-author">{{"作者:"+articleDetail.author}}</view><view class="news-time">{{"发布时间:"+time}}</view></view><view class="right flex"><view data-event-opts="{{[['tap',[['collectionEv',['$0'],['articleDetail.id']]]]]}}" class="{{['collection-btn','flex',articleDetail.is_collected==1?'active':'']}}" bindtap="__e"><image src="/static/public/icon-collection.png" mode="widthFix"></image><text>{{articleDetail.is_collected==1?'已收藏':'收藏'}}</text></view><view class="share-btn flex"><image src="/static/public/icon-share.png" mode="widthFix"></image><text>分享</text><button plain="true" data-name="shareBtn" open-type="share"></button></view></view></view></view><view class="shop-detail news-detail"><rich-text nodes="{{content}}"></rich-text></view></view>
|
|
@ -102,10 +102,10 @@ try {
|
||||||
return __webpack_require__.e(/*! import() | components/pull-list/pull-list */ "components/pull-list/pull-list").then(__webpack_require__.bind(null, /*! @/components/pull-list/pull-list.vue */ 171))
|
return __webpack_require__.e(/*! import() | components/pull-list/pull-list */ "components/pull-list/pull-list").then(__webpack_require__.bind(null, /*! @/components/pull-list/pull-list.vue */ 171))
|
||||||
},
|
},
|
||||||
enterCart: function() {
|
enterCart: function() {
|
||||||
return Promise.all(/*! import() | components/enter-cart/enter-cart */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/enter-cart/enter-cart")]).then(__webpack_require__.bind(null, /*! @/components/enter-cart/enter-cart.vue */ 178))
|
return __webpack_require__.e(/*! import() | components/enter-cart/enter-cart */ "components/enter-cart/enter-cart").then(__webpack_require__.bind(null, /*! @/components/enter-cart/enter-cart.vue */ 178))
|
||||||
},
|
},
|
||||||
footTab: function() {
|
footTab: function() {
|
||||||
return Promise.all(/*! import() | components/foot-tab/foot-tab */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/foot-tab/foot-tab")]).then(__webpack_require__.bind(null, /*! @/components/foot-tab/foot-tab.vue */ 185))
|
return __webpack_require__.e(/*! import() | components/foot-tab/foot-tab */ "components/foot-tab/foot-tab").then(__webpack_require__.bind(null, /*! @/components/foot-tab/foot-tab.vue */ 185))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -188,7 +188,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
|
|
||||||
|
|
||||||
var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);
|
var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);
|
||||||
var _vuex = __webpack_require__(/*! vuex */ 12);function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var navTab = function navTab() {__webpack_require__.e(/*! require.ensure | components/nav-tab/nav-tab */ "components/nav-tab/nav-tab").then((function () {return resolve(__webpack_require__(/*! @/components/nav-tab/nav-tab.vue */ 164));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var pullList = function pullList() {__webpack_require__.e(/*! require.ensure | components/pull-list/pull-list */ "components/pull-list/pull-list").then((function () {return resolve(__webpack_require__(/*! @/components/pull-list/pull-list.vue */ 171));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var enterCart = function enterCart() {Promise.all(/*! require.ensure | components/enter-cart/enter-cart */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/enter-cart/enter-cart")]).then((function () {return resolve(__webpack_require__(/*! @/components/enter-cart/enter-cart.vue */ 178));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var footTab = function footTab() {Promise.all(/*! require.ensure | components/foot-tab/foot-tab */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/foot-tab/foot-tab")]).then((function () {return resolve(__webpack_require__(/*! @/components/foot-tab/foot-tab.vue */ 185));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
|
var _vuex = __webpack_require__(/*! vuex */ 12);function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var navTab = function navTab() {__webpack_require__.e(/*! require.ensure | components/nav-tab/nav-tab */ "components/nav-tab/nav-tab").then((function () {return resolve(__webpack_require__(/*! @/components/nav-tab/nav-tab.vue */ 164));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var pullList = function pullList() {__webpack_require__.e(/*! require.ensure | components/pull-list/pull-list */ "components/pull-list/pull-list").then((function () {return resolve(__webpack_require__(/*! @/components/pull-list/pull-list.vue */ 171));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var enterCart = function enterCart() {__webpack_require__.e(/*! require.ensure | components/enter-cart/enter-cart */ "components/enter-cart/enter-cart").then((function () {return resolve(__webpack_require__(/*! @/components/enter-cart/enter-cart.vue */ 178));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var footTab = function footTab() {__webpack_require__.e(/*! require.ensure | components/foot-tab/foot-tab */ "components/foot-tab/foot-tab").then((function () {return resolve(__webpack_require__(/*! @/components/foot-tab/foot-tab.vue */ 185));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
|
||||||
var _default = {
|
var _default = {
|
||||||
components: {
|
components: {
|
||||||
statusNav: statusNav,
|
statusNav: statusNav,
|
||||||
|
@ -221,10 +221,12 @@ var _default = {
|
||||||
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
_this.getArticleNav();
|
_this.getArticleNav();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.getArticleNav();
|
this.getArticleNav();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReachBottom: function onReachBottom(e) {
|
onReachBottom: function onReachBottom(e) {
|
||||||
|
@ -297,7 +299,7 @@ var _default = {
|
||||||
|
|
||||||
newArr.push(obj);
|
newArr.push(obj);
|
||||||
});
|
});
|
||||||
_this3.articleList = newArr;
|
_this3.articleList = _this3.articleList.concat(newArr);
|
||||||
if (_this3.articleList.length == _this3.total) {
|
if (_this3.articleList.length == _this3.total) {
|
||||||
_this3.totalAll = _this3.total;
|
_this3.totalAll = _this3.total;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,40 +0,0 @@
|
||||||
|
|
||||||
.customer-service-bg{
|
|
||||||
position: fixed;
|
|
||||||
width: 120rpx;
|
|
||||||
height: 120rpx;
|
|
||||||
background-color: #FFFFFF;
|
|
||||||
border-radius: 100%;
|
|
||||||
box-shadow: 0 0 16rpx rgba(0,0,0,.4);
|
|
||||||
-webkit-animation: scale_name 1s linear alternate infinite;
|
|
||||||
animation: scale_name 1s linear alternate infinite;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
.customer-service{
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
position: relative;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
.customer-service image{
|
|
||||||
width: 68rpx;
|
|
||||||
height: 68rpx;
|
|
||||||
}
|
|
||||||
.customer-service .service-btn{
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
@-webkit-keyframes scale_name{
|
|
||||||
from{-webkit-transform: scale(1);transform: scale(1);}
|
|
||||||
to{-webkit-transform: scale(1.1);transform: scale(1.1);}
|
|
||||||
}
|
|
||||||
@keyframes scale_name{
|
|
||||||
from{-webkit-transform: scale(1);transform: scale(1);}
|
|
||||||
to{-webkit-transform: scale(1.1);transform: scale(1.1);}
|
|
||||||
}
|
|
||||||
|
|
|
@ -130,7 +130,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
|
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -177,6 +177,22 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);
|
||||||
|
var _vuex = __webpack_require__(/*! vuex */ 12);var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
|
||||||
|
function getDate(type) {
|
||||||
|
var date = new Date();
|
||||||
|
var year = date.getFullYear();
|
||||||
|
var month = date.getMonth() + 1;
|
||||||
|
var day = date.getDate();
|
||||||
|
if (type === 'start') {
|
||||||
|
year = year;
|
||||||
|
} else if (type === 'end') {
|
||||||
|
year = year + 10;
|
||||||
|
}
|
||||||
|
month = month > 9 ? month : '0' + month;
|
||||||
|
day = day > 9 ? day : '0' + day;
|
||||||
|
return "".concat(year, "-").concat(month, "-").concat(day);
|
||||||
|
}var _default =
|
||||||
{
|
{
|
||||||
components: {
|
components: {
|
||||||
statusNav: statusNav },
|
statusNav: statusNav },
|
||||||
|
@ -184,11 +200,16 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
data: function data() {
|
data: function data() {
|
||||||
return {
|
return {
|
||||||
current: 6,
|
current: 6,
|
||||||
toTime: '', // 时间
|
|
||||||
address: '', // 地址
|
address: '', // 地址
|
||||||
name: '', // 称呼
|
name: '', // 称呼
|
||||||
phone: '', // 电话
|
phone: '', // 电话
|
||||||
flag: true };
|
flag: true,
|
||||||
|
// 日期
|
||||||
|
toTime: getDate({
|
||||||
|
format: true }),
|
||||||
|
|
||||||
|
startDate: getDate('start'),
|
||||||
|
endDate: getDate('end') };
|
||||||
|
|
||||||
},
|
},
|
||||||
onLoad: function onLoad(op) {var _this = this;
|
onLoad: function onLoad(op) {var _this = this;
|
||||||
|
@ -209,8 +230,8 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
// 获取默认信息
|
// 获取默认信息
|
||||||
getUserInfo: function getUserInfo() {var _this2 = this;
|
getUserInfo: function getUserInfo() {var _this2 = this;
|
||||||
this.$requst.get('/api/user/info').then(function (res) {
|
this.$requst.get('/api/user/info').then(function (res) {
|
||||||
console.log(res, '用户信息');
|
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
uni.setStorageSync('business_id', res.data.business_id);
|
||||||
_this2.address = res.data.order_address; //地址
|
_this2.address = res.data.order_address; //地址
|
||||||
_this2.name = res.data.order_contact; //联系人
|
_this2.name = res.data.order_contact; //联系人
|
||||||
_this2.phone = res.data.order_phone; //电话
|
_this2.phone = res.data.order_phone; //电话
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<view class="pad-b150"><status-nav vue-id="207f0512-1" ifReturn="{{true}}" navBarTitle="订单提交" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="settlement-content"><view class="settlement-title">联系方式</view><view class="settlement-tips">请输入您的联系方式,我们将尽快与您联系并确认订单信息!</view><view class="settlement-list"><view class="settlement-item"><view class="name">联系人</view><view class="txt flex"><text>称呼</text><input class="{{[current==0?'focusc':'']}}" type="text" placeholder="请输入您的称呼" placeholder-style="color:#999999" data-event-opts="{{[['tap',[['chooseEv',[0]]]],['input',[['__set_model',['','name','$event',[]]]]]]}}" value="{{name}}" bindtap="__e" bindinput="__e"/></view></view><view class="settlement-item"><view class="name">联系方式</view><view class="txt flex"><text>电话</text><input class="{{[current==1?'focusc':'']}}" type="text" placeholder="请输入手机号码" placeholder-style="color:#999999" data-event-opts="{{[['tap',[['chooseEv',[1]]]],['input',[['__set_model',['','phone','$event',[]]]]]]}}" value="{{phone}}" bindtap="__e" bindinput="__e"/></view></view><view class="settlement-item"><view class="name">联系地址</view><view class="txt flex"><text>地址</text><input class="{{[current==2?'focusc':'']}}" type="text" placeholder="请输入地址" placeholder-style="color:#999999" data-event-opts="{{[['tap',[['chooseEv',[2]]]],['input',[['__set_model',['','address','$event',[]]]]]]}}" value="{{address}}" bindtap="__e" bindinput="__e"/></view></view><view class="settlement-item"><view class="name">送货时间</view><view class="txt flex"><text>日期</text><picker mode="date" data-event-opts="{{[['change',[['chooseTime',[3,'$event']]]]]}}" bindchange="__e"><input class="{{[current==0?'focusc':'']}}" type="text" disabled="{{true}}" placeholder="请选择送货日期" placeholder-style="color:#999999" data-event-opts="{{[['tap',[['chooseEv',[0]]]],['input',[['__set_model',['','toTime','$event',[]]]]]]}}" value="{{toTime}}" bindtap="__e" bindinput="__e"/></picker></view></view></view></view><view class="settlement-btn flex"><view data-event-opts="{{[['tap',[['submit',['$event']]]]]}}" class="btn" bindtap="__e">提交订单</view></view></view>
|
<view class="pad-b150"><status-nav vue-id="207f0512-1" ifReturn="{{true}}" navBarTitle="订单提交" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="settlement-content"><view class="settlement-title">联系方式</view><view class="settlement-tips">请输入您的联系方式,我们将尽快与您联系并确认订单信息!</view><view class="settlement-list"><view class="settlement-item"><view class="name">联系人</view><view class="txt flex"><text>称呼</text><input class="{{[current==0?'focusc':'']}}" type="text" placeholder="请输入您的称呼" placeholder-style="color:#999999" data-event-opts="{{[['tap',[['chooseEv',[0]]]],['input',[['__set_model',['','name','$event',[]]]]]]}}" value="{{name}}" bindtap="__e" bindinput="__e"/></view></view><view class="settlement-item"><view class="name">联系方式</view><view class="txt flex"><text>电话</text><input class="{{[current==1?'focusc':'']}}" type="text" placeholder="请输入手机号码" placeholder-style="color:#999999" data-event-opts="{{[['tap',[['chooseEv',[1]]]],['input',[['__set_model',['','phone','$event',[]]]]]]}}" value="{{phone}}" bindtap="__e" bindinput="__e"/></view></view><view class="settlement-item"><view class="name">联系地址</view><view class="txt flex"><text>地址</text><input class="{{[current==2?'focusc':'']}}" type="text" placeholder="请输入地址" placeholder-style="color:#999999" data-event-opts="{{[['tap',[['chooseEv',[2]]]],['input',[['__set_model',['','address','$event',[]]]]]]}}" value="{{address}}" bindtap="__e" bindinput="__e"/></view></view><view class="settlement-item"><view class="name">送货时间</view><view class="txt flex"><text>日期</text><picker mode="date" start="{{startDate}}" end="{{endDate}}" data-event-opts="{{[['change',[['chooseTime',[3,'$event']]]]]}}" bindchange="__e"><input class="{{[current==0?'focusc':'']}}" type="text" disabled="{{true}}" placeholder="请选择送货日期" placeholder-style="color:#999999" data-event-opts="{{[['tap',[['chooseEv',[0]]]],['input',[['__set_model',['','toTime','$event',[]]]]]]}}" value="{{toTime}}" bindtap="__e" bindinput="__e"/></picker></view></view></view></view><view class="settlement-btn flex"><view data-event-opts="{{[['tap',[['submit',['$event']]]]]}}" class="btn" bindtap="__e">提交订单</view></view></view>
|
|
@ -175,7 +175,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var customerService = function customerService() {__webpack_require__.e(/*! require.ensure | components/customer-service/customer-service */ "components/customer-service/customer-service").then((function () {return resolve(__webpack_require__(/*! @/components/customer-service/customer-service.vue */ 206));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
|
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -242,7 +242,9 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);
|
||||||
|
var _vuex = __webpack_require__(/*! vuex */ 12);var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var customerService = function customerService() {__webpack_require__.e(/*! require.ensure | components/customer-service/customer-service */ "components/customer-service/customer-service").then((function () {return resolve(__webpack_require__(/*! @/components/customer-service/customer-service.vue */ 206));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
|
||||||
|
var _default = {
|
||||||
components: {
|
components: {
|
||||||
statusNav: statusNav,
|
statusNav: statusNav,
|
||||||
customerService: customerService },
|
customerService: customerService },
|
||||||
|
@ -263,10 +265,12 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
_this.getOrderDetail();
|
_this.getOrderDetail();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.getOrderDetail();
|
this.getOrderDetail();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 分享到微信
|
// 分享到微信
|
||||||
|
|
|
@ -159,7 +159,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
|
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -202,7 +202,9 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);
|
||||||
|
var _vuex = __webpack_require__(/*! vuex */ 12);var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
|
||||||
|
var _default = {
|
||||||
components: {
|
components: {
|
||||||
statusNav: statusNav },
|
statusNav: statusNav },
|
||||||
|
|
||||||
|
@ -237,10 +239,12 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
_this.getOrderList();
|
_this.getOrderList();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.getOrderList();
|
this.getOrderList();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReachBottom: function onReachBottom(e) {
|
onReachBottom: function onReachBottom(e) {
|
||||||
|
@ -266,6 +270,8 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
methods: {
|
methods: {
|
||||||
// 导航切换
|
// 导航切换
|
||||||
changeNav: function changeNav(index, tag) {
|
changeNav: function changeNav(index, tag) {
|
||||||
|
this.total = 0;
|
||||||
|
this.totalAll = -1;
|
||||||
this.activeIndex = index;
|
this.activeIndex = index;
|
||||||
this.tag = tag;
|
this.tag = tag;
|
||||||
this.orderList = [];
|
this.orderList = [];
|
||||||
|
@ -281,6 +287,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
tag: this.tag };
|
tag: this.tag };
|
||||||
|
|
||||||
this.$requst.get('/api/user/order', params).then(function (res) {
|
this.$requst.get('/api/user/order', params).then(function (res) {
|
||||||
|
console.log(res, '订单列表');
|
||||||
if (res.data.length != 0) {
|
if (res.data.length != 0) {
|
||||||
_this2.total = res.data.total;
|
_this2.total = res.data.total;
|
||||||
var newArr = [];
|
var newArr = [];
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<view class="data-v-0d5a9fc9"><status-nav vue-id="c40c4b46-1" ifReturn="{{true}}" navBarTitle="订单管理" marginBottom="{{0}}" class="data-v-0d5a9fc9" bind:__l="__l"></status-nav><view class="order-nav flex data-v-0d5a9fc9" style="{{'top:'+(newTop+'px')+';'}}"><block wx:for="{{orderNav}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['changeNav',[index,'$0'],[[['orderNav','',index,'tag']]]]]]]}}" class="{{['item','data-v-0d5a9fc9',activeIndex==index?'cur':'']}}" bindtap="__e">{{item.title}}</view></block></view><view class="order-list data-v-0d5a9fc9"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['orderList','',index,'id']]]]]]]}}" class="order-item data-v-0d5a9fc9" catchtap="__e"><view class="order-code flex data-v-0d5a9fc9"><text class="data-v-0d5a9fc9">{{"订单号:"+item.$orig.coding}}</text><text class="status data-v-0d5a9fc9">{{item.$orig.status_text}}</text></view><view class="item-bg data-v-0d5a9fc9"><block wx:for="{{item.l0}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view class="item flex data-v-0d5a9fc9"><view class="img data-v-0d5a9fc9"><image src="{{item1.$orig.spu_cover}}" mode="widthFix" class="data-v-0d5a9fc9"></image></view><view class="txt data-v-0d5a9fc9"><view class="title data-v-0d5a9fc9">{{item1.$orig.spu_name}}</view><view class="specs clips2 data-v-0d5a9fc9">{{"规格:"+item1.$orig.custom_title}}</view><view class="price flex data-v-0d5a9fc9"><text class="data-v-0d5a9fc9">{{"¥"+item1.g0}}</text><view class="data-v-0d5a9fc9"><text class="data-v-0d5a9fc9">x</text>{{item1.$orig.num}}</view></view></view></view></block></view><view class="total-price flex data-v-0d5a9fc9"><text class="data-v-0d5a9fc9">{{"合计:¥"+item.g1}}</text><block wx:if="{{item.$orig.status=='ordered'}}"><view data-event-opts="{{[['tap',[['cancleEv',['$0'],[[['orderList','',index,'coding']]]]]]]}}" class="btn data-v-0d5a9fc9" catchtap="__e">取消订单</view></block><block wx:if="{{item.$orig.status=='completed'||item.$orig.status=='closed'}}"><view data-event-opts="{{[['tap',[['buyAgain',[index]]]]]}}" class="btn cur data-v-0d5a9fc9" catchtap="__e">再次购买</view></block></view></view></block></view><block wx:if="{{totalAll==total}}"><view class="more-txt data-v-0d5a9fc9" style="padding-bottom:40rpx;">—— 到底啦 ——</view></block><block wx:if="{{!ifLoading&&!orderList.length}}"><nothing-page vue-id="c40c4b46-2" content="还没有相关订单哟(*^▽^*)" class="data-v-0d5a9fc9" bind:__l="__l"></nothing-page></block></view>
|
<view class="data-v-0d5a9fc9"><status-nav vue-id="c40c4b46-1" ifReturn="{{true}}" navBarTitle="订单管理" marginBottom="{{0}}" class="data-v-0d5a9fc9" bind:__l="__l"></status-nav><view class="order-nav flex data-v-0d5a9fc9" style="{{'top:'+(newTop+'px')+';'}}"><block wx:for="{{orderNav}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['changeNav',[index,'$0'],[[['orderNav','',index,'tag']]]]]]]}}" class="{{['item','data-v-0d5a9fc9',activeIndex==index?'cur':'']}}" bindtap="__e">{{item.title}}</view></block></view><view class="order-list data-v-0d5a9fc9"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['orderList','',index,'id']]]]]]]}}" class="order-item data-v-0d5a9fc9" catchtap="__e"><view class="order-code flex data-v-0d5a9fc9"><text class="data-v-0d5a9fc9">{{"订单号:"+item.$orig.coding}}</text><text class="status data-v-0d5a9fc9">{{item.$orig.status_text}}</text></view><view class="item-bg data-v-0d5a9fc9"><block wx:for="{{item.l0}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view class="item flex data-v-0d5a9fc9"><view class="img data-v-0d5a9fc9"><image src="{{item1.$orig.spu_cover}}" mode="widthFix" class="data-v-0d5a9fc9"></image></view><view class="txt data-v-0d5a9fc9"><view class="title data-v-0d5a9fc9">{{item1.$orig.spu_name}}</view><view class="specs clips2 data-v-0d5a9fc9">{{"规格:"+item1.$orig.custom_title}}</view><view class="price flex data-v-0d5a9fc9"><text class="data-v-0d5a9fc9">{{"¥"+item1.g0}}</text><view class="data-v-0d5a9fc9"><text class="data-v-0d5a9fc9">x</text>{{item1.$orig.num}}</view></view></view></view></block></view><view class="total-price flex data-v-0d5a9fc9"><text class="data-v-0d5a9fc9">{{"合计:¥"+item.g1}}</text><block wx:if="{{item.$orig.status=='ordered'}}"><view data-event-opts="{{[['tap',[['cancleEv',['$0'],[[['orderList','',index,'coding']]]]]]]}}" class="btn data-v-0d5a9fc9" catchtap="__e">取消订单</view></block><block wx:if="{{item.$orig.status=='completed'||item.$orig.status=='closed'}}"><view data-event-opts="{{[['tap',[['buyAgain',[index]]]]]}}" class="btn cur data-v-0d5a9fc9" catchtap="__e">再次购买</view></block></view></view></block></view><block wx:if="{{total!==0&&totalAll==total}}"><view class="more-txt data-v-0d5a9fc9" style="padding-bottom:40rpx;">—— 到底啦 ——</view></block><block wx:if="{{total==0&&totalAll==total}}"><nothing-page vue-id="c40c4b46-2" content="还没有相关订单哟(*^▽^*)" class="data-v-0d5a9fc9" bind:__l="__l"></nothing-page></block></view>
|
|
@ -96,7 +96,7 @@ var components
|
||||||
try {
|
try {
|
||||||
components = {
|
components = {
|
||||||
enterCart: function() {
|
enterCart: function() {
|
||||||
return Promise.all(/*! import() | components/enter-cart/enter-cart */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/enter-cart/enter-cart")]).then(__webpack_require__.bind(null, /*! @/components/enter-cart/enter-cart.vue */ 178))
|
return __webpack_require__.e(/*! import() | components/enter-cart/enter-cart */ "components/enter-cart/enter-cart").then(__webpack_require__.bind(null, /*! @/components/enter-cart/enter-cart.vue */ 178))
|
||||||
},
|
},
|
||||||
customerService: function() {
|
customerService: function() {
|
||||||
return __webpack_require__.e(/*! import() | components/customer-service/customer-service */ "components/customer-service/customer-service").then(__webpack_require__.bind(null, /*! @/components/customer-service/customer-service.vue */ 206))
|
return __webpack_require__.e(/*! import() | components/customer-service/customer-service */ "components/customer-service/customer-service").then(__webpack_require__.bind(null, /*! @/components/customer-service/customer-service.vue */ 206))
|
||||||
|
@ -123,6 +123,28 @@ var render = function() {
|
||||||
var _vm = this
|
var _vm = this
|
||||||
var _h = _vm.$createElement
|
var _h = _vm.$createElement
|
||||||
var _c = _vm._self._c || _h
|
var _c = _vm._self._c || _h
|
||||||
|
var g0 = _vm.$toolAll.tools.changeNum(parseInt(_vm.shopDetail.original_price))
|
||||||
|
var g1 = _vm.vipPrice
|
||||||
|
? _vm.$toolAll.tools.changeNum(parseInt(_vm.shopDetail.price))
|
||||||
|
: null
|
||||||
|
var g2 = _vm.isShow
|
||||||
|
? _vm.$toolAll.tools.changeNum(parseInt(_vm.shopDetail.original_price))
|
||||||
|
: null
|
||||||
|
var g3 =
|
||||||
|
_vm.isShow && _vm.vipPrice
|
||||||
|
? _vm.$toolAll.tools.changeNum(parseInt(_vm.shopDetail.price))
|
||||||
|
: null
|
||||||
|
_vm.$mp.data = Object.assign(
|
||||||
|
{},
|
||||||
|
{
|
||||||
|
$root: {
|
||||||
|
g0: g0,
|
||||||
|
g1: g1,
|
||||||
|
g2: g2,
|
||||||
|
g3: g3
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
var recyclableRender = false
|
var recyclableRender = false
|
||||||
var staticRenderFns = []
|
var staticRenderFns = []
|
||||||
|
@ -238,10 +260,11 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);
|
var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);
|
||||||
var _vuex = __webpack_require__(/*! vuex */ 12);function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var swiperPu = function swiperPu() {__webpack_require__.e(/*! require.ensure | components/swipers/swiper-pu */ "components/swipers/swiper-pu").then((function () {return resolve(__webpack_require__(/*! @/components/swipers/swiper-pu */ 199));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var enterCart = function enterCart() {Promise.all(/*! require.ensure | components/enter-cart/enter-cart */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/enter-cart/enter-cart")]).then((function () {return resolve(__webpack_require__(/*! @/components/enter-cart/enter-cart.vue */ 178));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var customerService = function customerService() {__webpack_require__.e(/*! require.ensure | components/customer-service/customer-service */ "components/customer-service/customer-service").then((function () {return resolve(__webpack_require__(/*! @/components/customer-service/customer-service.vue */ 206));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
|
var _vuex = __webpack_require__(/*! vuex */ 12);function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var swiperPu = function swiperPu() {__webpack_require__.e(/*! require.ensure | components/swipers/swiper-pu */ "components/swipers/swiper-pu").then((function () {return resolve(__webpack_require__(/*! @/components/swipers/swiper-pu */ 199));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var enterCart = function enterCart() {__webpack_require__.e(/*! require.ensure | components/enter-cart/enter-cart */ "components/enter-cart/enter-cart").then((function () {return resolve(__webpack_require__(/*! @/components/enter-cart/enter-cart.vue */ 178));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var customerService = function customerService() {__webpack_require__.e(/*! require.ensure | components/customer-service/customer-service */ "components/customer-service/customer-service").then((function () {return resolve(__webpack_require__(/*! @/components/customer-service/customer-service.vue */ 206));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
|
||||||
var _default = {
|
var _default = {
|
||||||
components: {
|
components: {
|
||||||
statusNav: statusNav,
|
statusNav: statusNav,
|
||||||
|
@ -264,7 +287,8 @@ var _default = {
|
||||||
specsIndex: 0, //规格选中位置
|
specsIndex: 0, //规格选中位置
|
||||||
id: 0, //商品、套件id
|
id: 0, //商品、套件id
|
||||||
action: 'collect', //收藏类型
|
action: 'collect', //收藏类型
|
||||||
changeBtns: false //按钮选择
|
changeBtns: false, //按钮选择
|
||||||
|
vipPrice: false //显示会员价
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: _objectSpread({},
|
computed: _objectSpread({},
|
||||||
|
@ -280,15 +304,19 @@ var _default = {
|
||||||
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
_this.getDetail(_this.id);
|
_this.getDetail(_this.id);
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.getDetail(this.id);
|
this.getDetail(this.id);
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow: function onShow() {
|
onShow: function onShow() {
|
||||||
|
if (uni.getStorageSync('showVip') == 'true') {
|
||||||
|
this.vipPrice = true;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 分享到微信
|
// 分享到微信
|
||||||
onShareAppMessage: function onShareAppMessage(res) {
|
onShareAppMessage: function onShareAppMessage(res) {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<view class="pad-b140"><status-nav vue-id="d5d4c780-1" ifReturn="{{true}}" navBarTitle="商品简介" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="shop-img"><swiper-pu vue-id="d5d4c780-2" newRadius="0" bannerList="{{shopBanner}}" newHeight="505rpx" newBottom="35rpx" isplay="{{isplay}}" bind:__l="__l"></swiper-pu></view><view class="shop-summary"><view class="shop-title">{{shopDetail.name}}</view><view class="shop-txt flex"><view class="left"><view class="shop-customized">{{shopDetail.tag==''?'':shopDetail.tag}}</view><view class="shop-pric">{{"¥"+shopDetail.price}}</view></view><view class="right flex"><view data-event-opts="{{[['tap',[['collectionEv',['$0'],['shopDetail.id']]]]]}}" class="{{['collection-btn','flex',shopDetail.is_collected==1?'active':'']}}" bindtap="__e"><image src="/static/public/icon-collection.png" mode></image><text>收藏</text></view><view class="share-btn flex"><image src="/static/public/icon-share.png" mode></image><text>分享</text><button plain="true" data-name="shareBtn" open-type="share"></button></view></view></view><view data-event-opts="{{[['tap',[['openSpecs',[1]]]]]}}" class="specs-btn flex" bindtap="__e"><image src="/static/public/icon-specs.png" mode="widthFix"></image><text>规格:查看详细规格</text><image src="/static/public/icon-more.png" mode="widthFix"></image></view></view><view class="shop-detail"><view class="shop-detail-tab flex"><block wx:for="{{shopDetailTab}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeDetail',[index]]]]]}}" class="{{['tab-btn',showCurrent==index?'cur':'']}}" bindtap="__e">{{item}}</view></block></view><view class="shop-detail-txt"><block wx:if="{{showCurrent==0}}"><view class="txt-box"><rich-text nodes="{{shopDetail.content}}"></rich-text></view></block><block wx:if="{{showCurrent==1}}"><view class="txt-box"><view><rich-text nodes="{{shopDetail.params}}"></rich-text></view></view></block></view></view><block wx:if="{{source=='shop'}}"><view class="shop-btns flex"><view data-event-opts="{{[['tap',[['openSpecs',[0]]]]]}}" class="btn" bindtap="__e">加入购物车</view><view data-event-opts="{{[['tap',[['openSpecs',[1]]]]]}}" class="btn" bindtap="__e">立即购买</view></view></block><block wx:if="{{source=='kit'}}"><view class="kit-shop-btns"><view data-event-opts="{{[['tap',[['backEv',['$event']]]]]}}" class="btn" bindtap="__e">返回套件继续购买</view></view></block><block wx:if="{{isShow}}"><view data-event-opts="{{[['tap',[['closeSpecs',['$event']]]]]}}" class="pull-all-bg" bindtap="__e"></view></block><block wx:if="{{isShow}}"><view class="specs-detail-bg"><view class="specs-detail"><view data-event-opts="{{[['tap',[['closeSpecs',['$event']]]]]}}" class="close-specs" bindtap="__e"><image src="/static/public/icon-close.png" mode="widthFix"></image></view><view class="price">{{"¥"+shopDetail.original_price}}</view><view class="price"><text>会员价:</text>{{"¥"+shopDetail.price}}</view><view class="specs-ul"><text>规格</text><block wx:for="{{shopSku}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeSpecs',[index]]]]]}}" class="{{['specs-li','flex',specsIndex==index?'checked':'']}}" bindtap="__e">{{item.custom_title+" 供货周期:"+item.cycle}}</view></block></view><block wx:if="{{changeBtns}}"><view data-event-opts="{{[['tap',[['buyNow',['$0'],['specsIndex']]]]]}}" class="specs-detail-btn" bindtap="__e">立即购买</view></block><block wx:else><view data-event-opts="{{[['tap',[['joinCart',['$0'],['specsIndex']]]]]}}" class="specs-detail-btn" bindtap="__e">加入购物车</view></block></view></view></block><enter-cart vue-id="d5d4c780-3" bottom="{{335}}" bind:__l="__l"></enter-cart><customer-service vue-id="d5d4c780-4" bind:__l="__l"></customer-service></view>
|
<view class="pad-b140"><status-nav vue-id="d5d4c780-1" ifReturn="{{true}}" navBarTitle="商品简介" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="shop-img"><swiper-pu vue-id="d5d4c780-2" newRadius="0" bannerList="{{shopBanner}}" newHeight="505rpx" newBottom="35rpx" isplay="{{isplay}}" bind:__l="__l"></swiper-pu></view><view class="shop-summary"><view class="shop-title">{{shopDetail.name}}</view><view class="shop-txt flex"><view class="left"><view class="shop-customized">{{shopDetail.tag==''?'':shopDetail.tag}}</view><view class="shop-pric">{{"¥"+$root.g0}}</view><block wx:if="{{vipPrice}}"><view class="shop-pric-vip"><text>会员价:</text>{{"¥"+$root.g1}}</view></block></view><view class="right flex"><view data-event-opts="{{[['tap',[['collectionEv',['$0'],['shopDetail.id']]]]]}}" class="{{['collection-btn','flex',shopDetail.is_collected==1?'active':'']}}" bindtap="__e"><image src="/static/public/icon-collection.png" mode></image><text>{{shopDetail.is_collected==1?'已收藏':'收藏'}}</text></view><view class="share-btn flex"><image src="/static/public/icon-share.png" mode></image><text>分享</text><button plain="true" data-name="shareBtn" open-type="share"></button></view></view></view><view data-event-opts="{{[['tap',[['openSpecs',[1]]]]]}}" class="specs-btn flex" bindtap="__e"><image src="/static/public/icon-specs.png" mode="widthFix"></image><text>规格:查看详细规格</text><image src="/static/public/icon-more.png" mode="widthFix"></image></view></view><view class="shop-detail"><view class="shop-detail-tab flex"><block wx:for="{{shopDetailTab}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeDetail',[index]]]]]}}" class="{{['tab-btn',showCurrent==index?'cur':'']}}" bindtap="__e">{{item}}</view></block></view><view class="shop-detail-txt"><block wx:if="{{showCurrent==0}}"><view class="txt-box"><rich-text nodes="{{shopDetail.content}}"></rich-text></view></block><block wx:if="{{showCurrent==1}}"><view class="txt-box"><view><rich-text nodes="{{shopDetail.params}}"></rich-text></view></view></block></view></view><block wx:if="{{source=='shop'}}"><view class="shop-btns flex"><view data-event-opts="{{[['tap',[['openSpecs',[0]]]]]}}" class="btn" bindtap="__e">加入购物车</view><view data-event-opts="{{[['tap',[['openSpecs',[1]]]]]}}" class="btn" bindtap="__e">立即购买</view></view></block><block wx:if="{{source=='kit'}}"><view class="kit-shop-btns"><view data-event-opts="{{[['tap',[['backEv',['$event']]]]]}}" class="btn" bindtap="__e">返回套件继续购买</view></view></block><block wx:if="{{isShow}}"><view data-event-opts="{{[['tap',[['closeSpecs',['$event']]]]]}}" class="pull-all-bg" bindtap="__e"></view></block><block wx:if="{{isShow}}"><view class="specs-detail-bg"><view class="specs-detail"><view data-event-opts="{{[['tap',[['closeSpecs',['$event']]]]]}}" class="close-specs" bindtap="__e"><image src="/static/public/icon-close.png" mode="widthFix"></image></view><view class="price">{{"¥"+$root.g2}}</view><block wx:if="{{vipPrice}}"><view class="price"><text>会员价:</text>{{"¥"+$root.g3}}</view></block><view class="specs-ul"><text>规格</text><block wx:for="{{shopSku}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeSpecs',[index]]]]]}}" class="{{['specs-li','flex',specsIndex==index?'checked':'']}}" bindtap="__e">{{item.custom_title+" 供货周期:"+item.cycle}}</view></block></view><block wx:if="{{changeBtns}}"><view data-event-opts="{{[['tap',[['buyNow',['$0'],['specsIndex']]]]]}}" class="specs-detail-btn" bindtap="__e">立即购买</view></block><block wx:else><view data-event-opts="{{[['tap',[['joinCart',['$0'],['specsIndex']]]]]}}" class="specs-detail-btn" bindtap="__e">加入购物车</view></block></view></view></block><enter-cart vue-id="d5d4c780-3" bottom="{{335}}" bind:__l="__l"></enter-cart><customer-service vue-id="d5d4c780-4" bind:__l="__l"></customer-service></view>
|
|
@ -130,10 +130,12 @@ var _default = {
|
||||||
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
_this.getShopScreen(); //查询商品分类
|
_this.getShopScreen(); //查询商品分类
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.getShopScreen(); //查询商品分类
|
this.getShopScreen(); //查询商品分类
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReachBottom: function onReachBottom(e) {
|
onReachBottom: function onReachBottom(e) {
|
||||||
|
@ -238,7 +240,7 @@ var _default = {
|
||||||
|
|
||||||
newArr.push(obj);
|
newArr.push(obj);
|
||||||
});
|
});
|
||||||
_this3.shopList = newArr;
|
_this3.shopList = _this3.shopList.concat(newArr);
|
||||||
if (_this3.shopList.length == _this3.total) {
|
if (_this3.shopList.length == _this3.total) {
|
||||||
_this3.totalAll = _this3.total;
|
_this3.totalAll = _this3.total;
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,10 +180,12 @@ var _default = {
|
||||||
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
_this.getAboutData();
|
_this.getAboutData();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.getAboutData();
|
this.getAboutData();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 分享到微信
|
// 分享到微信
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
|
|
||||||
page.data-v-022a7c08{
|
|
||||||
background-color: #FFFFFF !important;
|
|
||||||
}
|
|
||||||
|
|
|
@ -162,10 +162,12 @@ var _default = {
|
||||||
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
_this.getDisclaimers();
|
_this.getDisclaimers();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.getDisclaimers();
|
this.getDisclaimers();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -230,10 +230,12 @@ var _default = {
|
||||||
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
_this.getUserData();
|
_this.getUserData();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.getUserData();
|
this.getUserData();
|
||||||
|
(0, _publicApi.userInfoEv)();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow: function onShow() {
|
onShow: function onShow() {
|
||||||
|
|
|
@ -1,27 +1,57 @@
|
||||||
{
|
{
|
||||||
"description": "项目配置文件。",
|
"description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
|
||||||
"packOptions": {
|
"packOptions": {
|
||||||
"ignore": []
|
"ignore": [],
|
||||||
|
"include": []
|
||||||
},
|
},
|
||||||
"setting": {
|
"setting": {
|
||||||
"urlCheck": true,
|
"urlCheck": true,
|
||||||
"es6": true
|
"es6": true,
|
||||||
|
"enhance": true,
|
||||||
|
"postcss": true,
|
||||||
|
"preloadBackgroundData": false,
|
||||||
|
"minified": true,
|
||||||
|
"coverView": true,
|
||||||
|
"autoAudits": false,
|
||||||
|
"showShadowRootInWxmlPanel": true,
|
||||||
|
"uglifyFileName": false,
|
||||||
|
"checkInvalidKey": true,
|
||||||
|
"uploadWithSourceMap": true,
|
||||||
|
"compileHotReLoad": false,
|
||||||
|
"lazyloadPlaceholderEnable": false,
|
||||||
|
"useMultiFrameRuntime": true,
|
||||||
|
"babelSetting": {
|
||||||
|
"ignore": [],
|
||||||
|
"disablePlugins": [],
|
||||||
|
"outputPath": ""
|
||||||
|
},
|
||||||
|
"packNpmManually": false,
|
||||||
|
"packNpmRelationList": [],
|
||||||
|
"minifyWXSS": true,
|
||||||
|
"disableUseStrict": false,
|
||||||
|
"showES6CompileOption": false,
|
||||||
|
"useCompilerPlugins": false,
|
||||||
|
"useStaticServer": true
|
||||||
},
|
},
|
||||||
"compileType": "miniprogram",
|
"compileType": "miniprogram",
|
||||||
"libVersion": "",
|
"libVersion": "2.24.7",
|
||||||
"appid": "wx2128cb0ee735d71a",
|
"appid": "wx2128cb0ee735d71a",
|
||||||
"projectname": "app适配微信小程序",
|
"projectname": "app适配微信小程序",
|
||||||
"condition": {
|
"condition": {
|
||||||
"search": {
|
"search": {
|
||||||
|
"current": -1,
|
||||||
"list": []
|
"list": []
|
||||||
},
|
},
|
||||||
"conversation": {
|
"conversation": {
|
||||||
|
"current": -1,
|
||||||
"list": []
|
"list": []
|
||||||
},
|
},
|
||||||
"game": {
|
"game": {
|
||||||
|
"current": -1,
|
||||||
"list": []
|
"list": []
|
||||||
},
|
},
|
||||||
"miniprogram": {
|
"miniprogram": {
|
||||||
|
"current": 0,
|
||||||
"list": [
|
"list": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "",
|
||||||
|
@ -31,5 +61,9 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"editorSetting": {
|
||||||
|
"tabIndent": "insertSpaces",
|
||||||
|
"tabSize": 4
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,36 +1,24 @@
|
||||||
{
|
{
|
||||||
"setting": {},
|
"setting": {},
|
||||||
"condition": {
|
"condition": {
|
||||||
"plugin": {
|
|
||||||
"list": []
|
|
||||||
},
|
|
||||||
"game": {
|
|
||||||
"list": []
|
|
||||||
},
|
|
||||||
"gamePlugin": {
|
|
||||||
"list": []
|
|
||||||
},
|
|
||||||
"miniprogram": {
|
"miniprogram": {
|
||||||
"list": [
|
"list": [
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "",
|
||||||
"pathName": "pages/tabbar/index/index",
|
"pathName": "pages/tabbar/index/index",
|
||||||
"query": "business_id=7",
|
"query": "business_id=7",
|
||||||
|
"launchMode": "default",
|
||||||
"scene": null
|
"scene": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "",
|
"name": "",
|
||||||
"pathName": "pages/tabbar/index/index",
|
"pathName": "pages/tabbar/index/index",
|
||||||
"query": "business_id=0",
|
"query": "business_id=0",
|
||||||
"scene": null
|
"launchMode": "default",
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "",
|
|
||||||
"pathName": "pages/tabbar/cate/cate",
|
|
||||||
"query": "business_id=7",
|
|
||||||
"scene": null
|
"scene": null
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html"
|
||||||
}
|
}
|
Loading…
Reference in New Issue