gaoluyang
2 天以前 bbc93d7a5c22bf006502f2515e2200cdfe8f6a62
src/pages/index.vue
@@ -11,7 +11,7 @@
      <view class="hero-section">
         <view class="bg-img">
            <view class="hero-content">
               <text class="hero-title">双奇点</text>
               <text class="hero-title">天津双奇点</text>
            </view>
            <view class="hero-wave"></view>
         </view>
@@ -46,6 +46,7 @@
         </view>
      </view>
      <GoodsDetailPopup ref="refGoodsDetailPopup"></GoodsDetailPopup>
      <ScanListPopup ref="refScanListPopup"></ScanListPopup>
   </view>
</template>
@@ -56,6 +57,7 @@
import modal from "@/plugins/modal";
import useUserStore from "@/store/modules/user";
import GoodsDetailPopup from './components/GoodsDetailPopup.vue';
import ScanListPopup from './components/ScanListPopup.vue';
const userStore = useUserStore()
const factoryId = ref('');
@@ -402,7 +404,7 @@
         });
         break
      case '产品扫码':
         scanQRCode()
         openScanListPopup()
         break
      default:
         uni.showToast({
@@ -480,6 +482,14 @@
//谈框相关
const refGoodsDetailPopup = ref(null)
const refScanListPopup = ref(null)
//打开扫码列表弹窗
const openScanListPopup = () => {
   if (refScanListPopup.value) {
      refScanListPopup.value.open()
   }
}
//查看详情