|
|
@@ -4,12 +4,25 @@
|
|
|
您访问过的供货商
|
|
|
</view>
|
|
|
<view class="shop-list_box">
|
|
|
- <view>
|
|
|
+ <template v-if="!$util.isEmpty(list)">
|
|
|
+ <view
|
|
|
+ :key="item.shopId"
|
|
|
+ @click="pageTo({
|
|
|
+ url: '/admin/billing/customerPlace',
|
|
|
+ query: {
|
|
|
+ shopId: item.shopId,
|
|
|
+ }
|
|
|
+ })"
|
|
|
+ v-for="item in list">
|
|
|
<app-avatar-module src="https://goss.cfp.cn/creative/vcg/800/new/VCG41N1210205351.jpg" :width="120" />
|
|
|
<view class="tit">
|
|
|
- 宣言花行
|
|
|
+ {{item.shopName}}
|
|
|
</view>
|
|
|
</view>
|
|
|
+ </template>
|
|
|
+ <div v-else>
|
|
|
+ 暂无数据
|
|
|
+ </div>
|
|
|
</view>
|
|
|
<view class="app-footer">
|
|
|
<view class="des">
|
|
|
@@ -20,9 +33,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-// import AppSwiper from "@/components/app-swiper";
|
|
|
-// import AppImg from "@/components/app-img";
|
|
|
-// import { applyStatus } from "@/api/official";
|
|
|
+import { recentShop } from "@/api/official";
|
|
|
import { share } from "@/mixins";
|
|
|
import AppAvatarModule from "@/components/module/app-avatar";
|
|
|
export default {
|
|
|
@@ -31,14 +42,25 @@ export default {
|
|
|
mixins: [share],
|
|
|
data() {
|
|
|
return {
|
|
|
-
|
|
|
+ list:[]
|
|
|
};
|
|
|
},
|
|
|
onLoad() {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
-
|
|
|
+ async init(){
|
|
|
+ try {
|
|
|
+ const { data } = await recentShop({})
|
|
|
+ this.list = data
|
|
|
+ } catch(e){
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ getGhsList(){
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|