Commit 37be0f2f by tang

feat: 个人中心修改和境内码查询placeholder

parent 69293978
......@@ -5,7 +5,7 @@
<div class="top-banner-item language">
<el-dropdown class="language-dropdown" @command="handleClick">
<span class="el-dropdown-link">
{{languageTxt}}<i class="el-icon-arrow-down el-icon--right"></i>
{{ languageTxt }}<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown" class="language-dropdown-menu">
<el-dropdown-item command="中文">中文</el-dropdown-item>
......@@ -15,61 +15,64 @@
</div>
<div class="top-banner-item tb-hover">咨询电话:400-7000-690</div>
<div class="top-banner-item">
<img src="../../assets/image/head/wx.png" alt="" />
<img src="../../assets/image/head/wx.png" alt=""/>
<a class="tb-hover" target="_blank" :href="`${urls.ancc}gs1cnweixin.aspx`">官方微信</a>
</div>
<div class="top-banner-item">
<img src="../../assets/image/head/xlwb.png" alt="" />
<img src="../../assets/image/head/xlwb.png" alt=""/>
<a class="tb-hover" target="_blank" href="https://weibo.com/gs1cn">官方微博</a>
</div>
<div class="top-banner-item tb-hover" @click="handleSearch">
<img src="../../assets/image/head/search.png" alt="" />
<img src="../../assets/image/head/search.png" alt=""/>
</div>
<div @click="toAdmin" style="color: #00799e;display:flex;align-items: center;cursor: pointer;margin-left: 14px" v-if="user.username">
<!-- <img style="width:22px;"-->
<!-- src="../../assets/image/mymanage/pic_touxiang.png" alt="">-->
<span style="">个人中心:</span>
<span style="margin-left: 4px;font-weight: bold">{{ user.username }}</span>
</div>
<!-- <span @click="toAdmin" style="cursor: pointer;margin-left: 4px" v-if="user.username">{{ user.username }}</span>-->
<img v-if="user.username" @click="toAdmin" style="width:22px;cursor: pointer;margin-left: 20px"
src="../../assets/image/mymanage/pic_touxiang.png" alt="">
</div>
</div>
</template>
<script>
import { mapState } from "vuex";
import {mapState} from "vuex";
export default {
name: "topBanner",
computed: {
...mapState(["urls"]),
},
created () {
created() {
this.user = localStorage.getItem('loginInfo') ? JSON.parse(localStorage.getItem('loginInfo')) : {}
console.log(this.user)
},
data () {
data() {
return {
user: {},
languageTxt: '中文'
}
},
methods: {
toAdmin () {
toAdmin() {
if ((this.user.userType === 1 && this.user.isXT !== 1) || (this.user.userType === 2 && this.user.isXT !== 1) || (this.user.userType === 3 && this.user.levels === null)) {
this.$router.push({ path: '/MyManage/UnVerify/index' })
this.$router.push({path: '/MyManage/UnVerify/index'})
} else if (this.user.isXT === 1) {
this.$router.push({ path: '/MyManage/SystemMember/index' })
this.$router.push({path: '/MyManage/SystemMember/index'})
} else if (this.user.levels === 0) {
this.$router.push({ path: '/MyManage/admin/check' })
this.$router.push({path: '/MyManage/admin/check'})
} else if (this.user.levels === 1) {
this.$router.push({ path: '/MyManage/admin/check' })
this.$router.push({path: '/MyManage/admin/check'})
} else if (String(this.user.levels).length === 4) {
this.$router.push({ path: '/MyManage/admin/check' })
this.$router.push({path: '/MyManage/admin/check'})
}
},
handleSearch () {
handleSearch() {
this.$router.push({
path: "/Home/sousuo",
});
},
handleClick (val) {
handleClick(val) {
this.languageTxt = val
if (val == '中文') {
this.$router.push({
......
......@@ -27,13 +27,13 @@
<el-input
v-show="company === NAME"
v-model="companySearch.name"
placeholder="请输入正确的商品条码!"
placeholder="请输入正确的厂商名称!"
class="w240"
></el-input>
<el-input
v-show="company === ADDRESS"
v-model="companySearch.address"
placeholder="请输入正确的厂商名称!"
placeholder="请输入正确的厂商地址!"
class="w240"
></el-input>
</el-form-item>
......
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