deviceGuide_frm.html
3.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<title>设备列表窗口</title>
<link rel="stylesheet" type="text/css" href="../../css/api.css"/>
<link rel="stylesheet" type="text/css" href="../../css/aui.css"/>
<link rel="stylesheet" type="text/css" href="../../css/home.css"/>
<link rel="stylesheet" type="text/css" href="../../css/element.css"/>
<link rel="stylesheet" type="text/css" href="../../css/style.css"/>
<link rel="stylesheet" type="text/css" href="../../css/mine/mine.css"/>
<style>
html,
body{
background: #F4F6F9;
}
</style>
</head>
<body>
<div id="app">
<template>
<div v-for="(list_d, list_i) in productList">
<div class="device-guide-list-panel" @click="openGuideByModel(list_d.data[0].table)">
<div class="device-guide-inside-list-panel">
<div class="aui-row aui-row-flex" tapmode>
<div class="aui-col aui-col-span-13 aui-row-flex-start">
<span class="device-guide-name"> {{ list_d.name }}</span>
</div>
<div class="aui-col aui-col-span-11 aui-row-flex-end">
<img src="../../image/to-go.png" style="width:18px;height:18px;margin-top: 0.9rem;" />
</div>
</div>
</div>
</div>
<div class="panel-line"></div>
</div>
</template>
</div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="../../script/vue.min.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript" src="../../script/element.js"></script>
<script type="text/javascript" src="../../script/ctrl.js"></script>
<script type="text/javascript">
var vm;
apiready = function(){
api.parseTapmode();
//---------初始化vue
vm = new Vue({
el: '#app',
data: {
productList: []
},
mounted() {
//window.chooseProduct = this.chooseProduct;
},
created() {
this.initProducts()
},
methods: {
async initProducts() {
let res = await get_store_model()
this.productList = res.data
console.log(JSON.stringify(this.productList));
},
async openGuideByModel(table) {
api.sendEvent({
name: 'open_detail_guide',
extra: {table: table}
});
let res = await get_guide_html_str(table)
// console.log(JSON.stringify(res));
api.openFrame({
name: 'store'+ table + '_guide',
url: './store'+ table + '_guide.html',
data: res.data,
rect: {
x: 0,
y: api.pageParam.headerH,
w: api.frameWidth,
h: api.winHeight-api.pageParam.headerH-api.pageParam.footerH
},
hScrollBarEnabled: true,
vScrollBarEnabled: true,
slidBackEnabled: true,
animation: {
type:"movein",
subType:"from_right",
duration:300
},
});
}
}
})
};
</script>
</html>