From 56f05e7eec738c788fc1d3cd6bcfcf9aacde170c Mon Sep 17 00:00:00 2001 From: fengerli <528575642@qq.com> Date: Mon, 14 Jul 2025 16:10:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E7=BB=91=E4=BC=A0=E5=8F=82=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E4=BF=AE=E6=94=B9=EF=BC=8C=E9=9A=90=E7=A7=81=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE=EF=BC=8C=E7=94=A8=E6=88=B7=E5=8D=8F=E8=AE=AE=EF=BC=8C?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E7=9B=B8=E5=AF=B9=E5=BA=94=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/common/index.js | 5 +- pages/6170/deviceControl/index.vue | 2 +- pages/6170/editVideo/index.vue | 11 - pages/6170/operatingInstruct/index.vue | 350 ------------------ pages/common/addBLE/addEquip.vue | 2 - pages/common/index/index.vue | 36 +- pages/common/login/index.vue | 29 +- .../app-plus/static/images/delete-icon.png | Bin 0 -> 605 bytes utils/request.js | 7 +- 9 files changed, 25 insertions(+), 417 deletions(-) delete mode 100644 pages/6170/editVideo/index.vue delete mode 100644 pages/6170/operatingInstruct/index.vue create mode 100644 unpackage/dist/dev/app-plus/static/images/delete-icon.png diff --git a/api/common/index.js b/api/common/index.js index e842bef..26fda5f 100644 --- a/api/common/index.js +++ b/api/common/index.js @@ -18,11 +18,10 @@ export function deviceTypeList(params) { } // 删除设备列表接口 -export function deviceUnbind(data) { +export function deviceUnbind(id) { return request({ - url: '/app/device/unBind', + url: `/app/device/unBind?id=${id}`, method: 'DELETE', - data: data, }) } // 重命名设备 diff --git a/pages/6170/deviceControl/index.vue b/pages/6170/deviceControl/index.vue index 145b08b..6903fce 100644 --- a/pages/6170/deviceControl/index.vue +++ b/pages/6170/deviceControl/index.vue @@ -79,7 +79,7 @@ 激光模式 - + diff --git a/pages/6170/editVideo/index.vue b/pages/6170/editVideo/index.vue deleted file mode 100644 index fca7d0d..0000000 --- a/pages/6170/editVideo/index.vue +++ /dev/null @@ -1,11 +0,0 @@ - - - - - \ No newline at end of file diff --git a/pages/6170/operatingInstruct/index.vue b/pages/6170/operatingInstruct/index.vue deleted file mode 100644 index 6690755..0000000 --- a/pages/6170/operatingInstruct/index.vue +++ /dev/null @@ -1,350 +0,0 @@ - - - - \ No newline at end of file diff --git a/pages/common/addBLE/addEquip.vue b/pages/common/addBLE/addEquip.vue index 6f87957..d5b4a94 100644 --- a/pages/common/addBLE/addEquip.vue +++ b/pages/common/addBLE/addEquip.vue @@ -584,12 +584,10 @@ justify-content: center; } - .openBlue .cancel { border: 1px solid rgba(255, 255, 255, 1); color: rgba(255, 255, 255, 1); } - .openBlue .ok { background-color: #BBE600; color: #232323; diff --git a/pages/common/index/index.vue b/pages/common/index/index.vue index ba73163..68d2b5d 100644 --- a/pages/common/index/index.vue +++ b/pages/common/index/index.vue @@ -25,33 +25,7 @@ - - + @click="handleSwipeClick($event, item, index)" class="device-card"> @@ -282,11 +256,9 @@ }, // 右滑点击事件处理 handleSwipeClick(e, item, index) { - const { - content - } = e + const {content} = e console.log(e, 'eeeee'); - switch (content.text) { + switch (e.content.text) { case '删除': this.handleDeleteDevice(item, index) break @@ -307,7 +279,7 @@ let data = { id: this.deviceId.id } - deviceUnbind(data).then((res) => { + deviceUnbind(this.deviceId.id).then((res) => { if (res.code == 200) { uni.showToast({ title: '删除成功', diff --git a/pages/common/login/index.vue b/pages/common/login/index.vue index 9563062..36d7434 100644 --- a/pages/common/login/index.vue +++ b/pages/common/login/index.vue @@ -19,8 +19,9 @@ - 我已认真阅读,理解并同意《用户服务协议》《隐私政策》 + 我已认真阅读,理解并同意《用户服务协议》《隐私政策》 @@ -61,7 +62,7 @@ return { showView: false, //codebtn: '获取验证码', - phone: '17671332251', //手机号码 + phone: '13058067817', //手机号码 code: "123456", //验证码 agreed: false, isCounting: false, @@ -171,19 +172,15 @@ } }, - // 打开具体协议 - openProtocol(type) { - if (type === 'user') { - // 跳转到用户协议页面 - uni.navigateTo({ - url: '/pages/protocol/user' - }) - } else { - // 跳转到隐私政策页面 - uni.navigateTo({ - url: '/pages/protocol/privacy' - }) - } + // 跳转到协议页面 + goToPage(type) { + const url = type === 'agreement' ? + '/pages/common/userAgreement/index' // 服务协议 + : + '/pages/common/privacyAgreement/index'; // 隐私政策 + uni.navigateTo({ + url: url + }); }, // 不同意 diff --git a/unpackage/dist/dev/app-plus/static/images/delete-icon.png b/unpackage/dist/dev/app-plus/static/images/delete-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..611fc9fe70b70abb4082b6ed5e583794cdf44f67 GIT binary patch literal 605 zcmV-j0;2tiP)MF0Q*v*rNT?0wzqoaODov-4egyQV6-R+*a=m62{ZQ$&y-0PR!^MK6kK<@d!|Ns9N@2;x= z0016zQchC<3VOut_Wb|b>i^ZJgY*CY|NrN$VJwWZ%K!iW|5#}1CjbBeheu`(GJApalyrJL`dxUm`=Sl{{@aNuQSU^Y}$6Nb~mi_71u5Qxq zYd^Er>hWtI2iEGl!|cdP$thXvjnX44C8bx3hvUL#A-%DeGlfm*5^#5>FkBYez@5w& zp7am51u9d=Y{z?^C-;%VI&f|kU_Fepn{4d7u7jY8iUifOZvj`R_OQ-az%^PoL$B-m z+PD8}N znUMJf?|2+vUhMu8jQ>S$t~L+C+{SLIO^kaB!OH?J1Uw@5(3&_MOlwnWX>Ed=*4AI6 r)P`iY>6vX)CaD?Fj@i { console.log("options"+JSON.stringify(options)) return new Promise((resolve, reject) => { @@ -40,5 +40,8 @@ const request = (options) => { uni.request(config); }); }; - +// 导出基础URL以便其他地方使用 +export const baseURL = BASE_URL +export const getToken = () => uni.getStorageSync('token') // 获取token的方法 +export const clientid =() => uni.getStorageSync('clientID'); export default request; \ No newline at end of file