更换logo

cyl/dev
jscyl13849007907 1 year ago
parent be10820c08
commit bc7840871c

@ -12,7 +12,8 @@
}" }"
> >
<div class="item-logo g_flex_none"> <div class="item-logo g_flex_none">
<img src="../../../../static/img/gyl.jpg" class="img" /> <img src="../../../../static/img/gyl.jpg" class="img" v-if="index == 0" alt="">
<img :src="item.logo" class="img" v-if="index == 1 && item.logo" />
</div> </div>
<div class="item-title g_flex_1 g_flex_column_center"> <div class="item-title g_flex_1 g_flex_column_center">
<div class="title-text">{{item.title}}</div> <div class="title-text">{{item.title}}</div>
@ -25,6 +26,7 @@
</template> </template>
<script> <script>
import { getUserManagerApi } from "../../../api/userinfo";
export default { export default {
name: 'promotion', name: 'promotion',
data() { data() {
@ -44,7 +46,22 @@
] ]
} }
}, },
props:{
'code':{
default:''
}
},
mounted() {
this.init()
},
methods: { methods: {
init(){
getUserManagerApi().then(({ data }) => {
let _data = data.data;
this.list[0].logo = '../../../../static/img/gyl.jpg'
this.list[1].logo = _data.qrCode
});
},
handleEnter($item,$index){ handleEnter($item,$index){
if($index == 0){ if($index == 0){
this.active = 1 this.active = 1

@ -885,7 +885,7 @@
</div> </div>
<!-- 右侧 --> <!-- 右侧 -->
<div class="rightCard g_flex_none"> <div class="rightCard g_flex_none">
<promotion /> <promotion :code="managerInfo.qrCode" />
</div> </div>
</div> </div>
</div> </div>
@ -1321,10 +1321,10 @@ export default {
*/ */
getUserManager() { getUserManager() {
getUserManagerApi().then(({ data }) => { getUserManagerApi().then(({ data }) => {
console.log(data); console.log('this.managerInfo',this.managerInfo);
this.$store.commit("setManagerInfo", data.data); this.$store.commit("setManagerInfo", data.data);
this.managerInfo = data.data; this.managerInfo = data.data;
console.log("+++++++++++++++++++++++++", this.$store); console.log("+++++++++++++++++++++++++", this.managerInfo);
}); });
}, },
async getRecommendJob() { async getRecommendJob() {

Loading…
Cancel
Save