博客> WeMall微信商城源码插件会员卡代码详情
WeMall微信商城源码插件会员卡代码详情
2019-07-17 03:38 评论:0 阅读:864 wemallshop
html php 商城源码

WeMall微信商城源码插件会员卡代码是用于商业推广的比较有效的方式,分享了部分比较重要的代码,供技术员学习参考

Index_index.html

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>会员卡</title>
    <meta name="viewport"
          content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link href="__CSS__/card.css?i=2" rel="stylesheet" type="text/css">
</head>
<body id="card" style="">
<div id="overlay"></div>
<div class="cardcenter">
    <div class="card"><img class="cardbg" src="__IMG__/card_bg07.png">
        <img class="logo" src="http://wx.qlogo.cn/mmopen/KMt8YcxoTr7iaBlsovicVoDriciaLBcQtic7D4IyETkKusiasVicTJq5s2PianSUeg9HuVjGXQQQ9Pz07vyrdE7lMQ1EGw/0">
        <h1 xss=removed>VIP会员卡</h1>
        <strong class="pdo verify">
            <span xss=removed>
                <em>会员姓名</em><span xss=removed>{$user.username}</span>
            </span>
            <span><em>会员卡号</em>
                <a xss=removed>{$user.id}</a>
            </span>
        </strong>
    </div>
    <p class="explain"><span>使用时向服务员出示此卡</span></p>
</div>
<div class="cardexplain">
    <div class="jifen-box" xss=removed>
        <ul class="zongjifen">
            <li>
                <div class="fengexian"><p>账户</p><span>{$user.money}</span></div>
            </li>
            <li>
                <div class=""><p>积分</p><span>{$user.score}</span></div>
            </li>
        </ul>
        <div class="clr"></div>
    </div>
    <ul class="round" id="notice">
        <li><a href="{$config.notify_url}"><span>最新通知</span></a></li>
        <li><a href="{$config.about_url}"><span>会员卡说明</span></a></li>
    </ul>
    <ul class="round" id="powerandgift">
        <li><a href="{:U('App/Index/index')}#order"><span>消费记录</span></a></li>
        <li><a href="{:U('App/Index/index')}#order"><span>个人资料</span></a></li>
    </ul>
    <ul class="round">
        <li><a href=""><span>地址: {$config.address}</span></a></li>
        <li><a href="tel:{$config.tel}"><span>电话: {$config.tel}</span></a></li>
    </ul>
</div>
<div class="copyright" xss=removed>© 2014-2015 inuoer.com. All
    rights reserved.
</div>
&lt;/body&gt;
&lt;/html&gt;

Config_index.html


<section class="content-header">
    <h1>
        会员卡设置
        <small></small>
    </h1>
</section>

&lt;!-- Main content --&gt;
<section class="content">
    <div class="row">
        <div class="col-md-12">
            &lt;!-- general form elements --&gt;
            <div class="box box-danger">
                <div class="box-header with-border">
                    <h3 class="box-title">会员卡设置</h3>
                </div>
                &lt;!-- form start --&gt;
                &lt;form class="form-horizontal" method="post" action="{:u_addons('Card://Admin/Config/add')}"&gt;
                    <div class="box-body">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">最新通知链接</label>

                            <div class="col-sm-10">
                                &lt;input class="form-control" name="notify_url" placeholder=""
                                       value="{$config.notify_url}"
                                       type="text"&gt;
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">地址</label>

                            <div class="col-sm-10">
                                &lt;input class="form-control" name="address" placeholder=""
                                       value="{$config.address}"
                                       type="text"&gt;
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-md-2">电话</label>

                            <div class="col-sm-10">
                                &lt;input class="form-control" name="tel" placeholder="" value="{$config.tel}"
                                       type="text"&gt;
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">会员卡说明链接</label>

                            <div class="col-sm-10">
                                &lt;input class="form-control" name="about_url" placeholder="" value="{$config.about_url}"
                                       type="text"&gt;
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">备注</label>

                            <div class="col-sm-10">
                                &lt;input class="form-control" name="remark" placeholder="" value="{$config.remark}"
                                       type="text"&gt;
                            </div>
                        </div>
                    </div>
                    &lt;!-- /.box-body --&gt;

                    <div class="box-footer">
                        <div class="col-sm-2">
                            &lt;button type="submit" class="btn btn-block btn-danger"&gt;保存&lt;/button&gt;
                        </div>
                    </div>
                &lt;/form&gt;
            </div>
            &lt;!-- /.box --&gt;

        </div>
        &lt;!--/.col (right) --&gt;
    </div>
</section>

IndexController.class.php

&lt;?php
/**
 * Created by PhpStorm.
 * User: heqing
 * Date: 15/7/30
 * Time: 09:40
 */

namespace Addons\Card\Controller;

class IndexController extends InitController
{
    public function index()
    {
        $user = R("App/Public/oauthLogin");
        $this->assign("user", $user);

        $config = M("AddonCardConfig")->find();
        $this->assign("config", $config);
        $this->display('', false);
    }
}

代码来源: www.wemallshop.com

收藏
0
sina weixin mail 回到顶部