Commit 396bd7db by 李伟康

commit 提交

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