Commit 396bd7db by 李伟康

commit 提交

1 parent 3cb25454
...@@ -10,7 +10,11 @@ ...@@ -10,7 +10,11 @@
finishDoneText="下一步" finishDoneText="下一步"
finishContene="当前操作是为强制退出接待,若完成客户接待请点击下一步。" finishContene="当前操作是为强制退出接待,若完成客户接待请点击下一步。"
> >
<view class="module-box" slot="module" :key="moduleKey"> <view
class="module-box"
slot="module"
:key="moduleKey"
>
<template v-for="(i, index) in moduleList"> <template v-for="(i, index) in moduleList">
<view <view
:key="index" :key="index"
...@@ -18,7 +22,11 @@ ...@@ -18,7 +22,11 @@
:style="i.style" :style="i.style"
@click="toDetail(i)" @click="toDetail(i)"
> >
<image class="item-img" :src="i.thumbnail" mode="scaleToFill" /> <image
class="item-img"
:src="i.thumbnail"
mode="scaleToFill"
/>
</view> </view>
</template> </template>
</view> </view>
...@@ -39,7 +47,10 @@ ...@@ -39,7 +47,10 @@
/> />
</template> </template>
<template slot="content"> <template slot="content">
<customer-type ref="customerTypeRef" @choose="chooseCustomerType" /> <customer-type
ref="customerTypeRef"
@choose="chooseCustomerType"
/>
</template> </template>
</home-frame> </home-frame>
</template> </template>
...@@ -87,10 +98,11 @@ export default { ...@@ -87,10 +98,11 @@ export default {
methods: { methods: {
...mapMutations("audio", ["setReceptionStatus"]), ...mapMutations("audio", ["setReceptionStatus"]),
init () { init () {
this.customerType = -1
this.getSoure()
const userInfo = uni.$storage.get("userInfo"), const userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo; { shopMerchantId } = userInfo;
this.customerType = -1
this.getSoure(shopMerchantId)
/**获取品牌车型 */ /**获取品牌车型 */
uni.$api.commonApi uni.$api.commonApi
.getMerchantCarBrandList([shopMerchantId]) .getMerchantCarBrandList([shopMerchantId])
...@@ -118,9 +130,10 @@ export default { ...@@ -118,9 +130,10 @@ export default {
}); });
}, },
// 查询素材 // 查询素材
async getSoure () { async getSoure (merchantNo) {
const moduleList = await uni.$api.commonApi.findSoureList({ const moduleList = await uni.$api.commonApi.findSoureList({
bussinessType: 2 bussinessType: 2,
merchantNo
}); });
moduleList.map((e, index) => { moduleList.map((e, index) => {
if (index < 2) { if (index < 2) {
......
...@@ -33,6 +33,7 @@ export default { ...@@ -33,6 +33,7 @@ export default {
}, },
methods: { methods: {
toLogin () { toLogin () {
uni.hideLoading()
uni.$storage.rm("userInfo") uni.$storage.rm("userInfo")
uni.reLaunch({ uni.reLaunch({
url: '/pages/common/login' url: '/pages/common/login'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!