shish 3 лет назад
Родитель
Сommit
79fed8b518

+ 95 - 0
ghsApp/src/admin/home/close.vue

@@ -0,0 +1,95 @@
+<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 required">手机号</div>
+              <input v-model="form.mobile" type="number" placeholder-class="phcolor" placeholder-style="color:#CCCCCC" class="tui-input" name="mobile" placeholder="请填写手机号" />
+          </tui-list-cell>
+          <tui-list-cell class="line-cell remark-wrap" :hover="false">
+            <div class="tui-title required">注销原因</div>
+            <div class="tui-input">
+              <textarea v-model="form.remark" style="height:80upx;" class="tui-textarea remark" placeholder-class="phcolor" placeholder="请填写注销原因" />
+            </div>
+          </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";
+export default {
+  name: "close",
+  components: {
+    TuiListCell
+  },
+  data() {
+    return {
+      form: {
+        roleId: "",
+        remind: 1,
+        password: "",
+        status: 1,
+        remark: "",
+        name:'',
+        mobile:'',
+        super:0
+      }
+    };
+  },
+  methods: {
+    formSubmit() {
+      if(this.$util.checkMobile(this.form.mobile) == false){
+        this.$msg('请输入正确手机号')
+        return false
+      }
+      if (this.$util.isEmpty(this.form.remark)){
+        this.$msg('请填写注销原因')
+        return false
+      }
+      this.$msg('提交成功,审核中')
+      setTimeout(function(){
+        uni.navigateBack({})
+      },1300)
+    }
+  }
+};
+</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>

+ 9 - 1
ghsApp/src/admin/home/me.vue

@@ -130,6 +130,7 @@
         <view class="bottom-agreement">
           <text @click.stop="goToService">服务协议</text>
           <text class="right" @click.stop="goToPrivacy">隐私政策</text>
+          <text class="right" @click.stop="closeAccount()">注销账号</text>
         </view>
         <view class="bottom-version">version {{version}}</view>
         
@@ -222,6 +223,9 @@ export default {
     // #endif
   },
   methods: {
+    closeAccount(){
+      this.$util.pageTo({ url: '/admin/home/close' })
+    },
     suggest(){
       let that = this
       that.$util.confirmModal({content:'请添加客服微信:15280215347',okText:'复制'},() => {
@@ -288,10 +292,14 @@ export default {
       })
     },
 		goToService(){
+      // #ifdef APP-PLUS
 			plus.runtime.openURL('http://www.wixhb.com/main/xhb-register')
+      // #endif
 		},
 		goToPrivacy(){
+      // #ifdef APP-PLUS
 			plus.runtime.openURL('http://www.wixhb.com/main/xhb-privacy')
+      // #endif
 		},
     showAllShop () {
       this.$refs.shopSelectComponent.dropdownShow = true;
@@ -495,7 +503,7 @@ export default {
       }
       .right{
         z-index:99999;
-        margin-left:39upx;
+        margin-left:30upx;
       }
     }
     .bottom-version{

+ 1 - 0
ghsApp/src/pages.json

@@ -13,6 +13,7 @@
 		{"path": "admin/home/mall","style": {"navigationBarTitleText": "商城"}},
 		{"path": "admin/home/register","style": {"navigationBarTitleText": "服务协议"}},
 		{"path": "admin/home/privacy","style": {"navigationBarTitleText": "隐私政策"}},
+		{"path": "admin/home/close","style": {"navigationBarTitleText": "申请注销账号"}},
 		{"path": "common/redirect","style": {"navigationBarTitleText": "加载中..."}},
 		{"path": "common/webview","style": {"navigationBarBackgroundColor": "#ffffff","navigationBarTextStyle": "black"}},
 		{"path": "common/pageSuccess","style": {"navigationBarBackgroundColor": "#ffffff","navigationBarTextStyle": "black"}},

+ 95 - 0
hdApp/src/admin/home/close.vue

@@ -0,0 +1,95 @@
+<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 required">手机号</div>
+              <input v-model="form.mobile" type="number" placeholder-class="phcolor" placeholder-style="color:#CCCCCC" class="tui-input" name="mobile" placeholder="请填写手机号" />
+          </tui-list-cell>
+          <tui-list-cell class="line-cell remark-wrap" :hover="false">
+            <div class="tui-title required">注销原因</div>
+            <div class="tui-input">
+              <textarea v-model="form.remark" style="height:80upx;" class="tui-textarea remark" placeholder-class="phcolor" placeholder="请填写注销原因" />
+            </div>
+          </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";
+export default {
+  name: "close",
+  components: {
+    TuiListCell
+  },
+  data() {
+    return {
+      form: {
+        roleId: "",
+        remind: 1,
+        password: "",
+        status: 1,
+        remark: "",
+        name:'',
+        mobile:'',
+        super:0
+      }
+    };
+  },
+  methods: {
+    formSubmit() {
+      if(this.$util.checkMobile(this.form.mobile) == false){
+        this.$msg('请输入正确手机号')
+        return false
+      }
+      if (this.$util.isEmpty(this.form.remark)){
+        this.$msg('请填写注销原因')
+        return false
+      }
+      this.$msg('提交成功,审核中')
+      setTimeout(function(){
+        uni.navigateBack({})
+      },1300)
+    }
+  }
+};
+</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>

+ 9 - 1
hdApp/src/admin/home/me.vue

@@ -117,6 +117,7 @@
         <view class="bottom-agreement">
           <text @click.stop="goToService">服务协议</text>
           <text class="right" @click.stop="goToPrivacy">隐私政策</text>
+          <text class="right" @click.stop="closeAccount()">注销账号</text>
         </view>
         <view class="bottom-version">version {{version}}</view>
 
@@ -182,11 +183,18 @@ export default {
 			})
     },
 		goToService(){
+      // #ifdef APP-PLUS
 			plus.runtime.openURL('http://www.wixhb.com/main/hzg-register')
+      // #endif
 		},
 		goToPrivacy(){
+      // #ifdef APP-PLUS
 			plus.runtime.openURL('http://www.wixhb.com/main/hzg-privacy')
+      // #endif
 		},
+    closeAccount(){
+      this.$util.pageTo({ url: '/admin/home/close'})
+    },
     // #ifdef APP-PLUS
     loginOut(){
         let that = this
@@ -412,7 +420,7 @@ export default {
       }
       .right{
         z-index:99999;
-        margin-left:39upx;
+        margin-left:30upx;
       }
     }
     .bottom-version{

+ 1 - 0
hdApp/src/pages.json

@@ -6,6 +6,7 @@
 		{ "path": "admin/home/order", "style": { "navigationBarTitleText": "订单", "enablePullDownRefresh": true } },
 		{ "path": "admin/home/member", "style": { "navigationBarTitleText": "客户", "enablePullDownRefresh": true } },
 		{ "path": "admin/home/apply", "style": { "navigationBarTitleText": "应用", "enablePullDownRefresh": true } },
+		{ "path": "admin/home/close","style": {"navigationBarTitleText": "申请注销账号"}},
 		{ "path": "admin/home/me", "style": { "navigationBarTitleText": "我的", "enablePullDownRefresh": true, "navigationStyle": "custom" } },
 		{"path": "common/success","style": {"navigationBarBackgroundColor": "#ffffff","navigationBarTextStyle": "black"}}
 	],