shish 4 лет назад
Родитель
Сommit
c7eab070ee

+ 0 - 14
ghsPad/src/manifest.json

@@ -135,20 +135,6 @@
                     "pid" : "462",
                     "parameters" : {}
                 }
-            },
-            "CL-Dialog" : {
-                "__plugin_info__" : {
-                    "name" : "确认提示框",
-                    "description" : "为了统一两个平台的提示(对话框)框的效果,以及对文字颜色内容的可自定义",
-                    "platforms" : "Android,iOS",
-                    "url" : "https://ext.dcloud.net.cn/plugin?id=1497",
-                    "android_package_name" : "zhh.huahuibao.app",
-                    "ios_bundle_id" : "",
-                    "isCloud" : true,
-                    "bought" : 1,
-                    "pid" : "1497",
-                    "parameters" : {}
-                }
             }
         }
     },

+ 0 - 61
ghsPad/src/utils/util.js

@@ -347,66 +347,6 @@ export const unique = (arr) => {
 	}
 	return arr;
 };
-//#ifdef APP-PLUS
-const CLDialog=uni.requireNativePlugin("CL-Dialog")
-//#endif
-export const confirmModal = (item,okCallback=null,cancelCallback=null) => {
-
-	let title = item.title || '提示'
-	let content = item.content || '确认操作?'
-	let okText = item.okText || '确认'
-	let cancelText = item.cancelText || '取消'
-	let cacelTextColor = '#999999'
-	let okTextColor = '#38ADFF'
-	let singer = item.singer || false
-
-	//#ifdef APP-PLUS
-	let options={
-		title:title,//标题 (可选)
-		con:content,//内容(可选)但是标题和内容至少选择一个
-		okTitle:okText,//确认按钮文字(可选)
-		cancleTitle:cancelText,//取消按钮文字(可选)
-		okTextColor:"#38ADFF",//确认按钮颜色(可选)
-		cancleTextColor:"#999999",//取消按钮颜色(可选)
-		singer:singer,//是否只显示确认按钮,默认false(可选)
-		textAlign:"center",//对齐方式 //left居左,center居中,right 居右 默认居中
-		conColor:"",
-		bgColor:"#FFFFFF",//自定义弹框颜色
-		titleColor:"#3d3d3d"//自定义title颜色
-	}
-	CLDialog.show(options,()=>{
-		if(okCallback!=null){
-			okCallback()
-		}
-	},()=>{
-		if(cancelCallback!=null){
-			cancelCallback()
-		}
-	})
-	//#endif
-	// #ifdef MP-WEIXIN
-	uni.showModal({
-		title: title,
-		content: content,
-		showCancel: true,
-		cancelText: cancelText,
-		cancelColor: cacelTextColor,
-		confirmText: okText,
-		confirmColor: okTextColor,
-		success: function (res) {
-			if (res.confirm) {
-				if(okCallback!=null){
-					okCallback()
-				}
-			} else if (res.cancel) {
-				if(cancelCallback!=null){
-					cancelCallback()
-				}
-			}
-		}
-	})
-	//#endif
-}
 //判断是否有扫码的条件
 export const isScanEnv = () =>{
 	let isScanEnv = false
@@ -508,7 +448,6 @@ export default {
 	noStockRemind,
 	callUp,
 	hitRemind,
-	confirmModal,
 	isScanEnv,
 	add,
 	sub,

+ 0 - 14
hdPad/src/manifest.json

@@ -128,20 +128,6 @@
             }
         },
         "nativePlugins" : {
-            "CL-Dialog" : {
-                "__plugin_info__" : {
-                    "name" : "确认提示框",
-                    "description" : "为了统一两个平台的提示(对话框)框的效果,以及对文字颜色内容的可自定义",
-                    "platforms" : "Android,iOS",
-                    "url" : "https://ext.dcloud.net.cn/plugin?id=1497",
-                    "android_package_name" : "zhh.huahuibao.hhb.app",
-                    "ios_bundle_id" : "",
-                    "isCloud" : true,
-                    "bought" : 1,
-                    "pid" : "1497",
-                    "parameters" : {}
-                }
-            }
         }
     },
     /* 快应用特有相关 */

+ 0 - 61
hdPad/src/utils/util.js

@@ -347,66 +347,6 @@ export const unique = (arr) => {
 	}
 	return arr;
 };
-//#ifdef APP-PLUS
-const CLDialog=uni.requireNativePlugin("CL-Dialog")
-//#endif
-export const confirmModal = (item,okCallback=null,cancelCallback=null) => {
-
-	let title = item.title || '提示'
-	let content = item.content || '确认操作?'
-	let okText = item.okText || '确认'
-	let cancelText = item.cancelText || '取消'
-	let cacelTextColor = '#999999'
-	let okTextColor = '#38ADFF'
-	let singer = item.singer || false
-
-	//#ifdef APP-PLUS
-	let options={
-		title:title,//标题 (可选)
-		con:content,//内容(可选)但是标题和内容至少选择一个
-		okTitle:okText,//确认按钮文字(可选)
-		cancleTitle:cancelText,//取消按钮文字(可选)
-		okTextColor:"#38ADFF",//确认按钮颜色(可选)
-		cancleTextColor:"#999999",//取消按钮颜色(可选)
-		singer:singer,//是否只显示确认按钮,默认false(可选)
-		textAlign:"center",//对齐方式 //left居左,center居中,right 居右 默认居中
-		conColor:"",
-		bgColor:"#FFFFFF",//自定义弹框颜色
-		titleColor:"#3d3d3d"//自定义title颜色
-	}
-	CLDialog.show(options,()=>{
-		if(okCallback!=null){
-			okCallback()
-		}
-	},()=>{
-		if(cancelCallback!=null){
-			cancelCallback()
-		}
-	})
-	//#endif
-	// #ifdef MP-WEIXIN
-	uni.showModal({
-		title: title,
-		content: content,
-		showCancel: true,
-		cancelText: cancelText,
-		cancelColor: cacelTextColor,
-		confirmText: okText,
-		confirmColor: okTextColor,
-		success: function (res) {
-			if (res.confirm) {
-				if(okCallback!=null){
-					okCallback()
-				}
-			} else if (res.cancel) {
-				if(cancelCallback!=null){
-					cancelCallback()
-				}
-			}
-		}
-	})
-	//#endif
-}
 //判断是否有扫码的条件
 export const isScanEnv = () =>{
 	let isScanEnv = false
@@ -508,7 +448,6 @@ export default {
 	noStockRemind,
 	callUp,
 	hitRemind,
-	confirmModal,
 	isScanEnv,
 	add,
 	sub,

+ 0 - 14
开发/ghsPad/src/manifest.json

@@ -132,20 +132,6 @@
                     "pid" : "462",
                     "parameters" : {}
                 }
-            },
-            "CL-Dialog" : {
-                "__plugin_info__" : {
-                    "name" : "确认提示框",
-                    "description" : "为了统一两个平台的提示(对话框)框的效果,以及对文字颜色内容的可自定义",
-                    "platforms" : "Android,iOS",
-                    "url" : "https://ext.dcloud.net.cn/plugin?id=1497",
-                    "android_package_name" : "zhh.huahuibao.app",
-                    "ios_bundle_id" : "",
-                    "isCloud" : true,
-                    "bought" : 1,
-                    "pid" : "1497",
-                    "parameters" : {}
-                }
             }
         }
     },

+ 0 - 14
开发/hdPad/src/manifest.json

@@ -128,20 +128,6 @@
             }
         },
         "nativePlugins" : {
-            "CL-Dialog" : {
-                "__plugin_info__" : {
-                    "name" : "确认提示框",
-                    "description" : "为了统一两个平台的提示(对话框)框的效果,以及对文字颜色内容的可自定义",
-                    "platforms" : "Android,iOS",
-                    "url" : "https://ext.dcloud.net.cn/plugin?id=1497",
-                    "android_package_name" : "zhh.huahuibao.hhb.app",
-                    "ios_bundle_id" : "",
-                    "isCloud" : true,
-                    "bought" : 1,
-                    "pid" : "1497",
-                    "parameters" : {}
-                }
-            }
         }
     },
     /* 快应用特有相关 */

+ 0 - 14
线上/ghsPad/src/manifest.json

@@ -132,20 +132,6 @@
                     "pid" : "462",
                     "parameters" : {}
                 }
-            },
-            "CL-Dialog" : {
-                "__plugin_info__" : {
-                    "name" : "确认提示框",
-                    "description" : "为了统一两个平台的提示(对话框)框的效果,以及对文字颜色内容的可自定义",
-                    "platforms" : "Android,iOS",
-                    "url" : "https://ext.dcloud.net.cn/plugin?id=1497",
-                    "android_package_name" : "zhh.huahuibao.app",
-                    "ios_bundle_id" : "",
-                    "isCloud" : true,
-                    "bought" : 1,
-                    "pid" : "1497",
-                    "parameters" : {}
-                }
             }
         }
     },

+ 0 - 14
线上/hdPad/src/manifest.json

@@ -128,20 +128,6 @@
             }
         },
         "nativePlugins" : {
-            "CL-Dialog" : {
-                "__plugin_info__" : {
-                    "name" : "确认提示框",
-                    "description" : "为了统一两个平台的提示(对话框)框的效果,以及对文字颜色内容的可自定义",
-                    "platforms" : "Android,iOS",
-                    "url" : "https://ext.dcloud.net.cn/plugin?id=1497",
-                    "android_package_name" : "zhh.huahuibao.hhb.app",
-                    "ios_bundle_id" : "",
-                    "isCloud" : true,
-                    "bought" : 1,
-                    "pid" : "1497",
-                    "parameters" : {}
-                }
-            }
         }
     },
     /* 快应用特有相关 */