最新公告
  • 欢迎您光临牛品源码,本站秉承服务宗旨 履行“站长”责任,销售只是起点 服务永无止境!立即加入我们
  • 微信商城小程序WeiMall v1.0

    • 授权方式:免费软件
    • 界面语言:简体中文
    • 文件大小:1 MB
    • 更新时间:2017-06-12
    • 资源类型:国产软件
    • 推荐等级:★★★☆☆
    • 平台环境:Win2003WinXPWin2000Win9X
    • 作者主页:点击查看
    • 演示地址:点击查看

    详细介绍 – [ 微信商城小程序WeiMall v1.0 ]

    微信商城小程序WeiMall实现一个移动端小商城,项目持续更新中…

    使用技术:Weui.wxss 、 ES6

    微信商城小程序WeiMall增删改查

    import ServiceBase from \’ServiceBase\’

    class Service extends ServiceBase {
    constructor() {
    super()
    this.$$prefix = \’\’
    this.$$path = {
    wechatSignUp: \’/index/wechatSignUp\’,
    wechatSignIn: \’/index/wechatSignIn\’,
    decryptData: \’/index/decryptData\’,
    signIn: \’/index/signIn\’,
    signOut: \’/index/signOut\’,
    data:\’/index/data\’,
    detail: \’/index/detail\’,
    add: \’/index/add\’,
    del: \’/index/del\’,
    update: \’/index/update\’
    }
    }

     

    wechatSignUp(params) {
    return this.postRequest(this.$$path.wechatSignUp, params)
    }

    wechatSignIn(params) {
    return this.postRequest(this.$$path.wechatSignIn, params)
    }

    wechatDecryptData(params) {
    return this.postRequest(this.$$path.decryptData, params)
    }

    signIn(params) {
    return this.postRequest(this.$$path.signIn, params)
    }

    signOut() {
    return this.postRequest(this.$$path.signOut)
    }

    //获取表格分页数据
    getData(params) {
    return this.getRequest(this.$$path.data, params)
    }

    //获取单条数据
    getDetail(params) {
    return this.getRequest(this.$$path.detail, params)
    }

    //新增数据
    addData(params){
    return this.postRequest(this.$$path.add, params)
    }

    //删除数据
    delData(params) {
    return this.getRequest(this.$$path.del, params)
    }

    //更新数据
    updateData(params) {
    return this.getRequest(this.$$path.update, params)
    }

    }

    export default Service
    //调用数据
    App.HttpService.getData({
    table:\’banner\’,
    page:1
    }).then(data=>{
    if(data.code==0){
    data.data.forEach(n => n.path = App.renderImage(n.img));
    this.setData({
    images: data.data
    });
    }else{
    this.showModal(data.message);
    }
    });

    //新增数据
    App.HttpService.addData(params).then(data => {
    if (data.code == 0) {
    this.showToast(data.message)
    }
    });

    //更新数据
    App.HttpService.updateData(params).then(data => {
    if (data.code == 0) {
    this.showToast(data.message);
    }
    });

    //删除数据
    App.WxService.showModal({
    title: \’友情提示\’,
    content: \’确定要删除这个地址吗?\’,
    })
    .then(data => {
    if (data.confirm == 1) {
    App.HttpService.delData({
    table: \’address\’,
    id: id
    }).then(() => App.WxService.navigateBack());
    }
    })

    微信商城小程序WeiMall截图相关链接

    PHP微信小程序解决方案PhpMall v1.0

    发表评论

    售后服务:

    • 售后服务范围 1、商业模板使用范围内问题免费咨询
      2、源码安装、模板安装(一般 ¥50-500)服务答疑仅限SVIP用户
      3、单价超过200元的模板免费一次安装,需提供服务器信息。
      付费增值服务 1、提供dedecms模板、WordPress主题、discuz模板优化等服务请详询在线客服
      2、承接 WordPress、DedeCMS、Discuz 等系统建站、仿站、开发、定制等服务
      3、服务器环境配置(一般 ¥50-500)
      4、网站中毒处理(需额外付费,1000元/次/质保三个月)
      售后服务时间 周一至周日(法定节假日除外) 9:00-23:00
      免责声明 本站所提供的模板(主题/插件)等资源仅供学习交流,若使用商业用途,请购买正版授权,否则产生的一切后果将由下载用户自行承担,有部分资源为网上收集或仿制而来,若模板侵犯了您的合法权益,请来信通知我们(Email: niupinyuanma@foxmail.com),我们会及时删除,给您带来的不便,我们深表歉意!