|
|
@@ -114,18 +114,21 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- toBuy(item){
|
|
|
- this.$util.pageTo({url:"/pages/goods/detail?id="+item.id+'&hdId='+this.hdId+'&categoryId='+this.form.categoryId})
|
|
|
- },
|
|
|
- buyProduct(){
|
|
|
- this.$util.pageTo({url:"/pages/item/item?account="+this.option.account+'&hdId='+this.hdId,type:2})
|
|
|
- },
|
|
|
- loginTo() {
|
|
|
- this.$util.pageTo({url:"/pages/login/index?needBack=1"})
|
|
|
- },
|
|
|
- init(){
|
|
|
- this.hdId = this.option.hdId ? this.option.hdId : 0
|
|
|
- this.classInit()
|
|
|
+ toBuy(item){
|
|
|
+ let account = this.option.account?this.option.account:0
|
|
|
+ this.$util.pageTo({url:"/pages/goods/detail?id="+item.id+'&hdId='+this.hdId+'&categoryId='+this.form.categoryId+'&account='+account})
|
|
|
+ },
|
|
|
+ buyProduct(){
|
|
|
+ let account = this.option.account?this.option.account:0
|
|
|
+ this.$util.pageTo({url:"/pages/item/item?account="+account+'&hdId='+this.hdId,type:2})
|
|
|
+ },
|
|
|
+ loginTo() {
|
|
|
+ let account = this.option.account?this.option.account:0
|
|
|
+ this.$util.pageTo({url:"/pages/login/index?needBack=1&account="+account})
|
|
|
+ },
|
|
|
+ init(){
|
|
|
+ this.hdId = this.option.hdId ? this.option.hdId : 0
|
|
|
+ this.classInit()
|
|
|
getInfo({hdId:this.hdId}).then(res=>{
|
|
|
if(res.code == 1){
|
|
|
if(res.data.info && res.data.info.merchantName){
|