Beispiel #1
0
def index():
    """
    商城后台相关操作入口
    """
    while True:
        num = utils.printTableX(service)
        if num == -1:return False
        result = service[num].values().pop()()
        print u"\n\n************************* 商城后台主界面 *******************************\n"
    print u"------------- end -------------"
    return True
Beispiel #2
0
def show():
    print u"\n\n\n +++++++++++++你已经进入商城购物车中心 :  +++++++++++++"
    username = sql.readLoginUser()
    if not username:
        while True:
            print u"请先登录..."
            login.loginStart()
            username = sql.readLoginUser()
            if not username:
                mark = raw_input(u"是否继续登录y or n")
                if mark == 'n': return False
                continue
            break

    num = utils.printTableX(seviceCars)
    if num == -1: return False
    result = seviceCars[num].values().pop()()
    return True
Beispiel #3
0
def show():
    print u"\n\n\n +++++++++++++你已经进入商城购物车中心 :  +++++++++++++"
    username = sql.readLoginUser()
    if not  username:
        while True:
            print u"请先登录..."
            login.loginStart()
            username = sql.readLoginUser()
            if not username :
                mark = raw_input(u"是否继续登录y or n")
                if mark=='n':return  False
                continue
            break

    num = utils.printTableX(seviceCars)
    if num == -1:return False
    result = seviceCars[num].values().pop()()
    return  True
Beispiel #4
0
def show():
    print u"\n\n\n +++++++++++++你已经进入商城后商品操作中心 :  +++++++++++++"
    username = sql.isLogin()
    if not username:
        while True:
            print u"请先登录..."
            login.loginStart()
            username = sql.isLogin()
            if not username:
                mark = raw_input(u"是否继续登录y or n")
                if mark == 'n': return False
                continue
            break

    num = utils.printTableX(goodsService)
    if num == -1: return False
    result = goodsService[num].values().pop()()
    return True
Beispiel #5
0
def show():
    print u"\n\n\n +++++++++++++你已经进入商城后商品操作中心 :  +++++++++++++"
    username = sql.isLogin()
    if not  username:
        while True:
            print u"请先登录..."
            login.loginStart()
            username = sql.isLogin()
            if not username :
                mark = raw_input(u"是否继续登录y or n")
                if mark=='n':return  False
                continue
            break

    num = utils.printTableX(goodsService)
    if num == -1:return False
    result = goodsService[num].values().pop()()
    return  True
Beispiel #6
0
def show():
    print u"\n\n\n +++++++++++++你已经进入商城后台配置相关服务 :  +++++++++++++"
    username = sql.isLogin()
    if not username:
        while True:
            print u"请先登录..."
            login.loginStart()
            username = sql.isLogin()
            if not username:
                mark = raw_input(u"是否继续登录y or n")
                if mark == "n":
                    return False
                continue
            break

    num = utils.printTableX(seviceConfig)
    if num == -1:
        return False
    result = seviceConfig[num].values().pop()()
    return True