Merge remote-tracking branch 'origin/sit-Leung' into sit-jiamin-v2

This commit is contained in:
952108534@qq.com 2022-01-23 17:26:35 +08:00
commit 065db958c7
20 changed files with 635 additions and 516 deletions

View File

@ -56,7 +56,7 @@ export const getleckCourse = (name, offset) => {
* 加入购物车
*/
export const postCourseId = (productCode,buyCount,memberId, mobile,productImg,productName,productPrice,specifications) => {
export const postCourseId = (productCode, buyCount, memberId, mobile, productImg, productName, productPrice, specifications, leftAllotment) => {
var data = {
buyCount: buyCount,
memberId: memberId,
@ -65,7 +65,8 @@ export const postCourseId = (productCode,buyCount,memberId, mobile,productImg,pr
productImg: productImg,
productName: productName,
productPrice: productPrice,
specifications:specifications
specifications: specifications,
leftAllotment: leftAllotment
}
return fetch('/insertCartProductInfo', data, 'POST')
}
@ -81,7 +82,6 @@ export const postCourseId = (productCode,buyCount,memberId, mobile,productImg,pr
* 删除购物车
*/
export const deleteCart = ( productCode) => {
debugger;
var data = {
productCode
}
@ -436,8 +436,19 @@ export const goodsmessage = (productCode) => {
memberId: memberId,
mobile: mobile
}
return fetch('memberAddress?type=getAll', data, 'POST' )
//再次支付
export const repayOrde = (ordernumber) => {
console.log(ordernumber);
return fetch('repayOrderWX?orderNo='+ordernumber,'', 'POST' )
}
//用户所有的优惠券
export const allConfig = (memberId,channelSecurity,mobile) => {
var data = {
}
return fetch('couponConfig?type=getAll', data, 'POST' )
}
//可用的优惠券
export const alldiscount = (memberId, channelSecurity, mobile) => {
@ -466,12 +477,6 @@ export const goodsmessage = (productCode) => {
}]
return fetch('generateOrderWX', list, 'POST')
}
//再次支付
export const repayOrde = (ordernumber) => {
console.log(ordernumber);
return fetch('repayOrderWX?orderNo='+ordernumber,'', 'POST' )
}
//用户所有的优惠券
export const allConfig = (memberId, channelSecurity, mobile) => {
var data = {
@ -625,9 +630,12 @@ export const getOrderList = (user, status) => {
return fetch('memberAddress?type=' + type, data, 'POST')
}
//微信支付二维码
export const updateOrderWX = (data) => {
return fetch('updateOrderWX', data, 'POST')
}
//支付宝支付二维码
export const generateOrderAlipay = (data) => {
return fetch('generateOrderAlipay', data, 'POST')
}

9
rc-busness/app.html Normal file
View File

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html {{ HTML_ATTRS }}>
<head {{ HEAD_ATTRS }}>
{{ HEAD }}
</head>
<body {{ BODY_ATTRS }}>
{{ APP }}
</body>
</html>

View File

@ -0,0 +1,56 @@
<!doctype html>
<html class="no-js" lang="" style='font-size:16px;'>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
html,body{
width:100%;
height:100%;
overflow:hidden;
}
.wrapper{
width:100%;
height:100%;
display:flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
}
h2{
font-size: 2.5rem;
line-height: 3.5rem;
color:#e2001a;
}
a{
color:#666;
text-decoration: none;
padding-bottom:.25rem;
border-bottom: 1px solid #666;
}
a:hover {
color:#e2001a;
border-color: #e2001a;
}
</style>
</head>
<body>
<div class="wrapper">
<img src="./images/default.jpg">
<div>
<h2>检测到系统错误</h2>
<div>
请联系管理员或尝试其他操作
<br/><br/>
<a href="/">回到首页</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -4,6 +4,11 @@ body {
line-height: 1.5;
color: #666;
}
/deep/.el-button--primary {
background-color: #e1001a;
color:#fff;
}
.rc-menu--xs .rc-screen-reader{
left:28%;
}

View File

@ -12,7 +12,6 @@ ul li ol li em strong i {
}
.rc-main {
position: relative;
margin-top: 5.25rem;
.active{
border: 2px solid #E2001A;
@ -33,7 +32,6 @@ ul li ol li em strong i {
width: 100%;
margin: 0 auto;
overflow: hidden;
margin-top: 20px;
.ts-scrollable-container{
h2{
font-weight: bold;
@ -384,7 +382,6 @@ border-radius: 100px;
width: 100%;
margin: 0 auto;
overflow: hidden;
margin-top: 40px;
.ts-scrollable-container{
h2{
font-weight: bold;
@ -441,7 +438,6 @@ cursor: pointer;
}
.rc-main {
margin-top: 7.25rem;
}
.ts-scrollable-container{

View File

@ -459,11 +459,11 @@ export default {
font-size: 16px;
margin-left: 2px;
width:100%;
padding-bottom:.25rem;
padding-bottom:.5rem;
background:url("../assets/image/ico-location.png") no-repeat 98% center;
background-size:16px;
position:relative;
top:.5rem;
top:.45rem;
padding-left:.875rem;
}
.ts-area-picker-mobile{

View File

@ -14,6 +14,7 @@
</template>
<script>
import { mapMutations } from "vuex";
export default {
data(){
return{
@ -39,6 +40,7 @@ export default {
}
},
methods:{
...mapMutations(["checkIsLogin"]),
lianxi(item,index){
if(item.title=='在线客服'){
var option = {
@ -85,10 +87,14 @@ export default {
this.gotop = false
}
}
},
created(){
},
mounted(){
//Check login
let usernot=JSON.parse(localStorage.getItem("userInfo"));
this.checkIsLogin();
let usernot = this.$store.state.userInfo;
//console.log(usernot);
if(usernot==null ||usernot==undefined){
this.loginornot=true

View File

@ -1,9 +1,9 @@
<template>
<div class="crumbs" v-if="showTab">
<div class="ts-crumbs rc-max-width--xl rc-padding-y--md" v-if="showTab" :style="crumbStyle">
<el-breadcrumb separator-class="el-icon-arrow-right">
<el-breadcrumb-item to="/" >{{ this.homepageName }}</el-breadcrumb-item>
<el-breadcrumb-item :to=item.path v-for="(item, index) in crumbs"
<el-breadcrumb-item :to=item.path v-for="(item, index) in displayData"
:key="index">{{ item.title }}</el-breadcrumb-item>
</el-breadcrumb>
</div>
@ -11,171 +11,73 @@
<script>
import { mapState, mapMutations } from "vuex";
import tabs from "~/components/tabs.vue";
export default {
props:["crumbs"],
props:["crumbs","crumbStyle"],
name:"crumbs",
data() {
return {
homepageName:'首页'
displayData:[],
homepageName:'定制营养方案',
nameMapping:{
'/productdetails/productlist':'产品分类',
'/usersearch/search':'产品搜索',
'/personal/mypersonal':'个人中心',
'/personal/usermember/':'会员权益',
'/personal/integral/':'积分明细',
'/personal/settlement/':'订单确认',
'/myorder/userrecord/':'购物车'
},
};
},
created(){
if(this.showTab != false)
this.showTab=true;
this.build();
},
watch: {
crumbs(val) {
this.crumbs = val;
this.build();
}
},
mounted() {
},
methods: {
...mapMutations(["changemessage",'selectMenu'])
//...mapMutations(["changemessage",'selectMenu']),
build() {
let _self = this;
this.displayData=[];
if(this.crumbs && this.crumbs.length>0)
{
this.crumbs.forEach(function(ele,index){
let displayObj= {path:'',title:''};
if(ele.path) {
displayObj.path = ele.path;
for(let path in _self.nameMapping) {
if(ele.path.indexOf(path)>-1) {
displayObj.path = path;
displayObj.title = _self.nameMapping[path];
}
}
}
if(ele.title) {
displayObj.title = ele.title;
}
_self.displayData.push(displayObj);
});
}
}
}
};
</script>
<style lang="less" scoped>
.crumbs{
width: 93%;
margin: 0 auto;
display: flex;
height: 40px;
align-items: center;
margin-top: 70px;
}
.tags-scroll-content {
position: relative;
box-sizing: border-box;
width: 100%;
height: 43px;
z-index: 0;
overflow: hidden;
// padding: 0 66px 0 21px;
}
.tabs {
user-select: none;
z-index: 20;
width: 100%;
height: 43px;
top: 60px;
height: 42px;
background: white;
.tag {
display: inline-block;
height: 43px;
// position: absolute;
padding-right: 40px;
width: 100%;
overflow-x: auto;
white-space: nowrap;
}
.tags-scroll-content > i {
height: 40px;
line-height: 40px;
background: white;
cursor: pointer;
z-index: 1;
font-size: 16px;
}
.el-icon-arrow-left {
position: absolute;
left: 0;
width: 21px;
box-shadow: 0px 1px 8px 0px rgba(70, 70, 70, 0.32);
}
.el-icon-arrow-right {
position: absolute;
right: 40px;
width: 21px;
}
.close {
position: absolute;
right: 0;
top: 0;
color: black;
background: white;
height: 40px;
padding-left: 15px;
line-height: 40px;
width: 40px;
border-left: 1px solid #f1f1f1 !important;
font-size: 16px;
cursor: pointer;
}
.el-tag--dark {
background: white;
em {
display: inline-block;
vertical-align: middle;
height: 5px;
margin-right: 7px;
width: 5px;
border-radius: 50%;
background-color: #85ef47 !important;
box-shadow: 0 0 7px #b7eb8f;
}
}
.el-tag--dark {
color: #323233 !important;
.el-icon-close {
color: black !important;
}
}
.el-tag {
.el-icon-close {
font-size: 16px;
&:hover {
color: red !important;
background: white !important;
}
display: inline-block;
}
// width: 140px;
em {
display: inline-block;
vertical-align: middle;
height: 5px;
margin-right: 7px;
width: 5px;
border-radius: 50%;
background-color: white;
}
cursor: pointer;
height: 40px;
line-height: 40px;
display: inline-block;
text-align: center;
padding: 0;
color: #969799;
font-size: 13px;
float: left;
border-radius: 0;
border: 0;
> span {
display: inline-block;
vertical-align: middle;
}
i {
display: inline-block;
vertical-align: middle;
top: 0px;
}
.el-tag__close {
right: 0px;
color: #777777;
&:hover {
color: white;
}
}
.el-xie{
list-style: none;
font-style: normal;
margin: 0 8px;
}
/deep/.el-breadcrumb__inner.is-link:hover {
color:#E2001A;
}
.ts-crumbs{
padding-left:1.25rem;
}
</style>

View File

@ -0,0 +1,67 @@
<template>
<div class="wrapper">
<img src="/images/default.jpg">
<div v-if='error.statusCode==404'>
<h2>{{ error.statusCode }} 找不到指定页面</h2>
<div>
<a href="javascript:history.back()">返回上一页</a>
</div>
</div>
<div v-if='error.statusCode!=404'>
<h2>{{ error.statusCode }} 发现未知错误</h2>
<div>
<nuxt-link to="/">返回首页</nuxt-link>
</div>
</div>
</div>
</template>
<script>
export default {
props: ['error'],
layout: 'error',
created(){
},
method:{
backToLastPage(){
window.history.back();
},
backToHome(){
window.location.href="/";
}
}
}
</script>
<style lang="less" scoped >
html,body{
width:100%;
height:100%;
overflow:hidden;
}
.wrapper{
width:100%;
height:100%;
display:flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
}
h2{
font-size: 2.5rem;
line-height: 3.5rem;
color:#e2001a;
}
a{
color:#666;
text-decoration: none;
padding-bottom:.25rem;
border-bottom: 1px solid #666;
}
a:hover {
color:#e2001a;
border-color: #e2001a;
}
</style>

View File

@ -1,7 +1,5 @@
export default ({store, route, redirect}) => {
route.matched.forEach((item, index) => {
item.meta.title = route.meta[index].title || '';
item.meta.redirect = route.meta[index].redirect || '';//设置重定向
})
}

View File

@ -1,10 +1,10 @@
<template>
<div>
<div class="rc-header">
<Myheader></Myheader>
</div>
<div class="rc-main">
<tabs></tabs>
<div class="rc-top"></div>
<tabs :crumbs="crumbs"></tabs>
<div class="rc-main rc-max-width--xl">
<div class="cart-list">
<div class="header">
<div class="list-left">
@ -114,12 +114,21 @@
import Myheader from "~/components/header.vue";
import MyFooter from '~/components/rc-footer.vue'
import tabs from "@/components/tabs.vue";
import { mapMutations } from "vuex";
import { isexistCart, generateOrderWX, deleteCart } from "../../ajax/getData";
export default {
middleware: "metaTitle",
meta: { title: "购物车" },
data() {
return {
crumbs:[
{
path:'/productdetails/productlist/',
},
{
path:'/myorder/userrecord/'
}
],
ordersum: 1,
usercheckbox: false,
shopnum: 0,
@ -174,26 +183,26 @@ export default {
},
mounted() {
this.carmessage();
this.checkIsLogin();
},
components: {
Myheader,
tabs,
MyFooter,
MyFooter
},
methods: {
//
...mapMutations(["checkIsLogin"]),
async carmessage() {
let user = JSON.parse(localStorage.getItem("userInfo"));
let user = this.$store.state.userInfo;
this.userid = user.data.id;
let data = await isexistCart(user.data.id);
this.cartData = data;
// this.goldmedal = data;
},
async userjie(list) {
let user = JSON.parse(localStorage.getItem("userInfo"));
console.log(user);
let user = this.$store.state.userInfo;
this.userid = user.data.id;
let data = await generateOrderWX(list);
if (data) {
@ -201,7 +210,6 @@ export default {
type: "warning",
message: data.msg,
});
console.log(data);
this.$router.push({
path: "/personal/settlement",
query: {
@ -209,12 +217,11 @@ export default {
},
});
}
console.log(data);
},
//
async deletsmessage(productCode) {
let user = JSON.parse(localStorage.getItem("userInfo"));
let user = this.$store.state.userInfo;
this.userid = user.data.id;
let data = await deleteCart( productCode);
if (data) {
@ -287,7 +294,6 @@ export default {
if (this.ys1 == false) {
this.$nextTick(() => {
this.userdelete = "删除";
console.log(this.userdelete);
});
} else if (this.ys1 == true) {
this.$nextTick(() => {
@ -504,10 +510,6 @@ export default {
}
}
.rc-main {
width: 92%;
margin: 0 auto;
padding-top: 60px;
max-width: 1400px;
.cart-list {
width: 100%;
border: 1px solid #d7d7d7;
@ -775,8 +777,8 @@ export default {
width: 100%;
}
ul {
margin-top: -32px;
margin-left: 140px;
margin-top: -2rem;
margin-left: 9.75rem;
width: 50%;
.del {
display: none;
@ -796,6 +798,7 @@ export default {
bottom: 0;
width: 100%;
z-index: 10;
margin-bottom:0;
.rc-shop {
display: none;
}

View File

@ -2,6 +2,7 @@
<div>
<Myheader></Myheader>
<div class="rc-top"></div>
<tabs :crumbs="crumbs"></tabs>
<div class="rc-max-width--xl rc-padding-y--md">
<ul>
<li v-for="(item,index) in userrecord" :key="index">
@ -36,6 +37,14 @@ import Myheader from '~/components/header.vue'
export default {
data(){
return{
crumbs:[
{
path:'/personal/mypersonal',
},
{
path:'/personal/integral/',
}
],
userrecord:[
{
title:'日期',

View File

@ -3,6 +3,7 @@
<Myheader></Myheader>
<!-- <tabs></tabs> -->
<div class="rc-top"></div>
<tabs :crumbs="crumbs" :crumbStyle="`padding-left:0;`"></tabs>
<div class="rc-layout-container rc-one-column rc-full-width ts-mypersonal">
<div class="rc-column">
<!-- <div class="rc-title">
@ -152,6 +153,11 @@ export default {
meta: {title: '个人中心'},
data() {
return {
crumbs:[
{
path:'/personal/mypersonal',
}
],
userlog:false,
islogin:false,
dialogInfo1:false,

View File

@ -10,7 +10,7 @@ ul li ol li em strong i {
.settlement {
padding-top: 60px;
}
@ -465,7 +465,9 @@ ul li ol li em strong i {
display: none;
border: none;
padding: 0;
&.show {
display:block;
}
&.active {
display: block;
border: none;

View File

@ -1,9 +1,7 @@
<template>
<div class="settlement">
<Myheader></Myheader>
<div class="rc-main">
<tabs></tabs>
</div>
<div class="rc-top"></div>
<div class="rc_contline"></div>
<div class="rc-main">
<div class="address-list">
@ -28,7 +26,7 @@
<span>{{ item.address }}</span>
</div>
</div>
<div class="mypersonal add">
<div class="mypersonal add" :class="useraddress.length>0?'':'show'">
<div
class="my-delivery"
@click="addAddress"
@ -67,10 +65,12 @@
<span>配送方式:</span>
<i>{{ shopprice.price }}</i>
</li>
<!--
<li>
<span> 活动促销:</span>
<i>{{ shopprice.distribution }}</i>
</li>
-->
<li>
<span>商品总价:</span>
<i class="red">{{ sumPrice }}</i>
@ -97,7 +97,12 @@
</div>
</div>
</div>
<el-dialog :visible.sync="dialogAdd" class="diallog_width" width="'100%" :title="dialogAddTitle">
<el-dialog
:visible.sync="dialogAdd"
class="diallog_width"
width="'100%"
:title="dialogAddTitle"
>
<div class="tc dl_cont" v-if="dialogAdd">
<myAddress
@isClose="dialogCtrl"
@ -111,7 +116,7 @@
width="'100%"
title="选择收货地址"
>
<div class="tc dl_cont" style="padding-bottom: 50px;position: relative;">
<div class="tc dl_cont" style="padding-bottom: 50px; position: relative">
<div class="pop_list">
<el-row
class="mypersonal"
@ -120,7 +125,10 @@
:class="item.isDefault ? 'active' : ''"
>
<el-col :span="4"
><input type="checkbox" v-model="item.checked" @click="selectPopAddress(item)"
><input
type="checkbox"
v-model="item.checked"
@click="selectPopAddress(item)"
/></el-col>
<el-col :span="16" class="tl">
<div>
@ -154,6 +162,14 @@ export default {
meta: { title: "订单结算" },
data() {
return {
crumbs:[
{
path:'/productdetails/productlist/',
},
{
path:'/personal/settlement'
}
],
goldmedal: [],
dialogAddTitle: "",
addressstype: null,
@ -213,7 +229,7 @@ export default {
this.useraddress = data;
},
editAddress(item) {
this.dialogAddTitle='修改收货地址'
this.dialogAddTitle = "修改收货地址";
this.editAddressData = {
memberId: item.memberId,
name: item.recipient,
@ -231,7 +247,7 @@ export default {
this.dialogAdd = true;
},
addAddress() {
this.dialogAddTitle='新增收货地址'
this.dialogAddTitle = "新增收货地址";
this.editAddressData = {};
this.dialogAdd = true;
},
@ -239,9 +255,9 @@ export default {
this.useraddress.forEach((item) => {
if (item.id == cur.id) {
item.isDefault = true;
item.checked=true
item.checked = true;
} else {
item.checked=false
item.checked = false;
item.isDefault = false;
}
});
@ -250,9 +266,9 @@ export default {
this.useraddress.forEach((item) => {
if (item.id == cur.id) {
item.isDefault = true;
item.checked=true
item.checked = true;
} else {
item.checked=false
item.checked = false;
item.isDefault = false;
}
});
@ -268,7 +284,9 @@ export default {
let orderAddress = this.useraddress.filter((item) => item.isDefault);
let postData = [];
this.goldmedal.forEach((item) => {
let basePoint = (item.basePoint?item.basePoint:0);
let oneProduct = {
basePoint:basePoint,
productName: item.productName,
buyCount: item.buyCount,
productId: item.productCode,
@ -344,7 +362,9 @@ export default {
postData[0].orderAddress.addressUserName +
" " +
postData[0].orderAddress.addressPhoneNumber,
wxPay: "weixin://wxpay/bizpayurl?pr=4RJbokxzz",
// wxPay: "weixin://wxpay/bizpayurl?pr=4RJbokxzz",
// wxPay: "weixin://wxpay/bizpayurl?pr=4RJbokxzz",
wxPay: res.msg,
};
this.$router.push({
path: "/personal/userpay",
@ -384,9 +404,7 @@ export default {
</script>
<style lang="less" scoped>
@import url("../../assets/css/global.less");
//@import url("../../assets/css/global.less");
@import "./settlement.less";
// @import url("../../assets/css/settlement.less");
</style>

View File

@ -2,7 +2,8 @@
<div>
<Myheader></Myheader>
<div class="rc-top"></div>
<div class="rc-full-width rc-max-width--xl rc-padding-y--lg">
<tabs :crumbs="crumbs"></tabs>
<div class="rc-full-width rc-max-width--xl rc-padding-bottom--lg">
<div class="rc-main">
<div class="rc-center" >
@ -53,10 +54,19 @@
<script>
import Myheader from '~/components/header.vue'
import Myfooter from '~/components/rc-footer.vue'
import tabs from "~/components/tabs.vue";
export default {
data(){
return{
crumbs:[
{
path:'/personal/mypersonal',
},
{
path:'/personal/usermember/',
}
],
banners:[
{src:require("../../assets/image/rc-new.png"),link:""},
{src:require("../../assets/image/rc-new1.png"),link:""},
@ -251,7 +261,8 @@ methods:{
},
components:{
Myheader,
Myfooter
Myfooter,
tabs
},
mounted(){
console.log(this.$refs.userblock);

View File

@ -1,8 +1,8 @@
<template>
<div class="page_modules">
<Myheader></Myheader>
<div class="rc-top rc-md-up"></div>
<div class="cont_modules">
<tabs></tabs>
<el-row class="order_info">
<el-col :span="6" class="ph_hidden">
<ul class="li_inline">
@ -19,7 +19,7 @@
<el-col :span="6" class="ready_right">
<div class="inline_right">
<p>付款金额:</p>
<p class="price">{{ userPayData.userprice }}</p>
<p class="price">{{ userPayData.userprice }}</p>
</div>
<div class="inline_right">
<p>收货信息:</p>
@ -93,18 +93,20 @@ export default {
return {
activeIndex: 0,
isSucess: false,
dialogSuccess: false,
paytype: "微信",
userpaystype: [
{
paytype: "微信",
payimage: require("../../assets/pay/wx.png"),
},
/*
{
paytype: "支付宝",
payimage: require("../../assets/pay/zfb.png"),
},
*/
],
dialogSuccess: true,
dialogFail: false,
userPayData: {},
qrtext:'',
@ -163,15 +165,18 @@ export default {
}
},
//
async updateOrderWX() {
let res = await updateOrderWX();
async payOrderWX() {
let res = await updateOrderWX(this.userPayData.orderId);
if (res.success) {
this.qrtext = '成功加入群的二维码';
this.dialogSuccess = true;
clearInterval(this.time);
} else {
} else if (res.fail) {
this.dialogFail = true;
clearInterval(this.time);
}else{
this.payOrderWX()
}
},
},
@ -311,7 +316,7 @@ export default {
}
}
.paycord {
display: none;
//display: none;
}
}
</style>

View File

@ -2,8 +2,8 @@
<div>
<div class="user">
<Myheader></Myheader>
<unlogin></unlogin>
<tabs></tabs>
<div class="rc-top"></div>
<tabs :crumbs="crumbs"></tabs>
<div class="online" id="fixed-catbar-seperator"></div>
<div class="rc-top"></div>
<div
@ -321,10 +321,24 @@ export default {
stopIndex++;
}
}
productAttachmentList = newlist[0].productAttachmentList;
if(curItem.productAttachmentList != undefined)
productAttachmentList = curItem.productAttachmentList;
if(curItem.productName == undefined)
curItem = newlist[0];
userbuy = true;
}
if(!curItem || curItem.productName == undefined)
throw new Error("商品信息错误");
let crumbs = [
{
path:'/productdetails/productlist/',
},
{
title: curItem.productName,
}
];
return {
crumbs,
activeIndexa,
curItem,
newlist,
@ -568,7 +582,8 @@ export default {
item.picFile,
item.productName,
item.basePrice,
item.specifications
item.specifications,
item.leftAllotment
);
if (data) {
this.productlist = data;
@ -629,6 +644,8 @@ export default {
this.activeIndexa = index;
this.curItem = item;
this.productAttachmentList = item.productAttachmentList;
this.crumbs.pop();
this.crumbs.push({title: item.productName});
},
},
@ -637,6 +654,5 @@ export default {
</script>
<style lang="less" scoped>
@import url("../../assets/css/global.less");
@import url("../../assets/css/producted.less");
</style>

View File

@ -325,7 +325,6 @@ export default {
crumbs:[
{
path:'/productdetails/productlist/',
title:'产品列表',
}
],
value: "",

View File

@ -1,11 +1,8 @@
<template>
<div>
<transition name="fade">
<div class="userloding" v-show="isLoading"></div>
</transition>
<Myheader></Myheader>
<div class="rc-top"></div>
<tabs :crumbs="crumbs"></tabs>
<div class="rc-max-width--xl rc-main">
<div class="usersearch">
<div class="form-search">
@ -329,13 +326,18 @@
import Myheader from "~/components/header.vue";
import MyFooter from '~/components/rc-footer.vue'
import FixRight from "~/components/fixed-right.vue";
import tabs from "~/components/tabs.vue";
import { biaome, userstype, searchchanpin, userquery } from "../../ajax/getData";
export default {
data() {
return {
value: "",
crumbs:[
{
path:'/usersearch/search/',
}
],
isLoading: true,
userserachlist: [
{
categoryName: [], //
@ -516,7 +518,8 @@ export default {
components: {
Myheader,
MyFooter,
FixRight
FixRight,
tabs
},
mounted() {
this.usetmessage();