|
|
@@ -60,7 +60,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-const path = require('path');
|
|
|
+import resolveUrl from 'resolve-url';
|
|
|
import { add } from 'mathjs';
|
|
|
import { mapState } from 'vuex';
|
|
|
import product from '../mixins/product';
|
|
|
@@ -151,7 +151,7 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
if (this.payType === 'ALIPAY') {
|
|
|
document.location.replace(
|
|
|
- path.resolve(this.$baseUrl, 'payOrder/gift/alipay?id=' + res.id)
|
|
|
+ resolveUrl(this.$baseUrl, 'payOrder/gift/alipay?id=' + res.id)
|
|
|
);
|
|
|
} else if (this.payType === 'WEIXIN') {
|
|
|
if (this.inWeixin) {
|
|
|
@@ -185,7 +185,7 @@ export default {
|
|
|
});
|
|
|
} else {
|
|
|
document.location.replace(
|
|
|
- path.resolve(this.$baseUrl, 'payOrder/gift/weixin_h5?id=' + res.id)
|
|
|
+ resolveUrl(this.$baseUrl, 'payOrder/gift/weixin_h5?id=' + res.id)
|
|
|
);
|
|
|
}
|
|
|
}
|