瀏覽代碼

隐藏购买按钮

xuqiaoying 3 年之前
父節點
當前提交
449de6ea9f

+ 7 - 7
common/request.js

@@ -4,8 +4,8 @@ import store from '@/store/index.js'
 import api from './api.js'
 var num = 1
 //接口api   
-export const BASE_URL = 'https://api.xyyxt.net'   //release
-// export const BASE_URL = 'https://test.xyyxt.net'   //预发布
+// export const BASE_URL = 'https://api.xyyxt.net'   //release
+export const BASE_URL = 'https://test.xyyxt.net'   //预发布
 // export const BASE_URL = 'http://120.79.166.78:19012' // 测试环境
 // export const BASE_URL = 'http://42.192.164.187:19005'    //test(后端本地)
 // export const BASE_URL = 'http://192.168.1.222:5055'    //后端本地更新到222
@@ -13,12 +13,12 @@ export const BASE_URL = 'https://api.xyyxt.net'   //release
 // export const BASE_URL = 'http://192.168.1.7:5055'    //后端本地
 
  //图片上传api
-export const BASE_IMG_URL = 'https://file.xyyxt.net/'     //release
-// export const BASE_IMG_URL = 'https://file-dev.xyyxt.net/'  //test
+// export const BASE_IMG_URL = 'https://file.xyyxt.net/'     //release
+export const BASE_IMG_URL = 'https://file-dev.xyyxt.net/'  //test
 
 // web_view的
-export const WEBVIEW_URL = 'https://m.xyyxt.net/'  //release
-// export const WEBVIEW_URL = 'https://testm.xyyxt.net/'  //预发布
+// export const WEBVIEW_URL = 'https://m.xyyxt.net/'  //release
+export const WEBVIEW_URL = 'https://testm.xyyxt.net/'  //预发布
 // export const WEBVIEW_URL = 'http://120.79.166.78:18001/' // 测试环境
 // export const WEBVIEW_URL = 'http://api.xyyxt.net:6066/'  //预发布(弃用了)
 
@@ -33,7 +33,7 @@ RVQplIVs5z3MxcUa9ptKPHUTgh8xMCBvl8sUJKwkmn4vYWeDfHT22EL7Hr1pTMwU
 hF6WiNlWfQTVoF1rhwIDAQAB
 -----END PUBLIC KEY-----`;
 
-export const version = '6.0.0' 
+export const version = '1.3.12' 
 export const tenantId = '867735392558919680' 
 export const myRequest = (options) => {
 	if (store.state.allowLoading && !options.noLoading) {

+ 3 - 3
pages/index/index.vue

@@ -119,7 +119,7 @@
 											<text v-if="item.linePrice" class="price_line">&nbsp;{{ item.linePrice }}</text>
 										</view>
 										<view class="right">
-											<view class="regiser_row">立即购买</view>
+											<view v-if="!hideBuyState" class="regiser_row">立即购买</view>
 										</view>
 									</view>
 									<view v-if="item.buyUserNum" class="joins">
@@ -156,7 +156,7 @@
 											<text v-if="item.linePrice" class="price_line">&nbsp;{{ item.linePrice }}</text>
 										</view>
 										<view class="right">
-											<view class="regiser_row">立即购买</view>
+											<view v-if="!hideBuyState" class="regiser_row">立即购买</view>
 										</view>
 									</view>
 									<view v-if="item.buyUserNum" class="joins">
@@ -339,7 +339,7 @@ export default {
 		};
 	},
 	computed: { 
-		...mapGetters(['dictObj','userInfo']),
+		...mapGetters(['dictObj','userInfo', 'hideBuyState']),
 		opacitys() {
 			const value = [1011,1017,1025,1047,1124].includes(this.$store.state.scene) && this.isLogin && (this.isFollow != 1) && this.curClose ? 1 : 0
 			console.log('this.opacity::', value)

+ 6 - 4
pages4/courseTopic/goodsTopic.vue

@@ -45,7 +45,7 @@
                         <view class="type_title">全科</view>
                         <view class="type_down">
                             <view class="prices">¥980</view>
-                            <view class="tobuy" @click="togoBuy(1)">立即购买</view>
+                            <view v-if="!hideBuyState" class="tobuy" @click="togoBuy(1)">立即购买</view>
                         </view>
                     </view>
                 </view>
@@ -57,7 +57,7 @@
                         <view class="type_title">公共单科</view>
                         <view class="type_down">
                             <view class="prices">¥350</view>
-                            <view class="tobuy" @click="togoBuy(2)">立即购买</view>
+                            <view v-if="!hideBuyState" class="tobuy" @click="togoBuy(2)">立即购买</view>
                         </view>
                     </view>
                 </view>
@@ -69,7 +69,7 @@
                         <view class="type_title">实务单科</view>
                         <view class="type_down">
                             <view class="prices">¥500</view>
-                            <view class="tobuy" @click="togoBuy(3)">立即购买</view>
+                            <view v-if="!hideBuyState" class="tobuy" @click="togoBuy(3)">立即购买</view>
                         </view>
                     </view>
                 </view>
@@ -106,13 +106,14 @@
                         </view>
                     </scroll-view>
                 </view>
-                <view class="right_now" @click="rightNowBuy()">立即购买</view>
+                <view v-if="!hideBuyState" class="right_now" @click="rightNowBuy()">立即购买</view>
 			</view>
 		</u-popup>
     </view>
 </template>
 
 <script>
+import { mapGetters  } from 'vuex'
 export default {
     name: 'goodsTopic',
     data() {
@@ -140,6 +141,7 @@ export default {
             skuIndex: -1,
         }
     },
+    computed: { ...mapGetters(['hideBuyState']) },
     onLoad(option) {
         if (option.scene) {
             let tid = decodeURIComponent(option.scene)

+ 1 - 0
pages5/examReport/index.vue

@@ -295,6 +295,7 @@ export default {
 		},
 		mockSubscribeInfo(){
 			this.$api.mockSubscribeInfo(this.subscribeId).then(res => {
+				console.log('subscribeInfo', this.subscribeInfo)
 				this.subscribeInfo = res.data.data
 			})
 		},

+ 3 - 1
pages5/mockExam/registrationSuccess.vue

@@ -108,7 +108,7 @@
                                     <text v-if="item.linePrice" class="price_line">&nbsp;{{ item.linePrice }}</text>
                                 </view>
                                 <view class="right">
-                                    <view class="regiser_row">立即购买</view>
+                                    <view class="regiser_row" v-if="!hideBuyState">立即购买</view>
                                 </view>
                             </view>
                             <view v-if="item.buyUserNum" class="joins">
@@ -126,6 +126,7 @@
 </template>
 
 <script>
+import { mapGetters  } from 'vuex'
 var curTime = new Date().getTime() // 当前时间的时间戳
 export default {
     name: 'registrationSuccess',
@@ -168,6 +169,7 @@ export default {
         },
         
     },
+    computed: { ...mapGetters(['hideBuyState']) },
     onLoad(option) {
         console.log('option: ', option)
         this.startTime = option.startTime