lilei hace 4 años
padre
commit
1d30cce979
Se han modificado 5 ficheros con 6 adiciones y 6 borrados
  1. 2 2
      App.vue
  2. 1 1
      pages/cart/cart.vue
  3. 1 1
      pages/goods/goodsDetail.vue
  4. 1 1
      pages/index/index.vue
  5. 1 1
      pages/order/order.vue

+ 2 - 2
App.vue

@@ -1,6 +1,6 @@
 <script>
-	const uat_domain = 'https://lese.test.sxzxyj.net' // 预发布
-	// const uat_domain = 'http://192.168.16.102:8302' // 本地
+	// const uat_domain = 'https://lese.test.sxzxyj.net' // 预发布
+	const uat_domain = 'http://192.168.16.103:8302' // 本地
 	const pro_domain = 'https://lese.sxzxyj.net' // 生产
 	const uat_URL = uat_domain+'/gc-shop/' // 预发布
 	const pro_URL = pro_domain+'/gc-shop/'  // 生产

+ 1 - 1
pages/cart/cart.vue

@@ -334,7 +334,7 @@
 			},
 			// 立即下单
 			toOrder(){
-				if(this.userData.state == 0){
+				if(this.userData.customerRole == 9){
 					uni.showToast({
 						icon:"none",
 						title:"抱歉,您目前无法使用乐豆"

+ 1 - 1
pages/goods/goodsDetail.vue

@@ -144,7 +144,7 @@
 			// 立即下单
 			toOrder(){
 				// console.log(this.goodContent,this.id,'pppppppp')
-				if(this.userData.state == 1){
+				if(this.userData.customerRole == 9){
 					if(this.goodContent.sellGold * this.nums >= this.goldLimit){
 						this.$u.vuex("vuex_toOrderList",[{id:this.id,buyQty:this.nums,goodsNo:this.goodContent.goodsNo,goods:this.goodContent}])
 						uni.redirectTo({

+ 1 - 1
pages/index/index.vue

@@ -301,7 +301,7 @@
 			},
 			// 扫商户码,获取商户信息
 			getStoreData(params) {
-				if(this.userData.state == 1){
+				if(this.userData.customerRole == 9){
 					sellerFindByPartnerNo({officialPartnerNo: params}).then(res => {
 						if(res.status == 200){
 							let store = res.data

+ 1 - 1
pages/order/order.vue

@@ -360,7 +360,7 @@
 			},
 			// 支付 判断用户是否设置过支付密码
 			toPay(item) {
-				if(this.userData.state == 0){
+				if(this.userData.customerRole == 9){
 					uni.showToast({
 						icon:"none",
 						title:"抱歉,您目前无法使用乐豆"