mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 05:50:50 +00:00
【程序目录】更新前端页面
This commit is contained in:
parent
3636c67d02
commit
26b2d91d13
1
crmeb/public/admin/css/chunk-0d4a0390.332cfb47.css
Normal file
1
crmeb/public/admin/css/chunk-0d4a0390.332cfb47.css
Normal file
@ -0,0 +1 @@
|
||||
.tabBox_img[data-v-613b939a]{width:36px;height:36px;border-radius:4px;cursor:pointer}.tabBox_img img[data-v-613b939a]{width:100%;height:100%}
|
||||
@ -1 +0,0 @@
|
||||
.tabBox_img[data-v-bd6faaa2]{width:36px;height:36px;border-radius:4px;cursor:pointer}.tabBox_img img[data-v-bd6faaa2]{width:100%;height:100%}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
crmeb/public/admin/js/chunk-0d4a0390.f63c0e02.js
Normal file
1
crmeb/public/admin/js/chunk-0d4a0390.f63c0e02.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,2 +1,2 @@
|
||||
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>加载中</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
|
||||
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.2772579d.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.0e56249a.js></script><script src=/static/js/index.5c04d06a.js></script></body></html>
|
||||
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.2772579d.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.0e56249a.js></script><script src=/static/js/index.1c05a4cf.js></script></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
crmeb/public/static/js/pages-index-index.0e54b669.js
Normal file
1
crmeb/public/static/js/pages-index-index.0e54b669.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/payment/index"],{"73fa":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.$t("选择付款方式")),i=t.__map(t.payMode,(function(e,n){var i=t.__get_orig(e),a=e.payStatus&&"yue"==e.value?t.$t("¥"):null;return{$orig:i,m1:a}})),a=t.$t("支付"),o=t.$t("¥"),u=t.$t("去付款");t.$mp.data=Object.assign({},{$root:{m0:n,l0:i,m2:a,m3:o,m4:u}})},o=[]},aba4:function(t,e,n){},acd4:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("a398"),a=o(n("cf74"));function o(t){return t&&t.__esModule?t:{default:t}}var u={props:{payMode:{type:Array,default:function(){return[]}},pay_close:{type:Boolean,default:!1},order_id:{type:String,default:""},totalPrice:{type:String,default:"0"},isCall:{type:Boolean,default:!1},friendPay:{type:Boolean,default:!1}},mixins:[a.default],data:function(){return{formContent:"",active:0,paytype:"",number:0}},watch:{payMode:{handler:function(t,e){var n=[];t.forEach((function(t,e){t.payStatus&&(t.index=e,n.push(t))})),this.active=n[0].index,this.paytype=n[0].value,this.number=n[0].number||0},immediate:!0,deep:!0}},methods:{payType:function(t,e,n){this.active=n,this.paytype=e,this.number=t,this.$emit("changePayType",e)},close:function(){this.$emit("onChangeFun",{action:"payClose"})},goPay:function(e,n){if(this.isCall)return this.$emit("onChangeFun",{action:"payCheck",value:n});var a=this;return a.order_id?"yue"==n&&parseFloat(e)<parseFloat(a.totalPrice)?a.$util.Tips({title:a.$t("余额不足")}):(t.showLoading({title:a.$t("支付中")}),"friend"==n&&a.order_id?t.navigateTo({url:"/pages/users/payment_on_behalf/index?order_id="+a.order_id+"&spread="+this.$store.state.app.uid,success:function(t){},fail:function(){},complete:function(){}}):void(0,i.orderPay)({uni:a.order_id,paytype:n,type:a.friendPay?1:0,from:"routine"}).then((function(e){var i=e.data.result.jsConfig;switch(n){case"weixin":if(void 0===e.data.result)return a.$util.Tips({title:a.$t("缺少支付参数")});t.requestPayment({timeStamp:i.timestamp,nonceStr:i.nonceStr,package:i.package,signType:i.signType,paySign:i.paySign,success:function(e){return t.hideLoading(),a.$util.Tips({title:e.msg,icon:"success"},(function(){a.$emit("onChangeFun",{action:"pay_complete"})}))},fail:function(e){return t.hideLoading(),a.$util.Tips({title:a.$t("取消支付")},(function(){a.$emit("onChangeFun",{action:"pay_fail"})}))},complete:function(e){if(t.hideLoading(),"requestPayment:cancel"==e.errMsg)return a.$util.Tips({title:a.$t("取消支付")},(function(){a.$emit("onChangeFun",{action:"pay_fail"})}))}});break;case"yue":return t.hideLoading(),a.$util.Tips({title:e.msg,icon:"success"},(function(){a.$emit("onChangeFun",{action:"pay_complete"})}));case"offline":return t.hideLoading(),a.$util.Tips({title:e.msg,icon:"success"},(function(){a.$emit("onChangeFun",{action:"pay_complete"})}));case"friend":return t.hideLoading(),a.$util.Tips({title:e.msg,icon:"success"},(function(){a.$emit("onChangeFun",{action:"pay_complete"})}));case"alipay":t.hideLoading(),t.navigateTo({url:"/pages/users/alipay_invoke/index?id=".concat(e.data.result.order_id,"&link=").concat(e.data.result.jsConfig.qrCode)});break}})).catch((function(e){return t.hideLoading(),a.$util.Tips({title:e},(function(){a.$emit("onChangeFun",{action:"pay_fail"})}))}))):a.$util.Tips({title:a.$t("请选择要支付的订单")})}}};e.default=u}).call(this,n("543d")["default"])},c041:function(t,e,n){"use strict";var i=n("aba4"),a=n.n(i);a.a},de16:function(t,e,n){"use strict";n.r(e);var i=n("73fa"),a=n("eaff");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("c041");var u,r=n("f0c5"),c=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"01c1a2da",null,!1,i["a"],u);e["default"]=c.exports},eaff:function(t,e,n){"use strict";n.r(e);var i=n("acd4"),a=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/payment/index"],{acd4:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("a398"),a=o(n("cf74"));function o(e){return e&&e.__esModule?e:{default:e}}var u={props:{payMode:{type:Array,default:function(){return[]}},pay_close:{type:Boolean,default:!1},order_id:{type:String,default:""},totalPrice:{type:String,default:"0"},isCall:{type:Boolean,default:!1},friendPay:{type:Boolean,default:!1}},mixins:[a.default],data:function(){return{formContent:"",active:0,paytype:"",number:0}},watch:{payMode:{handler:function(e,t){var n=[];e.forEach((function(e,t){e.payStatus&&(e.index=t,n.push(e))})),this.active=n[0].index,this.paytype=n[0].value,this.number=n[0].number||0},immediate:!0,deep:!0}},methods:{payType:function(e,t,n){this.active=n,this.paytype=t,this.number=e,this.$emit("changePayType",t)},close:function(){this.$emit("onChangeFun",{action:"payClose"})},goPay:function(t,n){if(this.isCall)return this.$emit("onChangeFun",{action:"payCheck",value:n});var a=this;return a.order_id?"yue"==n&&parseFloat(t)<parseFloat(a.totalPrice)?a.$util.Tips({title:a.$t("余额不足")}):(e.showLoading({title:a.$t("支付中")}),"friend"==n&&a.order_id?e.navigateTo({url:"/pages/users/payment_on_behalf/index?order_id="+a.order_id+"&spread="+this.$store.state.app.uid,success:function(e){},fail:function(){},complete:function(){}}):void(0,i.orderPay)({uni:a.order_id,paytype:n,type:a.friendPay?1:0,from:"routine"}).then((function(t){var i=t.data.result.jsConfig;switch(n){case"weixin":if(void 0===t.data.result)return a.$util.Tips({title:a.$t("缺少支付参数")});var o="";o=e.requestOrderPayment?"requestOrderPayment":"requestPayment",e[o]({timeStamp:i.timestamp,nonceStr:i.nonceStr,package:i.package,signType:i.signType,paySign:i.paySign,success:function(t){return e.hideLoading(),a.$util.Tips({title:t.msg,icon:"success"},(function(){a.$emit("onChangeFun",{action:"pay_complete"})}))},fail:function(t){return e.hideLoading(),a.$util.Tips({title:a.$t("取消支付")},(function(){a.$emit("onChangeFun",{action:"pay_fail"})}))},complete:function(t){if(e.hideLoading(),"requestPayment:cancel"==t.errMsg||"requestOrderPayment:cancel"==t.errMsg)return a.$util.Tips({title:a.$t("取消支付")},(function(){a.$emit("onChangeFun",{action:"pay_fail"})}))}});break;case"yue":return e.hideLoading(),a.$util.Tips({title:t.msg,icon:"success"},(function(){a.$emit("onChangeFun",{action:"pay_complete"})}));case"offline":return e.hideLoading(),a.$util.Tips({title:t.msg,icon:"success"},(function(){a.$emit("onChangeFun",{action:"pay_complete"})}));case"friend":return e.hideLoading(),a.$util.Tips({title:t.msg,icon:"success"},(function(){a.$emit("onChangeFun",{action:"pay_complete"})}));case"alipay":e.hideLoading(),e.navigateTo({url:"/pages/users/alipay_invoke/index?id=".concat(t.data.result.order_id,"&link=").concat(t.data.result.jsConfig.qrCode)});break}})).catch((function(t){return e.hideLoading(),a.$util.Tips({title:t},(function(){a.$emit("onChangeFun",{action:"pay_fail"})}))}))):a.$util.Tips({title:a.$t("请选择要支付的订单")})}}};t.default=u}).call(this,n("543d")["default"])},bc18:function(e,t,n){},de16:function(e,t,n){"use strict";n.r(t);var i=n("e35f"),a=n("eaff");for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("ed71");var u,r=n("f0c5"),c=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"9f54293c",null,!1,i["a"],u);t["default"]=c.exports},e35f:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var a=function(){var e=this,t=e.$createElement,n=(e._self._c,e.$t("选择付款方式")),i=e.__map(e.payMode,(function(t,n){var i=e.__get_orig(t),a=t.payStatus&&"yue"==t.value?e.$t("¥"):null;return{$orig:i,m1:a}})),a=e.$t("支付"),o=e.$t("¥"),u=e.$t("去付款");e.$mp.data=Object.assign({},{$root:{m0:n,l0:i,m2:a,m3:o,m4:u}})},o=[]},eaff:function(e,t,n){"use strict";n.r(t);var i=n("acd4"),a=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},ed71:function(e,t,n){"use strict";var i=n("bc18"),a=n.n(i);a.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/payment/index-create-component',
|
||||
{
|
||||
|
||||
@ -1 +1 @@
|
||||
<view style="{{(colorStyle)}}" class="data-v-01c1a2da"><view class="{{['payment','data-v-01c1a2da',pay_close?'on':'']}}"><view class="title acea-row row-center-wrapper data-v-01c1a2da">{{''+$root.m0}}<text data-event-opts="{{[['tap',[['close',['$event']]]]]}}" class="iconfont icon-guanbi data-v-01c1a2da" bindtap="__e"></text></view><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{item.$orig.payStatus}}"><view data-event-opts="{{[['tap',[['payType',[item.$orig.number||0,'$0',index],[[['payMode','',index,'value']]]]]]]}}" class="item acea-row row-between-wrapper data-v-01c1a2da" bindtap="__e"><view class="left acea-row row-between-wrapper data-v-01c1a2da"><view class="{{['iconfont','data-v-01c1a2da',item.$orig.icon]}}"></view><view class="text data-v-01c1a2da"><view class="name data-v-01c1a2da">{{item.$orig.name}}</view><block wx:if="{{item.$orig.value=='yue'}}"><view class="info data-v-01c1a2da">{{''+item.$orig.title+''}}<label class="money _span data-v-01c1a2da">{{item.m1+item.$orig.number}}</label></view></block><block wx:else><view class="info data-v-01c1a2da">{{item.$orig.title}}</view></block></view></view><view class="{{['iconfont','data-v-01c1a2da',active==index?'icon-xuanzhong11 font-num':'icon-weixuan']}}"></view></view></block></block><view class="payMoney data-v-01c1a2da">{{$root.m2}}<label class="font-color _span data-v-01c1a2da">{{$root.m3}}<label class="money _span data-v-01c1a2da">{{totalPrice}}</label></label></view><view data-event-opts="{{[['tap',[['goPay',['$0','$1'],['number','paytype']]]]]}}" class="button bg-color acea-row row-center-wrapper data-v-01c1a2da" bindtap="__e">{{$root.m4}}</view></view><block wx:if="{{pay_close}}"><view data-event-opts="{{[['tap',[['close',['$event']]]]]}}" class="mask data-v-01c1a2da" bindtap="__e"></view></block><view hidden="{{!(false)}}" class="data-v-01c1a2da"><rich-text nodes="{{formContent}}"></rich-text></view></view>
|
||||
<view style="{{(colorStyle)}}" class="data-v-9f54293c"><view class="{{['payment','data-v-9f54293c',pay_close?'on':'']}}"><view class="title acea-row row-center-wrapper data-v-9f54293c">{{''+$root.m0}}<text data-event-opts="{{[['tap',[['close',['$event']]]]]}}" class="iconfont icon-guanbi data-v-9f54293c" bindtap="__e"></text></view><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{item.$orig.payStatus}}"><view data-event-opts="{{[['tap',[['payType',[item.$orig.number||0,'$0',index],[[['payMode','',index,'value']]]]]]]}}" class="item acea-row row-between-wrapper data-v-9f54293c" bindtap="__e"><view class="left acea-row row-between-wrapper data-v-9f54293c"><view class="{{['iconfont','data-v-9f54293c',item.$orig.icon]}}"></view><view class="text data-v-9f54293c"><view class="name data-v-9f54293c">{{item.$orig.name}}</view><block wx:if="{{item.$orig.value=='yue'}}"><view class="info data-v-9f54293c">{{''+item.$orig.title+''}}<label class="money _span data-v-9f54293c">{{item.m1+item.$orig.number}}</label></view></block><block wx:else><view class="info data-v-9f54293c">{{item.$orig.title}}</view></block></view></view><view class="{{['iconfont','data-v-9f54293c',active==index?'icon-xuanzhong11 font-num':'icon-weixuan']}}"></view></view></block></block><view class="payMoney data-v-9f54293c">{{$root.m2}}<label class="font-color _span data-v-9f54293c">{{$root.m3}}<label class="money _span data-v-9f54293c">{{totalPrice}}</label></label></view><view data-event-opts="{{[['tap',[['goPay',['$0','$1'],['number','paytype']]]]]}}" class="button bg-color acea-row row-center-wrapper data-v-9f54293c" bindtap="__e">{{$root.m4}}</view></view><block wx:if="{{pay_close}}"><view data-event-opts="{{[['tap',[['close',['$event']]]]]}}" class="mask data-v-9f54293c" bindtap="__e"></view></block><view hidden="{{!(false)}}" class="data-v-9f54293c"><rich-text nodes="{{formContent}}"></rich-text></view></view>
|
||||
@ -1 +1 @@
|
||||
.bgcolor.data-v-01c1a2da{background-color:var(--view-theme)}.payment.data-v-01c1a2da{position:fixed;bottom:0;left:0;width:100%;border-radius:16rpx 16rpx 0 0;background-color:#fff;padding-bottom:60rpx;z-index:999;transition:all .3s cubic-bezier(.25,.5,.5,.9);-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.payment .payMoney.data-v-01c1a2da{font-size:28rpx;color:#333;text-align:center;margin-top:50rpx}.payment .payMoney .font-color.data-v-01c1a2da{margin-left:10rpx}.payment .payMoney .font-color .money.data-v-01c1a2da{font-size:40rpx}.payment .button.data-v-01c1a2da{width:690rpx;height:90rpx;border-radius:45rpx;color:#fff;margin:20rpx auto 0 auto}.payment.on.data-v-01c1a2da{-webkit-transform:translateZ(0);transform:translateZ(0)}.payment .title.data-v-01c1a2da{text-align:center;height:123rpx;font-size:32rpx;color:#282828;font-weight:700;padding-right:30rpx;margin-left:30rpx;position:relative;border-bottom:1rpx solid #eee}.payment .title .iconfont.data-v-01c1a2da{position:absolute;right:30rpx;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:38rpx;color:#8a8a8a;font-weight:400}.payment .item.data-v-01c1a2da{border-bottom:1rpx solid #eee;height:130rpx;margin-left:30rpx;padding-right:30rpx}.payment .item .left.data-v-01c1a2da{width:610rpx}.payment .item .left .text.data-v-01c1a2da{width:540rpx}.payment .item .left .text .name.data-v-01c1a2da{font-size:32rpx;color:#282828}.payment .item .left .text .info.data-v-01c1a2da{font-size:24rpx;color:#999}.payment .item .left .text .info .money.data-v-01c1a2da{color:#f90}.payment .item .left .iconfont.data-v-01c1a2da{font-size:45rpx;color:#09bb07}.payment .item .left .iconfont.icon-zhifubao.data-v-01c1a2da{color:#00aaea}.payment .item .left .iconfont.icon-yuezhifu.data-v-01c1a2da{color:#f90}.payment .item .left .iconfont.icon-yuezhifu1.data-v-01c1a2da{color:#eb6623}.payment .item .iconfont.data-v-01c1a2da{font-size:40rpx;color:#ccc}.icon-haoyoudaizhifu.data-v-01c1a2da{color:#f34c3e!important}
|
||||
.bgcolor.data-v-9f54293c{background-color:var(--view-theme)}.payment.data-v-9f54293c{position:fixed;bottom:0;left:0;width:100%;border-radius:16rpx 16rpx 0 0;background-color:#fff;padding-bottom:60rpx;z-index:999;transition:all .3s cubic-bezier(.25,.5,.5,.9);-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.payment .payMoney.data-v-9f54293c{font-size:28rpx;color:#333;text-align:center;margin-top:50rpx}.payment .payMoney .font-color.data-v-9f54293c{margin-left:10rpx}.payment .payMoney .font-color .money.data-v-9f54293c{font-size:40rpx}.payment .button.data-v-9f54293c{width:690rpx;height:90rpx;border-radius:45rpx;color:#fff;margin:20rpx auto 0 auto}.payment.on.data-v-9f54293c{-webkit-transform:translateZ(0);transform:translateZ(0)}.payment .title.data-v-9f54293c{text-align:center;height:123rpx;font-size:32rpx;color:#282828;font-weight:700;padding-right:30rpx;margin-left:30rpx;position:relative;border-bottom:1rpx solid #eee}.payment .title .iconfont.data-v-9f54293c{position:absolute;right:30rpx;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:38rpx;color:#8a8a8a;font-weight:400}.payment .item.data-v-9f54293c{border-bottom:1rpx solid #eee;height:130rpx;margin-left:30rpx;padding-right:30rpx}.payment .item .left.data-v-9f54293c{width:610rpx}.payment .item .left .text.data-v-9f54293c{width:540rpx}.payment .item .left .text .name.data-v-9f54293c{font-size:32rpx;color:#282828}.payment .item .left .text .info.data-v-9f54293c{font-size:24rpx;color:#999}.payment .item .left .text .info .money.data-v-9f54293c{color:#f90}.payment .item .left .iconfont.data-v-9f54293c{font-size:45rpx;color:#09bb07}.payment .item .left .iconfont.icon-zhifubao.data-v-9f54293c{color:#00aaea}.payment .item .left .iconfont.icon-yuezhifu.data-v-9f54293c{color:#f90}.payment .item .left .iconfont.icon-yuezhifu1.data-v-9f54293c{color:#eb6623}.payment .item .iconfont.data-v-9f54293c{font-size:40rpx;color:#ccc}.icon-haoyoudaizhifu.data-v-9f54293c{color:#f34c3e!important}
|
||||
10
crmeb/public/statics/mp_view/components/tuiDrawer/index.js
Normal file
10
crmeb/public/statics/mp_view/components/tuiDrawer/index.js
Normal file
@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/tuiDrawer/index"],{"000a":function(t,e,i){"use strict";i.r(e);var a=i("478a"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},"10c9":function(t,e,i){},"478a":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("cf74"));function n(t){return t&&t.__esModule?t:{default:t}}var o={name:"tuiSwipeAction",emits:["click"],mixins:[a.default],props:{actions:{type:Array,default:function(){return[]}},closable:{type:Boolean,default:!0},showMask:{type:Boolean,default:!0},operateWidth:{type:Number,default:80},params:{type:Object,default:function(){return{}}},forbid:{type:Boolean,default:!1},open:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#fff"}},watch:{actions:function(t,e){this.updateButtonSize()},open:function(t){this.manualSwitch(t)}},data:function(){return{tStart:{pageX:0,pageY:0},limitMove:0,position:{pageX:0,pageY:0},isShowBtn:!1,move:!1}},mounted:function(){this.updateButtonSize()},methods:{swipeDirection:function(t,e,i,a){return Math.abs(t-e)>=Math.abs(i-a)?t-e>0?"Left":"Right":i-a>0?"Up":"Down"},loop:function(){},updateButtonSize:function(){var e=this.actions;if(e.length>0){t.createSelectorQuery().in(this);var i=0;e.forEach((function(t){i+=t.width||0})),this.limitMove=i}else this.limitMove=this.operateWidth},handlerTouchstart:function(t){if(!this.forbid){var e=t.touches;if(!(e&&e.length>1)){this.move=!0,e=e?t.touches[0]:{},(!e||void 0===e.pageX&&void 0===e.pageY)&&(e={pageX:t.pageX,pageY:t.pageY});var i=this.tStart;if(e)for(var a in i)e[a]&&(i[a]=e[a])}}},swipper:function(t){var e=this.tStart,i={pageX:t.pageX-e.pageX,pageY:t.pageY-e.pageY};this.limitMove<Math.abs(i.pageX)&&(i.pageX=-this.limitMove),this.position=i},handlerTouchmove:function(t){if(!this.forbid&&this.move){var e=this.tStart,i=t.touches?t.touches[0]:{};if((!i||void 0===i.pageX&&void 0===i.pageY)&&(i={pageX:t.pageX,pageY:t.pageY}),i){var a=this.swipeDirection(e.pageX,i.pageX,e.pageY,i.pageY);"Left"===a&&Math.abs(this.position.pageX)!==this.limitMove&&this.swipper(i)}}},handlerTouchend:function(t){if(!this.forbid&&this.move){this.move=!1;var e=this.tStart,i=t.changedTouches?t.changedTouches[0]:{};if((!i||void 0===i.pageX&&void 0===i.pageY)&&(i={pageX:t.pageX,pageY:t.pageY}),i){var a=this.swipeDirection(e.pageX,i.pageX,e.pageY,i.pageY),n={pageX:i.pageX-e.pageX,pageY:i.pageY-e.pageY};Math.abs(n.pageX)>=40&&"Left"===a?(n.pageX=n.pageX<0?-this.limitMove:this.limitMove,this.isShowBtn=!0):n.pageX=0,0==n.pageX&&(this.isShowBtn=!1),this.position=n}}},handlerButton:function(t){this.closable&&this.closeButtonGroup();var e=t.currentTarget.dataset;this.$emit("click",{index:Number(e.index),item:this.params})},closeButtonGroup:function(){this.position={pageX:0,pageY:0},this.isShowBtn=!1},handlerParentButton:function(t){this.closable&&this.closeButtonGroup()},manualSwitch:function(t){var e=0;if(t)if(0===this.actions.length)e=this.operateWidth;else{var i=0;this.actions.forEach((function(t){i+=t.width})),e=i}this.position={pageX:-e,pageY:0}},px:function(e){return t.upx2px(e)+"px"}}};e.default=o}).call(this,i("543d")["default"])},"765a":function(t,e,i){"use strict";var a=i("10c9"),n=i.n(a);n.a},b33f:function(t,e,i){"use strict";i.r(e);var a=i("b7a8"),n=i("000a");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("765a");var s,u=i("f0c5"),r=Object(u["a"])(n["default"],a["b"],a["c"],!1,null,"15c981c0",null,!1,a["a"],s);e["default"]=r.exports},b7a8:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=(t._self._c,t.actions.length>0?t.__map(t.actions,(function(e,i){var a=t.__get_orig(e),n=e.icon?t.px(e.imgWidth):null,o=e.icon?t.px(e.imgHeight):null,s=t.px(e.fontsize);return{$orig:a,m0:n,m1:o,m2:s}})):null);t.$mp.data=Object.assign({},{$root:{l0:i}})},o=[]}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/tuiDrawer/index-create-component',
|
||||
{
|
||||
'components/tuiDrawer/index-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("b33f"))
|
||||
})
|
||||
},
|
||||
[['components/tuiDrawer/index-create-component']]
|
||||
]);
|
||||
@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<view class="tui-swipeout-wrap data-v-15c981c0" style="{{'background-color:'+(backgroundColor)+';'}}"><view class="{{['tui-swipeout-item','data-v-15c981c0',isShowBtn?'swipe-action-show':'']}}" style="{{'transform:'+('translate('+position.pageX+'px,0)')+';'}}"><view data-event-opts="{{[['touchstart',[['handlerTouchstart',['$event']]]],['touchmove',[['handlerTouchmove',['$event']]]],['touchend',[['handlerTouchend',['$event']]]],['mousedown',[['handlerTouchstart',['$event']]]],['mousemove',[['handlerTouchmove',['$event']]]],['mouseup',[['handlerTouchend',['$event']]]]]}}" class="tui-swipeout-content data-v-15c981c0" bindtouchstart="__e" bindtouchmove="__e" bindtouchend="__e" bindmousedown="__e" bindmousemove="__e" bindmouseup="__e"><slot name="content"></slot></view><block wx:if="{{actions.length>0}}"><view data-event-opts="{{[['touchend',[['loop',['$event']]]]]}}" class="tui-swipeout-button-right-group data-v-15c981c0" style="{{(colorStyle)}}" catchtouchend="__e"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="tui-swipeout-button-right-item data-v-15c981c0" style="{{'background-color:'+(index==0?'var(--view-theme)':'#ccc')+';'+('color:'+(index==1?'#f2f2f2':'#f2f2f2')+';')+('width:'+(item.$orig.width+'px')+';')}}" data-index="{{index}}" data-event-opts="{{[['tap',[['handlerButton',['$event']]]]]}}" bindtap="__e"><block wx:if="{{item.$orig.icon}}"><image style="{{'width:'+(item.m0)+';'+('height:'+(item.m1)+';')}}" src="{{item.$orig.icon}}" class="data-v-15c981c0"></image></block><text style="{{'font-size:'+(item.m2)+';'}}" class="data-v-15c981c0">{{item.$orig.name}}</text></view></block></view></block><block wx:if="{{actions.length===0}}"><view data-event-opts="{{[['touchend',[['loop',['$event']]]],['tap',[['handlerParentButton',['$event']]]]]}}" class="tui-swipeout-button-right-group data-v-15c981c0" style="{{'width:'+(operateWidth+'px')+';'+('right:'+('-'+operateWidth+'px')+';')}}" catchtouchend="__e" bindtap="__e"><slot name="button"></slot></view></block></view><block wx:if="{{isShowBtn&&showMask}}"><view data-event-opts="{{[['tap',[['closeButtonGroup',['$event']]]],['touchstart',[['closeButtonGroup',['$event']]]]]}}" class="swipe-action_mask data-v-15c981c0" catchtap="__e" catchtouchstart="__e"></view></block></view>
|
||||
@ -0,0 +1 @@
|
||||
.tui-swipeout-wrap.data-v-15c981c0{position:relative;overflow:hidden}.swipe-action-show.data-v-15c981c0{position:relative;z-index:998}.tui-swipeout-item.data-v-15c981c0{width:100%;box-sizing:border-box;transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease;font-size:14px}.tui-swipeout-content.data-v-15c981c0{white-space:nowrap;overflow:hidden}.tui-swipeout-button-right-group.data-v-15c981c0{position:absolute;right:-100%;top:0;height:100%;z-index:1;width:100%}.tui-swipeout-button-right-item.data-v-15c981c0{height:100%;float:left;white-space:nowrap;box-sizing:border-box;display:flex;align-items:center;justify-content:center;text-align:center}.swipe-action_mask.data-v-15c981c0{display:block;opacity:0;position:fixed;z-index:997;top:0;left:0;width:100%;height:100%}
|
||||
@ -1 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/annex/offline_pay/index"],{3029:function(t,e,n){"use strict";(function(t){n("d5c5");i(n("66fd"));var e=i(n("ca1e"));function i(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},"578b":function(t,e,n){},"5b29":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("a398"),a=n("1118"),c=n("26cb"),o=(getApp(),{data:function(){return{money:"",payPrice:"",payType:"weixin",alipayHtml:"",alipay:!1,wxpay:!1,yuePay:!1,paying:!1,now_money:0,isWeixin:!1,site_name:"",isCommitted:!1}},watch:{money:function(t,e){t&&"number"===typeof t?this.checkPrice():this.payPrice=""}},computed:(0,c.mapGetters)(["isLogin"]),onLoad:function(t){this.isLogin||(0,a.toLogin)()},onShow:function(){this.isLogin&&this.getPayType()},methods:{inputChange:function(t){var e=this;t.target.value=t.target.value.match(/^\d*(.?\d{0,2})/g)[0]||"",this.$nextTick((function(){e.money=t.target.value,e.checkPrice()}))},getPayType:function(){var e=this;(0,i.orderOfflinePayType)().then((function(n){var i=n.data,a=i.ali_pay_status,c=i.pay_weixin_open,o=i.yue_pay_status,s=i.offline_pay_status,u=i.site_name,r=i.now_money;e.alipay="1"===a,e.wxpay=1===c,e.yuePay=1===o,e.now_money=r,e.site_name=u,s||t.showModal({title:e.$t("支付提醒"),content:e.$t("线下支付已关闭,请点击确认按钮返回主页"),showCancel:!1,success:function(){t.switchTab({url:"/pages/index/index"})}}),u&&t.setNavigationBarTitle({title:u})})).catch((function(e){t.showToast({title:e,icon:"none"})}))},checkForm:function(e){var n=e.detail.value,i=n.money,a=n.method;i?this.combData(a):t.showToast({title:this.$t("请输入支付金额"),icon:"none"})},checkPrice:function(){var e=this;(0,i.offlineCheckPrice)({pay_price:this.money}).then((function(t){e.payPrice=t.data.pay_price})).catch((function(e){t.showToast({title:e,icon:"none"})}))},combData:function(e){var n=this,a={type:3,pay_type:e,from:"weixinh5",price:this.payPrice||this.money,money:this.money};a.from="routine",this.paying||(this.paying=!0,t.showLoading({title:this.$t("正在确认")}),(0,i.offlineCreate)(a).then((function(e){t.hideLoading(),n.callPay(e)})).catch((function(e){n.paying=!1,t.showToast({title:e,icon:"none"})})))},callPay:function(e){var n=e.data,i=n.status,a=n.result,c=a.orderId,o=a.jsConfig,s="/pages/annex/offline_result/index?site_name="+this.site_name;switch(i){case"ORDER_EXIST":case"EXTEND_ORDER":case"PAY_ERROR":this.paying=!1,this.$util.Tips({title:e.msg},{tab:5,url:s});break;case"SUCCESS":this.paying=!1,this.money="",this.$util.Tips({title:e.msg,icon:"success"},{tab:5,url:s});break;case"WECHAT_PAY":var u=this;t.requestPayment({timeStamp:o.timestamp,nonceStr:o.nonceStr,package:o.package,signType:o.signType,paySign:o.paySign,success:function(t){u.$util.Tips({title:u.$t("支付成功"),icon:"success"},{tab:5,url:"/pages/annex/offline_result/index"})},fail:function(){t.showToast({title:u.$t("取消支付"),icon:"none",success:function(){u.paying=!1}})},complete:function(){u.paying=!1,t.hideLoading()}});break;case"PAY_DEFICIENCY":this.paying=!1,this.$util.Tips({title:e.msg});break;case"WECHAT_H5_PAY":this.paying=!1,t.showToast({title:e.msg,success:function(){location.href=o.mweb_url}});break;case"ALIPAY_PAY":this.paying=!1,t.navigateTo({url:"/pages/users/alipay_invoke/index?id=".concat(c,"&link=").concat(o.qrCode)});break}}}});e.default=o}).call(this,n("543d")["default"])},"63f7":function(t,e,n){"use strict";var i=n("91ac"),a=n.n(i);a.a},"7dab":function(t,e,n){"use strict";n.r(e);var i=n("5b29"),a=n.n(i);for(var c in i)"default"!==c&&function(t){n.d(e,t,(function(){return i[t]}))}(c);e["default"]=a.a},"91ac":function(t,e,n){},"97db":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.$t("支付金额")),i=t.$t("¥"),a=t.payPrice?t.$t("会员优惠价"):null,c=t.payPrice?t.$t("¥"):null,o=t.$t("支付方式"),s=t.yuePay?t.$t("余额支付"):null,u=t.yuePay?t.$t("可用余额"):null,r=t.yuePay?t.$t("¥"):null,l=t.wxpay?t.$t("微信支付"):null,f=t.$t("确认");t.$mp.data=Object.assign({},{$root:{m0:n,m1:i,m2:a,m3:c,m4:o,m5:s,m6:u,m7:r,m8:l,m9:f}})},c=[]},ca1e:function(t,e,n){"use strict";n.r(e);var i=n("97db"),a=n("7dab");for(var c in a)"default"!==c&&function(t){n.d(e,t,(function(){return a[t]}))}(c);n("fc72"),n("63f7");var o,s=n("f0c5"),u=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"70fdc516",null,!1,i["a"],o);e["default"]=u.exports},fc72:function(t,e,n){"use strict";var i=n("578b"),a=n.n(i);a.a}},[["3029","common/runtime","common/vendor"]]]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/annex/offline_pay/index"],{3029:function(t,e,n){"use strict";(function(t){n("d5c5");i(n("66fd"));var e=i(n("ca1e"));function i(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},"43a1":function(t,e,n){},"578b":function(t,e,n){},"5b29":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("a398"),a=n("1118"),c=n("26cb"),o=(getApp(),{data:function(){return{money:"",payPrice:"",payType:"weixin",alipayHtml:"",alipay:!1,wxpay:!1,yuePay:!1,paying:!1,now_money:0,isWeixin:!1,site_name:"",isCommitted:!1}},watch:{money:function(t,e){t&&"number"===typeof t?this.checkPrice():this.payPrice=""}},computed:(0,c.mapGetters)(["isLogin"]),onLoad:function(t){this.isLogin||(0,a.toLogin)()},onShow:function(){this.isLogin&&this.getPayType()},methods:{inputChange:function(t){var e=this;t.target.value=t.target.value.match(/^\d*(.?\d{0,2})/g)[0]||"",this.$nextTick((function(){e.money=t.target.value,e.checkPrice()}))},getPayType:function(){var e=this;(0,i.orderOfflinePayType)().then((function(n){var i=n.data,a=i.ali_pay_status,c=i.pay_weixin_open,o=i.yue_pay_status,s=i.offline_pay_status,u=i.site_name,r=i.now_money;e.alipay="1"===a,e.wxpay=1===c,e.yuePay=1===o,e.now_money=r,e.site_name=u,s||t.showModal({title:e.$t("支付提醒"),content:e.$t("线下支付已关闭,请点击确认按钮返回主页"),showCancel:!1,success:function(){t.switchTab({url:"/pages/index/index"})}}),u&&t.setNavigationBarTitle({title:u})})).catch((function(e){t.showToast({title:e,icon:"none"})}))},checkForm:function(e){var n=e.detail.value,i=n.money,a=n.method;i?this.combData(a):t.showToast({title:this.$t("请输入支付金额"),icon:"none"})},checkPrice:function(){var e=this;(0,i.offlineCheckPrice)({pay_price:this.money}).then((function(t){e.payPrice=t.data.pay_price})).catch((function(e){t.showToast({title:e,icon:"none"})}))},combData:function(e){var n=this,a={type:3,pay_type:e,from:"weixinh5",price:this.payPrice||this.money,money:this.money};a.from="routine",this.paying||(this.paying=!0,t.showLoading({title:this.$t("正在确认")}),(0,i.offlineCreate)(a).then((function(e){t.hideLoading(),n.callPay(e)})).catch((function(e){n.paying=!1,t.showToast({title:e,icon:"none"})})))},callPay:function(e){var n=e.data,i=n.status,a=n.result,c=a.orderId,o=a.jsConfig,s="/pages/annex/offline_result/index?site_name="+this.site_name;switch(i){case"ORDER_EXIST":case"EXTEND_ORDER":case"PAY_ERROR":this.paying=!1,this.$util.Tips({title:e.msg},{tab:5,url:s});break;case"SUCCESS":this.paying=!1,this.money="",this.$util.Tips({title:e.msg,icon:"success"},{tab:5,url:s});break;case"WECHAT_PAY":var u=this,r="";r=t.requestOrderPayment?"requestOrderPayment":"requestPayment",t[r]({timeStamp:o.timestamp,nonceStr:o.nonceStr,package:o.package,signType:o.signType,paySign:o.paySign,success:function(t){u.$util.Tips({title:u.$t("支付成功"),icon:"success"},{tab:5,url:"/pages/annex/offline_result/index"})},fail:function(){t.showToast({title:u.$t("取消支付"),icon:"none",success:function(){u.paying=!1}})},complete:function(){u.paying=!1,t.hideLoading()}});break;case"PAY_DEFICIENCY":this.paying=!1,this.$util.Tips({title:e.msg});break;case"WECHAT_H5_PAY":this.paying=!1,t.showToast({title:e.msg,success:function(){location.href=o.mweb_url}});break;case"ALIPAY_PAY":this.paying=!1,t.navigateTo({url:"/pages/users/alipay_invoke/index?id=".concat(c,"&link=").concat(o.qrCode)});break}}}});e.default=o}).call(this,n("543d")["default"])},"7d55":function(t,e,n){"use strict";var i=n("43a1"),a=n.n(i);a.a},"7dab":function(t,e,n){"use strict";n.r(e);var i=n("5b29"),a=n.n(i);for(var c in i)"default"!==c&&function(t){n.d(e,t,(function(){return i[t]}))}(c);e["default"]=a.a},a8d6:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.$t("支付金额")),i=t.$t("¥"),a=t.payPrice?t.$t("会员优惠价"):null,c=t.payPrice?t.$t("¥"):null,o=t.$t("支付方式"),s=t.yuePay?t.$t("余额支付"):null,u=t.yuePay?t.$t("可用余额"):null,r=t.yuePay?t.$t("¥"):null,l=t.wxpay?t.$t("微信支付"):null,f=t.$t("确认");t.$mp.data=Object.assign({},{$root:{m0:n,m1:i,m2:a,m3:c,m4:o,m5:s,m6:u,m7:r,m8:l,m9:f}})},c=[]},ca1e:function(t,e,n){"use strict";n.r(e);var i=n("a8d6"),a=n("7dab");for(var c in a)"default"!==c&&function(t){n.d(e,t,(function(){return a[t]}))}(c);n("fc72"),n("7d55");var o,s=n("f0c5"),u=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"e15fc1a8",null,!1,i["a"],o);e["default"]=u.exports},fc72:function(t,e,n){"use strict";var i=n("578b"),a=n.n(i);a.a}},[["3029","common/runtime","common/vendor"]]]);
|
||||
@ -1 +1 @@
|
||||
<form data-event-opts="{{[['submit',[['checkForm',['$event']]]]]}}" class="form data-v-70fdc516" bindsubmit="__e"><view class="input-section data-v-70fdc516"><view class="section-hd data-v-70fdc516">{{$root.m0}}</view><view class="section-bd data-v-70fdc516"><view class="input-group data-v-70fdc516">{{''+$root.m1+''}}<input class="input data-v-70fdc516" name="money" type="digit" placeholder="0.00" data-event-opts="{{[['input',[['__set_model',['','money','$event',['number']]],['inputChange',['$event']]]],['blur',[['$forceUpdate']]]]}}" value="{{money}}" bindinput="__e" bindblur="__e"/></view><block wx:if="{{payPrice}}"><view class="discount data-v-70fdc516">{{$root.m2+":"+$root.m3+payPrice}}</view></block></view></view><view class="radio-section data-v-70fdc516"><view class="section-hd data-v-70fdc516">{{$root.m4}}</view><radio-group class="section-bd data-v-70fdc516" name="method"><block wx:if="{{yuePay}}"><label class="item data-v-70fdc516"><text class="iconfont icon-yue data-v-70fdc516"></text><text class="name data-v-70fdc516">{{''+$root.m5+''}}<text class="money data-v-70fdc516">{{$root.m6+":"+$root.m7+(now_money||0)}}</text></text><radio value="yue" checked="{{payType==='yue'}}" class="data-v-70fdc516"></radio></label></block><block wx:if="{{wxpay}}"><label class="item data-v-70fdc516"><text class="iconfont icon-weixinzhifu data-v-70fdc516"></text><text class="name data-v-70fdc516">{{$root.m8}}</text><radio value="weixin" checked="{{payType==='weixin'}}" class="data-v-70fdc516"></radio></label></block></radio-group></view><button class="button data-v-70fdc516" form-type="submit">{{$root.m9}}</button><view class="alipay data-v-70fdc516"><rich-text nodes="{{alipayHtml}}"></rich-text></view></form>
|
||||
<form data-event-opts="{{[['submit',[['checkForm',['$event']]]]]}}" class="form data-v-e15fc1a8" bindsubmit="__e"><view class="input-section data-v-e15fc1a8"><view class="section-hd data-v-e15fc1a8">{{$root.m0}}</view><view class="section-bd data-v-e15fc1a8"><view class="input-group data-v-e15fc1a8">{{''+$root.m1+''}}<input class="input data-v-e15fc1a8" name="money" type="digit" placeholder="0.00" data-event-opts="{{[['input',[['__set_model',['','money','$event',['number']]],['inputChange',['$event']]]],['blur',[['$forceUpdate']]]]}}" value="{{money}}" bindinput="__e" bindblur="__e"/></view><block wx:if="{{payPrice}}"><view class="discount data-v-e15fc1a8">{{$root.m2+":"+$root.m3+payPrice}}</view></block></view></view><view class="radio-section data-v-e15fc1a8"><view class="section-hd data-v-e15fc1a8">{{$root.m4}}</view><radio-group class="section-bd data-v-e15fc1a8" name="method"><block wx:if="{{yuePay}}"><label class="item data-v-e15fc1a8"><text class="iconfont icon-yue data-v-e15fc1a8"></text><text class="name data-v-e15fc1a8">{{''+$root.m5+''}}<text class="money data-v-e15fc1a8">{{$root.m6+":"+$root.m7+(now_money||0)}}</text></text><radio value="yue" checked="{{payType==='yue'}}" class="data-v-e15fc1a8"></radio></label></block><block wx:if="{{wxpay}}"><label class="item data-v-e15fc1a8"><text class="iconfont icon-weixinzhifu data-v-e15fc1a8"></text><text class="name data-v-e15fc1a8">{{$root.m8}}</text><radio value="weixin" checked="{{payType==='weixin'}}" class="data-v-e15fc1a8"></radio></label></block></radio-group></view><button class="button data-v-e15fc1a8" form-type="submit">{{$root.m9}}</button><view class="alipay data-v-e15fc1a8"><rich-text nodes="{{alipayHtml}}"></rich-text></view></form>
|
||||
@ -1 +1 @@
|
||||
page{background-color:#fff}.data-v-70fdc516 uni-radio .uni-radio-input.uni-radio-input-checked{border:1px solid #fdc383!important;background-color:#fdc383!important}.input-section .section-hd.data-v-70fdc516{padding:30rpx;font-size:28rpx;color:#666}.input-section .section-bd.data-v-70fdc516{padding-right:30rpx;padding-left:30rpx}.input-section .input-group.data-v-70fdc516{display:flex;align-items:flex-end;padding:45rpx 20rpx 47rpx;font-size:80rpx;color:#999}.input-section .input.data-v-70fdc516{flex:1;height:110rpx;margin-left:15rpx;font-size:100rpx;color:#282828}.input-section .discount.data-v-70fdc516{padding:27rpx 20rpx;border-top:1rpx solid #eee;font-size:28rpx;color:#e93323}.radio-section.data-v-70fdc516{border-top:20rpx solid #f5f5f5}.radio-section .section-hd.data-v-70fdc516{padding:30rpx;font-size:28rpx;color:#666}.radio-section .section-bd.data-v-70fdc516{padding-left:50rpx}.radio-section .item.data-v-70fdc516{display:flex;align-items:center;padding-top:30rpx;padding-right:30rpx;padding-bottom:30rpx;border-bottom:1rpx solid #f5f5f5}.radio-section .iconfont.data-v-70fdc516{font-size:44rpx}.radio-section .icon-yue.data-v-70fdc516{color:#fe960f}.radio-section .icon-weixinzhifu.data-v-70fdc516{color:#41b035}.radio-section .icon-zhifubao.data-v-70fdc516{color:#099bdf}.radio-section .name.data-v-70fdc516{flex:1;margin-left:30rpx;font-size:30rpx;color:#333}.radio-section .money.data-v-70fdc516{float:right;padding-right:20rpx;font-size:20rpx}.button.data-v-70fdc516{height:86rpx;border-radius:43rpx;margin:114rpx 30rpx 30rpx;background:linear-gradient(90deg,#fee2b7,#fdc383);font-size:30rpx;line-height:86rpx;color:#5d3324}.alipay.data-v-70fdc516{display:none}
|
||||
page{background-color:#fff}.data-v-e15fc1a8 uni-radio .uni-radio-input.uni-radio-input-checked{border:1px solid #fdc383!important;background-color:#fdc383!important}.input-section .section-hd.data-v-e15fc1a8{padding:30rpx;font-size:28rpx;color:#666}.input-section .section-bd.data-v-e15fc1a8{padding-right:30rpx;padding-left:30rpx}.input-section .input-group.data-v-e15fc1a8{display:flex;align-items:flex-end;padding:45rpx 20rpx 47rpx;font-size:80rpx;color:#999}.input-section .input.data-v-e15fc1a8{flex:1;height:110rpx;margin-left:15rpx;font-size:100rpx;color:#282828}.input-section .discount.data-v-e15fc1a8{padding:27rpx 20rpx;border-top:1rpx solid #eee;font-size:28rpx;color:#e93323}.radio-section.data-v-e15fc1a8{border-top:20rpx solid #f5f5f5}.radio-section .section-hd.data-v-e15fc1a8{padding:30rpx;font-size:28rpx;color:#666}.radio-section .section-bd.data-v-e15fc1a8{padding-left:50rpx}.radio-section .item.data-v-e15fc1a8{display:flex;align-items:center;padding-top:30rpx;padding-right:30rpx;padding-bottom:30rpx;border-bottom:1rpx solid #f5f5f5}.radio-section .iconfont.data-v-e15fc1a8{font-size:44rpx}.radio-section .icon-yue.data-v-e15fc1a8{color:#fe960f}.radio-section .icon-weixinzhifu.data-v-e15fc1a8{color:#41b035}.radio-section .icon-zhifubao.data-v-e15fc1a8{color:#099bdf}.radio-section .name.data-v-e15fc1a8{flex:1;margin-left:30rpx;font-size:30rpx;color:#333}.radio-section .money.data-v-e15fc1a8{float:right;padding-right:20rpx;font-size:20rpx}.button.data-v-e15fc1a8{height:86rpx;border-radius:43rpx;margin:114rpx 30rpx 30rpx;background:linear-gradient(90deg,#fee2b7,#fdc383);font-size:30rpx;line-height:86rpx;color:#5d3324}.alipay.data-v-e15fc1a8{display:none}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/visualization/components/swiperBg"],{"1ae6":function(t,e,a){"use strict";var i=a("5568"),n=a.n(i);n.a},"29ec":function(t,e,a){"use strict";a.r(e);var i=a("bfd6"),n=a("6c51");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("1ae6");var s,o=a("f0c5"),u=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],s);e["default"]=u.exports},5568:function(t,e,a){},"6c51":function(t,e,a){"use strict";a.r(e);var i=a("e009"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},bfd6:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=(t._self._c,!t.isIframe||t.imgUrls.length&&t.imageH?null:t.$t("暂无图片,请上传图片"));t.$mp.data=Object.assign({},{$root:{m0:a}})},r=[]},e009:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a("c9cb"),n=t.getSystemInfoSync().statusBarHeight+"px",r=getApp(),s={name:"swiperBg",props:{dataConfig:{type:Object,default:function(){}}},watch:{dataConfig:{immediate:!0,handler:function(e,a){var i=this;e&&(this.imgUrls=e.imgList?e.imgList.list:[],this.isShow=!e.isShow||e.isShow.val,t.getImageInfo({src:this.imgUrls.length?this.imgUrls[0].img:"",success:function(t){t&&t.height>0?i.$set(i,"imageH",t.height/t.width*690):i.$set(i,"imageH",320)},fail:function(t){i.$set(i,"imageH",320)}}))}},imageH:function(t,e){}},data:function(){return{indicatorDots:!1,circular:!0,autoplay:!0,interval:4e3,duration:500,imgUrls:[],name:this.$options.name,isIframe:!1,mt:-55,isShow:!0,imageH:320,swiperCur:0}},created:function(){var e=t.getSystemInfoSync(),a=e.platform;this.statusBarHeight=e.statusBarHeight,this.mt="android"===a?2*parseFloat(n)+170:2*parseFloat(n)+168,this.isIframe=r.globalData.isIframe},mounted:function(){},methods:{goDetail:function(e){(0,i.goPage)().then((function(a){var i=e.info[1].value;i&&(-1!=i.indexOf("http")||(-1==["/pages/goods_cate/goods_cate","/pages/order_addcart/order_addcart","/pages/user/index"].indexOf(i)?t.navigateTo({url:i}):t.reLaunch({url:i})))}))},setDomain:function(t){return t=t?t.toString():"",t.indexOf("https://")>-1?t:t.replace("http://","https://")},swiperChange:function(t){var e=t.detail,a=(e.current,e.source);"autoplay"!==a&&"touch"!==a||(this.swiperCur=t.detail.current)}}};e.default=s}).call(this,a("543d")["default"])}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/visualization/components/swiperBg"],{"1ae6":function(t,e,a){"use strict";var i=a("5568"),n=a.n(i);n.a},"29ec":function(t,e,a){"use strict";a.r(e);var i=a("bfd6"),n=a("6c51");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("1ae6");var s,o=a("f0c5"),u=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],s);e["default"]=u.exports},5568:function(t,e,a){},"6c51":function(t,e,a){"use strict";a.r(e);var i=a("e009d"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},bfd6:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=(t._self._c,!t.isIframe||t.imgUrls.length&&t.imageH?null:t.$t("暂无图片,请上传图片"));t.$mp.data=Object.assign({},{$root:{m0:a}})},r=[]},e009d:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a("c9cb"),n=t.getSystemInfoSync().statusBarHeight+"px",r=getApp(),s={name:"swiperBg",props:{dataConfig:{type:Object,default:function(){}}},watch:{dataConfig:{immediate:!0,handler:function(e,a){var i=this;e&&(this.imgUrls=e.imgList?e.imgList.list:[],this.isShow=!e.isShow||e.isShow.val,t.getImageInfo({src:this.imgUrls.length?this.imgUrls[0].img:"",success:function(t){t&&t.height>0?i.$set(i,"imageH",t.height/t.width*690):i.$set(i,"imageH",320)},fail:function(t){i.$set(i,"imageH",320)}}))}},imageH:function(t,e){}},data:function(){return{indicatorDots:!1,circular:!0,autoplay:!0,interval:4e3,duration:500,imgUrls:[],name:this.$options.name,isIframe:!1,mt:-55,isShow:!0,imageH:320,swiperCur:0}},created:function(){var e=t.getSystemInfoSync(),a=e.platform;this.statusBarHeight=e.statusBarHeight,this.mt="android"===a?2*parseFloat(n)+170:2*parseFloat(n)+168,this.isIframe=r.globalData.isIframe},mounted:function(){},methods:{goDetail:function(e){(0,i.goPage)().then((function(a){var i=e.info[1].value;i&&(-1!=i.indexOf("http")||(-1==["/pages/goods_cate/goods_cate","/pages/order_addcart/order_addcart","/pages/user/index"].indexOf(i)?t.navigateTo({url:i}):t.reLaunch({url:i})))}))},setDomain:function(t){return t=t?t.toString():"",t.indexOf("https://")>-1?t:t.replace("http://","https://")},swiperChange:function(t){var e=t.detail,a=(e.current,e.source);"autoplay"!==a&&"touch"!==a||(this.swiperCur=t.detail.current)}}};e.default=s}).call(this,a("543d")["default"])}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'pages/index/visualization/components/swiperBg-create-component',
|
||||
{
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
<view style="{{(colorStyle)}}" id="pageIndex" class="data-v-41eac8a6"><skeletons vue-id="81eb4e36-1" show="{{showSkeleton}}" loading="chiaroscuro" bgcolor="#FFF" class="data-v-41eac8a6" bind:__l="__l"></skeletons><view class="indexTip data-v-41eac8a6" style="{{('top:'+(navH+50)+'px')}}" hidden="{{iShidden}}"><view class="tip acea-row row-between-wrapper data-v-41eac8a6"><view class="text data-v-41eac8a6">{{$root.m0+"“"}}<image src="/static/images/spot.png" class="data-v-41eac8a6"></image>{{"”"+$root.m1}}</view><view data-event-opts="{{[['tap',[['closeTip',['$event']]]]]}}" class="iconfont icon-guanbi1 data-v-41eac8a6" bindtap="__e"></view></view></view><view class="skeleton data-v-41eac8a6" style="{{'visibility:'+(showSkeleton?'hidden':'visible')+';'}}" id="pageIndexs"><header-serch class="mp-header skeleton data-v-41eac8a6" vue-id="81eb4e36-2" dataConfig="{{headerSerch.default}}" data-event-opts="{{[['tap',[['bindEdit',['headerSerch','default']]]]]}}" bindtap="__e" bind:__l="__l"></header-serch><swiper-bg vue-id="81eb4e36-3" dataConfig="{{swiperBg.default}}" data-event-opts="{{[['tap',[['bindEdit',['swiperBg','default']]]]]}}" bindtap="__e" class="data-v-41eac8a6" bind:__l="__l"></swiper-bg><menus vue-id="81eb4e36-4" dataConfig="{{menus.default}}" data-event-opts="{{[['tap',[['bindEdit',['menus','default']]]]]}}" bindtap="__e" class="data-v-41eac8a6" bind:__l="__l"></menus><news vue-id="81eb4e36-5" dataConfig="{{news.default}}" data-event-opts="{{[['tap',[['bindEdit',['news','default']]]]]}}" bindtap="__e" class="data-v-41eac8a6" bind:__l="__l"></news><activity vue-id="81eb4e36-6" dataConfig="{{activity.default}}" data-event-opts="{{[['tap',[['bindEdit',['activity','default']]]]]}}" bindtap="__e" class="data-v-41eac8a6" bind:__l="__l"></activity><alive vue-id="81eb4e36-7" dataConfig="{{alive.default}}" data-event-opts="{{[['tap',[['bindEdit',['alive','default']]]]]}}" bindtap="__e" class="data-v-41eac8a6" bind:__l="__l"></alive><coupon vue-id="81eb4e36-8" dataConfig="{{coupon.default}}" data-event-opts="{{[['tap',[['bindEdit',['coupon','default']]]]]}}" bindtap="__e" class="data-v-41eac8a6" bind:__l="__l"></coupon><scroll-box vue-id="81eb4e36-9" dataConfig="{{scrollBox.default}}" data-event-opts="{{[['tap',[['bindEdit',['scrollBox','default']]]]]}}" bindtap="__e" class="data-v-41eac8a6" bind:__l="__l"></scroll-box><recommend vue-id="81eb4e36-10" dataConfig="{{goodList.aa}}" data-event-opts="{{[['tap',[['bindEdit',['goodList','aa']]]]]}}" bindtap="__e" class="data-v-41eac8a6" bind:__l="__l"></recommend><popular vue-id="81eb4e36-11" dataConfig="{{goodList.bb}}" data-event-opts="{{[['tap',[['bindEdit',['goodList','bb']]]]]}}" bindtap="__e" class="data-v-41eac8a6" bind:__l="__l"></popular><m-banner vue-id="81eb4e36-12" dataConfig="{{swiperBg.aa}}" data-event-opts="{{[['tap',[['bindEdit',['swiperBg','aa']]]]]}}" bindtap="__e" class="data-v-41eac8a6" bind:__l="__l"></m-banner><new-goods vue-id="81eb4e36-13" dataConfig="{{goodList.cc}}" data-event-opts="{{[['tap',[['bindEdit',['goodList','cc']]]]]}}" bindtap="__e" class="data-v-41eac8a6" bind:__l="__l"></new-goods><promotion vue-id="81eb4e36-14" dataConfig="{{goodList.dd}}" data-event-opts="{{[['tap',[['bindEdit',['goodList','dd']]]]]}}" bindtap="__e" class="data-v-41eac8a6" bind:__l="__l"></promotion><tab-nav class="sticky-box data-v-41eac8a6" style="{{('top:'+isTop+'px;')}}" vue-id="81eb4e36-15" dataConfig="{{tabNav.default}}" data-event-opts="{{[['^bindSortId',[['bindSortId']]],['^bindHeight',[['bindHeighta']]],['tap',[['bindEdit',['tabNav','default']]]]]}}" bind:bindSortId="__e" bind:bindHeight="__e" bindtap="__e" bind:__l="__l"></tab-nav><block wx:if="{{!isIframe&&tabNav.default&&tabNav.default.isShow.val}}"><index-goods vue-id="81eb4e36-16" dataLists="{{goodLists}}" data-event-opts="{{[['tap',[['bindEdit',['List']]]]]}}" bindtap="__e" class="data-v-41eac8a6" bind:__l="__l"></index-goods></block><loading class="loading-sty data-v-41eac8a6" vue-id="81eb4e36-17" loaded="{{loaded}}" loading="{{loading}}" bind:__l="__l"></loading><block wx:if="{{!isIframe&&tabNav.default&&tabNav.default.isShow.val&&goodLists.length==0&&!loading}}"><view class="data-v-41eac8a6"><view class="emptyBox data-v-41eac8a6"><image src="{{imgHost+'/statics/images/no-thing.png'}}" class="data-v-41eac8a6"></image><view class="tips data-v-41eac8a6">{{$root.m2}}</view></view></view></block></view><tab-bar vue-id="81eb4e36-18" dataConfig="{{tabBar.default}}" pagePath="/pages/index/index" data-event-opts="{{[['tap',[['bindEdit',['tabBar','default']]]]]}}" bindtap="__e" class="data-v-41eac8a6" bind:__l="__l"></tab-bar><view class="uni-p-b-98 data-v-41eac8a6"></view><coupon-window style="position:relative;z-index:10000;" vue-id="81eb4e36-19" window="{{isCouponShow}}" couponImage="{{couponObj.image}}" couponList="{{couponObj.list}}" data-event-opts="{{[['^onColse',[['couponClose']]]]}}" bind:onColse="__e" class="data-v-41eac8a6" bind:__l="__l"></coupon-window></view>
|
||||
<view style="{{(colorStyle)}}" id="pageIndex" class="data-v-66e3e542"><skeletons vue-id="81eb4e36-1" show="{{showSkeleton}}" loading="chiaroscuro" bgcolor="#FFF" class="data-v-66e3e542" bind:__l="__l"></skeletons><view class="indexTip data-v-66e3e542" style="{{('top:'+(navH+50)+'px')}}" hidden="{{iShidden}}"><view class="tip acea-row row-between-wrapper data-v-66e3e542"><view class="text data-v-66e3e542">{{$root.m0+"“"}}<image src="/static/images/spot.png" class="data-v-66e3e542"></image>{{"”"+$root.m1}}</view><view data-event-opts="{{[['tap',[['closeTip',['$event']]]]]}}" class="iconfont icon-guanbi1 data-v-66e3e542" bindtap="__e"></view></view></view><view class="skeleton data-v-66e3e542" style="{{'visibility:'+(showSkeleton?'hidden':'visible')+';'}}" id="pageIndexs"><header-serch class="mp-header skeleton data-v-66e3e542" vue-id="81eb4e36-2" dataConfig="{{headerSerch.default}}" data-event-opts="{{[['tap',[['bindEdit',['headerSerch','default']]]]]}}" bindtap="__e" bind:__l="__l"></header-serch><swiper-bg vue-id="81eb4e36-3" dataConfig="{{swiperBg.default}}" data-event-opts="{{[['tap',[['bindEdit',['swiperBg','default']]]]]}}" bindtap="__e" class="data-v-66e3e542" bind:__l="__l"></swiper-bg><menus vue-id="81eb4e36-4" dataConfig="{{menus.default}}" data-event-opts="{{[['tap',[['bindEdit',['menus','default']]]]]}}" bindtap="__e" class="data-v-66e3e542" bind:__l="__l"></menus><news vue-id="81eb4e36-5" dataConfig="{{news.default}}" data-event-opts="{{[['tap',[['bindEdit',['news','default']]]]]}}" bindtap="__e" class="data-v-66e3e542" bind:__l="__l"></news><activity vue-id="81eb4e36-6" dataConfig="{{activity.default}}" data-event-opts="{{[['tap',[['bindEdit',['activity','default']]]]]}}" bindtap="__e" class="data-v-66e3e542" bind:__l="__l"></activity><alive vue-id="81eb4e36-7" dataConfig="{{alive.default}}" data-event-opts="{{[['tap',[['bindEdit',['alive','default']]]]]}}" bindtap="__e" class="data-v-66e3e542" bind:__l="__l"></alive><coupon vue-id="81eb4e36-8" dataConfig="{{coupon.default}}" data-event-opts="{{[['tap',[['bindEdit',['coupon','default']]]]]}}" bindtap="__e" class="data-v-66e3e542" bind:__l="__l"></coupon><scroll-box vue-id="81eb4e36-9" dataConfig="{{scrollBox.default}}" data-event-opts="{{[['tap',[['bindEdit',['scrollBox','default']]]]]}}" bindtap="__e" class="data-v-66e3e542" bind:__l="__l"></scroll-box><recommend vue-id="81eb4e36-10" dataConfig="{{goodList.aa}}" data-event-opts="{{[['tap',[['bindEdit',['goodList','aa']]]]]}}" bindtap="__e" class="data-v-66e3e542" bind:__l="__l"></recommend><popular vue-id="81eb4e36-11" dataConfig="{{goodList.bb}}" data-event-opts="{{[['tap',[['bindEdit',['goodList','bb']]]]]}}" bindtap="__e" class="data-v-66e3e542" bind:__l="__l"></popular><m-banner vue-id="81eb4e36-12" dataConfig="{{swiperBg.aa}}" data-event-opts="{{[['tap',[['bindEdit',['swiperBg','aa']]]]]}}" bindtap="__e" class="data-v-66e3e542" bind:__l="__l"></m-banner><new-goods vue-id="81eb4e36-13" dataConfig="{{goodList.cc}}" data-event-opts="{{[['tap',[['bindEdit',['goodList','cc']]]]]}}" bindtap="__e" class="data-v-66e3e542" bind:__l="__l"></new-goods><promotion vue-id="81eb4e36-14" dataConfig="{{goodList.dd}}" data-event-opts="{{[['tap',[['bindEdit',['goodList','dd']]]]]}}" bindtap="__e" class="data-v-66e3e542" bind:__l="__l"></promotion><tab-nav class="sticky-box data-v-66e3e542" style="{{('top:'+isTop+'px;')}}" vue-id="81eb4e36-15" dataConfig="{{tabNav.default}}" data-event-opts="{{[['^bindSortId',[['bindSortId']]],['^bindHeight',[['bindHeighta']]],['tap',[['bindEdit',['tabNav','default']]]]]}}" bind:bindSortId="__e" bind:bindHeight="__e" bindtap="__e" bind:__l="__l"></tab-nav><block wx:if="{{!isIframe&&tabNav.default&&tabNav.default.isShow.val}}"><index-goods vue-id="81eb4e36-16" dataLists="{{goodLists}}" data-event-opts="{{[['tap',[['bindEdit',['List']]]]]}}" bindtap="__e" class="data-v-66e3e542" bind:__l="__l"></index-goods></block><loading class="loading-sty data-v-66e3e542" vue-id="81eb4e36-17" loaded="{{loaded}}" loading="{{loading}}" bind:__l="__l"></loading><block wx:if="{{!isIframe&&tabNav.default&&tabNav.default.isShow.val&&goodLists.length==0&&!loading}}"><view class="data-v-66e3e542"><view class="emptyBox data-v-66e3e542"><image src="{{imgHost+'/statics/images/no-thing.png'}}" class="data-v-66e3e542"></image><view class="tips data-v-66e3e542">{{$root.m2}}</view></view></view></block></view><tab-bar vue-id="81eb4e36-18" dataConfig="{{tabBar.default}}" pagePath="/pages/index/index" data-event-opts="{{[['tap',[['bindEdit',['tabBar','default']]]]]}}" bindtap="__e" class="data-v-66e3e542" bind:__l="__l"></tab-bar><view class="uni-p-b-98 data-v-66e3e542"></view><coupon-window style="position:relative;z-index:10000;" vue-id="81eb4e36-19" window="{{isCouponShow}}" couponImage="{{couponObj.image}}" couponList="{{couponObj.list}}" data-event-opts="{{[['^onColse',[['couponClose']]]]}}" bind:onColse="__e" class="data-v-66e3e542" bind:__l="__l"></coupon-window></view>
|
||||
@ -1,3 +1,3 @@
|
||||
.bac-col.data-v-41eac8a6{width:100%;height:300rpx;position:absolute;background-image:linear-gradient(135deg,#f97794 10%,#623aa2);top:0;background:linear-gradient(90deg,#f62c2c,#f96e29)}.swiperCon.data-v-41eac8a6{margin:20rpx 0!important}.swiperCon.data-v-41eac8a6 .swiperBg{margin:20rpx 0!important}.swiperCon.data-v-41eac8a6 .swiper swiper,
|
||||
.swiperCon.data-v-41eac8a6 .swiper .swiper-item,
|
||||
.swiperCon.data-v-41eac8a6 .swiper image{height:190rpx!important}.site-config.data-v-41eac8a6{margin:40rpx 0;font-size:24rpx;text-align:center;color:#666}.site-config.fixed.data-v-41eac8a6{position:fixed;bottom:69px;left:0;width:100%}.indexTip.data-v-41eac8a6{position:fixed;right:42rpx;z-index:10000}.indexTip .tip.data-v-41eac8a6{width:400rpx;border-radius:6rpx;background-color:#fff;padding:15rpx 22rpx;position:relative}.indexTip .tip.data-v-41eac8a6::before{content:"";width:0;height:0;border-left:15rpx solid transparent;border-right:15rpx solid transparent;border-bottom:17rpx solid #fff;position:absolute;top:-14rpx;right:95rpx}.indexTip .text.data-v-41eac8a6{font-size:22rpx;color:#333;width:320rpx}.indexTip .text image.data-v-41eac8a6{width:30rpx;height:16rpx;display:inline-block}.indexTip .iconfont.data-v-41eac8a6{color:#cdcdcd;font-size:32rpx}.privacy-wrapper.data-v-41eac8a6{z-index:9999;position:fixed;left:0;top:0;width:100%;height:100%;background:#7f7f7f}.privacy-wrapper .privacy-box.data-v-41eac8a6{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:560rpx;padding:50rpx 45rpx 0;background:#fff;border-radius:20rpx}.privacy-wrapper .privacy-box .title.data-v-41eac8a6{text-align:center;font-size:32rpx;text-align:center;color:#333;font-weight:700}.privacy-wrapper .privacy-box .content.data-v-41eac8a6{margin-top:20rpx;line-height:1.5;font-size:26rpx;color:#666}.privacy-wrapper .privacy-box .content navigator.data-v-41eac8a6{display:inline-block;color:#e93323}.privacy-wrapper .privacy-box .btn-box.data-v-41eac8a6{margin-top:40rpx;text-align:center;font-size:30rpx}.privacy-wrapper .privacy-box .btn-box .btn-item.data-v-41eac8a6{height:82rpx;line-height:82rpx;background:linear-gradient(90deg,#f67a38,#f11b09);color:#fff;border-radius:41rpx}.privacy-wrapper .privacy-box .btn-box .btn.data-v-41eac8a6{padding:30rpx 0}.sort-product.data-v-41eac8a6{margin:20rpx}.emptyBox.data-v-41eac8a6{text-align:center;padding:150rpx 0}.emptyBox .tips.data-v-41eac8a6{color:#aaa;font-size:26rpx}.emptyBox image.data-v-41eac8a6{width:414rpx;height:304rpx}.product-list.data-v-41eac8a6{display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:0rpx;padding:0 20rpx}.product-list .product-item.data-v-41eac8a6{position:relative;width:324rpx;background:#fff;border-radius:10rpx;margin-bottom:20rpx}.product-list .product-item image.data-v-41eac8a6{width:100%;border-radius:10rpx 10rpx 0 0}.product-list .product-item .info.data-v-41eac8a6{padding:14rpx 16rpx}.product-list .product-item .info .title.data-v-41eac8a6{font-size:28rpx}.product-list .product-item .info .price-box.data-v-41eac8a6{font-size:34rpx;font-weight:700;margin-top:8px;color:#fc4141}.product-list .product-item .info .price-box text.data-v-41eac8a6{font-size:26rpx}.sticky-box.data-v-41eac8a6{display:flex;position:-webkit-sticky;overflow-x:scroll;position:sticky;z-index:998;flex-direction:row;margin:0;background:#f5f5f5;padding:24rpx 0 24rpx 0}
|
||||
.bac-col.data-v-66e3e542{width:100%;height:300rpx;position:absolute;background-image:linear-gradient(135deg,#f97794 10%,#623aa2);top:0;background:linear-gradient(90deg,#f62c2c,#f96e29)}.swiperCon.data-v-66e3e542{margin:20rpx 0!important}.swiperCon.data-v-66e3e542 .swiperBg{margin:20rpx 0!important}.swiperCon.data-v-66e3e542 .swiper swiper,
|
||||
.swiperCon.data-v-66e3e542 .swiper .swiper-item,
|
||||
.swiperCon.data-v-66e3e542 .swiper image{height:190rpx!important}.site-config.data-v-66e3e542{margin:40rpx 0;font-size:24rpx;text-align:center;color:#666}.site-config.fixed.data-v-66e3e542{position:fixed;bottom:69px;left:0;width:100%}.indexTip.data-v-66e3e542{position:fixed;right:42rpx;z-index:10000}.indexTip .tip.data-v-66e3e542{width:400rpx;border-radius:6rpx;background-color:#fff;padding:15rpx 22rpx;position:relative}.indexTip .tip.data-v-66e3e542::before{content:"";width:0;height:0;border-left:15rpx solid transparent;border-right:15rpx solid transparent;border-bottom:17rpx solid #fff;position:absolute;top:-14rpx;right:95rpx}.indexTip .text.data-v-66e3e542{font-size:22rpx;color:#333;width:320rpx}.indexTip .text image.data-v-66e3e542{width:30rpx;height:16rpx;display:inline-block}.indexTip .iconfont.data-v-66e3e542{color:#cdcdcd;font-size:32rpx}.privacy-wrapper.data-v-66e3e542{z-index:9999;position:fixed;left:0;top:0;width:100%;height:100%;background:#7f7f7f}.privacy-wrapper .privacy-box.data-v-66e3e542{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:560rpx;padding:50rpx 45rpx 0;background:#fff;border-radius:20rpx}.privacy-wrapper .privacy-box .title.data-v-66e3e542{text-align:center;font-size:32rpx;text-align:center;color:#333;font-weight:700}.privacy-wrapper .privacy-box .content.data-v-66e3e542{margin-top:20rpx;line-height:1.5;font-size:26rpx;color:#666}.privacy-wrapper .privacy-box .content navigator.data-v-66e3e542{display:inline-block;color:#e93323}.privacy-wrapper .privacy-box .btn-box.data-v-66e3e542{margin-top:40rpx;text-align:center;font-size:30rpx}.privacy-wrapper .privacy-box .btn-box .btn-item.data-v-66e3e542{height:82rpx;line-height:82rpx;background:linear-gradient(90deg,#f67a38,#f11b09);color:#fff;border-radius:41rpx}.privacy-wrapper .privacy-box .btn-box .btn.data-v-66e3e542{padding:30rpx 0}.sort-product.data-v-66e3e542{margin:20rpx}.emptyBox.data-v-66e3e542{text-align:center;padding:150rpx 0}.emptyBox .tips.data-v-66e3e542{color:#aaa;font-size:26rpx}.emptyBox image.data-v-66e3e542{width:414rpx;height:304rpx}.product-list.data-v-66e3e542{display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:0rpx;padding:0 20rpx}.product-list .product-item.data-v-66e3e542{position:relative;width:324rpx;background:#fff;border-radius:10rpx;margin-bottom:20rpx}.product-list .product-item image.data-v-66e3e542{width:100%;border-radius:10rpx 10rpx 0 0}.product-list .product-item .info.data-v-66e3e542{padding:14rpx 16rpx}.product-list .product-item .info .title.data-v-66e3e542{font-size:28rpx}.product-list .product-item .info .price-box.data-v-66e3e542{font-size:34rpx;font-weight:700;margin-top:8px;color:#fc4141}.product-list .product-item .info .price-box text.data-v-66e3e542{font-size:26rpx}.sticky-box.data-v-66e3e542{display:flex;position:-webkit-sticky;overflow-x:scroll;position:sticky;z-index:998;flex-direction:row;margin:0;background:#f5f5f5;padding:24rpx 0 24rpx 0}
|
||||
File diff suppressed because one or more lines are too long
@ -2,6 +2,7 @@
|
||||
"navigationBarTitleText": "消息中心",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {
|
||||
"home": "/components/home/index"
|
||||
"home": "/components/home/index",
|
||||
"tui-drawer": "/components/tuiDrawer/index"
|
||||
}
|
||||
}
|
||||
@ -1 +1 @@
|
||||
<view data-event-opts="{{[['touchstart',[['start',['$event']]]],['touchend',[['end',['$event']]]]]}}" class="main data-v-df4db99a" bindtouchstart="__e" bindtouchend="__e"><view class="top-tabs data-v-df4db99a" style="{{(colorStyle)}}"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeTabs',[index]]]]]}}" class="{{['tabs','data-v-df4db99a',(type===index)?'btborder':'']}}" bindtap="__e">{{''+item.m0+''}}</view></block></view><block wx:if="{{list.length&&type===1}}"><view class="list data-v-df4db99a"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goChat',['$0'],[[['list','',index,'to_uid']]]]]]]}}" class="item data-v-df4db99a" bindtap="__e"><view class="image-wrap data-v-df4db99a"><image class="image data-v-df4db99a" src="{{item.$orig.avatar}}"></image></view><view class="text-wrap data-v-df4db99a"><view class="name-wrap data-v-df4db99a"><view class="name data-v-df4db99a">{{item.m1}}</view><view class="data-v-df4db99a">{{item.$orig._update_time}}</view></view><view class="info-wrap data-v-df4db99a"><block wx:if="{{item.$orig.message_type===1}}"><view class="info data-v-df4db99a"><rich-text nodes="{{item.$orig.message}}"></rich-text></view></block><block wx:if="{{item.$orig.message_type===2}}"><view class="info data-v-df4db99a"><rich-text nodes="{{item.$orig.message}}"></rich-text></view></block><block wx:if="{{item.$orig.message_type===3}}"><view class="info data-v-df4db99a">{{item.m2}}</view></block><block wx:if="{{item.$orig.message_type===4}}"><view class="info data-v-df4db99a">{{item.m3}}</view></block><block wx:if="{{item.$orig.message_type===5}}"><view class="info data-v-df4db99a">{{item.m4}}</view></block><block wx:if="{{item.$orig.message_type===6}}"><view class="info data-v-df4db99a">{{item.m5}}</view></block><block wx:if="{{item.$orig.mssage_num}}"><view class="num data-v-df4db99a">{{item.$orig.mssage_num}}</view></block></view></view></view></block></view></block><block wx:if="{{list.length&&type===0}}"><view class="list data-v-df4db99a"><block wx:for="{{$root.l2}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',['$0'],[[['list','',index,'id']]]]]]]}}" class="item data-v-df4db99a" bindtap="__e"><view class="image-wrap data-v-df4db99a"><block wx:if="{{item.$orig.type===1}}"><image class="image data-v-df4db99a" src="../static/admin-msg.png"></image></block><block wx:else><image class="image data-v-df4db99a" src="../static/user-msg.png"></image></block><block wx:if="{{!item.$orig.look}}"><view class="no-look data-v-df4db99a"></view></block></view><view class="text-wrap data-v-df4db99a"><view class="name-wrap data-v-df4db99a"><view class="name data-v-df4db99a">{{item.m6}}</view><view class="data-v-df4db99a">{{item.$orig.add_time}}</view></view><view class="info-wrap data-v-df4db99a"><view class="info data-v-df4db99a"><rich-text nodes="{{item.$orig.content}}"></rich-text></view></view></view></view></block></view></block><block wx:else><block wx:if="{{finished&&!list.length}}"><view class="empty-wrap data-v-df4db99a"><view class="image-wrap data-v-df4db99a"><image class="image data-v-df4db99a" src="{{imgHost+'/statics/images/noMessage.png'}}"></image></view><view class="data-v-df4db99a">{{$root.m7}}</view></view></block></block></view>
|
||||
<view class="main data-v-64ba5969"><view class="top-tabs data-v-64ba5969" style="{{(colorStyle)}}"><view class="tabs data-v-64ba5969"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeTabs',[index]]]]]}}" class="{{['item','data-v-64ba5969',(type===index)?'btborder':'']}}" bindtap="__e">{{''+item.m0+''}}</view></block></view><view class="read-all data-v-64ba5969">全部已读</view></view><block wx:if="{{list.length&&type===1}}"><view class="list data-v-64ba5969"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goChat',['$0'],[[['list','',index,'to_uid']]]]]]]}}" class="item data-v-64ba5969" bindtap="__e"><view class="image-wrap data-v-64ba5969"><image class="image data-v-64ba5969" src="{{item.$orig.avatar}}"></image></view><view class="text-wrap data-v-64ba5969"><view class="name-wrap data-v-64ba5969"><view class="name data-v-64ba5969">{{item.m1}}</view><view class="data-v-64ba5969">{{item.$orig._update_time}}</view></view><view class="info-wrap data-v-64ba5969"><block wx:if="{{item.$orig.message_type===1}}"><view class="info data-v-64ba5969"><rich-text nodes="{{item.$orig.message}}"></rich-text></view></block><block wx:if="{{item.$orig.message_type===2}}"><view class="info data-v-64ba5969"><rich-text nodes="{{item.$orig.message}}"></rich-text></view></block><block wx:if="{{item.$orig.message_type===3}}"><view class="info data-v-64ba5969">{{item.m2}}</view></block><block wx:if="{{item.$orig.message_type===4}}"><view class="info data-v-64ba5969">{{item.m3}}</view></block><block wx:if="{{item.$orig.message_type===5}}"><view class="info data-v-64ba5969">{{item.m4}}</view></block><block wx:if="{{item.$orig.message_type===6}}"><view class="info data-v-64ba5969">{{item.m5}}</view></block><block wx:if="{{item.$orig.mssage_num}}"><view class="num data-v-64ba5969">{{item.$orig.mssage_num}}</view></block></view></view></view></block></view></block><block wx:if="{{list.length&&type===0}}"><view class="list data-v-64ba5969"><block wx:for="{{$root.l2}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="data-v-64ba5969"><tui-drawer vue-id="{{'22321454-1-'+index}}" actions="{{!item.$orig.look?actions:actionsIsLook}}" params="{{item.a0}}" data-event-opts="{{[['^click',[['e0']]]]}}" data-event-params="{{({item:item.$orig})}}" bind:click="__e" class="data-v-64ba5969" bind:__l="__l" vue-slots="{{['content']}}"><view data-event-opts="{{[['tap',[['goDetail',['$0'],[[['list','',index,'id']]]]]]]}}" class="item data-v-64ba5969" bindtap="__e" slot="content"><view class="image-wrap data-v-64ba5969"><block wx:if="{{item.$orig.type===1}}"><image class="image data-v-64ba5969" src="../static/admin-msg.png"></image></block><block wx:else><image class="image data-v-64ba5969" src="../static/user-msg.png"></image></block><block wx:if="{{!item.$orig.look}}"><view class="no-look data-v-64ba5969"></view></block></view><view class="text-wrap data-v-64ba5969"><view class="name-wrap data-v-64ba5969"><view class="name data-v-64ba5969">{{item.m6}}</view><view class="data-v-64ba5969">{{item.$orig.add_time}}</view></view><view class="info-wrap data-v-64ba5969"><view class="info data-v-64ba5969"><rich-text nodes="{{item.$orig.content}}"></rich-text></view></view></view></view></tui-drawer></view></block></view></block><block wx:else><block wx:if="{{finished&&!list.length}}"><view class="empty-wrap data-v-64ba5969"><view class="image-wrap data-v-64ba5969"><image class="image data-v-64ba5969" src="{{imgHost+'/statics/images/noMessage.png'}}"></image></view><view class="data-v-64ba5969">{{$root.m7}}</view></view></block></block></view>
|
||||
@ -1 +1 @@
|
||||
.list.data-v-df4db99a{overflow:hidden;padding-top:100rpx}.list .item.data-v-df4db99a{background-color:#fff;display:flex;align-items:center;padding:30rpx 30rpx;margin:10rpx 20rpx;border-radius:12rpx;box-shadow:0 0 1px 0 rgba(235,214,214,.75);-webkit-box-shadow:0 0 1px 0 rgba(235,214,214,.75);-moz-box-shadow:0 0 1px 0 rgba(235,214,214,.75)}.list .item ~ .item.data-v-df4db99a{border-top:1rpx solid #f5f5f5}.list .item .image.data-v-df4db99a{border-radius:50%}.list .image-wrap.data-v-df4db99a{width:88rpx;height:88rpx;border-radius:50%;position:relative}.list .image-wrap .no-look.data-v-df4db99a{position:absolute;width:18rpx;height:18rpx;border-radius:50%;background-color:#1abb1d;top:0rpx;right:0rpx;z-index:999}.list .image.data-v-df4db99a{display:block;width:100%;height:100%}.list .text-wrap.data-v-df4db99a{flex:1;min-width:0;margin-left:20rpx}.list .name-wrap.data-v-df4db99a{display:flex;align-items:center;font-size:20rpx;color:#ccc}.list .name.data-v-df4db99a{flex:1;min-width:0;margin-right:20rpx;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:28rpx;color:#333}.list .info-wrap.data-v-df4db99a{display:flex;align-items:center;margin-top:18rpx}.list .info.data-v-df4db99a{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:24rpx;color:#999}.list .num.data-v-df4db99a{min-width:32rpx;height:32rpx;border-radius:16rpx;margin-left:20rpx;background-color:#e93323;font-size:20rpx;line-height:32rpx;text-align:center;color:#fff}.empty-wrap.data-v-df4db99a{font-size:26rpx;text-align:center;color:#999}.empty-wrap .image-wrap.data-v-df4db99a{width:414rpx;height:436rpx;padding-top:100rpx;margin:0rpx auto 0}.empty-wrap .image.data-v-df4db99a{display:block;width:100%;height:100%}.main.data-v-df4db99a{position:relative;min-height:100vh}.top-tabs.data-v-df4db99a{position:fixed;width:100%;display:flex;align-items:center;background-color:#fff;font-size:28rpx;border-radius:8rpx;padding:20rpx 0;margin-bottom:10rpx;z-index:1000;transition:all .3s}.tabs.data-v-df4db99a{display:flex;align-items:center;padding:4rpx 15rpx;margin:0 20rpx;-webkit-animation:Gradient-data-v-df4db99a .3s;animation:Gradient-data-v-df4db99a .3s;border-radius:30rpx;transition:all .4s}.btborder.data-v-df4db99a{color:#fff;background-color:var(--view-theme);border-radius:30rpx}@-webkit-keyframes Gradient-data-v-df4db99a{0%{background-color:pink}50%{background-position:100% 50%}100%{background-position:0 50%}}@keyframes Gradient-data-v-df4db99a{0%{background-position:0 50%}50%{background-position:100% 50%}100%{background-position:0 50%}}
|
||||
.list.data-v-64ba5969{overflow:hidden;padding-top:100rpx}.list .item.data-v-64ba5969{background-color:#fff;display:flex;align-items:center;padding:30rpx 30rpx;margin:10rpx 20rpx;border-radius:12rpx;box-shadow:0 0 1px 0 rgba(235,214,214,.75);-webkit-box-shadow:0 0 1px 0 rgba(235,214,214,.75);-moz-box-shadow:0 0 1px 0 rgba(235,214,214,.75)}.list .item ~ .item.data-v-64ba5969{border-top:1rpx solid #f5f5f5}.list .item .image.data-v-64ba5969{border-radius:50%}.list .image-wrap.data-v-64ba5969{width:88rpx;height:88rpx;border-radius:50%;position:relative}.list .image-wrap .no-look.data-v-64ba5969{position:absolute;width:18rpx;height:18rpx;border-radius:50%;background-color:#1abb1d;top:0rpx;right:0rpx;z-index:999}.list .image.data-v-64ba5969{display:block;width:100%;height:100%}.list .text-wrap.data-v-64ba5969{flex:1;min-width:0;margin-left:20rpx}.list .name-wrap.data-v-64ba5969{display:flex;align-items:center;font-size:20rpx;color:#ccc}.list .name.data-v-64ba5969{flex:1;min-width:0;margin-right:20rpx;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:28rpx;color:#333}.list .info-wrap.data-v-64ba5969{display:flex;align-items:center;margin-top:18rpx}.list .info.data-v-64ba5969{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:24rpx;color:#999}.list .num.data-v-64ba5969{min-width:32rpx;height:32rpx;border-radius:16rpx;margin-left:20rpx;background-color:#e93323;font-size:20rpx;line-height:32rpx;text-align:center;color:#fff}.empty-wrap.data-v-64ba5969{font-size:26rpx;text-align:center;color:#999}.empty-wrap .image-wrap.data-v-64ba5969{width:414rpx;height:436rpx;padding-top:100rpx;margin:0rpx auto 0}.empty-wrap .image.data-v-64ba5969{display:block;width:100%;height:100%}.main.data-v-64ba5969{position:relative;min-height:100vh}.top-tabs.data-v-64ba5969{position:fixed;width:100%;display:flex;align-items:center;background-color:#fff;font-size:28rpx;border-radius:8rpx;padding:20rpx 0;margin-bottom:10rpx;z-index:1000;transition:all .3s;justify-content:space-between}.top-tabs .read-all.data-v-64ba5969{margin-right:24rpx;font-size:24rpx}.tabs.data-v-64ba5969{display:flex}.item.data-v-64ba5969{display:flex;align-items:center;padding:4rpx 15rpx;margin:0 20rpx;-webkit-animation:Gradient-data-v-64ba5969 .3s;animation:Gradient-data-v-64ba5969 .3s;border-radius:30rpx;transition:all .4s}.btborder.data-v-64ba5969{color:#fff;background-color:var(--view-theme);border-radius:30rpx}@-webkit-keyframes Gradient-data-v-64ba5969{0%{background-color:pink}50%{background-position:100% 50%}100%{background-position:0 50%}}@keyframes Gradient-data-v-64ba5969{0%{background-position:0 50%}50%{background-position:100% 50%}100%{background-position:0 50%}}
|
||||
@ -1 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/promoter-list/index"],{"0cbf":function(t,e,o){"use strict";var n=o("d7de"),r=o.n(n);r.a},1902:function(t,e,o){"use strict";o.r(e);var n=o("392b"),r=o.n(n);for(var s in n)"default"!==s&&function(t){o.d(e,t,(function(){return n[t]}))}(s);e["default"]=r.a},"392b":function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o("cff9"),r=o("1118"),s=o("26cb"),i=u(o("cf74"));function u(t){return t&&t.__esModule?t:{default:t}}var a=function(){o.e("components/Authorize").then(function(){return resolve(o("4a3a"))}.bind(null,o)).catch(o.oe)},l=function(){Promise.all([o.e("common/vendor"),o.e("components/home/index")]).then(function(){return resolve(o("4f25"))}.bind(null,o)).catch(o.oe)},c={components:{authorize:a,home:l},mixins:[i.default],data:function(){return{total:0,totalLevel:0,teamCount:0,page:1,limit:20,keyword:"",sort:"",grade:0,status:!1,recordList:[],isAuto:!1,isShowAuth:!1,brokerage_level:0}},computed:(0,s.mapGetters)(["isLogin"]),onLoad:function(){this.isLogin?this.userSpreadNewList():(0,r.toLogin)()},onShow:function(){this.is_show&&this.userSpreadNewList()},onHide:function(){this.is_show=!0},methods:{onLoadFun:function(t){this.userSpreadNewList()},authColse:function(t){this.isShowAuth=t},setSort:function(t){var e=this;e.sort=t,e.page=1,e.limit=20,e.status=!1,e.$set(e,"recordList",[]),e.userSpreadNewList()},submitForm:function(){this.page=1,this.limit=20,this.status=!1,this.$set(this,"recordList",[]),this.userSpreadNewList()},setType:function(t){this.grade!=t&&(this.grade=t,this.page=1,this.limit=20,this.keyword="",this.sort="",this.status=!1,this.$set(this,"recordList",[]),this.userSpreadNewList())},userSpreadNewList:function(){var t=this,e=t.page,o=t.limit,r=t.status,s=t.keyword,i=t.sort,u=t.grade,a=t.recordList,l=[];1!=r&&(0,n.spreadPeople)({page:e,limit:o,keyword:s,grade:u,sort:i}).then((function(n){var r=n.data.list.length,s=n.data.list;l=a.concat(s),t.total=n.data.total,t.totalLevel=n.data.totalLevel,t.teamCount=n.data.count,t.status=o>r,t.page=e+1,t.$set(t,"recordList",l),t.brokerage_level=n.data.brokerage_level}))}},onReachBottom:function(){this.userSpreadNewList()}};e.default=c},4355:function(t,e,o){"use strict";(function(t){o("d5c5");n(o("66fd"));var e=n(o("7660"));function n(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=o,t(e.default)}).call(this,o("543d")["createPage"])},7660:function(t,e,o){"use strict";o.r(e);var n=o("7a5c"),r=o("1902");for(var s in r)"default"!==s&&function(t){o.d(e,t,(function(){return r[t]}))}(s);o("0cbf");var i,u=o("f0c5"),a=Object(u["a"])(r["default"],n["b"],n["c"],!1,null,"10534aef",null,!1,n["a"],i);e["default"]=a.exports},"7a5c":function(t,e,o){"use strict";var n;o.d(e,"b",(function(){return r})),o.d(e,"c",(function(){return s})),o.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,o=(t._self._c,t.$t("推广人数")),n=t.$t("人"),r=2==t.brokerage_level?t.$t("一级"):null,s=2==t.brokerage_level?t.$t("二级"):null,i=t.$t("点击搜索会员名称"),u="childCount DESC"==t.sort?t.$t("团队排序"):null,a="childCount DESC"!=t.sort&&"childCount ASC"==t.sort?t.$t("团队排序"):null,l="childCount DESC"!=t.sort&&"childCount ASC"!=t.sort?t.$t("团队排序"):null,c="numberCount DESC"==t.sort?t.$t("金额排序"):null,d="numberCount DESC"!=t.sort&&"numberCount ASC"==t.sort?t.$t("金额排序"):null,f="numberCount DESC"!=t.sort&&"numberCount ASC"!=t.sort?t.$t("金额排序"):null,h="orderCount DESC"==t.sort?t.$t("订单排序"):null,m="orderCount DESC"!=t.sort&&"orderCount ASC"==t.sort?t.$t("订单排序"):null,p="orderCount DESC"!=t.sort&&"orderCount ASC"!=t.sort?t.$t("订单排序"):null,C=t.$t("加入时间"),v=t.$t("人"),b=t.$t("单"),S=t.$t("元");t.$mp.data=Object.assign({},{$root:{m0:o,m1:n,m2:r,m3:s,m4:i,m5:u,m6:a,m7:l,m8:c,m9:d,m10:f,m11:h,m12:m,m13:p,m14:C,m15:v,m16:b,m17:S}})},s=[]},d7de:function(t,e,o){}},[["4355","common/runtime","common/vendor"]]]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/promoter-list/index"],{"0cbfc":function(t,e,o){"use strict";var n=o("d7de"),r=o.n(n);r.a},1902:function(t,e,o){"use strict";o.r(e);var n=o("392b"),r=o.n(n);for(var s in n)"default"!==s&&function(t){o.d(e,t,(function(){return n[t]}))}(s);e["default"]=r.a},"392b":function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o("cff9"),r=o("1118"),s=o("26cb"),i=u(o("cf74"));function u(t){return t&&t.__esModule?t:{default:t}}var a=function(){o.e("components/Authorize").then(function(){return resolve(o("4a3a"))}.bind(null,o)).catch(o.oe)},l=function(){Promise.all([o.e("common/vendor"),o.e("components/home/index")]).then(function(){return resolve(o("4f25"))}.bind(null,o)).catch(o.oe)},c={components:{authorize:a,home:l},mixins:[i.default],data:function(){return{total:0,totalLevel:0,teamCount:0,page:1,limit:20,keyword:"",sort:"",grade:0,status:!1,recordList:[],isAuto:!1,isShowAuth:!1,brokerage_level:0}},computed:(0,s.mapGetters)(["isLogin"]),onLoad:function(){this.isLogin?this.userSpreadNewList():(0,r.toLogin)()},onShow:function(){this.is_show&&this.userSpreadNewList()},onHide:function(){this.is_show=!0},methods:{onLoadFun:function(t){this.userSpreadNewList()},authColse:function(t){this.isShowAuth=t},setSort:function(t){var e=this;e.sort=t,e.page=1,e.limit=20,e.status=!1,e.$set(e,"recordList",[]),e.userSpreadNewList()},submitForm:function(){this.page=1,this.limit=20,this.status=!1,this.$set(this,"recordList",[]),this.userSpreadNewList()},setType:function(t){this.grade!=t&&(this.grade=t,this.page=1,this.limit=20,this.keyword="",this.sort="",this.status=!1,this.$set(this,"recordList",[]),this.userSpreadNewList())},userSpreadNewList:function(){var t=this,e=t.page,o=t.limit,r=t.status,s=t.keyword,i=t.sort,u=t.grade,a=t.recordList,l=[];1!=r&&(0,n.spreadPeople)({page:e,limit:o,keyword:s,grade:u,sort:i}).then((function(n){var r=n.data.list.length,s=n.data.list;l=a.concat(s),t.total=n.data.total,t.totalLevel=n.data.totalLevel,t.teamCount=n.data.count,t.status=o>r,t.page=e+1,t.$set(t,"recordList",l),t.brokerage_level=n.data.brokerage_level}))}},onReachBottom:function(){this.userSpreadNewList()}};e.default=c},4355:function(t,e,o){"use strict";(function(t){o("d5c5");n(o("66fd"));var e=n(o("7660"));function n(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=o,t(e.default)}).call(this,o("543d")["createPage"])},7660:function(t,e,o){"use strict";o.r(e);var n=o("7a5c"),r=o("1902");for(var s in r)"default"!==s&&function(t){o.d(e,t,(function(){return r[t]}))}(s);o("0cbfc");var i,u=o("f0c5"),a=Object(u["a"])(r["default"],n["b"],n["c"],!1,null,"10534aef",null,!1,n["a"],i);e["default"]=a.exports},"7a5c":function(t,e,o){"use strict";var n;o.d(e,"b",(function(){return r})),o.d(e,"c",(function(){return s})),o.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,o=(t._self._c,t.$t("推广人数")),n=t.$t("人"),r=2==t.brokerage_level?t.$t("一级"):null,s=2==t.brokerage_level?t.$t("二级"):null,i=t.$t("点击搜索会员名称"),u="childCount DESC"==t.sort?t.$t("团队排序"):null,a="childCount DESC"!=t.sort&&"childCount ASC"==t.sort?t.$t("团队排序"):null,l="childCount DESC"!=t.sort&&"childCount ASC"!=t.sort?t.$t("团队排序"):null,c="numberCount DESC"==t.sort?t.$t("金额排序"):null,d="numberCount DESC"!=t.sort&&"numberCount ASC"==t.sort?t.$t("金额排序"):null,f="numberCount DESC"!=t.sort&&"numberCount ASC"!=t.sort?t.$t("金额排序"):null,h="orderCount DESC"==t.sort?t.$t("订单排序"):null,m="orderCount DESC"!=t.sort&&"orderCount ASC"==t.sort?t.$t("订单排序"):null,p="orderCount DESC"!=t.sort&&"orderCount ASC"!=t.sort?t.$t("订单排序"):null,C=t.$t("加入时间"),v=t.$t("人"),b=t.$t("单"),S=t.$t("元");t.$mp.data=Object.assign({},{$root:{m0:o,m1:n,m2:r,m3:s,m4:i,m5:u,m6:a,m7:l,m8:c,m9:d,m10:f,m11:h,m12:m,m13:p,m14:C,m15:v,m16:b,m17:S}})},s=[]},d7de:function(t,e,o){}},[["4355","common/runtime","common/vendor"]]]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1396
template/admin/package-lock.json
generated
1396
template/admin/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -134,7 +134,7 @@ export default {
|
||||
minWidth: 100,
|
||||
},
|
||||
{
|
||||
title: '客服名称',
|
||||
title: '核销员名称',
|
||||
key: 'staff_name',
|
||||
minWidth: 100,
|
||||
},
|
||||
|
||||
@ -154,8 +154,13 @@
|
||||
});
|
||||
|
||||
// #ifdef MP
|
||||
|
||||
uni.requestPayment({
|
||||
let mp_pay_name=''
|
||||
if(uni.requestOrderPayment){
|
||||
mp_pay_name='requestOrderPayment'
|
||||
}else{
|
||||
mp_pay_name='requestPayment'
|
||||
}
|
||||
uni[mp_pay_name]({
|
||||
timeStamp: jsConfig.timestamp,
|
||||
nonceStr: jsConfig.nonceStr,
|
||||
package: jsConfig.package,
|
||||
@ -184,7 +189,7 @@
|
||||
},
|
||||
complete: function(e) {
|
||||
uni.hideLoading();
|
||||
if (e.errMsg == 'requestPayment:cancel') return that.$util
|
||||
if (e.errMsg == 'requestPayment:cancel' || e.errMsg == 'requestOrderPayment:cancel') return that.$util
|
||||
.Tips({
|
||||
title: that.$t(`取消支付`)
|
||||
}, () => {
|
||||
|
||||
324
template/uni-app/components/tuiDrawer/index.vue
Normal file
324
template/uni-app/components/tuiDrawer/index.vue
Normal file
@ -0,0 +1,324 @@
|
||||
<template>
|
||||
<view class="tui-swipeout-wrap" :style="{ backgroundColor: backgroundColor }">
|
||||
<view class="tui-swipeout-item" :class="[isShowBtn ? 'swipe-action-show' : '']"
|
||||
:style="{ transform: 'translate(' + position.pageX + 'px,0)' }">
|
||||
<view class="tui-swipeout-content" @touchstart="handlerTouchstart" @touchmove="handlerTouchmove"
|
||||
@touchend="handlerTouchend" @mousedown="handlerTouchstart" @mousemove="handlerTouchmove"
|
||||
@mouseup="handlerTouchend">
|
||||
<slot name="content"></slot>
|
||||
</view>
|
||||
<view class="tui-swipeout-button-right-group" v-if="actions.length > 0" @touchend.stop="loop"
|
||||
:style="colorStyle">
|
||||
<view class="tui-swipeout-button-right-item" v-for="(item, index) in actions" :key="index"
|
||||
:style="{ backgroundColor: index == 0 ? 'var(--view-theme)' : '#ccc', color: index == 1 ? '#f2f2f2' : '#f2f2f2', width: item.width + 'px' }"
|
||||
:data-index="index" @tap="handlerButton">
|
||||
<image :src="item.icon" v-if="item.icon"
|
||||
:style="{ width: px(item.imgWidth), height: px(item.imgHeight) }"></image>
|
||||
<text :style="{ fontSize: px(item.fontsize) }">{{ item.name }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<!--actions长度设置为0,可直接传按钮进来-->
|
||||
<view class="tui-swipeout-button-right-group" @touchend.stop="loop" @tap="handlerParentButton"
|
||||
v-if="actions.length === 0" :style="{ width: operateWidth + 'px', right: '-' + operateWidth + 'px' }">
|
||||
<slot name="button"></slot>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="isShowBtn && showMask" class="swipe-action_mask" @tap.stop="closeButtonGroup"
|
||||
@touchstart.stop.prevent="closeButtonGroup" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import colors from '@/mixins/color';
|
||||
export default {
|
||||
name: 'tuiSwipeAction',
|
||||
emits: ['click'],
|
||||
mixins: [colors],
|
||||
props: {
|
||||
// name: '删除',
|
||||
// color: '#fff',
|
||||
// fontsize: 32,//单位rpx
|
||||
// width: 80, //单位px
|
||||
// icon: 'like.png',//此处为图片地址
|
||||
// background: '#ed3f14'
|
||||
actions: {
|
||||
type: Array,
|
||||
default () {
|
||||
return [];
|
||||
}
|
||||
},
|
||||
//点击按钮时是否自动关闭
|
||||
closable: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
//设为false,可以滑动多行不关闭菜单
|
||||
showMask: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
operateWidth: {
|
||||
type: Number,
|
||||
default: 80
|
||||
},
|
||||
params: {
|
||||
type: Object,
|
||||
default () {
|
||||
return {};
|
||||
}
|
||||
},
|
||||
//禁止滑动
|
||||
forbid: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
//手动开关
|
||||
open: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
//背景色
|
||||
backgroundColor: {
|
||||
type: String,
|
||||
default: '#fff'
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
actions(newValue, oldValue) {
|
||||
this.updateButtonSize();
|
||||
},
|
||||
open(newValue) {
|
||||
this.manualSwitch(newValue);
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
//start position
|
||||
tStart: {
|
||||
pageX: 0,
|
||||
pageY: 0
|
||||
},
|
||||
//限制滑动距离
|
||||
limitMove: 0,
|
||||
//move position
|
||||
position: {
|
||||
pageX: 0,
|
||||
pageY: 0
|
||||
},
|
||||
isShowBtn: false,
|
||||
move: false
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.updateButtonSize();
|
||||
},
|
||||
methods: {
|
||||
swipeDirection(x1, x2, y1, y2) {
|
||||
return Math.abs(x1 - x2) >= Math.abs(y1 - y2) ? (x1 - x2 > 0 ? 'Left' : 'Right') : y1 - y2 > 0 ? 'Up' :
|
||||
'Down';
|
||||
},
|
||||
//阻止事件冒泡
|
||||
loop() {},
|
||||
updateButtonSize() {
|
||||
const actions = this.actions;
|
||||
if (actions.length > 0) {
|
||||
const query = uni.createSelectorQuery().in(this);
|
||||
let limitMovePosition = 0;
|
||||
actions.forEach(item => {
|
||||
limitMovePosition += item.width || 0;
|
||||
});
|
||||
this.limitMove = limitMovePosition;
|
||||
} else {
|
||||
this.limitMove = this.operateWidth;
|
||||
}
|
||||
},
|
||||
handlerTouchstart(event) {
|
||||
if (this.forbid) return;
|
||||
let touches = event.touches
|
||||
if (touches && touches.length > 1) return;
|
||||
this.move = true;
|
||||
touches = touches ? event.touches[0] : {};
|
||||
if (!touches || (touches.pageX === undefined && touches.pageY === undefined)) {
|
||||
touches = {
|
||||
pageX: event.pageX,
|
||||
pageY: event.pageY
|
||||
};
|
||||
}
|
||||
const tStart = this.tStart;
|
||||
if (touches) {
|
||||
for (let i in tStart) {
|
||||
if (touches[i]) {
|
||||
tStart[i] = touches[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
swipper(touches) {
|
||||
const start = this.tStart;
|
||||
const spacing = {
|
||||
pageX: touches.pageX - start.pageX,
|
||||
pageY: touches.pageY - start.pageY
|
||||
};
|
||||
if (this.limitMove < Math.abs(spacing.pageX)) {
|
||||
spacing.pageX = -this.limitMove;
|
||||
}
|
||||
this.position = spacing;
|
||||
},
|
||||
handlerTouchmove(event) {
|
||||
if (this.forbid || !this.move) return;
|
||||
const start = this.tStart;
|
||||
let touches = event.touches ? event.touches[0] : {};
|
||||
if (!touches || (touches.pageX === undefined && touches.pageY === undefined)) {
|
||||
touches = {
|
||||
pageX: event.pageX,
|
||||
pageY: event.pageY
|
||||
};
|
||||
}
|
||||
if (touches) {
|
||||
const direction = this.swipeDirection(start.pageX, touches.pageX, start.pageY, touches.pageY);
|
||||
if (direction === 'Left' && Math.abs(this.position.pageX) !== this.limitMove) {
|
||||
this.swipper(touches);
|
||||
}
|
||||
}
|
||||
},
|
||||
handlerTouchend(event) {
|
||||
if (this.forbid || !this.move) return;
|
||||
this.move = false;
|
||||
const start = this.tStart;
|
||||
let touches = event.changedTouches ? event.changedTouches[0] : {};
|
||||
if (!touches || (touches.pageX === undefined && touches.pageY === undefined)) {
|
||||
touches = {
|
||||
pageX: event.pageX,
|
||||
pageY: event.pageY
|
||||
};
|
||||
}
|
||||
if (touches) {
|
||||
const direction = this.swipeDirection(start.pageX, touches.pageX, start.pageY, touches.pageY);
|
||||
const spacing = {
|
||||
pageX: touches.pageX - start.pageX,
|
||||
pageY: touches.pageY - start.pageY
|
||||
};
|
||||
if (Math.abs(spacing.pageX) >= 40 && direction === 'Left') {
|
||||
spacing.pageX = spacing.pageX < 0 ? -this.limitMove : this.limitMove;
|
||||
this.isShowBtn = true;
|
||||
} else {
|
||||
spacing.pageX = 0;
|
||||
}
|
||||
if (spacing.pageX == 0) {
|
||||
this.isShowBtn = false;
|
||||
}
|
||||
this.position = spacing;
|
||||
|
||||
}
|
||||
},
|
||||
handlerButton(event) {
|
||||
if (this.closable) {
|
||||
this.closeButtonGroup();
|
||||
}
|
||||
const dataset = event.currentTarget.dataset;
|
||||
this.$emit('click', {
|
||||
index: Number(dataset.index),
|
||||
item: this.params
|
||||
});
|
||||
},
|
||||
closeButtonGroup() {
|
||||
this.position = {
|
||||
pageX: 0,
|
||||
pageY: 0
|
||||
};
|
||||
this.isShowBtn = false;
|
||||
},
|
||||
//控制自定义按钮菜单
|
||||
handlerParentButton(event) {
|
||||
if (this.closable) {
|
||||
this.closeButtonGroup();
|
||||
}
|
||||
},
|
||||
manualSwitch(isOpen) {
|
||||
let x = 0;
|
||||
if (isOpen) {
|
||||
if (this.actions.length === 0) {
|
||||
x = this.operateWidth;
|
||||
} else {
|
||||
let width = 0;
|
||||
this.actions.forEach(item => {
|
||||
width += item.width;
|
||||
});
|
||||
x = width;
|
||||
}
|
||||
}
|
||||
this.position = {
|
||||
pageX: -x,
|
||||
pageY: 0
|
||||
};
|
||||
},
|
||||
px(num) {
|
||||
return uni.upx2px(num) + 'px';
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.tui-swipeout-wrap {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
/* margin-bottom: 24rpx; */
|
||||
|
||||
}
|
||||
|
||||
|
||||
.swipe-action-show {
|
||||
position: relative;
|
||||
z-index: 998;
|
||||
}
|
||||
|
||||
.tui-swipeout-item {
|
||||
width: 100%;
|
||||
/* padding: 15px 20px; */
|
||||
box-sizing: border-box;
|
||||
transition: transform 0.2s ease;
|
||||
font-size: 14px;
|
||||
/* cursor: pointer; */
|
||||
}
|
||||
|
||||
/* .tui-swipeout-item :active {
|
||||
background-color: #fff !important;
|
||||
} */
|
||||
|
||||
.tui-swipeout-content {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.tui-swipeout-button-right-group {
|
||||
position: absolute;
|
||||
right: -100%;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.tui-swipeout-button-right-item {
|
||||
height: 100%;
|
||||
float: left;
|
||||
white-space: nowrap;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.swipe-action_mask {
|
||||
display: block;
|
||||
opacity: 0;
|
||||
position: fixed;
|
||||
z-index: 997;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
@ -249,7 +249,13 @@
|
||||
case 'WECHAT_PAY':
|
||||
// #ifdef MP
|
||||
let that = this;
|
||||
uni.requestPayment({
|
||||
let mp_pay_name=''
|
||||
if(uni.requestOrderPayment){
|
||||
mp_pay_name='requestOrderPayment'
|
||||
}else{
|
||||
mp_pay_name='requestPayment'
|
||||
}
|
||||
uni[mp_pay_name]({
|
||||
timeStamp: jsConfig.timestamp,
|
||||
nonceStr: jsConfig.nonceStr,
|
||||
package: jsConfig.package,
|
||||
|
||||
@ -503,7 +503,13 @@
|
||||
break;
|
||||
case 'WECHAT_PAY':
|
||||
// #ifdef MP
|
||||
uni.requestPayment({
|
||||
let mp_pay_name=''
|
||||
if(uni.requestOrderPayment){
|
||||
mp_pay_name='requestOrderPayment'
|
||||
}else{
|
||||
mp_pay_name='requestPayment'
|
||||
}
|
||||
uni[mp_pay_name]({
|
||||
timeStamp: jsConfig.timestamp,
|
||||
nonceStr: jsConfig.nonceStr,
|
||||
package: jsConfig.package,
|
||||
|
||||
@ -427,7 +427,7 @@
|
||||
url: 1
|
||||
});
|
||||
this.couponId = options.couponId || 0;
|
||||
this.noCoupon = options.noCoupon || 0;
|
||||
this.noCoupon = Number(options.noCoupon) || 0;
|
||||
this.pinkId = options.pinkId ? parseInt(options.pinkId) : 0;
|
||||
this.addressId = options.addressId || 0;
|
||||
this.cartId = options.cartId;
|
||||
@ -497,6 +497,7 @@
|
||||
that.is_shipping = false;
|
||||
that.shippingType = 1;
|
||||
this.getConfirm();
|
||||
this.getList();
|
||||
}
|
||||
}
|
||||
}).catch(err => {
|
||||
@ -672,6 +673,7 @@
|
||||
success: (res) => {
|
||||
uni.setStorageSync('user_latitude', res.latitude);
|
||||
uni.setStorageSync('user_longitude', res.longitude);
|
||||
this.getList()
|
||||
},
|
||||
complete: () => {
|
||||
this.getList()
|
||||
@ -972,7 +974,13 @@
|
||||
that.toPay = true;
|
||||
// #ifdef MP
|
||||
/* that.toPay = true; */
|
||||
uni.requestPayment({
|
||||
let mp_pay_name=''
|
||||
if(uni.requestOrderPayment){
|
||||
mp_pay_name='requestOrderPayment'
|
||||
}else{
|
||||
mp_pay_name='requestPayment'
|
||||
}
|
||||
uni[mp_pay_name]({
|
||||
timeStamp: jsConfig.timestamp,
|
||||
nonceStr: jsConfig.nonceStr,
|
||||
package: jsConfig.package,
|
||||
@ -1009,7 +1017,7 @@
|
||||
complete: function(e) {
|
||||
uni.hideLoading();
|
||||
//关闭当前页面跳转至订单状态
|
||||
if (res.errMsg == 'requestPayment:cancel') return that.$util
|
||||
if (res.errMsg == 'requestPayment:cancel' || e.errMsg == 'requestOrderPayment:cancel') return that.$util
|
||||
.Tips({
|
||||
title: that.$t(`取消支付`)
|
||||
}, {
|
||||
|
||||
@ -54,6 +54,9 @@
|
||||
<view v-else-if="item._status._type == 1 && item.shipping_type == 1" class="font-color">{{$t(`待发货`)}}
|
||||
<text v-if="item.refund.length">,{{item.is_all_refund?$t(`退款中`):$t(`部分退款中`)}}</text>
|
||||
</view>
|
||||
<view v-else-if="item._status._type == 1 && item.shipping_type == 2" class="font-color">{{$t(`待核销`)}}
|
||||
<text v-if="item.refund.length">,{{item.is_all_refund?$t(`退款中`):$t(`部分退款中`)}}</text>
|
||||
</view>
|
||||
<view v-else-if="item._status._type == 2" class="font-color">{{$t(`待收货`)}}
|
||||
<text v-if="item.refund.length">,{{item.is_all_refund?$t(`退款中`):$t(`部分退款中`)}}</text>
|
||||
</view>
|
||||
|
||||
@ -85,7 +85,7 @@
|
||||
<view class="" v-if="goodList.length == 0 && loaded">
|
||||
<view class="emptyBox">
|
||||
<image :src="imgHost + '/statics/images/no-thing.png'"></image>
|
||||
<view class="tips">{{$t(`no_product_see`)}}</view>
|
||||
<view class="tips">{{$t(`暂无商品,去看点别的吧`)}}</view>
|
||||
</view>
|
||||
<recommend :hostProduct="hostProduct"></recommend>
|
||||
</view>
|
||||
|
||||
@ -83,7 +83,7 @@
|
||||
">
|
||||
<view class='emptyBox'>
|
||||
<image :src="imgHost + '/statics/images/no-thing.png'"></image>
|
||||
<view class="tips">{{$t(`no_product_see`)}}</view>
|
||||
<view class="tips">{{$t(`暂无商品,去看点别的吧`)}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -1,447 +1,506 @@
|
||||
<template>
|
||||
<view class="main" @touchstart="start" @touchend="end">
|
||||
<view class="top-tabs" :style="colorStyle">
|
||||
<view class="tabs" :class="{btborder:type === index}" v-for="(item,index) in tabsList" :key="index"
|
||||
@tap="changeTabs(index)">
|
||||
{{$t(item.name)}}
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="list.length && type ===1" class="list">
|
||||
<view v-for="(item, index) in list" :key="index" class="item" @click="goChat(item.to_uid)">
|
||||
<view class="image-wrap">
|
||||
<image class="image" :src="item.avatar"></image>
|
||||
</view>
|
||||
<view class="text-wrap">
|
||||
<view class="name-wrap">
|
||||
<view class="name">{{ $t(item.nickname) }}</view>
|
||||
<view>{{ item._update_time }}</view>
|
||||
</view>
|
||||
<view class="info-wrap">
|
||||
<view v-if="item.message_type === 1" class="info" v-html="item.message"></view>
|
||||
<view v-if="item.message_type === 2" class="info" v-html="item.message"></view>
|
||||
<view v-if="item.message_type === 3" class="info">{{$t(`[图片]`)}}</view>
|
||||
<view v-if="item.message_type === 4" class="info">{{$t(`[语音]`)}}</view>
|
||||
<view v-if="item.message_type === 5" class="info">{{$t(`[商品]`)}}</view>
|
||||
<view v-if="item.message_type === 6" class="info">{{$t(`[订单]`)}}</view>
|
||||
<view class="num" v-if="item.mssage_num">{{ item.mssage_num }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="list" v-if="list.length && type === 0">
|
||||
<view v-for="(item, index) in list" :key="index" class="item" @click="goDetail(item.id)">
|
||||
<view class="image-wrap">
|
||||
<image v-if="item.type === 1" class="image" src="../static/admin-msg.png"></image>
|
||||
<image v-else class="image" src="../static/user-msg.png"></image>
|
||||
<view class="no-look" v-if="!item.look"></view>
|
||||
</view>
|
||||
<view class="text-wrap">
|
||||
<view class="name-wrap">
|
||||
<view class="name">{{ $t(item.title) || '--' }}</view>
|
||||
<view>{{ item.add_time }}</view>
|
||||
</view>
|
||||
<view class="info-wrap">
|
||||
<view class="info" v-html="item.content"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-else-if="finished && !list.length" class="empty-wrap">
|
||||
<view class="image-wrap">
|
||||
<image class="image" :src="imgHost + '/statics/images/noMessage.png'"></image>
|
||||
</view>
|
||||
<view>{{$t(`亲、暂无消息记录哟!`)}}</view>
|
||||
</view>
|
||||
<!-- #ifndef MP -->
|
||||
<home></home>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
serviceRecord,
|
||||
messageSystem
|
||||
} from '@/api/user.js';
|
||||
import colors from '@/mixins/color.js';
|
||||
import home from '@/components/home';
|
||||
import {HTTP_REQUEST_URL} from '@/config/app';
|
||||
export default {
|
||||
mixins: [colors],
|
||||
components: {
|
||||
home
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
imgHost:HTTP_REQUEST_URL,
|
||||
list: [],
|
||||
page: 1,
|
||||
type: 0,
|
||||
limit: 20,
|
||||
loading: false,
|
||||
finished: false,
|
||||
tabsList: [{
|
||||
key: 0,
|
||||
name: '站内消息'
|
||||
}, {
|
||||
key: 1,
|
||||
name: '客服消息'
|
||||
}],
|
||||
startData: {
|
||||
clientX: 0,
|
||||
clientY: 0
|
||||
}
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
this.page = 1
|
||||
this.list = []
|
||||
console.log(this.type)
|
||||
this.changeTabs(this.type)
|
||||
},
|
||||
onReachBottom() {
|
||||
if (this.type === 1) {
|
||||
this.getList()
|
||||
} else {
|
||||
this.messageSystem()
|
||||
}
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
console.log('refresh');
|
||||
this.page = 1
|
||||
this.finished = false
|
||||
this.list = []
|
||||
if (this.type === 1) {
|
||||
this.getList()
|
||||
} else {
|
||||
this.messageSystem()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
start(e) {
|
||||
this.startData.clientX = e.changedTouches[0].clientX;
|
||||
this.startData.clientY = e.changedTouches[0].clientY;
|
||||
},
|
||||
end(e) {
|
||||
// console.log(e)
|
||||
const subX = e.changedTouches[0].clientX - this.startData.clientX;
|
||||
const subY = e.changedTouches[0].clientY - this.startData.clientY;
|
||||
if (subY > 50 || subY < -50) {
|
||||
console.log('上下滑')
|
||||
} else {
|
||||
if (subX > 50) {
|
||||
console.log('右滑')
|
||||
if (this.type == 1) {
|
||||
this.type = 0
|
||||
this.changeTabs(this.type)
|
||||
}
|
||||
} else if (subX < -50) {
|
||||
if (this.type == 0) {
|
||||
this.type = 1
|
||||
this.changeTabs(this.type)
|
||||
}
|
||||
console.log('左滑')
|
||||
} else {
|
||||
console.log('无效')
|
||||
}
|
||||
}
|
||||
},
|
||||
changeTabs(index) {
|
||||
this.type = index
|
||||
this.page = 1
|
||||
this.limit = 20
|
||||
this.list = []
|
||||
this.finished = false
|
||||
if (index === 1) {
|
||||
this.getList()
|
||||
} else {
|
||||
this.messageSystem()
|
||||
}
|
||||
},
|
||||
// 站内信
|
||||
messageSystem() {
|
||||
if (this.loading || this.finished) {
|
||||
return;
|
||||
}
|
||||
this.loading = true;
|
||||
uni.showLoading({
|
||||
title: this.$t(`加载中`)
|
||||
});
|
||||
messageSystem({
|
||||
page: this.page,
|
||||
limit: this.limit
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res)
|
||||
let data = res.data;
|
||||
uni.hideLoading();
|
||||
this.loading = false;
|
||||
this.list = this.list.concat(data.list);
|
||||
this.finished = data.list.length < this.limit;
|
||||
this.page += 1;
|
||||
uni.stopPullDownRefresh();
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err)
|
||||
uni.showToast({
|
||||
title: err.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 客服list
|
||||
getList() {
|
||||
if (this.loading || this.finished) {
|
||||
return;
|
||||
}
|
||||
this.loading = true;
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
});
|
||||
serviceRecord({
|
||||
page: this.page,
|
||||
limit: this.limit
|
||||
})
|
||||
.then(res => {
|
||||
uni.stopPullDownRefresh();
|
||||
let data = res.data;
|
||||
uni.hideLoading();
|
||||
this.loading = false;
|
||||
data.forEach(item => {
|
||||
if (item.message_type === 1) {
|
||||
item.message = this.replace_em(item.message);
|
||||
}
|
||||
if (item.message_type === 2) {
|
||||
item.message = this.replace_em(item.message);
|
||||
}
|
||||
});
|
||||
this.list = this.list.concat(data);
|
||||
this.finished = data.length < this.limit;
|
||||
this.page += 1;
|
||||
})
|
||||
.catch(err => {
|
||||
uni.showToast({
|
||||
title: err.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
replace_em(str) {
|
||||
str = str.replace(/\[em-([a-z_]*)\]/g, "<span class='em em-$1'/></span>");
|
||||
return str;
|
||||
},
|
||||
goChat(id) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/extension/customer_list/chat?to_uid=' + id + '&type=1'
|
||||
})
|
||||
},
|
||||
goDetail(id) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/users/message_center/messageDetail?id=' + id,
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.list {
|
||||
// background-color: #fff;
|
||||
overflow: hidden;
|
||||
padding-top: 100rpx;
|
||||
|
||||
.item {
|
||||
background-color: #fff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
// height: 130rpx;
|
||||
padding: 30rpx 30rpx;
|
||||
margin: 10rpx 20rpx;
|
||||
border-radius: 12rpx;
|
||||
box-shadow: 0px 0px 1px 0px rgba(235, 214, 214, 0.75);
|
||||
-webkit-box-shadow: 0px 0px 1px 0px rgba(235, 214, 214, 0.75);
|
||||
-moz-box-shadow: 0px 0px 1px 0px rgba(235, 214, 214, 0.75);
|
||||
|
||||
~.item {
|
||||
border-top: 1rpx solid #f5f5f5;
|
||||
}
|
||||
|
||||
.image {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.image-wrap {
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
border-radius: 50%;
|
||||
position: relative;
|
||||
|
||||
.no-look {
|
||||
position: absolute;
|
||||
width: 18rpx;
|
||||
height: 18rpx;
|
||||
border-radius: 50%;
|
||||
background-color: #1ABB1D;
|
||||
top: 0rpx;
|
||||
right: 0rpx;
|
||||
z-index: 999;
|
||||
}
|
||||
}
|
||||
|
||||
.image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.text-wrap {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
|
||||
.name-wrap {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 20rpx;
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
.name {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin-right: 20rpx;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.info-wrap {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 18rpx;
|
||||
}
|
||||
|
||||
.info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.num {
|
||||
min-width: 32rpx;
|
||||
height: 32rpx;
|
||||
border-radius: 16rpx;
|
||||
margin-left: 20rpx;
|
||||
background-color: #e93323;
|
||||
font-size: 20rpx;
|
||||
line-height: 32rpx;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.empty-wrap {
|
||||
font-size: 26rpx;
|
||||
text-align: center;
|
||||
color: #999;
|
||||
|
||||
.image-wrap {
|
||||
width: 414rpx;
|
||||
height: 436rpx;
|
||||
padding-top: 100rpx;
|
||||
margin: 0rpx auto 0;
|
||||
}
|
||||
|
||||
.image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.main {
|
||||
position: relative;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.top-tabs {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background-color: #fff;
|
||||
font-size: 28rpx;
|
||||
border-radius: 8rpx;
|
||||
padding: 20rpx 0;
|
||||
margin-bottom: 10rpx;
|
||||
z-index: 1000;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.tabs {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 4rpx 15rpx;
|
||||
margin: 0 20rpx;
|
||||
animation: Gradient 0.3s;
|
||||
border-radius: 30rpx;
|
||||
transition: all 0.4s;
|
||||
}
|
||||
|
||||
.btborder {
|
||||
color: #fff;
|
||||
background-color: var(--view-theme);
|
||||
border-radius: 30rpx;
|
||||
}
|
||||
|
||||
@-webkit-keyframes Gradient {
|
||||
0% {
|
||||
background-color: pink;
|
||||
}
|
||||
|
||||
50% {
|
||||
background-position: 100% 50%
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: 0% 50%
|
||||
}
|
||||
}
|
||||
|
||||
@-moz-keyframes Gradient {
|
||||
0% {
|
||||
background-position: 0% 50%
|
||||
}
|
||||
|
||||
50% {
|
||||
background-position: 100% 50%
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: 0% 50%
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes Gradient {
|
||||
0% {
|
||||
background-position: 0% 50%
|
||||
}
|
||||
|
||||
50% {
|
||||
background-position: 100% 50%
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: 0% 50%
|
||||
}
|
||||
}
|
||||
<template>
|
||||
<view class="main">
|
||||
<view class="top-tabs" :style="colorStyle">
|
||||
<view class="tabs">
|
||||
<view class="item" :class="{btborder:type === index}" v-for="(item,index) in tabsList" :key="index"
|
||||
@tap="changeTabs(index)">
|
||||
{{$t(item.name)}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="read-all">
|
||||
全部已读
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="list.length && type ===1" class="list">
|
||||
<view v-for="(item, index) in list" :key="index" class="item" @click="goChat(item.to_uid)">
|
||||
<view class="image-wrap">
|
||||
<image class="image" :src="item.avatar"></image>
|
||||
</view>
|
||||
<view class="text-wrap">
|
||||
<view class="name-wrap">
|
||||
<view class="name">{{ $t(item.nickname) }}</view>
|
||||
<view>{{ item._update_time }}</view>
|
||||
</view>
|
||||
<view class="info-wrap">
|
||||
<view v-if="item.message_type === 1" class="info" v-html="item.message"></view>
|
||||
<view v-if="item.message_type === 2" class="info" v-html="item.message"></view>
|
||||
<view v-if="item.message_type === 3" class="info">{{$t(`[图片]`)}}</view>
|
||||
<view v-if="item.message_type === 4" class="info">{{$t(`[语音]`)}}</view>
|
||||
<view v-if="item.message_type === 5" class="info">{{$t(`[商品]`)}}</view>
|
||||
<view v-if="item.message_type === 6" class="info">{{$t(`[订单]`)}}</view>
|
||||
<view class="num" v-if="item.mssage_num">{{ item.mssage_num }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="list" v-if="list.length && type === 0">
|
||||
<view v-for="(item, index) in list" :key="index">
|
||||
<tuiDrawer @click="(e)=>bindClick(e,item)" :key="item.id" :actions="!item.look ? actions :actionsIsLook"
|
||||
:params="{id:item.id}">
|
||||
<template v-slot:content>
|
||||
<view class="item" @click="goDetail(item.id)">
|
||||
<view class="image-wrap">
|
||||
<image v-if="item.type === 1" class="image" src="../static/admin-msg.png"></image>
|
||||
<image v-else class="image" src="../static/user-msg.png"></image>
|
||||
<view class="no-look" v-if="!item.look"></view>
|
||||
</view>
|
||||
<view class="text-wrap">
|
||||
<view class="name-wrap">
|
||||
<view class="name">{{ $t(item.title) || '--' }}</view>
|
||||
<view>{{ item.add_time }}</view>
|
||||
</view>
|
||||
<view class="info-wrap">
|
||||
<view class="info" v-html="item.content"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</template>
|
||||
|
||||
</tuiDrawer>
|
||||
</view>
|
||||
</view>
|
||||
<view v-else-if="finished && !list.length" class="empty-wrap">
|
||||
<view class="image-wrap">
|
||||
<image class="image" :src="imgHost + '/statics/images/noMessage.png'"></image>
|
||||
</view>
|
||||
<view>{{$t(`亲、暂无消息记录哟!`)}}</view>
|
||||
</view>
|
||||
<!-- #ifndef MP -->
|
||||
<home></home>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
serviceRecord,
|
||||
messageSystem
|
||||
} from '@/api/user.js';
|
||||
import colors from '@/mixins/color.js';
|
||||
import home from '@/components/home';
|
||||
import tuiDrawer from '@/components/tuiDrawer/index.vue'
|
||||
import {
|
||||
HTTP_REQUEST_URL
|
||||
} from '@/config/app';
|
||||
export default {
|
||||
mixins: [colors],
|
||||
components: {
|
||||
home,
|
||||
tuiDrawer
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
imgHost: HTTP_REQUEST_URL,
|
||||
list: [],
|
||||
page: 1,
|
||||
type: 0,
|
||||
limit: 20,
|
||||
loading: false,
|
||||
finished: false,
|
||||
tabsList: [{
|
||||
key: 0,
|
||||
name: '站内消息'
|
||||
}, {
|
||||
key: 1,
|
||||
name: '客服消息'
|
||||
}],
|
||||
startData: {
|
||||
clientX: 0,
|
||||
clientY: 0
|
||||
},
|
||||
actions: [{
|
||||
name: '删除',
|
||||
color: '#fff',
|
||||
fontsize: 28, //单位rpx
|
||||
width: 70, //单位px
|
||||
background: '#E6A23C'
|
||||
},
|
||||
{
|
||||
name: '已读',
|
||||
color: '#fff',
|
||||
fontsize: 28, //单位rpx
|
||||
width: 70, //单位px
|
||||
background: '#409EFF'
|
||||
},
|
||||
],
|
||||
actionsIsLook: [{
|
||||
name: '删除',
|
||||
color: '#fff',
|
||||
fontsize: 28, //单位rpx
|
||||
width: 70, //单位px
|
||||
background: '#E6A23C'
|
||||
}, ]
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
this.page = 1
|
||||
this.list = []
|
||||
console.log(this.type)
|
||||
this.changeTabs(this.type)
|
||||
},
|
||||
onReachBottom() {
|
||||
if (this.type === 1) {
|
||||
this.getList()
|
||||
} else {
|
||||
this.messageSystem()
|
||||
}
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
console.log('refresh');
|
||||
this.page = 1
|
||||
this.finished = false
|
||||
this.list = []
|
||||
if (this.type === 1) {
|
||||
this.getList()
|
||||
} else {
|
||||
this.messageSystem()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
start(e) {
|
||||
this.startData.clientX = e.changedTouches[0].clientX;
|
||||
this.startData.clientY = e.changedTouches[0].clientY;
|
||||
},
|
||||
end(e) {
|
||||
// console.log(e)
|
||||
const subX = e.changedTouches[0].clientX - this.startData.clientX;
|
||||
const subY = e.changedTouches[0].clientY - this.startData.clientY;
|
||||
if (subY > 50 || subY < -50) {
|
||||
console.log('上下滑')
|
||||
} else {
|
||||
if (subX > 50) {
|
||||
console.log('右滑')
|
||||
if (this.type == 1) {
|
||||
this.type = 0
|
||||
this.changeTabs(this.type)
|
||||
}
|
||||
} else if (subX < -50) {
|
||||
if (this.type == 0) {
|
||||
this.type = 1
|
||||
this.changeTabs(this.type)
|
||||
}
|
||||
console.log('左滑')
|
||||
} else {
|
||||
console.log('无效')
|
||||
}
|
||||
}
|
||||
},
|
||||
// 滑动点击操作
|
||||
bindClick(e, item) {
|
||||
console.log(e, item)
|
||||
if (e.index == 0) {
|
||||
// 删除逻辑
|
||||
} else {
|
||||
// 已读
|
||||
}
|
||||
},
|
||||
changeTabs(index) {
|
||||
this.type = index
|
||||
this.page = 1
|
||||
this.limit = 20
|
||||
this.list = []
|
||||
this.finished = false
|
||||
if (index === 1) {
|
||||
this.getList()
|
||||
} else {
|
||||
this.messageSystem()
|
||||
}
|
||||
},
|
||||
// 站内信
|
||||
messageSystem() {
|
||||
if (this.loading || this.finished) {
|
||||
return;
|
||||
}
|
||||
this.loading = true;
|
||||
uni.showLoading({
|
||||
title: this.$t(`加载中`)
|
||||
});
|
||||
messageSystem({
|
||||
page: this.page,
|
||||
limit: this.limit
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res)
|
||||
let data = res.data;
|
||||
uni.hideLoading();
|
||||
this.loading = false;
|
||||
this.list = this.list.concat(data.list);
|
||||
this.finished = data.list.length < this.limit;
|
||||
this.page += 1;
|
||||
uni.stopPullDownRefresh();
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err)
|
||||
uni.showToast({
|
||||
title: err.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 客服list
|
||||
getList() {
|
||||
if (this.loading || this.finished) {
|
||||
return;
|
||||
}
|
||||
this.loading = true;
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
});
|
||||
serviceRecord({
|
||||
page: this.page,
|
||||
limit: this.limit
|
||||
})
|
||||
.then(res => {
|
||||
uni.stopPullDownRefresh();
|
||||
let data = res.data;
|
||||
uni.hideLoading();
|
||||
this.loading = false;
|
||||
data.forEach(item => {
|
||||
if (item.message_type === 1) {
|
||||
item.message = this.replace_em(item.message);
|
||||
}
|
||||
if (item.message_type === 2) {
|
||||
item.message = this.replace_em(item.message);
|
||||
}
|
||||
});
|
||||
this.list = this.list.concat(data);
|
||||
this.finished = data.length < this.limit;
|
||||
this.page += 1;
|
||||
})
|
||||
.catch(err => {
|
||||
uni.showToast({
|
||||
title: err.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
replace_em(str) {
|
||||
str = str.replace(/\[em-([a-z_]*)\]/g, "<span class='em em-$1'/></span>");
|
||||
return str;
|
||||
},
|
||||
goChat(id) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/extension/customer_list/chat?to_uid=' + id + '&type=1'
|
||||
})
|
||||
},
|
||||
goDetail(id) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/users/message_center/messageDetail?id=' + id,
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.list {
|
||||
// background-color: #fff;
|
||||
overflow: hidden;
|
||||
padding-top: 100rpx;
|
||||
|
||||
.item {
|
||||
background-color: #fff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
// height: 130rpx;
|
||||
padding: 30rpx 30rpx;
|
||||
margin: 10rpx 20rpx;
|
||||
border-radius: 12rpx;
|
||||
box-shadow: 0px 0px 1px 0px rgba(235, 214, 214, 0.75);
|
||||
-webkit-box-shadow: 0px 0px 1px 0px rgba(235, 214, 214, 0.75);
|
||||
-moz-box-shadow: 0px 0px 1px 0px rgba(235, 214, 214, 0.75);
|
||||
|
||||
~.item {
|
||||
border-top: 1rpx solid #f5f5f5;
|
||||
}
|
||||
|
||||
.image {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.image-wrap {
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
border-radius: 50%;
|
||||
position: relative;
|
||||
|
||||
.no-look {
|
||||
position: absolute;
|
||||
width: 18rpx;
|
||||
height: 18rpx;
|
||||
border-radius: 50%;
|
||||
background-color: #1ABB1D;
|
||||
top: 0rpx;
|
||||
right: 0rpx;
|
||||
z-index: 999;
|
||||
}
|
||||
}
|
||||
|
||||
.image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.text-wrap {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
|
||||
.name-wrap {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 20rpx;
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
.name {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin-right: 20rpx;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.info-wrap {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 18rpx;
|
||||
}
|
||||
|
||||
.info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.num {
|
||||
min-width: 32rpx;
|
||||
height: 32rpx;
|
||||
border-radius: 16rpx;
|
||||
margin-left: 20rpx;
|
||||
background-color: #e93323;
|
||||
font-size: 20rpx;
|
||||
line-height: 32rpx;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.empty-wrap {
|
||||
font-size: 26rpx;
|
||||
text-align: center;
|
||||
color: #999;
|
||||
|
||||
.image-wrap {
|
||||
width: 414rpx;
|
||||
height: 436rpx;
|
||||
padding-top: 100rpx;
|
||||
margin: 0rpx auto 0;
|
||||
}
|
||||
|
||||
.image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.main {
|
||||
position: relative;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.top-tabs {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background-color: #fff;
|
||||
font-size: 28rpx;
|
||||
border-radius: 8rpx;
|
||||
padding: 20rpx 0;
|
||||
margin-bottom: 10rpx;
|
||||
z-index: 1000;
|
||||
transition: all 0.3s;
|
||||
justify-content: space-between;
|
||||
|
||||
.read-all {
|
||||
margin-right: 24rpx;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.tabs {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 4rpx 15rpx;
|
||||
margin: 0 20rpx;
|
||||
animation: Gradient 0.3s;
|
||||
border-radius: 30rpx;
|
||||
transition: all 0.4s;
|
||||
}
|
||||
|
||||
.btborder {
|
||||
color: #fff;
|
||||
background-color: var(--view-theme);
|
||||
border-radius: 30rpx;
|
||||
}
|
||||
|
||||
@-webkit-keyframes Gradient {
|
||||
0% {
|
||||
background-color: pink;
|
||||
}
|
||||
|
||||
50% {
|
||||
background-position: 100% 50%
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: 0% 50%
|
||||
}
|
||||
}
|
||||
|
||||
@-moz-keyframes Gradient {
|
||||
0% {
|
||||
background-position: 0% 50%
|
||||
}
|
||||
|
||||
50% {
|
||||
background-position: 100% 50%
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: 0% 50%
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes Gradient {
|
||||
0% {
|
||||
background-position: 0% 50%
|
||||
}
|
||||
|
||||
50% {
|
||||
background-position: 100% 50%
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: 0% 50%
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -361,11 +361,10 @@
|
||||
this.cartId = '';
|
||||
this.pinkId = '';
|
||||
this.couponId = '';
|
||||
let noCouponUrl = this.noCoupon == 1 ? '&noCoupon=' + this.noCoupon : '';
|
||||
uni.redirectTo({
|
||||
url: '/pages/goods/order_confirm/index?is_address=1&new=' + this.news + '&cartId=' +
|
||||
cartId + '&addressId=' + id + '&pinkId=' +
|
||||
pinkId + '&couponId=' + couponId + noCouponUrl
|
||||
pinkId + '&couponId=' + couponId + '&noCoupon=' + this.noCoupon
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
@ -39,6 +39,7 @@
|
||||
getUserAgreement,
|
||||
cancelUser
|
||||
} from '@/api/user.js'
|
||||
const app = getApp();
|
||||
export default {
|
||||
mixins: [colors],
|
||||
data() {
|
||||
@ -58,6 +59,8 @@
|
||||
},
|
||||
cancelUser() {
|
||||
cancelUser().then(res => {
|
||||
app.globalData.spid = '';
|
||||
app.globalData.pid = '';
|
||||
this.$store.commit("LOGOUT");
|
||||
uni.reLaunch({
|
||||
url: '/pages/index/index'
|
||||
|
||||
@ -259,7 +259,18 @@
|
||||
}).then(res => {
|
||||
uni.hideLoading();
|
||||
let jsConfig = res.data;
|
||||
// #ifdef MP
|
||||
let mp_pay_name=''
|
||||
if(uni.requestOrderPayment){
|
||||
mp_pay_name='requestOrderPayment'
|
||||
}else{
|
||||
mp_pay_name='requestPayment'
|
||||
}
|
||||
uni[mp_pay_name]({
|
||||
// #endif
|
||||
// #ifdef APP-PLUS
|
||||
uni.requestPayment({
|
||||
// #endif
|
||||
// #ifdef MP
|
||||
timeStamp: jsConfig.timestamp,
|
||||
nonceStr: jsConfig.nonceStr,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user