Browse Source

上传数据基本格式明确

jason.lu 6 years ago
parent
commit
b2944444e3
1 changed files with 22 additions and 0 deletions
  1. 22 0
      sourcecode/h5app/vue/src/connector/simple-demo.js

+ 22 - 0
sourcecode/h5app/vue/src/connector/simple-demo.js

@@ -130,6 +130,28 @@ BasicFunction.get_data("smartIdentity/updateBatch", function (response) {
                 "reviewerId":1,"reviewerNote":"nmo",
                 "reviewerNoteToUser":"noo"}]);
 
+
+基本格式
+
+
+登录  转义密码 就是 encodeURIComponent("实际密码")
+BasicFunction.get_data("ajaxloginu=手机号&p=(转义密码)", 回调函数, {})
+
+注册
+BasicFunction.get_data("ajaxregister?u=手机号&p=转义密码", 回调函数, {})
+
+发送验证码
+BasicFunction.get_data("ajaxsendotp?u=手机号", 回调函数, {})
+
+新建 (数据列表就是 [{...实际数据...}])
+BasicFunction.get_data("数据接口名称/saveBatch", 回调函数, 数据列表)
+
+修改
+BasicFunction.get_data("数据接口名称/updateBatch", 回调函数, 数据列表)
+
+搜索(获取)
+BasicFunction.get_data("数据接口名称/list?条件1=数据1&条件2=数据2&.....", 回调函数, {})
+
 新建货品:
 smartGoods/saveBatch
 [{"goodid":"","name":"萌犬毛绒抱枕","goodsNo":"A2","modelId":"1","ownerId":"18","goodFirstKind":"1000","goodSecondKind":"2000","sellPrice":"0.0","marketPrice":"0.0","costPrice":"0.0","upTime":"2018-12-10 01:01:01","downTime":"2018-12-10 01:01:01","createTime":"2018-12-10 01:01:01","storeNums":"1","img":"attachment/simple/acsac089e1nnsaxx72190dm.jpg","isDel":"0","content":"none","keywords":"none","description":"绒毛玩具或填充玩具,中国大陆较常用“毛绒玩具”、香港为“毛公仔”,是以毛绒面料及其他纺织材料包裹各种填充物而制成的,具有软绵绵、毛绒绒可爱造形的填充玩具。通常做成动物的形象,但也有人形的绒毛玩具。 动画、卡通和漫画人物都是受欢迎的题材。泰迪熊可能被视为是一种绒毛玩具,但因制造材质而异并不是所有的泰迪熊都是绒毛玩具","searchWords":"毛绒,玩具","weight":"0.4","point":"4","unit":"10","brandId":"1","visit":"1","favorite":"1","sort":"1","listImg":"attachment/simple/acsac089e1nnsaxx72190dm.jpg","smallImg":"attachment/simple/bicno912nounx7xsg28d1nidx.jpg","specArray":"{}","exp":"0"}]' --compressed