@@ -116,7 +116,7 @@
this.getAddrById(this.id)
}
this.fromPage = page.from;
- this.backUrl = page.backUrl;
+ this.backUrl = decodeURIComponent(page.backUrl);
},
onReady() {
//如果需要兼容微信小程序,并且校验规则中含有方法等,只能通过setRules方法设置规则。
@@ -195,15 +195,17 @@
buyNow(id){
// this.addCart(id,'buyNow')//跳购物车
+ let that = this;
if(!this.hasAddr){
uni.showModal({
title: '温馨提示',
content: '请先设置地址!',
success: res => {
if (res.confirm) {
+ let url = encodeURIComponent(`/shopping/productdetails?id=${that.id}`) ;
uni.$u.route('/center/addrlist', {
from: 'productdetails',
- backUrl:'/shopping/productdetails?id='+this.id
+ backUrl:url
});
@@ -285,7 +285,7 @@ page{
margin-bottom: 17rpx;
.time{
- text-align: right;
+ text-align: left;
color: #999;
font-size: 24rpx;