邹能昇 пре 4 месеци
родитељ
комит
babd464e58

+ 1 - 1
nova-tourism/components/collect/index.wxml

@@ -71,7 +71,7 @@
             <view class="Legendary-Information" wx:if="{{storeList.length!=0}}">
                 <block wx:for="{{storeList}}" wx:if="{{item.isCollect}}">
                     <view class="cardbox">
-                        <image class="pic" src="{{item.homestayStore.image[0]}}" data-id="{{item.homestayStore.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl"></image>
+                        <image class="pic" src="{{item.homestayStore.cover}}" data-id="{{item.homestayStore.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl"></image>
                         <view class="textobx">
                             <view class="title" data-id="{{item.homestayStore.objectId}}" data-url="../../pages/homestay/homestay-detail/index" bindtap="gourl">
                                 <view class="til">{{item.homestayStore.storeName}}</view>

+ 95 - 156
nova-tourism/pages/homestay/customer/customer-info/index.js

@@ -6,169 +6,121 @@ Page({
      */
     data: {
         realname: '',
-        cardtype: '身份证',
-        idcard: '',
+        // cardtype: '身份证', // 注释掉证件类型
+        // idcard: '', // 注释掉身份证号码
         mobile: '',
-        formctrl:{
+        formctrl: {
             realname: '姓名',
-            cardtype: '身份证',
-            idcard: '证件号码',
+            // cardtype: '证件类型', // 注释掉证件类型
+            // idcard: '证件号码', // 注释掉身份证号码
             mobile: '手机号码' 
         },
         showTypePicker: false,
-        columns: ['身份证','护照','港澳通行证','台胞证'],
-    },
-    selectCardtype(){
-        this.setData({
-            showTypePicker:true
-        })
-    },
-    typePickerEnter(event){
-        const { picker, value, index } = event.detail;
-        console.log(picker, value, index);
-        console.log(`当前值:${value}, 当前索引:${index}`);
-        this.setData({
-            cardtype:value,
-            showTypePicker:false
-        })
-    },
-    typePickerCancel(){
-        console.log('取消');
-        this.setData({
-            showTypePicker:false
-        })
-    },
-    onChange(){
+        columns: ['身份证', '护照', '港澳通行证', '台胞证'], // 注释掉证件类型选择
+    },
+    
+    selectCardtype() {
+        // this.setData({
+        //     showTypePicker: true // 注释掉证件类型选择
+        // })
+    },
+    
+    typePickerEnter(event) {
+        // const { picker, value, index } = event.detail;
+        // console.log(picker, value, index);
+        // console.log(`当前值:${value}, 当前索引:${index}`);
+        // this.setData({
+        //     cardtype: value,
+        //     showTypePicker: false
+        // })
+    },
+    
+    typePickerCancel() {
+        // console.log('取消');
+        // this.setData({
+        //     showTypePicker: false
+        // })
+    },
+    
+    onChange() {
         console.log(this.data.realname);
     },
-    checkform(){
+    
+    checkform() {
         let formctrl = this.data.formctrl;
         let keys = Object.keys(formctrl);
         for (let index = 0; index < keys.length; index++) {
             let key = keys[index];
-            if(this.data[key].trim() == ''){
-                console.log(key,this.data[key]);
+            if (this.data[key].trim() == '') {
+                console.log(key, this.data[key]);
                 wx.showToast({
-                  title: `请输入${formctrl[key]}`,
-                  icon: 'error'
-                })
+                    title: `请输入${formctrl[key]}`,
+                    icon: 'error'
+                });
                 return false;
             }
         }
-        // this.data.realname
-        // this.data.idcard
+        
+        // 只检查姓名和手机号码
         let checkName = /[\u4e00-\u9fa5]/.test(this.data.realname);
         if (!checkName) {
             wx.showToast({
-                title: '请输入您的真实姓名',
+                title: '请输入正确姓名',
                 icon: 'none',
                 duration: 2000
-            })
-            return false
+            });
+            return false;
         }
+        
         let checkMobile = /^1[34578]\d{9}$/.test(this.data.mobile);
         if (!checkMobile) {
             wx.showToast({
                 title: '手机号码格式有误',
                 icon: 'none',
                 duration: 2000
-            })
-            return false
-        }
-        let checkIdcard = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/gi.test(this.data.idcard)
-        if (!checkIdcard) {
-            wx.showToast({
-                title: '请输入正确的身份证号',
-                icon: 'none',
-                duration: 2000
-            })
-            return false
+            });
+            return false;
         }
 
         return true;
     },
-    verifyIdcardName(){
-        return new Promise((resolve,reject)=>{
-            wx.request({
-                url: "https://server.fmode.cn/api/apig/idcard", //请求接口的url
-                method: "POST", //请求方式
-                data: {
-                    company: company,
-                    cardNo: this.data.idcard,
-                    realName: this.data.realname
-                }, //请求参数
-                header: {
-                    "content-type": "application/json", // 默认值
-                },
-                success: (res) => {
-                    if(res.statusCode != '200'){
-                        console.log(res);
-                        resolve(false)
-                    }
-                    console.log(res.data.data.result);
-                    if (res.data.data.result.isok) {
-                        resolve(true)
-                    } else {
-                        resolve(false)
-                    }
-                },
-                fail:(err)=>{
-                    console.log(err);
-                    wx.showToast({
-                        title: err,
-                        icon: 'none',
-                        duration: 2000
-                    })
-                }
-            })
-        })
-
-    },
-    async save(){
-        let checked = this.checkform()
-        console.log(checked);
-        if(!checked){
-            return false
-        }
-        let verifyIdcardName = await this.verifyIdcardName()
-        console.log(verifyIdcardName);
-        if(!verifyIdcardName){
-            wx.showToast({
-              title: '身份校验失败,请输入真实姓名和身份证号',
-              icon: 'none'
-            })
-            return false
+    
+    async save() {
+        let checked = this.checkform();
+        if (!checked) {
+            return false;
         }
+    
         wx.showToast({
             title: '添加成功',
             icon: 'none',
             duration: 1000
-          })
-
+        });
+    
         let formdata = {
-            realname:this.data.realname,
-            cardtype:this.data.cardtype,
-            idcard:this.data.idcard,
-            mobile:this.data.mobile
+            realname: this.data.realname,
+            // cardtype: this.data.cardtype, // 注释掉证件类型
+            // idcard: this.data.idcard, // 注释掉身份证号码
+            mobile: this.data.mobile
         };
-        let customers = wx.getStorageSync("customers")
-        if(customers){
-            console.log(customers);
-            customers.forEach((customer,index) =>{
-                if(customer.realname == this.data.realname){
-                    customers[index] = formdata
-                }
-            })
-        }else {
-            customers = []
-            customers.push(formdata)
+    
+        let customers = wx.getStorageSync("customers") || []; // 确保 customers 存在
+        const existingCustomerIndex = customers.findIndex(customer => customer.realname === this.data.realname);
+    
+        if (existingCustomerIndex !== -1) {
+            // 如果客户已经存在,则更新客户信息
+            customers[existingCustomerIndex] = formdata;
+        } else {
+            // 如果客户不存在,则添加新的客户信息
+            customers.push(formdata);
         }
-        wx.setStorageSync("customers",customers)
-        setTimeout(()=>{
+    
+        wx.setStorageSync("customers", customers);
+        setTimeout(() => {
             wx.navigateBack({
                 delta: 1,
-              }) 
-        },1000)
+            });
+        }, 1000);
     },
 
     /**
@@ -176,74 +128,61 @@ Page({
      */
     onLoad: function (options) {
         console.log(options);
-        let {type,name}=options;
-        if(type== 'edit' && name){
-            this.initCustomerInfo(name)
+        let { type, name } = options;
+        if (type == 'edit' && name) {
+            this.initCustomerInfo(name);
         }
     },
-    initCustomerInfo(name){
-        let customers = wx.getStorageSync("customers")
-        if(customers){
+    
+    initCustomerInfo(name) {
+        let customers = wx.getStorageSync("customers");
+        if (customers) {
             console.log(customers);
-            customers.forEach((customer,index) =>{
-                if(customer.realname == name){
+            customers.forEach((customer, index) => {
+                if (customer.realname == name) {
                     this.setData({
                         realname: customer.realname,
-                        cardtype: customer.cardtype,
-                        idcard: customer.idcard,
+                        // cardtype: customer.cardtype, // 注释掉证件类型
+                        // idcard: customer.idcard, // 注释掉身份证号码
                         mobile: customer.mobile,
-                    })
+                    });
                 }
-            })
+            });
         }
     },
 
     /**
      * 生命周期函数--监听页面初次渲染完成
      */
-    onReady: function () {
-
-    },
+    onReady: function () {},
 
     /**
      * 生命周期函数--监听页面显示
      */
-    onShow: function () {
-
-    },
+    onShow: function () {},
 
     /**
      * 生命周期函数--监听页面隐藏
      */
-    onHide: function () {
-
-    },
+    onHide: function () {},
 
     /**
      * 生命周期函数--监听页面卸载
      */
-    onUnload: function () {
-
-    },
+    onUnload: function () {},
 
     /**
      * 页面相关事件处理函数--监听用户下拉动作
      */
-    onPullDownRefresh: function () {
-
-    },
+    onPullDownRefresh: function () {},
 
     /**
      * 页面上拉触底事件的处理函数
      */
-    onReachBottom: function () {
-
-    },
+    onReachBottom: function () {},
 
     /**
      * 用户点击右上角分享
      */
-    onShareAppMessage: function () {
-
-    }
-})
+    onShareAppMessage: function () {}
+});

+ 6 - 6
nova-tourism/pages/homestay/customer/customer-info/index.wxml

@@ -6,17 +6,17 @@
         </view>
     </list-item>
     <van-divider customStyle="margin:8rpx 0;"/>
-    <list-item label="证件类型" arrow="arrow" bind:arrowtap="selectCardtype">
+    <!-- <list-item label="证件类型" arrow="arrow" bind:arrowtap="selectCardtype">
         <view slot="content" bind:tap="selectCardtype">
             <text class="text text-left">{{cardtype}}</text>
         </view>
-    </list-item>
-    <van-divider customStyle="margin:8rpx 0;"/>
+    </list-item> -->
+    <!-- <van-divider customStyle="margin:8rpx 0;"/>
     <list-item label="证件号码" >
         <view slot="content">
             <input type="idcard" placeholder="请填写真实证件号码"  model:value="{{idcard}}"/>
         </view>
-    </list-item>
+    </list-item> -->
     <van-divider customStyle="margin:8rpx 0;"/>
     <list-item label="手机号码" >
         <view slot="content">
@@ -25,13 +25,13 @@
     </list-item>
     <van-divider customStyle="margin:8rpx 0;"/>
 </view>
-<view class="page-section">
+<!-- <view class="page-section">
     <view class="text-small spacing-small grey">
         <van-icon name="warning" class="warning"></van-icon>
         <text class="tips">根据国家相关法律法规,入住经营性质的酒店、民宿,必须提供入住者的身份信息。\n 您的身份信息会严格保密,仅用于必要的身份核实。\n上述手机号码将用于房东在提供入住和相关服务时联系房客,请您知悉。
         </text>
     </view>
-</view>
+</view> -->
 <view class="page-section">
     <button  class="save-btn" size="large" bind:tap="save">保存</button>
 </view>

+ 2 - 2
nova-tourism/pages/homestay/customer/select-customer/index.js

@@ -34,8 +34,8 @@ Page({
         let customers = wx.getStorageSync('customers');
         if(customers.length){
             customers = customers.map(customer =>  {
-                 customer['idcard'] = this.hiddenMiddleText(customer['idcard'])
-                 customer['checked'] = false
+                //  customer['idcard'] = this.hiddenMiddleText(customer['idcard'])
+                //  customer['checked'] = false
                  return customer;
             })
         }

+ 3 - 2
nova-tourism/pages/homestay/customer/select-customer/index.wxml

@@ -16,8 +16,9 @@
             <view class="" slot="content">
                 <view class="text">{{customer['realname']}}</view>
                 <view class="text-small">
-                    <text class=" grey">{{customer['cardtype']}}</text>
-                    <text >{{customer['idcard']}}</text>
+                    <!-- <text class=" grey">{{customer['cardtype']}}</text> -->
+                    <!-- <text >{{customer['idcard']}}</text> -->
+                    <text >{{customer['mobile']}}</text>
                 </view>
             </view>
             <view class="text-small grey" slot="end" data-name='{{customer.realname}}' bind:tap="toEdit">

+ 19 - 16
nova-tourism/pages/homestay/homestay-detail/index.js

@@ -102,7 +102,7 @@ Page({
     async hanshu(){
       await  this.gethomestay()
       await this.getroom()
-      await this.getpic()
+    //   await this.getpic()
       await this.getcurrentdate()
     },
 
@@ -182,6 +182,9 @@ Page({
         this.setData({
             storeList
         });
+        this.setData({
+            imageUrls:storeList[0].image
+        })
         // this.Getlocation()
         console.log(this.data.storeList);
     },
@@ -230,25 +233,25 @@ Page({
         }
     },
     //获取轮播图
-    async getpic() {
-        let Banner = new Parse.Query('Banner');
-        Banner.equalTo('company', company);
-        Banner.equalTo('store', this.data.objectId);
-        Banner.equalTo('isEnabled', 'true');
-        Banner.notEqualTo('isDeleted', 'true');
-        Banner.select('image');
+    // async getpic() {
+    //     let Banner = new Parse.Query('Banner');
+    //     Banner.equalTo('company', company);
+    //     Banner.equalTo('store', this.data.objectId);
+    //     Banner.equalTo('isEnabled', 'true');
+    //     Banner.notEqualTo('isDeleted', 'true');
+    //     Banner.select('image');
 
-        let Banner2 = await Banner.find();
+    //     let Banner2 = await Banner.find();
 
-        // 提取 image 属性并存储到 imageUrls 中
-        let imageUrls = Banner2.map(item => item.get('image')); // 使用 get() 方法获取 image 属性
+    //     // 提取 image 属性并存储到 imageUrls 中
+    //     let imageUrls = Banner2.map(item => item.get('image')); // 使用 get() 方法获取 image 属性
 
-        this.setData({
-            imageUrls // 将提取的 imageUrls 存储到组件状态中
-        });
+    //     this.setData({
+    //         imageUrls // 将提取的 imageUrls 存储到组件状态中
+    //     });
 
-        console.log(this.data.imageUrls); // 输出 imageUrls
-    },
+    //     console.log(this.data.imageUrls); // 输出 imageUrls
+    // },
     //获取当前位置信息
     Getlocation() {
         // 假设 this.storeList[0].location 是一个 Parse.GeoPoint 对象

+ 44 - 6
nova-tourism/pages/my/merchant/merchant-home/account/index.js

@@ -27,7 +27,8 @@ Page({
         html: null,
         content: null,
         id: null,
-
+        address:'',
+        locations:null,
     },
     getHtml(e) { //从组件获取值
         let html = e.detail.content.html
@@ -127,7 +128,6 @@ Page({
         }else{
             image=this.data.image
         }
-
         console.log(this.data.name, image, this.data.storeName, this.data.perCapita, this.data.desc, this.data.workingTime, this.data.html);
         let query = new Parse.Query("ShopStore")
 
@@ -136,6 +136,15 @@ Page({
         ShopStore.set("name", this.data.name)
         ShopStore.set("cover", this.data.cover)
         ShopStore.set("image", image)
+        if(this.data.locations){
+            ShopStore.set("location", this.data.locations)
+        }else{
+            wx.showToast({
+                title: '请选择民宿地址',
+                icon: 'none'
+            })
+            return
+        }
         ShopStore.set("storeName", this.data.storeName)
         if(Number(this.data.perCapita)){
             ShopStore.set("perCapita", Number(this.data.perCapita))
@@ -155,9 +164,11 @@ Page({
                 title: '修改成功',
                 icon: 'none'
             })
-            wx.navigateBack({
-                delta: 1
-            });
+            setTimeout(()=>{
+                wx.navigateBack({
+                    delta: 1
+                });
+            },1000)
         })
     },
     /**
@@ -270,5 +281,32 @@ Page({
      */
     onShareAppMessage: function() {
 
-    }
+    },
+    chooseGeoPoint() {
+        wx.chooseLocation({
+            latitude: 0,
+            longitude: 0,
+            success: (res) => {
+                let {
+                    latitude,
+                    longitude,
+                    address,
+                    name
+                } = res;
+                let locations = new Parse.GeoPoint(latitude, longitude)
+                this.setData({
+                    locations,
+                    address:address
+                })
+                console.log(locations);
+                console.log(address + name);
+                // this.data.formData[field] = locations
+                // this.data.formData['address'] = address + name
+                //   this.data.formData['address'] = address
+                // this.setData({
+                //     formData: this.data.formData,
+                // })
+            }
+        })
+    },
 })

+ 2 - 1
nova-tourism/pages/my/merchant/merchant-home/account/index.json

@@ -1,6 +1,7 @@
 {
   "usingComponents": {
       "van-icon": "@vant/weapp/icon/index",
-      "diy-editor": "/components/diy-editor/index"
+      "diy-editor": "/components/diy-editor/index",
+      "van-button": "@vant/weapp/button/index"
   }
 }

+ 65 - 59
nova-tourism/pages/my/merchant/merchant-home/account/index.wxml

@@ -1,72 +1,78 @@
 <nav type="back" background-color="#46a9a4" title="账户管理" />
 
 
-    <view class="top">
-        <view class="top-figure">店铺首图</view>
-        <upload bind:onChangeFile="changeFile" fileList="{{imageList}}" accept="image" maxCount="1" uploadURL="{{uploadURL}}" domain="{{domain}}" uptokenURL="{{uptokenURL}}"></upload>
-        <view class="top-deails">
-            <view class="top-name">
-                <view class="name">店铺名称:</view>
-                <input bindblur="blur" type="text" class="input" data-name="storeName" value="{{storeName}}" placeholder="请输入店铺名称"></input>
-            </view>
-            <van-icon name="arrow" />
+<view class="top">
+    <view class="top-figure">店铺首图</view>
+    <upload bind:onChangeFile="changeFile" fileList="{{imageList}}" accept="image" maxCount="1" uploadURL="{{uploadURL}}" domain="{{domain}}" uptokenURL="{{uptokenURL}}"></upload>
+    <view class="top-deails">
+        <view class="top-name">
+            <view class="name">店铺名称:</view>
+            <input bindblur="blur" type="text" class="input" data-name="storeName" value="{{storeName}}" placeholder="请输入店铺名称"></input>
         </view>
-        <view class="top-deails">
-            <view class="top-name">
-                <view class="name">人均消费:</view>
-                <input bindblur="blur" type="text" class="input" data-name="perCapita" value="{{perCapita}}" placeholder="请输入人均消费"></input>
-            </view>
-            <van-icon name="arrow" />
+        <van-icon name="arrow" />
+    </view>
+    <view class="top-deails">
+        <view class="top-name">
+            <view class="name">人均消费:</view>
+            <input bindblur="blur" type="text" class="input" data-name="perCapita" value="{{perCapita}}" placeholder="请输入人均消费"></input>
         </view>
-        <view class="top-deails">
-            <view class="top-names">
-                <view class="name">店铺简介:</view>
-                <textarea bindblur="blur" type="text" class="input" data-name="desc" value="{{desc}}" placeholder="请输入店铺简介"></textarea>
-            </view>
+        <van-icon name="arrow" />
+    </view>
+    <view class="top-deails">
+        <view class="top-names">
+            <view class="name">店铺简介:</view>
+            <textarea bindblur="blur" type="text" class="input" data-name="desc" value="{{desc}}" placeholder="请输入店铺简介"></textarea>
         </view>
-        <view class="top-deails">
-            <view class="top-name">
-                <view class="name">店长名称:</view>
-                <input bindblur="blur" type="text" class="input" data-name="name" value="{{name}}" placeholder="请输入店长名称"></input>
-            </view>
-            <van-icon name="arrow" />
+    </view>
+    <view class="top-deails">
+        <view class="top-name">
+            <view class="name">店长名称:</view>
+            <input bindblur="blur" type="text" class="input" data-name="name" value="{{name}}" placeholder="请输入店长名称"></input>
         </view>
-        <view class="top-deails">
-            <view class="top-name">
-                <view class="name">营业时间:</view>
-                <input bindblur="blur" type="text" class="input" data-name="workingTime" value="{{workingTime}}" placeholder="请输入营业时间"></input>
-            </view>
-            <van-icon name="arrow" />
+        <van-icon name="arrow" />
+    </view>
+    <view class="top-deails">
+        <view class="top-name">
+            <view class="name">营业时间:</view>
+            <input bindblur="blur" type="text" class="input" data-name="workingTime" value="{{workingTime}}" placeholder="请输入营业时间"></input>
         </view>
-        <view class="top-deails" bindtap="mobile">
-            <view class="top-name">
-                <view class="name">绑定手机号:</view>
-                <!-- <input bindblur="blur" type="text" class="input" data-name="store.mobile" value="{{store.mobile}}" placeholder="绑定手机号"></input> -->
-                <view class="content">{{store.mobile}}</view>
-            </view>
-            <van-icon name="arrow" />
+        <van-icon name="arrow" />
+    </view>
+    <view class="top-deails" bindtap="mobile">
+        <view class="top-name">
+            <view class="name">绑定手机号:</view>
+            <!-- <input bindblur="blur" type="text" class="input" data-name="store.mobile" value="{{store.mobile}}" placeholder="绑定手机号"></input> -->
+            <view class="content">{{store.mobile}}</view>
         </view>
-        <view class="top-deails">
-            <view class="top-name">
-                <view class="name">用户账号:</view>
-                <view class="content">{{store.user.username}}</view>
-                <!-- <input bindblur="blur" type="text" class="input" data-name="store.user.username" value="{{store.user.username}}" placeholder="用户账号"></input> -->
-            </view>
-            <van-icon name="arrow" />
+        <van-icon name="arrow" />
+    </view>
+    <view class="top-deails">
+        <view class="top-name">
+            <view class="name">用户账号:</view>
+            <view class="content">{{store.user.username}}</view>
+            <!-- <input bindblur="blur" type="text" class="input" data-name="store.user.username" value="{{store.user.username}}" placeholder="用户账号"></input> -->
         </view>
-        <view class="top-deails" bindtap="password">
-            <view class="top-name">
-                <view class="name">重置密码:</view>
-                <view class="content">{{store.user.password}}</view>
-                <!-- <input bindblur="blur" type="text" class="input" data-name="store.user.password" value="{{store.user.password}}" placeholder="登录密码"></input> -->
-            </view>
-            <van-icon name="arrow" />
+        <van-icon name="arrow" />
+    </view>
+    <view class="top-deails" bindtap="password">
+        <view class="top-name">
+            <view class="name">重置密码:</view>
+            <view class="content">{{store.user.password}}</view>
+            <!-- <input bindblur="blur" type="text" class="input" data-name="store.user.password" value="{{store.user.password}}" placeholder="登录密码"></input> -->
         </view>
-        <view class="top-figure">店铺图片</view>
-        <upload bind:onChangeFile="changeFiles" fileList="{{licenseList}}" accept="all" maxCount="9" uploadURL="{{uploadURL}}" domain="{{domain}}" uptokenURL="{{uptokenURL}}"></upload>
+        <van-icon name="arrow" />
     </view>
-    <diy-editor width="100%" height="600rpx" insertPicture="{{true}}" placeholder="开始输入..." bind:Content="getHtml" bind:insertImage="insertImage" id="hf_editor" uploadURL="{{uploadURL}}" domain="{{domain}}" uptokenURL="{{uptokenURL}}" />
-    <!-- <diy-editor width="100%" height="600rpx" insertPicture="{{true}}" placeholder="编写文章..." data-field="{{field.key}}" bind:Content="getHtml" bind:insertImage="insertImage" id="editor{{field.key}}" /> -->
-    <view class="bommon">
-        <view class="bommon-name" bindtap="determine">确定</view>
+    <view style="margin-top: 20rpx;">
+        <van-button style="margin-top: 20rpx;" bind:tap="chooseGeoPoint" type="primary" size="small">选择民宿地址</van-button>
+        <view style="margin-top: 10rpx;">
+            <text class="text-small grey">{{address}}</text>
+        </view>
     </view>
+    <view class="top-figure">店铺图片</view>
+    <upload bind:onChangeFile="changeFiles" fileList="{{licenseList}}" accept="all" maxCount="9" uploadURL="{{uploadURL}}" domain="{{domain}}" uptokenURL="{{uptokenURL}}"></upload>
+</view>
+<diy-editor width="100%" height="600rpx" insertPicture="{{true}}" placeholder="开始输入..." bind:Content="getHtml" bind:insertImage="insertImage" id="hf_editor" uploadURL="{{uploadURL}}" domain="{{domain}}" uptokenURL="{{uptokenURL}}" />
+<!-- <diy-editor width="100%" height="600rpx" insertPicture="{{true}}" placeholder="编写文章..." data-field="{{field.key}}" bind:Content="getHtml" bind:insertImage="insertImage" id="editor{{field.key}}" /> -->
+<view class="bommon">
+    <view class="bommon-name" bindtap="determine">确定</view>
+</view>