Browse Source

对接登录

master
前端-胡立永 7 months ago
parent
commit
2e2bc7cabd
2 changed files with 4 additions and 1 deletions
  1. +2
    -1
      pages/index/clearanceService.vue
  2. +2
    -0
      store/store.js

+ 2
- 1
pages/index/clearanceService.vue View File

@ -8,7 +8,8 @@
<view class="content">
<view class="bigImg">
<!--换成后端后删除对应的图片-->
<img src="../../static/image/clearanceService.png" alt="" style="width: 100%;height: 100%;">
<img :src="$store.state.pic" alt="" style="width: 100%;height: 100%;">
<!-- <img src="../../static/image/clearanceService.png" alt="" style="width: 100%;height: 100%;"> -->
</view>
<!--<view class="smallImg">-->
<!-- &lt;!&ndash;换成后端后删除对应的图片&ndash;&gt;-->


+ 2
- 0
store/store.js View File

@ -17,6 +17,7 @@ const store = new Vuex.Store({
customerPhone : '',//客服电话
productDetail : {},//商品详情用于中转
cartInfo : {},//采购商下单的时候供应商开户行信息
pic : '',//清关服务图片
},
getters: {
// 角色 true 为供应商 false 为采购商
@ -85,6 +86,7 @@ const store = new Vuex.Store({
state.buy = res.result.buy
state.shopData = res.result.shop
state.pic = res.result.pic
// 如果什么身份都没有,就去注册
if(!state.shopData && !state.buy){


Loading…
Cancel
Save