Ver código fonte

权益卡购买bug

zhanghui 2 anos atrás
pai
commit
b1bc261268
3 arquivos alterados com 6 adições e 12 exclusões
  1. 1 0
      main.js
  2. 2 1
      pages/order/module/mescrollUni-item.vue
  3. 3 11
      storePages/rights/index.vue

+ 1 - 0
main.js

@@ -11,6 +11,7 @@ console.log(`process`, process.envenv)
 import uView from "uview-ui";
 const baseUrl = 'https://jje.admin.xinyuekj.com.cn';
 // const baseUrl = 'http://192.168.1.150:8080';
+// const baseUrl = 'http://192.168.1.151:8080';
 Vue.use(uView);
 Vue.config.productionTip = false
 Vue.prototype.$baseUrl = baseUrl;

+ 2 - 1
pages/order/module/mescrollUni-item.vue

@@ -125,7 +125,8 @@
 								预约金额:<text class="fontColor"> ¥{{ item.subAmount || 0}}</text>
 							</view>
 							<view class="price">
-								订单总金额:<text class="fontColor"> ¥{{ item.totalAmount || 0}}</text>
+								订单总金额:<text class="fontColor"> ¥{{ item.payAmount || 0}}</text>
+								<text :style="{'text-decoration':'line-through','margin-left':'15rpx'}">¥{{ item.totalAmount || 0}}</text>
 							</view>
 						</view>
 						<view class="nav-bar">

+ 3 - 11
storePages/rights/index.vue

@@ -119,7 +119,7 @@
 				windowHeight:'',
 				windowHeight1:'',
 				show:false,
-				curServiceTab:1,
+				curServiceTab:2,
 				orderRights:{},
 				userInfo:{},
 				serviceObjectList:[],
@@ -183,15 +183,7 @@
 						title: '支付成功!'
 					});
 					this.getUserInfo()
-				}).catch((res) =>{
-					console.log(res)
-					that.$refs.popup.close()
-					let msg = res.data.msg || '操作失败';
-					uni.showToast({
-						title: msg,
-						icon:'error'
-					})
-				});
+				})
 			},
 
 			wechatPay(){
@@ -260,7 +252,7 @@
 			},
 
 			payItem(num){
-				if (this.userInfo.balance < this.price){
+				if (this.userInfo.balance*1 < this.orderRights.salePrice*1){
 					return
 				}
 				this.curServiceTab = num