A5下载站:努力做内容最丰富最安全的下载站! 网站地图最新更新下载排行专题软件发布

热门软件

地铁跑酷

冒险迷岛

全民迷宫

连连消大作战

小河狸创客

阿里健康医鹿

支付宝app

番薯小说

MOMO陌陌

虾米音乐app

位置导航:A5下载 > 其它源码 > 其他网站源码

微信商城小程序WeiMall v1.0

  • 授权方式:免费软件
  • 软件类型:国产软件 / 其他网站源码
  • 软件大小:1 MB
  • 推荐星级:
  • 软件版本:v1.0
  • 运行环境:Win2003WinXPWin2000Win9X
  • 更新时间:2017-06-12
  • 软件厂商:
  • 官网地址:http://www.diygw.com
其它用户还下载了
CRMEB_Java新零售社交电商系统v1.3.4 2023-04-15
CodeMirror在线代码编辑器 v5.65.122023-03-16
网页文字游戏开发工具源码 v4.02023-01-30
GoAdmin后台开发框架 v2.0.122023-01-30

微信商城小程序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截图
微信商城小程序WeiMall
相关链接

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

[!--tips--]

下载地址

若下载资源包有误、报错等问题向我们反馈
  • PC版

本地下载

广告4