Kaynağa Gözat

医院经销商

xiaohaizhao 5 ay önce
ebeveyn
işleme
d5ac1db2bf

+ 2 - 2
app.json

@@ -53,7 +53,6 @@
                 "hospital/insert",
                 "hospital/address/add/index",
                 "select/saler/index",
-                "select/area/index",
                 "select/hospital/index",
                 "department/detail",
                 "trace/add/index",
@@ -85,7 +84,8 @@
                 "contract/insert",
                 "winstall/index",
                 "winstall/detail",
-                "winstall/insert"
+                "winstall/insert",
+                "select/dealer/index"
             ]
         },
         {

+ 19 - 14
prsx/dealer/detail.js

@@ -370,21 +370,26 @@ Page({
         this.partialRenewal();
     },
     onUnload() {
-        const page = getCurrentPages().find(v => v.__route__ == 'prsx/dealer/index');
-        if (!page) return;
-        let content = JSON.parse(JSON.stringify(page.data.content));
-        content.pageSize = (content.pageNumber - 1) * content.pageSize;
-        content.pageNumber = 1;
-        _Http.basic({
-            id: '20221011144903',
-            content
-        }).then(res => {
-            console.log("更新列表", res);
-            if (res.code == '1') {
-                page.setData({
-                    list: res.data,
-                    "content.total": res.total
+        getCurrentPages().forEach(page => {
+            if (page.__route__ == 'prsx/dealer/index') {
+                let content = JSON.parse(JSON.stringify(page.data.content));
+                content.pageSize = (content.pageNumber - 1) * content.pageSize;
+                content.pageNumber = 1;
+                _Http.basic({
+                    id: '20221011144903',
+                    content
+                }).then(res => {
+                    console.log("更新列表", res);
+                    if (res.code == '1') {
+                        page.setData({
+                            list: res.data,
+                            "content.total": res.total
+                        })
+                    }
                 })
+            } else {
+                let page1 = page.selectComponent("#Dealer");
+                if (page1) page1.getList("", true)
             }
         })
     }

+ 164 - 0
prsx/hospital/Dealer/index.js

@@ -0,0 +1,164 @@
+const _Http = getApp().globalData.http;
+
+Component({
+    properties: {
+        disabled: {
+            type: Boolean,
+            value: true
+        }
+    },
+    options: {
+        addGlobalClass: true
+    },
+    data: {
+        sa_customersid: 0,
+        content: {
+            nocache: true,
+            pageNumber: 1,
+            pageSize: 10,
+            pageTotal: 1,
+            total: null,
+            where: {
+                condition: ""
+            }
+        },
+        list: [],
+        showSearch: false,
+        focus: false,
+        condition: ""
+    },
+    lifetimes: {
+        attached: function () {
+            getApp().globalData.Language.getLanguagePackage(this)
+        }
+    },
+    methods: {
+        getList(id, init = false) {
+            let content = {
+                ...this.data.content,
+                sa_customersid: id || this.data.sa_customersid
+            };
+            if (init) {
+                content.pageNumber = 1
+                content.pageTotal = 1
+            }
+            _Http.basic({
+                "id": 2025102713075502,
+                content
+            }).then(res => {
+                console.log("经销商", res)
+                if (res.code != '1') return wx.showToast({
+                    title: res.data,
+                    icon: "none"
+                });
+                this.setData({
+                    "content.pageNumber": res.pageNumber + 1,
+                    "content.pageTotal": res.pageTotal,
+                    "content.total": res.total,
+                    list: res.pageNumber == 1 ? res.data : this.data.list.concat(res.data),
+                    sa_customersid: content.sa_customersid
+                })
+            })
+        },
+        insetr() {
+            let params = {
+                "id": 2025102714042402,
+                "content": {
+                    "pageNumber": 1,
+                    "pageSize": 20,
+                    sa_customersid: this.data.sa_customersid
+                },
+            }
+            wx.navigateTo({
+                url: '/prsx/select/dealer/index?params=' + JSON.stringify(params) + '&radio=true',
+            })
+            let that = this;
+            getApp().globalData.handleSelect = function ({
+                item
+            }) {
+                wx.showModal({
+                    content: `是否确定添加“${item.enterprisename}”`,
+                    complete: ({
+                        confirm
+                    }) => {
+                        if (confirm) _Http.basic({
+                            "id": 2025102713181402,
+                            "content": {
+                                "sa_customersid": that.data.sa_customersid,
+                                "sa_agentsids": [item.sa_agentsid]
+                            },
+                        }).then(res => {
+                            console.log("添加经销商", res)
+                            wx.showToast({
+                                title: res.code == 1 ? '添加成功' : res.msg,
+                                icon: "none"
+                            });
+                            if (res.code == 1) that.getList("", true)
+                        })
+                    }
+                })
+            }.bind(this)
+        },
+        deleteItem(e) {
+            console.log(e)
+            const {
+                item
+            } = e.currentTarget.dataset,
+                that = this;
+
+            wx.showModal({
+                content: `是否确定删除“${item.enterprisename}”`,
+                complete: ({
+                    confirm
+                }) => {
+                    if (confirm) _Http.basic({
+                        "id": 2025102713243702,
+                        "content": {
+                            sa_agents_hospitalid:item.sa_agents_hospitalid
+                        },
+                    }).then(res => {
+                        console.log("删除经销商", res)
+                        wx.showToast({
+                            title: res.code == 1 ? '删除成功' : res.msg,
+                            icon: "none"
+                        });
+                        if (res.code == 1) that.getList("", true)
+                    })
+                }
+            })
+
+
+        },
+        toSearch() {
+            if (this.data.showSearch && this.data.content.where.condition) {
+                this.data.content.where.condition = '';
+                this.getList("", true);
+            } else if (this.data.condition) {
+                this.data.content.where.condition = this.data.condition;
+                this.setData({
+                    condition: this.data.condition
+                })
+                this.getList("", true);
+            }
+            this.setData({
+                showSearch: !this.data.showSearch
+            })
+            setTimeout(() => {
+                this.setData({
+                    focus: this.data.showSearch
+                })
+            }, 300)
+        },
+        onChange({
+            detail
+        }) {
+            this.data.condition = detail;
+        },
+        onSearch({
+            detail
+        }) {
+            this.data.content.where.condition = detail;
+            this.getList("", true)
+        }
+    }
+})

+ 1 - 0
prsx/select/area/index.json → prsx/hospital/Dealer/index.json

@@ -1,3 +1,4 @@
 {
+    "component": true,
     "usingComponents": {}
 }

+ 127 - 0
prsx/hospital/Dealer/index.scss

@@ -0,0 +1,127 @@
+.head {
+	display: flex;
+	align-items: center;
+	width: 100vw;
+	height: 120rpx;
+	padding: 0 20rpx 0 30rpx;
+	box-sizing: border-box;
+
+	.count {
+		font-size: 28rpx;
+		font-family: PingFang SC-Regular, PingFang SC;
+		color: #333333;
+	}
+
+	.expand {
+		flex: 1;
+		display: flex;
+		align-items: center;
+		justify-content: flex-end;
+
+		.but {
+			display: flex;
+			align-items: center;
+			justify-content: center;
+			flex-shrink: 0;
+			width: 80rpx;
+			height: 80rpx;
+			background: #FFFFFF;
+			border-radius: 8rpx;
+			border: 2rpx solid #CCCCCC;
+			margin-left: 20rpx;
+			color: #666666;
+		}
+	}
+}
+
+.custom-class {
+	--search-background-color: #fff !important;
+	padding-right: 10rpx !important;
+}
+
+.project-item {
+	position: relative;
+	background-color: #fff;
+	width: 690rpx;
+	border-radius: 8rpx;
+	margin: 0 auto 20rpx;
+
+	.delete {
+		padding: 20rpx;
+		border-radius: 8rpx;
+		position: absolute;
+		right: 0;
+		top: 0;
+		color: #999;
+	}
+
+	.label {
+		display: flex;
+		height: 42rpx;
+
+		.title {
+			flex: 1;
+			width: 0;
+			font-size: 30rpx;
+			font-family: PingFang SC-Regular, PingFang SC;
+			color: #333333;
+			margin-right: 20rpx;
+		}
+
+		.state {
+			flex-shrink: 0;
+			width: 132rpx;
+			height: 40rpx;
+			line-height: 40rpx;
+			border-radius: 20rpx 0px 0px 20rpx;
+			font-size: 24rpx;
+			font-family: PingFang SC-Regular, PingFang SC;
+			color: #FFFFFF;
+			text-align: center;
+			margin-right: -20rpx;
+		}
+	}
+
+	.tag-box {
+		display: flex;
+		align-items: center;
+		width: 100%;
+
+		.datatag,
+		.systemtag {
+			flex-shrink: 0;
+			margin-top: 6rpx;
+			background: #3874f6;
+			color: #ffffff;
+			margin-right: 10rpx;
+			display: flex;
+			align-items: center;
+			height: 40rpx;
+			font-size: 20rpx;
+			padding: 0 10rpx;
+			border-radius: 20rpx;
+			font-family: PingFang SC-Regular, PingFang SC;
+		}
+
+		.datatag {
+			background: #FA8C16;
+		}
+	}
+
+	.replenish {
+		display: flex;
+		min-height: 34rpx;
+		font-size: 24rpx;
+		font-family: PingFang SC-Regular, PingFang SC;
+		color: #333333;
+		margin-top: 8rpx;
+		word-break: break-all;
+		white-space: pre-wrap;
+	}
+}
+
+.line-1 {
+	overflow: hidden;
+	white-space: nowrap;
+	text-overflow: ellipsis;
+}

+ 74 - 0
prsx/hospital/Dealer/index.wxml

@@ -0,0 +1,74 @@
+<view class="head">
+	<view class="count">
+		经销商
+	</view>
+	<view class="expand">
+		<van-search wx:if="{{showSearch}}" custom-class='custom-class' focus='{{focus}}' value="{{ condition }}" shape="round" bind:change='onChange' bind:search='onSearch' bind:clear='onSearch' placeholder="搜索关键词" background='#F4F5F7' />
+		<navigator url="#" class="but" bindtap="toSearch">
+			<van-icon name="search" />
+		</navigator>
+		<navigator wx:if="{{disabled}}" url="#" class="but" bindtap="insetr">
+			<van-icon name="plus" />
+		</navigator>
+	</view>
+</view>
+<navigator url="/prsx/dealer/detail?id={{item.sa_agentsid}}" class="project-item global-card" wx:for="{{list}}" wx:key="sa_agentsid">
+	<navigator class="delete" url="#" data-item="{{item}}" catch:tap="deleteItem">
+		<text class="iconfont icon-shanchu1"></text>
+	</navigator>
+	<view class="label">
+		<view class="title line-1">{{item.enterprisename}}</view>
+		<!-- <view class="state" style="background-color: {{sColors[item.status]}}">{{item.status}}</view> -->
+	</view>
+	<view class="tag-box">
+		<view class="systemtag" wx:for="{{item.tag_sys}}" wx:key="item">{{language[item]||item}}</view>
+		<view class="datatag" wx:for="{{item.tag}}" wx:key="item">{{language[item]||item}}</view>
+	</view>
+	<view class="replenish">
+		<text style="color: #666;">编号:</text>
+		<text>{{item.agentnum || ' --'}}</text>
+	</view>
+	<view class="replenish">
+		<text style="color: #666;">合作状态:</text>
+		<text>{{item.cooperatetype || ' --'}}</text>
+	</view>
+	<view class="replenish">
+		<text style="color: #666;">营销区域:</text>
+		<text>{{item.areanames || ' --'}}</text>
+	</view>
+	<view class="replenish">
+		<text style="color: #666;">省市县:</text>
+		<text>{{item.province + item.city +item.county  || ' --'}}</text>
+	</view>
+	<view class="replenish">
+		<text style="color: #666;">总经理:</text>
+		<text>{{item.gmname || ' --'}}</text>
+	</view>
+	<view class="replenish">
+		<text style="color: #666;">业务员:</text>
+		<text>{{item.salernames || ' --'}}</text>
+	</view>
+	<view class="replenish">
+		<text style="color: #666;">备注:</text>
+		<text>{{item.remarks || ' --'}}</text>
+	</view>
+</navigator>
+<My_empty wx:if="{{list.length==0}}" />
+
+
+<wxs module="render">
+	module.exports = {
+		rightRate: function (rate) {
+			if (rate - 0 < 50) {
+				return 'transform: rotate(' + 3.6 * (rate - 0) + 'deg);';
+			} else {
+				return 'transform: rotate(0);border-color: var(--assist);';
+			}
+		},
+		leftRate: function (rate) {
+			if (rate - 0 >= 50) {
+				return 'transform: rotate(' + 3.6 * (rate - 50) + 'deg);';
+			}
+		}
+	}
+</wxs>

+ 4 - 0
prsx/hospital/detail.js

@@ -246,6 +246,10 @@ Page({
             tabsList = [{
                 label: "详细信息",
                 icon: "icon-tabxiangxixinxi1"
+            }, {
+                label: "签约经销商",
+                icon: "icon-jingxiaoshang",
+                model: "#Dealer"
             }, {
                 label: "科室",
                 icon: "icon-keshi",

+ 1 - 0
prsx/hospital/detail.json

@@ -5,6 +5,7 @@
         "Address": "/prsx/hospital/address/index",
         "Product": "/prsx/hospital/Product/index",
         "Doctors": "/prsx/hospital/Doctors/index",
+        "Dealer": "/prsx/hospital/Dealer/index",
         "Department": "/prsx/hospital/Department/index",
         "Contract": "./Contract/index"
     },

+ 1 - 0
prsx/hospital/detail.wxml

@@ -19,6 +19,7 @@
     <Preview slot='详细信息' list1='{{list1}}' list2='{{list2}}' />
     <Trace resource='医院管理' slot='跟进动态' id='Trace' ownertable='sa_customers' ownerid='{{sa_customersid}}' disabled="{{detail.status != '已终止'}}" ownerid1='{{detail.sys_enterpriseid}}' />
     <Address slot='地址管理' id='Address' disabled="{{(per.query(appAuth.options,'address')||isAdmin||isLeader)&& detail.status != '已终止'}}" />
+    <Dealer slot='签约经销商' id='Dealer' />
     <Doctors slot='医生' id='Doctors' disabled="{{isLeader}}" />
     <Contract slot='合同' id='Contract' />
     <Product slot='推荐产品' id='Product' disabled="{{isLeader}}" />

+ 0 - 66
prsx/select/area/index.js

@@ -1,66 +0,0 @@
-// prsx/select/area/index.js
-Page({
-
-    /**
-     * 页面的初始数据
-     */
-    data: {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad(options) {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady() {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow() {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide() {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload() {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh() {
-
-    },
-
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    onReachBottom() {
-
-    },
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage() {
-
-    }
-})

+ 0 - 1
prsx/select/area/index.scss

@@ -1 +0,0 @@
-/* prsx/select/area/index.wxss */

+ 0 - 2
prsx/select/area/index.wxml

@@ -1,2 +0,0 @@
-<!--prsx/select/area/index.wxml-->
-<text>prsx/select/area/index.wxml</text>

+ 125 - 0
prsx/select/dealer/index.js

@@ -0,0 +1,125 @@
+const _Http = getApp().globalData.http;
+
+Page({
+    data: {
+        params: {}, //请求体
+        result: [], //返回结果
+        radio: false, //是否为单选
+        idname: "sa_agentsid", //idkey
+        showName: "enterprisename", //表单用 显示名称
+        sColors: getApp().globalData.sColors,
+    },
+    onLoad(options) {
+        console.log("options", options)
+        if (options.params) {
+            let params = JSON.parse(options.params);
+            if (!params.content.pageNumber || !params.content.pageTotal) {
+                params.content.pageNumber = 1;
+                params.content.pageTotal = 1;
+            }
+            this.setData({
+                params
+            });
+        }
+        this.setData({
+            radio: options.radio ? true : false,
+            idname: options.idname || this.data.idname,
+            showName: options.showName || this.data.showName
+        });
+        this.getList()
+    },
+    getList(init = false) {
+        //init 用于初始化分页
+        if (init.detail != undefined) init = init.detail;
+        let params = this.data.params;
+        if (init) params.content.pageNumber = 1;
+        if (params.content.pageNumber > params.content.pageTotal) return;
+        //init 用于初始化分页
+        _Http.basic(params).then(res => {
+            console.log("选择经销商列表", res)
+            this.selectComponent('#ListBox').RefreshToComplete();
+            if (res.code != '1') return wx.showToast({
+                title: res.data,
+                icon: "none"
+            })
+            this.setData({
+                'params.content.pageNumber': res.pageNumber + 1,
+                'params.content.pageTotal': res.pageTotal,
+                'params.content.total': res.total,
+                list: res.pageNumber == 1 ? res.data : this.data.list.concat(res.data)
+            })
+        })
+    },
+    uploadList() {
+        let params = JSON.parse(JSON.stringify(this.data.params));
+        params.content.pageSize = (params.content.pageNumber - 1) * params.content.pageSize;
+        params.content.pageNumber = 1;
+        _Http.basic(params).then(res => {
+            console.log("更新列表", res);
+            if (res.code != '1') return wx.showToast({
+                title: res.data,
+                icon: "none"
+            })
+            this.setData({
+                'params.content.total': res.total,
+                list: res.data
+            })
+        })
+    },
+    /* 选中 */
+    changeResult(e) {
+        let {
+            id
+        } = e.currentTarget.dataset, result = this.data.result;
+        if (this.data.radio) {
+            result = [id];
+        } else {
+            result.some(v => v == id) ? result = result.filter(v => v != id) : result.push(id)
+        }
+        this.setData({
+            result
+        });
+        if (this.data.radio) this.submit();
+    },
+    /* 提交 */
+    submit() {
+        let result = this.data.result,
+            obj = this.data.radio ? {
+                id: result,
+                item: this.data.list.find(value => value[this.data.idname] == result),
+                value: [this.data.list.find(value => value[this.data.idname] == result)[this.data.showName], result]
+            } : {
+                result,
+                list: result.map(v => this.data.list.find(value => value[this.data.idname] == v)),
+                value: [result.map(v => {
+                    let data = this.data.list.find(value => value[this.data.idname] == v);
+                    return data ? data[this.data.showName] : ""
+                }), result]
+            }
+        getApp().globalData.handleSelect && getApp().globalData.handleSelect(obj)
+    },
+    /* 开始搜索 */
+    startSearch({
+        detail
+    }) {
+        let condition = this.data.content ? this.data.content.where.condition : this.data.params.content.where.condition;
+        if (detail == condition) return;
+        this.setData({
+            'content.where.condition': detail,
+            'params.content.where.condition': detail
+        });
+        this.getList(true);
+    },
+    /* 取消搜索 */
+    onClear() {
+        this.setData({
+            'content.where.condition': "",
+            'params.content.where.condition': ""
+        });
+        this.getList(true);
+    },
+    onUnload() {
+        //回收数据
+        getApp().globalData.handleSelect = null;
+    },
+})

+ 4 - 0
prsx/select/dealer/index.json

@@ -0,0 +1,4 @@
+{
+    "usingComponents": {},
+    "navigationBarTitleText": "选择医生"
+}

+ 114 - 0
prsx/select/dealer/index.scss

@@ -0,0 +1,114 @@
+.project-item {
+	background-color: #fff;
+	width: 690rpx;
+	border-radius: 8rpx;
+	margin: 0 auto 20rpx;
+
+	.label {
+		display: flex;
+		height: 42rpx;
+
+		.title {
+			flex: 1;
+			width: 0;
+			font-size: 30rpx;
+			font-family: PingFang SC-Regular, PingFang SC;
+			color: #333333;
+			margin-right: 20rpx;
+		}
+
+		.state {
+			flex-shrink: 0;
+			width: 132rpx;
+			height: 40rpx;
+			line-height: 40rpx;
+			border-radius: 20rpx 0px 0px 20rpx;
+			font-size: 24rpx;
+			font-family: PingFang SC-Regular, PingFang SC;
+			color: #FFFFFF;
+			text-align: center;
+			margin-right: -20rpx;
+		}
+	}
+
+	.tag-box {
+		display: flex;
+		align-items: center;
+		width: 100%;
+
+		.datatag,
+		.systemtag {
+			flex-shrink: 0;
+			margin-top: 6rpx;
+			background: #3874f6;
+			color: #ffffff;
+			margin-right: 10rpx;
+			display: flex;
+			align-items: center;
+			height: 40rpx;
+			font-size: 20rpx;
+			padding: 0 10rpx;
+			border-radius: 20rpx;
+			font-family: PingFang SC-Regular, PingFang SC;
+		}
+
+		.datatag {
+			background: #FA8C16;
+		}
+	}
+
+	.replenish {
+		display: flex;
+		min-height: 34rpx;
+		font-size: 24rpx;
+		font-family: PingFang SC-Regular, PingFang SC;
+		color: #333333;
+		margin-top: 8rpx;
+		word-break: break-all;
+		white-space: pre-wrap;
+	}
+}
+
+.line-1 {
+	overflow: hidden;
+	white-space: nowrap;
+	text-overflow: ellipsis;
+}
+
+.footer {
+	display: flex;
+	justify-content: space-between;
+	align-items: center;
+	padding: 0 30rpx;
+	position: fixed;
+	width: 100vw;
+	height: 130rpx;
+	background: #FFFFFF;
+	box-shadow: 0px -4rpx 16rpx 2rpx rgba(150, 157, 165, 0.16);
+	bottom: 0;
+	box-sizing: border-box;
+
+	.count {
+		font-size: 28rpx;
+		font-family: PingFang SC-Regular, PingFang SC;
+		color: #333333;
+	}
+
+	.but {
+		width: 156rpx;
+		height: 90rpx;
+		background: #3874F6;
+		border-radius: 8rpx;
+		font-size: 28rpx;
+		font-family: PingFang SC-Bold, PingFang SC;
+		font-weight: bold;
+		color: #FFFFFF;
+	}
+}
+
+.iconfont {
+	font-size: 28rpx;
+	font-family: PingFang SC-Regular, PingFang SC;
+	color: #666666;
+	padding: 0 10rpx;
+}

+ 62 - 0
prsx/select/dealer/index.wxml

@@ -0,0 +1,62 @@
+<van-search value="{{ params.content.where.condition }}" shape='round' placeholder="请输入搜索关键词" use-action-slot bind:clear='onClear' bind:search="startSearch">
+</van-search>
+<view class="global-total">总共{{params.content.total}}个</view>
+<Yl_ListBox id='ListBox' bind:getlist='getList'>
+	<navigator url="#" class="project-item global-card" data-id="{{item.sa_agentsid}}" bind:tap="changeResult" wx:for="{{list}}" wx:key="sa_agentsid">
+		<view class="label">
+			<view class="title line-1">{{item.enterprisename}}</view>
+			<view class="state" style="background-color: {{sColors[item.status]}}">{{item.status}}</view>
+		</view>
+		<view class="tag-box">
+			<view class="systemtag" wx:for="{{item.tag_sys}}" wx:key="item">{{language[item]||item}}</view>
+			<view class="datatag" wx:for="{{item.tag}}" wx:key="item">{{language[item]||item}}</view>
+		</view>
+		<view class="replenish">
+			<text style="color: #666;">编号:</text>
+			<text>{{item.agentnum || ' --'}}</text>
+		</view>
+		<view class="replenish">
+			<text style="color: #666;">合作状态:</text>
+			<text>{{item.cooperatetype || ' --'}}</text>
+		</view>
+		<view class="replenish">
+			<text style="color: #666;">营销区域:</text>
+			<text>{{item.areanames || ' --'}}</text>
+		</view>
+		<view class="replenish">
+			<text style="color: #666;">省市县:</text>
+			<text>{{item.province + item.city +item.county  || ' --'}}</text>
+		</view>
+		<view class="replenish">
+			<text style="color: #666;">总经理:</text>
+			<text>{{item.gmname || ' --'}}</text>
+		</view>
+		<view class="replenish">
+			<text style="color: #666;">业务员:</text>
+			<text>{{item.salernames || ' --'}}</text>
+		</view>
+		<view class="replenish">
+			<text style="color: #666;">备注:</text>
+			<text>{{item.remarks || ' --'}}</text>
+		</view>
+	</navigator>
+	<view wx:if="{{!radio}}" style="height: 70rpx;" />
+	<My_empty wx:if="{{!list.length}}" />
+</Yl_ListBox>
+<block wx:if="{{!radio}}">
+	<view class="footer">
+		<view class="count">
+			已选:{{result.length}}
+		</view>
+		<van-button custom-class='but' disabled='{{result.length==0}}' bind:click="submit">确定</van-button>
+	</view>
+	<wxs module="handle">
+		module.exports = {
+			isCheck: function (id, list) {
+				return list.some(function (v) {
+					return v == id
+				});
+			},
+		}
+	</wxs>
+</block>