Commit b08bddac authored by chenqikuai's avatar chenqikuai

链查查文案以及banner图修改

parent 0290082e
VUE_APP_SERVER=/api
VUE_APP_BROWSER=http://120.26.174.69:9032
VUE_APP_NAME=链查查溯源平台
VUE_APP_CATEGORY=sy
VUE_APP_BANNER=bannerChainSearch
\ No newline at end of file
NODE_ENV=production
VUE_APP_SERVER=/api
VUE_APP_BROWSER=https://cx.chain33.pro
VUE_APP_NAME=链查查溯源平台
VUE_APP_CATEGORY=sy
VUE_APP_BANNER=bannerChainSearch
\ No newline at end of file
# 1.需要(git )bash
# 2.如没有没pub文件,使用bash本地生成公私钥对: ssh-keygen;
# 3.ssh-copy-id上传公钥到服务器: ssh-copy-id -i C:/Users/dell/.ssh/id_rsa.pub root@47.99.88.168
# 4.测试: test with 'ssh root@47.99.88.168'
# 如果依然需要密码
# vim /etc/ssh/ssh_config
# 修改
# Host *
# RSAAuthentication yes
# PubkeyAuthentication yes
# GSSAPIAuthentication yes
# 其中,RSAAuthentication yes 与 PubkeyAuthentication yes 是本文件的新增内容。
mv dist tracesourcemb
tar -czf tracesourcemb.tar tracesourcemb
rm -rf tracesourcemb
scp tracesourcemb.tar root@124.70.129.56:/usr/share/nginx/html/tracesourcemb.tar
rm -rf tracesourcemb.tar
ssh root@124.70.129.56 'cd /usr/share/nginx/html && rm -rf tracesourcemb && tar -xzf tracesourcemb.tar && rm -rf tracesourcemb.tar'
echo 'done. 👉 http://124.70.129.56:8994'
\ No newline at end of file
......@@ -5,6 +5,8 @@
"scripts": {
"serve:sy": "vue-cli-service serve --mode developmentsy",
"serve:cs": "vue-cli-service serve --mode developmentcs",
"serve:hl": "vue-cli-service serve --mode devHL",
"build:hl": "vue-cli-service build --mode devHL",
"build:sytest": "vue-cli-service build --mode testsy",
"build:cstest": "vue-cli-service build --mode testcs",
"build": "vue-cli-service build --mode productionsy",
......
<template>
<div class="index">
<van-image
v-if="banner === 'bannerChainSearch'"
class="banner"
src="@/assets/bannerChainSearch.png"
fit="contain"
width="100%"
></van-image>
<van-image
v-else
class="banner"
src="@/assets/indexbanner.png"
fit="contain"
......@@ -170,6 +178,10 @@ export default class IndexSy extends Mixins(IndexMixin) {
this.show = true;
}
private get banner(){
return process.env.VUE_APP_BANNER
}
private async addFolder({ folderName }: any) {
this.showAddFolder = false;
await this.$api.template.addFolder(folderName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment