diff --git a/view/crmebN/app.js b/view/crmebN/app.js deleted file mode 100644 index 0c142ef4..00000000 --- a/view/crmebN/app.js +++ /dev/null @@ -1,55 +0,0 @@ -//app.js -var app = getApp(); -// var wxh = require('../../utils/wxh.js'); -App({ - onLaunch: function () { - // 展示本地存储能力 - var that = this; - var logs = wx.getStorageSync('logs') || [] - logs.unshift(Date.now()) - wx.setStorageSync('logs', logs) - that.getRoutineStyle(); - }, - globalData: { - routineStyle:'#ffffff', - uid: null, - openPages:'', - spid:0, - urlImages: '', - url: 'https://shop.crmeb.net/' - }, - getRoutineStyle:function(){ - var that = this; - wx.request({ - url: that.globalData.url + '/routine/login/get_routine_style', - method: 'post', - dataType : 'json', - success: function (res) { - that.globalData.routineStyle = res.data.data.routine_style; - that.setBarColor(); - } - }) - }, - setBarColor:function(){ - var that = this; - wx.setNavigationBarColor({ - frontColor: '#000000', - backgroundColor: that.globalData.routineStyle, - }) - }, - setUserInfo : function(){ - var that = this; - if (that.globalData.uid == null) {//是否存在用户信息,如果不存在跳转到首页 - wx.showToast({ - title: '用户信息获取失败', - icon: 'none', - duration: 1500, - }) - setTimeout(function () { - wx.navigateTo({ - url: '/pages/load/load', - }) - }, 1500) - } - }, -}) \ No newline at end of file diff --git a/view/crmebN/app.json b/view/crmebN/app.json deleted file mode 100644 index 1319d58b..00000000 --- a/view/crmebN/app.json +++ /dev/null @@ -1,83 +0,0 @@ - { - "pages": [ - "pages/loading/loading", - "pages/load/load", - "pages/login-status/login-status", - "pages/payment/payment", - "pages/home/home", - "pages/new-con/new-con", - "pages/new-list/new-list", - "pages/index/index", - "pages/refunding/refunding", - "pages/miao-list/miao-list", - "pages/coupon-status/coupon-status", - "pages/addaddress/addaddress", - "pages/product-countdown/index", - "pages/refund-page/refund-page", - "pages/refund-order/refund-order", - "pages/spread/spread", - "pages/promotion-order/promotion-order", - "pages/coupon/coupon", - "pages/news-list/news-list", - "pages/product-con/index", - "pages/comment-con/comment-con", - "pages/orderForm/orderForm", - "pages/orders-list/orders-list", - "pages/comment/comment", - "pages/foo-tan/foo-tan", - "pages/buycar/buycar", - "pages/mycut/mycut", - "pages/user/user", - "pages/integral-con/integral-con", - "pages/orders-con/orders-con", - "pages/order-confirm/order-confirm", - "pages/productSort/productSort", - "pages/address/address", - "pages/feree/feree", - "pages/feree-two/feree-two", - "pages/cash/cash", - "pages/logistics/logistics", - "pages/extension/extension", - "pages/unshop/unshop", - "pages/main/main", - "pages/collect/collect", - "pages/promotion-card/promotion-card" - ], - "window": { - "backgroundTextStyle": "light", - "navigationBarBackgroundColor": "#fff", - "navigationBarTitleText": "WeChat", - "navigationBarTextStyle": "black" - }, - "tabBar": { - "backgroundColor": "#FFFFFF", - "color": "#999", - "selectedColor": "#ff3d3d", - "list": [ - { - "pagePath": "pages/index/index", - "iconPath": "images/1-1.png", - "selectedIconPath": "images/1-2.png", - "text": "首页" - }, - { - "pagePath": "pages/productSort/productSort", - "iconPath": "images/2-1.png", - "selectedIconPath": "images/2-2.png", - "text": "分类" - }, - { - "pagePath": "pages/buycar/buycar", - "iconPath": "images/3-1.png", - "selectedIconPath": "images/3-2.png", - "text": "购物车" - }, - { - "pagePath": "pages/user/user", - "iconPath": "images/4-1.png", - "selectedIconPath": "images/4-2.png", - "text": "我的" - } - ] - } -} diff --git a/view/crmebN/app.wxss b/view/crmebN/app.wxss deleted file mode 100644 index a26bf224..00000000 --- a/view/crmebN/app.wxss +++ /dev/null @@ -1,41 +0,0 @@ -@import '/font/font.wxss'; - -/**app.wxss**/ -page{font-size: 28rpx; background-color: #f7f7f7; color: #333;} -.flex{display: flex;} - -/* 星星 */ -.start{width: 122rpx; height: 30rpx; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHoAAADMCAYAAAC8yreMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVz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no-repeat; background-size: 122rpx auto;} -.start.star5{background-position: 0 3rpx;} -.start.star4{background-position: 0 -30rpx;} -.start.star3{background-position: 0 -70rpx;} -.start.star2{background-position: 0 -105rpx;} -.start.star1{background-position: 0 -140rpx;} -.start.star0{background-position: 0 -175rpx;} - -.model-bg {display: none; z-index: 50; position: fixed; left: 0; top:0; width: 100%; height: 100%; background-color: rgba(0,0,0,.7);} -.model-bg.show{display: block;} - -.fl{ float:left; } -.fr{ float:right; } -.clear{ clear:both; height: 0; line-height: 0; font-size: 0; } -.clearfix:after{ content:"."; display:block; height:0; visibility:hidden; clear:both; overflow: hidden;} -@keyframes myfirst - { - from {transform: rotate(0deg);} - to {transform: rotate(360deg);} - } -.loadingpic { - animation: myfirst linear 1s infinite; - font-size:40rpx;margin-right:22rpx; -} -.loading{width:100%;height:100rpx;line-height:100rpx;align-items:center;justify-content:center;} -.line{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;} -.line2{word-break:break-all;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;} -.zhao{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000;opacity:0.7;} -.index-con{position:fixed; left:6rpx;top: 20%; width: 80rpx; height: 100rpx;} -.index-con image{width: 82rpx; height: 82rpx;} -.index-con navigator{width: 82rpx; height: 100rpx;position: absolute;bottom: 0;left: 0} -.index-con .index-area{display:inline-block;top:88rpx;left:0px;position:relative;height: 600rpx;width:82rpx;} - - diff --git a/view/crmebN/config.json b/view/crmebN/config.json deleted file mode 100644 index 829ba1c3..00000000 --- a/view/crmebN/config.json +++ /dev/null @@ -1 +0,0 @@ -{"dir":"dist"} \ No newline at end of file diff --git a/view/crmebN/font/font.wxss b/view/crmebN/font/font.wxss deleted file mode 100644 index 8f0affbc..00000000 --- a/view/crmebN/font/font.wxss +++ /dev/null @@ -1,145 +0,0 @@ - -@font-face {font-family: "iconfont"; - src: url('iconfont.eot?t=1526371944170'); /* IE9*/ - src: url('iconfont.eot?t=1526371944170#iefix') format('embedded-opentype'), /* IE6-IE8 */ - url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAACvcAAsAAAAAQ4wAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAAQwAAAFZW7kphY21hcAAAAYAAAAI7AAAF6OGfVA9nbHlmAAADvAAAI8UAADTMx7VMQmhlYWQAACeEAAAALwAAADYR4rLPaGhlYQAAJ7QAAAAgAAAAJAhhBPdobXR4AAAn1AAAADEAAAEICqcAAGxvY2EAACgIAAAAhgAAAIa+ha+ObWF4cAAAKJAAAAAfAAAAIAFgALJuYW1lAAAosAAAAUUAAAJtPlT+fXBvc3QAACn4AAAB4wAAAwEvJ4t2eJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2Bk4WKcwMDKwMHUyXSGgYGhH0IzvmYwYuRgYGBiYGVmwAoC0lxTGBwYKl4kMzf8b2CIYW5iaAAKM4LkAN4OC+YAeJzN1DlPVFEYxvH/MOz7IqAC4oayuCAC4g6TEAgFFdJCQmOCobIgxphgrOhpSPgANDZ09Fj5OZ6Zmi+A78szvSY03pPfZO5N7jn3vMsB6oBieBRqoeY3hfhH4Vc8LVw+L9J8+by2cBj3JebjnRp21aN+DWtEE5rUlGY0p3mVtKwVrWtT29rRvg50qCMd66dOdKoznZcXy3uV1crWxUXMtSvUq4GYY/RyjunqHEsxx5o2/mmOq12F2E+Jj3zic4wvl+NrdXyL8Z0ffxk5xxse0MoYr2iLGHbwmHYG6GSYZ9xmhNcs0Mgg9yNyd7lHE7eYo5seGnjPBDcixn20RKxv0s8oLxhnknf0ci2iXc9DunjLU6aZ4SVDEf0nkZMprvOcO8zGJ9RfORJXCOF/crXmT3GwercQdqviE4VFrlDBImuoxvJtFS0yiWotcorqLLKL6i17RQ0WGUeNFrlHTRZVgJot6gG1WFQGarWoEdRmUS2o3aJuUIdFBa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XuBeuU38QbpBfhJto41W4Rf1N2MczpsJtdGF5g9e4YvaEd2EPHXwI13CNT+E69S/hBvlbuIk7/Aq30PHqwj7mXle4jUcv9sdWL5xeqeVBxaHJIpM5v4KZXu+Sha3S6pxrW8QmU4OgX0lTnWlb3VPs10PnIhVZk6oJqzpJjMqt2erQBRvn8lGvF4kehCblWGP+tsYCjnEFhSUOjDFCGGSIyujoO1Vm9K+xQ8Jee1Y9zed0WxTU/3OFAQL0z1xTurLSeTpPgT1fG1J1dCtuy56UNJFezUkSskJe1rZUQuoBNmVXjhF6XNGJPyhnSP8ACVpuyAAAAHicbZHpdtMwEIV928Ry4jSh7Du07Esgcik7FMqDcFRZsZU6UkkskubpGcnmF/gcW8ej+e5cXUVbUfP0o/8/x9jCNjroIgZDgh76SDHADoYY4QJ2cRGXcBlXcBXXcB03cBO3cBt3cBf3cB972McDPMQjPMYTPMUzPMcLvMQYr/AaE3BkOMAbHOIt3uE9PuAjPuEzvuArjvAN33GMHxHW/fnSOD2WYpHvrrWwS2FmtKy1KSY8zvWm1Hwo3bK28/FSLX5rqZiaC11NOFOLldJzMViWwhRETN3KJbK0piCKnZFE5UxKPbRHlanb5pOM0ZSN0IfdoN05VVMX14TMNJOkQ1TSrpz90sKcCJtKoQ2JlE6YpCJ3NdVZo1vE9PFQa4Yz70aWLi6o+0Qnvse/rPnn6SzM33ibdD6a5IYz2ieN2mnaNHHudCls7y/JWVPImG8nE6zB+D+BZWk4lJ9U6ZY6aAdnnZXNVTJVhihTJIWltGSp4pWoKlWnm9KLiBBEQ/K4dmdU6XlwpolMQoqUSAiXxrZOsgGRlfDma+v659aVdBSf1rlTgYmbtDq5XZlYOkvy3cCMgnC4QTJjitQPC1kIQ56k/Emq1L1D4ZxSrT1b3V6ytGRe1iNPUYffLRbKRNEfVPnmqgA=') format('woff'), - url('iconfont.ttf?t=1526371944170') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ - url('iconfont.svg?t=1526371944170#iconfont') format('svg'); /* iOS 4.1- */ -} - -.iconfont { - font-family:"iconfont" !important; - font-size:16px; - font-style:normal; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.icon-msnui-card:before { content: "\e6b3"; } - -.icon-xiaosanjiaoxing01:before { content: "\e630"; } - -.icon-dizhi1:before { content: "\e606"; } - -.icon-custom-service:before { content: "\e616"; } - -.icon-email01:before { content: "\e660"; } - -.icon-erweima:before { content: "\e628"; } - -.icon-shangxinfuwu:before { content: "\e612"; } - -.icon-chongzhi:before { content: "\e61c"; } - -.icon-pinglun:before { content: "\e6c5"; } - -.icon-weixinzhifu:before { content: "\e634"; } - -.icon-102:before { content: "\e602"; } - -.icon-xiazai5:before { content: "\e605"; } - -.icon-dizhi:before { content: "\e609"; } - -.icon-kefu:before { content: "\e607"; } - -.icon-tongji:before { content: "\e60b"; } - -.icon-chanpin:before { content: "\e66e"; } - -.icon-chanpin1:before { content: "\e61f"; } - -.icon-qianbao:before { content: "\e625"; } - -.icon-cainixihuan:before { content: "\e656"; } - -.icon-liaotian:before { content: "\e655"; } - -.icon-weixing:before { content: "\e632"; } - -.icon-xinpin:before { content: "\e640"; } - -.icon-erweima1:before { content: "\e745"; } - -.icon-shanchu:before { content: "\e62b"; } - -.icon-guanbi:before { content: "\e638"; } - -.icon-xingxing:before { content: "\e60a"; } - -.icon-guanbi1:before { content: "\e613"; } - -.icon-jiazaizhong:before { content: "\e6ae"; } - -.icon-dianpu:before { content: "\e61d"; } - -.icon-jingpintuijian:before { content: "\e60c"; } - -.icon-duihao:before { content: "\e60e"; } - -.icon-duihao2:before { content: "\e617"; } - -.icon-dianhua:before { content: "\e61b"; } - -.icon-dianpu1:before { content: "\e615"; } - -.icon-xiaosanjiaoxing02:before { content: "\e60f"; } - -.icon-dizhiguanli:before { content: "\e601"; } - -.icon-duihao3:before { content: "\e66b"; } - -.icon-guanbi2:before { content: "\e642"; } - -.icon-wode:before { content: "\e603"; } - -.icon-fenxiang:before { content: "\e648"; } - -.icon-gouwuche:before { content: "\e62a"; } - -.icon-wallet:before { content: "\e635"; } - -.icon-zhaoxiangji:before { content: "\e608"; } - -.icon-duihao1:before { content: "\e6ba"; } - -.icon-tupian:before { content: "\e695"; } - -.icon-wodejifen:before { content: "\e64a"; } - -.icon-zhifubao:before { content: "\e60d"; } - -.icon-pingjia:before { content: "\e6f2"; } - -.icon-xingxing1:before { content: "\e84e"; } - -.icon-dianpu2:before { content: "\e781"; } - -.icon-xialajiantou:before { content: "\e69a"; } - -.icon-youhuijuan:before { content: "\e69d"; } - -.icon-yuezhifu:before { content: "\e863"; } - -.icon-weixin:before { content: "\e647"; } - -.icon-down:before { content: "\e61e"; } - -.icon-cuohao:before { content: "\e6a9"; } - -.icon-xiala:before { content: "\e604"; } - -.icon-jifenshangcheng:before { content: "\e610"; } - -.icon-wodepintuan:before { content: "\e600"; } - -.icon-zhcc_jiahao:before { content: "\e68a"; } - -.icon-tuikuanguanli:before { content: "\e654"; } - -.icon-tongzhi:before { content: "\e629"; } - -.icon-collect:before { content: "\e65f"; } - -.icon-wodetuiguangren:before { content: "\e611"; } - diff --git a/view/crmebN/icon/line.jpg b/view/crmebN/icon/line.jpg deleted file mode 100644 index 5bda0fac..00000000 Binary files a/view/crmebN/icon/line.jpg and /dev/null differ diff --git a/view/crmebN/icon/star-icon.png b/view/crmebN/icon/star-icon.png deleted file mode 100644 index e0872b94..00000000 Binary files a/view/crmebN/icon/star-icon.png and /dev/null differ diff --git a/view/crmebN/icon/关闭.png b/view/crmebN/icon/关闭.png deleted file mode 100644 index 7c71a9bb..00000000 Binary files a/view/crmebN/icon/关闭.png and /dev/null differ diff --git a/view/crmebN/icon/图层-1.png b/view/crmebN/icon/图层-1.png deleted file mode 100644 index 9279fe96..00000000 Binary files a/view/crmebN/icon/图层-1.png and /dev/null differ diff --git a/view/crmebN/icon/图层-22.png b/view/crmebN/icon/图层-22.png deleted file mode 100644 index 770935ba..00000000 Binary files a/view/crmebN/icon/图层-22.png and /dev/null differ diff --git a/view/crmebN/icon/圆角矩形-1.png b/view/crmebN/icon/圆角矩形-1.png deleted file mode 100644 index b33d242e..00000000 Binary files a/view/crmebN/icon/圆角矩形-1.png and /dev/null differ diff --git a/view/crmebN/icon/圆角矩形-2-拷贝.png b/view/crmebN/icon/圆角矩形-2-拷贝.png deleted file mode 100644 index ac9cf879..00000000 Binary files a/view/crmebN/icon/圆角矩形-2-拷贝.png and /dev/null differ diff --git a/view/crmebN/icon/形状-2-拷贝-3.png b/view/crmebN/icon/形状-2-拷贝-3.png deleted file mode 100644 index 894546c6..00000000 Binary files a/view/crmebN/icon/形状-2-拷贝-3.png and /dev/null differ diff --git a/view/crmebN/icon/形状-2-拷贝.png b/view/crmebN/icon/形状-2-拷贝.png deleted file mode 100644 index 07c06157..00000000 Binary files a/view/crmebN/icon/形状-2-拷贝.png and /dev/null differ diff --git a/view/crmebN/icon/拼团图标.png b/view/crmebN/icon/拼团图标.png deleted file mode 100644 index aa103acf..00000000 Binary files a/view/crmebN/icon/拼团图标.png and /dev/null differ diff --git a/view/crmebN/icon/送货1.png b/view/crmebN/icon/送货1.png deleted file mode 100644 index 0b5a643b..00000000 Binary files a/view/crmebN/icon/送货1.png and /dev/null differ diff --git a/view/crmebN/images/1-1.png b/view/crmebN/images/1-1.png deleted file mode 100644 index 9e3426b5..00000000 Binary files a/view/crmebN/images/1-1.png and /dev/null differ diff --git a/view/crmebN/images/1-2.png b/view/crmebN/images/1-2.png deleted file mode 100644 index 6eebf071..00000000 Binary files a/view/crmebN/images/1-2.png and /dev/null differ diff --git a/view/crmebN/images/2-1.png b/view/crmebN/images/2-1.png deleted file mode 100644 index fbe79416..00000000 Binary files a/view/crmebN/images/2-1.png and /dev/null differ diff --git a/view/crmebN/images/2-2.png b/view/crmebN/images/2-2.png deleted file mode 100644 index 5702c864..00000000 Binary files a/view/crmebN/images/2-2.png and /dev/null differ diff --git a/view/crmebN/images/3-1.png b/view/crmebN/images/3-1.png deleted file mode 100644 index 45378413..00000000 Binary files a/view/crmebN/images/3-1.png and /dev/null differ diff --git a/view/crmebN/images/3-2.png b/view/crmebN/images/3-2.png deleted file mode 100644 index 172566e7..00000000 Binary files a/view/crmebN/images/3-2.png and /dev/null differ diff --git a/view/crmebN/images/4-1.png b/view/crmebN/images/4-1.png deleted file mode 100644 index f8f11073..00000000 Binary files a/view/crmebN/images/4-1.png and /dev/null differ diff --git a/view/crmebN/images/4-2.png b/view/crmebN/images/4-2.png deleted file mode 100644 index 0ec2d263..00000000 Binary files a/view/crmebN/images/4-2.png and /dev/null differ diff --git a/view/crmebN/images/collect-shixiao.png b/view/crmebN/images/collect-shixiao.png deleted file mode 100644 index 0e5cdb1d..00000000 Binary files a/view/crmebN/images/collect-shixiao.png and /dev/null differ diff --git a/view/crmebN/images/dfh.png b/view/crmebN/images/dfh.png deleted file mode 100644 index 405d66d2..00000000 Binary files a/view/crmebN/images/dfh.png and /dev/null differ diff --git a/view/crmebN/images/dfk.png b/view/crmebN/images/dfk.png deleted file mode 100644 index 20a637a9..00000000 Binary files a/view/crmebN/images/dfk.png and /dev/null differ diff --git a/view/crmebN/images/dpj.png b/view/crmebN/images/dpj.png deleted file mode 100644 index 6b105e71..00000000 Binary files a/view/crmebN/images/dpj.png and /dev/null differ diff --git a/view/crmebN/images/dsh.png b/view/crmebN/images/dsh.png deleted file mode 100644 index c5fe6c20..00000000 Binary files a/view/crmebN/images/dsh.png and /dev/null differ diff --git a/view/crmebN/images/error-icon.png b/view/crmebN/images/error-icon.png deleted file mode 100644 index 18ede196..00000000 Binary files a/view/crmebN/images/error-icon.png and /dev/null differ diff --git a/view/crmebN/images/express_icon.jpg b/view/crmebN/images/express_icon.jpg deleted file mode 100644 index d3fbe469..00000000 Binary files a/view/crmebN/images/express_icon.jpg and /dev/null differ diff --git a/view/crmebN/images/home.png b/view/crmebN/images/home.png deleted file mode 100644 index 6e2f4a18..00000000 Binary files a/view/crmebN/images/home.png and /dev/null differ diff --git a/view/crmebN/images/lie.png b/view/crmebN/images/lie.png deleted file mode 100644 index f19d0822..00000000 Binary files a/view/crmebN/images/lie.png and /dev/null differ diff --git a/view/crmebN/images/long.gif b/view/crmebN/images/long.gif deleted file mode 100644 index bfdf4d11..00000000 Binary files a/view/crmebN/images/long.gif and /dev/null differ diff --git a/view/crmebN/images/nav-01.png b/view/crmebN/images/nav-01.png deleted file mode 100644 index 73e48afb..00000000 Binary files a/view/crmebN/images/nav-01.png and /dev/null differ diff --git a/view/crmebN/images/nav-02.png b/view/crmebN/images/nav-02.png deleted file mode 100644 index 3f3df274..00000000 Binary files a/view/crmebN/images/nav-02.png and /dev/null differ diff --git a/view/crmebN/images/nav-03.png b/view/crmebN/images/nav-03.png deleted file mode 100644 index 224c29af..00000000 Binary files a/view/crmebN/images/nav-03.png and /dev/null differ diff --git a/view/crmebN/images/nav-04.png b/view/crmebN/images/nav-04.png deleted file mode 100644 index 8935217a..00000000 Binary files a/view/crmebN/images/nav-04.png and /dev/null differ diff --git a/view/crmebN/images/nav-05.png b/view/crmebN/images/nav-05.png deleted file mode 100644 index 653b9994..00000000 Binary files a/view/crmebN/images/nav-05.png and /dev/null differ diff --git a/view/crmebN/images/poster-close.png b/view/crmebN/images/poster-close.png deleted file mode 100644 index 189b6bcb..00000000 Binary files a/view/crmebN/images/poster-close.png and /dev/null differ diff --git a/view/crmebN/images/posterbackgd.png b/view/crmebN/images/posterbackgd.png deleted file mode 100644 index c49cb91c..00000000 Binary files a/view/crmebN/images/posterbackgd.png and /dev/null differ diff --git a/view/crmebN/images/unknown.png b/view/crmebN/images/unknown.png deleted file mode 100644 index 361a1e0a..00000000 Binary files a/view/crmebN/images/unknown.png and /dev/null differ diff --git a/view/crmebN/pages/addaddress/addaddress.js b/view/crmebN/pages/addaddress/addaddress.js deleted file mode 100644 index cb8462d2..00000000 --- a/view/crmebN/pages/addaddress/addaddress.js +++ /dev/null @@ -1,156 +0,0 @@ -var app = getApp(); -Page({ - data: { - _num:1, - region: ['省','市','区'], - cartId : '', - pinkId : '', - couponId : '', - id:0, - userAddress:[] - }, - onLoad: function (options) { - app.setBarColor(); - app.setUserInfo(); - if (options.cartId){ - this.setData({ - cartId: options.cartId, - pinkId: options.pinkId, - couponId: options.couponId, - }) - } - if (options.id){ - this.setData({ - id: options.id - }) - this.getUserAddress(); - } - }, - getUserAddress: function () {//get_user_address - var that = this; - - wx.request({ - url: app.globalData.url + '/routine/auth_api/get_user_address?uid=' + app.globalData.uid, - method: 'GET', - data: { - addressId : that.data.id - }, - success: function (res) { - console.log(res); - var regionOne = "region.0"; - var regionTwo = "region.1"; - var regionTherr = "region.2"; - that.setData({ - userAddress: res.data.data, - [regionOne]: res.data.data.province, - [regionTwo]: res.data.data.city, - [regionTherr]: res.data.data.district, - _num: res.data.data.is_default == 1 ? 0 : 1 - }) - } - }) - }, - bindRegionChange: function (e) { - this.setData({ - region: e.detail.value - }) - }, - defaulttap:function(e){ - var num = this.data._num; - if(num==1){ - this.setData({ - _num: 0 - }) - }else{ - this.setData({ - _num: 1 - }) - } - }, - - formSubmit: function (e) { - var warn = ""; - var that = this; - var flag = true; - var cartId = ''; - var name = e.detail.value.name; - var phone = e.detail.value.phone; - var area = JSON.stringify(this.data.region); - var fulladdress = e.detail.value.fulladdress; - var addressP = {}; - if (name == "") { - warn = '请输入姓名'; - } else if (!/^1(3|4|5|7|8)\d{9}$/i.test(phone)) { - warn = '您输入的手机号有误' - } else if (area == '["省","市","区"]'){ - warn = '请选择地区'; - } else if (fulladdress == "") { - warn = "请填写具体地址"; - } else{ - flag = false; - } - if(flag==true){ - wx.showModal({ - title: '提示', - content: warn - }) - }else{ - addressP.province = this.data.region[0]; - addressP.city = this.data.region[1]; - addressP.district = this.data.region[2]; - - wx.request({ - url: app.globalData.url + '/routine/auth_api/edit_user_address?uid=' + app.globalData.uid, - method: 'POST', - data: { - address: addressP, - is_default : that.data._num == 0 ? 1 : 0, - real_name : name, - post_code : '', - phone : phone, - detail : fulladdress, - id:that.data.id - }, - success: function (res) { - if (res.data.code == 200) { - if (that.data.id) { - wx.showToast({ - title: '修改成功', - icon: 'success', - duration: 1000 - }) - }else{ - wx.showToast({ - title: '添加成功', - icon: 'success', - duration: 1000 - }) - } - setTimeout(function () { - if (that.data.cartId) { - - var cartId = that.data.cartId; - var pinkId = that.data.pinkId; - var couponId = that.data.couponId; - that.setData({ - cartId: '', - pinkId: '', - couponId:'', - }) - wx.navigateTo({ //跳转至指定页面并关闭其他打开的所有页面(这个最好用在返回至首页的的时候) - url: '/pages/order-confirm/order-confirm?id=' + cartId + '&addressId=' + that.data.id + '&pinkId=' + pinkId + '&couponId=' + couponId - }) - } else { - wx.navigateTo({ //跳转至指定页面并关闭其他打开的所有页面(这个最好用在返回至首页的的时候) - url: '/pages/address/address' - }) - } - },1200) - } - } - }) - } - } - - -}) \ No newline at end of file diff --git a/view/crmebN/pages/addaddress/addaddress.json b/view/crmebN/pages/addaddress/addaddress.json deleted file mode 100644 index 00cdc310..00000000 --- a/view/crmebN/pages/addaddress/addaddress.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "navigationBarTitleText": "添加收获地址" -} \ No newline at end of file diff --git a/view/crmebN/pages/addaddress/addaddress.wxml b/view/crmebN/pages/addaddress/addaddress.wxml deleted file mode 100644 index a1c6e450..00000000 --- a/view/crmebN/pages/addaddress/addaddress.wxml +++ /dev/null @@ -1,20 +0,0 @@ -
- diff --git a/view/crmebN/pages/addaddress/addaddress.wxss b/view/crmebN/pages/addaddress/addaddress.wxss deleted file mode 100644 index 7c1cfb9b..00000000 --- a/view/crmebN/pages/addaddress/addaddress.wxss +++ /dev/null @@ -1,13 +0,0 @@ -.information{width:100%;height:364rpx;background-color:#ffffff;display:block;} -.information-li{height:90rpx;padding:0 20rpx;line-height:90rpx;border-bottom:1rpx solid #F7F7F7;} -.information-li label,.cashNum label{width:170rpx;display:inline-block;} -.information-li input,.cashNum input{width:100%;height:100%;} -.placeholder{color:#cccccc;} -.but{width:710rpx;height:90rpx;line-height:90rpx;text-align:center;background-color:#F84426;color:#ffffff;font-size:32rpx;margin-top:70rpx;} -.areas{color:#808080;display:inline-block;width:510rpx; overflow:hidden;text-overflow:ellipsis;white-space:nowrap} -.map{float:right;font-size:45rpx;color:#F14233;} -.area{width:137rpx !important;} -.default{height:90rpx;line-height:90rpx;padding:0 20rpx;background-color:#ffffff;margin-top:20rpx;color:#333333;} -.duihao{height:45rpx;line-height:45rpx;text-align:center;border-radius:50%;border:1rpx solid #DEDEDE;display:inline-block;width:45rpx;font-size:30rpx;color:#ffffff;margin-right:21rpx;} -.active{background-color:#F84426;} - diff --git a/view/crmebN/pages/address/address.js b/view/crmebN/pages/address/address.js deleted file mode 100644 index f0411eb5..00000000 --- a/view/crmebN/pages/address/address.js +++ /dev/null @@ -1,212 +0,0 @@ -// pages/address/address.js -var app = getApp(); -Page({ - data: { - _num:'', - cartId: '', - pinkId: '', - couponId: '', - addressArray:[] - }, - onLoad: function (options) { - app.setBarColor(); - app.setUserInfo(); - if (options.cartId) { - this.setData({ - cartId: options.cartId, - pinkId: options.pinkId, - couponId: options.couponId, - }) - } - this.getAddress(); - }, - getWxAddress:function(){ - var that = this; - wx.authorize({ - scope: 'scope.address', - success: function(res) { - wx.chooseAddress({ - success: function(res) { - console.log(res); - var addressP = {}; - addressP.province = res.provinceName; - addressP.city = res.cityName; - addressP.district = res.countyName; - wx.request({ - url: app.globalData.url + '/routine/auth_api/edit_user_address?uid=' + app.globalData.uid + '&openid=' + app.globalData.openid, - method: 'POST', - data: { - address: addressP, - is_default: 1, - real_name: res.userName, - post_code: res.postalCode, - phone: res.telNumber, - detail: res.detailInfo, - id: 0 - }, - success: function (res) { - if (res.data.code == 200) { - wx.showToast({ - title: '添加成功', - icon: 'success', - duration: 1000 - }) - that.getAddress(); - } - } - }) - }, - fail: function(res) { - if (res.errMsg == 'chooseAddress:cancel'){ - wx.showToast({ - title: '取消选择', - icon: 'none', - duration: 1500 - }) - } - }, - complete: function(res) {}, - }) - }, - fail: function(res) { - console.log(res); - }, - complete: function(res) {}, - }) - }, - getAddress: function () { - var that = this; - var header = { - 'content-type': 'application/x-www-form-urlencoded', - }; - wx.request({ - url: app.globalData.url + '/routine/auth_api/user_address_list?uid=' + app.globalData.uid, - method: 'POST', - header: header, - success: function (res) { - if (res.data.code == 200) { - that.setData({ - addressArray: res.data.data - }) - for (var i in res.data.data) { - if (res.data.data[i].is_default) { - that.setData({ - _num: res.data.data[i].id - }) - } - } - } - } - }) - }, - addAddress:function(){ - - var cartId = this.data.cartId; - var pinkId = this.data.pinkId; - var couponId = this.data.couponId; - this.setData({ - cartId: '', - pinkId:'', - couponId:'', - }) - wx.navigateTo({ //跳转至指定页面并关闭其他打开的所有页面(这个最好用在返回至首页的的时候) - url: '/pages/addaddress/addaddress?cartId=' + cartId + '&pinkId=' + pinkId + '&couponId=' + couponId - }) - }, - goOrder:function(e){ - var id = e.currentTarget.dataset.id; - var cartId = ''; - var pinkId = ''; - var couponId = ''; - if (this.data.cartId && id){ - cartId = this.data.cartId; - pinkId = this.data.pinkId; - couponId = this.data.couponId; - this.setData({ - cartId : '', - pinkId : '', - couponId : '', - }) - wx.navigateTo({ //跳转至指定页面并关闭其他打开的所有页面(这个最好用在返回至首页的的时候) - url: '/pages/order-confirm/order-confirm?id=' + cartId + '&addressId=' + id + '&pinkId=' + pinkId + '&couponId=' + couponId - }) - } - }, - delAddress:function(e){ - var id = e.currentTarget.dataset.id; - var that = this; - var header = { - 'content-type': 'application/x-www-form-urlencoded', - }; - wx.request({ - url: app.globalData.url + '/routine/auth_api/remove_user_address?uid=' + app.globalData.uid, - method: 'GET', - header: header, - data:{ - addressId:id - }, - success: function (res) { - if (res.data.code == 200) { - wx.showToast({ - title: '删除成功', - icon: 'success', - duration: 1000, - }) - that.getAddress(); - } else { - wx.showToast({ - title: res.data.msg, - icon: 'none', - duration: 1000, - }) - } - } - }) - }, - editAddress: function (e) { - var cartId = this.data.cartId; - var pinkId = this.data.pinkId; - var couponId = this.data.couponId; - this.setData({ - cartId: '', - pinkId: '', - couponId: '', - }) - wx.navigateTo({ //跳转至指定页面并关闭其他打开的所有页面(这个最好用在返回至首页的的时候) - url: '/pages/addaddress/addaddress?id=' + e.currentTarget.dataset.id + '&cartId=' + cartId + '&pinkId=' + pinkId + '&couponId=' + couponId - }) - }, - activetap:function(e){ - var id = e.target.dataset.idx; - var that = this; - var header = { - 'content-type': 'application/x-www-form-urlencoded', - }; - wx.request({ - url: app.globalData.url + '/routine/auth_api/set_user_default_address?uid=' + app.globalData.uid, - method: 'GET', - header: header, - data:{ - addressId:id - }, - success: function (res) { - if (res.data.code == 200) { - wx.showToast({ - title: '设置成功', - icon: 'success', - duration: 1000, - }) - that.setData({ - _num: id - }) - } else { - wx.showToast({ - title: res.data.msg, - icon: 'none', - duration: 1000, - }) - } - } - }) - } -}) \ No newline at end of file diff --git a/view/crmebN/pages/address/address.json b/view/crmebN/pages/address/address.json deleted file mode 100644 index d8dcc481..00000000 --- a/view/crmebN/pages/address/address.json +++ /dev/null @@ -1 +0,0 @@ -{"navigationBarTitleText": "收获地址管理"} \ No newline at end of file diff --git a/view/crmebN/pages/address/address.wxml b/view/crmebN/pages/address/address.wxml deleted file mode 100644 index 85db22a4..00000000 --- a/view/crmebN/pages/address/address.wxml +++ /dev/null @@ -1,26 +0,0 @@ -tags around block-level tags. - text = showdown.subParser('hashHTMLBlocks')(text, options, globals); - text = showdown.subParser('paragraphs')(text, options, globals); - - text = globals.converter._dispatch('blockGamut.after', text, options, globals); - - return text; -}); - -showdown.subParser('blockQuotes', function (text, options, globals) { - 'use strict'; - - text = globals.converter._dispatch('blockQuotes.before', text, options, globals); - /* - text = text.replace(/ - ( // Wrap whole match in $1 - ( - ^[ \t]*>[ \t]? // '>' at the start of a line - .+\n // rest of the first line - (.+\n)* // subsequent consecutive lines - \n* // blanks - )+ - ) - /gm, function(){...}); - */ - - text = text.replace(/((^[ \t]{0,3}>[ \t]?.+\n(.+\n)*\n*)+)/gm, function (wholeMatch, m1) { - var bq = m1; - - // attacklab: hack around Konqueror 3.5.4 bug: - // "----------bug".replace(/^-/g,"") == "bug" - bq = bq.replace(/^[ \t]*>[ \t]?/gm, '~0'); // trim one level of quoting - - // attacklab: clean up hack - bq = bq.replace(/~0/g, ''); - - bq = bq.replace(/^[ \t]+$/gm, ''); // trim whitespace-only lines - bq = showdown.subParser('githubCodeBlocks')(bq, options, globals); - bq = showdown.subParser('blockGamut')(bq, options, globals); // recurse - - bq = bq.replace(/(^|\n)/g, '$1 '); - // These leading spaces screw with
content, so we need to fix that:
- bq = bq.replace(/(\s*[^\r]+?<\/pre>)/gm, function (wholeMatch, m1) {
- var pre = m1;
- // attacklab: hack around Konqueror 3.5.4 bug:
- pre = pre.replace(/^ /mg, '~0');
- pre = pre.replace(/~0/g, '');
- return pre;
- });
-
- return showdown.subParser('hashBlock')('\n' + bq + '\n
', options, globals);
- });
-
- text = globals.converter._dispatch('blockQuotes.after', text, options, globals);
- return text;
-});
-
-/**
- * Process Markdown `` blocks.
- */
-showdown.subParser('codeBlocks', function (text, options, globals) {
- 'use strict';
-
- text = globals.converter._dispatch('codeBlocks.before', text, options, globals);
- /*
- text = text.replace(text,
- /(?:\n\n|^)
- ( // $1 = the code block -- one or more lines, starting with a space/tab
- (?:
- (?:[ ]{4}|\t) // Lines must start with a tab or a tab-width of spaces - attacklab: g_tab_width
- .*\n+
- )+
- )
- (\n*[ ]{0,3}[^ \t\n]|(?=~0)) // attacklab: g_tab_width
- /g,function(){...});
- */
-
- // attacklab: sentinel workarounds for lack of \A and \Z, safari\khtml bug
- text += '~0';
-
- var pattern = /(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g;
- text = text.replace(pattern, function (wholeMatch, m1, m2) {
- var codeblock = m1,
- nextChar = m2,
- end = '\n';
-
- codeblock = showdown.subParser('outdent')(codeblock);
- codeblock = showdown.subParser('encodeCode')(codeblock);
- codeblock = showdown.subParser('detab')(codeblock);
- codeblock = codeblock.replace(/^\n+/g, ''); // trim leading newlines
- codeblock = codeblock.replace(/\n+$/g, ''); // trim trailing newlines
-
- if (options.omitExtraWLInCodeBlocks) {
- end = '';
- }
-
- codeblock = '' + codeblock + end + '
';
-
- return showdown.subParser('hashBlock')(codeblock, options, globals) + nextChar;
- });
-
- // attacklab: strip sentinel
- text = text.replace(/~0/, '');
-
- text = globals.converter._dispatch('codeBlocks.after', text, options, globals);
- return text;
-});
-
-/**
- *
- * * Backtick quotes are used for spans.
- *
- * * You can use multiple backticks as the delimiters if you want to
- * include literal backticks in the code span. So, this input:
- *
- * Just type ``foo `bar` baz`` at the prompt.
- *
- * Will translate to:
- *
- * Just type foo `bar` baz at the prompt.
- *
- * There's no arbitrary limit to the number of backticks you
- * can use as delimters. If you need three consecutive backticks
- * in your code, use four for delimiters, etc.
- *
- * * You can use spaces to get literal backticks at the edges:
- *
- * ... type `` `bar` `` ...
- *
- * Turns to:
- *
- * ... type `bar` ...
- */
-showdown.subParser('codeSpans', function (text, options, globals) {
- 'use strict';
-
- text = globals.converter._dispatch('codeSpans.before', text, options, globals);
-
- /*
- text = text.replace(/
- (^|[^\\]) // Character before opening ` can't be a backslash
- (`+) // $2 = Opening run of `
- ( // $3 = The code block
- [^\r]*?
- [^`] // attacklab: work around lack of lookbehind
- )
- \2 // Matching closer
- (?!`)
- /gm, function(){...});
- */
-
- if (typeof(text) === 'undefined') {
- text = '';
- }
- text = text.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,
- function (wholeMatch, m1, m2, m3) {
- var c = m3;
- c = c.replace(/^([ \t]*)/g, ''); // leading whitespace
- c = c.replace(/[ \t]*$/g, ''); // trailing whitespace
- c = showdown.subParser('encodeCode')(c);
- return m1 + '' + c + '';
- }
- );
-
- text = globals.converter._dispatch('codeSpans.after', text, options, globals);
- return text;
-});
-
-/**
- * Convert all tabs to spaces
- */
-showdown.subParser('detab', function (text) {
- 'use strict';
-
- // expand first n-1 tabs
- text = text.replace(/\t(?=\t)/g, ' '); // g_tab_width
-
- // replace the nth with two sentinels
- text = text.replace(/\t/g, '~A~B');
-
- // use the sentinel to anchor our regex so it doesn't explode
- text = text.replace(/~B(.+?)~A/g, function (wholeMatch, m1) {
- var leadingText = m1,
- numSpaces = 4 - leadingText.length % 4; // g_tab_width
-
- // there *must* be a better way to do this:
- for (var i = 0; i < numSpaces; i++) {
- leadingText += ' ';
- }
-
- return leadingText;
- });
-
- // clean up sentinels
- text = text.replace(/~A/g, ' '); // g_tab_width
- text = text.replace(/~B/g, '');
-
- return text;
-
-});
-
-/**
- * Smart processing for ampersands and angle brackets that need to be encoded.
- */
-showdown.subParser('encodeAmpsAndAngles', function (text) {
- 'use strict';
- // Ampersand-encoding based entirely on Nat Irons's Amputator MT plugin:
- // http://bumppo.net/projects/amputator/
- text = text.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g, '&');
-
- // Encode naked <'s
- text = text.replace(/<(?![a-z\/?\$!])/gi, '<');
-
- return text;
-});
-
-/**
- * Returns the string, with after processing the following backslash escape sequences.
- *
- * attacklab: The polite way to do this is with the new escapeCharacters() function:
- *
- * text = escapeCharacters(text,"\\",true);
- * text = escapeCharacters(text,"`*_{}[]()>#+-.!",true);
- *
- * ...but we're sidestepping its use of the (slow) RegExp constructor
- * as an optimization for Firefox. This function gets called a LOT.
- */
-showdown.subParser('encodeBackslashEscapes', function (text) {
- 'use strict';
- text = text.replace(/\\(\\)/g, showdown.helper.escapeCharactersCallback);
- text = text.replace(/\\([`*_{}\[\]()>#+-.!])/g, showdown.helper.escapeCharactersCallback);
- return text;
-});
-
-/**
- * Encode/escape certain characters inside Markdown code runs.
- * The point is that in code, these characters are literals,
- * and lose their special Markdown meanings.
- */
-showdown.subParser('encodeCode', function (text) {
- 'use strict';
-
- // Encode all ampersands; HTML entities are not
- // entities within a Markdown code span.
- text = text.replace(/&/g, '&');
-
- // Do the angle bracket song and dance:
- text = text.replace(//g, '>');
-
- // Now, escape characters that are magic in Markdown:
- text = showdown.helper.escapeCharacters(text, '*_{}[]\\', false);
-
- // jj the line above breaks this:
- //---
- //* Item
- // 1. Subitem
- // special char: *
- // ---
-
- return text;
-});
-
-/**
- * Input: an email address, e.g. "foo@example.com"
- *
- * Output: the email address as a mailto link, with each character
- * of the address encoded as either a decimal or hex entity, in
- * the hopes of foiling most address harvesting spam bots. E.g.:
- *
- * foo
- * @example.com
- *
- * Based on a filter by Matthew Wickline, posted to the BBEdit-Talk
- * mailing list:
- *
- */
-showdown.subParser('encodeEmailAddress', function (addr) {
- 'use strict';
-
- var encode = [
- function (ch) {
- return '' + ch.charCodeAt(0) + ';';
- },
- function (ch) {
- return '' + ch.charCodeAt(0).toString(16) + ';';
- },
- function (ch) {
- return ch;
- }
- ];
-
- addr = 'mailto:' + addr;
-
- addr = addr.replace(/./g, function (ch) {
- if (ch === '@') {
- // this *must* be encoded. I insist.
- ch = encode[Math.floor(Math.random() * 2)](ch);
- } else if (ch !== ':') {
- // leave ':' alone (to spot mailto: later)
- var r = Math.random();
- // roughly 10% raw, 45% hex, 45% dec
- ch = (
- r > 0.9 ? encode[2](ch) : r > 0.45 ? encode[1](ch) : encode[0](ch)
- );
- }
- return ch;
- });
-
- addr = '' + addr + '';
- addr = addr.replace(/">.+:/g, '">'); // strip the mailto: from the visible part
-
- return addr;
-});
-
-/**
- * Within tags -- meaning between < and > -- encode [\ ` * _] so they
- * don't conflict with their use in Markdown for code, italics and strong.
- */
-showdown.subParser('escapeSpecialCharsWithinTagAttributes', function (text) {
- 'use strict';
-
- // Build a regex to find HTML tags and comments. See Friedl's
- // "Mastering Regular Expressions", 2nd Ed., pp. 200-201.
- var regex = /(<[a-z\/!$]("[^"]*"|'[^']*'|[^'">])*>|)/gi;
-
- text = text.replace(regex, function (wholeMatch) {
- var tag = wholeMatch.replace(/(.)<\/?code>(?=.)/g, '$1`');
- tag = showdown.helper.escapeCharacters(tag, '\\`*_', false);
- return tag;
- });
-
- return text;
-});
-
-/**
- * Handle github codeblocks prior to running HashHTML so that
- * HTML contained within the codeblock gets escaped properly
- * Example:
- * ```ruby
- * def hello_world(x)
- * puts "Hello, #{x}"
- * end
- * ```
- */
-showdown.subParser('githubCodeBlocks', function (text, options, globals) {
- 'use strict';
-
- // early exit if option is not enabled
- if (!options.ghCodeBlocks) {
- return text;
- }
-
- text = globals.converter._dispatch('githubCodeBlocks.before', text, options, globals);
-
- text += '~0';
-
- text = text.replace(/(?:^|\n)```(.*)\n([\s\S]*?)\n```/g, function (wholeMatch, language, codeblock) {
- var end = (options.omitExtraWLInCodeBlocks) ? '' : '\n';
-
- // First parse the github code block
- codeblock = showdown.subParser('encodeCode')(codeblock);
- codeblock = showdown.subParser('detab')(codeblock);
- codeblock = codeblock.replace(/^\n+/g, ''); // trim leading newlines
- codeblock = codeblock.replace(/\n+$/g, ''); // trim trailing whitespace
-
- codeblock = '' + codeblock + end + '
';
-
- codeblock = showdown.subParser('hashBlock')(codeblock, options, globals);
-
- // Since GHCodeblocks can be false positives, we need to
- // store the primitive text and the parsed text in a global var,
- // and then return a token
- return '\n\n~G' + (globals.ghCodeBlocks.push({text: wholeMatch, codeblock: codeblock}) - 1) + 'G\n\n';
- });
-
- // attacklab: strip sentinel
- text = text.replace(/~0/, '');
-
- return globals.converter._dispatch('githubCodeBlocks.after', text, options, globals);
-});
-
-showdown.subParser('hashBlock', function (text, options, globals) {
- 'use strict';
- text = text.replace(/(^\n+|\n+$)/g, '');
- return '\n\n~K' + (globals.gHtmlBlocks.push(text) - 1) + 'K\n\n';
-});
-
-showdown.subParser('hashElement', function (text, options, globals) {
- 'use strict';
-
- return function (wholeMatch, m1) {
- var blockText = m1;
-
- // Undo double lines
- blockText = blockText.replace(/\n\n/g, '\n');
- blockText = blockText.replace(/^\n/, '');
-
- // strip trailing blank lines
- blockText = blockText.replace(/\n+$/g, '');
-
- // Replace the element text with a marker ("~KxK" where x is its key)
- blockText = '\n\n~K' + (globals.gHtmlBlocks.push(blockText) - 1) + 'K\n\n';
-
- return blockText;
- };
-});
-
-showdown.subParser('hashHTMLBlocks', function (text, options, globals) {
- 'use strict';
-
- var blockTags = [
- 'pre',
- 'div',
- 'h1',
- 'h2',
- 'h3',
- 'h4',
- 'h5',
- 'h6',
- 'blockquote',
- 'table',
- 'dl',
- 'ol',
- 'ul',
- 'script',
- 'noscript',
- 'form',
- 'fieldset',
- 'iframe',
- 'math',
- 'style',
- 'section',
- 'header',
- 'footer',
- 'nav',
- 'article',
- 'aside',
- 'address',
- 'audio',
- 'canvas',
- 'figure',
- 'hgroup',
- 'output',
- 'video',
- 'p'
- ],
- repFunc = function (wholeMatch, match, left, right) {
- var txt = wholeMatch;
- // check if this html element is marked as markdown
- // if so, it's contents should be parsed as markdown
- if (left.search(/\bmarkdown\b/) !== -1) {
- txt = left + globals.converter.makeHtml(match) + right;
- }
- return '\n\n~K' + (globals.gHtmlBlocks.push(txt) - 1) + 'K\n\n';
- };
-
- for (var i = 0; i < blockTags.length; ++i) {
- text = showdown.helper.replaceRecursiveRegExp(text, repFunc, '^(?: |\\t){0,3}<' + blockTags[i] + '\\b[^>]*>', '' + blockTags[i] + '>', 'gim');
- }
-
- // HR SPECIAL CASE
- text = text.replace(/(\n[ ]{0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,
- showdown.subParser('hashElement')(text, options, globals));
-
- // Special case for standalone HTML comments:
- text = text.replace(/()/g,
- showdown.subParser('hashElement')(text, options, globals));
-
- // PHP and ASP-style processor instructions (...?> and <%...%>)
- text = text.replace(/(?:\n\n)([ ]{0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,
- showdown.subParser('hashElement')(text, options, globals));
- return text;
-});
-
-/**
- * Hash span elements that should not be parsed as markdown
- */
-showdown.subParser('hashHTMLSpans', function (text, config, globals) {
- 'use strict';
-
- var matches = showdown.helper.matchRecursiveRegExp(text, ']*>', '', 'gi');
-
- for (var i = 0; i < matches.length; ++i) {
- text = text.replace(matches[i][0], '~L' + (globals.gHtmlSpans.push(matches[i][0]) - 1) + 'L');
- }
- return text;
-});
-
-/**
- * Unhash HTML spans
- */
-showdown.subParser('unhashHTMLSpans', function (text, config, globals) {
- 'use strict';
-
- for (var i = 0; i < globals.gHtmlSpans.length; ++i) {
- text = text.replace('~L' + i + 'L', globals.gHtmlSpans[i]);
- }
-
- return text;
-});
-
-/**
- * Hash span elements that should not be parsed as markdown
- */
-showdown.subParser('hashPreCodeTags', function (text, config, globals) {
- 'use strict';
-
- var repFunc = function (wholeMatch, match, left, right) {
- // encode html entities
- var codeblock = left + showdown.subParser('encodeCode')(match) + right;
- return '\n\n~G' + (globals.ghCodeBlocks.push({text: wholeMatch, codeblock: codeblock}) - 1) + 'G\n\n';
- };
-
- text = showdown.helper.replaceRecursiveRegExp(text, repFunc, '^(?: |\\t){0,3}]*>\\s*]*>', '^(?: |\\t){0,3}\\s*
', 'gim');
- return text;
-});
-
-showdown.subParser('headers', function (text, options, globals) {
- 'use strict';
-
- text = globals.converter._dispatch('headers.before', text, options, globals);
-
- var prefixHeader = options.prefixHeaderId,
- headerLevelStart = (isNaN(parseInt(options.headerLevelStart))) ? 1 : parseInt(options.headerLevelStart),
-
- // Set text-style headers:
- // Header 1
- // ========
- //
- // Header 2
- // --------
- //
- setextRegexH1 = (options.smoothLivePreview) ? /^(.+)[ \t]*\n={2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n=+[ \t]*\n+/gm,
- setextRegexH2 = (options.smoothLivePreview) ? /^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n-+[ \t]*\n+/gm;
-
- text = text.replace(setextRegexH1, function (wholeMatch, m1) {
-
- var spanGamut = showdown.subParser('spanGamut')(m1, options, globals),
- hID = (options.noHeaderId) ? '' : ' id="' + headerId(m1) + '"',
- hLevel = headerLevelStart,
- hashBlock = '' + spanGamut + ' ';
- return showdown.subParser('hashBlock')(hashBlock, options, globals);
- });
-
- text = text.replace(setextRegexH2, function (matchFound, m1) {
- var spanGamut = showdown.subParser('spanGamut')(m1, options, globals),
- hID = (options.noHeaderId) ? '' : ' id="' + headerId(m1) + '"',
- hLevel = headerLevelStart + 1,
- hashBlock = '' + spanGamut + ' ';
- return showdown.subParser('hashBlock')(hashBlock, options, globals);
- });
-
- // atx-style headers:
- // # Header 1
- // ## Header 2
- // ## Header 2 with closing hashes ##
- // ...
- // ###### Header 6
- //
- text = text.replace(/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm, function (wholeMatch, m1, m2) {
- var span = showdown.subParser('spanGamut')(m2, options, globals),
- hID = (options.noHeaderId) ? '' : ' id="' + headerId(m2) + '"',
- hLevel = headerLevelStart - 1 + m1.length,
- header = '' + span + ' ';
-
- return showdown.subParser('hashBlock')(header, options, globals);
- });
-
- function headerId(m) {
- var title, escapedId = m.replace(/[^\w]/g, '').toLowerCase();
-
- if (globals.hashLinkCounts[escapedId]) {
- title = escapedId + '-' + (globals.hashLinkCounts[escapedId]++);
- } else {
- title = escapedId;
- globals.hashLinkCounts[escapedId] = 1;
- }
-
- // Prefix id to prevent causing inadvertent pre-existing style matches.
- if (prefixHeader === true) {
- prefixHeader = 'section';
- }
-
- if (showdown.helper.isString(prefixHeader)) {
- return prefixHeader + title;
- }
- return title;
- }
-
- text = globals.converter._dispatch('headers.after', text, options, globals);
- return text;
-});
-
-/**
- * Turn Markdown image shortcuts into
tags.
- */
-showdown.subParser('images', function (text, options, globals) {
- 'use strict';
-
- text = globals.converter._dispatch('images.before', text, options, globals);
-
- var inlineRegExp = /!\[(.*?)]\s?\([ \t]*()(\S+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(['"])(.*?)\6[ \t]*)?\)/g,
- referenceRegExp = /!\[([^\]]*?)] ?(?:\n *)?\[(.*?)]()()()()()/g;
-
- function writeImageTag (wholeMatch, altText, linkId, url, width, height, m5, title) {
-
- var gUrls = globals.gUrls,
- gTitles = globals.gTitles,
- gDims = globals.gDimensions;
-
- linkId = linkId.toLowerCase();
-
- if (!title) {
- title = '';
- }
-
- if (url === '' || url === null) {
- if (linkId === '' || linkId === null) {
- // lower-case and turn embedded newlines into spaces
- linkId = altText.toLowerCase().replace(/ ?\n/g, ' ');
- }
- url = '#' + linkId;
-
- if (!showdown.helper.isUndefined(gUrls[linkId])) {
- url = gUrls[linkId];
- if (!showdown.helper.isUndefined(gTitles[linkId])) {
- title = gTitles[linkId];
- }
- if (!showdown.helper.isUndefined(gDims[linkId])) {
- width = gDims[linkId].width;
- height = gDims[linkId].height;
- }
- } else {
- return wholeMatch;
- }
- }
-
- altText = altText.replace(/"/g, '"');
- altText = showdown.helper.escapeCharacters(altText, '*_', false);
- url = showdown.helper.escapeCharacters(url, '*_', false);
- var result = '
';
- return result;
- }
-
- // First, handle reference-style labeled images: ![alt text][id]
- text = text.replace(referenceRegExp, writeImageTag);
-
- // Next, handle inline images: 
- text = text.replace(inlineRegExp, writeImageTag);
-
- text = globals.converter._dispatch('images.after', text, options, globals);
- return text;
-});
-
-showdown.subParser('italicsAndBold', function (text, options, globals) {
- 'use strict';
-
- text = globals.converter._dispatch('italicsAndBold.before', text, options, globals);
-
- if (options.literalMidWordUnderscores) {
- //underscores
- // Since we are consuming a \s character, we need to add it
- text = text.replace(/(^|\s|>|\b)__(?=\S)([\s\S]+?)__(?=\b|<|\s|$)/gm, '$1$2');
- text = text.replace(/(^|\s|>|\b)_(?=\S)([\s\S]+?)_(?=\b|<|\s|$)/gm, '$1$2');
- //asterisks
- text = text.replace(/(\*\*)(?=\S)([^\r]*?\S[*]*)\1/g, '$2');
- text = text.replace(/(\*)(?=\S)([^\r]*?\S)\1/g, '$2');
-
- } else {
- // must go first:
- text = text.replace(/(\*\*|__)(?=\S)([^\r]*?\S[*_]*)\1/g, '$2');
- text = text.replace(/(\*|_)(?=\S)([^\r]*?\S)\1/g, '$2');
- }
-
- text = globals.converter._dispatch('italicsAndBold.after', text, options, globals);
- return text;
-});
-
-/**
- * Form HTML ordered (numbered) and unordered (bulleted) lists.
- */
-showdown.subParser('lists', function (text, options, globals) {
- 'use strict';
-
- text = globals.converter._dispatch('lists.before', text, options, globals);
- /**
- * Process the contents of a single ordered or unordered list, splitting it
- * into individual list items.
- * @param {string} listStr
- * @param {boolean} trimTrailing
- * @returns {string}
- */
- function processListItems (listStr, trimTrailing) {
- // The $g_list_level global keeps track of when we're inside a list.
- // Each time we enter a list, we increment it; when we leave a list,
- // we decrement. If it's zero, we're not in a list anymore.
- //
- // We do this because when we're not inside a list, we want to treat
- // something like this:
- //
- // I recommend upgrading to version
- // 8. Oops, now this line is treated
- // as a sub-list.
- //
- // As a single paragraph, despite the fact that the second line starts
- // with a digit-period-space sequence.
- //
- // Whereas when we're inside a list (or sub-list), that line will be
- // treated as the start of a sub-list. What a kludge, huh? This is
- // an aspect of Markdown's syntax that's hard to parse perfectly
- // without resorting to mind-reading. Perhaps the solution is to
- // change the syntax rules such that sub-lists must start with a
- // starting cardinal number; e.g. "1." or "a.".
- globals.gListLevel++;
-
- // trim trailing blank lines:
- listStr = listStr.replace(/\n{2,}$/, '\n');
-
- // attacklab: add sentinel to emulate \z
- listStr += '~0';
-
- var rgx = /(\n)?(^[ \t]*)([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(~0|\2([*+-]|\d+[.])[ \t]+))/gm,
- isParagraphed = (/\n[ \t]*\n(?!~0)/.test(listStr));
-
- listStr = listStr.replace(rgx, function (wholeMatch, m1, m2, m3, m4, taskbtn, checked) {
- checked = (checked && checked.trim() !== '');
- var item = showdown.subParser('outdent')(m4, options, globals),
- bulletStyle = '';
-
- // Support for github tasklists
- if (taskbtn && options.tasklists) {
- bulletStyle = ' class="task-list-item" style="list-style-type: none;"';
- item = item.replace(/^[ \t]*\[(x|X| )?]/m, function () {
- var otp = '';
- return otp;
- });
- }
- // m1 - Leading line or
- // Has a double return (multi paragraph) or
- // Has sublist
- if (m1 || (item.search(/\n{2,}/) > -1)) {
- item = showdown.subParser('githubCodeBlocks')(item, options, globals);
- item = showdown.subParser('blockGamut')(item, options, globals);
- } else {
- // Recursion for sub-lists:
- item = showdown.subParser('lists')(item, options, globals);
- item = item.replace(/\n$/, ''); // chomp(item)
- if (isParagraphed) {
- item = showdown.subParser('paragraphs')(item, options, globals);
- } else {
- item = showdown.subParser('spanGamut')(item, options, globals);
- }
- }
- item = '\n' + item + ' \n';
- return item;
- });
-
- // attacklab: strip sentinel
- listStr = listStr.replace(/~0/g, '');
-
- globals.gListLevel--;
-
- if (trimTrailing) {
- listStr = listStr.replace(/\s+$/, '');
- }
-
- return listStr;
- }
-
- /**
- * Check and parse consecutive lists (better fix for issue #142)
- * @param {string} list
- * @param {string} listType
- * @param {boolean} trimTrailing
- * @returns {string}
- */
- function parseConsecutiveLists(list, listType, trimTrailing) {
- // check if we caught 2 or more consecutive lists by mistake
- // we use the counterRgx, meaning if listType is UL we look for UL and vice versa
- var counterRxg = (listType === 'ul') ? /^ {0,2}\d+\.[ \t]/gm : /^ {0,2}[*+-][ \t]/gm,
- subLists = [],
- result = '';
-
- if (list.search(counterRxg) !== -1) {
- (function parseCL(txt) {
- var pos = txt.search(counterRxg);
- if (pos !== -1) {
- // slice
- result += '\n\n<' + listType + '>' + processListItems(txt.slice(0, pos), !!trimTrailing) + '' + listType + '>\n\n';
-
- // invert counterType and listType
- listType = (listType === 'ul') ? 'ol' : 'ul';
- counterRxg = (listType === 'ul') ? /^ {0,2}\d+\.[ \t]/gm : /^ {0,2}[*+-][ \t]/gm;
-
- //recurse
- parseCL(txt.slice(pos));
- } else {
- result += '\n\n<' + listType + '>' + processListItems(txt, !!trimTrailing) + '' + listType + '>\n\n';
- }
- })(list);
- for (var i = 0; i < subLists.length; ++i) {
-
- }
- } else {
- result = '\n\n<' + listType + '>' + processListItems(list, !!trimTrailing) + '' + listType + '>\n\n';
- }
-
- return result;
- }
-
- // attacklab: add sentinel to hack around khtml/safari bug:
- // http://bugs.webkit.org/show_bug.cgi?id=11231
- text += '~0';
-
- // Re-usable pattern to match any entire ul or ol list:
- var wholeList = /^(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm;
-
- if (globals.gListLevel) {
- text = text.replace(wholeList, function (wholeMatch, list, m2) {
- var listType = (m2.search(/[*+-]/g) > -1) ? 'ul' : 'ol';
- return parseConsecutiveLists(list, listType, true);
- });
- } else {
- wholeList = /(\n\n|^\n?)(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm;
- //wholeList = /(\n\n|^\n?)( {0,3}([*+-]|\d+\.)[ \t]+[\s\S]+?)(?=(~0)|(\n\n(?!\t| {2,}| {0,3}([*+-]|\d+\.)[ \t])))/g;
- text = text.replace(wholeList, function (wholeMatch, m1, list, m3) {
-
- var listType = (m3.search(/[*+-]/g) > -1) ? 'ul' : 'ol';
- return parseConsecutiveLists(list, listType);
- });
- }
-
- // attacklab: strip sentinel
- text = text.replace(/~0/, '');
-
- text = globals.converter._dispatch('lists.after', text, options, globals);
- return text;
-});
-
-/**
- * Remove one level of line-leading tabs or spaces
- */
-showdown.subParser('outdent', function (text) {
- 'use strict';
-
- // attacklab: hack around Konqueror 3.5.4 bug:
- // "----------bug".replace(/^-/g,"") == "bug"
- text = text.replace(/^(\t|[ ]{1,4})/gm, '~0'); // attacklab: g_tab_width
-
- // attacklab: clean up hack
- text = text.replace(/~0/g, '');
-
- return text;
-});
-
-/**
- *
- */
-showdown.subParser('paragraphs', function (text, options, globals) {
- 'use strict';
-
- text = globals.converter._dispatch('paragraphs.before', text, options, globals);
- // Strip leading and trailing lines:
- text = text.replace(/^\n+/g, '');
- text = text.replace(/\n+$/g, '');
-
- var grafs = text.split(/\n{2,}/g),
- grafsOut = [],
- end = grafs.length; // Wrap tags
-
- for (var i = 0; i < end; i++) {
- var str = grafs[i];
- // if this is an HTML marker, copy it
- if (str.search(/~(K|G)(\d+)\1/g) >= 0) {
- grafsOut.push(str);
- } else {
- str = showdown.subParser('spanGamut')(str, options, globals);
- str = str.replace(/^([ \t]*)/g, '
');
- str += '
';
- grafsOut.push(str);
- }
- }
-
- /** Unhashify HTML blocks */
- end = grafsOut.length;
- for (i = 0; i < end; i++) {
- var blockText = '',
- grafsOutIt = grafsOut[i],
- codeFlag = false;
- // if this is a marker for an html block...
- while (grafsOutIt.search(/~(K|G)(\d+)\1/) >= 0) {
- var delim = RegExp.$1,
- num = RegExp.$2;
-
- if (delim === 'K') {
- blockText = globals.gHtmlBlocks[num];
- } else {
- // we need to check if ghBlock is a false positive
- if (codeFlag) {
- // use encoded version of all text
- blockText = showdown.subParser('encodeCode')(globals.ghCodeBlocks[num].text);
- } else {
- blockText = globals.ghCodeBlocks[num].codeblock;
- }
- }
- blockText = blockText.replace(/\$/g, '$$$$'); // Escape any dollar signs
-
- grafsOutIt = grafsOutIt.replace(/(\n\n)?~(K|G)\d+\2(\n\n)?/, blockText);
- // Check if grafsOutIt is a pre->code
- if (/^]*>\s*]*>/.test(grafsOutIt)) {
- codeFlag = true;
- }
- }
- grafsOut[i] = grafsOutIt;
- }
- text = grafsOut.join('\n\n');
- // Strip leading and trailing lines:
- text = text.replace(/^\n+/g, '');
- text = text.replace(/\n+$/g, '');
- return globals.converter._dispatch('paragraphs.after', text, options, globals);
-});
-
-/**
- * Run extension
- */
-showdown.subParser('runExtension', function (ext, text, options, globals) {
- 'use strict';
-
- if (ext.filter) {
- text = ext.filter(text, globals.converter, options);
-
- } else if (ext.regex) {
- // TODO remove this when old extension loading mechanism is deprecated
- var re = ext.regex;
- if (!re instanceof RegExp) {
- re = new RegExp(re, 'g');
- }
- text = text.replace(re, ext.replace);
- }
-
- return text;
-});
-
-/**
- * These are all the transformations that occur *within* block-level
- * tags like paragraphs, headers, and list items.
- */
-showdown.subParser('spanGamut', function (text, options, globals) {
- 'use strict';
-
- text = globals.converter._dispatch('spanGamut.before', text, options, globals);
- text = showdown.subParser('codeSpans')(text, options, globals);
- text = showdown.subParser('escapeSpecialCharsWithinTagAttributes')(text, options, globals);
- text = showdown.subParser('encodeBackslashEscapes')(text, options, globals);
-
- // Process anchor and image tags. Images must come first,
- // because ![foo][f] looks like an anchor.
- text = showdown.subParser('images')(text, options, globals);
- text = showdown.subParser('anchors')(text, options, globals);
-
- // Make links out of things like ` `
- // Must come after _DoAnchors(), because you can use < and >
- // delimiters in inline links like [this]().
- text = showdown.subParser('autoLinks')(text, options, globals);
- text = showdown.subParser('encodeAmpsAndAngles')(text, options, globals);
- text = showdown.subParser('italicsAndBold')(text, options, globals);
- text = showdown.subParser('strikethrough')(text, options, globals);
-
- // Do hard breaks:
- text = text.replace(/ +\n/g, '
\n');
-
- text = globals.converter._dispatch('spanGamut.after', text, options, globals);
- return text;
-});
-
-showdown.subParser('strikethrough', function (text, options, globals) {
- 'use strict';
-
- if (options.strikethrough) {
- text = globals.converter._dispatch('strikethrough.before', text, options, globals);
- text = text.replace(/(?:~T){2}([\s\S]+?)(?:~T){2}/g, '$1');
- text = globals.converter._dispatch('strikethrough.after', text, options, globals);
- }
-
- return text;
-});
-
-/**
- * Strip any lines consisting only of spaces and tabs.
- * This makes subsequent regexs easier to write, because we can
- * match consecutive blank lines with /\n+/ instead of something
- * contorted like /[ \t]*\n+/
- */
-showdown.subParser('stripBlankLines', function (text) {
- 'use strict';
- return text.replace(/^[ \t]+$/mg, '');
-});
-
-/**
- * Strips link definitions from text, stores the URLs and titles in
- * hash references.
- * Link defs are in the form: ^[id]: url "optional title"
- *
- * ^[ ]{0,3}\[(.+)\]: // id = $1 attacklab: g_tab_width - 1
- * [ \t]*
- * \n? // maybe *one* newline
- * [ \t]*
- * (\S+?)>? // url = $2
- * [ \t]*
- * \n? // maybe one newline
- * [ \t]*
- * (?:
- * (\n*) // any lines skipped = $3 attacklab: lookbehind removed
- * ["(]
- * (.+?) // title = $4
- * [")]
- * [ \t]*
- * )? // title is optional
- * (?:\n+|$)
- * /gm,
- * function(){...});
- *
- */
-showdown.subParser('stripLinkDefinitions', function (text, options, globals) {
- 'use strict';
-
- var regex = /^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*(\S+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=~0))/gm;
-
- // attacklab: sentinel workarounds for lack of \A and \Z, safari\khtml bug
- text += '~0';
-
- text = text.replace(regex, function (wholeMatch, linkId, url, width, height, blankLines, title) {
- linkId = linkId.toLowerCase();
- globals.gUrls[linkId] = showdown.subParser('encodeAmpsAndAngles')(url); // Link IDs are case-insensitive
-
- if (blankLines) {
- // Oops, found blank lines, so it's not a title.
- // Put back the parenthetical statement we stole.
- return blankLines + title;
-
- } else {
- if (title) {
- globals.gTitles[linkId] = title.replace(/"|'/g, '"');
- }
- if (options.parseImgDimensions && width && height) {
- globals.gDimensions[linkId] = {
- width: width,
- height: height
- };
- }
- }
- // Completely remove the definition from the text
- return '';
- });
-
- // attacklab: strip sentinel
- text = text.replace(/~0/, '');
-
- return text;
-});
-
-showdown.subParser('tables', function (text, options, globals) {
- 'use strict';
-
- if (!options.tables) {
- return text;
- }
-
- var tableRgx = /^[ \t]{0,3}\|?.+\|.+\n[ \t]{0,3}\|?[ \t]*:?[ \t]*(?:-|=){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:-|=){2,}[\s\S]+?(?:\n\n|~0)/gm;
-
- function parseStyles(sLine) {
- if (/^:[ \t]*--*$/.test(sLine)) {
- return ' style="text-align:left;"';
- } else if (/^--*[ \t]*:[ \t]*$/.test(sLine)) {
- return ' style="text-align:right;"';
- } else if (/^:[ \t]*--*[ \t]*:$/.test(sLine)) {
- return ' style="text-align:center;"';
- } else {
- return '';
- }
- }
-
- function parseHeaders(header, style) {
- var id = '';
- header = header.trim();
- if (options.tableHeaderId) {
- id = ' id="' + header.replace(/ /g, '_').toLowerCase() + '"';
- }
- header = showdown.subParser('spanGamut')(header, options, globals);
-
- return '' + header + ' \n';
- }
-
- function parseCells(cell, style) {
- var subText = showdown.subParser('spanGamut')(cell, options, globals);
- return '' + subText + ' \n';
- }
-
- function buildTable(headers, cells) {
- var tb = '\n\n\n',
- tblLgn = headers.length;
-
- for (var i = 0; i < tblLgn; ++i) {
- tb += headers[i];
- }
- tb += ' \n\n\n';
-
- for (i = 0; i < cells.length; ++i) {
- tb += '\n';
- for (var ii = 0; ii < tblLgn; ++ii) {
- tb += cells[i][ii];
- }
- tb += ' \n';
- }
- tb += '\n
\n';
- return tb;
- }
-
- text = globals.converter._dispatch('tables.before', text, options, globals);
-
- text = text.replace(tableRgx, function (rawTable) {
-
- var i, tableLines = rawTable.split('\n');
-
- // strip wrong first and last column if wrapped tables are used
- for (i = 0; i < tableLines.length; ++i) {
- if (/^[ \t]{0,3}\|/.test(tableLines[i])) {
- tableLines[i] = tableLines[i].replace(/^[ \t]{0,3}\|/, '');
- }
- if (/\|[ \t]*$/.test(tableLines[i])) {
- tableLines[i] = tableLines[i].replace(/\|[ \t]*$/, '');
- }
- }
-
- var rawHeaders = tableLines[0].split('|').map(function (s) { return s.trim();}),
- rawStyles = tableLines[1].split('|').map(function (s) { return s.trim();}),
- rawCells = [],
- headers = [],
- styles = [],
- cells = [];
-
- tableLines.shift();
- tableLines.shift();
-
- for (i = 0; i < tableLines.length; ++i) {
- if (tableLines[i].trim() === '') {
- continue;
- }
- rawCells.push(
- tableLines[i]
- .split('|')
- .map(function (s) {
- return s.trim();
- })
- );
- }
-
- if (rawHeaders.length < rawStyles.length) {
- return rawTable;
- }
-
- for (i = 0; i < rawStyles.length; ++i) {
- styles.push(parseStyles(rawStyles[i]));
- }
-
- for (i = 0; i < rawHeaders.length; ++i) {
- if (showdown.helper.isUndefined(styles[i])) {
- styles[i] = '';
- }
- headers.push(parseHeaders(rawHeaders[i], styles[i]));
- }
-
- for (i = 0; i < rawCells.length; ++i) {
- var row = [];
- for (var ii = 0; ii < headers.length; ++ii) {
- if (showdown.helper.isUndefined(rawCells[i][ii])) {
-
- }
- row.push(parseCells(rawCells[i][ii], styles[ii]));
- }
- cells.push(row);
- }
-
- return buildTable(headers, cells);
- });
-
- text = globals.converter._dispatch('tables.after', text, options, globals);
-
- return text;
-});
-
-/**
- * Swap back in all the special characters we've hidden.
- */
-showdown.subParser('unescapeSpecialChars', function (text) {
- 'use strict';
-
- text = text.replace(/~E(\d+)E/g, function (wholeMatch, m1) {
- var charCodeToReplace = parseInt(m1);
- return String.fromCharCode(charCodeToReplace);
- });
- return text;
-});
-module.exports = showdown;
diff --git a/view/crmebN/wxParse/wxDiscode.js b/view/crmebN/wxParse/wxDiscode.js
deleted file mode 100644
index fca29bb1..00000000
--- a/view/crmebN/wxParse/wxDiscode.js
+++ /dev/null
@@ -1,207 +0,0 @@
-// HTML 支持的数学符号
-function strNumDiscode(str){
- str = str.replace(/∀/g, '∀');
- str = str.replace(/∂/g, '∂');
- str = str.replace(/&exists;/g, '∃');
- str = str.replace(/∅/g, '∅');
- str = str.replace(/∇/g, '∇');
- str = str.replace(/∈/g, '∈');
- str = str.replace(/∉/g, '∉');
- str = str.replace(/∋/g, '∋');
- str = str.replace(/∏/g, '∏');
- str = str.replace(/∑/g, '∑');
- str = str.replace(/−/g, '−');
- str = str.replace(/∗/g, '∗');
- str = str.replace(/√/g, '√');
- str = str.replace(/∝/g, '∝');
- str = str.replace(/∞/g, '∞');
- str = str.replace(/∠/g, '∠');
- str = str.replace(/∧/g, '∧');
- str = str.replace(/∨/g, '∨');
- str = str.replace(/∩/g, '∩');
- str = str.replace(/∩/g, '∪');
- str = str.replace(/∫/g, '∫');
- str = str.replace(/∴/g, '∴');
- str = str.replace(/∼/g, '∼');
- str = str.replace(/≅/g, '≅');
- str = str.replace(/≈/g, '≈');
- str = str.replace(/≠/g, '≠');
- str = str.replace(/≤/g, '≤');
- str = str.replace(/≥/g, '≥');
- str = str.replace(/⊂/g, '⊂');
- str = str.replace(/⊃/g, '⊃');
- str = str.replace(/⊄/g, '⊄');
- str = str.replace(/⊆/g, '⊆');
- str = str.replace(/⊇/g, '⊇');
- str = str.replace(/⊕/g, '⊕');
- str = str.replace(/⊗/g, '⊗');
- str = str.replace(/⊥/g, '⊥');
- str = str.replace(/⋅/g, '⋅');
- return str;
-}
-
-//HTML 支持的希腊字母
-function strGreeceDiscode(str){
- str = str.replace(/Α/g, 'Α');
- str = str.replace(/Β/g, 'Β');
- str = str.replace(/Γ/g, 'Γ');
- str = str.replace(/Δ/g, 'Δ');
- str = str.replace(/Ε/g, 'Ε');
- str = str.replace(/Ζ/g, 'Ζ');
- str = str.replace(/Η/g, 'Η');
- str = str.replace(/Θ/g, 'Θ');
- str = str.replace(/Ι/g, 'Ι');
- str = str.replace(/Κ/g, 'Κ');
- str = str.replace(/Λ/g, 'Λ');
- str = str.replace(/Μ/g, 'Μ');
- str = str.replace(/Ν/g, 'Ν');
- str = str.replace(/Ξ/g, 'Ν');
- str = str.replace(/Ο/g, 'Ο');
- str = str.replace(/Π/g, 'Π');
- str = str.replace(/Ρ/g, 'Ρ');
- str = str.replace(/Σ/g, 'Σ');
- str = str.replace(/Τ/g, 'Τ');
- str = str.replace(/Υ/g, 'Υ');
- str = str.replace(/Φ/g, 'Φ');
- str = str.replace(/Χ/g, 'Χ');
- str = str.replace(/Ψ/g, 'Ψ');
- str = str.replace(/Ω/g, 'Ω');
-
- str = str.replace(/α/g, 'α');
- str = str.replace(/β/g, 'β');
- str = str.replace(/γ/g, 'γ');
- str = str.replace(/δ/g, 'δ');
- str = str.replace(/ε/g, 'ε');
- str = str.replace(/ζ/g, 'ζ');
- str = str.replace(/η/g, 'η');
- str = str.replace(/θ/g, 'θ');
- str = str.replace(/ι/g, 'ι');
- str = str.replace(/κ/g, 'κ');
- str = str.replace(/λ/g, 'λ');
- str = str.replace(/μ/g, 'μ');
- str = str.replace(/ν/g, 'ν');
- str = str.replace(/ξ/g, 'ξ');
- str = str.replace(/ο/g, 'ο');
- str = str.replace(/π/g, 'π');
- str = str.replace(/ρ/g, 'ρ');
- str = str.replace(/ς/g, 'ς');
- str = str.replace(/σ/g, 'σ');
- str = str.replace(/τ/g, 'τ');
- str = str.replace(/υ/g, 'υ');
- str = str.replace(/φ/g, 'φ');
- str = str.replace(/χ/g, 'χ');
- str = str.replace(/ψ/g, 'ψ');
- str = str.replace(/ω/g, 'ω');
- str = str.replace(/ϑ/g, 'ϑ');
- str = str.replace(/ϒ/g, 'ϒ');
- str = str.replace(/ϖ/g, 'ϖ');
- str = str.replace(/·/g, '·');
- return str;
-}
-
-//
-
-function strcharacterDiscode(str){
- // 加入常用解析
- str = str.replace(/ /g, ' ');
- str = str.replace(/"/g, "'");
- str = str.replace(/&/g, '&');
- // str = str.replace(/</g, '‹');
- // str = str.replace(/>/g, '›');
-
- str = str.replace(/</g, '<');
- str = str.replace(/>/g, '>');
- str = str.replace(/•/g, '•');
-
- return str;
-}
-
-// HTML 支持的其他实体
-function strOtherDiscode(str){
- str = str.replace(/Œ/g, 'Œ');
- str = str.replace(/œ/g, 'œ');
- str = str.replace(/Š/g, 'Š');
- str = str.replace(/š/g, 'š');
- str = str.replace(/Ÿ/g, 'Ÿ');
- str = str.replace(/ƒ/g, 'ƒ');
- str = str.replace(/ˆ/g, 'ˆ');
- str = str.replace(/˜/g, '˜');
- str = str.replace(/ /g, '');
- str = str.replace(/ /g, '');
- str = str.replace(/ /g, '');
- str = str.replace(//g, '');
- str = str.replace(//g, '');
- str = str.replace(//g, '');
- str = str.replace(//g, '');
- str = str.replace(/–/g, '–');
- str = str.replace(/—/g, '—');
- str = str.replace(/‘/g, '‘');
- str = str.replace(/’/g, '’');
- str = str.replace(/‚/g, '‚');
- str = str.replace(/“/g, '“');
- str = str.replace(/”/g, '”');
- str = str.replace(/„/g, '„');
- str = str.replace(/†/g, '†');
- str = str.replace(/‡/g, '‡');
- str = str.replace(/•/g, '•');
- str = str.replace(/…/g, '…');
- str = str.replace(/‰/g, '‰');
- str = str.replace(/′/g, '′');
- str = str.replace(/″/g, '″');
- str = str.replace(/‹/g, '‹');
- str = str.replace(/›/g, '›');
- str = str.replace(/‾/g, '‾');
- str = str.replace(/€/g, '€');
- str = str.replace(/™/g, '™');
-
- str = str.replace(/←/g, '←');
- str = str.replace(/↑/g, '↑');
- str = str.replace(/→/g, '→');
- str = str.replace(/↓/g, '↓');
- str = str.replace(/↔/g, '↔');
- str = str.replace(/↵/g, '↵');
- str = str.replace(/⌈/g, '⌈');
- str = str.replace(/⌉/g, '⌉');
-
- str = str.replace(/⌊/g, '⌊');
- str = str.replace(/⌋/g, '⌋');
- str = str.replace(/◊/g, '◊');
- str = str.replace(/♠/g, '♠');
- str = str.replace(/♣/g, '♣');
- str = str.replace(/♥/g, '♥');
-
- str = str.replace(/♦/g, '♦');
- str = str.replace(/'/g, '\'');
- return str;
-}
-
-function strMoreDiscode(str){
- str = str.replace(/\r\n/g,"");
- str = str.replace(/\n/g,"");
-
- str = str.replace(/code/g,"wxxxcode-style");
- return str;
-}
-
-function strDiscode(str){
- str = strNumDiscode(str);
- str = strGreeceDiscode(str);
- str = strcharacterDiscode(str);
- str = strOtherDiscode(str);
- str = strMoreDiscode(str);
- return str;
-}
-function urlToHttpUrl(url,rep){
-
- var patt1 = new RegExp("^//");
- var result = patt1.test(url);
- if(result){
- url = rep+":"+url;
- }
- return url;
-}
-
-module.exports = {
- strDiscode:strDiscode,
- urlToHttpUrl:urlToHttpUrl
-}
\ No newline at end of file
diff --git a/view/crmebN/wxParse/wxParse.js b/view/crmebN/wxParse/wxParse.js
deleted file mode 100644
index 89c1000b..00000000
--- a/view/crmebN/wxParse/wxParse.js
+++ /dev/null
@@ -1,157 +0,0 @@
-/**
- * author: Di (微信小程序开发工程师)
- * organization: WeAppDev(微信小程序开发论坛)(http://weappdev.com)
- * 垂直微信小程序开发交流社区
- *
- * github地址: https://github.com/icindy/wxParse
- *
- * for: 微信小程序富文本解析
- * detail : http://weappdev.com/t/wxparse-alpha0-1-html-markdown/184
- */
-
-/**
- * utils函数引入
- **/
-import showdown from './showdown.js';
-import HtmlToJson from './html2json.js';
-/**
- * 配置及公有属性
- **/
-var realWindowWidth = 0;
-var realWindowHeight = 0;
-wx.getSystemInfo({
- success: function (res) {
- realWindowWidth = res.windowWidth
- realWindowHeight = res.windowHeight
- }
-})
-/**
- * 主函数入口区
- **/
-function wxParse(bindName = 'wxParseData', type='html', data='数据不能为空', target,imagePadding) {
- var that = target;
- var transData = {};//存放转化后的数据
- if (type == 'html') {
- transData = HtmlToJson.html2json(data, bindName);
- } else if (type == 'md' || type == 'markdown') {
- var converter = new showdown.Converter();
- var html = converter.makeHtml(data);
- transData = HtmlToJson.html2json(html, bindName);
- }
- transData.view = {};
- transData.view.imagePadding = 0;
- if(typeof(imagePadding) != 'undefined'){
- transData.view.imagePadding = imagePadding
- }
- var bindData = {};
- bindData[bindName] = transData;
- that.setData(bindData)
- that.wxParseImgLoad = wxParseImgLoad;
- that.wxParseImgTap = wxParseImgTap;
-}
-// 图片点击事件
-function wxParseImgTap(e) {
- var that = this;
- var nowImgUrl = e.target.dataset.src;
- var tagFrom = e.target.dataset.from;
- if (typeof (tagFrom) != 'undefined' && tagFrom.length > 0) {
- wx.previewImage({
- current: nowImgUrl, // 当前显示图片的http链接
- urls: that.data[tagFrom].imageUrls // 需要预览的图片http链接列表
- })
- }
-}
-
-/**
- * 图片视觉宽高计算函数区
- **/
-function wxParseImgLoad(e) {
- var that = this;
- var tagFrom = e.target.dataset.from;
- var idx = e.target.dataset.idx;
- if (typeof (tagFrom) != 'undefined' && tagFrom.length > 0) {
- calMoreImageInfo(e, idx, that, tagFrom)
- }
-}
-// 假循环获取计算图片视觉最佳宽高
-function calMoreImageInfo(e, idx, that, bindName) {
- var temData = that.data[bindName];
- if (!temData || temData.images.length == 0) {
- return;
- }
- var temImages = temData.images;
- //因为无法获取view宽度 需要自定义padding进行计算,稍后处理
- var recal = wxAutoImageCal(e.detail.width, e.detail.height,that,bindName);
- // temImages[idx].width = recal.imageWidth;
- // temImages[idx].height = recal.imageheight;
- // temData.images = temImages;
- // var bindData = {};
- // bindData[bindName] = temData;
- // that.setData(bindData);
- var index = temImages[idx].index
- var key = `${bindName}`
- for (var i of index.split('.')) key+=`.nodes[${i}]`
- var keyW = key + '.width'
- var keyH = key + '.height'
- that.setData({
- [keyW]: recal.imageWidth,
- [keyH]: recal.imageheight,
- })
-}
-
-// 计算视觉优先的图片宽高
-function wxAutoImageCal(originalWidth, originalHeight,that,bindName) {
- //获取图片的原始长宽
- var windowWidth = 0, windowHeight = 0;
- var autoWidth = 0, autoHeight = 0;
- var results = {};
- var padding = that.data[bindName].view.imagePadding;
- windowWidth = realWindowWidth-2*padding;
- windowHeight = realWindowHeight;
- //判断按照那种方式进行缩放
- // console.log("windowWidth" + windowWidth);
- if (originalWidth > windowWidth) {//在图片width大于手机屏幕width时候
- autoWidth = windowWidth;
- // console.log("autoWidth" + autoWidth);
- autoHeight = (autoWidth * originalHeight) / originalWidth;
- // console.log("autoHeight" + autoHeight);
- results.imageWidth = autoWidth;
- results.imageheight = autoHeight;
- } else {//否则展示原来的数据
- results.imageWidth = originalWidth;
- results.imageheight = originalHeight;
- }
- return results;
-}
-
-function wxParseTemArray(temArrayName,bindNameReg,total,that){
- var array = [];
- var temData = that.data;
- var obj = null;
- for(var i = 0; i < total; i++){
- var simArr = temData[bindNameReg+i].nodes;
- array.push(simArr);
- }
-
- temArrayName = temArrayName || 'wxParseTemArray';
- obj = JSON.parse('{"'+ temArrayName +'":""}');
- obj[temArrayName] = array;
- that.setData(obj);
-}
-
-/**
- * 配置emojis
- *
- */
-
-function emojisInit(reg='',baseSrc="/wxParse/emojis/",emojis){
- HtmlToJson.emojisInit(reg,baseSrc,emojis);
-}
-
-module.exports = {
- wxParse: wxParse,
- wxParseTemArray:wxParseTemArray,
- emojisInit:emojisInit
-}
-
-
diff --git a/view/crmebN/wxParse/wxParse.wxml b/view/crmebN/wxParse/wxParse.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
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/view/crmebN/wxParse/wxParse.wxss b/view/crmebN/wxParse/wxParse.wxss
deleted file mode 100644
index dfad488a..00000000
--- a/view/crmebN/wxParse/wxParse.wxss
+++ /dev/null
@@ -1,207 +0,0 @@
-
-/**
- * author: Di (微信小程序开发工程师)
- * organization: WeAppDev(微信小程序开发论坛)(http://weappdev.com)
- * 垂直微信小程序开发交流社区
- *
- * github地址: https://github.com/icindy/wxParse
- *
- * for: 微信小程序富文本解析
- * detail : http://weappdev.com/t/wxparse-alpha0-1-html-markdown/184
- */
-
-.wxParse{
- margin: 0 5px;
- font-family: Helvetica,sans-serif;
- font-size: 28rpx;
- color: #666;
- line-height: 1.8;
-}
-view{
- word-break:break-all;
- margin-bottom: -5rpx;
-}
-.wxParse-inline{
- display: inline;
- margin: 0;
- padding: 0;
-}
-/*//标题 */
-.wxParse-div{margin: 0;padding: 0;}
-.wxParse-h1{ font-size:2em; margin: .67em 0 }
-.wxParse-h2{ font-size:1.5em; margin: .75em 0 }
-.wxParse-h3{ font-size:1.17em; margin: .83em 0 }
-.wxParse-h4{ margin: 1.12em 0}
-.wxParse-h5 { font-size:.83em; margin: 1.5em 0 }
-.wxParse-h6{ font-size:.75em; margin: 1.67em 0 }
-
-.wxParse-h1 {
- font-size: 18px;
- font-weight: 400;
- margin-bottom: .9em;
-}
-.wxParse-h2 {
- font-size: 16px;
- font-weight: 400;
- margin-bottom: .34em;
-}
-.wxParse-h3 {
- font-weight: 400;
- font-size: 15px;
- margin-bottom: .34em;
-}
-.wxParse-h4 {
- font-weight: 400;
- font-size: 14px;
- margin-bottom: .24em;
-}
-.wxParse-h5 {
- font-weight: 400;
- font-size: 13px;
- margin-bottom: .14em;
-}
-.wxParse-h6 {
- font-weight: 400;
- font-size: 12px;
- margin-bottom: .04em;
-}
-
-.wxParse-h1, .wxParse-h2, .wxParse-h3, .wxParse-h4, .wxParse-h5, .wxParse-h6, .wxParse-b, .wxParse-strong { font-weight: bolder }
-
-.wxParse-i,.wxParse-cite,.wxParse-em,.wxParse-var,.wxParse-address{font-style:italic}
-.wxParse-pre,.wxParse-tt,.wxParse-code,.wxParse-kbd,.wxParse-samp{font-family:monospace}
-.wxParse-pre{white-space:pre}
-.wxParse-big{font-size:1.17em}
-.wxParse-small,.wxParse-sub,.wxParse-sup{font-size:.83em}
-.wxParse-sub{vertical-align:sub}
-.wxParse-sup{vertical-align:super}
-.wxParse-s,.wxParse-strike,.wxParse-del{text-decoration:line-through}
-/*wxparse-自定义个性化的css样式*/
-/*增加video的css样式*/
-.wxParse-strong,.wxParse-s{display: inline}
-.wxParse-a{
- color: deepskyblue;
- word-break:break-all;
- overflow:auto;
-}
-
-.wxParse-video{
- text-align: center;
- margin: 10px 0;
-}
-
-.wxParse-video-video{
- width:100%;
-}
-
-.wxParse-img{
- /*background-color: #efefef;*/
- overflow: hidden;
-}
-
-.wxParse-blockquote {
- margin: 0;
- padding:10px 0 10px 5px;
- font-family:Courier, Calibri,"宋体";
- background:#f5f5f5;
- border-left: 3px solid #dbdbdb;
-}
-
-.wxParse-code,.wxParse-wxxxcode-style{
- display: inline;
- background:#f5f5f5;
-}
-.wxParse-ul{
- margin: 20rpx 10rpx;
-}
-
-.wxParse-li,.wxParse-li-inner{
- display: flex;
- align-items: baseline;
- margin: 10rpx 0;
-}
-.wxParse-li-text{
-
- align-items: center;
- line-height: 20px;
-}
-
-.wxParse-li-circle{
- display: inline-flex;
- width: 5px;
- height: 5px;
- background-color: #333;
- margin-right: 5px;
-}
-
-.wxParse-li-square{
- display: inline-flex;
- width: 10rpx;
- height: 10rpx;
- background-color: #333;
- margin-right: 5px;
-}
-.wxParse-li-ring{
- display: inline-flex;
- width: 10rpx;
- height: 10rpx;
- border: 2rpx solid #333;
- border-radius: 50%;
- background-color: #fff;
- margin-right: 5px;
-}
-
-/*.wxParse-table{
- width: 100%;
- height: 400px;
-}
-.wxParse-thead,.wxParse-tfoot,.wxParse-tr{
- display: flex;
- flex-direction: row;
-}
-.wxParse-th,.wxParse-td{
- display: flex;
- width: 580px;
- overflow: auto;
-}*/
-
-.wxParse-u {
- text-decoration: underline;
-}
-.wxParse-hide{
- display: none;
-}
-.WxEmojiView{
- align-items: center;
-}
-.wxEmoji{
- width: 16px;
- height:16px;
-}
-.wxParse-tr{
- display: flex;
- border-right:1px solid #e0e0e0;
- border-bottom:1px solid #e0e0e0;
- border-top:1px solid #e0e0e0;
-}
-.wxParse-th,
-.wxParse-td{
- flex:1;
- padding:5px;
- font-size:28rpx;
- border-left:1px solid #e0e0e0;
- word-break: break-all;
-}
-.wxParse-td:last{
- border-top:1px solid #e0e0e0;
-}
-.wxParse-th{
- background:#f0f0f0;
- border-top:1px solid #e0e0e0;
-}
-.wxParse-del{
- display: inline;
-}
-.wxParse-figure {
- overflow: hidden;
-}