|
|
@@ -4,9 +4,11 @@
|
|
|
<div class="product">
|
|
|
<van-image width="74" height="104" :radius="6" :src="getImg(changeImgs(info.pic))" fit="cover" />
|
|
|
<div class="product-content">
|
|
|
- <div class="text1">111</div>
|
|
|
+ <div class="text1">
|
|
|
+ {{ info.name }}
|
|
|
+ </div>
|
|
|
<div class="no"></div>
|
|
|
- <div class="price">¥11</div>
|
|
|
+ <div class="price">¥{{ info.price }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="input">
|
|
|
@@ -82,57 +84,59 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
- // money() {
|
|
|
- // if (this.info.price) {
|
|
|
- // return add(this.info.price, this.gas);
|
|
|
- // } else {
|
|
|
- // return 0;
|
|
|
- // }
|
|
|
- // }
|
|
|
- // },
|
|
|
- // mounted() {
|
|
|
- // this.$http.get('/sysConfig/get/gas_fee').then(res => {
|
|
|
- // this.gas = res.value;
|
|
|
- // });
|
|
|
- // this.$toast.loading({
|
|
|
- // message: '加载中...',
|
|
|
- // forbidClick: true
|
|
|
+ money() {
|
|
|
+ if (this.info.price) {
|
|
|
+ return add(this.info.price, this.gas);
|
|
|
+ } else {
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ // this.$http.get('/sysConfig/get/gas_fee').then(res => {
|
|
|
+ // this.gas = res.value;
|
|
|
+ // });
|
|
|
+ this.$toast.loading({
|
|
|
+ message: '加载中...',
|
|
|
+ forbidClick: true
|
|
|
+ });
|
|
|
+ if (this.$route.query.id) {
|
|
|
+ this.$http.get('/asset/get/' + this.$route.query.id).then(res => {
|
|
|
+ this.info = res;
|
|
|
+ console.log(this.info);
|
|
|
+ // setTimeout(() => {
|
|
|
+ // this.$toast.clear();
|
|
|
+ // this.bs.value.refresh();
|
|
|
+ // }, 100);
|
|
|
+ // this.$http('/sysConfig/get/gas_fee')
|
|
|
+ });
|
|
|
+ }
|
|
|
+ // else {
|
|
|
+ // this.$http.get('/order/get/' + this.$route.query.orderId).then(res => {
|
|
|
+ // this.info = res;
|
|
|
+ // this.orderId = res.id;
|
|
|
+ // setTimeout(() => {
|
|
|
+ // this.bs.value.refresh();
|
|
|
+ // }, 100);
|
|
|
+ // this.$dialog
|
|
|
+ // .alert({
|
|
|
+ // title: '提示',
|
|
|
+ // message:
|
|
|
+ // res.status === 'NOT_PAID' || res.status === 'CANCELLED'
|
|
|
+ // ? '订单支付失败,点击重新下单'
|
|
|
+ // : '订单已支付,点击查看订单详情'
|
|
|
+ // })
|
|
|
+ // .then(() => {
|
|
|
+ // if (res.status === 'NOT_PAID' || res.status === 'CANCELLED') {
|
|
|
+ // this.$router.back();
|
|
|
+ // } else {
|
|
|
+ // this.$router.replace('/orderDetail?id' + res.id);
|
|
|
+ // }
|
|
|
+ // // on close
|
|
|
+ // });
|
|
|
// });
|
|
|
- // if (this.$route.query.id) {
|
|
|
- // this.$http.get('/collection/get/' + this.$route.query.id).then(res => {
|
|
|
- // this.info = res;
|
|
|
- // setTimeout(() => {
|
|
|
- // this.$toast.clear();
|
|
|
- // this.bs.value.refresh();
|
|
|
- // }, 100);
|
|
|
- // // this.$http('/sysConfig/get/gas_fee')
|
|
|
- // });
|
|
|
- // } else {
|
|
|
- // this.$http.get('/order/get/' + this.$route.query.orderId).then(res => {
|
|
|
- // this.info = res;
|
|
|
- // this.orderId = res.id;
|
|
|
- // setTimeout(() => {
|
|
|
- // this.bs.value.refresh();
|
|
|
- // }, 100);
|
|
|
- // this.$dialog
|
|
|
- // .alert({
|
|
|
- // title: '提示',
|
|
|
- // message:
|
|
|
- // res.status === 'NOT_PAID' || res.status === 'CANCELLED'
|
|
|
- // ? '订单支付失败,点击重新下单'
|
|
|
- // : '订单已支付,点击查看订单详情'
|
|
|
- // })
|
|
|
- // .then(() => {
|
|
|
- // if (res.status === 'NOT_PAID' || res.status === 'CANCELLED') {
|
|
|
- // this.$router.back();
|
|
|
- // } else {
|
|
|
- // this.$router.replace('/orderDetail?id' + res.id);
|
|
|
- // }
|
|
|
- // // on close
|
|
|
- // });
|
|
|
- // });
|
|
|
- // }
|
|
|
- // this.bottom = this.$refs.bottom;
|
|
|
+ // }
|
|
|
+ // this.bottom = this.$refs.bottom;
|
|
|
},
|
|
|
methods: {
|
|
|
submit() {
|