| | |
| | | <span class="ver-text">版本:</span>{{ versionName }} |
| | | </div> |
| | | <div class="ver"> |
| | | <span class="ver-text">状态:</span>{{ versionState }} |
| | | <span class="ver-text">状态:</span>尚未激活 |
| | | </div> |
| | | <el-divider></el-divider> |
| | | <div class="info" v-if="versionName == 'SmartAI正式版'"> |
| | |
| | | <!-- <el-divider></el-divider> --> |
| | | |
| | | <span slot="footer" class="dialog-footer"> |
| | | <!-- v-if="!snExpire && versionName != 'SmartAI正式版'" --> |
| | | <div class="btns"> |
| | | <el-button |
| | | v-if="!snExpire && versionName != 'SmartAI正式版'" |
| | |
| | | class="cancel" |
| | | v-if="snExpire && versionName != 'SmartAI正式版'" |
| | | @click="$emit('quit')" |
| | | >退出登录 |
| | | >退出登陆 |
| | | </el-button> |
| | | <el-button class="ok" type="primary" @click="activateVersion" |
| | | >激活</el-button |
| | |
| | | <span>{{ item.orderMoney }} 元</span> |
| | | </div> |
| | | <div class="desc"> |
| | | <div>订单生成日期:{{ item.createTime }}</div> |
| | | <div>产品名称:{{ prod.productName }}</div> |
| | | <div>产品类型:{{ prod.productTypeName }}</div> |
| | | <div>系统版本:{{ prod.edition }}</div> |
| | | <div>通道数量:{{ prod.ChCount }}</div> |
| | | <div>摄像机数量:{{ prod.cameraCount }}</div> |
| | | <div>服务时长:{{ prod.serveYear }} 年</div> |
| | | <div>授权数量:{{ prod.authCount }}</div> |
| | | <div>起止服务时间 :{{ startAndEnd(item.createTime, prod.serveYear) }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | showFreeVersion: false, |
| | | activeDialog: false, |
| | | countdown: 60, |
| | | innerDialog: true, |
| | | innerDialog: false, |
| | | versionName: "", |
| | | codeMsg: "获取验证码", |
| | | versionState: "尚未激活", |
| | | // versionState: , |
| | | secrectKey: "", |
| | | curOrder: {}, |
| | | curProd: {}, |
| | |
| | | snExpire: false, |
| | | timer: null, |
| | | token: "", |
| | | orderList: [ |
| | | { |
| | | id: "da09c92a-8bc0-4586-998e-4b6113f457fc", |
| | | orderMoney: 2320, |
| | | products: [ |
| | | { |
| | | ChCount: 16, |
| | | activateCode: "E8B72-E0B09-5F44B-8BBC4-1C5AC", |
| | | activeTime: "", |
| | | appendix: [], |
| | | authCount: 16, |
| | | cameraCount: 0, |
| | | codeStatus: 0, |
| | | devCount: 1, |
| | | devIdList: ["407394c3-bc46-446b-88d5-ddf6d4694e32"], |
| | | devInstallLimit: 1, |
| | | edition: "", |
| | | moduleNames: [], |
| | | orderId: "", |
| | | productBaseDetail: null, |
| | | productId: "44aa3c6c-cb1a-445c-9c42-3af3f0d1bcf4", |
| | | productName: "SmartAI产品密钥", |
| | | productPrice: 0, |
| | | productType: 5, |
| | | productTypeName: "产品密钥", |
| | | productVersion: "", |
| | | sdkNames: [], |
| | | serveYear: 2, |
| | | targetPlatform: "", |
| | | usedCount: 0, |
| | | userId: "", |
| | | }, |
| | | ], |
| | | }, |
| | | |
| | | { |
| | | id: "da09c92a-8bc0-4586-998e-4b6113f457fc", |
| | | |
| | | orderMoney: 2320, |
| | | products: [ |
| | | { |
| | | ChCount: 16, |
| | | activateCode: "E8B72-E0B09-5F44B-8BBC4-1C5AC", |
| | | activeTime: "", |
| | | appendix: [], |
| | | authCount: 16, |
| | | cameraCount: 0, |
| | | codeStatus: 0, |
| | | devCount: 1, |
| | | devIdList: ["407394c3-bc46-446b-88d5-ddf6d4694e32"], |
| | | devInstallLimit: 1, |
| | | edition: "", |
| | | moduleNames: [], |
| | | orderId: "", |
| | | productBaseDetail: null, |
| | | productId: "44aa3c6c-cb1a-445c-9c42-3af3f0d1bcf4", |
| | | productName: "SmartAI产品密钥", |
| | | productPrice: 0, |
| | | productType: 5, |
| | | productTypeName: "产品密钥", |
| | | productVersion: "", |
| | | sdkNames: [], |
| | | serveYear: 2, |
| | | targetPlatform: "", |
| | | usedCount: 0, |
| | | userId: "", |
| | | }, |
| | | ], |
| | | }, |
| | | ], |
| | | orderList: [ ], |
| | | phone: { |
| | | phoneNum: "", |
| | | verifyCode: "", |
| | |
| | | this.validateSn(); |
| | | }, |
| | | methods: { |
| | | startAndEnd(createTime,serveYear){ |
| | | let year = createTime.split("-")[0] |
| | | let endTime = parseInt(year) + serveYear + createTime.slice(4) |
| | | return createTime + " - " + endTime |
| | | }, |
| | | activeVerByOrd() { |
| | | activeByOrder({ |
| | | token: this.token, |
| | |
| | | validateSn() { |
| | | getSN().then((res) => { |
| | | this.snExpire = res.data.expire; |
| | | this.activeDialog = res.data.expire |
| | | this.showFreeVersion = res.data.sn == "" || res.data.expire; |
| | | this.versionName = this.getVersionName(res.data.edition); |
| | | }); |
| | |
| | | getShopOrderList({ token: this.token }) |
| | | .then((res) => { |
| | | if (res.code == 200) { |
| | | // this.orderList = res.data.list; |
| | | this.orderList = res.data.list; |
| | | } else { |
| | | this.$notify.error("获取订单列表失败"); |
| | | } |