服务器提交
This commit is contained in:
10
public/weapp/pages_tool/components/ns-chat/ns-chat-goods.js
Executable file
10
public/weapp/pages_tool/components/ns-chat/ns-chat-goods.js
Executable file
@@ -0,0 +1,10 @@
|
||||
require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/components/ns-chat/ns-chat-goods"],{"0fef":function(o,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={name:"ns-chat-goods",props:{skuId:{type:[Number,String]},goodsDetail:{type:[Object]}},data:function(){return{goodsInfo:{}}},mounted:function(){this.getGoodsInfo()},methods:{getGoodsInfo:function(){var o=this;this.$api.sendRequest({url:"/api/goodssku/detail",data:{sku_id:this.skuId},success:function(n){n.code>=0&&(o.goodsInfo=n.data.goods_sku_detail)}})},sendMsg:function(){this.$emit("sendMsg","goods")}}};n.default=e},1187:function(o,n,t){"use strict";var e=t("1fb1"),s=t.n(e);s.a},"1fb1":function(o,n,t){},"28a7":function(o,n,t){"use strict";t.d(n,"b",(function(){return e})),t.d(n,"c",(function(){return s})),t.d(n,"a",(function(){}));var e=function(){var o=this,n=o.$createElement,t=(o._self._c,o.goodsInfo&&o.goodsInfo.goods_name?o.$util.img(o.goodsInfo.sku_image):null),e=o.goodsInfo&&o.goodsInfo.goods_name||!o.goodsDetail?null:o.$util.img(o.goodsDetail.sku_image);o.$mp.data=Object.assign({},{$root:{g0:t,g1:e}})},s=[]},c41e:function(o,n,t){"use strict";t.r(n);var e=t("0fef"),s=t.n(e);for(var u in e)["default"].indexOf(u)<0&&function(o){t.d(n,o,(function(){return e[o]}))}(u);n["default"]=s.a},e729:function(o,n,t){"use strict";t.r(n);var e=t("28a7"),s=t("c41e");for(var u in s)["default"].indexOf(u)<0&&function(o){t.d(n,o,(function(){return s[o]}))}(u);t("1187");var a=t("828b"),i=Object(a["a"])(s["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);n["default"]=i.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'pages_tool/components/ns-chat/ns-chat-goods-create-component',
|
||||
{
|
||||
'pages_tool/components/ns-chat/ns-chat-goods-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("e729"))
|
||||
})
|
||||
},
|
||||
[['pages_tool/components/ns-chat/ns-chat-goods-create-component']]
|
||||
]);
|
||||
4
public/weapp/pages_tool/components/ns-chat/ns-chat-goods.json
Executable file
4
public/weapp/pages_tool/components/ns-chat/ns-chat-goods.json
Executable file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
public/weapp/pages_tool/components/ns-chat/ns-chat-goods.wxml
Executable file
1
public/weapp/pages_tool/components/ns-chat/ns-chat-goods.wxml
Executable file
@@ -0,0 +1 @@
|
||||
<view class="message"><block wx:if="{{goodsInfo&&goodsInfo.goods_name}}"><view class="goods-item"><image src="{{$root.g0}}" mode="aspectFill"></image><view class="goods-info"><view class="goods-name">{{goodsInfo.sku_name?goodsInfo.sku_name:goodsInfo.goods_name}}</view><view class="goods-bottom"><view class="goods-price"><text class="goods-price-sign color-base-text">¥</text><text class="color-base-text">{{goodsInfo.price}}</text></view><view class="goods-option font-size-goods-tag disabled">已发送</view></view></view></view></block><block wx:else><block wx:if="{{goodsDetail}}"><view class="goods-item"><image src="{{$root.g1}}" mode="aspectFill"></image><view class="goods-info"><view class="goods-name">{{goodsDetail.sku_name?goodsDetail.sku_name:goodsDetail.goods_name}}</view><view class="goods-bottom"><view class="goods-price"><text class="goods-price-sign color-base-text">¥</text><text class="color-base-text">{{goodsDetail.price}}</text></view><view data-event-opts="{{[['tap',[['sendMsg',['goods']]]]]}}" class="goods-option font-size-goods-tag color-base-bg" bindtap="__e">发送</view></view></view></view></block></block></view>
|
||||
1
public/weapp/pages_tool/components/ns-chat/ns-chat-goods.wxss
Executable file
1
public/weapp/pages_tool/components/ns-chat/ns-chat-goods.wxss
Executable file
@@ -0,0 +1 @@
|
||||
.message{padding:13rpx 20rpx;box-sizing:border-box;width:100vw;position:relative}.message .goods-item{width:100%;height:220rpx;background:#fff;position:relative;display:flex;align-items:center;border-radius:20rpx;margin:0 auto;padding:20rpx;box-sizing:border-box}.message .goods-item image{width:180rpx;height:180rpx;min-width:180rpx}.message .goods-item .goods-info{width:100%;height:180rpx;display:flex;flex-direction:column;justify-content:space-between;padding-left:20rpx;box-sizing:border-box}.message .goods-item .goods-info .goods-name{width:100%;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.message .goods-item .goods-info .goods-bottom{display:flex;justify-content:space-between;align-items:flex-end}.message .goods-item .goods-info .goods-bottom text{line-height:1}.message .goods-item .goods-info .goods-bottom .goods-price{display:flex;align-items:flex-end;padding-bottom:10rpx;font-weight:500}.message .goods-item .goods-info .goods-bottom .goods-price .goods-price-sign{font-size:20rpx}.message .goods-item .goods-info .goods-bottom .goods-option{width:150rpx;height:50rpx;line-height:50rpx;text-align:center;border-radius:10rpx;color:#fff}.message .goods-item .disabled{background:#e5e5e5}
|
||||
10
public/weapp/pages_tool/components/ns-chat/ns-chat-order.js
Executable file
10
public/weapp/pages_tool/components/ns-chat/ns-chat-order.js
Executable file
@@ -0,0 +1,10 @@
|
||||
require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/components/ns-chat/ns-chat-order"],{"018f":function(e,o,t){"use strict";t.d(o,"b",(function(){return r})),t.d(o,"c",(function(){return n})),t.d(o,"a",(function(){}));var r=function(){var e=this,o=e.$createElement,t=(e._self._c,e.orderdetails?e.$util.img(e.orderdetails.order_goods?e.orderdetails.order_goods[0].sku_image:""):null),r=!e.orderdetails&&e.orderInfo?e.$util.img(e.orderInfo.order_goods?e.orderInfo.order_goods[0].sku_image:""):null;e.$mp.data=Object.assign({},{$root:{g0:t,g1:r}})},n=[]},3866:function(e,o,t){"use strict";t.r(o);var r=t("cb40"),n=t.n(r);for(var d in r)["default"].indexOf(d)<0&&function(e){t.d(o,e,(function(){return r[e]}))}(d);o["default"]=n.a},"8cf6":function(e,o,t){"use strict";t.r(o);var r=t("018f"),n=t("3866");for(var d in n)["default"].indexOf(d)<0&&function(e){t.d(o,e,(function(){return n[e]}))}(d);t("9d56");var i=t("828b"),s=Object(i["a"])(n["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);o["default"]=s.exports},"9d56":function(e,o,t){"use strict";var r=t("c0cd"),n=t.n(r);n.a},c0cd:function(e,o,t){},cb40:function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r={name:"ns-chat-order",props:{orderId:{type:[Number,String]},isCanSend:Boolean,orderdetails:{type:[Object]}},data:function(){return{orderInfo:{}}},mounted:function(){this.getGoodsInfo()},methods:{getGoodsInfo:function(){var e=this;this.orderId&&this.$api.sendRequest({url:"/api/order/detail",data:{order_id:this.orderId},success:function(o){o.code>=0&&(e.orderInfo=o.data)}})},sendMsg:function(){this.$emit("sendMsg","order")}}};o.default=r}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'pages_tool/components/ns-chat/ns-chat-order-create-component',
|
||||
{
|
||||
'pages_tool/components/ns-chat/ns-chat-order-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("8cf6"))
|
||||
})
|
||||
},
|
||||
[['pages_tool/components/ns-chat/ns-chat-order-create-component']]
|
||||
]);
|
||||
4
public/weapp/pages_tool/components/ns-chat/ns-chat-order.json
Executable file
4
public/weapp/pages_tool/components/ns-chat/ns-chat-order.json
Executable file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
public/weapp/pages_tool/components/ns-chat/ns-chat-order.wxml
Executable file
1
public/weapp/pages_tool/components/ns-chat/ns-chat-order.wxml
Executable file
@@ -0,0 +1 @@
|
||||
<view class="message"><block wx:if="{{orderdetails}}"><view class="goods-item"><image src="{{$root.g0}}" mode="aspectFill"></image><view class="goods-info"><view class="goods-name">{{orderdetails.order_goods?orderdetails.order_goods[0].sku_name:''}}</view><view class="font-size-goods-tag">{{"订单状态:"+orderdetails.order_status_name}}</view><view class="font-size-goods-tag">{{"配送方式:"+orderdetails.delivery_type_name}}</view><view class="goods-bottom"><view class="goods-price color-base-text"><text class="goods-price-sign">¥</text><text>{{orderdetails.order_goods?orderdetails.order_goods[0].price:''}}</text></view><view data-event-opts="{{[['tap',[['sendMsg',['order']]]]]}}" class="goods-option font-size-goods-tag color-base-bg" bindtap="__e">发送</view></view></view></view></block><block wx:else><block wx:if="{{orderInfo}}"><view class="goods-item"><image src="{{$root.g1}}" mode="aspectFill"></image><view class="goods-info"><view class="goods-name">{{orderInfo.order_goods?orderInfo.order_goods[0].sku_name:''}}</view><view class="font-size-goods-tag">{{"订单状态:"+orderInfo.order_status_name}}</view><view class="font-size-goods-tag">{{"配送方式:"+orderInfo.delivery_type_name}}</view><view class="goods-bottom"><view class="goods-price color-base-text"><text class="goods-price-sign">¥</text><text>{{orderInfo.order_goods?orderInfo.order_goods[0].price:''}}</text></view><view class="goods-option font-size-goods-tag disabled">已发送</view></view></view></view></block></block></view>
|
||||
1
public/weapp/pages_tool/components/ns-chat/ns-chat-order.wxss
Executable file
1
public/weapp/pages_tool/components/ns-chat/ns-chat-order.wxss
Executable file
@@ -0,0 +1 @@
|
||||
.message{padding:13rpx 20rpx;box-sizing:border-box;width:100vw;position:relative}.message .goods-item{width:100%;height:220rpx;background:#fff;position:relative;display:flex;align-items:center;border-radius:20rpx;margin:0 auto;padding:20rpx;box-sizing:border-box}.message .goods-item image{width:180rpx;height:180rpx}.message .goods-item .goods-info{width:100%;height:180rpx;display:flex;flex-direction:column;justify-content:space-between;padding-left:20rpx;box-sizing:border-box}.message .goods-item .goods-info .goods-name{width:100%;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;margin-bottom:10rpx}.message .goods-item .goods-info .goods-bottom{display:flex;justify-content:space-between;align-items:flex-end}.message .goods-item .goods-info .goods-bottom text{line-height:1}.message .goods-item .goods-info .goods-bottom .goods-price{display:flex;align-items:flex-end;padding-bottom:10rpx;font-weight:500}.message .goods-item .goods-info .goods-bottom .goods-price .goods-price-sign{font-size:20rpx}.message .goods-item .goods-info .goods-bottom .goods-option{width:150rpx;height:50rpx;line-height:50rpx;text-align:center;border-radius:10rpx;color:#fff}.message .goods-item .disabled{background:#e5e5e5}
|
||||
10
public/weapp/pages_tool/components/ns-chat/ns-chat-receiveGoods.js
Executable file
10
public/weapp/pages_tool/components/ns-chat/ns-chat-receiveGoods.js
Executable file
@@ -0,0 +1,10 @@
|
||||
require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/components/ns-chat/ns-chat-receiveGoods"],{2114:function(t,n,e){},"5cfa":function(t,n,e){"use strict";var o=e("2114"),i=e.n(o);i.a},"7fec":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={name:"ns-chat-receiveGoods",props:{skuId:{type:[Number,String]}},data:function(){return{goodsInfo:{}}},mounted:function(){this.getInfo()},methods:{getInfo:function(){var t=this;this.$api.sendRequest({url:"/api/goodssku/detail",data:{sku_id:this.skuId},success:function(n){n.code>=0&&(t.goodsInfo=n.data.goods_sku_detail,t.$emit("upDOM"))}})},go_shop:function(){this.$util.redirectTo("/pages/goods/detail?goods_id="+this.goodsInfo.goods_id)}}};n.default=o},"8f67":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){}));var o=function(){var t=this.$createElement,n=(this._self._c,this.$util.img(this.goodsInfo.sku_image));this.$mp.data=Object.assign({},{$root:{g0:n}})},i=[]},be18:function(t,n,e){"use strict";e.r(n);var o=e("8f67"),i=e("fee7");for(var s in i)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(s);e("5cfa");var u=e("828b"),a=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=a.exports},fee7:function(t,n,e){"use strict";e.r(n);var o=e("7fec"),i=e.n(o);for(var s in o)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(s);n["default"]=i.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'pages_tool/components/ns-chat/ns-chat-receiveGoods-create-component',
|
||||
{
|
||||
'pages_tool/components/ns-chat/ns-chat-receiveGoods-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("be18"))
|
||||
})
|
||||
},
|
||||
[['pages_tool/components/ns-chat/ns-chat-receiveGoods-create-component']]
|
||||
]);
|
||||
4
public/weapp/pages_tool/components/ns-chat/ns-chat-receiveGoods.json
Executable file
4
public/weapp/pages_tool/components/ns-chat/ns-chat-receiveGoods.json
Executable file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
public/weapp/pages_tool/components/ns-chat/ns-chat-receiveGoods.wxml
Executable file
1
public/weapp/pages_tool/components/ns-chat/ns-chat-receiveGoods.wxml
Executable file
@@ -0,0 +1 @@
|
||||
<view class="goods"><view class="goods-msg"><image src="{{$root.g0}}" mode="aspectFill"></image><view class="goods-item"><view class="title">{{goodsInfo.goods_name}}</view><view class="goods-sku">{{'库存:'+goodsInfo.stock+''}}<text>{{"销量:"+goodsInfo.sale_num}}</text></view><view class="goods-price"><view class="price color-base-text"><text class="price-util">¥</text><text class="price-num">{{goodsInfo.price}}</text></view><view data-event-opts="{{[['tap',[['go_shop']]]]}}" class="see-shop color-base-text" bindtap="__e">查看商品<text class="iconfont icon-right"></text></view></view></view></view></view>
|
||||
1
public/weapp/pages_tool/components/ns-chat/ns-chat-receiveGoods.wxss
Executable file
1
public/weapp/pages_tool/components/ns-chat/ns-chat-receiveGoods.wxss
Executable file
@@ -0,0 +1 @@
|
||||
.goods{padding:13rpx 20rpx;box-sizing:border-box;width:100vw;position:relative}.goods .goods-msg{width:100%;height:220rpx;background:#fff;position:relative;display:flex;align-items:center;border-radius:20rpx;margin:0 auto;padding:20rpx;box-sizing:border-box}.goods .goods-msg image{width:180rpx;height:180rpx;min-width:180rpx;border-radius:10rpx}.goods .goods-msg .goods-item{width:100%;height:180rpx;display:flex;flex-direction:column;justify-content:space-between;padding-left:20rpx;box-sizing:border-box}.goods .goods-msg .goods-item .title{width:100%;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.goods .goods-msg .goods-item .goods-sku{color:#606266}.goods .goods-msg .goods-item .goods-sku text{padding-left:20rpx}.goods .goods-msg .goods-item .goods-price{display:flex;align-items:center;justify-content:space-between}.goods .goods-msg .goods-item .goods-price .price .price-util{font-size:20rpx}.goods .goods-msg .goods-item .goods-price .see-shop{display:flex;align-items:center}.goods .goods-msg .goods-item .goods-price .see-shop text{padding-top:4rpx;padding-left:4rpx;font-size:26rpx}
|
||||
Reference in New Issue
Block a user