Explorar o código

部分链接跳转问题

yangc %!s(int64=9) %!d(string=hai) anos
pai
achega
cde6105e43

+ 1 - 1
components/store/CommodityInfo.vue

@@ -228,7 +228,7 @@ export default {
           // this.$store.dispatch('user/getBuyInfo', [{uuid: item.uuid, batchCode: item.batchCode, number: item.minBuyQty}])
           // this.$store.dispatch('user/getBuyInfo', [{uuid: item.uuid, batchCode: item.batchCode, number: item.minBuyQty}])
           axios.post('trade/order/buyNow', [{uuid: item.uuid, batchCode: item.batchCode, number: this.fragment.num}])
           axios.post('trade/order/buyNow', [{uuid: item.uuid, batchCode: item.batchCode, number: this.fragment.num}])
             .then(response => {
             .then(response => {
-              window.location.href = 'user#/order/pay/' + this.enidfilter(response.data.orderid)
+              window.location.href = '/user#/order/pay/' + this.enidfilter(response.data.orderid)
             }, err => {
             }, err => {
               console.log(err)
               console.log(err)
               this.$http.get('/login/page').then(response => {
               this.$http.get('/login/page').then(response => {

+ 1 - 1
components/store/RecommendProduct.vue

@@ -51,7 +51,7 @@
             // this.$store.dispatch('user/getBuyInfo', [{uuid: item.uuid, batchCode: item.batchCode, number: item.minBuyQty}])
             // this.$store.dispatch('user/getBuyInfo', [{uuid: item.uuid, batchCode: item.batchCode, number: item.minBuyQty}])
             axios.post('trade/order/buyNow', [{uuid: item.uuid, batchCode: item.batchCode, number: item.minBuyQty}])
             axios.post('trade/order/buyNow', [{uuid: item.uuid, batchCode: item.batchCode, number: item.minBuyQty}])
               .then(response => {
               .then(response => {
-                window.location.href = 'user#/order/pay/' + this.enidfilter(response.data.orderid)
+                window.location.href = '/user#/order/pay/' + this.enidfilter(response.data.orderid)
               }, err => {
               }, err => {
                 console.log(err)
                 console.log(err)
                 this.$http.get('/login/page').then(response => {
                 this.$http.get('/login/page').then(response => {