Browse Source

去掉 打印信息

feature/feature-compatible
fengchengzhi 7 years ago
parent
commit
d05e4f7c8c
5 changed files with 14 additions and 25 deletions
  1. 25
      src/view/home.vue
  2. 8
      src/view/month-card.vue
  3. 2
      src/view/poster.vue
  4. 2
      src/view/put-money-success.vue
  5. 2
      src/view/service-evaluation.vue

25
src/view/home.vue

@ -75,16 +75,16 @@
data() {
return {
show: false,
defaultCity: '天河区',
merchantNo: 2, //
districtId: '440106000', //id
defaultCity: '天河区', //
merchantNo: 2, //
districtId: '440106000', //id
addressData: [],
addressValue: [],
bannerImgList:[], //
promotionImgList: {}, //
goodsList:[],
imghost: "http://medou.oss-cn-shenzhen.aliyuncs.com/",
swiperOption: {//swiper3
swiperOption: {
autoplay: {
disableOnInteraction: false,
},
@ -106,7 +106,6 @@
},
watch: {
$route(to,from){
//this.getdefaultAddress()
this.getCityName ()
},
},
@ -119,14 +118,13 @@
this.getGoodsList() //
this.defaultCity = arr[1]
this.show = false
// console.log(this.addressValue)
localStorage.setItem('cityName',this.addressValue)
this.ShareWenXin()
// console.log('',localStorage.getItem("cityName"))
},
//
getCityName (){
let name = localStorage.getItem("cityName")||''
//
if(!name){
this.defaultCity = '天河区'
this.merchantNo = 2 //
@ -134,7 +132,6 @@
return;
}
//440000000&广,440100000&广,440106000&&2
// console.log(name)
let arr = name.split(',')
this.addressValue = arr
let cityNameArr = arr[2].split('&')
@ -144,9 +141,9 @@
},
//
change (name) {
// console.log(name)
this.addressValue = name
},
//
getGoodsList (){
let that = this
that.showLoading = true
@ -186,9 +183,9 @@
}
});
},
//
getAddress (){
homeApi.getAddress().then(res => {
// console.log(res)
if ( res.code == 0 ){
this.addressData = res.data
} else {
@ -208,7 +205,6 @@
homeApi.getdefaultAddress().then(res => {
if ( res.code == 0 ){
// console.log(res)
//
if ( !res.data ){
this.show = true
@ -220,8 +216,7 @@
this.addressValue = []
this.addressValue.push(res.data.provinceId)
this.addressValue.push(res.data.cityId)
this.addressValue.push(res.data.districtId)
// localStorage.setItem('cityName',this.addressValue)
this.addressValue.push(res.data.districtId)
}
} else {
this.$vux.toast.text(res.msg,"middle");
@ -240,10 +235,6 @@
this.getdefaultAddress()
this.getAddress()
this.ShareWenXin()
// console.log('',localStorage.getItem("cityName"))
},
destroyed () {
}
};
</script>

8
src/view/month-card.vue

@ -83,8 +83,6 @@
var locationUrl = configs.locationUrl;
// console.log(arr)
export default {
data() {
return {
@ -121,11 +119,11 @@
that.getData = result.response
} else {
console.log(result.msg);
//console.log(result.msg);
alert(result.msg);
}
});
},
// 使

2
src/view/poster.vue

@ -63,7 +63,7 @@
methods: {
getCityName (){
let name = localStorage.getItem("cityName")||''
console.log(name)
// console.log(name)
if(!name){
this.merchantNo = 2
this.defaultCity = '天河区'

2
src/view/put-money-success.vue

@ -45,7 +45,7 @@
getParams () {
//
this.num = this.$route.params.num
console.log(this.num)
// console.log(this.num)
}
},
mounted() {

2
src/view/service-evaluation.vue

@ -179,7 +179,7 @@ export default {
// this.getParam("bookNo") BD180726031513504110
model.getEvaluationNews({ bookNo: this.getParam("bookNo")}).then(res => {
//let code = res.code;
console.log(res)
// console.log(res)
if (res.code == 0) {
this.statusShow = false;

Loading…
Cancel
Save