更新记录

1.1(2019-11-01)

修改H5以及APP,小程序之间的路由uni.navigateBack 传值问题

1.0(2019-11-01)

组件引用了ColorUI-UniApp组件样式,完善了其中索引扩展组件。


平台兼容性

前言:

该插件样式可根据自身需求进行更改,主要内容为实现客户首字母的检索以及信息返回。

插件引用了ColorUI-UniApp 的样式,只补充了其中索引部分的实现功能。

开始使用:

引用页面引入样式

<!--主页面内引入组件-->
<customer :placeHolder="placeHolder"></customer>
@import "main.css";
import customer from "路径/find-customer.vue"
export default {
        data(){
            return {
                // 传入客户值  插件引入
                placeHolder:"请输入客户名",
                // 当前选中客户值
                customerInfo:{
                    name:"",
                    custId:""
                },
            }
        },
        // 接收路由回传的值 插件引入使用onShow方法(方法中间没有空格,onShow打不出来,无奈加个空格)
        on Show (e) {
            let pages = getCurrentPages();
            let currPage = pages[pages.length-1];
            // H5
            //if(currPage.data.nameInfo==undefined || currPage.data.custIdInfo==''){
            //  console.log(111)
            // }else{
            //  this.customerInfo.name = currPage._data.nameInfo
            //  this.customerInfo.custId = currPage._data.custIdInfo
            //  this.placeHolder=currPage._data.nameInfo
            // }
            // APP、小程序
            if(currPage.data.nameInfo==undefined || currPage.data.custIdInfo==''){
                }else{
                    this.customerInfo.name = currPage.data.nameInfo
                    this.customerInfo.custId = currPage.data.custIdInfo
                    this.placeHolder = currPage.data.nameInfo
              }
        },mounted() {
        },methods:{
        },components:{
            customer
        }
    }

配置baozi-customerFind.vue中的引入路径

data(){
    return {
        customerRouterUrl:"相对于引用页面的路径/choose-customer",
        customerInfoShow:''
    }
}

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问