...
|
...
|
@@ -78,30 +78,32 @@ |
|
|
// ]
|
|
|
};
|
|
|
},
|
|
|
updated() {
|
|
|
// updated() {
|
|
|
|
|
|
this.loggerValue();
|
|
|
},
|
|
|
// this.loggerValue();
|
|
|
// },
|
|
|
methods: {
|
|
|
loggerValue(){
|
|
|
console.log('loggerValue===this.type')
|
|
|
console.log(this.type)
|
|
|
},
|
|
|
// loggerValue(){
|
|
|
// console.log('loggerValue===this.type')
|
|
|
// console.log(this.type)
|
|
|
// },
|
|
|
initAction() {
|
|
|
console.log('loggerValue===this.value_')
|
|
|
console.log(this.type)
|
|
|
// console.log('loggerValue===this.value_')
|
|
|
// console.log(this.type)
|
|
|
let action = [];
|
|
|
if(this.type === 'H5'){
|
|
|
action = [
|
|
|
{
|
|
|
value: 'go.h5',
|
|
|
label: 'H5网页',
|
|
|
isShow: true,
|
|
|
},
|
|
|
{
|
|
|
value: 'go.pool',
|
|
|
label: '商品池',
|
|
|
isShow: true,
|
|
|
},
|
|
|
{
|
|
|
value: 'go.list',
|
|
|
label: '商品列表',
|
|
|
},
|
|
|
{
|
|
|
value: 'go.detail',
|
...
|
...
|
@@ -147,6 +149,7 @@ |
|
|
return action;
|
|
|
},
|
|
|
updateStatus() {
|
|
|
// console.log('updateStatus');
|
|
|
const data = {url: this.url_, action: this.action_};
|
|
|
|
|
|
if (this.islogin) {
|
...
|
...
|
@@ -162,10 +165,13 @@ |
|
|
},
|
|
|
watch: {
|
|
|
url_(newVal) {
|
|
|
console.log(newVal);
|
|
|
// console.log('url_');
|
|
|
// console.log(newVal);
|
|
|
this.updateStatus();
|
|
|
},
|
|
|
action_(newVal) {
|
|
|
// console.log('action_');
|
|
|
// console.log(newVal);
|
|
|
if (newVal === 'go.detail') {
|
|
|
this.url_ = 'https://m.yohobuy.com/?pagename=productDetail';
|
|
|
} else if (newVal === 'go.pool') {
|
...
|
...
|
|