|
|
@@ -91,7 +91,7 @@
|
|
|
|
|
|
</div>
|
|
|
</view>
|
|
|
- <view class="content-box price-detail" v-if="detailInfo.remark.length > 0">
|
|
|
+ <view class="content-box price-detail" v-if="detailInfo.remark && detailInfo.remark.length > 0">
|
|
|
<div class="module-com input-line-wrap">
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<div class="tui-title">备注</div>
|
|
|
@@ -104,7 +104,12 @@
|
|
|
<view class="app-footer">
|
|
|
<button class="admin-button-com default" v-if="detailInfo.status == 1 && detailInfo.clearStyle==2" @click="cancelFn(detailInfo)">取消</button>
|
|
|
<button class="admin-button-com default" v-if="detailInfo.status == 1" @click="customHasClear(detailInfo)">客户已转账</button>
|
|
|
+ <!-- #ifdef MP-WEIXIN -->
|
|
|
<button class="admin-button-com default" v-if="detailInfo.status == 1" open-type="share">邀客户结账</button>
|
|
|
+ <!-- #endif -->
|
|
|
+ <!-- #ifdef APP-PLUS -->
|
|
|
+ <button class="admin-button-com default" v-if="detailInfo.status == 1" @click="inviteClear()">邀客户结账</button>
|
|
|
+ <!-- #endif -->
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -112,6 +117,7 @@
|
|
|
import { getCustomDetail,cancel,confirmClear } from "@/api/clear/index";
|
|
|
import productMins from "@/mixins/product";
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
|
+import { IMGHOST } from '@/config'
|
|
|
export default {
|
|
|
name: "customInfo",
|
|
|
components: {
|
|
|
@@ -132,11 +138,33 @@ export default {
|
|
|
return {
|
|
|
title: '点击查账和结账',
|
|
|
desc: "",
|
|
|
- imgUrl: "",
|
|
|
+ imgUrl: IMGHOST+'/custom/hit_me_clear.jpg',
|
|
|
path: "admin/clear/showBill?id="+this.detailInfo.id,
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ inviteClear(){
|
|
|
+ uni.share({
|
|
|
+ provider: "weixin", //分享服务提供商(即weixin|qq|sinaweibo)
|
|
|
+ scene: 'WXSceneSession', //场景,可取值参考下面说明。
|
|
|
+ type: 5, //分享形式
|
|
|
+ title: '查账和结账', //分享内容的标题
|
|
|
+ summary: '暂无', //分享内容的摘要
|
|
|
+ imageUrl: IMGHOST+'/custom/hit_me_clear.jpg',//图片一定要有,不然会分享失败
|
|
|
+ miniProgram: {
|
|
|
+ id: 'gh_2e886744af66',//小程序原始id,发起分享的 App 与小程序属于同一微信开放平台帐号
|
|
|
+ path: "admin/clear/showBill?id="+this.detailInfo.id,
|
|
|
+ type: 0,// 0-正式版; 1-测试版; 2-体验版
|
|
|
+ webUrl: 'https://www.wixhb.com'
|
|
|
+ },
|
|
|
+ success: function(res) {
|
|
|
+ //console.log(res)
|
|
|
+ },
|
|
|
+ fail: function(err) {
|
|
|
+ //console.log(err)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
cancelFn(info){
|
|
|
let that = this
|
|
|
that.$util.confirmModal({content:'确认取消?'},() => {
|
|
|
@@ -391,7 +419,7 @@ export default {
|
|
|
justify-content: flex-end;
|
|
|
& .admin-button-com {
|
|
|
padding: 0;
|
|
|
- margin-right: 20upx;
|
|
|
+ margin-right: 30upx;
|
|
|
width: 165upx;
|
|
|
height: 73upx;
|
|
|
line-height: 73upx;
|