瀏覽代碼

供货商模拟数据

jiangfeng 5 年之前
父節點
當前提交
f030328d6e
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      ghsApp/src/admin/ghs/shop.vue

+ 6 - 6
ghsApp/src/admin/ghs/shop.vue

@@ -37,11 +37,11 @@
 <template>
 <template>
 	<div class="app-content">
 	<div class="app-content">
 			<view class="list-box">
 			<view class="list-box">
-				<view class="flex list">
-						<image src="https://img.hzghd.com/ghs/home/kd.png"></image>
+				<view class="flex list" v-for="res in list">
+						<image :src="res.img"></image>
 					<view class="list-msg">
 					<view class="list-msg">
-							<view>花卉名称</view>
-							<text>累积消费2000</text>
+							<view>{{res.name}}</view>
+							<text>累积消费{{res.money}}</text>
 					</view>
 					</view>
 				</view>
 				</view>
 			</view>
 			</view>
@@ -54,7 +54,7 @@
 		name: 'ghs-shop',
 		name: 'ghs-shop',
 		data() {
 		data() {
 			return {
 			return {
-				
+				list:[],
 			}
 			}
 		},
 		},
 		onLoad() {
 		onLoad() {
@@ -65,7 +65,7 @@
 		methods: {
 		methods: {
 			_getList(){
 			_getList(){
 				getList({ type: 0 }).then(res => {
 				getList({ type: 0 }).then(res => {
-					console.log(res);
+					this.list = res
 				});
 				});
 			},
 			},
 		}
 		}