Bläddra i källkod

feat:“添加广告播放时机器状态字段”

soobin 1 år sedan
förälder
incheckning
c760575dfb

+ 5 - 0
src/assets/language/zh.json

@@ -38,6 +38,7 @@
     "weChatScanning": "微信主扫",
     "antiScanningOfAlipay": "支付宝反扫",
     "weChatBackScanning": "微信反扫",
+    "eCNYBackeScanning": "数字人民币反扫",
     "unpaid": "未支付",
     "paid": "已支付",
     "refunding": "退款中",
@@ -128,6 +129,10 @@
     "defaultDownload": "默认下载",
     "doNotDownloadByDefault": "不默认下载",
     "advertisingType": "广告类型",
+    "playTimeStatus": "机器状态",
+    "acquiesce": "默认",
+    "standby": "待机状态",
+    "work": "工作状态",
     "picture": "图片",
     "video": "视频",
     "pictureAddressLabel": "图片地址",

+ 4 - 2
src/components/typeDownMenu/index.vue

@@ -53,7 +53,8 @@ export default {
       { text: t('typeSelectList.mainSweepOfAlipay'), value: 'ALIPAY_NATIVE' },
       { text: t('typeSelectList.weChatScanning'), value: 'WEIXIN_NATIVE' },
       { text: t('typeSelectList.antiScanningOfAlipay'), value: 'ALIPAY_CARD' },
-      { text: t('typeSelectList.weChatBackScanning'), value: 'WEIXIN_CARD' }
+      { text: t('typeSelectList.weChatBackScanning'), value: 'WEIXIN_CARD' },
+      { text: t('typeSelectList.eCNYBackeScanning'), value: 'ECNY_CARD' },
     ] : [
       { text: t('typeSelectList.whole'), value: '' },
       { text: t('typeSelectList.noPaymentRequired'), value: 0 },
@@ -106,7 +107,8 @@ export default {
           { text: t('typeSelectList.mainSweepOfAlipay'), value: 'ALIPAY_NATIVE' },
           { text: t('typeSelectList.weChatScanning'), value: 'WEIXIN_NATIVE' },
           { text: t('typeSelectList.antiScanningOfAlipay'), value: 'ALIPAY_CARD' },
-          { text: t('typeSelectList.weChatBackScanning'), value: 'WEIXIN_CARD' }
+          { text: t('typeSelectList.weChatBackScanning'), value: 'WEIXIN_CARD' },
+          { text: t('typeSelectList.eCNYBackeScanning'), value: 'ECNY_CARD' },
         ];
       } else {
         payList.value = [

+ 19 - 0
src/views/advertManage/adSet.vue

@@ -95,6 +95,24 @@
             </van-radio-group>
           </div>
         </div>
+        <div class="van-cell van-field">
+          <div class="van-cell__title van-field__label">
+            <span>{{ $t("advertManage.playTimeStatus") }}:</span>
+          </div>
+          <div class="van-cell__value van-field__value radioBox">
+            <van-radio-group v-model="adInfo.playTimeStatus" direction="horizontal">
+              <van-radio name="0" icon-size="18px">{{
+                $t("advertManage.acquiesce")
+              }}</van-radio>
+              <van-radio name="1" icon-size="18px">{{
+                $t("advertManage.standby")
+              }}</van-radio>
+              <van-radio name="2" icon-size="18px">{{
+                $t("advertManage.work")
+              }}</van-radio>
+            </van-radio-group>
+          </div>
+        </div>
         <div v-if="adInfo.adType === '0'">
           <van-field required v-model="adInfo.url" name="url" :label="`${$t('advertManage.pictureAddressLabel')}:`"
             :placeholder="$t('advertManage.pictureAddressPlaceholder')" :rules="[
@@ -234,6 +252,7 @@ export default {
       url: "",
       mediaPreview: "",
       equipmentType: "",
+      playTimeStatus: "0",
     });
     const pageTitle = ref("");
     onMounted(async () => {