修改后台小程序直播查看问题,新增只有自营店可以赠送积分
							parent
							
								
									b7dd7f1c3b
								
							
						
					
					
						commit
						4133badc46
					
				|  | @ -30,7 +30,7 @@ export const getLiveList = params => { | ||||||
| 
 | 
 | ||||||
| // 获取直播间详情
 | // 获取直播间详情
 | ||||||
| export const getLiveInfo = studioId => { | export const getLiveInfo = studioId => { | ||||||
|   return getRequest(`/broadcast/studio/studioInfo/${studioId}`); |   return getRequest(`/broadcast/studio/${studioId}`); | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| // 获取当前进行中的促销活动商品
 | // 获取当前进行中的促销活动商品
 | ||||||
|  |  | ||||||
|  | @ -18,14 +18,14 @@ export default { | ||||||
|    * @description api请求基础路径 |    * @description api请求基础路径 | ||||||
|    */ |    */ | ||||||
|   api_dev: { |   api_dev: { | ||||||
|     // common: 'https://common-api.pickmall.cn',
 |     common: 'https://common-api.pickmall.cn', | ||||||
|     // buyer: 'https://buyer-api.pickmall.cn',
 |     buyer: 'https://buyer-api.pickmall.cn', | ||||||
|     // seller: 'https://store-api.pickmall.cn',
 |     seller: 'https://store-api.pickmall.cn', | ||||||
|     // manager: 'https://admin-api.pickmall.cn',
 |     manager: 'https://admin-api.pickmall.cn', | ||||||
|     common: 'http://192.168.0.109:8890', |     // common: 'http://192.168.0.109:8890',
 | ||||||
|     buyer: 'http://192.168.0.109:8888', |     // buyer: 'http://192.168.0.109:8888',
 | ||||||
|     seller: 'http://192.168.0.109:8889', |     // seller: 'http://192.168.0.109:8889',
 | ||||||
|     manager: 'http://192.168.0.109:8887' |     // manager: 'http://192.168.0.109:8887'
 | ||||||
|   }, |   }, | ||||||
|   api_prod: { |   api_prod: { | ||||||
|     common: 'https://common-api.pickmall.cn', |     common: 'https://common-api.pickmall.cn', | ||||||
|  |  | ||||||
|  | @ -113,9 +113,11 @@ | ||||||
|               >  |               >  | ||||||
|               <Checkbox |               <Checkbox | ||||||
|                 :disabled="form.promotionStatus != 'NEW'" |                 :disabled="form.promotionStatus != 'NEW'" | ||||||
|  |                 v-if="JSON.parse(getStore('userInfo')).selfOperated" | ||||||
|                 v-model="form.isPoint" |                 v-model="form.isPoint" | ||||||
|                 >送积分</Checkbox |                 >送积分</Checkbox | ||||||
|               > |               > | ||||||
|  | 
 | ||||||
|             </FormItem> |             </FormItem> | ||||||
|             <FormItem v-if="form.isCoupon" label="赠送优惠券" prop="couponId"> |             <FormItem v-if="form.isCoupon" label="赠送优惠券" prop="couponId"> | ||||||
|               <Select |               <Select | ||||||
|  |  | ||||||
|  | @ -130,7 +130,7 @@ | ||||||
|         </FormItem> |         </FormItem> | ||||||
| 
 | 
 | ||||||
|         <FormItem> |         <FormItem> | ||||||
|           <Button type="primary" @click="createLives()">保存</Button> |           <Button type="primary" v-if="liveStatus=='NEW'" @click="createLives()">保存</Button> | ||||||
| 
 | 
 | ||||||
|         </FormItem> |         </FormItem> | ||||||
|       </Form> |       </Form> | ||||||
|  | @ -342,8 +342,7 @@ export default { | ||||||
|      * dialog点击确定时判断 |      * dialog点击确定时判断 | ||||||
|      */ |      */ | ||||||
|     addGoods() { |     addGoods() { | ||||||
|       console.log(this.commodityList); |       this.liveData.forEach((item) => { | ||||||
|       this.liveData.forEach((item, index) => { |  | ||||||
|         if (this.commodityList.length == 1 && this.liveData.length == 1) { |         if (this.commodityList.length == 1 && this.liveData.length == 1) { | ||||||
|           addLiveGoods({ |           addLiveGoods({ | ||||||
|             roomId: this.$route.query.roomId, |             roomId: this.$route.query.roomId, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue