| | |
| | | <template> |
| | | <view class="content"> |
| | | <view class="header"> |
| | | <view class="switch-button"> |
| | | <uni-icons type="loop" @click="switchIconsModeHandler"></uni-icons> |
| | | </view> |
| | | </view> |
| | | <view class="mains"> |
| | | <view v-if="!canEdit" :hidden="item.hidden" class="box" v-for="(item,index) in itemData" :key="index" |
| | | @tap="toUrl(item)"> |
| | | <image :src="item.img" mode=""></image> |
| | | <view class="texts"> |
| | | {{item.text}} |
| | | </view> |
| | | </view> |
| | | <view :enable-hidden="item.hidden" v-if="canEdit" class="box edit" v-for="(item,index) in itemData" |
| | | :key="index" @tap="switchHidden(index)"> |
| | | <uni-icons class="edit-mark" color="red" type="closeempty"></uni-icons> |
| | | <image :src="item.img" mode=""></image> |
| | | <view class="texts"> |
| | | {{item.text}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="content"> |
| | | <view class="header"> |
| | | <view class="switch-button"> |
| | | <uni-icons type="loop" @click="switchIconsModeHandler"></uni-icons> |
| | | </view> |
| | | </view> |
| | | <view class="mains"> |
| | | <view v-if="!canEdit" :hidden="item.hidden||!item.id" class="box" v-for="(item,index) in itemData" |
| | | :key="index" @tap="toUrl(item)"> |
| | | <template v-if="item.corner"> |
| | | <uni-badge :text="item.cornerCount" type="error" :max-num="99" size="normal" absolute="rightTop" |
| | | :offset="[7, 7]"> |
| | | <image :src="item.img" mode=""></image> |
| | | </uni-badge> |
| | | </template> |
| | | <template v-else> |
| | | <image :src="item.img" mode=""></image> |
| | | </template> |
| | | <view class="texts"> |
| | | {{item.text}} |
| | | </view> |
| | | </view> |
| | | <view :enable-hidden="item.hidden" :hidden="!item.id" v-if="canEdit" class="box edit" |
| | | v-for="(item,index) in itemData" :key="index" @tap="switchHidden(index)"> |
| | | <uni-icons class="edit-mark" color="red" type="closeempty"></uni-icons> |
| | | <image :src="item.img" mode=""></image> |
| | | <view class="texts"> |
| | | {{item.text}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | canEdit: false, |
| | | serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API', |
| | | itemData: [{ |
| | | img: '../../static/icon/icon9.png', |
| | | text: '工序进站接收单新增', |
| | | tip: '立即新增', |
| | | url: '/pages/gongxuIn/form', |
| | | id: 1, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon9.png', |
| | | text: '工序进站接收单列表', |
| | | tip: '查看列表', |
| | | url: '/pages/gongxuIn/table', |
| | | id: 2, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon10.png', |
| | | text: '工序出站汇报单新增', |
| | | tip: '立即新增', |
| | | url: '/pages/gongxuOut/form', |
| | | id: 3, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon10.png', |
| | | text: '工序出站汇报单列表', |
| | | tip: '查看列表', |
| | | url: '/pages/gongxuOut/table', |
| | | id: 4, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon11.png', |
| | | text: '工序委外发出单新增', |
| | | tip: '立即新增', |
| | | url: '/pages/weiwaigxIn/form', |
| | | id: 5, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon11.png', |
| | | text: '工序委外发出单列表', |
| | | tip: '查看列表', |
| | | url: '/pages/weiwaigxIn/table', |
| | | id: 6, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon12.png', |
| | | text: '工序委外接收单新增', |
| | | tip: '立即新增', |
| | | url: '/pages/weiwaigxOut/form', |
| | | id: 7, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon12.png', |
| | | text: '工序委外接收单列表', |
| | | tip: '查看列表', |
| | | url: '/pages/weiwaigxOut/table', |
| | | id: 8, |
| | | hidden: false, |
| | | } |
| | | // , { |
| | | // img: '../../static/icon/icon1.png', |
| | | // text: '设备档案查询', |
| | | // tip: '查看详情', |
| | | // url: '/pages/shebeidangan/table', |
| | | // id: 9, |
| | | // }, { |
| | | // img: '../../static/icon/icon8.png', |
| | | // text: '设备履历查询', |
| | | // tip: '查看详情', |
| | | // url: '/pages/shebeilvli/table', |
| | | // id: 10, |
| | | // }, { |
| | | // img: '../../static/icon/icon14.png', |
| | | // text: '我的报工平台', |
| | | // tip: '点击进入', |
| | | // url: '/pages/baogong/table', |
| | | // id: 11, |
| | | // }, { |
| | | // img: '../../static/icon/icon13.png', |
| | | // text: '上模单', |
| | | // tip: '查看详情', |
| | | // url: '/pages/MJGL/shangmudan/table', |
| | | // id: 12, |
| | | // }, { |
| | | // img: '../../static/icon/icon13.png', |
| | | // text: '下模单', |
| | | // tip: '查看详情', |
| | | // url: '', |
| | | // id: 13, |
| | | // }, { |
| | | // img: '../../static/icon/icon32.png', |
| | | // text: '设备运行状态', |
| | | // tip: '查看详情', |
| | | // url: '/pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai', |
| | | // id: 14, |
| | | // }, { |
| | | // img: '../../static/icon/icon6.png', |
| | | // text: '模具状态分析', |
| | | // tip: '查看详情', |
| | | // url: '/pages/mujvzhuangtai/mujvzhuangtai', |
| | | // id: 15, |
| | | // }, |
| | | ] |
| | | // itemData: [{ |
| | | // // img:'../../static/icon0.png', |
| | | // // text:'报表中心', |
| | | // // url:'/pages/shebeilvli/table', |
| | | // // id:0 |
| | | // // },{ |
| | | // img: '../../static/icon/icon_a1.png', |
| | | // text: '设备档案', |
| | | // url: '/pages/shebeidangan/table', |
| | | // id: 1 |
| | | // }, { |
| | | // img: '../../static/icon/icon_a2.png', |
| | | // text: '设备保养计划单', |
| | | // url: '/pages/baoyangjihua/table', |
| | | // id: 2 |
| | | // }, { |
| | | // img: '../../static/icon/icon_a3.png', |
| | | // text: '设备保养记录单', |
| | | // url: '/pages/baoyangjilu/table', |
| | | // id: 3 |
| | | // // },{ |
| | | // // img:'../../static/icon/icon_a4.png', |
| | | // // text:'设备点检计划单', |
| | | // // url:'', |
| | | // // id:4 |
| | | // // },{ |
| | | // // img:'../../static/icon/icon_a5.png', |
| | | // // text:'设备点检记录单', |
| | | // // url:'', |
| | | // // id:5, |
| | | // }, { |
| | | // img: '../../static/icon/icon_a6.png', |
| | | // text: '设备故障登记表', |
| | | // url: '/pages/guzhangdengji/table', |
| | | // id: 6 |
| | | // }, { |
| | | // img: '../../static/icon/icon_a7.png', |
| | | // text: '设备维修记录单', |
| | | // url: '/pages/shebeiweixiu/table', |
| | | // id: 7, |
| | | // }, { |
| | | // img: '../../static/icon/icon_a8.png', |
| | | // text: '设备履历', |
| | | // url: '/pages/shebeilvli/table', |
| | | // id: 8, |
| | | // }, { |
| | | // img: '../../static/icon/icon_a9.png', |
| | | // text: '工序进站接收单', |
| | | // url: '/pages/gongxuIn/table', |
| | | // id: 9, |
| | | // }, { |
| | | // img: '../../static/icon/icon_a10.png', |
| | | // text: '工序出站汇报单', |
| | | // url: '/pages/gongxuOut/table', |
| | | // id: 10, |
| | | // }, { |
| | | // img: '../../static/icon/icon_a11.png', |
| | | // text: '工序委外发出单', |
| | | // url: '/pages/weiwaigxIn/table', |
| | | // id: 11, |
| | | // }, { |
| | | // img: '../../static/icon/icon_a12.png', |
| | | // text: '工序委外接收单', |
| | | // url: '/pages/weiwaigxOut/table', |
| | | // id: 12, |
| | | // // }, { |
| | | // // img: '../../static/icon/icon_a13.png', |
| | | // // text: '设备管理', |
| | | // // url: '', |
| | | // // id: 13, |
| | | // }, { |
| | | // img: '../../static/icon/icon_a14.png', |
| | | // text: '报工平台', |
| | | // url: '/pages/baogong/table', |
| | | // id: 14, |
| | | // }, { |
| | | // img: '../../static/icon/icon_a15.png', |
| | | // text: '异常反馈单', |
| | | // url: '/pages/yichang/table', |
| | | // id: 15, |
| | | // }, { |
| | | // img: '../../static/icon/icon_a16.png', |
| | | // text: '异常反馈处理单', |
| | | // url: '/pages/yichang/list', |
| | | // id: 16, |
| | | // }] |
| | | } |
| | | }, |
| | | onLoad() { |
| | | this.getHiddenItem() |
| | | }, |
| | | methods: { |
| | | getHiddenItem() { |
| | | let itemCache = uni.getStorageSync('HTab1ItemData') || '' |
| | | console.log('itemCache: ', itemCache); |
| | | if (itemCache !== '') { |
| | | this.itemData = itemCache |
| | | } |
| | | }, |
| | | switchHidden(index) { |
| | | console.log(this.itemData[index].hidden) |
| | | this.itemData[index].hidden = !this.itemData[index].hidden |
| | | }, |
| | | switchIconsModeHandler() { |
| | | this.canEdit = !this.canEdit |
| | | if (this.canEdit == false) { |
| | | this.$nextTick(() => { |
| | | uni.setStorageSync("HTab1ItemData", this.itemData) |
| | | }) |
| | | } |
| | | this.$forceUpdate() |
| | | }, |
| | | toUrl(item) { |
| | | if (item.url) { |
| | | uni.navigateTo({ |
| | | url: item.url |
| | | }) |
| | | } else { |
| | | uni.showToast({ |
| | | title: '功能开发中。。。', |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | import { |
| | | CommonUtils |
| | | } from '../../utils/common' |
| | | import { |
| | | setMenuList, |
| | | getMenuList |
| | | } from '../../utils/menuListApp' |
| | | import { |
| | | getUserInfo |
| | | } from '../../utils/auth' |
| | | export default { |
| | | data() { |
| | | return { |
| | | bindingData: { |
| | | UnReadCount: 0, |
| | | }, |
| | | initFinished: false, |
| | | updateCount: 0, |
| | | menuListName: 'tab1', |
| | | canEdit: false, |
| | | serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API', |
| | | itemData: [{ |
| | | img: '../../static/icon/icon9.png', |
| | | text: '工序进站接收单新增', |
| | | tip: '立即新增', |
| | | url: '/pages/gongxuIn/Cj_StationInBill', |
| | | id: 1, |
| | | hidden: false, |
| | | }, |
| | | |
| | | { |
| | | img: '../../static/icon/icon10.png', |
| | | text: '工序出站汇报单新增', |
| | | tip: '立即新增', |
| | | url: '/pages/gongxuOut/Cj_StationOutBill', |
| | | id: 2, |
| | | hidden: false, |
| | | }, |
| | | |
| | | { |
| | | img: '../../static/icon/icon11.png', |
| | | text: '工序委外发出单新增', |
| | | tip: '立即新增', |
| | | url: '/pages/weiwaigxIn/Cj_StationEntrustInBill', |
| | | id: 3, |
| | | hidden: false, |
| | | }, |
| | | |
| | | { |
| | | img: '../../static/icon/icon12.png', |
| | | text: '工序委外接收单新增', |
| | | tip: '立即新增', |
| | | url: '/pages/weiwaigxOut/Cj_StationEntrustOutBill', |
| | | id: 4, |
| | | hidden: false, |
| | | }, |
| | | |
| | | { |
| | | img: '../../static/icon/icon14.png', |
| | | text: '我的报工平台', |
| | | tip: '点击进入', |
| | | url: '/pages/baogong/IpadIndex', |
| | | id: 5, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon10.png', |
| | | text: '我的任务', |
| | | tip: '立即新增', |
| | | url: '/pages/gongxuOutSendWork/gongxuOutSendWorkBill', |
| | | id: 6, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon12.png', |
| | | text: '员工签到记录单', |
| | | tip: '立即新增', |
| | | url: '/pages/EmployeeRecords/EmployeeRecordsBill', |
| | | id: 7, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon15.png", |
| | | "text": "工作联系单查询", |
| | | "url": "/pages/ZLGL/OA_WorkLink/OA_WorkLinkBillQuery?OperationType=1", |
| | | "id": 8, |
| | | "hidden": false, |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon16.png", |
| | | "text": "异常反馈待处理列表", |
| | | "url": "/pages/ZLGL/AanDengHujiao/OA_MyErrMsgBanck/OA_ErrMsgBackMyList", |
| | | "id": 9, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "设备故障登记单", |
| | | "url": "/pages/MJGL/Sb_EquipConkBook/Sb_EquipConkBookBill?operationType=1", |
| | | "id": 10, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon13.png", |
| | | "text": "模具故障登记单", |
| | | "url": "/pages/MJGL/Sc_MouldConkBookBill/Sc_MouldConkBookBill?operationType=1", |
| | | "id": 11, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon8.png', |
| | | text: '上模单', |
| | | url: `/pages/MJGL/shangmudan/MouldUpperBill`, |
| | | id: 12, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon8.png', |
| | | text: '下模单', |
| | | url: `/pages/MJGL/xiamodan/MouldLowerBill`, |
| | | id: 13, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon15.png", |
| | | "text": "取样单", |
| | | "url": "/pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBill?operationType=0", |
| | | "id": 14, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "设备点检记录单", |
| | | "url": "/pages/MJGL/Sb_EquipDotCheckBill/Sb_EquipDotCheckBill", |
| | | "id": 15, |
| | | "hidden": false |
| | | }, |
| | | |
| | | // 车间相关单据列表 |
| | | { |
| | | "img": "../../static/icon/icon6.png", |
| | | "text": "设备故障登记列表", |
| | | "url": "/pages/MJGL/Sb_EquipConkBook/Sb_EquipConkBookBillList", |
| | | "id": 16, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon13.png", |
| | | "text": "模具故障登记列表", |
| | | "url": "/pages/MJGL/Sc_MouldConkBookBill/Sc_MouldConkBookBillList", |
| | | "id": 17, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon10.png', |
| | | text: '工序出站汇报单(标准)新增', |
| | | tip: '立即新增', |
| | | url: '/pages/gongxuOut/Cj_StationOutBill_Standard', |
| | | id: 2, |
| | | hidden: false, |
| | | }, |
| | | |
| | | // 质量报表 |
| | | { |
| | | img: '../../static/icon/icon0.png', |
| | | text: '线别异常状态', |
| | | tip: '线别异常状态', |
| | | url: '/pages/ZLGL/QualityReport/QC_ErrManagerLedgerReport_Source', |
| | | id: 18, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon0.png', |
| | | text: '异常类型统计', |
| | | tip: '异常类型统计', |
| | | url: '/pages/ZLGL/QualityReport/QC_ErrManagerLedgerReport_Issue', |
| | | id: 19, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon0.png', |
| | | text: '模具维修统计表', |
| | | tip: '模具维修统计表', |
| | | url: '/pages/ZLGL/QualityReport/Sc_MouldRepairWorkBillReport', |
| | | id: 20, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon0.png', |
| | | text: '设备维修统计表', |
| | | tip: '设备维修统计表', |
| | | url: '/pages/ZLGL/QualityReport/Sb_EquipRepairWorkBillReport', |
| | | id: 21, |
| | | hidden: false, |
| | | }, |
| | | // { |
| | | // img: '../../static/icon/icon0.png', |
| | | // text: '器具保养统计表', |
| | | // tip: '器具保养统计表', |
| | | // url: '/pages/ZLGL/QualityReport/Sc_MouldMaintainBillMainReport', |
| | | // id: 22, |
| | | // hidden: false, |
| | | // }, |
| | | // { |
| | | // img: '../../static/icon/icon0.png', |
| | | // text: '设备保养统计表', |
| | | // tip: '设备保养统计表', |
| | | // url: '/pages/ZLGL/QualityReport/Sb_EquipMaintainBillReport', |
| | | // id: 23, |
| | | // hidden: false, |
| | | // }, |
| | | // { |
| | | // img: '../../static/icon/icon0.png', |
| | | // text: '设备点检统计表', |
| | | // tip: '设备点检统计表', |
| | | // url: '/pages/ZLGL/QualityReport/Sb_EquipDotCheckBillReport', |
| | | // id: 24, |
| | | // hidden: false, |
| | | // }, |
| | | ] |
| | | } |
| | | }, |
| | | onLoad() { |
| | | this.getHiddenItem() |
| | | }, |
| | | async onShow() { |
| | | if (this.initFinished) { |
| | | let MessageIdentifier = await this.getMessageIdentifierCount(this.menuListName) |
| | | if (MessageIdentifier.code == 0) { |
| | | CommonUtils.showTips({ |
| | | title: "温馨提示", |
| | | message: MessageIdentifier.msg |
| | | }) |
| | | |
| | | return |
| | | } |
| | | |
| | | this.itemData.forEach((e, index) => { |
| | | if (MessageIdentifier.data[e.text] != undefined) { |
| | | this.itemData[index]["corner"] = true |
| | | this.itemData[index]["cornerCount"] = MessageIdentifier.data[e.text] |
| | | } |
| | | }) |
| | | |
| | | this.$forceUpdate() |
| | | } |
| | | }, |
| | | async onReady() { |
| | | let MessageIdentifier = await this.getMessageIdentifierCount(this.menuListName) |
| | | if (MessageIdentifier.code == 0) { |
| | | CommonUtils.showTips({ |
| | | title: "温馨提示", |
| | | message: MessageIdentifier.msg |
| | | }) |
| | | |
| | | return |
| | | } |
| | | |
| | | this.itemData.forEach((e, index) => { |
| | | if (MessageIdentifier.data[e.text] != undefined) { |
| | | this.itemData[index]["corner"] = true |
| | | this.itemData[index]["cornerCount"] = MessageIdentifier.data[e.text] |
| | | } |
| | | }) |
| | | |
| | | this.$forceUpdate() |
| | | }, |
| | | methods: { |
| | | async getWorkLinkList() { |
| | | try { |
| | | let res = await CommonUtils.doRequest2Async({ |
| | | url: 'Sc_MESTransFerWorkBill/GetOA_WorkLinkBillList', |
| | | data: { |
| | | sWhere: ` and (接收人 = '${getUserInfo()['HEmpName']}' or 抄送接收人 = '${getUserInfo()['HEmpName']}') and 阅读状态 = '未阅'`, |
| | | user: getUserInfo()["Czymc"] |
| | | } |
| | | }) |
| | | |
| | | let { |
| | | count, |
| | | data, |
| | | Message, |
| | | list |
| | | } = res.data |
| | | if (count == 1) { |
| | | this.bindingData.UnReadCount = data.length |
| | | } else { |
| | | CommonUtils.showTips({ |
| | | title: '温馨提示', |
| | | message: `获取工作联系单异常: ${Message}` |
| | | }) |
| | | } |
| | | |
| | | } catch (err) { |
| | | CommonUtils.showTips({ |
| | | title: '温馨提示', |
| | | message: `获取工作联系单异常: ${err}` |
| | | }) |
| | | } |
| | | }, |
| | | // 根据模块获取未处理消息条数 |
| | | async getMessageIdentifierCount(menuListName) { |
| | | try { |
| | | let res = await CommonUtils.doRequest2Async({ |
| | | url: '/Web/getMessageIdentified', |
| | | data: { |
| | | user: getUserInfo()["HEmpName"], |
| | | moduleName: menuListName |
| | | } |
| | | }) |
| | | let { |
| | | data, |
| | | count, |
| | | Message |
| | | } = res.data |
| | | if (count == 1) { |
| | | let retVal = Array.from(data).reduce((acc, item) => { |
| | | acc[item['moduleName']] = item.count |
| | | return acc |
| | | }, {}) |
| | | |
| | | return { |
| | | code: 1, |
| | | msg: Message, |
| | | data: retVal |
| | | } |
| | | } else { |
| | | return { |
| | | code: 0, |
| | | msg: Message, |
| | | data: [] |
| | | } |
| | | } |
| | | } catch (err) { |
| | | |
| | | } |
| | | }, |
| | | async getHiddenItem() { |
| | | let data = await getMenuList({ |
| | | menuName: this.menuListName |
| | | }) |
| | | |
| | | Array.from(data).forEach((e, index) => { |
| | | if (index < this.itemData.length) { |
| | | this.itemData[e["HIndex"]]["hidden"] = !CommonUtils.stringToBoolean(e[ |
| | | "HShowMode"] || false) |
| | | this.itemData[e["HIndex"]].id = e["HEntryID"]; //id为0强制隐藏 |
| | | } |
| | | }) |
| | | |
| | | let MessageIdentifier = await this.getMessageIdentifierCount(this.menuListName) |
| | | if (MessageIdentifier.code == 0) { |
| | | CommonUtils.showTips({ |
| | | title: "温馨提示", |
| | | message: MessageIdentifier.msg |
| | | }) |
| | | |
| | | return |
| | | } |
| | | |
| | | Array.from(data).forEach((e, index) => { |
| | | if (index < this.itemData.length) { |
| | | if (MessageIdentifier.data[this.itemData[e["HIndex"]].text]) { |
| | | this.$set(this.itemData[e["HIndex"]], "corner", true) |
| | | this.$set(this.itemData[e["HIndex"]], "cornerCount", MessageIdentifier.data[this |
| | | .itemData[e["HIndex"]].text]) |
| | | } |
| | | } |
| | | }) |
| | | this.initFinished = true |
| | | this.$forceUpdate() |
| | | }, |
| | | switchHidden(index) { |
| | | this.updateCount++; |
| | | this.itemData[index].hidden = !this.itemData[index].hidden |
| | | }, |
| | | switchIconsModeHandler() { |
| | | this.canEdit = !this.canEdit |
| | | if (this.canEdit == false && this.updateCount > 0) { |
| | | this.$nextTick(() => { |
| | | // uni.setStorageSync("HIndexItemData", this.itemData) |
| | | setMenuList({ |
| | | menuName: this.menuListName, |
| | | payload: this.itemData |
| | | }) |
| | | |
| | | this.updateCount = 0 |
| | | }) |
| | | } |
| | | this.$forceUpdate() |
| | | }, |
| | | toUrl(item) { |
| | | if (item.url) { |
| | | uni.navigateTo({ |
| | | url: item.url |
| | | }) |
| | | } else { |
| | | uni.showToast({ |
| | | title: '功能开发中。。。', |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .header { |
| | | width: 100%; |
| | | height: 2em; |
| | | position: relative; |
| | | .header { |
| | | width: 100%; |
| | | height: 2em; |
| | | position: relative; |
| | | |
| | | .switch-button { |
| | | position: absolute; |
| | | right: 10rpx; |
| | | bottom: 0; |
| | | } |
| | | } |
| | | .switch-button { |
| | | position: absolute; |
| | | right: 10rpx; |
| | | bottom: 0; |
| | | } |
| | | } |
| | | |
| | | page { |
| | | width: 100vw; |
| | | min-height: 100vh; |
| | | background-color: #fff; |
| | | } |
| | | page { |
| | | width: 100vw; |
| | | min-height: 100vh; |
| | | background-color: #fff; |
| | | } |
| | | |
| | | .mains { |
| | | width: 720rpx; |
| | | margin: 0 auto; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | padding-bottom: 80rpx; |
| | | .mains { |
| | | width: 720rpx; |
| | | margin: 0 auto; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | padding-bottom: 80rpx; |
| | | |
| | | .box { |
| | | width: 25%; |
| | | margin-top: 2.5vh; |
| | | text-align: center; |
| | | .box { |
| | | width: 25%; |
| | | margin-top: 2.5vh; |
| | | text-align: center; |
| | | |
| | | image { |
| | | width: 18vw; |
| | | height: 18vw; |
| | | } |
| | | image { |
| | | width: 18vw; |
| | | height: 18vw; |
| | | } |
| | | |
| | | .texts { |
| | | width: 120rpx; |
| | | margin: 0 auto; |
| | | font-size: 29rpx; |
| | | font-weight: normal; |
| | | color: #333333; |
| | | margin-top: .2vh; |
| | | } |
| | | } |
| | | .texts { |
| | | width: 120rpx; |
| | | margin: 0 auto; |
| | | font-size: 29rpx; |
| | | font-weight: normal; |
| | | color: #333333; |
| | | margin-top: .2vh; |
| | | } |
| | | } |
| | | |
| | | .edit { |
| | | position: relative; |
| | | } |
| | | .edit { |
| | | position: relative; |
| | | } |
| | | |
| | | .edit-mark { |
| | | position: absolute; |
| | | top: 0; |
| | | right: 0; |
| | | } |
| | | .edit-mark { |
| | | position: absolute; |
| | | top: 0; |
| | | right: 0; |
| | | } |
| | | |
| | | view[enable-hidden] { |
| | | opacity: .4 !important; |
| | | } |
| | | view[enable-hidden] { |
| | | opacity: .4 !important; |
| | | } |
| | | |
| | | view[hidden] { |
| | | display: none; |
| | | } |
| | | } |
| | | view[hidden] { |
| | | display: none; |
| | | } |
| | | } |
| | | |
| | | // .mains { |
| | | // width: 720rpx; |
| | | // margin: 0 auto; |
| | | // padding-bottom: 120rpx; |
| | | // .mains { |
| | | // width: 720rpx; |
| | | // margin: 0 auto; |
| | | // padding-bottom: 120rpx; |
| | | |
| | | // .box { |
| | | // width: 680rpx; |
| | | // margin: 0 auto; |
| | | // margin-top: 20rpx; |
| | | // display: flex; |
| | | // align-items: center; |
| | | // background-color: #fff; |
| | | // border-radius: 20rpx; |
| | | // box-shadow: 2upx 2upx 20upx 0 #ddd; |
| | | // .box { |
| | | // width: 680rpx; |
| | | // margin: 0 auto; |
| | | // margin-top: 20rpx; |
| | | // display: flex; |
| | | // align-items: center; |
| | | // background-color: #fff; |
| | | // border-radius: 20rpx; |
| | | // box-shadow: 2upx 2upx 20upx 0 #ddd; |
| | | |
| | | // image { |
| | | // width: 78rpx; |
| | | // height: 78rpx; |
| | | // padding: 10rpx; |
| | | // margin: 14rpx 30rpx; |
| | | // } |
| | | // image { |
| | | // width: 78rpx; |
| | | // height: 78rpx; |
| | | // padding: 10rpx; |
| | | // margin: 14rpx 30rpx; |
| | | // } |
| | | |
| | | // .texts { |
| | | // font-size: 30rpx; |
| | | // font-weight: normal; |
| | | // color: #333333; |
| | | // .texts { |
| | | // font-size: 30rpx; |
| | | // font-weight: normal; |
| | | // color: #333333; |
| | | |
| | | // .font1 {} |
| | | // .font1 {} |
| | | |
| | | // .font2 { |
| | | // font-size: 25rpx; |
| | | // color: #999; |
| | | // } |
| | | // } |
| | | // } |
| | | // } |
| | | // .font2 { |
| | | // font-size: 25rpx; |
| | | // color: #999; |
| | | // } |
| | | // } |
| | | // } |
| | | // } |
| | | </style> |