清理多余的cdn
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
				
			|||||||
<template>
 | 
					<template>
 | 
				
			||||||
  <ai-fixed-btn v-if="!isTopPage||custom">
 | 
					  <ai-fixed-btn v-if="!isTopPage||custom">
 | 
				
			||||||
    <div class="AiBack" @click.stop="back">
 | 
					    <div class="AiBack" @click.stop="back">
 | 
				
			||||||
      <img :src="imgHomeUrl + 'back.png'" alt="">
 | 
					      <img :src="$cdn + 'home/back.png'" alt="">
 | 
				
			||||||
      <text>返回</text>
 | 
					      <text>返回</text>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
  </ai-fixed-btn>
 | 
					  </ai-fixed-btn>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,8 +11,6 @@ Vue.prototype.$store = store;
 | 
				
			|||||||
//初始化接口工具类
 | 
					//初始化接口工具类
 | 
				
			||||||
Vue.prototype.$http = axios;
 | 
					Vue.prototype.$http = axios;
 | 
				
			||||||
Vue.prototype.$cdn = 'https://cdn.cunwuyun.cn/dvcp/h5/';
 | 
					Vue.prototype.$cdn = 'https://cdn.cunwuyun.cn/dvcp/h5/';
 | 
				
			||||||
Vue.prototype.imgHomeUrl = 'https://cdn.cunwuyun.cn/dvcp/h5/home/';
 | 
					 | 
				
			||||||
Vue.prototype.imgOtherUrl = 'https://cdn.cunwuyun.cn/dvcp/h5/other/';
 | 
					 | 
				
			||||||
Object.keys(utils).map((e) => (Vue.prototype['$' + e] = utils[e]));
 | 
					Object.keys(utils).map((e) => (Vue.prototype['$' + e] = utils[e]));
 | 
				
			||||||
App.mpType = 'app';
 | 
					App.mpType = 'app';
 | 
				
			||||||
process.env.NODE_ENV == 'development' && new VConsole();
 | 
					process.env.NODE_ENV == 'development' && new VConsole();
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -44,9 +44,7 @@ export default {
 | 
				
			|||||||
      return this.flag ? '确定' : '查看详情'
 | 
					      return this.flag ? '确定' : '查看详情'
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    imgSrc() {
 | 
					    imgSrc() {
 | 
				
			||||||
      return this.flag
 | 
					      return   this.$cdn+'other/'+(this.flag?'kztcg.png':'kztsb.png')
 | 
				
			||||||
        ? this.imgOtherUrl + 'kztcg.png'
 | 
					 | 
				
			||||||
        : this.imgOtherUrl + 'kztsb.png'
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -41,9 +41,8 @@ export default {
 | 
				
			|||||||
      return this.flag ? '查看详情' : '我知道了'
 | 
					      return this.flag ? '查看详情' : '我知道了'
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    imgSrc() {
 | 
					    imgSrc() {
 | 
				
			||||||
      return this.flag
 | 
					      let {$cdn, flag} = this
 | 
				
			||||||
          ? this.imgOtherUrl + 'kztcg.png'
 | 
					      return `${$cdn}other/${flag ? 'kztcg' : 'kztsb'}.png`
 | 
				
			||||||
          : this.imgOtherUrl + 'kztsb.png'
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,69 +1,73 @@
 | 
				
			|||||||
<template>
 | 
					<template>
 | 
				
			||||||
  <div class="result-page">
 | 
					  <div class="result-page">
 | 
				
			||||||
    <img :src="imgSrc" alt="">
 | 
					    <img :src="imgSrc" alt="">
 | 
				
			||||||
    <text>{{text}}</text>
 | 
					    <text>{{ text }}</text>
 | 
				
			||||||
    <u-button type="primary" :custom-style="{width:'100%',borderRadius:'4px',marginTop:'48px'}" @click="goBack">{{btnText}}</u-button>
 | 
					    <u-button type="primary" :custom-style="{width:'100%',borderRadius:'4px',marginTop:'48px'}" @click="goBack">
 | 
				
			||||||
 | 
					      {{ btnText }}
 | 
				
			||||||
 | 
					    </u-button>
 | 
				
			||||||
    <back></back>
 | 
					    <back></back>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
  import Back from "../../../../components/AiBack"
 | 
					import Back from "../../../../components/AiBack"
 | 
				
			||||||
  export default {
 | 
					
 | 
				
			||||||
    name: "handlePage",
 | 
					export default {
 | 
				
			||||||
    components: {Back},
 | 
					  name: "handlePage",
 | 
				
			||||||
    data() {
 | 
					  components: {Back},
 | 
				
			||||||
      return {
 | 
					  data() {
 | 
				
			||||||
        flag: true
 | 
					    return {
 | 
				
			||||||
      }
 | 
					      flag: true
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  onLoad(val) {
 | 
				
			||||||
 | 
					    if (val.flag) {
 | 
				
			||||||
 | 
					      this.flag = val.flag
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  methods: {
 | 
				
			||||||
 | 
					    goBack() {
 | 
				
			||||||
 | 
					      uni.navigateBack({
 | 
				
			||||||
 | 
					        delta: 2
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  computed: {
 | 
				
			||||||
 | 
					    text() {
 | 
				
			||||||
 | 
					      return this.flag ? '处理成功!' : '处理失败'
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    onLoad(val) {
 | 
					    btnText() {
 | 
				
			||||||
      if (val.flag) {
 | 
					      return this.flag ? '查看详情' : '我知道了'
 | 
				
			||||||
        this.flag = val.flag
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    methods: {
 | 
					    imgSrc() {
 | 
				
			||||||
      goBack() {
 | 
					      let {$cdn, flag} = this
 | 
				
			||||||
        uni.navigateBack({
 | 
					      return `${$cdn}other/${flag ? 'kztcg' : 'kztsb'}.png`
 | 
				
			||||||
          delta:2
 | 
					 | 
				
			||||||
        })
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    computed: {
 | 
					 | 
				
			||||||
      text(){
 | 
					 | 
				
			||||||
        return this.flag ? '处理成功!' : '处理失败'
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      btnText(){
 | 
					 | 
				
			||||||
        return this.flag ? '查看详情' : '我知道了'
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      imgSrc(){
 | 
					 | 
				
			||||||
        return this.flag ? (this.imgOtherUrl + 'kztcg.png') : (this.imgOtherUrl + 'kztsb.png')
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<style lang="scss" scoped>
 | 
					<style lang="scss" scoped>
 | 
				
			||||||
  .result-page {
 | 
					.result-page {
 | 
				
			||||||
    min-height: 100%;
 | 
					  min-height: 100%;
 | 
				
			||||||
    background-color: #ffffff;
 | 
					  background-color: #ffffff;
 | 
				
			||||||
    display: flex;
 | 
					  display: flex;
 | 
				
			||||||
    flex-direction: column;
 | 
					  flex-direction: column;
 | 
				
			||||||
    align-items: center;
 | 
					  align-items: center;
 | 
				
			||||||
    padding: 96px ;
 | 
					  padding: 96px;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    img {
 | 
					  img {
 | 
				
			||||||
      width: 192px;
 | 
					    width: 192px;
 | 
				
			||||||
      height: 192px;
 | 
					    height: 192px;
 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    text{
 | 
					 | 
				
			||||||
      font-size: 36px;
 | 
					 | 
				
			||||||
      font-weight: 800;
 | 
					 | 
				
			||||||
      color: #333333;
 | 
					 | 
				
			||||||
      line-height: 50px;
 | 
					 | 
				
			||||||
      display: flex;
 | 
					 | 
				
			||||||
      justify-content: center;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  text {
 | 
				
			||||||
 | 
					    font-size: 36px;
 | 
				
			||||||
 | 
					    font-weight: 800;
 | 
				
			||||||
 | 
					    color: #333333;
 | 
				
			||||||
 | 
					    line-height: 50px;
 | 
				
			||||||
 | 
					    display: flex;
 | 
				
			||||||
 | 
					    justify-content: center;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
</style>
 | 
					</style>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -39,7 +39,7 @@
 | 
				
			|||||||
          <u-row>
 | 
					          <u-row>
 | 
				
			||||||
            <img
 | 
					            <img
 | 
				
			||||||
              class="avatar"
 | 
					              class="avatar"
 | 
				
			||||||
              :src="item.portrait ? item.portrait : imgOtherUrl + 'tx.png'"
 | 
					              :src="item.portrait ? item.portrait : $cdn + 'other/tx.png'"
 | 
				
			||||||
              alt=""/>
 | 
					              alt=""/>
 | 
				
			||||||
            <div class="wrap">
 | 
					            <div class="wrap">
 | 
				
			||||||
              <span class="name">{{ item.nickName }}</span>
 | 
					              <span class="name">{{ item.nickName }}</span>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -81,7 +81,7 @@ export default {
 | 
				
			|||||||
  },
 | 
					  },
 | 
				
			||||||
  computed: {
 | 
					  computed: {
 | 
				
			||||||
    uri() {
 | 
					    uri() {
 | 
				
			||||||
      return this.imgOtherUrl + 'line.png'
 | 
					      return this.$cdn+'other/' + 'line.png'
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -37,7 +37,7 @@
 | 
				
			|||||||
        return this.flag ? '确定' : '我知道了'
 | 
					        return this.flag ? '确定' : '我知道了'
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      imgSrc(){
 | 
					      imgSrc(){
 | 
				
			||||||
        return this.flag ? (this.imgOtherUrl + 'kztcg.png') : (this.imgOtherUrl + 'kztsb.png')
 | 
					        return this.flag ? (this.$cdn+'other/' + 'kztcg.png') : (this.$cdn+'other/' + 'kztsb.png')
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -38,7 +38,7 @@ export default {
 | 
				
			|||||||
      return this.flag ? '确定' : '我知道了'
 | 
					      return this.flag ? '确定' : '我知道了'
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    imgSrc() {
 | 
					    imgSrc() {
 | 
				
			||||||
      return this.flag ? this.imgOtherUrl + 'kztcg.png' : this.imgOtherUrl + 'kztsb.png'
 | 
					      return this.flag ? this.$cdn+'other/' + 'kztcg.png' : this.$cdn+'other/' + 'kztsb.png'
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user