Procházet zdrojové kódy

提现与联系客户

shish před 4 roky
rodič
revize
355e2cef2e
1 změnil soubory, kde provedl 31 přidání a 5 odebrání
  1. 31 5
      ghsApp/src/admin/home/me.vue

+ 31 - 5
ghsApp/src/admin/home/me.vue

@@ -127,8 +127,8 @@
               <div class="tui-title">云打印</div>
             </tui-list-cell>
 
-            <tui-list-cell @click="pageTo({ url: '/pagesOrder/print' })" class="line-cell" :hover="false" :arrow="true">
-              <div class="tui-title">蓝牙打印</div>
+            <tui-list-cell @click="getCustomService()" class="line-cell" :hover="false" :arrow="true">
+              <div class="tui-title">联系客服</div>
             </tui-list-cell>
 
           </view>
@@ -180,13 +180,31 @@ export default {
     this.init()
   },
   onShow () {
-    // this.init()
     if(uni.getStorageSync('switchTabQuery').refresh == '1') {
       this.init()
       uni.removeStorageSync('switchTabQuery')
     }
   },
   methods: {
+		getCustomService(){
+			let self = this;
+			uni.showModal({
+				title: "客服电话微信",
+				content: "15280215347",
+				cancelText: "取消",
+				confirmText: "复制",
+				success: function (res) {
+					if (res.confirm) {
+						uni.setClipboardData({
+							data: "15280215347",
+							success: function() {
+								self.$msg("已复制")
+							}
+						});
+					}
+				},
+			})
+		},
     shopShow () {
       this.shopId = this.getLoginInfo.shopId;
       this.$refs.dorpdownSelect.dropdownShow = true;
@@ -238,8 +256,16 @@ export default {
         self.applyCash();
       }
     },
-    async applyCash () {
-      const { data } = await applyCash({});
+    applyCash () {
+      uni.showLoading({title: "提交中"});
+      let that = this
+      applyCash({}).then(res=>{
+        if(res.code == 1){
+          uni.hideLoading();
+        }
+        that.$msg(res.msg)
+      })
+
     },
     _list () { },
   },