shish пре 4 година
родитељ
комит
0c5475e4a7

+ 3 - 16
ghsApp/src/pagesClient/official/result.vue

@@ -1,21 +1,13 @@
 <template>
 	<appResult title="提交成功">
-        <view class="dec">
-            审核时间为一个工作日
-        </view>
-		<button 
-            class="admin-button-com blue big" 
-            @click="close"
-            >
-            返回
-            </button>
+        <view class="dec"> 审核时间一个工作日 </view>
+		<button class="admin-button-com blue big" @click="close" > 返回 </button>
 	</appResult>
 </template>
-
 <script>
 import appResult from '@/components/app-result'
 export default {
-	name: "ApplyResult", // 开单结果
+	name: "ApplyResult",
 	components:{
 		appResult
     },
@@ -24,11 +16,7 @@ export default {
       uni.removeStorageSync('HOME_STATUS_STROAGE_SHOW')
     },
     methods:{
-        handleContact(e){
-            console.log(e)
-        },
         close() {
-          // this.pageTo({url: '/admin/home/workbench', type:})
           this.pageTo({url: '/admin/home/workbench', type: 4})
           uni.setStorageSync('HOME_REFRESH', '1')
           uni.removeStorageSync('HOME_STATUS_STROAGE_SHOW')
@@ -36,7 +24,6 @@ export default {
     }
 };
 </script>
-
 <style lang="scss" scoped>
     .dec {
      color: #666666;   

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
hdApp/dist/build/app-plus/manifest.json


BIN
hdApp/dist/debug/android_debug.apk


+ 4 - 0
hdApp/src/admin/home/me.vue

@@ -66,6 +66,10 @@
               <div class="tui-title">提现帐号</div>
             </tui-list-cell>
 
+            <tui-list-cell @click="pageTo({ url: '/admin/shop/password' })" class="line-cell" :hover="false" :arrow="true">
+              <div class="tui-title">密码修改</div>
+            </tui-list-cell>
+
             <tui-list-cell @click="pageTo({ url: '/pagesStore/me/expressSet' })" class="line-cell" :hover="false" :arrow="true" >
               <div class="tui-title">快递设置</div>
             </tui-list-cell>

+ 5 - 3
hdApp/src/admin/home/workbench.vue

@@ -184,9 +184,11 @@ export default {
           this.getappIdList = res.data
         });
         getUser().then(res => {
-          uni.setNavigationBarTitle({
-            title: res.name
-          });
+          if(res.name){
+            uni.setNavigationBarTitle({ title: res.name })
+          }else{
+            uni.setNavigationBarTitle({ title: '店铺' })
+          }
         })
         // #ifdef MP-WEIXIN
         this.isMini = 1

+ 106 - 0
hdApp/src/admin/shop/password.vue

@@ -0,0 +1,106 @@
+<template>
+  <div class="app-content">
+    <div>
+      <form @submit="formSubmit">
+        <div class="module-com input-line-wrap">
+          <tui-list-cell class="line-cell" :hover="false">
+            <div class="tui-title">密码:</div>
+            <input v-model="form.password" @focus="form.password=''" placeholder-class="phcolor" class="tui-input" name="password" placeholder="填写新密码" maxlength="50" type="password" />
+          </tui-list-cell>
+        </div>
+        <div class="confirm-btn">
+          <button class="admin-button-com big blue" formType="submit">
+            提交
+          </button>
+        </div>
+      </form>
+    </div>
+  </div>
+</template>
+<script>
+import TuiListCell from "@/components/plugin/list-cell";
+import AppAvatarModule from "@/components/module/app-avatar";
+const form = require("@/utils/formValidation.js");
+import { modifyPassword } from "@/api/admin";
+export default {
+  name: "shopPassword",
+  components: {
+    TuiListCell,
+    AppAvatarModule,
+  },
+  data() {
+    return {
+      form: {
+        password: ""
+      }
+    };
+  },
+  onLoad() {
+  },
+  onShow() {
+    uni.setNavigationBarTitle({
+      title: `密码设置`,
+    });
+  },
+  methods: {
+    async init() {
+
+    },
+    confirmFn() {
+      modifyPassword(this.form).then((res) => {
+        this.$msg(res.msg);
+        if(res.code == 1){
+          setTimeout(() => {
+            uni.navigateBack();
+          }, 1000)
+        }
+      });
+    },
+    formSubmit(e) {
+      let rules = [
+        {
+          name: "password",
+          rule: ["required"],
+          msg: ["请填写密码"],
+        }
+      ]
+      this.confirmFn();
+    },
+  },
+};
+</script>
+
+<style lang="scss" scoped>
+.app-content {
+  min-height: calc(100vh - 20upx);
+  padding-top: 20upx;
+}
+.prompt-text {
+  color: $fontColor3;
+  padding-left: 30upx;
+  margin-bottom: 30upx;
+}
+.module-com {
+  margin-bottom: 20upx;
+  .member-wrap {
+    .member-det {
+      font-size: 24upx;
+      margin-left: 20upx;
+    }
+  }
+  .remark-wrap {
+    align-items: flex-start;
+    .remark {
+      height: 240upx;
+    }
+  }
+}
+// 按钮
+.confirm-btn {
+  width: calc(100% - 60upx);
+  margin: 60upx 30upx 20upx;
+  .admin-button-com {
+    width: 100%;
+  }
+}
+</style>

+ 5 - 4
hdApp/src/api/admin/index.js

@@ -1,8 +1,5 @@
 import https from '@/plugins/luch-request_0.0.7/request'
 
-/** *
- * 广告列表  b
- */
 export const adminSetPayPassword = data => {
 	return https.get('/admin/set-pay-password', data)
 }
@@ -10,4 +7,8 @@ export const adminSetPayPassword = data => {
 //添加修改安卓clientId
 export const replaceClientId = data => {
 	return https.get("/admin/replace-client-id", data);
-}
+}
+
+export const modifyPassword = data => {
+	return https.get("/admin/modify-password", data);
+};

+ 2 - 1
hdApp/src/pages.json

@@ -201,7 +201,8 @@
 				{"path": "list","style": {"navigationBarTitleText": "门店"}},
 				{"path": "downloadCode","style": {"navigationBarTitleText": "收款码"}},
 				{"path": "add","style": {"navigationBarTitleText": ""}},
-				{"path": "print","style": {"navigationBarTitleText": "云打印"}}
+				{"path": "print","style": {"navigationBarTitleText": "云打印"}},
+				{"path": "password","style": {"navigationBarTitleText": "修改密码"}}
 			]
 		},
 		{

Неке датотеке нису приказане због велике количине промена