Procházet zdrojové kódy

增加零交会功能

shish před 3 roky
rodič
revize
63ce780a5f

+ 21 - 5
ghsApp/src/admin/home/workbench.vue

@@ -2,6 +2,7 @@
 <view>
   <block v-if="loginStyle  == 0">
 	<!-- #ifdef MP-WEIXIN -->
+	<view @click="goLjh()"><image :src="`${constant.imgUrl}/ljh/banner2.jpg`" style="width:95%;margin:0 auto;" mode="widthFix"></image></view>
     <view style="width:100vw;height:400upx;display:flex;align-items:center;justify-content:center;position:relative;">
       <view style="position:absolute;top:60upx;font-size:35upx;">
         <text style="color:#333333;margin-left:8upx;font-weight:bold;">花店买花点这里</text>
@@ -12,17 +13,14 @@
     <view style="width:100vw;height:400upx;display:flex;align-items:center;justify-content:center;position:relative;">
 	<!-- #ifdef MP-WEIXIN -->
       <view style="position:absolute;top:60upx;font-size:35upx;">
-        <text style="color:#333333;margin-left:8upx;font-weight:bold;">批发店点这里</text>
+        <text style="color:#333333;margin-left:8upx;font-weight:bold;">批发店点这里登录</text>
       </view>
 	<!-- #endif -->
-      <button class="admin-button-com big blue" style="width:260upx;" @click="pageTo({url:'/admin/home/login'})">去登录</button>
+    <button class="admin-button-com big blue" style="width:260upx;" @click="pageTo({url:'/admin/home/login'})">去登录</button>
     </view>
-
   </block>
-
   <block v-else>
 
-
 	<view class="app-main app-content">
 
 <template v-if="(loginInfo.staff && loginInfo.staff.super && loginInfo.staff.super == 1) || (loginInfo.staff && loginInfo.staff.lookStat && loginInfo.staff.lookStat ==1)">
@@ -267,6 +265,24 @@ export default {
 		showErrorPriceFn(){
 			this.$refs.errorPriceRef.open('top')
 		},
+		goLjh(){
+			let that = this
+			// #ifdef MP-WEIXIN
+			uni.navigateToMiniProgram({
+				//姜枫-2021.04.13
+				appId: that.getappIdList.hd.miniAppId,
+				path: 'admin/ljh/info',
+				//develop 开发版 trial 体验版 release 正式版
+				envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
+				extraData: {},
+				success (res) {
+				}
+			})
+			// #endif
+			// #ifdef APP-PLUS
+			that.$msg("请用微信打开")
+			// #endif
+		},
 		buyItem() {
 			let that = this
 			// #ifdef MP-WEIXIN

+ 2 - 2
ghsApp/src/pagesPurchase/components/pageSuccess.vue

@@ -6,14 +6,14 @@
 				<view class="iconfont iconchenggong"></view>
 				<view class="result-title">提交成功</view>
 
-				<template v-if="status == 4">
+				<template>
 					<view style="margin-left:150upx;">
 						<view class="flex title">
 							确认销售价:
 						</view>
 						<view class="flex title">
 							<text style="font-size:30upx;font-weight:bold;color:red;">
-								红色进货价,<text style="color:blue;">蓝色成本价</text>
+								红色进货价,<text style="color:blue;">蓝色成本价</text>
 							</text>
 						</view>
 						<checkbox-group @change="checkboxChange">

+ 2 - 2
ghsApp/src/pagesPurchase/info.vue

@@ -197,8 +197,8 @@
 		</view>
 
 		<view class="app-footer open_btn">
-			<view v-if="detailInfo.status == 4" @click="changePrice()" class="admin-button-com big blue">修改价格</view>
-			<view v-if="detailInfo.status == 3" @click="cancelIn()" class="admin-button-com big default">取消入库</view>
+			<view @click="changePrice()" class="admin-button-com big blue">修改价格</view>
+			<view v-if="detailInfo.status == 3" @click="cancelIn()" class="admin-button-com big blue">取消入库</view>
 			<view v-if="detailInfo.status == 3" @click="confirmIn()" class="admin-button-com big blue">确认入库</view>
 		</view>