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

8
src/view/month-card.vue

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

2
src/view/poster.vue

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

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

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

2
src/view/service-evaluation.vue

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

Loading…
Cancel
Save