koahub源码平台里面开源的微商城源码如何进行二开?

wemall微信商城 发布于 2016/10/20 14:31
阅读 230
收藏 0

比如这种的

ndex_index.html

?
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<html>
<head>
<metahttp-equiv="Content-Type"content="text/html; charset=UTF-8">
<title>{$info.name}</title>
<metaname="viewport"
    content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<linkhref="__CSS__/foods.css"rel="stylesheet"type="text/css">
<scripttype="text/javascript"src="__JS__/jquery.min.js"></script>
<scripttype="text/javascript"src="__JS__/wemall.js"></script>
<scripttype="text/javascript"src="__JS__/alert.js"></script>
 
<scripttype="text/javascript">
var appurl = '__APP__';
var rooturl = '__ROOT__';
var indexurl = '{:U("App/Index/index")}';
</script>
 
</head>
<bodyclass="sanckbg mode_webapp">
    <divid="menu-container"style="display: block;">
        <divclass="menu_header">
            <divclass="menu_topbar">
                <divid="menu"class="sort sort_on">
                    <ahref="">{$info.name}</a>
                    <ul>
                        <volistname="menu"id="menuid">
                            <li><ahref="javascript:showProducts('{$menuid.id}')">{$menuid.name}</a></li>
                        </volist>
                        <li><ahref="javascript:showAll()">所有商品</a></li>
                    </ul>
                </div>
                <aclass="head_btn_right"href="javascript:showMenu();"><i
                    class="menu_header_home"></i> </a>
            </div>
        </div>
 
        <divclass="gonggao">
            <divclass="hot">
                <strong>公告</strong>
            </div>
            <divclass="content">{$info.notification}</div>
        </div>
 
        <sectionclass="menu">
            <sectionclass="list listimg">
                <dl>
                    <dt>菜单</dt>
                    <divclass="ccbg">
                        <volistname="goods"id="goodsvo">
                        <ddmenu="{$goodsvo.menu_id}">
                            <divclass="tupian">
                                <imgsrc="__PUBLIC__{$goodsvo.savepath}{$goodsvo.image}"
                                    onclick="showDetail('{$goodsvo.id}');"> <a
                                    href="javascript:doProduct('{$goodsvo.id}','{$goodsvo.name}','{$goodsvo.price}');"class="add"><p
                                        class="dish2">{$goodsvo.name}</p>
                                    <pclass="price2">{$goodsvo.price}元/份</p>
                                    <p>
                                        <del>{$goodsvo.old_price}元/份</del>
                                    </p></a>
                            </div>
                            <ahref="javascript:doProduct('{$goodsvo.id}','{$goodsvo.name}','{$goodsvo.price}');"id="{$goodsvo.id}"class="reduce"style="display: block;"><bclass="ico_reduce">减一份</b></a>
                        </dd>
                        </volist>
                    </div>
                </dl>
            </section>
 
            <divid="mcover"onclick="document.getElementById('mcover').style.display='';">
                <divid="Popup"style="display: block;">
                    <divclass="imgPopup">
                        <imgid="detailpic"src="">
                        <h3id="detailtitle"></h3>
                        <pclass="jianjie"id="detailinfo"></p>
                    </div>
                </div>
                <aclass="close"onclick="document.getElementById('mcover').style.display='';">X</a>
            </div>
 
        </section>
    </div>
 
    <divid="cart-container"style="display: none;">
        <divclass="menu_header">
            <divclass="menu_topbar">
                <divid="menu"class="sort">
                    <ahref="">购物车</a>
                </div>
            </div>
        </div>
 
        <sectionclass="order">
            <divclass="orderlist">
 
                <ulid="ullist">
                    <dt>已选购的</dt>
                </ul>
                 
                <ulid="cartinfo">
                    <dt>购物车总计</dt>
                    <liclass="ccbg2"id="emptyLii">已选:<spanid="totalNum">0</span>份 共计:¥<spanid="totalPrice">0</span>元</li>
                </ul>
                <divclass="twobtn">
                    <divclass="footerbtn">
                        <aclass="del right3"href="javascript:home();">选购</a>
                    </div>
                    <divclass="footerbtn">
                        <aclass="submit left3"onclick="clearCache()">清空</a>
                    </div>
                    <divclass="clr"></div>
                </div>
            </div>
 
            <formname="infoForm"id="infoForm"method="post"action="">
                <divclass="contact-info">
                    <ul>
                        <liclass="title">联系信息</li>
                        <li>
                            <tablestyle="padding: 0; margin: 0; width: 100%;">
                                <tbody>
                                    <tr>
                                        <tdwidth="80px"><labelfor="name"class="ui-input-text">联系人:</label></td>
                                        <td>
                                            <divclass="ui-input-text">
                                                <inputid="name"name="name"placeholder=""value="{$users.username}"type="text"
                                                    class="ui-input-text">
                                            </div></td>
                                    </tr>
 
                                    <tr>
                                        <tdwidth="80px"><labelfor="phone"class="ui-input-text">联系电话:</label></td>
                                        <td>
                                            <divclass="ui-input-text">
                                                <inputid="phone"name="phone"placeholder=""value="{$users.phone}"type="tel"
                                                    class="ui-input-text">
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <tdwidth="80px"><labelfor="pay"class="ui-input-text">支付方式:</label></td>
                                        <tdcolspan="2"><selectname="pay"class="selectstyle"
                                            id="select1">
                                                <optionvalue="0">货到付款</option>
                                                <optionvalue="1">微信支付</option>
                                        </select></td>
                                    </tr>
                                    <tr>
                                        <tdwidth="80px"><labelfor="address"
                                            class="ui-input-text">地址:</label></td>
                                        <td><textareaid="address"name="address"placeholder=""
                                                value=""class="ui-input-text">{$users.address}</textarea>
                                        </td>
                                    </tr>
                                    <tr>
                                        <tdwidth="80px"><labelfor="note"class="ui-input-text">备注:</label></td>
                                        <td><textareaname="note"placeholder=""
                                                class="ui-input-text"></textarea></td>
                                    </tr>
                                </tbody>
                            </table>
 
                            <divclass="footReturn">
                                <aid="showcard"class="submit"href="javascript:submitOrder();">确定提交</a>
                            </div>
 
                        </li>
                    </ul>
                </div>
            </form>
        </section>
 
        <!-- 正在提交数据 -->
        <divid="menu-shadow"hidefocus="true"
            style="display: none; z-index: 10;">
            <divclass="btn-group"
                style="position: fixed; font-size: 12px; width: 220px; bottom: 80px; left: 50%; margin-left: -110px; z-index: 999;">
                <divclass="del"style="font-size: 14px;">
                    <imgsrc="__IMG__/ajax-loader.gif"alt="loader">正在提交订单...
                </div>
            </div>
        </div>
 
    </div>
 
    <divid="user-container"style="display: none;">
 
        <divclass="menu_header">
            <divclass="menu_topbar">
                <divid="menu"class="sort ">
                    <ahref="">查看我的订单</a>
                </div>
            </div>
        </div>
 
        <divclass="cardexplain">
            <divid="page_tag_load"hidefocus="true"
                style="display: none; z-index: 10;">
                <divclass="btn-group"
                    style="position: fixed; font-size: 12px; width: 220px; bottom: 80px; left: 50%; margin-left: -110px; z-index: 999;">
                    <divclass="del"style="font-size: 14px;">
                        <imgsrc="__IMG__/ajax-loader.gif"alt="loader">正在获取订单...
                    </div>
                </div>
            </div>
 
            <ulclass="round">
                <tablewidth="100%"border="0"cellpadding="0"cellspacing="0"class="cpbiaoge">
                    <tr>
                        <th>订单编号</th>
                        <thclass="cc">订单金额</th>
                        <thclass="cc">支付状态</th>
                        <thclass="cc">发货状态</th>
                    </tr>
                    <tbodyid="orderlistinsert">
                        <!--插入订单ul-->
                    </tbody>
                </table>
            </ul>
        </div>
    </div>
 
    <divclass="footermenu">
        <ul>
            <liid="home"><aclass="active"href="javascript:void(0);"> <img
                    src="__IMG__/home.png">
                    <p>首页</p>
            </a></li>
 
            <liid="cart"><ahref="javascript:void(0);"> <spanclass="num"id="cartN2">0</span> <img
                    src="__IMG__/cart.png">
                    <p>购物车</p>
            </a></li>
            <liid="user"><ahref="javascript:void(0);"> <imgsrc="__IMG__/user.png">
                    <p>我的</p>
            </a></li>
        </ul>
    </div>
</body>
</html>

加载中
返回顶部
顶部