diff --git a/api/connect.js b/api/connect.js index b5cf191..bc754f4 100644 --- a/api/connect.js +++ b/api/connect.js @@ -26,7 +26,7 @@ export function webConnect(code) { export function openIdLogin(params, clientType) { return http.request({ url: `passport/connect/connect/app/login`, - method: Method.GET, + method: Method.POST, needToken: true, data: params, header: { diff --git a/pages/passport/login.vue b/pages/passport/login.vue index fe297f3..aafb45f 100644 --- a/pages/passport/login.vue +++ b/pages/passport/login.vue @@ -453,13 +453,14 @@ uuid: uni.getStorageSync("openid"), //联合登陆id source: uni.getStorageSync("type"), //联合登陆类型 nickname: uni.getStorageSync("nickname"), // 昵称 + username: uni.getStorageSync("openid"), // 昵称 avatar: uni.getStorageSync("avatar"), // 头像 uniAccessToken: uni.getStorageSync("uni_access_token"), //第三方token type:this.clientType, - token:{unionId:""} + token:{unionId:"",openId:uni.getStorageSync("openid")} }; uni.getStorageSync("unionId") ? (params.token.unionId = uni.getStorageSync("unionId")) : delete params.token; - + openIdLogin(params, clientType).then((res) => { if (!res.data.success) { let errormessage = "第三方登录暂不可用"; diff --git a/pages/tabbar/cart/cartList.vue b/pages/tabbar/cart/cartList.vue index 0093444..d1b6f16 100644 --- a/pages/tabbar/cart/cartList.vue +++ b/pages/tabbar/cart/cartList.vue @@ -27,7 +27,7 @@ {{ - item.storeName + item.storeName }} @@ -88,25 +88,27 @@ -
-
- 距秒杀结束: - +
+
+ 距秒杀结束: + +
-
- - - -
- {{skuItem.errorMessage}} -
+ + + +
+ {{skuItem.errorMessage}} +
+

+ @@ -208,7 +210,7 @@ export default { WEIXIN_num: "", //购物车兼容微信步进器 }; }, - + mounted() { // #ifdef MP-WEIXIN // 小程序默认分享 @@ -358,7 +360,7 @@ export default { /** * 点击步进器回调 */ - numChange: debounce(function (val) { + numChange: debounce(function (val) { this.updateSkuNumFun(val.goodsSku.id, val.num); }, 1000), /** @@ -469,7 +471,7 @@ export default { }); }, - // 数据去重一下 + // 数据去重一下 getPromotion(item) { return Object.keys(item.promotionMap).map((child) => { return child.split("-")[0] @@ -513,7 +515,7 @@ export default { } }); } - + }); } this.checkout = checkOuted; diff --git a/pages/tabbar/screen/fullScreen.vue b/pages/tabbar/screen/fullScreen.vue index 7166a21..c93b1cd 100644 --- a/pages/tabbar/screen/fullScreen.vue +++ b/pages/tabbar/screen/fullScreen.vue @@ -1,5 +1,5 @@