Authored by bevishuang

H5增加商品列表

@@ -132,7 +132,7 @@ export default { @@ -132,7 +132,7 @@ export default {
132 a.url.action = 'go.list'; 132 a.url.action = 'go.list';
133 } 133 }
134 } 134 }
135 - 135 +
136 result.push(a); 136 result.push(a);
137 } 137 }
138 138
@@ -17,7 +17,7 @@ export default { @@ -17,7 +17,7 @@ export default {
17 }, 17 },
18 watch: { 18 watch: {
19 value(newVal) { 19 value(newVal) {
20 - this.link = newVal; 20 + this.link = this.value;
21 } 21 }
22 }, 22 },
23 methods: { 23 methods: {
@@ -78,30 +78,32 @@ @@ -78,30 +78,32 @@
78 // ] 78 // ]
79 }; 79 };
80 }, 80 },
81 - updated() { 81 + // updated() {
82 82
83 - this.loggerValue();  
84 - }, 83 + // this.loggerValue();
  84 + // },
85 methods: { 85 methods: {
86 - loggerValue(){  
87 - console.log('loggerValue===this.type')  
88 - console.log(this.type)  
89 - }, 86 + // loggerValue(){
  87 + // console.log('loggerValue===this.type')
  88 + // console.log(this.type)
  89 + // },
90 initAction() { 90 initAction() {
91 - console.log('loggerValue===this.value_')  
92 - console.log(this.type) 91 + // console.log('loggerValue===this.value_')
  92 + // console.log(this.type)
93 let action = []; 93 let action = [];
94 if(this.type === 'H5'){ 94 if(this.type === 'H5'){
95 action = [ 95 action = [
96 { 96 {
97 value: 'go.h5', 97 value: 'go.h5',
98 label: 'H5网页', 98 label: 'H5网页',
99 - isShow: true,  
100 }, 99 },
101 { 100 {
102 value: 'go.pool', 101 value: 'go.pool',
103 label: '商品池', 102 label: '商品池',
104 - isShow: true, 103 + },
  104 + {
  105 + value: 'go.list',
  106 + label: '商品列表',
105 }, 107 },
106 { 108 {
107 value: 'go.detail', 109 value: 'go.detail',
@@ -147,6 +149,7 @@ @@ -147,6 +149,7 @@
147 return action; 149 return action;
148 }, 150 },
149 updateStatus() { 151 updateStatus() {
  152 + // console.log('updateStatus');
150 const data = {url: this.url_, action: this.action_}; 153 const data = {url: this.url_, action: this.action_};
151 154
152 if (this.islogin) { 155 if (this.islogin) {
@@ -162,10 +165,13 @@ @@ -162,10 +165,13 @@
162 }, 165 },
163 watch: { 166 watch: {
164 url_(newVal) { 167 url_(newVal) {
165 - console.log(newVal); 168 + // console.log('url_');
  169 + // console.log(newVal);
166 this.updateStatus(); 170 this.updateStatus();
167 }, 171 },
168 action_(newVal) { 172 action_(newVal) {
  173 + // console.log('action_');
  174 + // console.log(newVal);
169 if (newVal === 'go.detail') { 175 if (newVal === 'go.detail') {
170 this.url_ = 'https://m.yohobuy.com/?pagename=productDetail'; 176 this.url_ = 'https://m.yohobuy.com/?pagename=productDetail';
171 } else if (newVal === 'go.pool') { 177 } else if (newVal === 'go.pool') {